rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
null, "setStyle"); | null, "setStyleExpr"); | public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[30]; try { result[0] = new PropertyDescriptor("accesskey", ELTextareaTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELTextareaTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELTextareaTag.class, null, "setAltKey"); result[3] = new PropertyDescriptor("cols", ELTextareaTag.class, null, "setCols"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("disabled", ELTextareaTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELTextareaTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("name", ELTextareaTag.class, null, "setName"); result[7] = new PropertyDescriptor("onblur", ELTextareaTag.class, null, "setOnblur"); result[8] = new PropertyDescriptor("onchange", ELTextareaTag.class, null, "setOnchange"); result[9] = new PropertyDescriptor("onclick", ELTextareaTag.class, null, "setOnclick"); result[10] = new PropertyDescriptor("ondblclick", ELTextareaTag.class, null, "setOndblclick"); result[11] = new PropertyDescriptor("onfocus", ELTextareaTag.class, null, "setOnfocus"); result[12] = new PropertyDescriptor("onkeydown", ELTextareaTag.class, null, "setOnkeydown"); result[13] = new PropertyDescriptor("onkeypress", ELTextareaTag.class, null, "setOnkeypress"); result[14] = new PropertyDescriptor("onkeyup", ELTextareaTag.class, null, "setOnkeyup"); result[15] = new PropertyDescriptor("onmousedown", ELTextareaTag.class, null, "setOnmousedown"); result[16] = new PropertyDescriptor("onmousemove", ELTextareaTag.class, null, "setOnmousemove"); result[17] = new PropertyDescriptor("onmouseout", ELTextareaTag.class, null, "setOnmouseout"); result[18] = new PropertyDescriptor("onmouseover", ELTextareaTag.class, null, "setOnmouseover"); result[19] = new PropertyDescriptor("onmouseup", ELTextareaTag.class, null, "setOnmouseup"); result[20] = new PropertyDescriptor("property", ELTextareaTag.class, null, "setProperty"); result[21] = new PropertyDescriptor("readonly", ELTextareaTag.class, null, "setReadonlyExpr"); result[22] = new PropertyDescriptor("rows", ELTextareaTag.class, null, "setRows"); result[23] = new PropertyDescriptor("style", ELTextareaTag.class, null, "setStyle"); result[24] = new PropertyDescriptor("styleClass", ELTextareaTag.class, null, "setStyleClass"); result[25] = new PropertyDescriptor("styleId", ELTextareaTag.class, null, "setStyleId"); result[26] = new PropertyDescriptor("tabindex", ELTextareaTag.class, null, "setTabindex"); result[27] = new PropertyDescriptor("title", ELTextareaTag.class, null, "setTitle"); result[28] = new PropertyDescriptor("titleKey", ELTextareaTag.class, null, "setTitleKey"); result[29] = new PropertyDescriptor("value", ELTextareaTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELTextareaTagBeanInfo.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5082,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860,
856,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1862,
856,
8863,
5411,
563,
63,
21,
65,
273,
394,
26761,
2932,
2390,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
8863,
5411,
563,
63,
22,
65,
273,
394,
26761,
2932,
2390,
653,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
653,
8863,
5411,
563,
63,
23,
65,
273,
394,
26761,
2932,
6842,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
8011,
8863,
5411,
368,
1220,
1566,
711,
279,
1661,
17,
10005,
2874,
18,
5411,
563,
63,
24,
65,
273,
394,
26761,
2932,
9278,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
8853,
4742,
8863,
5411,
368,
1220,
1566,
711,
279,
1661,
17,
10005,
2874,
18,
5411,
563,
63,
25,
65,
273,
394,
26761,
2932,
19626,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
15034,
4742,
8863,
5411,
563,
63,
26,
65,
273,
394,
26761,
2932,
529,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
461,
8863,
5411,
563,
63,
27,
65,
273,
394,
26761,
2932,
265,
27065,
3113,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5082,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860,
856,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1862,
856,
8863,
5411,
563,
63,
21,
65,
273,
394,
26761,
2932,
2390,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
8863,
5411,
563,
63,
22,
65,
273,
394,
26761,
2932,
2390,
653,
3113,
14801,
1528,
5036,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
653,
8863,
5411,
563,
63,
23,
65,
273,
394,
26761,
2932,
6842,
3113,
14801,
2
] |
ViewedMessage node = (ViewedMessage) path.getTip(); | ViewedMessage node = (ViewedMessage) path.getPath()[path.getPath().length -1]; | public void folderSelectionDoubleClicked(ChangeEvent aEvent) { TreePath path = null; Enumeration selection = ((FolderPanel)aEvent.getSource()).getSelection(); MessageDisplayManager master = MultiMessageDisplayManager.Get(); while (selection.hasMoreElements()) { path = (TreePath) selection.nextElement(); if (path != null) { ViewedMessage node = (ViewedMessage) path.getTip(); master.displayMessage(node.getMessage()); } } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8c0a3f0dc0fd80182185cba30e58932b2539c17a/FolderFrame.java/clean/grendel/sources/grendel/ui/FolderFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3009,
6233,
5265,
27633,
12,
20930,
279,
1133,
13,
288,
1377,
4902,
743,
589,
273,
446,
31,
1377,
13864,
4421,
273,
14015,
3899,
5537,
13,
69,
1133,
18,
588,
1830,
1435,
2934,
588,
6233,
5621,
1377,
2350,
4236,
1318,
4171,
273,
5991,
1079,
4236,
1318,
18,
967,
5621,
1377,
1323,
261,
10705,
18,
5332,
7417,
3471,
10756,
288,
3639,
589,
273,
261,
2471,
743,
13,
4421,
18,
4285,
1046,
5621,
3639,
309,
261,
803,
480,
446,
13,
288,
1850,
4441,
329,
1079,
756,
273,
261,
1767,
329,
1079,
13,
589,
18,
588,
743,
1435,
63,
803,
18,
588,
743,
7675,
2469,
300,
21,
15533,
1850,
4171,
18,
5417,
1079,
12,
2159,
18,
24906,
10663,
3639,
289,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
3009,
6233,
5265,
27633,
12,
20930,
279,
1133,
13,
288,
1377,
4902,
743,
589,
273,
446,
31,
1377,
13864,
4421,
273,
14015,
3899,
5537,
13,
69,
1133,
18,
588,
1830,
1435,
2934,
588,
6233,
5621,
1377,
2350,
4236,
1318,
4171,
273,
5991,
1079,
4236,
1318,
18,
967,
5621,
1377,
1323,
261,
10705,
18,
5332,
7417,
3471,
10756,
288,
3639,
589,
273,
261,
2471,
743,
13,
4421,
18,
4285,
1046,
5621,
3639,
309,
261,
803,
480,
446,
13,
288,
1850,
4441,
329,
1079,
756,
273,
261,
1767,
329,
1079,
13,
589,
18,
588,
743,
1435,
63,
803,
18,
588,
743,
7675,
2469,
300,
21,
15533,
1850,
4171,
18,
5417,
1079,
12,
2159,
18,
24906,
10663,
3639,
289,
2
] |
return new JAXPDOMTestDocumentBuilderFactory(newFactory,mergedSettings); | return createInstance(newFactory, mergedSettings); | public DOMTestDocumentBuilderFactory newInstance(DocumentBuilderSetting[] newSettings) throws DOMTestIncompatibleException { if(newSettings == null) { return this; } DocumentBuilderSetting[] mergedSettings = mergeSettings(newSettings); DocumentBuilderFactory newFactory = factory.newInstance(); return new JAXPDOMTestDocumentBuilderFactory(newFactory,mergedSettings); } | 54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/60ec3bed7e2de32d64750878e32e185c5838474c/JAXPDOMTestDocumentBuilderFactory.java/clean/java/org/w3c/domts/JAXPDOMTestDocumentBuilderFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4703,
4709,
2519,
20692,
5984,
12,
2519,
1263,
5568,
8526,
394,
2628,
13,
565,
1216,
4703,
4709,
24272,
503,
288,
565,
309,
12,
2704,
2628,
422,
446,
13,
288,
1377,
327,
333,
31,
565,
289,
565,
4319,
1263,
5568,
8526,
5384,
2628,
273,
2691,
2628,
12,
2704,
2628,
1769,
565,
30236,
394,
1733,
273,
3272,
18,
2704,
1442,
5621,
565,
327,
20075,
12,
2704,
1733,
16,
5384,
2628,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4703,
4709,
2519,
20692,
5984,
12,
2519,
1263,
5568,
8526,
394,
2628,
13,
565,
1216,
4703,
4709,
24272,
503,
288,
565,
309,
12,
2704,
2628,
422,
446,
13,
288,
1377,
327,
333,
31,
565,
289,
565,
4319,
1263,
5568,
8526,
5384,
2628,
273,
2691,
2628,
12,
2704,
2628,
1769,
565,
30236,
394,
1733,
273,
3272,
18,
2704,
1442,
5621,
565,
327,
20075,
12,
2704,
1733,
16,
5384,
2628,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(offset < 0) { | if (offset < 0) { | private static boolean isJikesMessage(String errorMessage) { for(int j=0; j<errorMessage.length(); j++) { if(errorMessage.charAt(j) == ':') { int offset = getNextTwoPoints(j, errorMessage); if(offset < 0) { continue; } offset = getNextTwoPoints(offset, errorMessage); if(offset < 0) { continue; } offset = getNextTwoPoints(offset, errorMessage); if(offset < 0) { continue; } offset = getNextTwoPoints(offset, errorMessage); if(offset >= 0) { return true; } } } return false; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f815bc91a0ccfd60fe02336070d85d81209aad84/OutputParser.java/clean/plugins/ant/src/com/intellij/lang/ant/config/execution/OutputParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
353,
46,
25235,
1079,
12,
780,
9324,
13,
288,
565,
364,
12,
474,
525,
33,
20,
31,
525,
32,
1636,
1079,
18,
2469,
5621,
525,
27245,
288,
1377,
309,
12,
1636,
1079,
18,
3001,
861,
12,
78,
13,
422,
3921,
13,
288,
3639,
509,
1384,
273,
6927,
11710,
5636,
12,
78,
16,
9324,
1769,
3639,
309,
261,
3348,
411,
374,
13,
288,
1850,
1324,
31,
3639,
289,
3639,
1384,
273,
6927,
11710,
5636,
12,
3348,
16,
9324,
1769,
3639,
309,
261,
3348,
411,
374,
13,
288,
1850,
1324,
31,
3639,
289,
3639,
1384,
273,
6927,
11710,
5636,
12,
3348,
16,
9324,
1769,
3639,
309,
261,
3348,
411,
374,
13,
288,
1850,
1324,
31,
3639,
289,
3639,
1384,
273,
6927,
11710,
5636,
12,
3348,
16,
9324,
1769,
3639,
309,
12,
3348,
1545,
374,
13,
288,
1850,
327,
638,
31,
3639,
289,
1377,
289,
565,
289,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
353,
46,
25235,
1079,
12,
780,
9324,
13,
288,
565,
364,
12,
474,
525,
33,
20,
31,
525,
32,
1636,
1079,
18,
2469,
5621,
525,
27245,
288,
1377,
309,
12,
1636,
1079,
18,
3001,
861,
12,
78,
13,
422,
3921,
13,
288,
3639,
509,
1384,
273,
6927,
11710,
5636,
12,
78,
16,
9324,
1769,
3639,
309,
261,
3348,
411,
374,
13,
288,
1850,
1324,
31,
3639,
289,
3639,
1384,
273,
6927,
11710,
5636,
12,
3348,
16,
9324,
1769,
3639,
309,
261,
3348,
411,
374,
13,
288,
1850,
1324,
31,
3639,
289,
3639,
1384,
273,
6927,
11710,
5636,
12,
3348,
16,
9324,
1769,
3639,
309,
261,
3348,
411,
374,
13,
288,
1850,
1324,
31,
3639,
289,
2
] |
" 124 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 127 ldc <String \"[finally]\"> [62]\n" + " 129 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 132 invokestatic X.throwRuntime() : void [64]\n" + | " 124 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + " 127 ldc <String \"[finally]\"> [47]\n" + " 129 invokevirtual java.io.PrintStream.print(java.lang.String) : void [42]\n" + " 132 invokestatic X.throwRuntime() : void [49]\n" + | public void test034() { this.runConformTest( new String[] { "X.java", "public class X {\n" + "\n" + " public static void main(String[] args) {\n" + " try {\n" + " scenario();\n" + " } catch(Exception e){\n" + " System.out.println(\"[end]\");\n" + " }\n" + " }\n" + "\n" + " private static int scenario(){\n" + " try {\n" + " int i = 1;\n" + " System.out.print(\"[i: \" + i+\"]\");\n" + " if (i > 5) {\n" + " return i;\n" + " }\n" + " return -i;\n" + " } catch (Exception e) {\n" + " System.out.print(\"[WRONG CATCH]\");\n" + " return 2;\n" + " } finally {\n" + " System.out.print(\"[finally]\");\n" + " try {\n" + " throwRuntime();\n" + " } finally {\n" + " clean();\n" + " }\n" + " }\n" + " }\n" + "\n" + " private static void throwRuntime() {\n" + " throw new RuntimeException(\"error\");\n" + " }\n" + "\n" + " private static void clean() {\n" + " System.out.print(\"[clean]\");\n" + " }\n" + "}\n", }, "[i: 1][finally][clean][end]"); String expectedOutput = new CompilerOptions(this.getCompilerOptions()).inlineJsrBytecode ? " // Method descriptor #19 ()I\n" + " // Stack: 4, Locals: 4\n" + " private static int scenario();\n" + " 0 iconst_1\n" + " 1 istore_0 [i]\n" + " 2 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 5 new java.lang.StringBuilder [40]\n" + " 8 dup\n" + " 9 ldc <String \"[i: \"> [42]\n" + " 11 invokespecial java.lang.StringBuilder(java.lang.String) [44]\n" + " 14 iload_0 [i]\n" + " 15 invokevirtual java.lang.StringBuilder.append(int) : java.lang.StringBuilder [46]\n" + " 18 ldc <String \"]\"> [50]\n" + " 20 invokevirtual java.lang.StringBuilder.append(java.lang.String) : java.lang.StringBuilder [52]\n" + " 23 invokevirtual java.lang.StringBuilder.toString() : java.lang.String [55]\n" + " 26 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 29 iload_0 [i]\n" + " 30 iconst_5\n" + " 31 if_icmple 61\n" + " 34 iload_0 [i]\n" + " 35 istore_2\n" + " 36 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 39 ldc <String \"[finally]\"> [62]\n" + " 41 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 44 invokestatic X.throwRuntime() : void [64]\n" + " 47 goto 56\n" + " 50 astore_3\n" + " 51 invokestatic X.clean() : void [67]\n" + " 54 aload_3\n" + " 55 athrow\n" + " 56 invokestatic X.clean() : void [67]\n" + " 59 iload_2\n" + " 60 ireturn\n" + " 61 iload_0 [i]\n" + " 62 ineg\n" + " 63 istore_2\n" + " 64 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 67 ldc <String \"[finally]\"> [62]\n" + " 69 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 72 invokestatic X.throwRuntime() : void [64]\n" + " 75 goto 84\n" + " 78 astore_3\n" + " 79 invokestatic X.clean() : void [67]\n" + " 82 aload_3\n" + " 83 athrow\n" + " 84 invokestatic X.clean() : void [67]\n" + " 87 iload_2\n" + " 88 ireturn\n" + " 89 astore_0 [e]\n" + " 90 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 93 ldc <String \"[WRONG CATCH]\"> [70]\n" + " 95 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 98 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 101 ldc <String \"[finally]\"> [62]\n" + " 103 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 106 invokestatic X.throwRuntime() : void [64]\n" + " 109 goto 118\n" + " 112 astore_3\n" + " 113 invokestatic X.clean() : void [67]\n" + " 116 aload_3\n" + " 117 athrow\n" + " 118 invokestatic X.clean() : void [67]\n" + " 121 iconst_2\n" + " 122 ireturn\n" + " 123 astore_1\n" + " 124 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 127 ldc <String \"[finally]\"> [62]\n" + " 129 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 132 invokestatic X.throwRuntime() : void [64]\n" + " 135 goto 144\n" + " 138 astore_3\n" + " 139 invokestatic X.clean() : void [67]\n" + " 142 aload_3\n" + " 143 athrow\n" + " 144 invokestatic X.clean() : void [67]\n" + " 147 aload_1\n" + " 148 athrow\n" + " Exception Table:\n" + " [pc: 44, pc: 50] -> 50 when : any\n" + " [pc: 72, pc: 78] -> 78 when : any\n" + " [pc: 0, pc: 36] -> 89 when : java.lang.Exception\n" + " [pc: 59, pc: 64] -> 89 when : java.lang.Exception\n" + " [pc: 87, pc: 89] -> 89 when : java.lang.Exception\n" + " [pc: 106, pc: 112] -> 112 when : any\n" + " [pc: 0, pc: 36] -> 123 when : any\n" + " [pc: 61, pc: 64] -> 123 when : any\n" + " [pc: 89, pc: 98] -> 123 when : any\n" + " [pc: 132, pc: 138] -> 138 when : any\n" : " // Method descriptor #19 ()I\n" + " // Stack: 4, Locals: 6\n" + " private static int scenario();\n" + " 0 iconst_1\n" + " 1 istore_0 [i]\n" + " 2 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 5 new java.lang.StringBuffer [40]\n" + " 8 dup\n" + " 9 ldc <String \"[i: \"> [42]\n" + " 11 invokespecial java.lang.StringBuffer(java.lang.String) [44]\n" + " 14 iload_0 [i]\n" + " 15 invokevirtual java.lang.StringBuffer.append(int) : java.lang.StringBuffer [46]\n" + " 18 ldc <String \"]\"> [50]\n" + " 20 invokevirtual java.lang.StringBuffer.append(java.lang.String) : java.lang.StringBuffer [52]\n" + " 23 invokevirtual java.lang.StringBuffer.toString() : java.lang.String [55]\n" + " 26 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 29 iload_0 [i]\n" + " 30 iconst_5\n" + " 31 if_icmple 41\n" + " 34 iload_0 [i]\n" + " 35 istore_3\n" + " 36 jsr 69\n" + " 39 iload_3\n" + " 40 ireturn\n" + " 41 iload_0 [i]\n" + " 42 ineg\n" + " 43 istore_3\n" + " 44 jsr 69\n" + " 47 iload_3\n" + " 48 ireturn\n" + " 49 astore_0 [e]\n" + " 50 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 53 ldc <String \"[WRONG CATCH]\"> [62]\n" + " 55 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 58 jsr 69\n" + " 61 iconst_2\n" + " 62 ireturn\n" + " 63 astore_2\n" + " 64 jsr 69\n" + " 67 aload_2\n" + " 68 athrow\n" + " 69 astore_1\n" + " 70 getstatic java.lang.System.out : java.io.PrintStream [20]\n" + " 73 ldc <String \"[finally]\"> [64]\n" + " 75 invokevirtual java.io.PrintStream.print(java.lang.String) : void [59]\n" + " 78 invokestatic X.throwRuntime() : void [66]\n" + " 81 goto 99\n" + " 84 astore 5\n" + " 86 jsr 92\n" + " 89 aload 5\n" + " 91 athrow\n" + " 92 astore 4\n" + " 94 invokestatic X.clean() : void [69]\n" + " 97 ret 4\n" + " 99 jsr 92\n" + " 102 ret 1\n" + " Exception Table:\n" + " [pc: 0, pc: 49] -> 49 when : java.lang.Exception\n" + " [pc: 0, pc: 39] -> 63 when : any\n" + " [pc: 41, pc: 47] -> 63 when : any\n" + " [pc: 49, pc: 61] -> 63 when : any\n" + " [pc: 78, pc: 84] -> 84 when : any\n" + " [pc: 99, pc: 102] -> 84 when : any\n"; try { File f = new File(OUTPUT_DIR + File.separator + "X.class"); byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(f); ClassFileBytesDisassembler disassembler = ToolFactory.createDefaultClassFileBytesDisassembler(); String result = disassembler.disassemble(classFileBytes, "\n", ClassFileBytesDisassembler.DETAILED); int index = result.indexOf(expectedOutput); if (index == -1 || expectedOutput.length() == 0) { System.out.println(Util.displayString(result, 3)); } if (index == -1) { assertEquals("Wrong contents", expectedOutput, result); } } catch (org.eclipse.jdt.core.util.ClassFormatException e) { assertTrue(false); } catch (IOException e) { assertTrue(false); } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e296d38bce70b50ae4223d7832ad4c72a95b5b55/TryStatementTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TryStatementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
4630,
24,
1435,
288,
202,
2211,
18,
2681,
442,
687,
4709,
12,
1082,
202,
2704,
514,
8526,
288,
9506,
202,
6,
60,
18,
6290,
3113,
9506,
202,
6,
482,
667,
1139,
18890,
82,
6,
397,
4697,
202,
12691,
82,
6,
397,
4697,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
4697,
202,
6,
202,
202,
698,
18890,
82,
6,
397,
4697,
202,
6,
1082,
202,
26405,
5621,
64,
82,
6,
397,
4697,
202,
6,
202,
202,
97,
1044,
12,
503,
425,
15329,
64,
82,
6,
397,
4697,
202,
6,
1082,
202,
3163,
18,
659,
18,
8222,
23031,
63,
409,
65,
2412,
20472,
82,
6,
397,
4697,
202,
6,
202,
202,
6280,
82,
6,
397,
4697,
202,
6,
202,
6280,
82,
6,
397,
4697,
202,
12691,
82,
6,
397,
4697,
202,
6,
202,
1152,
760,
509,
10766,
1435,
23241,
82,
6,
397,
4697,
202,
6,
202,
202,
698,
18890,
82,
6,
397,
4697,
202,
6,
1082,
202,
474,
277,
273,
404,
9747,
82,
6,
397,
4697,
202,
6,
1082,
202,
3163,
18,
659,
18,
1188,
23031,
63,
77,
30,
1239,
397,
277,
15,
2412,
65,
2412,
20472,
82,
6,
397,
4697,
202,
6,
1082,
202,
430,
261,
77,
405,
1381,
13,
18890,
82,
6,
397,
4697,
202,
6,
9506,
202,
2463,
277,
9747,
82,
6,
397,
4697,
202,
6,
1082,
202,
6280,
82,
6,
397,
4697,
202,
6,
1082,
202,
2463,
300,
77,
9747,
82,
6,
397,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
4630,
24,
1435,
288,
202,
2211,
18,
2681,
442,
687,
4709,
12,
1082,
202,
2704,
514,
8526,
288,
9506,
202,
6,
60,
18,
6290,
3113,
9506,
202,
6,
482,
667,
1139,
18890,
82,
6,
397,
4697,
202,
12691,
82,
6,
397,
4697,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
4697,
202,
6,
202,
202,
698,
18890,
82,
6,
397,
4697,
202,
6,
1082,
202,
26405,
5621,
64,
82,
6,
397,
4697,
202,
6,
202,
202,
97,
1044,
12,
503,
425,
15329,
64,
82,
6,
397,
4697,
202,
6,
1082,
202,
3163,
18,
659,
18,
8222,
23031,
63,
409,
65,
2412,
20472,
82,
6,
397,
4697,
202,
6,
2
] |
if (MylarPlugin.getDefault() != null && MylarPlugin.getDefault().getPreferenceStore().contains(MylarTaskListPrefConstants.TASK_ID)) { | if (MylarPlugin.getDefault() != null && MylarPlugin.getDefault().getPreferenceStore().contains(MylarTaskListPrefConstants.TASK_ID)) { | public MylarTaskListPlugin() { super(); INSTANCE = this;// List<ITaskListExternalizer> externalizers = new ArrayList<ITaskListExternalizer>(); try { initializeDefaultPreferences(getPrefs()); taskListWriter = new TaskListWriter(); String path = MylarPlugin.getDefault().getDataDirectory() + File.separator + DEFAULT_TASK_LIST_FILE; File taskListFile = new File(path); // TODO: decouple from core int nextTaskId = 1; if (MylarPlugin.getDefault() != null && MylarPlugin.getDefault().getPreferenceStore().contains(MylarTaskListPrefConstants.TASK_ID)) { // TODO: fix to MylarTaskListPlugin nextTaskId = MylarPlugin.getDefault().getPreferenceStore().getInt(MylarTaskListPrefConstants.TASK_ID); } taskListManager = new TaskListManager(taskListWriter, taskListFile, nextTaskId); taskRepositoryManager = new TaskRepositoryManager(); } catch (Exception e) { MylarStatusHandler.fail(e, "Mylar Task List initialization failed", false); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/306ce77122e592db6d0387fffc5ee6facce0a418/MylarTaskListPlugin.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8005,
7901,
2174,
682,
3773,
1435,
288,
202,
202,
9565,
5621,
202,
202,
13341,
273,
333,
31,
759,
202,
202,
682,
32,
1285,
835,
682,
6841,
1824,
34,
3903,
8426,
273,
394,
2407,
32,
1285,
835,
682,
6841,
1824,
34,
5621,
9506,
202,
698,
288,
1082,
202,
11160,
1868,
12377,
12,
588,
1386,
2556,
10663,
9506,
1875,
202,
4146,
682,
2289,
273,
394,
3837,
682,
2289,
5621,
25083,
202,
780,
589,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
751,
2853,
1435,
397,
1387,
18,
11287,
397,
3331,
67,
15580,
67,
7085,
67,
3776,
31,
1082,
202,
812,
1562,
682,
812,
273,
394,
1387,
12,
803,
1769,
25083,
202,
759,
2660,
30,
2109,
83,
2268,
628,
2922,
1082,
202,
474,
1024,
30182,
273,
404,
31,
1082,
202,
430,
261,
12062,
7901,
3773,
18,
588,
1868,
1435,
480,
446,
597,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
12298,
12,
12062,
7901,
2174,
682,
23218,
2918,
18,
15580,
67,
734,
3719,
288,
565,
368,
2660,
30,
2917,
358,
8005,
7901,
2174,
682,
3773,
9506,
202,
4285,
30182,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
588,
1702,
12,
12062,
7901,
2174,
682,
23218,
2918,
18,
15580,
67,
734,
1769,
1082,
202,
97,
1875,
202,
4146,
682,
1318,
273,
394,
3837,
682,
1318,
12,
4146,
682,
2289,
16,
1562,
682,
812,
16,
1024,
30182,
1769,
9506,
202,
4146,
3305,
1318,
273,
394,
3837,
3305,
1318,
5621,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8005,
7901,
2174,
682,
3773,
1435,
288,
202,
202,
9565,
5621,
202,
202,
13341,
273,
333,
31,
759,
202,
202,
682,
32,
1285,
835,
682,
6841,
1824,
34,
3903,
8426,
273,
394,
2407,
32,
1285,
835,
682,
6841,
1824,
34,
5621,
9506,
202,
698,
288,
1082,
202,
11160,
1868,
12377,
12,
588,
1386,
2556,
10663,
9506,
1875,
202,
4146,
682,
2289,
273,
394,
3837,
682,
2289,
5621,
25083,
202,
780,
589,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
751,
2853,
1435,
397,
1387,
18,
11287,
397,
3331,
67,
15580,
67,
7085,
67,
3776,
31,
1082,
202,
812,
1562,
682,
812,
273,
394,
1387,
12,
803,
1769,
25083,
202,
759,
2660,
30,
2109,
83,
2268,
2
] |
fieldPos.getFieldAttribut() == NumberFormat.Field.FRACTION)) | fieldPos.getFieldAttribute() == NumberFormat.Field.FRACTION)) | public StringBuffer format (double number, StringBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTEGER)) { int index = dest.length(); fieldPos.setBeginIndex(index - symbols.getNaN().length()); fieldPos.setEndIndex(index); } return dest; } boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != null) dest.append(negativePrefix); else { dest.append(symbols.getMinusSign()); dest.append(positivePrefix); } number = - number; } else dest.append(positivePrefix); int integerBeginIndex = dest.length(); int integerEndIndex = 0; if (Double.isInfinite (number)) { dest.append(symbols.getInfinity()); integerEndIndex = dest.length(); } else { number *= multiplier; // Compute exponent. long exponent = 0; double baseNumber; if (useExponentialNotation) { exponent = (long) Math.floor (Math.log(number) / Math.log(10)); if (minimumIntegerDigits > 0) exponent -= minimumIntegerDigits - 1; baseNumber = (number / Math.pow(10.0, exponent)); } else baseNumber = number; // Round to the correct number of digits. baseNumber += 5 * Math.pow(10.0, - maximumFractionDigits - 1); int index = dest.length(); double intPart = Math.floor(baseNumber); int count = 0; while (count < maximumIntegerDigits && (intPart > 0 || count < minimumIntegerDigits)) { long dig = (long) (intPart % 10); intPart = Math.floor(intPart / 10); // Append group separator if required. if (groupingUsed && count > 0 && groupingSize != 0 && count % groupingSize == 0) dest.insert(index, symbols.getGroupingSeparator()); dest.insert(index, (char) (symbols.getZeroDigit() + dig)); ++count; } integerEndIndex = dest.length(); int decimal_index = integerEndIndex; int consecutive_zeros = 0; int total_digits = 0; // Strip integer part from NUMBER. double fracPart = baseNumber - Math.floor(baseNumber); for (count = 0; count < maximumFractionDigits && (fracPart != 0 || count < minimumFractionDigits); ++count) { ++total_digits; fracPart *= 10; long dig = (long) fracPart; if (dig == 0) ++consecutive_zeros; else consecutive_zeros = 0; dest.append((char) (symbols.getZeroDigit() + dig)); // Strip integer part from FRACPART. fracPart = fracPart - Math.floor (fracPart); } // Strip extraneous trailing `0's. We can't always detect // these in the loop. int extra_zeros = Math.min (consecutive_zeros, total_digits - minimumFractionDigits); if (extra_zeros > 0) { dest.setLength(dest.length() - extra_zeros); total_digits -= extra_zeros; } // If required, add the decimal symbol. if (decimalSeparatorAlwaysShown || total_digits > 0) { dest.insert(decimal_index, symbols.getDecimalSeparator()); if (fieldPos != null && (fieldPos.getField() == FRACTION_FIELD || fieldPos.getFieldAttribut() == NumberFormat.Field.FRACTION)) { fieldPos.setBeginIndex(decimal_index + 1); fieldPos.setEndIndex(dest.length()); } } // Finally, print the exponent. if (useExponentialNotation) { dest.append(symbols.getExponential()); if (exponent < 0) { dest.append (symbols.getMinusSign ()); exponent = - exponent; } index = dest.length(); for (count = 0; exponent > 0 || count < minExponentDigits; ++count) { long dig = exponent % 10; exponent /= 10; dest.insert(index, (char) (symbols.getZeroDigit() + dig)); } } } if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTEGER)) { fieldPos.setBeginIndex(integerBeginIndex); fieldPos.setEndIndex(integerEndIndex); } dest.append((is_neg && negativeSuffix != null) ? negativeSuffix : positiveSuffix); return dest; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d82fdc2f3af331d8f8c5660ad462fea2f8710389/DecimalFormat.java/clean/libraries/javalib/java/text/DecimalFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6674,
740,
261,
9056,
1300,
16,
6674,
1570,
16,
9506,
1377,
2286,
2555,
652,
1616,
13,
225,
288,
565,
368,
432,
8572,
4582,
648,
18,
565,
309,
261,
5265,
18,
291,
21172,
12,
2696,
3719,
1377,
288,
202,
10488,
18,
6923,
12,
15536,
18,
588,
21172,
10663,
202,
430,
261,
1518,
1616,
480,
446,
597,
3196,
565,
261,
1518,
1616,
18,
588,
974,
1435,
422,
16481,
67,
6776,
747,
202,
377,
652,
1616,
18,
588,
974,
1499,
1435,
422,
29587,
18,
974,
18,
14217,
3719,
202,
225,
288,
202,
565,
509,
770,
273,
1570,
18,
2469,
5621,
202,
565,
652,
1616,
18,
542,
8149,
1016,
12,
1615,
300,
7963,
18,
588,
21172,
7675,
2469,
10663,
202,
565,
652,
1616,
18,
542,
24152,
12,
1615,
1769,
202,
225,
289,
202,
2463,
1570,
31,
1377,
289,
565,
1250,
353,
67,
14518,
273,
1300,
411,
374,
31,
565,
309,
261,
291,
67,
14518,
13,
1377,
288,
202,
430,
261,
13258,
2244,
480,
446,
13,
202,
225,
1570,
18,
6923,
12,
13258,
2244,
1769,
202,
12107,
202,
225,
288,
202,
565,
1570,
18,
6923,
12,
15536,
18,
588,
18434,
2766,
10663,
202,
565,
1570,
18,
6923,
12,
21094,
2244,
1769,
202,
225,
289,
202,
2696,
273,
300,
1300,
31,
1377,
289,
565,
469,
1377,
1570,
18,
6923,
12,
21094,
2244,
1769,
565,
509,
3571,
8149,
1016,
273,
1570,
18,
2469,
5621,
565,
509,
3571,
24152,
273,
374,
31,
565,
309,
261,
5265,
18,
291,
382,
9551,
261,
2696,
3719,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6674,
740,
261,
9056,
1300,
16,
6674,
1570,
16,
9506,
1377,
2286,
2555,
652,
1616,
13,
225,
288,
565,
368,
432,
8572,
4582,
648,
18,
565,
309,
261,
5265,
18,
291,
21172,
12,
2696,
3719,
1377,
288,
202,
10488,
18,
6923,
12,
15536,
18,
588,
21172,
10663,
202,
430,
261,
1518,
1616,
480,
446,
597,
3196,
565,
261,
1518,
1616,
18,
588,
974,
1435,
422,
16481,
67,
6776,
747,
202,
377,
652,
1616,
18,
588,
974,
1499,
1435,
422,
29587,
18,
974,
18,
14217,
3719,
202,
225,
288,
202,
565,
509,
770,
273,
1570,
18,
2469,
5621,
202,
565,
652,
1616,
18,
542,
8149,
1016,
12,
1615,
300,
7963,
18,
588,
21172,
7675,
2469,
10663,
202,
565,
2
] |
} | } | public View getNext() { return next; } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/693b1cbf063a472c935e4e227f8dc5c374f91c12/View.java/buggy/org/gjt/sp/jedit/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
6927,
1435,
202,
95,
202,
202,
2463,
1024,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
6927,
1435,
202,
95,
202,
202,
2463,
1024,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); | public quickfix.field.CreditRating getCreditRating() throws FieldNotFound { quickfix.field.CreditRating value = new quickfix.field.CreditRating(); | public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositionsAck.java/clean/src/java/src/quickfix/fix44/RequestForPositionsAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_3R_295()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_330()) { jj_scanpos = xsp; break; } } | if (jj_scan_token(XOR_ASSIGN)) return true; if (jj_3R_99()) return true; | final private boolean jj_3R_284() { if (jj_3R_295()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_330()) { jj_scanpos = xsp; break; } } return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5193,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
29286,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
3707,
20,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5193,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
29286,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
3707,
20,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
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
] |
buildPreference = new Button(parent, SWT.CHECK); buildPreference.setText("Restore 2.1 rebuild actions for this session"); buildPreference.setSelection(WorkbenchActionBuilder.INCLUDE_REBUILD_ACTIONS); buildPreference.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { WorkbenchActionBuilder.setIncludeRebuildActions(buildPreference.getSelection()); } }); } | buildPreference = new Button(parent, SWT.CHECK | SWT.TOP); buildPreference.setText("Restore 2.1 rebuild actions for this session"); buildPreference .setSelection(WorkbenchActionBuilder.INCLUDE_REBUILD_ACTIONS); buildPreference.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { WorkbenchActionBuilder.setIncludeRebuildActions(buildPreference .getSelection()); } }); } | private void createBuildControls(Composite parent) { buildPreference = new Button(parent, SWT.CHECK); buildPreference.setText("Restore 2.1 rebuild actions for this session"); //$NON-NLS-1$ buildPreference.setSelection(WorkbenchActionBuilder.INCLUDE_REBUILD_ACTIONS); buildPreference.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { WorkbenchActionBuilder.setIncludeRebuildActions(buildPreference.getSelection()); } }); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3116,
16795,
12,
9400,
982,
13,
288,
202,
202,
3510,
9624,
273,
394,
12569,
12,
2938,
16,
348,
8588,
18,
10687,
1769,
202,
202,
3510,
9624,
18,
542,
1528,
2932,
10874,
576,
18,
21,
13419,
4209,
364,
333,
1339,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3510,
9624,
18,
542,
6233,
12,
2421,
22144,
1803,
1263,
18,
26003,
67,
862,
20215,
67,
12249,
55,
1769,
202,
202,
3510,
9624,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
2421,
22144,
1803,
1263,
18,
542,
8752,
426,
3510,
6100,
12,
3510,
9624,
18,
588,
6233,
10663,
1082,
202,
97,
202,
202,
22938,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3116,
16795,
12,
9400,
982,
13,
288,
202,
202,
3510,
9624,
273,
394,
12569,
12,
2938,
16,
348,
8588,
18,
10687,
1769,
202,
202,
3510,
9624,
18,
542,
1528,
2932,
10874,
576,
18,
21,
13419,
4209,
364,
333,
1339,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3510,
9624,
18,
542,
6233,
12,
2421,
22144,
1803,
1263,
18,
26003,
67,
862,
20215,
67,
12249,
55,
1769,
202,
202,
3510,
9624,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
2421,
22144,
1803,
1263,
18,
542,
8752,
426,
3510,
6100,
12,
3510,
9624,
18,
588,
6233,
10663,
1082,
2
] |
handleItemFull(contentHandler, xhtmlPrefix, spanQName, controlInfo, effectiveId, fullItemType, item, isFirst); isFirst = false; | handleItemFull(contentHandler, xhtmlPrefix, spanQName, controlInfo, id, effectiveId, fullItemType, item, itemIndex); | public void end(String uri, String localname, String qName) throws SAXException { final ContentHandler contentHandler = handlerContext.getController().getOutput(); final Select1ControlInfo controlInfo = (Select1ControlInfo) (handlerContext.isGenerateTemplate() ? null : (ControlInfo) containingDocument.getObjectById(pipelineContext, effectiveId)); final boolean isMany = localname.equals("select"); String appearanceValue; { final String appearanceAttribute = elementAttributes.getValue("appearance"); if (appearanceAttribute != null) appearanceValue = appearanceAttribute; else if (isMany) appearanceValue = "compact";// default for xforms:select else appearanceValue = "minimal";// default for xforms:select1 } String appearanceLocalname = XMLUtils.localNameFromQName(appearanceValue); String appearanceURI = uriFromQName(appearanceValue); boolean isOpenSelection = "open".equals(elementAttributes.getValue("selection")); boolean isAutocomplete = isOpenSelection && XFormsConstants.XXFORMS_NAMESPACE_URI.equals(appearanceURI) && "autocomplete".equals(appearanceLocalname); // NOTE: We don't support autocompletion with xforms:select for now, only with xforms:select1 if (isAutocomplete && isMany) { appearanceValue = "compact"; appearanceLocalname = appearanceValue; appearanceURI = ""; isOpenSelection = false; isAutocomplete = false; } final boolean isFull = "full".equals(appearanceLocalname); final boolean isTree = XFormsConstants.XXFORMS_NAMESPACE_URI.equals(appearanceURI) && ("tree".equals(appearanceLocalname)); final boolean isMenu = XFormsConstants.XXFORMS_NAMESPACE_URI.equals(appearanceURI) && ("menu".equals(appearanceLocalname)); final boolean isAutocompleteNoFilter = isAutocomplete && "false".equals(elementAttributes.getValue(XFormsConstants.XXFORMS_NAMESPACE_URI, "filter")); // xforms:label handleLabelHintHelpAlert(effectiveId, "label", controlInfo); final AttributesImpl newAttributes; { final StringBuffer classes = new StringBuffer("xforms-control"); if (isMany) { classes.append(" xforms-select-"); } else { classes.append(" xforms-select1-"); } classes.append(appearanceLocalname); if (isOpenSelection) classes.append(" xforms-select1-open"); if (isAutocompleteNoFilter) classes.append(" xforms-select1-open-autocomplete-nofilter"); if (isTree) classes.append(" xforms-initially-hidden"); if (!handlerContext.isGenerateTemplate()) { handleMIPClasses(classes, controlInfo); newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } else { newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } } final String xhtmlPrefix = handlerContext.findXHTMLPrefix(); if (isFull) { final String fullItemType = isMany ? "checkbox" : "radio"; final String spanQName = XMLUtils.buildQName(xhtmlPrefix, "span"); { contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName, newAttributes); boolean isFirst = true; for (Iterator i = items.iterator(); i.hasNext();) { final Select1ControlInfo.Item item = (Select1ControlInfo.Item) i.next(); handleItemFull(contentHandler, xhtmlPrefix, spanQName, controlInfo, effectiveId, fullItemType, item, isFirst); isFirst = false; } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName); } if (hasItemset) { // Produce template reusableAttributes.clear(); reusableAttributes.addAttribute("", "id", "id", ContentHandlerHelper.CDATA, "xforms-select-template-" + effectiveId); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "xforms-select-template"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName, reusableAttributes); handleItemFull(contentHandler, xhtmlPrefix, spanQName, null, effectiveId, fullItemType, new Select1ControlInfo.Item(true, itemsetAttributes, "$xforms-template-label$", "$xforms-template-value$", 1), false); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName); // TODO: in the future we should be able to handle multiple itemsets } } else { if (isOpenSelection) { if (isAutocomplete) { // Create xhtml:span final String spanQName = XMLUtils.buildQName(xhtmlPrefix, "span"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName, newAttributes); { { // Create xhtml:input final String inputQName = XMLUtils.buildQName(xhtmlPrefix, "input"); reusableAttributes.clear(); reusableAttributes.addAttribute("", "type", "type", ContentHandlerHelper.CDATA, "text"); reusableAttributes.addAttribute("", "name", "name", ContentHandlerHelper.CDATA, "xforms-select1-open-input-" + effectiveId); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "xforms-select1-open-input"); reusableAttributes.addAttribute("", "autocomplete", "autocomplete", ContentHandlerHelper.CDATA, "off"); final String value = (controlInfo == null) ? null : controlInfo.getValue(); reusableAttributes.addAttribute("", "value", "value", ContentHandlerHelper.CDATA, (value == null) ? "" : value); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "input", inputQName, reusableAttributes); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "input", inputQName); } { // Create xhtml:select final String selectQName = XMLUtils.buildQName(xhtmlPrefix, "select"); reusableAttributes.clear(); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "xforms-select1-open-select"); if ("compact".equals(appearanceLocalname)) reusableAttributes.addAttribute("", "multiple", "multiple", ContentHandlerHelper.CDATA, "multiple"); // Handle accessibility attributes handleAccessibilityAttributes(elementAttributes, reusableAttributes); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "select", selectQName, reusableAttributes); final String optionQName = XMLUtils.buildQName(xhtmlPrefix, "option"); handleItemCompact(contentHandler, optionQName, controlInfo, isMany, new Select1ControlInfo.Item(false, new AttributesImpl(), "", "", 1)); for (Iterator i = items.iterator(); i.hasNext();) { final Select1ControlInfo.Item item = (Select1ControlInfo.Item) i.next(); if (item.getValue() != null) handleItemCompact(contentHandler, optionQName, controlInfo, isMany, item); } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "select", selectQName); } } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName); } else { // We do not support other appearances or regular open selection for now throw new OXFException("Open selection currently only supports the xxforms:autocomplete appearance."); // TODO: Use ValidationException. } } else if (isTree) { // xxforms:tree appearance // Create xhtml:div with tree info final String divQName = XMLUtils.buildQName(xhtmlPrefix, "div"); handleReadOnlyAttribute(newAttributes, controlInfo); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName, newAttributes); outputJSONTreeInfo(controlInfo, isMany, contentHandler); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName); } else if (isMenu) { // xxforms:menu appearance // Create enclosing xhtml:div final String divQName = XMLUtils.buildQName(xhtmlPrefix, "div"); final String ulQName = XMLUtils.buildQName(xhtmlPrefix, "ul"); final String liQName = XMLUtils.buildQName(xhtmlPrefix, "li"); final String aQName = XMLUtils.buildQName(xhtmlPrefix, "a"); handleReadOnlyAttribute(newAttributes, controlInfo); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName, newAttributes); // Create xhtml:div with initial menu entries reusableAttributes.clear(); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "yuimenubar"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName, reusableAttributes); { reusableAttributes.clear(); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "bd"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName, reusableAttributes); { reusableAttributes.clear(); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "first"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "ul", ulQName, reusableAttributes); { reusableAttributes.clear(); int index = 0; for (Iterator j = items.iterator(); j.hasNext(); index++) { final Select1ControlInfo.Item currentItem = (Select1ControlInfo.Item) j.next(); // Only care about item at level 1 if (currentItem.getLevel() != 1) continue; reusableAttributes.clear(); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, (index == 0) ? "yuimenubaritem first" : "yuimenubaritem"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "li", liQName, reusableAttributes); { reusableAttributes.clear(); reusableAttributes.addAttribute("", "href", "href", ContentHandlerHelper.CDATA, "#"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "a", aQName, reusableAttributes); final String text = currentItem.getLabel(); contentHandler.characters(text.toCharArray(), 0, text.length()); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "a", aQName); } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "li", liQName); } } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "ul", ulQName); } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName); } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName); // Create xhtml:div with tree info reusableAttributes.clear(); reusableAttributes.addAttribute("", "class", "class", ContentHandlerHelper.CDATA, "xforms-initially-hidden"); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName, reusableAttributes); outputJSONTreeInfo(controlInfo, isMany, contentHandler); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "div", divQName); } else { // Create xhtml:select final String selectQName = XMLUtils.buildQName(xhtmlPrefix, "select"); if ("compact".equals(appearanceLocalname)) newAttributes.addAttribute("", "multiple", "multiple", ContentHandlerHelper.CDATA, "multiple"); // Handle accessibility attributes handleAccessibilityAttributes(elementAttributes, newAttributes); handleReadOnlyAttribute(newAttributes, controlInfo); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "select", selectQName, newAttributes); final String optionQName = XMLUtils.buildQName(xhtmlPrefix, "option"); final String optGroupQName = XMLUtils.buildQName(xhtmlPrefix, "optgroup"); int level = 0; for (Iterator j = items.iterator(); j.hasNext();) { final Select1ControlInfo.Item currentItem = (Select1ControlInfo.Item) j.next(); final String value = currentItem.getValue(); final int newLevel = currentItem.getLevel(); if (level - newLevel > 0) { // We are going down one or more levels for (int i = newLevel; i < level; i++) { // End xhtml:optgroup contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "optgroup", optGroupQName); } } if (value == null) { // Starting a new group final String label = currentItem.getLabel(); final AttributesImpl optGroupAttributes = getAttributes(currentItem.getAttributes(), null, null); if (label != null) optGroupAttributes.addAttribute("", "label", "label", ContentHandlerHelper.CDATA, label); // Start xhtml:optgroup contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "optgroup", optGroupQName, optGroupAttributes); } else { // Adding a new item handleItemCompact(contentHandler, optionQName, controlInfo, isMany, currentItem); } level = newLevel; } // Close brackets for (int i = level; i > 1; i--) { // End xhtml:optgroup contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "optgroup", optGroupQName); } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "select", selectQName); } } // xforms:help handleLabelHintHelpAlert(effectiveId, "help", controlInfo); // xforms:alert handleLabelHintHelpAlert(effectiveId, "alert", controlInfo); // xforms:hint handleLabelHintHelpAlert(effectiveId, "hint", controlInfo); } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/7140df605b40bd1b6f8ef73c5d1f0dc9e72d7d3b/XFormsSelect1Handler.java/buggy/src/java/org/orbeon/oxf/xforms/processor/handlers/XFormsSelect1Handler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
13,
1216,
14366,
288,
3639,
727,
3697,
1503,
913,
1503,
273,
1838,
1042,
18,
588,
2933,
7675,
588,
1447,
5621,
3639,
727,
6766,
21,
3367,
966,
3325,
966,
273,
261,
3391,
21,
3367,
966,
13,
261,
4176,
1042,
18,
291,
4625,
2283,
1435,
7734,
692,
446,
294,
261,
3367,
966,
13,
4191,
2519,
18,
588,
921,
5132,
12,
14511,
1042,
16,
11448,
548,
10019,
3639,
727,
1250,
353,
5594,
273,
1191,
529,
18,
14963,
2932,
4025,
8863,
3639,
514,
9788,
1359,
620,
31,
3639,
288,
5411,
727,
514,
9788,
1359,
1499,
273,
930,
2498,
18,
24805,
2932,
438,
27668,
8863,
5411,
309,
261,
438,
27668,
1499,
480,
446,
13,
7734,
9788,
1359,
620,
273,
9788,
1359,
1499,
31,
5411,
469,
309,
261,
291,
5594,
13,
7734,
9788,
1359,
620,
273,
315,
21038,
14432,
759,
805,
364,
619,
9741,
30,
4025,
5411,
469,
7734,
9788,
1359,
620,
273,
315,
1154,
2840,
14432,
759,
805,
364,
619,
9741,
30,
4025,
21,
3639,
289,
3639,
514,
9788,
1359,
2042,
529,
273,
3167,
1989,
18,
3729,
461,
1265,
13688,
12,
438,
27668,
620,
1769,
3639,
514,
9788,
1359,
3098,
273,
2003,
1265,
13688,
12,
438,
27668,
620,
1769,
3639,
1250,
16633,
6233,
273,
315,
3190,
9654,
14963,
12,
2956,
2498,
18,
24805,
2932,
10705,
7923,
1769,
3639,
1250,
353,
7150,
12760,
273,
16633,
6233,
7734,
597,
1139,
18529,
2918,
18,
5619,
4983,
55,
67,
11368,
67,
3098,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
13,
1216,
14366,
288,
3639,
727,
3697,
1503,
913,
1503,
273,
1838,
1042,
18,
588,
2933,
7675,
588,
1447,
5621,
3639,
727,
6766,
21,
3367,
966,
3325,
966,
273,
261,
3391,
21,
3367,
966,
13,
261,
4176,
1042,
18,
291,
4625,
2283,
1435,
7734,
692,
446,
294,
261,
3367,
966,
13,
4191,
2519,
18,
588,
921,
5132,
12,
14511,
1042,
16,
11448,
548,
10019,
3639,
727,
1250,
353,
5594,
273,
1191,
529,
18,
14963,
2932,
4025,
8863,
3639,
514,
9788,
1359,
620,
31,
3639,
288,
5411,
727,
514,
9788,
1359,
1499,
273,
930,
2498,
18,
24805,
2932,
438,
27668,
8863,
5411,
309,
261,
438,
27668,
2
] |
return scope; | return global; | public static ScriptableObject getScope() { return scope; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8d348ad77ead316774c893fbf3cadb3ad8c1050a/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
921,
19203,
1435,
288,
3639,
327,
2552,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
921,
19203,
1435,
288,
3639,
327,
2552,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private boolean tryInlineSimpleMethodCall(JMethodCall x, Mutator m, JMethod method, JReturnStatement returnStmt) { List/* <JParameter> */params = method.params; HolderList args = x.args; ChangeList changes = new ChangeList("Inline a call to simple method '" + method + "'"); // the expression returned by the inlined method, if any Mutator resultExpression; // the argument that is returned by the inlined method, if any int magicArg[] = new int[1]; JExpression targetReturnExpr = returnStmt.getExpression(); resultExpression = canInlineResultExpression(targetReturnExpr, params, args, magicArg, changes); if (resultExpression == null) { return false; // cannot inline } // the argument that is returned by the inlined method int iMagicArg = magicArg[0]; JMultiExpression multi = new JMultiExpression(program); // Evaluate the instance argument (we can one even with static calls) JExpression instance = x.getInstance(); if (instance != null && instance.hasSideEffects()) { changes.addExpression(x.instance, multi.exprs); } // Now evaluate any side-effect args that aren't the magic arg. for (int i = 0; i < params.size(); ++i) { if (args.getExpr(i).hasSideEffects()) { if (i < iMagicArg) { // evaluate this arg inside of the multi changes.addExpression(args.getMutator(i), multi.exprs); } else if (i == iMagicArg) { // skip this arg, we'll do it below as the final one } else { assert (i > iMagicArg); /* * ABORT ABORT ABORT! This would cause an out-of-order evalutation. * Due to the way we construct multis, the magic arg must come last. * However, we've encountered a case where an argument coming after * the magic arg must be evaluated. Just bail. */ return false; } } } // add in the result expression as the last item in the multi changes.addExpression(resultExpression, multi.exprs); changes.replaceExpression(m, multi); changeList.add(changes); return true; } | 25983 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25983/0787e5e3ea53929a53f6f648a9c4e2ca7f10b9b6/MethodInliner.java/clean/dev/core/src/com/google/gwt/dev/jjs/impl/MethodInliner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
775,
10870,
5784,
12592,
12,
46,
12592,
619,
16,
14138,
639,
312,
16,
3639,
804,
1305,
707,
16,
804,
990,
3406,
327,
8952,
13,
288,
1377,
987,
20308,
411,
46,
1662,
34,
1195,
2010,
273,
707,
18,
2010,
31,
1377,
670,
1498,
682,
833,
273,
619,
18,
1968,
31,
1377,
7576,
682,
3478,
273,
394,
7576,
682,
2932,
10870,
279,
745,
358,
4143,
707,
2119,
1850,
397,
707,
397,
5862,
1769,
1377,
368,
326,
2652,
2106,
635,
326,
316,
22316,
707,
16,
309,
1281,
1377,
14138,
639,
563,
2300,
31,
1377,
368,
326,
1237,
716,
353,
2106,
635,
326,
316,
22316,
707,
16,
309,
1281,
1377,
509,
8146,
4117,
8526,
273,
394,
509,
63,
21,
15533,
1377,
804,
2300,
1018,
990,
4742,
273,
327,
8952,
18,
588,
2300,
5621,
1377,
563,
2300,
273,
848,
10870,
1253,
2300,
12,
3299,
990,
4742,
16,
859,
16,
1850,
833,
16,
8146,
4117,
16,
3478,
1769,
1377,
309,
261,
2088,
2300,
422,
446,
13,
288,
3639,
327,
629,
31,
368,
2780,
6370,
1377,
289,
1377,
368,
326,
1237,
716,
353,
2106,
635,
326,
316,
22316,
707,
1377,
509,
277,
19289,
4117,
273,
8146,
4117,
63,
20,
15533,
1377,
804,
5002,
2300,
3309,
273,
394,
804,
5002,
2300,
12,
12890,
1769,
1377,
368,
18176,
326,
791,
1237,
261,
1814,
848,
1245,
5456,
598,
760,
4097,
13,
1377,
804,
2300,
791,
273,
619,
18,
588,
1442,
5621,
1377,
309,
261,
1336,
480,
446,
597,
791,
18,
5332,
8895,
29013,
10756,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
775,
10870,
5784,
12592,
12,
46,
12592,
619,
16,
14138,
639,
312,
16,
3639,
804,
1305,
707,
16,
804,
990,
3406,
327,
8952,
13,
288,
1377,
987,
20308,
411,
46,
1662,
34,
1195,
2010,
273,
707,
18,
2010,
31,
1377,
670,
1498,
682,
833,
273,
619,
18,
1968,
31,
1377,
7576,
682,
3478,
273,
394,
7576,
682,
2932,
10870,
279,
745,
358,
4143,
707,
2119,
1850,
397,
707,
397,
5862,
1769,
1377,
368,
326,
2652,
2106,
635,
326,
316,
22316,
707,
16,
309,
1281,
1377,
14138,
639,
563,
2300,
31,
1377,
368,
326,
1237,
716,
353,
2106,
635,
326,
316,
22316,
707,
16,
309,
1281,
1377,
509,
8146,
4117,
8526,
273,
394,
509,
63,
21,
15533,
2
] |
||
List cmptList = new ArrayList(); | List cmptList = new ArrayList( ); | private void prepare( IResultClass resultClass ) throws DataException { assert resultClass!=null; // identify those computed columns that are projected // in the result set by checking the result metadata List cmptList = new ArrayList(); for ( int i = 0; i < ccList.size( ); i++ ) { IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( i ); int cmptdColumnIdx = resultClass.getFieldIndex( cmptdColumn.getName( ) ); // check if given field name is found in result set metadata, and // is indeed declared as a custom field if ( cmptdColumnIdx >= 1 && resultClass.isCustomField( cmptdColumnIdx ) ) cmptList.add(new Integer(i)); // else computed column is not projected, skip to next computed // column } int size = cmptList.size( ); columnExprArray = new IBaseExpression[size]; columnIndexArray = new int[size]; for ( int i = 0; i < size; i++ ) { int pos = ( (Integer) cmptList.get( i ) ).intValue( ); IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( pos ); columnExprArray[i] = cmptdColumn.getExpression( ); columnIndexArray[i] = resultClass.getFieldIndex( cmptdColumn.getName( ) ); } isPrepared = true; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5b0f29da380ae7a8fe40b0dc02d4ff08bac49ce7/ComputedColumnHelper.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ComputedColumnHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2911,
12,
467,
1253,
797,
563,
797,
262,
1216,
1910,
503,
202,
95,
202,
202,
11231,
563,
797,
5,
33,
2011,
31,
9506,
202,
759,
9786,
5348,
8470,
2168,
716,
854,
20939,
202,
202,
759,
316,
326,
563,
444,
635,
6728,
326,
563,
1982,
202,
202,
682,
5003,
337,
682,
273,
394,
2407,
5621,
9506,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
4946,
682,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
45,
17934,
1494,
5003,
337,
72,
1494,
273,
261,
45,
17934,
1494,
13,
4946,
682,
18,
588,
12,
277,
11272,
1082,
202,
474,
5003,
337,
72,
1494,
4223,
273,
563,
797,
18,
588,
974,
1016,
12,
5003,
337,
72,
1494,
18,
17994,
12,
262,
11272,
1082,
202,
759,
866,
309,
864,
652,
508,
353,
1392,
316,
563,
444,
1982,
16,
471,
1082,
202,
759,
353,
316,
323,
329,
7886,
487,
279,
1679,
652,
1082,
202,
430,
261,
5003,
337,
72,
1494,
4223,
1545,
404,
6862,
202,
10,
10,
563,
797,
18,
291,
3802,
974,
12,
5003,
337,
72,
1494,
4223,
262,
262,
9506,
202,
7670,
337,
682,
18,
1289,
12,
2704,
2144,
12,
77,
10019,
1082,
202,
759,
469,
8470,
1057,
353,
486,
20939,
16,
2488,
358,
1024,
8470,
1082,
202,
759,
1057,
202,
202,
97,
9506,
202,
474,
963,
273,
5003,
337,
682,
18,
1467,
12,
11272,
202,
202,
2827,
4742,
1076,
273,
394,
467,
2171,
2300,
63,
1467,
15533,
202,
202,
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,
225,
202,
1152,
918,
2911,
12,
467,
1253,
797,
563,
797,
262,
1216,
1910,
503,
202,
95,
202,
202,
11231,
563,
797,
5,
33,
2011,
31,
9506,
202,
759,
9786,
5348,
8470,
2168,
716,
854,
20939,
202,
202,
759,
316,
326,
563,
444,
635,
6728,
326,
563,
1982,
202,
202,
682,
5003,
337,
682,
273,
394,
2407,
5621,
9506,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
4946,
682,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
45,
17934,
1494,
5003,
337,
72,
1494,
273,
261,
45,
17934,
1494,
13,
4946,
682,
18,
588,
12,
277,
11272,
1082,
202,
474,
5003,
337,
72,
1494,
4223,
273,
563,
797,
18,
588,
974,
1016,
12,
2
] |
return new x10.lang.genericArray.factory() { public GenericReferenceArray GenericReferenceArray(dist d, Parameter1 c) { return new GenericArray_c( d, c, true); } public GenericReferenceArray GenericReferenceArray(dist d, x10.lang.genericArray.pointwiseOp f) { return new GenericArray_c( d, f, true); } public x10.lang.genericArray GenericValueArray(dist d, Parameter1 c) { return new GenericArray_c(d, c, true, false); } public x10.lang.genericArray GenericValueArray(dist d, x10.lang.genericArray.pointwiseOp f) { return new GenericArray_c(d, f, true, false); } }; } | return new x10.lang.genericArray.factory() { public GenericReferenceArray GenericReferenceArray(dist d, Parameter1 c) { return new GenericArray_c( d, c, true); } public GenericReferenceArray GenericReferenceArray(dist d, x10.lang.genericArray.pointwiseOp f) { return new GenericArray_c( d, f, true); } public x10.lang.genericArray GenericValueArray(dist d, Parameter1 c, boolean refs_to_values) { return new GenericArray_c(d, c, true, false, refs_to_values); } public x10.lang.genericArray GenericValueArray(dist d, x10.lang.genericArray.pointwiseOp f, boolean refs_to_values) { return new GenericArray_c(d, f, true, false, refs_to_values); } }; } | public GenericArray.factory getGenericArrayFactory() { return new x10.lang.genericArray.factory() { public GenericReferenceArray GenericReferenceArray(dist d, Parameter1 c) { return new GenericArray_c( d, c, true); } public GenericReferenceArray GenericReferenceArray(dist d, x10.lang.genericArray.pointwiseOp f) { return new GenericArray_c( d, f, true); } public x10.lang.genericArray GenericValueArray(dist d, Parameter1 c) { return new GenericArray_c(d, c, true, false); } public x10.lang.genericArray GenericValueArray(dist d, x10.lang.genericArray.pointwiseOp f) { return new GenericArray_c(d, f, true, false); } }; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/acfeebc11baafec801adc2146699b1f17047c763/DefaultRuntime_c.java/buggy/x10.runtime/src/x10/runtime/DefaultRuntime_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
7928,
1076,
18,
6848,
20135,
1076,
1733,
1435,
288,
2398,
202,
2463,
394,
619,
2163,
18,
4936,
18,
13540,
1076,
18,
6848,
1435,
288,
2398,
202,
202,
482,
7928,
2404,
1076,
7928,
2404,
1076,
12,
4413,
302,
16,
5498,
21,
276,
13,
288,
2398,
1082,
202,
2463,
394,
7928,
1076,
67,
71,
12,
302,
16,
276,
16,
638,
1769,
2398,
202,
202,
97,
2398,
202,
202,
482,
7928,
2404,
1076,
7928,
2404,
1076,
12,
4413,
302,
16,
619,
2163,
18,
4936,
18,
13540,
1076,
18,
1153,
2460,
3817,
284,
13,
288,
2398,
1082,
202,
2463,
394,
7928,
1076,
67,
71,
12,
302,
16,
284,
16,
638,
1769,
2398,
202,
202,
97,
2398,
202,
202,
482,
619,
2163,
18,
4936,
18,
13540,
1076,
7928,
620,
1076,
12,
4413,
302,
16,
5498,
21,
276,
13,
288,
2398,
1082,
202,
2463,
394,
7928,
1076,
67,
71,
12,
72,
16,
276,
16,
638,
16,
629,
1769,
2398,
202,
202,
97,
2398,
202,
202,
482,
619,
2163,
18,
4936,
18,
13540,
1076,
7928,
620,
1076,
12,
4413,
302,
16,
619,
2163,
18,
4936,
18,
13540,
1076,
18,
1153,
2460,
3817,
284,
13,
288,
2398,
1082,
202,
2463,
394,
7928,
1076,
67,
71,
12,
72,
16,
284,
16,
638,
16,
629,
1769,
2398,
202,
202,
97,
2398,
202,
20451,
2398,
202,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
7928,
1076,
18,
6848,
20135,
1076,
1733,
1435,
288,
2398,
202,
2463,
394,
619,
2163,
18,
4936,
18,
13540,
1076,
18,
6848,
1435,
288,
2398,
202,
202,
482,
7928,
2404,
1076,
7928,
2404,
1076,
12,
4413,
302,
16,
5498,
21,
276,
13,
288,
2398,
1082,
202,
2463,
394,
7928,
1076,
67,
71,
12,
302,
16,
276,
16,
638,
1769,
2398,
202,
202,
97,
2398,
202,
202,
482,
7928,
2404,
1076,
7928,
2404,
1076,
12,
4413,
302,
16,
619,
2163,
18,
4936,
18,
13540,
1076,
18,
1153,
2460,
3817,
284,
13,
288,
2398,
1082,
202,
2463,
394,
7928,
1076,
67,
71,
12,
302,
16,
284,
16,
638,
1769,
2398,
202,
202,
97,
2398,
202,
202,
482,
619,
2163,
2
] |
try { ILockableEntityGroup lockableGroup2 = findLockableGroup(groupKeys[0]); } | try { ILockableEntityGroup lockableGroup2 = findLockableGroup(groupKeys[0]); } | public void testUpdateLockableGroups() throws Exception{ print(CR + "***** ENTERING GroupsTester.testUpdateLockableGroups() *****" + CR); String msg = null; Class type = TEST_ENTITY_CLASS; int totNumGroups = 3; int totNumEntities = 5; IEntityGroup[] groups = new IEntityGroup[totNumGroups]; IEntity[] entities = new IEntity[totNumEntities]; IGroupMember[] groupMembers = null; Iterator itr = null; ArrayList list = null; int idx = 0; boolean testValue = false; Exception e = null; msg = "Creating " + totNumGroups + " new groups."; print(msg); for (idx=0; idx<totNumGroups; idx++) { groups[idx] = getNewGroup(); groups[idx].update(); assertNotNull(msg, groups[idx]); groups[idx].update(); } msg = "Getting group keys."; print(msg); String[] groupKeys = new String[totNumGroups]; for (idx=0; idx<totNumGroups; idx++) { groupKeys[idx] = groups[idx].getKey(); } msg = "Retrieving lockable group for key " + groupKeys[0]; print(msg); ILockableEntityGroup lockableGroup1 = findLockableGroup(groupKeys[0]); testValue = lockableGroup1.getLock().isValid(); assertTrue(msg, testValue); msg = "Retrieving a duplicate lockable group for key " + groupKeys[0] + " (should FAIL)"; print(msg); try { ILockableEntityGroup lockableGroup2 = findLockableGroup(groupKeys[0]); } catch (GroupsException ge) {e = ge;} assertNotNull(msg, e); e = null; msg = "Checking lock of first group"; print(msg); testValue = lockableGroup1.getLock().isValid(); assertTrue(msg, testValue); String oldName = lockableGroup1.getName(); String newName = "NEW GROUP NAME"; msg = "Update name of lockable group but do not commit."; print(msg); lockableGroup1.setName(newName); assertEquals(msg, newName, lockableGroup1.getName()); msg = "Checking lock of first group"; print(msg); testValue = lockableGroup1.getLock().isValid(); assertTrue(msg, testValue); msg = "Retrieving duplicate group from service; change should NOT be visible."; print(msg); IEntityGroup nonLockableGroup = findGroup(groupKeys[0]); assertEquals(msg, oldName, nonLockableGroup.getName()); msg = "Checking lock of first group"; print(msg); testValue = lockableGroup1.getLock().isValid(); assertTrue(msg, testValue); msg = "Committing change to lockable group"; print(msg); lockableGroup1.update(); testValue = lockableGroup1.getLock().isValid(); assertTrue(msg, ! testValue); msg = "Retrieving duplicate group from service; change should be visible now."; print(msg); nonLockableGroup = findGroup(groupKeys[0]); assertEquals(msg, newName, nonLockableGroup.getName()); msg = "Attempting to delete old version of group " + groupKeys[0] + " (should FAIL.)"; print(msg); try { lockableGroup1.delete(); } catch (GroupsException ge) {e = ge;} assertNotNull(msg, e); e = null; msg = "Attempting to delete NEW version of group " + groupKeys[0]; print(msg); ILockableEntityGroup lockableGroup3 = findLockableGroup(groupKeys[0]); lockableGroup3.delete(); nonLockableGroup = findGroup(groupKeys[0]); assertNull(msg, nonLockableGroup); print(CR + "***** LEAVING GroupsTester.testUpdateLockableGroups() *****" + CR);} | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/9f1a2c9f136a5d4a93dcad3fffe3d8e96b35e3bd/GroupsTester.java/clean/tests/org/jasig/portal/groups/GroupsTester.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
1891,
2531,
429,
3621,
1435,
1216,
1185,
95,
565,
1172,
12,
5093,
397,
315,
23490,
20018,
1360,
14712,
56,
7654,
18,
3813,
1891,
2531,
429,
3621,
1435,
380,
1007,
6,
397,
6732,
1769,
565,
514,
1234,
273,
446,
31,
565,
1659,
618,
273,
22130,
67,
11101,
67,
5237,
31,
565,
509,
9997,
2578,
3621,
273,
890,
31,
565,
509,
9997,
2578,
8108,
273,
1381,
31,
565,
29202,
1114,
8526,
3252,
273,
394,
29202,
1114,
63,
3307,
2578,
3621,
15533,
565,
29202,
8526,
5140,
273,
394,
29202,
63,
3307,
2578,
8108,
15533,
565,
467,
1114,
4419,
8526,
1041,
6918,
273,
446,
31,
565,
4498,
11176,
273,
446,
31,
565,
2407,
666,
273,
446,
31,
565,
509,
2067,
273,
374,
31,
565,
1250,
1842,
620,
273,
629,
31,
565,
1185,
425,
273,
446,
31,
565,
1234,
273,
315,
11092,
315,
397,
9997,
2578,
3621,
397,
315,
394,
3252,
1199,
31,
565,
1172,
12,
3576,
1769,
565,
364,
261,
3465,
33,
20,
31,
2067,
32,
3307,
2578,
3621,
31,
2067,
27245,
565,
288,
3639,
3252,
63,
3465,
65,
273,
12654,
1114,
5621,
3639,
3252,
63,
3465,
8009,
2725,
5621,
3639,
25395,
12,
3576,
16,
3252,
63,
3465,
19226,
3639,
3252,
63,
3465,
8009,
2725,
5621,
565,
289,
565,
1234,
273,
315,
19213,
1041,
1311,
1199,
31,
565,
1172,
12,
3576,
1769,
565,
514,
8526,
1041,
2396,
273,
394,
514,
63,
3307,
2578,
3621,
15533,
565,
364,
261,
3465,
33,
20,
31,
2067,
32,
3307,
2578,
3621,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
1891,
2531,
429,
3621,
1435,
1216,
1185,
95,
565,
1172,
12,
5093,
397,
315,
23490,
20018,
1360,
14712,
56,
7654,
18,
3813,
1891,
2531,
429,
3621,
1435,
380,
1007,
6,
397,
6732,
1769,
565,
514,
1234,
273,
446,
31,
565,
1659,
618,
273,
22130,
67,
11101,
67,
5237,
31,
565,
509,
9997,
2578,
3621,
273,
890,
31,
565,
509,
9997,
2578,
8108,
273,
1381,
31,
565,
29202,
1114,
8526,
3252,
273,
394,
29202,
1114,
63,
3307,
2578,
3621,
15533,
565,
29202,
8526,
5140,
273,
394,
29202,
63,
3307,
2578,
8108,
15533,
565,
467,
1114,
4419,
8526,
1041,
6918,
273,
446,
31,
565,
4498,
11176,
273,
446,
31,
565,
2407,
666,
273,
446,
31,
565,
509,
2067,
2
] |
_map.put(g, id); | _newMap.put(guid, id); | public synchronized boolean tryToRouteReply(byte[] guid, ReplyHandler replyHandler) { //repOk(); Assert.that(replyHandler != null); Assert.that(guid!=null, "Null GUID in tryToRouteReply"); if (! replyHandler.isOpen()) return false; GUID g=new GUID(guid); if(!_map.containsKey(g)) { Integer id=handler2id(replyHandler); _map.put(g, id); return true; } else { return false; } } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/264a84d914da5845b86e8ab689a0a99dce9ec186/RouteTable.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/RouteTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
775,
774,
3255,
7817,
12,
7229,
8526,
9875,
16,
4766,
7734,
16202,
1503,
4332,
1503,
13,
288,
3639,
368,
14462,
8809,
5621,
3639,
5452,
18,
19056,
12,
10629,
1503,
480,
446,
1769,
3639,
5452,
18,
19056,
12,
14066,
5,
33,
2011,
16,
315,
2041,
20322,
316,
775,
774,
3255,
7817,
8863,
3639,
309,
16051,
4332,
1503,
18,
291,
3678,
10756,
5411,
327,
629,
31,
3639,
20322,
314,
33,
2704,
20322,
12,
14066,
1769,
3639,
309,
12,
5,
67,
1458,
18,
12298,
653,
12,
75,
3719,
288,
5411,
2144,
612,
33,
4176,
22,
350,
12,
10629,
1503,
1769,
5411,
389,
2704,
863,
18,
458,
12,
14066,
16,
612,
1769,
5411,
327,
638,
31,
3639,
289,
469,
288,
5411,
327,
629,
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,
3852,
1250,
775,
774,
3255,
7817,
12,
7229,
8526,
9875,
16,
4766,
7734,
16202,
1503,
4332,
1503,
13,
288,
3639,
368,
14462,
8809,
5621,
3639,
5452,
18,
19056,
12,
10629,
1503,
480,
446,
1769,
3639,
5452,
18,
19056,
12,
14066,
5,
33,
2011,
16,
315,
2041,
20322,
316,
775,
774,
3255,
7817,
8863,
3639,
309,
16051,
4332,
1503,
18,
291,
3678,
10756,
5411,
327,
629,
31,
3639,
20322,
314,
33,
2704,
20322,
12,
14066,
1769,
3639,
309,
12,
5,
67,
1458,
18,
12298,
653,
12,
75,
3719,
288,
5411,
2144,
612,
33,
4176,
22,
350,
12,
10629,
1503,
1769,
5411,
389,
2704,
863,
18,
458,
12,
14066,
16,
612,
1769,
5411,
327,
638,
31,
3639,
289,
469,
2
] |
cmd.setTaskName( getTaskName() ); | cmd.setTaskName(getTaskName()); | public void execute() throws BuildException { if (Project.getJavaVersion().equals(Project.JAVA_1_1)) { throw new BuildException( "The genkey task is only available on JDK" + " versions 1.2 or greater" ); } if (null == alias) { throw new BuildException( "alias attribute must be set" ); } if (null == storepass) { throw new BuildException( "storepass attribute must be set" ); } if (null == dname && null == expandedDname) { throw new BuildException( "dname must be set" ); } final StringBuffer sb = new StringBuffer(); sb.append("-genkey "); if (verbose) { sb.append("-v "); } sb.append("-alias \""); sb.append(alias); sb.append("\" "); if (null != dname) { sb.append("-dname \""); sb.append(dname); sb.append("\" "); } if (null != expandedDname) { sb.append("-dname \""); sb.append(expandedDname); sb.append("\" "); } if (null != keystore) { sb.append("-keystore \""); sb.append(keystore); sb.append("\" "); } if (null != storepass) { sb.append("-storepass \""); sb.append(storepass); sb.append("\" "); } if (null != storetype) { sb.append("-storetype \""); sb.append(storetype); sb.append("\" "); } sb.append("-keypass \""); if (null != keypass) { sb.append(keypass); } else { sb.append(storepass); } sb.append("\" "); if (null != sigalg) { sb.append("-sigalg \""); sb.append(sigalg); sb.append("\" "); } if (null != keyalg) { sb.append("-keyalg \""); sb.append(keyalg); sb.append("\" "); } if (0 < keysize) { sb.append("-keysize \""); sb.append(keysize); sb.append("\" "); } if (0 < validity) { sb.append("-validity \""); sb.append(validity); sb.append("\" "); } log("Generating Key for " + alias ); final ExecTask cmd = (ExecTask) project.createTask("exec"); cmd.setExecutable("keytool"); Commandline.Argument arg=cmd.createArg(); arg.setLine(sb.toString()); cmd.setFailonerror(true); cmd.setTaskName( getTaskName() ); cmd.execute(); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/GenerateKey.java/buggy/src/main/org/apache/tools/ant/taskdefs/GenerateKey.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
4109,
18,
588,
5852,
1444,
7675,
14963,
12,
4109,
18,
27264,
67,
21,
67,
21,
3719,
288,
5411,
604,
394,
18463,
12,
315,
1986,
3157,
856,
1562,
353,
1338,
2319,
603,
24387,
6,
4766,
1377,
397,
315,
5244,
404,
18,
22,
578,
6802,
6,
11272,
3639,
289,
3639,
309,
261,
2011,
422,
2308,
13,
288,
5411,
604,
394,
18463,
12,
315,
4930,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
540,
309,
261,
2011,
422,
1707,
5466,
13,
288,
5411,
604,
394,
18463,
12,
315,
2233,
5466,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
540,
309,
261,
2011,
422,
302,
529,
597,
446,
422,
8406,
40,
529,
13,
288,
5411,
604,
394,
18463,
12,
315,
72,
529,
1297,
506,
444,
6,
11272,
3639,
289,
540,
727,
6674,
2393,
273,
394,
6674,
5621,
3639,
2393,
18,
6923,
2932,
17,
4507,
856,
315,
1769,
3639,
309,
261,
11369,
13,
288,
5411,
2393,
18,
6923,
2932,
17,
90,
315,
1769,
3639,
289,
540,
2393,
18,
6923,
2932,
17,
4930,
1239,
8863,
3639,
2393,
18,
6923,
12,
4930,
1769,
3639,
2393,
18,
6923,
2932,
2412,
315,
1769,
3639,
309,
261,
2011,
480,
302,
529,
13,
288,
5411,
2393,
18,
6923,
2932,
17,
72,
529,
1239,
8863,
5411,
2393,
18,
6923,
12,
72,
529,
1769,
5411,
2393,
18,
6923,
2932,
2412,
315,
1769,
3639,
289,
540,
309,
261,
2011,
480,
8406,
40,
529,
13,
288,
5411,
2393,
18,
6923,
2932,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
4109,
18,
588,
5852,
1444,
7675,
14963,
12,
4109,
18,
27264,
67,
21,
67,
21,
3719,
288,
5411,
604,
394,
18463,
12,
315,
1986,
3157,
856,
1562,
353,
1338,
2319,
603,
24387,
6,
4766,
1377,
397,
315,
5244,
404,
18,
22,
578,
6802,
6,
11272,
3639,
289,
3639,
309,
261,
2011,
422,
2308,
13,
288,
5411,
604,
394,
18463,
12,
315,
4930,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
540,
309,
261,
2011,
422,
1707,
5466,
13,
288,
5411,
604,
394,
18463,
12,
315,
2233,
5466,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
540,
309,
261,
2011,
422,
302,
529,
597,
446,
422,
8406,
40,
529,
2
] |
Text textNode = fDocumentImpl.createTextNode(text.toString()); entity.appendChild(textNode); | public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText) throws XNIException { // NOTE: We only know how to create these nodes for the Xerces // DOM implementation because DOM Level 2 does not specify // that functionality. -Ac // create full node if (fDocumentType != null) { NamedNodeMap entities = fDocumentType.getEntities(); EntityImpl entity = (EntityImpl)entities.getNamedItem(name); if (entity == null) { entity = (EntityImpl)fDocumentImpl.createEntity(name); Text textNode = fDocumentImpl.createTextNode(text.toString()); entity.appendChild(textNode); entities.setNamedItem(entity); } } // create deferred node if (fDocumentTypeIndex != -1) { boolean found = false; int nodeIndex = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (nodeIndex != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(nodeIndex, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(nodeIndex, false); if (nodeName.equals(name)) { found = true; break; } } nodeIndex = fDeferredDocumentImpl.getRealPrevSibling(nodeIndex, false); } if (!found) { int entityIndex = fDeferredDocumentImpl.createDeferredEntity( name, null, null, null); int textIndex = fDeferredDocumentImpl.createDeferredTextNode(text.toString(), false); fDeferredDocumentImpl.appendChild(entityIndex, textIndex); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, entityIndex); } } } // internalEntityDecl(String,XMLString,XMLString) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/bd937837a36b311a3acabe71f2fd4489784d2756/AbstractDOMParser.java/buggy/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2713,
1943,
3456,
12,
780,
508,
16,
3167,
780,
977,
16,
4766,
565,
3167,
780,
1661,
15577,
1528,
13,
540,
1216,
1139,
50,
45,
503,
288,
3639,
368,
5219,
30,
1660,
1338,
5055,
3661,
358,
752,
4259,
2199,
364,
326,
1139,
264,
764,
3639,
368,
4202,
4703,
4471,
2724,
4703,
4557,
576,
1552,
486,
4800,
540,
368,
4202,
716,
14176,
18,
300,
9988,
3639,
368,
752,
1983,
756,
3639,
309,
261,
74,
2519,
559,
480,
446,
13,
288,
5411,
9796,
907,
863,
5140,
273,
284,
2519,
559,
18,
588,
8108,
5621,
5411,
3887,
2828,
1522,
273,
261,
1943,
2828,
13,
9996,
18,
588,
7604,
1180,
12,
529,
1769,
5411,
309,
261,
1096,
422,
446,
13,
288,
7734,
1522,
273,
261,
1943,
2828,
13,
74,
2519,
2828,
18,
2640,
1943,
12,
529,
1769,
7734,
3867,
977,
907,
273,
284,
2519,
2828,
18,
2640,
17299,
12,
955,
18,
10492,
10663,
7734,
1522,
18,
6923,
1763,
12,
955,
907,
1769,
7734,
5140,
18,
542,
7604,
1180,
12,
1096,
1769,
5411,
289,
3639,
289,
10792,
368,
752,
7045,
756,
7734,
309,
261,
74,
2519,
559,
1016,
480,
300,
21,
13,
288,
5411,
1250,
1392,
273,
629,
31,
5411,
509,
756,
1016,
273,
284,
16886,
2519,
2828,
18,
588,
3024,
1763,
12,
74,
2519,
559,
1016,
16,
629,
1769,
5411,
1323,
261,
2159,
1016,
480,
300,
21,
13,
288,
7734,
3025,
9507,
273,
284,
16886,
2519,
2828,
18,
588,
15101,
12,
2159,
1016,
16,
629,
1769,
7734,
309,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2713,
1943,
3456,
12,
780,
508,
16,
3167,
780,
977,
16,
4766,
565,
3167,
780,
1661,
15577,
1528,
13,
540,
1216,
1139,
50,
45,
503,
288,
3639,
368,
5219,
30,
1660,
1338,
5055,
3661,
358,
752,
4259,
2199,
364,
326,
1139,
264,
764,
3639,
368,
4202,
4703,
4471,
2724,
4703,
4557,
576,
1552,
486,
4800,
540,
368,
4202,
716,
14176,
18,
300,
9988,
3639,
368,
752,
1983,
756,
3639,
309,
261,
74,
2519,
559,
480,
446,
13,
288,
5411,
9796,
907,
863,
5140,
273,
284,
2519,
559,
18,
588,
8108,
5621,
5411,
3887,
2828,
1522,
273,
261,
1943,
2828,
13,
9996,
18,
588,
7604,
1180,
12,
529,
1769,
5411,
309,
261,
1096,
422,
446,
13,
288,
2
] |
|
sb = null; return list; } | } else { if (line.substring(i, i + 1).equals(delimiter)) { list.add(sb.toString()); sb.delete(0, sb.length()); } else { sb.append(line.substring(i, i + 1)); } } } if (qualifier != null && qualifier.trim().length() > 0 && sb.toString().trim().length() > 0) { if (sb.toString().trim().substring(sb.toString().trim().length() - 1).equals(qualifier)) { String s = sb.toString().trim().substring(0, sb.toString().length() - 1); sb.delete(0, sb.length()); sb.append(s); } } if (beginQualifier || beginNoQualifier || line.trim().endsWith(delimiter)) { list.add(sb.toString()); } sb = null; return (List) list; } | public static Vector splitLine(String line, String delimiter, String qualifier){ Vector list = new Vector(); //String temp = ""; boolean beginQualifier = false; //this will be used for delimted files that have some items qualified and some items dont boolean beginNoQualifier = false; StringBuffer sb = new StringBuffer(); //trim hard leading spaces at the begining of the line line = lTrim(line); for (int i = 0; i < line.length(); i++){ String remainderOfLine = line.substring(i); //data of the line which has not yet been read //check to see if there is a text qualifier if (qualifier != null && qualifier.trim().length() > 0){ if (line.substring(i, i + 1).equals(qualifier) && !beginQualifier && !beginNoQualifier){ //begining of a set of data beginQualifier = true; }else if (!beginQualifier && !beginNoQualifier && !line.substring(i, i +1).equals(qualifier) && !lTrim(remainderOfLine).startsWith(qualifier)){ //try to account for empty space before qualifier starts //we have not yet begun a qualifier and the char we are on is NOT //a qualifier. Start reading data beginNoQualifier = true; //make sure that this is not just an empty column with no qualifiers. ie "data",,"data" if (line.substring(i, i +1).equals(delimiter)){ list.add(sb.toString()); sb.delete(0,sb.length()); beginNoQualifier = false; continue;//grab the next char } sb.append(line.substring(i, i + 1)); }else if ((!beginNoQualifier) && line.substring(i, i + 1).equals(qualifier) && beginQualifier && (lTrim(line.substring(i + 1)).length() == 0 || //this will be true on empty undelmited columns at the end of the line lTrim(line.substring(i + 1)).substring(0,1).equals(delimiter))){ //end of a set of data that was qualified list.add(sb.toString()); sb.delete(0,sb.length()); beginQualifier = false; //add to "i" so we can get past the qualifier, otherwise it is read into a set of data which //may not be qualified. Find out how many spaces to the delimiter int offset = getDelimiterOffset(line,i,delimiter) -1;//subtract 1 since i is going to get incremented again at the top of the loop //System.out.println("offset: " + offset); if (offset < 1){ i++; }else{ i += offset; } }else if (beginNoQualifier && line.substring(i, i + 1).equals(delimiter)){ //check to see if we are done with an element that was not being qulified list.add(sb.toString()); sb.delete(0,sb.length()); beginNoQualifier = false; }else if (beginNoQualifier || beginQualifier){ //getting data in a NO qualifier element or qualified element sb.append(line.substring(i, i + 1)); } }else{ //not using a qualifier. Using a delimiter only if (line.substring(i, i + 1).equals(delimiter)){ list.add(sb.toString()); sb.delete(0,sb.length()); }else{ sb.append(line.substring(i,i + 1)); } } } //remove the ending text qualifier if needed if (qualifier != null && qualifier.trim().length() > 0 && sb.toString().trim().length()> 0){ if (sb.toString().trim().substring(sb.toString().trim().length() -1).equals(qualifier)){ String s = sb.toString().trim().substring(0,sb.toString().length() - 1); sb.delete(0,sb.length()); sb.append(s); } } if (beginQualifier || beginNoQualifier || line.trim().endsWith(delimiter)){ //also account for a delimiter with an empty column at the end that was not qualified //check to see if we need to add the last column in..this will happen on empty columns //add the last column list.add(sb.toString()); } sb = null; return list; } | 8836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8836/73647f36b9ada99ead4f9d0f67e459369342ca74/ParserUtils.java/buggy/PZFileReader/com/pz/reader/util/ParserUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
5589,
1416,
1670,
12,
780,
980,
16,
514,
5654,
16,
514,
12327,
15329,
202,
565,
5589,
666,
273,
394,
5589,
5621,
202,
565,
368,
780,
1906,
273,
1408,
31,
202,
565,
1250,
2376,
16185,
273,
629,
31,
202,
565,
368,
2211,
903,
506,
1399,
364,
10508,
2344,
1390,
716,
1240,
2690,
1516,
9348,
471,
2690,
1516,
14046,
202,
565,
1250,
2376,
2279,
16185,
273,
629,
31,
202,
565,
6674,
2393,
273,
394,
6674,
5621,
202,
377,
202,
565,
368,
5290,
7877,
7676,
7292,
622,
326,
2376,
310,
434,
326,
980,
202,
565,
980,
273,
328,
14795,
12,
1369,
1769,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
980,
18,
2469,
5621,
277,
27245,
95,
5411,
514,
10022,
951,
1670,
273,
980,
18,
28023,
12,
77,
1769,
368,
892,
434,
326,
980,
1492,
711,
486,
4671,
2118,
855,
202,
3639,
368,
1893,
358,
2621,
309,
1915,
353,
279,
977,
12327,
202,
3639,
309,
261,
28157,
480,
446,
597,
12327,
18,
5290,
7675,
2469,
1435,
405,
374,
15329,
202,
5411,
309,
261,
1369,
18,
28023,
12,
77,
16,
277,
397,
404,
2934,
14963,
12,
28157,
13,
597,
401,
10086,
16185,
597,
401,
10086,
2279,
16185,
15329,
202,
7734,
368,
10086,
310,
434,
279,
444,
434,
501,
202,
7734,
2376,
16185,
273,
638,
31,
202,
5411,
289,
12107,
309,
16051,
10086,
16185,
597,
401,
10086,
2279,
16185,
597,
202,
5397,
202,
5,
1369,
18,
28023,
12,
77,
16,
277,
397,
21,
2934,
14963,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
1416,
1670,
12,
780,
980,
16,
514,
5654,
16,
514,
12327,
15329,
202,
565,
5589,
666,
273,
394,
5589,
5621,
202,
565,
368,
780,
1906,
273,
1408,
31,
202,
565,
1250,
2376,
16185,
273,
629,
31,
202,
565,
368,
2211,
903,
506,
1399,
364,
10508,
2344,
1390,
716,
1240,
2690,
1516,
9348,
471,
2690,
1516,
14046,
202,
565,
1250,
2376,
2279,
16185,
273,
629,
31,
202,
565,
6674,
2393,
273,
394,
6674,
5621,
202,
377,
202,
565,
368,
5290,
7877,
7676,
7292,
622,
326,
2376,
310,
434,
326,
980,
202,
565,
980,
273,
328,
14795,
12,
1369,
1769,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
980,
18,
2469,
5621,
277,
2
] |
location=cdiTarget.createLocation("main.c", "func1", 0); assertNotNull(location); cdiTarget.setLocationBreakpoint(0, location, null, false); | functionLocation=cdiTarget.createFunctionLocation("main.c", "func1"); assertNotNull(functionLocation); cdiTarget.setFunctionBreakpoint(0, functionLocation, null, false); | public void testIsEquals() throws CoreException, MIException, IOException, CDIException { ICDITarget cdiTarget; ICDILocation location, location2; ICDIBreakpoint[] breakpoints; ICDILocationBreakpoint curbreak; session=CDebugHelper.createSession("main",testProject); assertNotNull(session); ICDITarget[] targets = session.getTargets(); assertNotNull(targets); assertTrue(targets.length > 0); cdiTarget = targets[0]; assertNotNull(cdiTarget); /********************************************************************** * Simple test.. this should work. **********************************************************************/ location=cdiTarget.createLocation("main.c", "func1", 0); location2=cdiTarget.createLocation("main.c", "func1", 0); assertTrue(location.equals(location2)); /********************************************************************** * Simple test.. this should work. **********************************************************************/ location=cdiTarget.createLocation("main.c", null, 10); location2=cdiTarget.createLocation("main.c", null, 10); assertTrue(location.equals(location2)); /********************************************************************** * make sure that the location returned from getLocation on the * ICDILocationBreakpoint.getLocation that is returned from * setLocationBreakpoint is the same as the breakpoint returned from * BreakpointManager.getBreakpoints.getLocation() **********************************************************************/ location=cdiTarget.createLocation("main.c", "func1", 0); assertNotNull(location); location2=cdiTarget.setLocationBreakpoint(0, location, null, false).getLocation(); breakpoints=cdiTarget.getBreakpoints(); assertNotNull(breakpoints); assertTrue(breakpoints.length==1); if (breakpoints[0] instanceof ICDILocationBreakpoint) { curbreak=(ICDILocationBreakpoint) breakpoints[0]; } else curbreak=null; assertNotNull(curbreak); assertTrue(curbreak.getLocation().equals(location2)); cdiTarget.deleteAllBreakpoints(); /* Create a break point on a generic function with a file name that * gdb will change to the relitive path of the source file. This * should work, but at the time of writing (Sept 25, 2002) does not. */ location=cdiTarget.createLocation("main.c", "func1", 0); assertNotNull(location); cdiTarget.setLocationBreakpoint(0, location, null, false); breakpoints=cdiTarget.getBreakpoints(); assertNotNull(breakpoints); assertTrue(breakpoints.length==1); if (breakpoints[0] instanceof ICDILocationBreakpoint) { curbreak=(ICDILocationBreakpoint) breakpoints[0]; } else curbreak=null; assertNotNull(curbreak); assertTrue("PR:23879",curbreak.getLocation().equals(location)); /* clean up the session */ session.terminate(); session=null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/277bec9a0dc83467b896459505fd47fe3953b942/LocationTests.java/clean/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/LocationTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
8867,
1435,
1216,
30015,
16,
20806,
503,
16,
1860,
16,
385,
2565,
503,
288,
3639,
467,
10160,
1285,
826,
276,
3211,
2326,
31,
3639,
26899,
2565,
2735,
2117,
16,
2117,
22,
31,
3639,
26899,
2565,
20552,
8526,
23416,
31,
3639,
26899,
2565,
2735,
20552,
662,
8820,
31,
3639,
1339,
33,
39,
2829,
2276,
18,
2640,
2157,
2932,
5254,
3113,
3813,
4109,
1769,
3639,
25395,
12,
3184,
1769,
202,
202,
2871,
40,
1285,
826,
8526,
5774,
273,
1339,
18,
588,
9432,
5621,
202,
202,
11231,
5962,
12,
11358,
1769,
202,
202,
11231,
5510,
12,
11358,
18,
2469,
405,
374,
1769,
202,
202,
71,
3211,
2326,
273,
5774,
63,
20,
15533,
3639,
25395,
12,
71,
3211,
2326,
1769,
7734,
342,
11125,
11345,
540,
380,
225,
4477,
1842,
838,
333,
1410,
1440,
18,
540,
19756,
1007,
5549,
3639,
2117,
33,
71,
3211,
2326,
18,
2640,
2735,
2932,
5254,
18,
71,
3113,
315,
644,
21,
3113,
374,
1769,
3639,
2117,
22,
33,
71,
3211,
2326,
18,
2640,
2735,
2932,
5254,
18,
71,
3113,
315,
644,
21,
3113,
374,
1769,
3639,
1815,
5510,
12,
3562,
18,
14963,
12,
3562,
22,
10019,
3639,
342,
11125,
11345,
540,
380,
225,
4477,
1842,
838,
333,
1410,
1440,
18,
540,
19756,
1007,
5549,
3639,
2117,
33,
71,
3211,
2326,
18,
2640,
2735,
2932,
5254,
18,
71,
3113,
446,
16,
1728,
1769,
3639,
2117,
22,
33,
71,
3211,
2326,
18,
2640,
2735,
2932,
5254,
18,
71,
3113,
446,
16,
1728,
1769,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
8867,
1435,
1216,
30015,
16,
20806,
503,
16,
1860,
16,
385,
2565,
503,
288,
3639,
467,
10160,
1285,
826,
276,
3211,
2326,
31,
3639,
26899,
2565,
2735,
2117,
16,
2117,
22,
31,
3639,
26899,
2565,
20552,
8526,
23416,
31,
3639,
26899,
2565,
2735,
20552,
662,
8820,
31,
3639,
1339,
33,
39,
2829,
2276,
18,
2640,
2157,
2932,
5254,
3113,
3813,
4109,
1769,
3639,
25395,
12,
3184,
1769,
202,
202,
2871,
40,
1285,
826,
8526,
5774,
273,
1339,
18,
588,
9432,
5621,
202,
202,
11231,
5962,
12,
11358,
1769,
202,
202,
11231,
5510,
12,
11358,
18,
2469,
405,
374,
1769,
202,
202,
71,
3211,
2326,
273,
5774,
63,
20,
15533,
3639,
25395,
12,
71,
3211,
2
] |
"<TD><a href=\"/servlet/edu.rice.rubis.beans.servlets.PutBidAuth?itemId="+id+"\"><IMG SRC=\"/EJB_HTML/bid_now.jpg\" height=22 width=90></a>\n"; | "<TD><a href=\""+BeanConfig.context+"/servlet/edu.rice.rubis.beans.servlets.PutBidAuth?itemId="+id+"\"><IMG SRC=\""+BeanConfig.context+"/bid_now.jpg\" height=22 width=90></a>\n"; | public String printItem(String name, int id, float maxBid, int nbOfBids, String endDate) throws RemoteException { return "<TR><TD><a href=\"/servlet/edu.rice.rubis.beans.servlets.ViewItem?itemId="+id+"\">"+name+ "<TD>"+maxBid+ "<TD>"+nbOfBids+ "<TD>"+endDate+ "<TD><a href=\"/servlet/edu.rice.rubis.beans.servlets.PutBidAuth?itemId="+id+"\"><IMG SRC=\"/EJB_HTML/bid_now.jpg\" height=22 width=90></a>\n"; } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/efbeb8e369248adae3e69657ced0c6d12c72dee1/SB_SearchItemsByRegionBean.java/clean/EJB_SessionBean/edu/rice/rubis/beans/SB_SearchItemsByRegionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1172,
1180,
12,
780,
508,
16,
509,
612,
16,
1431,
943,
17763,
16,
509,
4264,
951,
38,
2232,
16,
514,
13202,
13,
1216,
18361,
225,
288,
565,
327,
3532,
4349,
4438,
23409,
4438,
69,
3897,
5189,
19,
23231,
19,
28049,
18,
3057,
18,
18271,
291,
18,
2196,
634,
18,
23231,
87,
18,
1767,
1180,
35,
1726,
548,
1546,
15,
350,
9078,
21121,
15,
529,
15,
1377,
3532,
23409,
2984,
15,
1896,
17763,
15,
1377,
3532,
23409,
2984,
15,
6423,
951,
38,
2232,
15,
1377,
3532,
23409,
2984,
15,
409,
1626,
15,
1377,
3532,
23409,
4438,
69,
3897,
13186,
15,
3381,
809,
18,
2472,
9078,
19,
23231,
19,
28049,
18,
3057,
18,
18271,
291,
18,
2196,
634,
18,
23231,
87,
18,
6426,
17763,
1730,
35,
1726,
548,
1546,
15,
350,
9078,
2412,
4438,
3445,
43,
348,
11529,
13186,
15,
3381,
809,
18,
2472,
9078,
19,
19773,
67,
3338,
18,
14362,
2412,
2072,
33,
3787,
1835,
33,
9349,
4695,
69,
5333,
82,
14432,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1172,
1180,
12,
780,
508,
16,
509,
612,
16,
1431,
943,
17763,
16,
509,
4264,
951,
38,
2232,
16,
514,
13202,
13,
1216,
18361,
225,
288,
565,
327,
3532,
4349,
4438,
23409,
4438,
69,
3897,
5189,
19,
23231,
19,
28049,
18,
3057,
18,
18271,
291,
18,
2196,
634,
18,
23231,
87,
18,
1767,
1180,
35,
1726,
548,
1546,
15,
350,
9078,
21121,
15,
529,
15,
1377,
3532,
23409,
2984,
15,
1896,
17763,
15,
1377,
3532,
23409,
2984,
15,
6423,
951,
38,
2232,
15,
1377,
3532,
23409,
2984,
15,
409,
1626,
15,
1377,
3532,
23409,
4438,
69,
3897,
13186,
15,
3381,
809,
18,
2472,
9078,
19,
23231,
19,
28049,
18,
3057,
18,
18271,
291,
18,
2196,
634,
2
] |
retrievedIDs.length); | retrievedIDs.size()); | private void validatePositions(String[] expectedIDs, IWindowTrim[] retrievedIDs) { assertEquals("Number of trim items don't match", expectedIDs.length, retrievedIDs.length); for (int i = 0; i < expectedIDs.length; ++i) { assertEquals("Failed for postition " + i, expectedIDs[i], retrievedIDs[i].getId()); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c02ce808ddcd3a887071a5c31104b81c396819e2/TrimLayoutTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/TrimLayoutTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
11024,
12,
780,
8526,
2665,
5103,
16,
1082,
202,
45,
3829,
14795,
8526,
10295,
5103,
13,
288,
202,
202,
11231,
8867,
2932,
1854,
434,
2209,
1516,
2727,
1404,
845,
3113,
2665,
5103,
18,
2469,
16,
9506,
202,
14580,
2155,
5103,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2665,
5103,
18,
2469,
31,
965,
77,
13,
288,
1082,
202,
11231,
8867,
2932,
2925,
364,
1603,
608,
315,
397,
277,
16,
2665,
5103,
63,
77,
6487,
6862,
202,
14580,
2155,
5103,
63,
77,
8009,
26321,
10663,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1954,
11024,
12,
780,
8526,
2665,
5103,
16,
1082,
202,
45,
3829,
14795,
8526,
10295,
5103,
13,
288,
202,
202,
11231,
8867,
2932,
1854,
434,
2209,
1516,
2727,
1404,
845,
3113,
2665,
5103,
18,
2469,
16,
9506,
202,
14580,
2155,
5103,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2665,
5103,
18,
2469,
31,
965,
77,
13,
288,
1082,
202,
11231,
8867,
2932,
2925,
364,
1603,
608,
315,
397,
277,
16,
2665,
5103,
63,
77,
6487,
6862,
202,
14580,
2155,
5103,
63,
77,
8009,
26321,
10663,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
editor.textarea.setScrollPosition(current.scrollPosition); | public void setCurrent(int which) { if (current == code[which]) { //System.out.println("already current, ignoring"); return; } // get the text currently being edited if (current != null) { current.program = editor.getText(); current.selectionStart = editor.textarea.getSelectionStart(); current.selectionStop = editor.textarea.getSelectionEnd(); current.scrollPosition = editor.textarea.getScrollPosition(); } current = code[which]; // set to the text for this file // 'true' means to wipe out the undo buffer // (so they don't undo back to the other file.. whups!) editor.setText(current.program, current.selectionStart, current.selectionStop, current.undo); // set stored caret and scroll positions editor.textarea.setScrollPosition(current.scrollPosition); //editor.textarea.select(current.selectionStart, current.selectionStop); //editor.textarea.setSelectionStart(current.selectionStart); //editor.textarea.setSelectionEnd(current.selectionStop); editor.header.rebuild(); } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/6652eeea05fabd777a87d35b2f25bd653c28e783/Sketch.java/clean/app/Sketch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12589,
12,
474,
1492,
13,
288,
565,
309,
261,
2972,
422,
981,
63,
12784,
5717,
288,
1377,
368,
3163,
18,
659,
18,
8222,
2932,
17583,
783,
16,
14398,
8863,
1377,
327,
31,
565,
289,
565,
368,
336,
326,
977,
4551,
3832,
18532,
565,
309,
261,
2972,
480,
446,
13,
288,
1377,
783,
18,
12890,
273,
4858,
18,
588,
1528,
5621,
1377,
783,
18,
10705,
1685,
273,
4858,
18,
16701,
18,
588,
6233,
1685,
5621,
1377,
783,
18,
10705,
4947,
273,
4858,
18,
16701,
18,
588,
6233,
1638,
5621,
1377,
783,
18,
12033,
2555,
273,
4858,
18,
16701,
18,
588,
6806,
2555,
5621,
565,
289,
565,
783,
273,
981,
63,
12784,
15533,
565,
368,
444,
358,
326,
977,
364,
333,
585,
565,
368,
296,
3767,
11,
4696,
358,
341,
3151,
596,
326,
15436,
1613,
565,
368,
261,
2048,
2898,
2727,
1404,
15436,
1473,
358,
326,
1308,
585,
838,
600,
18294,
24949,
565,
4858,
18,
542,
1528,
12,
2972,
18,
12890,
16,
10402,
783,
18,
10705,
1685,
16,
783,
18,
10705,
4947,
16,
10402,
783,
18,
31226,
1769,
565,
368,
444,
4041,
21683,
471,
5532,
6865,
3639,
368,
9177,
18,
16701,
18,
4025,
12,
2972,
18,
10705,
1685,
16,
783,
18,
10705,
4947,
1769,
565,
368,
9177,
18,
16701,
18,
542,
6233,
1685,
12,
2972,
18,
10705,
1685,
1769,
565,
368,
9177,
18,
16701,
18,
542,
6233,
1638,
12,
2972,
18,
10705,
4947,
1769,
565,
4858,
18,
3374,
18,
266,
3510,
5621,
225,
289,
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,
282,
1071,
918,
12589,
12,
474,
1492,
13,
288,
565,
309,
261,
2972,
422,
981,
63,
12784,
5717,
288,
1377,
368,
3163,
18,
659,
18,
8222,
2932,
17583,
783,
16,
14398,
8863,
1377,
327,
31,
565,
289,
565,
368,
336,
326,
977,
4551,
3832,
18532,
565,
309,
261,
2972,
480,
446,
13,
288,
1377,
783,
18,
12890,
273,
4858,
18,
588,
1528,
5621,
1377,
783,
18,
10705,
1685,
273,
4858,
18,
16701,
18,
588,
6233,
1685,
5621,
1377,
783,
18,
10705,
4947,
273,
4858,
18,
16701,
18,
588,
6233,
1638,
5621,
1377,
783,
18,
12033,
2555,
273,
4858,
18,
16701,
18,
588,
6806,
2555,
5621,
565,
289,
565,
783,
273,
981,
63,
12784,
15533,
565,
368,
444,
358,
326,
2
] |
|
AST tmp2491_AST_in = (AST)_t; | AST tmp2492_AST_in = (AST)_t; | public final void select_order_expr(AST _t) throws RecognitionException { AST select_order_expr_AST_in = (_t == ASTNULL) ? null : (AST)_t; sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASC: { AST tmp2491_AST_in = (AST)_t; match(_t,ASC); _t = _t.getNextSibling(); break; } case DESCENDING: { AST tmp2492_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2404: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2493_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASC: { AST tmp2494_AST_in = (AST)_t; match(_t,ASC); _t = _t.getNextSibling(); break; } case DESCENDING: { AST tmp2495_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop2404; } } while (true); } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2027,
67,
1019,
67,
8638,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2027,
67,
1019,
67,
8638,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
4669,
8748,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8310,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3247,
12416,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
8633,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
14326,
12280,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3247,
9975,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
10964,
12280,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
890,
30,
202,
202,
3593,
17373,
30,
202,
202,
95,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
202,
202,
95,
1082,
202,
12849,
394,
17114,
24899,
88,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
97,
202,
202,
95,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2027,
67,
1019,
67,
8638,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2027,
67,
1019,
67,
8638,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
4669,
8748,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8310,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3247,
12416,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
2
] |
label = new Label(menubarGroup, SWT.NONE); | label = new Label(menubarGroup, SWT.WRAP); | private Composite createActionSetsPage(Composite parent) { GridData data; Composite actionSetsComposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); actionSetsComposite.setLayout(layout); // Select... label Label label = new Label(actionSetsComposite, SWT.WRAP); label .setText(NLS.bind(WorkbenchMessages.ActionSetSelection_selectActionSetsLabel,perspective.getDesc().getLabel() )); data = new GridData(SWT.FILL, SWT.CENTER, true, false); label.setLayoutData(data); Label sep = new Label(actionSetsComposite, SWT.HORIZONTAL | SWT.SEPARATOR); sep.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); SashForm sashComposite = new SashForm(actionSetsComposite, SWT.HORIZONTAL); data = new GridData(SWT.FILL, SWT.FILL, true, true); sashComposite.setLayoutData(data); // Action Set List Composite Composite actionSetGroup = new Composite(sashComposite, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; actionSetGroup.setLayout(layout); actionSetGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); label = new Label(actionSetGroup, SWT.WRAP); label.setText(WorkbenchMessages.ActionSetSelection_availableActionSets); label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); actionSetsViewer = CheckboxTableViewer.newCheckList(actionSetGroup, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); actionSetsViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); actionSetsViewer.setLabelProvider(new WorkbenchLabelProvider()); actionSetsViewer.setContentProvider(new ArrayContentProvider()); actionSetsViewer.setSorter(new ActionSetSorter()); // Menu and toolbar composite Composite actionGroup = new Composite(sashComposite, SWT.NONE); layout = new GridLayout(); layout.numColumns = 2; layout.makeColumnsEqualWidth = true; layout.marginHeight = 0; layout.marginWidth = 0; layout.horizontalSpacing = 0; actionGroup.setLayout(layout); actionGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); Composite menubarGroup = new Composite(actionGroup, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; menubarGroup.setLayout(layout); menubarGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); label = new Label(menubarGroup, SWT.NONE); label.setText(WorkbenchMessages.ActionSetSelection_menubarActions); actionSetMenuViewer = new TreeViewer(menubarGroup); actionSetMenuViewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS); actionSetMenuViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); actionSetMenuViewer.setLabelProvider(new ActionSetLabelProvider()); actionSetMenuViewer.setContentProvider(new TreeContentProvider()); Composite toolbarGroup = new Composite(actionGroup, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; toolbarGroup.setLayout(layout); toolbarGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); label = new Label(toolbarGroup, SWT.NONE); label.setText(WorkbenchMessages.ActionSetSelection_toolbarActions); actionSetToolbarViewer = new TreeViewer(toolbarGroup); actionSetToolbarViewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS); actionSetToolbarViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); actionSetToolbarViewer .setLabelProvider(new ActionSetLabelProvider()); actionSetToolbarViewer.setContentProvider(new TreeContentProvider()); sashComposite.setWeights(new int[] { 30, 70 }); // Use F2... label label = new Label(actionSetsComposite, SWT.WRAP); label.setText(WorkbenchMessages.ActionSetSelection_selectActionSetsHelp); label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); return actionSetsComposite; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d8877979b5d2eea39904380b14d33ff1e998b48b/CustomizePerspectiveDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14728,
752,
1803,
2785,
1964,
12,
9400,
982,
13,
288,
377,
202,
6313,
751,
501,
31,
377,
202,
3639,
14728,
1301,
2785,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
1301,
2785,
9400,
18,
542,
3744,
12,
6741,
1769,
3639,
368,
6766,
2777,
1433,
3639,
5287,
1433,
273,
394,
5287,
12,
1128,
2785,
9400,
16,
348,
8588,
18,
27664,
1769,
3639,
1433,
7734,
263,
542,
1528,
12,
5106,
18,
4376,
12,
2421,
22144,
5058,
18,
1803,
694,
6233,
67,
4025,
1803,
2785,
2224,
16,
10422,
16772,
18,
588,
4217,
7675,
588,
2224,
1435,
262,
1769,
3639,
501,
273,
394,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
19835,
16,
638,
16,
629,
1769,
3639,
1433,
18,
542,
3744,
751,
12,
892,
1769,
3639,
5287,
5478,
273,
394,
5287,
12,
1128,
2785,
9400,
16,
348,
8588,
18,
44,
20344,
7734,
571,
348,
8588,
18,
4550,
1769,
3639,
5478,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
19835,
16,
638,
16,
629,
10019,
3639,
348,
961,
1204,
272,
961,
9400,
273,
394,
348,
961,
1204,
12,
1128,
2785,
9400,
16,
7734,
348,
8588,
18,
44,
20344,
1769,
3639,
501,
273,
394,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
29818,
16,
638,
16,
638,
1769,
3639,
272,
961,
9400,
18,
542,
3744,
751,
12,
892,
1769,
3639,
368,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14728,
752,
1803,
2785,
1964,
12,
9400,
982,
13,
288,
377,
202,
6313,
751,
501,
31,
377,
202,
3639,
14728,
1301,
2785,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
1301,
2785,
9400,
18,
542,
3744,
12,
6741,
1769,
3639,
368,
6766,
2777,
1433,
3639,
5287,
1433,
273,
394,
5287,
12,
1128,
2785,
9400,
16,
348,
8588,
18,
27664,
1769,
3639,
1433,
7734,
263,
542,
1528,
12,
5106,
18,
4376,
12,
2421,
22144,
5058,
18,
1803,
694,
6233,
67,
4025,
1803,
2785,
2224,
16,
10422,
16772,
18,
588,
4217,
7675,
588,
2224,
1435,
262,
1769,
3639,
501,
273,
394,
7145,
751,
12,
55,
2
] |
public static boolean isAbsoluteOrFixed(CascadedStyle style) { | public static boolean isAbsoluteOrFixed(CalculatedStyle style) { | public static boolean isAbsoluteOrFixed(CascadedStyle style) { IdentValue position = style.getIdent(CSSName.POSITION); return position != null && (position == IdentValue.ABSOLUTE || position == IdentValue.FIXED); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/c96efe21dd32b0a4f0420c8495d49144792cbc9d/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
20082,
1162,
7505,
12,
4844,
690,
2885,
2154,
13,
288,
3639,
13128,
620,
1754,
273,
2154,
18,
588,
6106,
12,
10276,
461,
18,
15258,
1769,
3639,
327,
1754,
480,
446,
597,
261,
3276,
422,
13128,
620,
18,
2090,
26786,
747,
1754,
422,
13128,
620,
18,
30406,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
20082,
1162,
7505,
12,
4844,
690,
2885,
2154,
13,
288,
3639,
13128,
620,
1754,
273,
2154,
18,
588,
6106,
12,
10276,
461,
18,
15258,
1769,
3639,
327,
1754,
480,
446,
597,
261,
3276,
422,
13128,
620,
18,
2090,
26786,
747,
1754,
422,
13128,
620,
18,
30406,
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
] |
AST tmp1767_AST_in = (AST)_t; | AST tmp1770_AST_in = (AST)_t; | public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t310 = _t; AST tmp1735_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t310; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t311 = _t; AST tmp1736_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t311; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t312 = _t; AST tmp1737_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t312; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t313 = _t; AST tmp1738_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t313; _t = _t.getNextSibling(); break; } case ASC: { AST __t314 = _t; AST tmp1739_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t314; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t315 = _t; AST tmp1740_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t315; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t316 = _t; AST tmp1741_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t316; _t = _t.getNextSibling(); break; } case CANDO: { AST __t317 = _t; AST tmp1742_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t317; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t318 = _t; AST tmp1743_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t318; _t = _t.getNextSibling(); break; } case CANSET: { AST __t319 = _t; AST tmp1744_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t319; _t = _t.getNextSibling(); break; } case CAPS: { AST __t320 = _t; AST tmp1745_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t320; _t = _t.getNextSibling(); break; } case CHR: { AST __t321 = _t; AST tmp1746_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t321; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t322 = _t; AST tmp1747_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t322; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t323 = _t; AST tmp1748_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t323; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t324 = _t; AST tmp1749_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t324; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t325 = _t; AST tmp1750_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t325; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t326 = _t; AST tmp1751_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t326; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t327 = _t; AST tmp1752_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t327; _t = _t.getNextSibling(); break; } case DATE: { AST __t328 = _t; AST tmp1753_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t328; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t329 = _t; AST tmp1754_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t329; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t330 = _t; AST tmp1755_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t330; _t = _t.getNextSibling(); break; } case DAY: { AST __t331 = _t; AST tmp1756_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t331; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t332 = _t; AST tmp1757_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t332; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t333 = _t; AST tmp1758_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t333; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t334 = _t; AST tmp1759_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t334; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t335 = _t; AST tmp1760_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t335; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t336 = _t; AST tmp1761_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t336; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t337 = _t; AST tmp1762_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t337; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t338 = _t; AST tmp1763_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t338; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t339 = _t; AST tmp1764_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t339; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t340 = _t; AST tmp1765_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t340; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t341 = _t; AST tmp1766_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t341; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t342 = _t; AST tmp1767_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t342; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t343 = _t; AST tmp1768_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t343; _t = _t.getNextSibling(); break; } case EXP: { AST __t344 = _t; AST tmp1769_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t344; _t = _t.getNextSibling(); break; } case FILL: { AST __t345 = _t; AST tmp1770_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t345; _t = _t.getNextSibling(); break; } case FIRST: { AST __t346 = _t; AST tmp1771_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t346; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t347 = _t; AST tmp1772_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t347; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t348 = _t; AST tmp1773_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t348; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t349 = _t; AST tmp1774_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t349; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t350 = _t; AST tmp1775_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t350; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t351 = _t; AST tmp1776_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t351; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t352 = _t; AST tmp1777_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t352; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t353 = _t; AST tmp1778_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t353; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t354 = _t; AST tmp1779_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t354; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t355 = _t; AST tmp1780_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t355; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t356 = _t; AST tmp1781_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t356; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t357 = _t; AST tmp1782_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t357; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t358 = _t; AST tmp1783_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t358; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t359 = _t; AST tmp1784_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t359; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t360 = _t; AST tmp1785_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t360; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t361 = _t; AST tmp1786_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t361; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t362 = _t; AST tmp1787_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t362; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t363 = _t; AST tmp1788_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t363; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t364 = _t; AST tmp1789_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t364; _t = _t.getNextSibling(); break; } case INDEX: { AST __t365 = _t; AST tmp1790_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t365; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t366 = _t; AST tmp1791_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t366; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t367 = _t; AST tmp1792_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t367; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t368 = _t; AST tmp1793_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t368; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t369 = _t; AST tmp1794_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t369; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t370 = _t; AST tmp1795_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t370; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t371 = _t; AST tmp1796_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t371; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t372 = _t; AST tmp1797_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t372; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t373 = _t; AST tmp1798_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t373; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t374 = _t; AST tmp1799_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t374; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t375 = _t; AST tmp1800_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t375; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t376 = _t; AST tmp1801_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t376; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t377 = _t; AST tmp1802_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t377; _t = _t.getNextSibling(); break; } case LAST: { AST __t378 = _t; AST tmp1803_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t378; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t379 = _t; AST tmp1804_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t379; _t = _t.getNextSibling(); break; } case LC: { AST __t380 = _t; AST tmp1805_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t380; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t381 = _t; AST tmp1806_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t381; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t382 = _t; AST tmp1807_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t382; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t383 = _t; AST tmp1808_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t383; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t384 = _t; AST tmp1809_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t384; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t385 = _t; AST tmp1810_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t385; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t386 = _t; AST tmp1811_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t386; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t387 = _t; AST tmp1812_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t387; _t = _t.getNextSibling(); break; } case LOG: { AST __t388 = _t; AST tmp1813_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t388; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t389 = _t; AST tmp1814_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t389; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t390 = _t; AST tmp1815_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t390; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t391 = _t; AST tmp1816_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t391; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t392 = _t; AST tmp1817_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t392; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t393 = _t; AST tmp1818_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t393; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t394 = _t; AST tmp1819_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t394; _t = _t.getNextSibling(); break; } case MONTH: { AST __t395 = _t; AST tmp1820_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t395; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t396 = _t; AST tmp1821_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t396; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t397 = _t; AST tmp1822_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t397; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t398 = _t; AST tmp1823_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t398; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t399 = _t; AST tmp1824_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t399; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t400 = _t; AST tmp1825_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t400; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t401 = _t; AST tmp1826_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t401; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t402 = _t; AST tmp1827_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t402; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t403 = _t; AST tmp1828_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t403; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t404 = _t; AST tmp1829_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t404; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t405 = _t; AST tmp1830_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t405; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t406 = _t; AST tmp1831_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t406; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t407 = _t; AST tmp1832_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t407; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t408 = _t; AST tmp1833_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t408; _t = _t.getNextSibling(); break; } case ROUND: { AST __t409 = _t; AST tmp1834_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t409; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t410 = _t; AST tmp1835_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t410; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t411 = _t; AST tmp1836_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t411; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t412 = _t; AST tmp1837_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t412; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t413 = _t; AST tmp1838_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t413; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t414 = _t; AST tmp1839_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t414; _t = _t.getNextSibling(); break; } case SQRT: { AST __t415 = _t; AST tmp1840_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t415; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t416 = _t; AST tmp1841_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t416; _t = _t.getNextSibling(); break; } case STRING: { AST __t417 = _t; AST tmp1842_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t417; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t418 = _t; AST tmp1843_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t418; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t419 = _t; AST tmp1844_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t419; _t = _t.getNextSibling(); break; } case TRIM: { AST __t420 = _t; AST tmp1845_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t420; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t421 = _t; AST tmp1846_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t421; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t422 = _t; AST tmp1847_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t422; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t423 = _t; AST tmp1848_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t423; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t424 = _t; AST tmp1849_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t424; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t425 = _t; AST tmp1850_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t425; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t426 = _t; AST tmp1851_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t426; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t427 = _t; AST tmp1852_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t427; _t = _t.getNextSibling(); break; } case YEAR: { AST __t428 = _t; AST tmp1853_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t428; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
23,
2163,
273,
389,
88,
31,
1082,
202,
9053,
1853,
4033,
4763,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
23,
2163,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
432,
2192,
30820,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
23,
2499,
273,
389,
88,
31,
1082,
202,
9053,
1853,
4033,
5718,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2192,
30820,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
23,
2163,
273,
389,
88,
31,
1082,
202,
9053,
1853,
4033,
4763,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
2
] |
hashKey += args[i].getClass().getName(); | if (args[i] != null) { hashKey += args[i].getClass().getName(); } else { hashKey += "null"; } | private String generateServiceHashKey(String service, String method, Object[] args) { String hashKey = service + "." + method + "("; if (args != null) { for (int i = 0; i < args.length; i++) { hashKey += args[i].getClass().getName(); if (i + 1 < args.length) { hashKey += ", "; } } } hashKey += ")"; return hashKey; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b8211bb4c522dba7978f7e71f1eafe3fd874a470/ServiceManagerBean.java/buggy/src/ServidorAplicacao/ServiceManagerBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
2103,
1179,
31006,
12,
780,
1156,
16,
514,
707,
16,
1033,
8526,
833,
13,
202,
95,
202,
202,
780,
29623,
273,
1156,
397,
4585,
397,
707,
397,
12452,
31,
202,
202,
430,
261,
1968,
480,
446,
13,
202,
202,
95,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
1082,
202,
95,
9506,
202,
2816,
653,
1011,
833,
63,
77,
8009,
588,
797,
7675,
17994,
5621,
9506,
202,
430,
261,
77,
397,
404,
411,
833,
18,
2469,
13,
9506,
202,
95,
6862,
202,
2816,
653,
1011,
3104,
13636,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2816,
653,
1011,
7310,
31,
202,
202,
2463,
29623,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
514,
2103,
1179,
31006,
12,
780,
1156,
16,
514,
707,
16,
1033,
8526,
833,
13,
202,
95,
202,
202,
780,
29623,
273,
1156,
397,
4585,
397,
707,
397,
12452,
31,
202,
202,
430,
261,
1968,
480,
446,
13,
202,
202,
95,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
1082,
202,
95,
9506,
202,
2816,
653,
1011,
833,
63,
77,
8009,
588,
797,
7675,
17994,
5621,
9506,
202,
430,
261,
77,
397,
404,
411,
833,
18,
2469,
13,
9506,
202,
95,
6862,
202,
2816,
653,
1011,
3104,
13636,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2816,
653,
1011,
7310,
31,
202,
202,
2463,
2
] |
aClasspath.append( new Path(aClasspath.getProject(), anOutputDirectoryFile.getPath())); aJavaTask.setClasspath(aClasspath); | if (secpropag) { aJavaTask.createArg().setValue("-secpropag"); } | private void buildJOnASJar(final String inBaseName, final File inSourceJar,final File inDestJar, final Hashtable someFiles,String inPublicId) { org.apache.tools.ant.taskdefs.Java aJavaTask = null; String aGenIcClassName = genicClass; boolean isOldGenIC = false; boolean isTempDirectory = false; File anOutputDirectoryFile = null; // do not call GenIC // only copy file if (noGENIC) { try { FileUtils.newFileUtils().copyFile(inSourceJar, inDestJar); return; } catch (IOException anIOException) { throw new BuildException("Unable to write EJB jar", anIOException); } } // call GenIC try { aJavaTask = (Java) getTask().getProject().createTask("java"); aJavaTask.setTaskName("genic"); if(aGenIcClassName == null) { aGenIcClassName = GENIC_CLASS; } else if( OLD_GENIC_CLASS.equals(aGenIcClassName) ){ isOldGenIC = true; } // ClassName aJavaTask.setClassname(aGenIcClassName); // JVM Args if( jonasroot == null ) { throw new BuildException("Error : set the jonasroot parameter"); } else if ( ! jonasroot.isDirectory() ) { log("jonasroot attribut '" + jonasroot + "' is not a valid directory", Project.MSG_ERR); } aJavaTask.createJvmarg().setValue("-Dinstall.root=" + jonasroot); File aJavaPolicyFile = new File(jonasroot,"config/java.policy"); if( aJavaPolicyFile.exists() ) { aJavaTask.createJvmarg().setValue("-Djava.security.policy=" + aJavaPolicyFile.toString() ); } // Find output directory if( ouputdirectory == null ) { anOutputDirectoryFile = createTempDir(); isTempDirectory = true; log("Use temporary output directory : " + anOutputDirectoryFile, Project.MSG_VERBOSE); } else { anOutputDirectoryFile = ouputdirectory; log("Use temporary specific output directory : " + anOutputDirectoryFile, Project.MSG_VERBOSE); } aJavaTask.createArg().setValue("-d"); aJavaTask.createArg().setFile(anOutputDirectoryFile); // Additionnal args aJavaTask.createArg().setLine(additionalArgs); // KeepGenerated if (keepgenerated) { aJavaTask.createArg().setValue("-keepgenerated"); } // Verbose if( verbose ) { aJavaTask.createArg().setValue("-verbose"); } // -secpropag if( secpropag ) { aJavaTask.createArg().setValue("-secpropag"); } // The compiler if (compiler == null) { // try to use the compiler specified by build.compiler. Right now we are just going // to allow Jikes String aBuildCompiler = getTask().getProject().getProperty("build.compiler"); if ("jikes".equals(aBuildCompiler) ) { aJavaTask.createArg().setValue("-javac"); aJavaTask.createArg().setValue("jikes"); } } else { if( ! "default".equals( compiler ) ) { aJavaTask.createArg().setValue("-javac"); aJavaTask.createArg().setLine(compiler); } } if( ! isOldGenIC ) { // the add in jar features is buggy... aJavaTask.createArg().setValue("-noaddinjar"); } aJavaTask.createArg().setValue(inSourceJar.getPath()); // try to create the classpath for the correct ORB Path aClasspath = getCombinedClasspath(); if( aClasspath == null ) { aClasspath = new Path(getTask().getProject()); } if( orb != null ) { String aOrbJar = new File(jonasroot,"lib/" + orb + "_jonas.jar").toString(); String aConfigDir = new File(jonasroot,"config/").toString(); Path aJOnASOrbPath = new Path(aClasspath.getProject(), aOrbJar + File.pathSeparator + aConfigDir ); aClasspath.append( aJOnASOrbPath ); } else { log("No ORB propertie setup (RMI, JEREMIE, DAVID).", Project.MSG_WARN); } // append the output directory aClasspath.append( new Path(aClasspath.getProject(), anOutputDirectoryFile.getPath())); aJavaTask.setClasspath(aClasspath); aJavaTask.setFork(true); log("Calling " + aGenIcClassName + " for " + inSourceJar.toString(), Project.MSG_VERBOSE); if (aJavaTask.executeJava() != 0) { throw new BuildException("GenIC reported an error"); } // Update the list of files. addAllFiles(anOutputDirectoryFile,"",someFiles); // rewrite the jar with the new files super.writeJar(inBaseName, inDestJar, someFiles, inPublicId); } catch(BuildException aBuildException) { throw aBuildException; } catch (Exception e) { // Have to catch this because of the semantics of calling main() String msg = "Exception while calling " + aGenIcClassName + ". Details: " + e.toString(); throw new BuildException(msg, e); } finally { if( isTempDirectory && anOutputDirectoryFile != null) { dellAllFiles(anOutputDirectoryFile); } else if( cleanWorkDir && anOutputDirectoryFile != null) { dellAllFilesInside(anOutputDirectoryFile); } } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/JonasDeploymentTool.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
46,
1398,
3033,
10813,
12,
6385,
514,
316,
29907,
16,
1171,
9079,
727,
1387,
316,
1830,
10813,
16,
6385,
1387,
316,
9378,
10813,
16,
1171,
9079,
727,
18559,
2690,
2697,
16,
780,
316,
4782,
548,
13,
288,
1377,
2358,
18,
19211,
18,
6642,
18,
970,
18,
4146,
12537,
18,
5852,
279,
5852,
2174,
273,
446,
31,
1377,
514,
279,
7642,
45,
71,
3834,
273,
3157,
335,
797,
31,
1377,
1250,
353,
7617,
7642,
2871,
273,
629,
31,
1377,
1250,
353,
7185,
2853,
273,
629,
31,
1377,
1387,
392,
1447,
2853,
812,
273,
446,
31,
1377,
368,
741,
486,
745,
10938,
2871,
1377,
368,
1338,
1610,
585,
1377,
309,
261,
2135,
16652,
2871,
13,
288,
540,
775,
288,
5411,
13779,
18,
2704,
812,
1989,
7675,
3530,
812,
12,
267,
1830,
10813,
16,
316,
9378,
10813,
1769,
5411,
327,
31,
540,
289,
1044,
261,
14106,
392,
14106,
13,
288,
5411,
604,
394,
18463,
2932,
3370,
358,
1045,
12157,
7334,
3113,
392,
14106,
1769,
540,
289,
1377,
289,
9079,
368,
745,
10938,
2871,
1377,
775,
288,
540,
279,
5852,
2174,
273,
261,
5852,
13,
11478,
7675,
588,
4109,
7675,
2640,
2174,
2932,
6290,
8863,
540,
279,
5852,
2174,
18,
542,
2174,
461,
2932,
4507,
335,
8863,
540,
309,
12,
69,
7642,
45,
71,
3834,
422,
446,
13,
288,
5411,
279,
7642,
45,
71,
3834,
273,
611,
1157,
2871,
67,
5237,
31,
540,
289,
469,
309,
12,
30432,
67,
16652,
2871,
67,
5237,
18,
14963,
12,
69,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
46,
1398,
3033,
10813,
12,
6385,
514,
316,
29907,
16,
1171,
9079,
727,
1387,
316,
1830,
10813,
16,
6385,
1387,
316,
9378,
10813,
16,
1171,
9079,
727,
18559,
2690,
2697,
16,
780,
316,
4782,
548,
13,
288,
1377,
2358,
18,
19211,
18,
6642,
18,
970,
18,
4146,
12537,
18,
5852,
279,
5852,
2174,
273,
446,
31,
1377,
514,
279,
7642,
45,
71,
3834,
273,
3157,
335,
797,
31,
1377,
1250,
353,
7617,
7642,
2871,
273,
629,
31,
1377,
1250,
353,
7185,
2853,
273,
629,
31,
1377,
1387,
392,
1447,
2853,
812,
273,
446,
31,
1377,
368,
741,
486,
745,
10938,
2871,
1377,
368,
1338,
1610,
585,
1377,
309,
261,
2135,
16652,
2871,
13,
288,
540,
2
] |
break _loop2024; | break _loop2025; | public final void label_constant(AST _t) throws RecognitionException { AST label_constant_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: { AST __t2019 = _t; AST tmp665_AST_in = (AST)_t; match(_t,COLUMNLABEL); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop2021: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp666_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop2021; } } while (true); } _t = __t2019; _t = _t.getNextSibling(); break; } case LABEL: { AST __t2022 = _t; AST tmp667_AST_in = (AST)_t; match(_t,LABEL); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop2024: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp668_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop2024; } } while (true); } _t = __t2022; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1433,
67,
14384,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1433,
67,
14384,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
13473,
13545,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
6734,
29,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6028,
25,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
11009,
13545,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
14384,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
95,
1082,
202,
67,
6498,
18212,
21,
30,
1082,
202,
2896,
288,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
4208,
5535,
3719,
288,
6862,
202,
9053,
1853,
25308,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
1916,
24899,
88,
16,
4208,
5535,
1769,
6862,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
6862,
202,
14384,
24899,
88,
1769,
6862,
202,
67,
88,
273,
389,
1349,
2471,
31,
9506,
202,
97,
9506,
202,
12107,
288,
6862,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1433,
67,
14384,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1433,
67,
14384,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
13473,
13545,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
6734,
29,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6028,
25,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
11009,
13545,
1769,
1082,
202,
67,
88,
2
] |
public TA_RetCode CDLEVENINGDOJISTAR( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], double optInPenetration, MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( optInPenetration == (-4e+37) ) optInPenetration = 3.000000e-1; else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) return TA_RetCode. TA_BAD_PARAM; lookbackTotal = CDLEVENINGDOJISTAR_Lookback (optInPenetration); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } BodyLongPeriodTotal = 0; BodyDojiPeriodTotal = 0; BodyShortPeriodTotal = 0; BodyLongTrailingIdx = startIdx -2 - (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) ; BodyDojiTrailingIdx = startIdx -1 - (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].avgPeriod) ; BodyShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ; i = BodyLongTrailingIdx; while( i < startIdx-2 ) { BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = BodyDojiTrailingIdx; while( i < startIdx-1 ) { BodyDojiPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = BodyShortTrailingIdx; while( i < startIdx ) { BodyShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-2] - inLow[i-2] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-2] - ( inClose[i-2] >= inOpen[i-2] ? inClose[i-2] : inOpen[i-2] ) ) + ( ( inClose[i-2] >= inOpen[i-2] ? inOpen[i-2] : inClose[i-2] ) - inLow[i-2] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inClose[i-2] >= inOpen[i-2] ? 1 : -1 ) == 1 && ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) <= ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].avgPeriod) != 0.0? BodyDojiPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( (((inOpen[i-1]) < (inClose[i-1])) ? (inOpen[i-1]) : (inClose[i-1])) > (((inOpen[i-2]) > (inClose[i-2])) ? (inOpen[i-2]) : (inClose[i-2])) ) && ( Math.abs ( inClose[i] - inOpen[i] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) != 0.0? BodyShortPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inClose[i] >= inOpen[i] ? 1 : -1 ) == -1 && inClose[i] < inClose[i-2] - ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) * optInPenetration ) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-2] - inOpen[i-2] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-2] - inLow[i-2] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-2] - ( inClose[i-2] >= inOpen[i-2] ? inClose[i-2] : inOpen[i-2] ) ) + ( ( inClose[i-2] >= inOpen[i-2] ? inOpen[i-2] : inClose[i-2] ) - inLow[i-2] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyLongTrailingIdx] - inOpen[BodyLongTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyLongTrailingIdx] - inLow[BodyLongTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyLongTrailingIdx] - ( inClose[BodyLongTrailingIdx] >= inOpen[BodyLongTrailingIdx] ? inClose[BodyLongTrailingIdx] : inOpen[BodyLongTrailingIdx] ) ) + ( ( inClose[BodyLongTrailingIdx] >= inOpen[BodyLongTrailingIdx] ? inOpen[BodyLongTrailingIdx] : inClose[BodyLongTrailingIdx] ) - inLow[BodyLongTrailingIdx] ) : 0 ) ) ) ; BodyDojiPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyDojiTrailingIdx] - inOpen[BodyDojiTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyDojiTrailingIdx] - inLow[BodyDojiTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyDoji.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyDojiTrailingIdx] - ( inClose[BodyDojiTrailingIdx] >= inOpen[BodyDojiTrailingIdx] ? inClose[BodyDojiTrailingIdx] : inOpen[BodyDojiTrailingIdx] ) ) + ( ( inClose[BodyDojiTrailingIdx] >= inOpen[BodyDojiTrailingIdx] ? inOpen[BodyDojiTrailingIdx] : inClose[BodyDojiTrailingIdx] ) - inLow[BodyDojiTrailingIdx] ) : 0 ) ) ) ; BodyShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyShortTrailingIdx] - inOpen[BodyShortTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyShortTrailingIdx] - inLow[BodyShortTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyShortTrailingIdx] - ( inClose[BodyShortTrailingIdx] >= inOpen[BodyShortTrailingIdx] ? inClose[BodyShortTrailingIdx] : inOpen[BodyShortTrailingIdx] ) ) + ( ( inClose[BodyShortTrailingIdx] >= inOpen[BodyShortTrailingIdx] ? inOpen[BodyShortTrailingIdx] : inClose[BodyShortTrailingIdx] ) - inLow[BodyShortTrailingIdx] ) : 0 ) ) ) ; i++; BodyLongTrailingIdx++; BodyDojiTrailingIdx++; BodyShortTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
21508,
900,
58,
1157,
1360,
3191,
46,
5511,
985,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
1645,
2153,
382,
24251,
278,
7034,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
509,
596,
4522,
8526,
262,
95,
1645,
5652,
3244,
21102,
5027,
5269,
16,
5652,
3708,
5027,
5269,
16,
5652,
4897,
5027,
5269,
31,
509,
277,
16,
596,
4223,
16,
5652,
3244,
21102,
16808,
4223,
16,
5652,
3708,
16808,
4223,
16,
5652,
4897,
16808,
4223,
16,
2324,
823,
5269,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
309,
12,
2153,
382,
24251,
278,
7034,
422,
19236,
24,
73,
15,
6418,
3719,
2153,
382,
24251,
278,
7034,
273,
890,
18,
9449,
73,
17,
21,
31,
469,
309,
12,
261,
3838,
382,
24251,
278,
7034,
411,
374,
18,
9449,
73,
15,
20,
13,
747,
261,
3838,
382,
24251,
278,
7034,
405,
890,
18,
9449,
73,
15,
6418,
13,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
16234,
67,
8388,
31,
2324,
823,
5269,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
399,
37,
67,
7055,
1085,
21508,
900,
58,
1157,
1360,
3191,
46,
5511,
985,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
1645,
2153,
382,
24251,
278,
7034,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
509,
596,
4522,
8526,
262,
95,
1645,
5652,
3244,
21102,
5027,
5269,
16,
5652,
3708,
5027,
5269,
16,
5652,
4897,
5027,
5269,
31,
509,
277,
16,
596,
4223,
16,
5652,
3244,
21102,
16808,
4223,
16,
5652,
3708,
16808,
4223,
16,
5652,
4897,
16808,
4223,
16,
2324,
823,
5269,
31,
309,
12,
27108,
411,
374,
262,
327,
2
] |
||
public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { if (propName != null && propName.startsWith(SVNProperty.SVN_WC_PREFIX)) { SVNErrorManager.error("svn: '" + propName + "' is a wcprop , thus not accessible to clients"); } if (revision == null || !revision.isValid()) { revision = SVNRevision.HEAD; } SVNRepository repos = createRepository(url, null, pegRevision, revision); doGetRemoteProperty(url, "", repos, propName, revision, recursive, handler); | public SVNPropertyData doGetProperty(final File path, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive) throws SVNException { final SVNPropertyData[] data = new SVNPropertyData[1]; doGetProperty(path, propName, pegRevision, revision, recursive, new ISVNPropertyHandler() { public void handleProperty(File file, SVNPropertyData property) { if (data[0] == null && path.equals(file)) { data[0] = property; } } public void handleProperty(SVNURL url, SVNPropertyData property) { } public void handleProperty(long revision, SVNPropertyData property) { } }); return data[0]; | public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { if (propName != null && propName.startsWith(SVNProperty.SVN_WC_PREFIX)) { SVNErrorManager.error("svn: '" + propName + "' is a wcprop , thus not accessible to clients"); } if (revision == null || !revision.isValid()) { revision = SVNRevision.HEAD; } SVNRepository repos = createRepository(url, null, pegRevision, revision); doGetRemoteProperty(url, "", repos, propName, revision, recursive, handler); } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/026c3c298d2b29f461c13290e9de063ef8ed3a82/SVNWCClient.java/buggy/javasvn/src/org/tmatesoft/svn/core/wc/SVNWCClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
1396,
12,
23927,
50,
1785,
880,
16,
514,
9994,
16,
29537,
50,
7939,
29231,
7939,
16,
29537,
50,
7939,
6350,
16,
1250,
5904,
16,
4437,
58,
50,
1396,
1503,
1838,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
5986,
461,
480,
446,
597,
9994,
18,
17514,
1190,
12,
23927,
50,
1396,
18,
23927,
50,
67,
59,
39,
67,
6307,
3719,
288,
5411,
29537,
50,
668,
1318,
18,
1636,
2932,
31505,
30,
2119,
397,
9994,
397,
2491,
353,
279,
14310,
5986,
269,
12493,
486,
12718,
358,
7712,
8863,
3639,
289,
3639,
309,
261,
13057,
422,
446,
747,
401,
13057,
18,
26810,
10756,
288,
5411,
6350,
273,
29537,
50,
7939,
18,
12458,
31,
3639,
289,
3639,
29537,
50,
3305,
13686,
273,
752,
3305,
12,
718,
16,
446,
16,
29231,
7939,
16,
6350,
1769,
3639,
23611,
5169,
1396,
12,
718,
16,
23453,
13686,
16,
9994,
16,
6350,
16,
5904,
16,
1838,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
1396,
12,
23927,
50,
1785,
880,
16,
514,
9994,
16,
29537,
50,
7939,
29231,
7939,
16,
29537,
50,
7939,
6350,
16,
1250,
5904,
16,
4437,
58,
50,
1396,
1503,
1838,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
5986,
461,
480,
446,
597,
9994,
18,
17514,
1190,
12,
23927,
50,
1396,
18,
23927,
50,
67,
59,
39,
67,
6307,
3719,
288,
5411,
29537,
50,
668,
1318,
18,
1636,
2932,
31505,
30,
2119,
397,
9994,
397,
2491,
353,
279,
14310,
5986,
269,
12493,
486,
12718,
358,
7712,
8863,
3639,
289,
3639,
309,
261,
13057,
422,
446,
747,
401,
13057,
18,
26810,
10756,
288,
5411,
6350,
273,
29537,
50,
7939,
18,
12458,
31,
3639,
289,
3639,
2
] |
if(Number.class.isAssignableFrom(c)) | if(c == CONVERT_TO_DEFAULT_TYPE || Number.class.isAssignableFrom(c)) | public Object convert(Object value, Class c) { if (value == null) { return null; } if(Number.class.isAssignableFrom(c)) { Number temp = getNumber(value); return (temp instanceof Long) ? (Long)temp : new Long(temp.longValue()); } if(String.class.isAssignableFrom(c)) { return toString(value); } throw new ConversionException(this + " cannot handle conversions of type " + c); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/fa40a56b8cc96122d09a1c904b1ccfb4f8658ac1/LongLocaleConverter.java/buggy/wicket/src/java/wicket/util/convert/converters/i18n/LongLocaleConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1765,
12,
921,
460,
16,
1659,
276,
13,
202,
95,
202,
202,
430,
261,
1132,
422,
446,
13,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
12,
1854,
18,
1106,
18,
291,
7961,
1265,
12,
71,
3719,
202,
202,
95,
1082,
202,
1854,
1906,
273,
18491,
12,
1132,
1769,
1082,
202,
2463,
261,
5814,
1276,
3407,
13,
692,
261,
3708,
13,
5814,
294,
394,
3407,
12,
5814,
18,
5748,
620,
10663,
202,
202,
97,
202,
202,
430,
12,
780,
18,
1106,
18,
291,
7961,
1265,
12,
71,
3719,
202,
202,
95,
1082,
202,
2463,
1762,
12,
1132,
1769,
202,
202,
97,
202,
202,
12849,
394,
16401,
503,
12,
2211,
397,
9506,
202,
6,
2780,
1640,
22586,
434,
618,
315,
397,
276,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1765,
12,
921,
460,
16,
1659,
276,
13,
202,
95,
202,
202,
430,
261,
1132,
422,
446,
13,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
12,
1854,
18,
1106,
18,
291,
7961,
1265,
12,
71,
3719,
202,
202,
95,
1082,
202,
1854,
1906,
273,
18491,
12,
1132,
1769,
1082,
202,
2463,
261,
5814,
1276,
3407,
13,
692,
261,
3708,
13,
5814,
294,
394,
3407,
12,
5814,
18,
5748,
620,
10663,
202,
202,
97,
202,
202,
430,
12,
780,
18,
1106,
18,
291,
7961,
1265,
12,
71,
3719,
202,
202,
95,
1082,
202,
2463,
1762,
12,
1132,
1769,
202,
202,
97,
202,
202,
12849,
394,
16401,
503,
12,
2211,
2
] |
log.warn("Failed to unmarshal database config", ex); | log.warn("Failed to unmarshall database config", ex); | public DataManager() throws SAXException, IOException, SQLException, FilterParseException, RTCException { Category log = ThreadCategory.getInstance(DataManager.class); java.sql.Connection dbConn = null; try { DatabaseConnectionFactory.reload(); dbConn = DatabaseConnectionFactory.getInstance().getConnection(); } catch(IOException ex) { log.warn("Failed to load database config", ex); throw new UndeclaredThrowableException(ex); } catch(MarshalException ex) { log.warn("Failed to unmarshal database config", ex); throw new UndeclaredThrowableException(ex); } catch(ValidationException ex) { log.warn("Failed to unmarshal database config", ex); throw new UndeclaredThrowableException(ex); } catch(SQLException ex) { log.warn("Failed to get database connection", ex); throw new UndeclaredThrowableException(ex); } catch(ClassNotFoundException ex) { log.warn("Failed to get database connection", ex); throw new UndeclaredThrowableException(ex); } // read the categories.xml to get all the categories createCategoriesMap(); if (m_categories == null || m_categories.isEmpty()) { throw new RTCException("No categories found in categories.xml"); } if(log.isDebugEnabled()) log.debug("Number of categories read: " + m_categories.size()); // create data holder m_map = new RTCHashMap(30000); // create the service tbale map m_serviceTableMap = new HashMap(); PreparedStatement stmt = dbConn.prepareStatement(RTCConstants.SQL_DB_SVC_TABLE_READ); ResultSet rset = stmt.executeQuery(); while(rset.next()) { long svcid = rset.getLong(1); String svcname = rset.getString(2); m_serviceTableMap.put(svcname, new Long(svcid)); } rset.close(); stmt.close(); // Populate the nodes initially from the database populateNodesFromDB(dbConn); // close the database connection try { if(dbConn != null) dbConn.close(); } catch(SQLException e) { ThreadCategory.getInstance(getClass()).warn("Exception closing JDBC connection", e); } } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/889e15e41e6d088a176164d18c623855cb3c126b/DataManager.java/buggy/src/services/org/opennms/netmgt/rtc/DataManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1910,
1318,
1435,
202,
202,
15069,
14366,
16,
1082,
4202,
1860,
16,
1082,
4202,
6483,
16,
1082,
4202,
4008,
13047,
16,
1082,
4202,
13060,
39,
503,
202,
95,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
751,
1318,
18,
1106,
1769,
202,
202,
6290,
18,
4669,
18,
1952,
30795,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4254,
18749,
18,
17517,
5621,
1082,
202,
1966,
3543,
273,
5130,
18749,
18,
588,
1442,
7675,
588,
1952,
5621,
202,
202,
97,
202,
202,
14683,
12,
14106,
431,
13,
202,
202,
95,
1082,
202,
1330,
18,
8935,
2932,
2925,
358,
1262,
2063,
642,
3113,
431,
1769,
1082,
202,
12849,
394,
1351,
16571,
15155,
503,
12,
338,
1769,
202,
202,
97,
202,
202,
14683,
12,
8105,
503,
431,
13,
202,
202,
95,
1082,
202,
1330,
18,
8935,
2932,
2925,
358,
11401,
2063,
642,
3113,
431,
1769,
1082,
202,
12849,
394,
1351,
16571,
15155,
503,
12,
338,
1769,
202,
202,
97,
202,
202,
14683,
12,
18146,
431,
13,
202,
202,
95,
1082,
202,
1330,
18,
8935,
2932,
2925,
358,
11401,
2063,
642,
3113,
431,
1769,
1082,
202,
12849,
394,
1351,
16571,
15155,
503,
12,
338,
1769,
202,
202,
97,
202,
202,
14683,
12,
23116,
431,
13,
202,
202,
95,
1082,
202,
1330,
18,
8935,
2932,
2925,
358,
336,
2063,
1459,
3113,
431,
1769,
1082,
202,
12849,
394,
1351,
16571,
15155,
503,
12,
338,
1769,
202,
202,
97,
202,
202,
14683,
12,
797,
3990,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
1318,
1435,
202,
202,
15069,
14366,
16,
1082,
4202,
1860,
16,
1082,
4202,
6483,
16,
1082,
4202,
4008,
13047,
16,
1082,
4202,
13060,
39,
503,
202,
95,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
751,
1318,
18,
1106,
1769,
202,
202,
6290,
18,
4669,
18,
1952,
30795,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4254,
18749,
18,
17517,
5621,
1082,
202,
1966,
3543,
273,
5130,
18749,
18,
588,
1442,
7675,
588,
1952,
5621,
202,
202,
97,
202,
202,
14683,
12,
14106,
431,
13,
202,
202,
95,
1082,
202,
1330,
18,
8935,
2932,
2925,
358,
1262,
2063,
642,
3113,
431,
1769,
1082,
202,
12849,
394,
1351,
16571,
15155,
2
] |
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
1770,
12,
82,
74,
16,
4766,
1377,
3742,
16,
4766,
1377,
949,
12,
588,
3910,
6952,
9334,
16609,
6952,
1435,
3631,
4766,
1377,
21036,
16,
4766,
1377,
10971,
10019,
10792,
898,
31,
5411,
289,
5397,
368,
5411,
368,
6781,
576,
30,
225,
7508,
461,
493,
33,
7508,
461,
263,
1068,
548,
5411,
368,
5411,
648,
576,
30,
288,
7734,
368,
7,
1369,
2872,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
2
] |
||
field = extractField(); | field = extractField(dd); | private void parseTrailer(DataDictionary dd) throws InvalidMessage { StringField field = extractField(); while (field != null && isTrailerField(field, dd)) { trailer.setField(field); field = extractField(); } } | 6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/dc9d63d57d27d305f006b465a8d01563a4d8591f/Message.java/buggy/src/quickfix/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1609,
2895,
12,
751,
10905,
6957,
13,
1216,
1962,
1079,
288,
3639,
30916,
652,
273,
2608,
974,
12,
449,
1769,
3639,
1323,
261,
1518,
480,
446,
597,
353,
1609,
2895,
974,
12,
1518,
16,
6957,
3719,
288,
5411,
25899,
18,
542,
974,
12,
1518,
1769,
5411,
652,
273,
2608,
974,
12,
449,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1609,
2895,
12,
751,
10905,
6957,
13,
1216,
1962,
1079,
288,
3639,
30916,
652,
273,
2608,
974,
12,
449,
1769,
3639,
1323,
261,
1518,
480,
446,
597,
353,
1609,
2895,
974,
12,
1518,
16,
6957,
3719,
288,
5411,
25899,
18,
542,
974,
12,
1518,
1769,
5411,
652,
273,
2608,
974,
12,
449,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
paddingBefore[column] = pgu.getBorders().getPaddingBefore(false); paddingAfter[column] = pgu.getBorders().getPaddingAfter(false); | paddingBefore[column] = pgu.getBorders().getPaddingBefore(false, pgu.getCellLM()); paddingAfter[column] = pgu.getBorders().getPaddingAfter(false, pgu.getCellLM()); | private void setupElementList(int column) { GridUnit gu = getActiveGridUnit(column); EffRow row = getActiveRow(); if (gu.isEmpty()){ elementLists[column] = null; start[column] = 0; end[column] = -1; widths[column] = 0; startRow[column] = activeRow; keepWithNextSignals[column] = false; forcedBreaks[column] = false; } else if (gu.isPrimary()) { PrimaryGridUnit pgu = (PrimaryGridUnit)gu; boolean makeBoxForWholeRow = false; if (row.getExplicitHeight().min > 0) { boolean contentsSmaller = ElementListUtils.removeLegalBreaks( pgu.getElements(), row.getExplicitHeight()); if (contentsSmaller) { makeBoxForWholeRow = true; } } if (pgu.isLastGridUnitRowSpan() && pgu.getRow() != null) { makeBoxForWholeRow |= pgu.getRow().mustKeepTogether(); makeBoxForWholeRow |= pgu.getTable().mustKeepTogether(); } if (makeBoxForWholeRow) { List list = new java.util.ArrayList(1); int height = row.getExplicitHeight().opt; if (height == 0) { height = row.getHeight().opt; } list.add(new KnuthBoxCellWithBPD(height, pgu)); elementLists[column] = list; } else { //Copy elements (LinkedList) to array lists to improve //element access performance elementLists[column] = new java.util.ArrayList(pgu.getElements()); } if (isSeparateBorderModel()) { borderBefore[column] = pgu.getBorders().getBorderBeforeWidth(false); } else { borderBefore[column] = pgu.getBorders().getBorderBeforeWidth(false) / 2; } paddingBefore[column] = pgu.getBorders().getPaddingBefore(false); paddingAfter[column] = pgu.getBorders().getPaddingAfter(false); start[column] = 0; end[column] = -1; widths[column] = 0; startRow[column] = activeRow; keepWithNextSignals[column] = false; forcedBreaks[column] = false; } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/8cad88a3e360b7c05118fb66275f45b090f51c97/TableStepper.java/buggy/src/java/org/apache/fop/layoutmgr/table/TableStepper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
1046,
682,
12,
474,
1057,
13,
288,
3639,
7145,
2802,
3058,
273,
11960,
6313,
2802,
12,
2827,
1769,
3639,
512,
1403,
1999,
1027,
273,
11960,
1999,
5621,
3639,
309,
261,
6891,
18,
291,
1921,
10756,
95,
5411,
930,
7432,
63,
2827,
65,
273,
446,
31,
5411,
787,
63,
2827,
65,
273,
374,
31,
5411,
679,
63,
2827,
65,
273,
300,
21,
31,
5411,
15801,
63,
2827,
65,
273,
374,
31,
5411,
787,
1999,
63,
2827,
65,
273,
2695,
1999,
31,
5411,
3455,
1190,
2134,
23346,
63,
2827,
65,
273,
629,
31,
5411,
13852,
26806,
63,
2827,
65,
273,
629,
31,
3639,
289,
469,
309,
261,
6891,
18,
291,
6793,
10756,
288,
5411,
15884,
6313,
2802,
293,
6891,
273,
261,
6793,
6313,
2802,
13,
6891,
31,
5411,
1250,
1221,
3514,
1290,
2888,
790,
1999,
273,
629,
31,
5411,
309,
261,
492,
18,
588,
17186,
2686,
7675,
1154,
405,
374,
13,
288,
7734,
1250,
2939,
19187,
264,
273,
3010,
682,
1989,
18,
4479,
30697,
26806,
12,
13491,
293,
6891,
18,
588,
3471,
9334,
1027,
18,
588,
17186,
2686,
10663,
7734,
309,
261,
3980,
19187,
264,
13,
288,
10792,
1221,
3514,
1290,
2888,
790,
1999,
273,
638,
31,
7734,
289,
5411,
289,
5411,
309,
261,
84,
6891,
18,
291,
3024,
6313,
2802,
1999,
6952,
1435,
597,
293,
6891,
18,
588,
1999,
1435,
480,
446,
13,
288,
7734,
1221,
3514,
1290,
2888,
790,
1999,
5626,
293,
6891,
18,
588,
1999,
7675,
11926,
11523,
56,
717,
2437,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
1046,
682,
12,
474,
1057,
13,
288,
3639,
7145,
2802,
3058,
273,
11960,
6313,
2802,
12,
2827,
1769,
3639,
512,
1403,
1999,
1027,
273,
11960,
1999,
5621,
3639,
309,
261,
6891,
18,
291,
1921,
10756,
95,
5411,
930,
7432,
63,
2827,
65,
273,
446,
31,
5411,
787,
63,
2827,
65,
273,
374,
31,
5411,
679,
63,
2827,
65,
273,
300,
21,
31,
5411,
15801,
63,
2827,
65,
273,
374,
31,
5411,
787,
1999,
63,
2827,
65,
273,
2695,
1999,
31,
5411,
3455,
1190,
2134,
23346,
63,
2827,
65,
273,
629,
31,
5411,
13852,
26806,
63,
2827,
65,
273,
629,
31,
3639,
289,
469,
309,
261,
6891,
18,
291,
6793,
10756,
288,
5411,
15884,
6313,
2802,
2
] |
public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"); } boolean newDefaultSet = false; Experimenter foundUser = getExperimenter(user.getId()); for (GroupExperimenterMap map : (List<GroupExperimenterMap>) foundUser.collectGroupExperimenterMap(null)) { if (map.parent().getId().equals(group.getId())) { map.setDefaultGroupLink(Boolean.TRUE); newDefaultSet = true; } else { map.setDefaultGroupLink(Boolean.FALSE); } | public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"); | public void setDefaultGroup(Experimenter user, ExperimenterGroup group) { if (user == null) return; if (group == null) return; if (group.getId() == null) { throw new ApiUsageException("Group argument to setDefaultGroup " + "must be managed (i.e. have an id)"); } boolean newDefaultSet = false; Experimenter foundUser = getExperimenter(user.getId()); for (GroupExperimenterMap map : (List<GroupExperimenterMap>) foundUser.collectGroupExperimenterMap(null)) { if (map.parent().getId().equals(group.getId())) { map.setDefaultGroupLink(Boolean.TRUE); newDefaultSet = true; } else { map.setDefaultGroupLink(Boolean.FALSE); } } if ( ! newDefaultSet) { throw new ApiUsageException("Group "+group.getId()+" was not " + "found for user "+user.getId()); } iUpdate.flush(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7e7c45d25ea1bbef3485ae116b3eb108d9f6f5ef/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9277,
1114,
12,
424,
457,
381,
2328,
729,
16,
1312,
457,
381,
2328,
1114,
1041,
13,
565,
288,
3639,
309,
261,
1355,
422,
446,
13,
327,
31,
3639,
309,
261,
1655,
422,
446,
13,
327,
31,
7734,
309,
261,
1655,
18,
26321,
1435,
422,
446,
13,
540,
288,
540,
202,
12849,
394,
4458,
5357,
503,
2932,
1114,
1237,
358,
9277,
1114,
315,
397,
540,
1082,
202,
6,
11926,
506,
7016,
261,
77,
18,
73,
18,
1240,
392,
612,
2225,
1769,
3639,
289,
7734,
1250,
394,
1868,
694,
273,
629,
31,
3639,
1312,
457,
381,
2328,
1392,
1299,
273,
26246,
457,
381,
2328,
12,
1355,
18,
26321,
10663,
3639,
364,
261,
1114,
424,
457,
381,
2328,
863,
852,
294,
261,
682,
32,
1114,
424,
457,
381,
2328,
863,
23429,
540,
202,
202,
7015,
1299,
18,
14676,
1114,
424,
457,
381,
2328,
863,
12,
2011,
3719,
3639,
288,
540,
202,
430,
261,
1458,
18,
2938,
7675,
26321,
7675,
14963,
12,
1655,
18,
26321,
1435,
3719,
540,
202,
95,
540,
202,
202,
1458,
18,
542,
1868,
1114,
2098,
12,
5507,
18,
18724,
1769,
540,
202,
202,
2704,
1868,
694,
273,
638,
31,
540,
202,
97,
540,
202,
12107,
1850,
202,
95,
540,
202,
202,
1458,
18,
542,
1868,
1114,
2098,
12,
5507,
18,
21053,
1769,
540,
202,
97,
202,
202,
97,
7734,
309,
261,
401,
394,
1868,
694,
13,
3639,
288,
540,
202,
12849,
394,
4458,
5357,
503,
2932,
1114,
13773,
1655,
18,
26321,
1435,
9078,
1703,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9277,
1114,
12,
424,
457,
381,
2328,
729,
16,
1312,
457,
381,
2328,
1114,
1041,
13,
565,
288,
3639,
309,
261,
1355,
422,
446,
13,
327,
31,
3639,
309,
261,
1655,
422,
446,
13,
327,
31,
7734,
309,
261,
1655,
18,
26321,
1435,
422,
446,
13,
540,
288,
540,
202,
12849,
394,
4458,
5357,
503,
2932,
1114,
1237,
358,
9277,
1114,
315,
397,
540,
1082,
202,
6,
11926,
506,
7016,
261,
77,
18,
73,
18,
1240,
392,
612,
2225,
1769,
3639,
289,
7734,
1250,
394,
1868,
694,
273,
629,
31,
3639,
1312,
457,
381,
2328,
1392,
1299,
273,
26246,
457,
381,
2328,
12,
1355,
18,
26321,
10663,
3639,
364,
261,
1114,
424,
457,
381,
2328,
863,
2
] |
public boolean isFinished() { | public synchronized boolean isFinished() { | public boolean isFinished() { return finished; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/a6a9cc01004d94d4bdefc0b76c0bdb1962187369/SplitFileFetcherSegment.java/buggy/src/freenet/client/async/SplitFileFetcherSegment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
10577,
1435,
288,
202,
202,
2463,
6708,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
10577,
1435,
288,
202,
202,
2463,
6708,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
extendObject(runtime.getClasses().getFileTestModule()); | extendObject(runtime.getModule("FileTest")); | protected void initializeClass() { Ruby runtime = getRuntime(); RubyString separator = runtime.newString(File.separator); separator.freeze(); defineConstant("SEPARATOR", separator); defineConstant("Separator", separator); RubyString altSeparator = runtime.newString(File.separatorChar == '/' ? "\\" : "/"); altSeparator.freeze(); defineConstant("ALT_SEPARATOR", altSeparator); RubyString pathSeparator = runtime.newString(File.pathSeparator); pathSeparator.freeze(); defineConstant("PATH_SEPARATOR", pathSeparator); // Create constants for open flags setConstant("RDONLY", runtime.newFixnum(IOModes.RDONLY)); setConstant("WRONLY", runtime.newFixnum(IOModes.WRONLY)); setConstant("RDWR", runtime.newFixnum(IOModes.RDWR)); setConstant("CREAT", runtime.newFixnum(IOModes.CREAT)); setConstant("EXCL", runtime.newFixnum(IOModes.EXCL)); setConstant("NOCTTY", runtime.newFixnum(IOModes.NOCTTY)); setConstant("TRUNC", runtime.newFixnum(IOModes.TRUNC)); setConstant("APPEND", runtime.newFixnum(IOModes.APPEND)); setConstant("NONBLOCK", runtime.newFixnum(IOModes.NONBLOCK)); // Create constants for flock setConstant("LOCK_SH", runtime.newFixnum(RubyFile.LOCK_SH)); setConstant("LOCK_EX", runtime.newFixnum(RubyFile.LOCK_EX)); setConstant("LOCK_NB", runtime.newFixnum(RubyFile.LOCK_NB)); setConstant("LOCK_UN", runtime.newFixnum(RubyFile.LOCK_UN)); // TODO Singleton methods: atime, blockdev?, chardev?, chown, ctime, directory? // TODO Singleton methods: executable?, executable_real?, extname, fnmatch, fnmatch? // TODO Singleton methods: ftype, grpowned?, lchmod, lchown, link, mtime, owned? // TODO Singleton methods: pipe?, readlink, setgid?, setuid?, size?, socket?, // TODO Singleton methods: stat, sticky?, symlink, symlink?, umask, utime extendObject(runtime.getClasses().getFileTestModule()); defineSingletonMethod("basename", Arity.optional()); defineSingletonMethod("chmod", Arity.twoArguments()); defineSingletonMethod("delete", Arity.optional(), "unlink"); defineSingletonMethod("dirname", Arity.singleArgument()); defineSingletonMethod("expand_path", Arity.optional()); defineSingletonMethod("join", Arity.optional()); defineSingletonMethod("lstat", Arity.singleArgument()); defineSingletonMethod("open", Arity.optional()); defineSingletonMethod("rename", Arity.twoArguments()); defineSingletonMethod("split", Arity.singleArgument()); defineSingletonMethod("stat", Arity.singleArgument(), "lstat"); defineSingletonMethod("symlink?", Arity.singleArgument(), "symlink_p"); defineSingletonMethod("truncate", Arity.twoArguments()); defineSingletonMethod("unlink", Arity.optional()); // TODO: Define instance methods: atime, chmod, chown, ctime, lchmod, lchown, lstat, mtime //defineMethod("flock", Arity.singleArgument()); defineMethod("initialize", Arity.optional()); defineMethod("path", Arity.noArguments()); defineMethod("truncate", Arity.singleArgument()); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/ca6b16e996ea9af83ce593594b9c69b9364a9924/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
797,
1435,
288,
202,
202,
54,
10340,
3099,
273,
18814,
5621,
3639,
19817,
780,
4182,
273,
3099,
18,
2704,
780,
12,
812,
18,
11287,
1769,
3639,
4182,
18,
29631,
5621,
3639,
4426,
6902,
2932,
4550,
3113,
4182,
1769,
3639,
4426,
6902,
2932,
6581,
3113,
4182,
1769,
3639,
19817,
780,
3770,
6581,
273,
3099,
18,
2704,
780,
12,
812,
18,
11287,
2156,
422,
2023,
692,
14520,
294,
4016,
1769,
3639,
3770,
6581,
18,
29631,
5621,
3639,
4426,
6902,
2932,
18255,
67,
4550,
3113,
3770,
6581,
1769,
7734,
19817,
780,
589,
6581,
273,
3099,
18,
2704,
780,
12,
812,
18,
803,
6581,
1769,
3639,
589,
6581,
18,
29631,
5621,
3639,
4426,
6902,
2932,
4211,
67,
4550,
3113,
589,
6581,
1769,
7734,
368,
1788,
6810,
364,
1696,
2943,
3639,
444,
6902,
2932,
20403,
10857,
3113,
3099,
18,
2704,
8585,
2107,
12,
45,
1872,
1145,
18,
20403,
10857,
10019,
3639,
444,
6902,
2932,
7181,
10857,
3113,
3099,
18,
2704,
8585,
2107,
12,
45,
1872,
1145,
18,
7181,
10857,
10019,
3639,
444,
6902,
2932,
20403,
7181,
3113,
3099,
18,
2704,
8585,
2107,
12,
45,
1872,
1145,
18,
20403,
7181,
10019,
3639,
444,
6902,
2932,
5458,
789,
3113,
3099,
18,
2704,
8585,
2107,
12,
45,
1872,
1145,
18,
5458,
789,
10019,
3639,
444,
6902,
2932,
2294,
5017,
3113,
3099,
18,
2704,
8585,
2107,
12,
45,
1872,
1145,
18,
2294,
5017,
10019,
3639,
444,
6902,
2932,
3417,
1268,
5538,
3113,
3099,
18,
2704,
8585,
2107,
12,
45,
1872,
1145,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
797,
1435,
288,
202,
202,
54,
10340,
3099,
273,
18814,
5621,
3639,
19817,
780,
4182,
273,
3099,
18,
2704,
780,
12,
812,
18,
11287,
1769,
3639,
4182,
18,
29631,
5621,
3639,
4426,
6902,
2932,
4550,
3113,
4182,
1769,
3639,
4426,
6902,
2932,
6581,
3113,
4182,
1769,
3639,
19817,
780,
3770,
6581,
273,
3099,
18,
2704,
780,
12,
812,
18,
11287,
2156,
422,
2023,
692,
14520,
294,
4016,
1769,
3639,
3770,
6581,
18,
29631,
5621,
3639,
4426,
6902,
2932,
18255,
67,
4550,
3113,
3770,
6581,
1769,
7734,
19817,
780,
589,
6581,
273,
3099,
18,
2704,
780,
12,
812,
18,
803,
6581,
1769,
3639,
589,
6581,
18,
29631,
5621,
3639,
4426,
6902,
2932,
4211,
67,
4550,
2
] |
System.err.println ("Couldn't add Asset " + someAsset.toString()); System.err.println("Caught "+e); | logger.warn ("Couldn't add Asset " + someAsset.toString()); logger.warn("Caught "+e); | private void insertAsset (Asset someAsset) { boolean inTrans = false; try { if (getBlackboardService().getSubscriber().isMyTransaction() == false) { openTransaction(); inTrans = true; } getSubscriber().publishAdd(someAsset); } catch (Exception e) { synchronized (System.err) { System.err.println ("Couldn't add Asset " + someAsset.toString()); System.err.println("Caught "+e); e.printStackTrace(); } } finally { if (inTrans == true) { closeTransaction(); inTrans = false; } } } | 14573 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14573/9833cdbbbe023bd989a2f2816011ce8a48001215/GaugeLDMPlugIn.java/clean/workflow/GaugeLDMPlugIn.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2243,
6672,
261,
6672,
2690,
6672,
13,
288,
202,
202,
6494,
316,
1429,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
588,
13155,
3752,
1179,
7675,
588,
11118,
7675,
291,
12062,
3342,
1435,
422,
629,
13,
288,
4202,
1082,
202,
3190,
3342,
5621,
4202,
1082,
202,
267,
1429,
273,
638,
31,
4202,
202,
202,
97,
4202,
202,
202,
588,
11118,
7675,
6543,
986,
12,
19068,
6672,
1769,
4202,
202,
97,
1044,
261,
503,
425,
13,
288,
4202,
202,
202,
22043,
261,
3163,
18,
370,
13,
288,
4202,
1082,
202,
3163,
18,
370,
18,
8222,
7566,
16342,
1404,
527,
10494,
315,
397,
2690,
6672,
18,
10492,
10663,
540,
202,
202,
3163,
18,
370,
18,
8222,
2932,
24512,
13773,
73,
1769,
540,
202,
202,
73,
18,
1188,
6332,
5621,
540,
202,
97,
4202,
202,
97,
565,
202,
202,
23417,
288,
565,
1082,
202,
430,
261,
267,
1429,
422,
638,
13,
288,
1082,
4202,
202,
4412,
3342,
5621,
1082,
4202,
202,
267,
1429,
273,
629,
31,
1082,
565,
289,
377,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2243,
6672,
261,
6672,
2690,
6672,
13,
288,
202,
202,
6494,
316,
1429,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
588,
13155,
3752,
1179,
7675,
588,
11118,
7675,
291,
12062,
3342,
1435,
422,
629,
13,
288,
4202,
1082,
202,
3190,
3342,
5621,
4202,
1082,
202,
267,
1429,
273,
638,
31,
4202,
202,
202,
97,
4202,
202,
202,
588,
11118,
7675,
6543,
986,
12,
19068,
6672,
1769,
4202,
202,
97,
1044,
261,
503,
425,
13,
288,
4202,
202,
202,
22043,
261,
3163,
18,
370,
13,
288,
4202,
1082,
202,
3163,
18,
370,
18,
8222,
7566,
16342,
1404,
527,
10494,
315,
397,
2690,
6672,
18,
10492,
10663,
540,
202,
202,
3163,
18,
370,
2
] |
this.destinationField.getText()); | destinationField.getText()); | public void actionPerformed(java.awt.event.ActionEvent e) { if(e.getSource() == this.validationButton) { int priority = 6; boolean globalQueue = true; if(((String)this.queueSelecter.getSelectedItem()).equals(I18n.getMessage("thaw.common.false"))) globalQueue = false; for(int i = 0; i < this.priorities.length ; i++) { if(((String)this.prioritySelecter.getSelectedItem()).equals(I18n.getMessage("thaw.plugin.priority.p"+i))) priority = i; } if(this.destinationField.getText() == null || "".equals( this.destinationField.getText() )) { new thaw.core.WarningWindow(this.core, I18n.getMessage("thaw.plugin.fetch.chooseADestination")); return; } this.fetchPlugin.fetchFiles(this.fileList.getText().split("\n"), priority, 0, globalQueue, this.destinationField.getText()); this.fileList.setText(""); } if(e.getSource() == this.destinationButton) { FileChooser fileChooser; if(this.destinationField.getText() != null && !"".equals( this.destinationField.getText() )) { fileChooser = new FileChooser(this.destinationField.getText()); } else { fileChooser = new FileChooser(); } File dir = null; fileChooser.setTitle(I18n.getMessage("thaw.plugin.fetch.destinationDirectory")); fileChooser.setDirectoryOnly(true); fileChooser.setDialogType(JFileChooser.SAVE_DIALOG); dir = fileChooser.askOneFile(); if(dir == null) { Logger.info(this, "Selection canceled"); return; } this.destinationField.setText(dir.getPath()); this.core.getConfig().setValue("lastDestinationDirectory", this.destinationField.getText()); } if(e.getSource() == this.loadListButton) { FileChooser fileChooser = new FileChooser(); File toParse = null; fileChooser.setTitle(I18n.getMessage("thaw.plugin.fetch.loadKeyListFromFile")); fileChooser.setDirectoryOnly(false); fileChooser.setDialogType(JFileChooser.OPEN_DIALOG); toParse = fileChooser.askOneFile(); if(toParse == null) { Logger.info(this, "Nothing to parse"); return; } Vector keys = KeyFileFilter.extractKeys(toParse); if(keys == null || keys.size() <= 0) { new WarningWindow(this.core, "No key found !"); return; } String result = this.fileList.getText(); for(Iterator i = keys.iterator(); i.hasNext() ;) { String key = (String)i.next(); result = result + key + "\n"; } this.fileList.setText(result); } } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/FetchPanel.java/clean/src/thaw/plugins/fetchPlugin/FetchPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
425,
13,
288,
202,
202,
430,
12,
73,
18,
588,
1830,
1435,
422,
333,
18,
8685,
3616,
13,
288,
1082,
202,
474,
4394,
273,
1666,
31,
1082,
202,
6494,
2552,
3183,
273,
638,
31,
1082,
202,
430,
12443,
12,
780,
13,
2211,
18,
4000,
3391,
264,
18,
588,
7416,
1180,
1435,
2934,
14963,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
5743,
6,
20349,
9506,
202,
6347,
3183,
273,
629,
31,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
333,
18,
17927,
1961,
18,
2469,
274,
277,
27245,
288,
9506,
202,
430,
12443,
12,
780,
13,
2211,
18,
8457,
3391,
264,
18,
588,
7416,
1180,
1435,
2934,
14963,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
8457,
18,
84,
6,
15,
77,
20349,
6862,
202,
8457,
273,
277,
31,
1082,
202,
97,
1082,
202,
430,
12,
2211,
18,
10590,
974,
18,
588,
1528,
1435,
422,
446,
747,
1408,
18,
14963,
12,
333,
18,
10590,
974,
18,
588,
1528,
1435,
8623,
288,
9506,
202,
2704,
286,
2219,
18,
3644,
18,
6210,
3829,
12,
2211,
18,
3644,
16,
467,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
5754,
18,
25777,
1880,
3856,
7923,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
2211,
18,
5754,
3773,
18,
5754,
2697,
12,
2211,
18,
768,
682,
18,
588,
1528,
7675,
4939,
31458,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
425,
13,
288,
202,
202,
430,
12,
73,
18,
588,
1830,
1435,
422,
333,
18,
8685,
3616,
13,
288,
1082,
202,
474,
4394,
273,
1666,
31,
1082,
202,
6494,
2552,
3183,
273,
638,
31,
1082,
202,
430,
12443,
12,
780,
13,
2211,
18,
4000,
3391,
264,
18,
588,
7416,
1180,
1435,
2934,
14963,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
5743,
6,
20349,
9506,
202,
6347,
3183,
273,
629,
31,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
333,
18,
17927,
1961,
18,
2469,
274,
277,
27245,
288,
9506,
202,
430,
12443,
12,
780,
13,
2211,
2
] |
pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); | pc += 2 * INDEX_LEN; pc = pc + getOffset(program, pc); | executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; pushProgState(gData, 0, 0, null, currentContinuation_pc, currentContinuation_op); nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state = popProgState(gData); currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; pushProgState(gData, 0, 0, gData.backTrackLast, currentContinuation_pc, currentContinuation_op); if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state = popProgState(gData); gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } pushProgState(gData, min, max, null, currentContinuation_pc, currentContinuation_op); if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state = popProgState(gData); if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; if (new_max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state = popProgState(gData); if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { pushProgState(gData, state.min, state.max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); if (new_min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/21f0e29bbdfc8503803ff1fb05a60d0d11f579d5/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
751,
18,
4057,
1769,
97,
3639,
364,
261,
25708,
13,
288,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
22218,
622,
315,
397,
314,
751,
18,
4057,
397,
3104,
1061,
273,
315,
397,
1061,
1769,
97,
5411,
1620,
261,
556,
13,
288,
5411,
648,
2438,
3665,
67,
13625,
30,
7734,
563,
273,
638,
31,
7734,
898,
31,
5411,
648,
2438,
3665,
67,
38,
1741,
30,
7734,
309,
261,
75,
751,
18,
4057,
480,
374,
13,
288,
10792,
309,
261,
75,
751,
18,
5421,
12554,
747,
18701,
14015,
75,
751,
18,
17745,
18,
7133,
473,
6756,
5937,
67,
12845,
30690,
13,
480,
374,
3719,
288,
13491,
309,
16051,
291,
1670,
4065,
12,
7549,
63,
75,
751,
18,
4057,
300,
404,
22643,
288,
18701,
563,
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,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
2
] |
SourceInfo sourceInfo = sourceInfo(sourceName); gui.showSourceText(sourceInfo); /*Vector functions = new Vector(); Iterator it = functionNames.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); ScriptItem si = (ScriptItem) entry.getValue(); if (scriptName.equals(si.getSourceInfo().getUrl())) { functions.add(entry.getKey()); } } Collections.sort(functions); list.setListData(functions); */ | gui.showFileWindow(sourceName, -1); | void openScript(TreePath path) { if (path == null) return; Object node = path.getLastPathComponent(); if (node == null) return; String sourceName = (String) scriptNames.get(node); if (sourceName == null) return; SourceInfo sourceInfo = sourceInfo(sourceName); gui.showSourceText(sourceInfo); // display functions for opened script file /*Vector functions = new Vector(); Iterator it = functionNames.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); ScriptItem si = (ScriptItem) entry.getValue(); if (scriptName.equals(si.getSourceInfo().getUrl())) { functions.add(entry.getKey()); } } Collections.sort(functions); list.setListData(functions); */ } | 3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/a6c3cef3428192957aadb751de0ca101448f1431/HelmaDebugger.java/buggy/src/helma/scripting/rhino/debug/HelmaDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1696,
3651,
12,
2471,
743,
589,
13,
288,
3639,
309,
261,
803,
422,
446,
13,
5411,
327,
31,
3639,
1033,
756,
273,
589,
18,
588,
3024,
743,
1841,
5621,
3639,
309,
261,
2159,
422,
446,
13,
5411,
327,
31,
3639,
514,
28337,
273,
261,
780,
13,
2728,
1557,
18,
588,
12,
2159,
1769,
3639,
309,
261,
3168,
461,
422,
446,
13,
5411,
327,
31,
3639,
4998,
966,
1084,
966,
273,
1084,
966,
12,
3168,
461,
1769,
3639,
13238,
18,
4500,
1830,
1528,
12,
3168,
966,
1769,
3639,
368,
2562,
4186,
364,
10191,
2728,
585,
3639,
1748,
5018,
4186,
273,
394,
5589,
5621,
3639,
4498,
518,
273,
445,
1557,
18,
4099,
694,
7675,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
518,
18,
4285,
5621,
5411,
7739,
1180,
7533,
273,
261,
3651,
1180,
13,
1241,
18,
24805,
5621,
5411,
309,
261,
4263,
461,
18,
14963,
12,
7722,
18,
588,
1830,
966,
7675,
588,
1489,
1435,
3719,
288,
7734,
4186,
18,
1289,
12,
4099,
18,
588,
653,
10663,
5411,
289,
3639,
289,
3639,
5737,
18,
3804,
12,
10722,
1769,
3639,
666,
18,
542,
682,
751,
12,
10722,
1769,
1195,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1696,
3651,
12,
2471,
743,
589,
13,
288,
3639,
309,
261,
803,
422,
446,
13,
5411,
327,
31,
3639,
1033,
756,
273,
589,
18,
588,
3024,
743,
1841,
5621,
3639,
309,
261,
2159,
422,
446,
13,
5411,
327,
31,
3639,
514,
28337,
273,
261,
780,
13,
2728,
1557,
18,
588,
12,
2159,
1769,
3639,
309,
261,
3168,
461,
422,
446,
13,
5411,
327,
31,
3639,
4998,
966,
1084,
966,
273,
1084,
966,
12,
3168,
461,
1769,
3639,
13238,
18,
4500,
1830,
1528,
12,
3168,
966,
1769,
3639,
368,
2562,
4186,
364,
10191,
2728,
585,
3639,
1748,
5018,
4186,
273,
394,
5589,
5621,
3639,
4498,
518,
273,
445,
1557,
18,
4099,
694,
7675,
9838,
5621,
3639,
1323,
261,
2
] |
try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } | String string = null; | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlign((String) evalAttr("align", getAlignExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBorder((String) evalAttr("border", getBorderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHeight((String) evalAttr("height", getHeightExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHspace((String) evalAttr("hspace", getHspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setImageName((String) evalAttr("imageName", getImageNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setIsmap((String) evalAttr("ismap", getIsmapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } // The "lowsrc" attribute is deprecated. This needs to be removed // when the "lowsrc" attribute is finally removed. try { setLowsrc((String) evalAttr("lowsrc", getLowsrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPageKey((String) evalAttr("pageKey", getPageKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamId((String) evalAttr("paramId", getParamIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamName((String) evalAttr("paramName", getParamNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamProperty((String) evalAttr("paramProperty", getParamPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamScope((String) evalAttr("paramScope", getParamScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrc((String) evalAttr("src", getSrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setUsemap((String) evalAttr("usemap", getUsemapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setVspace((String) evalAttr("vspace", getVspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setWidth((String) evalAttr("width", getWidthExpr(), String.class)); } catch (NullAttributeException ex) { } } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/161d973cb8d39005faf380ea401e605000b8884b/ELImgTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10044,
12443,
780,
13,
5302,
3843,
2932,
7989,
3113,
336,
10044,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
25715,
12443,
780,
13,
5302,
3843,
2932,
8815,
3113,
2882,
1019,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
27276,
12443,
780,
13,
5302,
3843,
2932,
4210,
3113,
9263,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
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,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10044,
12443,
780,
13,
5302,
3843,
2932,
7989,
3113,
336,
10044,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
2
] |
public boolean isGeneratingDebugChanged() { | public final boolean isGeneratingDebugChanged() { | public boolean isGeneratingDebugChanged() { return generatingDebugChanged; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1250,
353,
21755,
2829,
5033,
1435,
288,
3639,
327,
12516,
2829,
5033,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1250,
353,
21755,
2829,
5033,
1435,
288,
3639,
327,
12516,
2829,
5033,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int opv = forceCopy ? OnParentVersionAction.COPY : child.getDefinition().getOnParentVersion(); | int opv; if (forceCopy) { opv = OnParentVersionAction.COPY; } else { opv = child.getDefinition().getOnParentVersion(); } | protected static PersistentNode checkin(PersistentNode parent, QName name, NodeImpl src, boolean initOnly, boolean forceCopy) throws RepositoryException { PersistentNode node; // create new node node = parent.addNode(name, NativePVM.NT_REP_FROZEN, null); // initialize the internal properties if (src.isNodeType(MIX_REFERENCEABLE)) { node.setPropertyValue(JCR_FROZENUUID, InternalValue.create(src.getUUID())); } node.setPropertyValue(JCR_FROZENPRIMARYTYPE, InternalValue.create(((NodeTypeImpl) src.getPrimaryNodeType()).getQName())); if (src.hasProperty(NodeImpl.JCR_MIXINTYPES)) { NodeType[] mixins = src.getMixinNodeTypes(); InternalValue[] ivalues = new InternalValue[mixins.length]; for (int i = 0; i < mixins.length; i++) { ivalues[i] = InternalValue.create(((NodeTypeImpl) mixins[i]).getQName()); } node.setPropertyValues(JCR_FROZENMIXINTYPES, PropertyType.NAME, ivalues); } if (!initOnly) { // add the properties PropertyIterator piter = src.getProperties(); while (piter.hasNext()) { PropertyImpl prop = (PropertyImpl) piter.nextProperty(); int opv = forceCopy ? OnParentVersionAction.COPY : prop.getDefinition().getOnParentVersion(); switch (opv) { case OnParentVersionAction.ABORT: parent.reload(); throw new VersionException("Checkin aborted due to OPV in " + prop.safeGetJCRPath()); case OnParentVersionAction.COMPUTE: case OnParentVersionAction.IGNORE: case OnParentVersionAction.INITIALIZE: break; case OnParentVersionAction.VERSION: case OnParentVersionAction.COPY: node.copyFrom(prop); break; } } // add the frozen children and vistories NodeIterator niter = src.getNodes(); while (niter.hasNext()) { NodeImpl child = (NodeImpl) niter.nextNode(); int opv = forceCopy ? OnParentVersionAction.COPY : child.getDefinition().getOnParentVersion(); switch (opv) { case OnParentVersionAction.ABORT: throw new VersionException("Checkin aborted due to OPV in " + child.safeGetJCRPath()); case OnParentVersionAction.COMPUTE: case OnParentVersionAction.IGNORE: case OnParentVersionAction.INITIALIZE: break; case OnParentVersionAction.VERSION: if (child.isNodeType(MIX_VERSIONABLE)) { // create frozen versionable child PersistentNode newChild = node.addNode(child.getQName(), NativePVM.NT_REP_FROZEN_HISTORY, null); newChild.setPropertyValue(JCR_VERSIONHISTORY, InternalValue.create(child.getVersionHistory().getUUID())); newChild.setPropertyValue(JCR_BASEVERSION, InternalValue.create(child.getBaseVersion().getUUID())); break; } // else copy case OnParentVersionAction.COPY: checkin(node, child.getQName(), child, false, true); break; } } } return node; } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/e89c1f0023710e42d712449aaa565dfacda9b5e2/InternalFrozenNodeImpl.java/buggy/src/java/org/apache/jackrabbit/core/version/persistence/InternalFrozenNodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
11049,
907,
866,
267,
12,
11906,
907,
982,
16,
16723,
508,
16,
4766,
5411,
2029,
2828,
1705,
16,
1250,
1208,
3386,
16,
4766,
5411,
1250,
2944,
2951,
13,
5411,
1216,
13367,
288,
3639,
11049,
907,
756,
31,
3639,
368,
752,
394,
756,
3639,
756,
273,
982,
18,
1289,
907,
12,
529,
16,
16717,
52,
7397,
18,
1784,
67,
28879,
67,
42,
1457,
62,
1157,
16,
446,
1769,
3639,
368,
4046,
326,
2713,
1790,
3639,
309,
261,
4816,
18,
291,
15101,
12,
7492,
60,
67,
14617,
2782,
3719,
288,
5411,
756,
18,
542,
16107,
12,
46,
5093,
67,
42,
1457,
62,
1157,
5562,
16,
3186,
620,
18,
2640,
12,
4816,
18,
588,
5562,
1435,
10019,
3639,
289,
3639,
756,
18,
542,
16107,
12,
46,
5093,
67,
42,
1457,
62,
1157,
18864,
2399,
16,
7734,
3186,
620,
18,
2640,
12443,
12,
15101,
2828,
13,
1705,
18,
588,
6793,
15101,
1435,
2934,
588,
13688,
1435,
10019,
3639,
309,
261,
4816,
18,
5332,
1396,
12,
907,
2828,
18,
46,
5093,
67,
7492,
60,
706,
10564,
3719,
288,
5411,
20896,
8526,
26805,
273,
1705,
18,
588,
14439,
907,
2016,
5621,
5411,
3186,
620,
8526,
277,
2372,
273,
394,
3186,
620,
63,
14860,
2679,
18,
2469,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
26805,
18,
2469,
31,
277,
27245,
288,
7734,
277,
2372,
63,
77,
65,
273,
3186,
620,
18,
2640,
12443,
12,
15101,
2828,
13,
26805,
63,
77,
65,
2934,
588,
13688,
10663,
5411,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
11049,
907,
866,
267,
12,
11906,
907,
982,
16,
16723,
508,
16,
4766,
5411,
2029,
2828,
1705,
16,
1250,
1208,
3386,
16,
4766,
5411,
1250,
2944,
2951,
13,
5411,
1216,
13367,
288,
3639,
11049,
907,
756,
31,
3639,
368,
752,
394,
756,
3639,
756,
273,
982,
18,
1289,
907,
12,
529,
16,
16717,
52,
7397,
18,
1784,
67,
28879,
67,
42,
1457,
62,
1157,
16,
446,
1769,
3639,
368,
4046,
326,
2713,
1790,
3639,
309,
261,
4816,
18,
291,
15101,
12,
7492,
60,
67,
14617,
2782,
3719,
288,
5411,
756,
18,
542,
16107,
12,
46,
5093,
67,
42,
1457,
62,
1157,
5562,
16,
3186,
620,
18,
2640,
12,
4816,
18,
588,
5562,
1435,
10019,
3639,
289,
2
] |
if (occ.isOnLeftHandSide()) { | if (occ.isOnLeftHandSide() || occ.isSelfAssignment()) { | private boolean assigned(List usages) { for (Iterator j = usages.iterator(); j.hasNext();) { NameOccurrence occ = (NameOccurrence) j.next(); if (occ.isOnLeftHandSide()) { return true; } continue; } return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/5ead87cf4db96663c353ed28674ac86ae80f3967/MethodArgumentCouldBeFinal.java/clean/pmd/src/net/sourceforge/pmd/rules/optimization/MethodArgumentCouldBeFinal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
6958,
12,
682,
584,
1023,
13,
288,
3639,
364,
261,
3198,
525,
273,
584,
1023,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
5411,
1770,
24267,
9145,
273,
261,
461,
24267,
13,
525,
18,
4285,
5621,
5411,
309,
261,
25049,
18,
291,
1398,
3910,
1144,
8895,
1435,
747,
9145,
18,
291,
10084,
7729,
10756,
288,
7734,
327,
638,
31,
5411,
289,
2398,
1324,
31,
3639,
289,
3639,
327,
629,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
6958,
12,
682,
584,
1023,
13,
288,
3639,
364,
261,
3198,
525,
273,
584,
1023,
18,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
5411,
1770,
24267,
9145,
273,
261,
461,
24267,
13,
525,
18,
4285,
5621,
5411,
309,
261,
25049,
18,
291,
1398,
3910,
1144,
8895,
1435,
747,
9145,
18,
291,
10084,
7729,
10756,
288,
7734,
327,
638,
31,
5411,
289,
2398,
1324,
31,
3639,
289,
3639,
327,
629,
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
] |
StringBuffer buffer = WebRepositoryConnector.fetchResource(template.taskQueryUrl); | String buffer = WebRepositoryConnector.fetchResource(template.taskQueryUrl); | public void testRepositoryTemplate() throws Exception { StringBuffer buffer = WebRepositoryConnector.fetchResource(template.taskQueryUrl); IProgressMonitor monitor = new NullProgressMonitor(); MultiStatus queryStatus = new MultiStatus(TasksUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null); final List<AbstractQueryHit> hits = new ArrayList<AbstractQueryHit>(); AbstractQueryHitCollector collector = new AbstractQueryHitCollector(TasksUiPlugin.getTaskListManager().getTaskList()) { @Override public void addMatch(AbstractQueryHit hit) { hits.add(hit); } }; IStatus resultingStatus = WebRepositoryConnector.performQuery(buffer, template.getAttribute(WebRepositoryConnector.TASK_REGEXP), template.taskPrefixUrl, template.repositoryUrl, monitor, collector); assertTrue(template.taskQueryUrl+"\n"+template.getAttribute(WebRepositoryConnector.TASK_REGEXP)+"\n"+resultingStatus.toString(), queryStatus.isOK()); assertTrue("Expected non-empty query result\n"+template.taskQueryUrl+"\n"+template.getAttribute(WebRepositoryConnector.TASK_REGEXP), hits.size()>0); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/925c56cd29a486a51cfd56ee2c309ee45ca25183/WebRepositoryConnectorTest.java/buggy/sandbox/org.eclipse.mylyn.sandbox.tests/src/org/eclipse/mylyn/sandbox/tests/WebRepositoryConnectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3305,
2283,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
2999,
3305,
7487,
18,
5754,
1420,
12,
3202,
18,
4146,
1138,
1489,
1769,
9506,
202,
45,
5491,
7187,
6438,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
5002,
1482,
843,
1482,
273,
394,
5991,
1482,
12,
6685,
13943,
3773,
18,
19415,
67,
734,
16,
467,
1482,
18,
3141,
16,
315,
1138,
563,
3113,
446,
1769,
202,
202,
6385,
987,
32,
7469,
1138,
13616,
34,
11076,
273,
394,
2407,
32,
7469,
1138,
13616,
34,
5621,
202,
202,
7469,
1138,
13616,
7134,
8543,
273,
394,
4115,
1138,
13616,
7134,
12,
6685,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
10756,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
527,
2060,
12,
7469,
1138,
13616,
6800,
13,
288,
9506,
202,
15173,
18,
1289,
12,
15989,
1769,
6862,
1082,
202,
97,
6862,
202,
20451,
9506,
202,
45,
1482,
8156,
1482,
273,
2999,
3305,
7487,
18,
16092,
1138,
12,
4106,
16,
1542,
18,
588,
1499,
12,
4079,
3305,
7487,
18,
15580,
67,
28225,
3631,
1542,
18,
4146,
2244,
1489,
16,
1542,
18,
9071,
1489,
16,
6438,
16,
8543,
1769,
9506,
202,
11231,
5510,
12,
3202,
18,
4146,
1138,
1489,
9078,
64,
82,
6,
15,
3202,
18,
588,
1499,
12,
4079,
3305,
7487,
18,
15580,
67,
28225,
13,
9078,
64,
82,
6,
15,
2088,
310,
1482,
18,
10492,
9334,
843,
1482,
18,
291,
3141,
10663,
202,
202,
11231,
5510,
2932,
6861,
1661,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3305,
2283,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
2999,
3305,
7487,
18,
5754,
1420,
12,
3202,
18,
4146,
1138,
1489,
1769,
9506,
202,
45,
5491,
7187,
6438,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
5002,
1482,
843,
1482,
273,
394,
5991,
1482,
12,
6685,
13943,
3773,
18,
19415,
67,
734,
16,
467,
1482,
18,
3141,
16,
315,
1138,
563,
3113,
446,
1769,
202,
202,
6385,
987,
32,
7469,
1138,
13616,
34,
11076,
273,
394,
2407,
32,
7469,
1138,
13616,
34,
5621,
202,
202,
7469,
1138,
13616,
7134,
8543,
273,
394,
4115,
1138,
13616,
7134,
12,
6685,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
10756,
288,
2
] |
public FSOutputStream createRaw(File f, boolean overwrite, short replication) | public FSOutputStream createRaw(Path f, boolean overwrite, short replication) | public FSOutputStream createRaw(File f, boolean overwrite, short replication) throws IOException { f = makeAbsolute(f); if (f.exists() && ! overwrite) { throw new IOException("File already exists:"+f); } File parent = f.getParentFile(); if (parent != null) parent.mkdirs(); return new LocalFSFileOutputStream(f); } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ee01fef4b4fb82c7492a4a747793839a4d14cd39/LocalFileSystem.java/clean/src/java/org/apache/hadoop/fs/LocalFileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9247,
4632,
752,
4809,
12,
743,
284,
16,
1250,
6156,
16,
3025,
11335,
13,
1377,
1216,
1860,
288,
3639,
284,
273,
1221,
10368,
12,
74,
1769,
3639,
309,
261,
74,
18,
1808,
1435,
597,
401,
6156,
13,
288,
5411,
604,
394,
1860,
2932,
812,
1818,
1704,
2773,
15,
74,
1769,
3639,
289,
3639,
1387,
982,
273,
284,
18,
588,
3054,
812,
5621,
3639,
309,
261,
2938,
480,
446,
13,
1850,
982,
18,
24816,
8291,
5621,
3639,
327,
394,
3566,
4931,
812,
4632,
12,
74,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
9247,
4632,
752,
4809,
12,
743,
284,
16,
1250,
6156,
16,
3025,
11335,
13,
1377,
1216,
1860,
288,
3639,
284,
273,
1221,
10368,
12,
74,
1769,
3639,
309,
261,
74,
18,
1808,
1435,
597,
401,
6156,
13,
288,
5411,
604,
394,
1860,
2932,
812,
1818,
1704,
2773,
15,
74,
1769,
3639,
289,
3639,
1387,
982,
273,
284,
18,
588,
3054,
812,
5621,
3639,
309,
261,
2938,
480,
446,
13,
1850,
982,
18,
24816,
8291,
5621,
3639,
327,
394,
3566,
4931,
812,
4632,
12,
74,
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
] |
Object[] errArgs = { name, clazz.getName() }; throw new PropertyException( Context.getMessage("msg.method.not.found", errArgs)); | throw PropertyException.withMessage2 ("msg.method.not.found", name, clazz.getName()); | public void defineFunctionProperties(String[] names, Class clazz, int attributes) throws PropertyException { for (int i=0; i < names.length; i++) { String name = names[i]; Method[] m = FunctionObject.findMethods(clazz, name); if (m == null) { Object[] errArgs = { name, clazz.getName() }; throw new PropertyException( Context.getMessage("msg.method.not.found", errArgs)); } if (m.length > 1) { Object[] errArgs = { name, clazz.getName() }; throw new PropertyException( Context.getMessage("msg.no.overload", errArgs)); } FunctionObject f = new FunctionObject(name, m[0], this); defineProperty(name, f, attributes); } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/e737c6d867e82d4ba7fd00e7e388c9c8da824ff0/ScriptableObject.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptableObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4426,
2083,
2297,
12,
780,
8526,
1257,
16,
1659,
4003,
16,
29159,
509,
1677,
13,
3639,
1216,
4276,
503,
565,
288,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
1257,
18,
2469,
31,
277,
27245,
288,
5411,
514,
508,
273,
1257,
63,
77,
15533,
5411,
2985,
8526,
312,
273,
4284,
921,
18,
4720,
4712,
12,
830,
3638,
16,
508,
1769,
5411,
309,
261,
81,
422,
446,
13,
288,
7734,
1033,
8526,
393,
2615,
273,
288,
508,
16,
4003,
18,
17994,
1435,
289,
31,
7734,
604,
394,
4276,
503,
12,
10792,
1772,
18,
24906,
2932,
3576,
18,
2039,
18,
902,
18,
7015,
3113,
393,
2615,
10019,
5411,
289,
5411,
309,
261,
81,
18,
2469,
405,
404,
13,
288,
7734,
1033,
8526,
393,
2615,
273,
288,
508,
16,
4003,
18,
17994,
1435,
289,
31,
7734,
604,
394,
4276,
503,
12,
10792,
1772,
18,
24906,
2932,
3576,
18,
2135,
18,
1643,
945,
3113,
393,
2615,
10019,
5411,
289,
5411,
4284,
921,
284,
273,
394,
4284,
921,
12,
529,
16,
312,
63,
20,
6487,
333,
1769,
5411,
14007,
12,
529,
16,
284,
16,
1677,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4426,
2083,
2297,
12,
780,
8526,
1257,
16,
1659,
4003,
16,
29159,
509,
1677,
13,
3639,
1216,
4276,
503,
565,
288,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
1257,
18,
2469,
31,
277,
27245,
288,
5411,
514,
508,
273,
1257,
63,
77,
15533,
5411,
2985,
8526,
312,
273,
4284,
921,
18,
4720,
4712,
12,
830,
3638,
16,
508,
1769,
5411,
309,
261,
81,
422,
446,
13,
288,
7734,
1033,
8526,
393,
2615,
273,
288,
508,
16,
4003,
18,
17994,
1435,
289,
31,
7734,
604,
394,
4276,
503,
12,
10792,
1772,
18,
24906,
2932,
3576,
18,
2039,
18,
902,
18,
7015,
3113,
393,
2615,
10019,
5411,
289,
5411,
309,
261,
81,
18,
2469,
405,
2
] |
boolean hasLimit = !scope.hasNoLimit(); | boolean hasLimit = !scope.hasNoLimit(); | private static List getResults(BrowseScope scope, List results, int max) throws SQLException { if (results == null) { return Collections.EMPTY_LIST; } List theResults = new ArrayList(); boolean hasLimit = !scope.hasNoLimit(); boolean isAuthorsBrowse = scope.getBrowseType() == AUTHORS_BROWSE; for (Iterator iterator = results.iterator(); iterator.hasNext();) { TableRow row = (TableRow) iterator.next(); Object theValue = (isAuthorsBrowse) ? (Object) row .getStringColumn("author") : (Object) new Integer(row .getIntColumn("item_id")); // Should not happen if (theValue == null) { continue; } // Exceeded limit if (hasLimit && (theResults.size() >= max)) { break; } theResults.add(theValue); if (log.isDebugEnabled()) { log.debug("Adding result " + theValue); } } return isAuthorsBrowse ? theResults : toItems(scope.getContext(), theResults); } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/9e4cb86aae7d6516b7b40cd755b2d5c214997bd4/Browse.java/clean/dspace/src/org/dspace/browse/Browse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
987,
21955,
12,
27304,
3876,
2146,
16,
987,
1686,
16,
509,
943,
13,
5411,
1216,
6483,
565,
288,
3639,
309,
261,
4717,
422,
446,
13,
3639,
288,
5411,
327,
5737,
18,
13625,
67,
7085,
31,
3639,
289,
3639,
987,
326,
3447,
273,
394,
2407,
5621,
3639,
1250,
711,
3039,
273,
401,
4887,
18,
5332,
2279,
3039,
5621,
3639,
1250,
353,
1730,
1383,
27304,
273,
2146,
18,
588,
27304,
559,
1435,
422,
12790,
14006,
67,
38,
11226,
1090,
31,
3639,
364,
261,
3198,
2775,
273,
1686,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
3639,
288,
5411,
3555,
1999,
1027,
273,
261,
30650,
13,
2775,
18,
4285,
5621,
5411,
1033,
326,
620,
273,
261,
291,
1730,
1383,
27304,
13,
692,
261,
921,
13,
1027,
10792,
263,
588,
780,
1494,
2932,
4161,
7923,
294,
261,
921,
13,
394,
2144,
12,
492,
10792,
263,
588,
1702,
1494,
2932,
1726,
67,
350,
7923,
1769,
5411,
368,
9363,
486,
5865,
5411,
309,
261,
5787,
620,
422,
446,
13,
5411,
288,
7734,
1324,
31,
5411,
289,
5411,
368,
1312,
5816,
1800,
5411,
309,
261,
5332,
3039,
597,
261,
5787,
3447,
18,
1467,
1435,
1545,
943,
3719,
5411,
288,
7734,
898,
31,
5411,
289,
5411,
326,
3447,
18,
1289,
12,
5787,
620,
1769,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
288,
7734,
613,
18,
4148,
2932,
13962,
563,
315,
397,
326,
620,
1769,
5411,
289,
3639,
289,
3639,
327,
353,
1730,
1383,
27304,
692,
326,
3447,
294,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
987,
21955,
12,
27304,
3876,
2146,
16,
987,
1686,
16,
509,
943,
13,
5411,
1216,
6483,
565,
288,
3639,
309,
261,
4717,
422,
446,
13,
3639,
288,
5411,
327,
5737,
18,
13625,
67,
7085,
31,
3639,
289,
3639,
987,
326,
3447,
273,
394,
2407,
5621,
3639,
1250,
711,
3039,
273,
401,
4887,
18,
5332,
2279,
3039,
5621,
3639,
1250,
353,
1730,
1383,
27304,
273,
2146,
18,
588,
27304,
559,
1435,
422,
12790,
14006,
67,
38,
11226,
1090,
31,
3639,
364,
261,
3198,
2775,
273,
1686,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
3639,
288,
5411,
3555,
1999,
1027,
273,
261,
30650,
13,
2775,
18,
4285,
5621,
5411,
1033,
326,
620,
273,
261,
291,
1730,
2
] |
putParameter("brgt", new Float(0), null, 's'); | newParameter("brgt", new Float(0), null, 's'); | public DigilibRequest() { // create HashMap(20) super(30); /* * Definition of parameters and default values. * Parameter of type 's' are for the servlet. */ // url of the page/document (second part) putParameter("fn", "", null, 's'); // page number putParameter("pn", new Integer(1), null, 's'); // width of client in pixels putParameter("dw", new Integer(0), null, 's'); // height of client in pixels putParameter("dh", new Integer(0), null, 's'); // left edge of image (float from 0 to 1) putParameter("wx", new Float(0), null, 's'); // top edge in image (float from 0 to 1) putParameter("wy", new Float(0), null, 's'); // width of image (float from 0 to 1) putParameter("ww", new Float(1), null, 's'); // height of image (float from 0 to 1) putParameter("wh", new Float(1), null, 's'); // scale factor putParameter("ws", new Float(1), null, 's'); // special options like 'fit' for gifs putParameter("mo", "", null, 's'); // rotation angle (degree) putParameter("rot", new Float(0), null, 's'); // contrast enhancement factor putParameter("cont", new Float(0), null, 's'); // brightness enhancement factor putParameter("brgt", new Float(0), null, 's'); // color multiplicative factors putParameter("rgbm", "0/0/0", null, 's'); // color additive factors putParameter("rgba", "0/0/0", null, 's'); // display dpi resolution (total) putParameter("ddpi", new Float(0), null, 's'); // display dpi X resolution putParameter("ddpix", new Float(0), null, 's'); // display dpi Y resolution putParameter("ddpiy", new Float(0), null, 's'); /* * Parameter of type 'i' are not exchanged between client and server */ // url of the page/document (first part, may be empty) putParameter("request.path", "", null, 'i'); // base URL (from http:// to below /servlet) putParameter("base.url", null, null, 'i'); // DocuImage instance for this request putParameter("docu.image", image, null, 'i'); image = null; // HttpServletRequest for this request putParameter("servlet.request", servletRequest, null, 'i'); servletRequest = null; /* * Parameter of type 'c' are for the clients internal use */ // display level of digilib (0 = just image, 1 = one HTML page // 2 = in frameset, 3 = XUL-'frameset' // 4 = XUL-Sidebar ) putParameter("lv", new Integer(2), null, 'c'); // total number of pages putParameter("pt", new Integer(0), null, 'c'); // marks putParameter("mk", "", null, 'c'); } | 53488 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53488/88ba7ade7a8cd8b2101c154152d34314d4816655/DigilibRequest.java/clean/servlet/src/digilib/servlet/DigilibRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11678,
330,
495,
691,
1435,
288,
202,
202,
759,
752,
4317,
12,
3462,
13,
202,
202,
9565,
12,
5082,
1769,
202,
202,
20308,
1082,
380,
10849,
434,
1472,
471,
805,
924,
18,
1082,
380,
5498,
434,
618,
296,
87,
11,
854,
364,
326,
8100,
18,
1875,
1195,
202,
202,
759,
880,
434,
326,
1363,
19,
5457,
261,
8538,
1087,
13,
202,
202,
458,
1662,
2932,
4293,
3113,
23453,
446,
16,
296,
87,
8284,
202,
202,
759,
1363,
1300,
202,
202,
458,
1662,
2932,
7449,
3113,
394,
2144,
12,
21,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
1835,
434,
1004,
316,
8948,
202,
202,
458,
1662,
2932,
22512,
3113,
394,
2144,
12,
20,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
2072,
434,
1004,
316,
8948,
202,
202,
458,
1662,
2932,
19153,
3113,
394,
2144,
12,
20,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
2002,
3591,
434,
1316,
261,
5659,
628,
374,
358,
404,
13,
202,
202,
458,
1662,
2932,
27226,
3113,
394,
5450,
12,
20,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
1760,
3591,
316,
1316,
261,
5659,
628,
374,
358,
404,
13,
202,
202,
458,
1662,
2932,
91,
93,
3113,
394,
5450,
12,
20,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
1835,
434,
1316,
261,
5659,
628,
374,
358,
404,
13,
202,
202,
458,
1662,
2932,
3107,
3113,
394,
5450,
12,
21,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
2072,
434,
1316,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11678,
330,
495,
691,
1435,
288,
202,
202,
759,
752,
4317,
12,
3462,
13,
202,
202,
9565,
12,
5082,
1769,
202,
202,
20308,
1082,
380,
10849,
434,
1472,
471,
805,
924,
18,
1082,
380,
5498,
434,
618,
296,
87,
11,
854,
364,
326,
8100,
18,
1875,
1195,
202,
202,
759,
880,
434,
326,
1363,
19,
5457,
261,
8538,
1087,
13,
202,
202,
458,
1662,
2932,
4293,
3113,
23453,
446,
16,
296,
87,
8284,
202,
202,
759,
1363,
1300,
202,
202,
458,
1662,
2932,
7449,
3113,
394,
2144,
12,
21,
3631,
446,
16,
296,
87,
8284,
202,
202,
759,
1835,
434,
1004,
316,
8948,
202,
202,
458,
1662,
2932,
22512,
3113,
394,
2144,
12,
20,
3631,
446,
2
] |
System.out.println(); centreLine("TreeAnnotator v1.4, 2002-2006", 60); centreLine("MCMC Output analysis", 60); centreLine("by", 60); centreLine("Andrew Rambaut and Alexei J. Drummond", 60); System.out.println(); centreLine("Institute of Evolutionary Biology", 60); centreLine("University of Edinburgh", 60); centreLine("[email protected]", 60); System.out.println(); centreLine("Department of Computer Science", 60); centreLine("University of Auckland", 60); centreLine("[email protected]", 60); System.out.println(); System.out.println(); } | System.out.println(); centreLine("TreeAnnotator v1.4, 2002-2006", 60); centreLine("MCMC Output analysis", 60); centreLine("by", 60); centreLine("Andrew Rambaut and Alexei J. Drummond", 60); System.out.println(); centreLine("Institute of Evolutionary Biology", 60); centreLine("University of Edinburgh", 60); centreLine("[email protected]", 60); System.out.println(); centreLine("Department of Computer Science", 60); centreLine("University of Auckland", 60); centreLine("[email protected]", 60); System.out.println(); System.out.println(); } | public static void printTitle() { System.out.println(); centreLine("TreeAnnotator v1.4, 2002-2006", 60); centreLine("MCMC Output analysis", 60); centreLine("by", 60); centreLine("Andrew Rambaut and Alexei J. Drummond", 60); System.out.println(); centreLine("Institute of Evolutionary Biology", 60); centreLine("University of Edinburgh", 60); centreLine("[email protected]", 60); System.out.println(); centreLine("Department of Computer Science", 60); centreLine("University of Auckland", 60); centreLine("[email protected]", 60); System.out.println(); System.out.println(); } | 49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/f5c99fa52041b3059823acb6b294c2af22d3e85a/TreeAnnotator.java/buggy/trunk/src/dr/app/tools/TreeAnnotator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1172,
4247,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
8301,
266,
1670,
2932,
2471,
11280,
639,
331,
21,
18,
24,
16,
4044,
22,
17,
6976,
26,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
49,
9611,
39,
3633,
6285,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
1637,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
1876,
16052,
534,
2536,
5854,
471,
432,
4149,
73,
77,
804,
18,
11473,
379,
81,
1434,
3113,
4752,
1769,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
8301,
266,
1670,
2932,
382,
17207,
434,
30964,
5889,
814,
16682,
4676,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
984,
6760,
560,
434,
6651,
267,
70,
295,
17680,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
69,
18,
1940,
70,
5854,
36,
329,
18,
1077,
18,
19445,
3113,
4752,
1769,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
8301,
266,
1670,
2932,
30358,
434,
14169,
264,
2850,
6254,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
984,
6760,
560,
434,
432,
9031,
15733,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
287,
14880,
77,
36,
2143,
18,
8377,
363,
15733,
18,
1077,
18,
82,
94,
3113,
4752,
1769,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1172,
4247,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
8301,
266,
1670,
2932,
2471,
11280,
639,
331,
21,
18,
24,
16,
4044,
22,
17,
6976,
26,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
49,
9611,
39,
3633,
6285,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
1637,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
1876,
16052,
534,
2536,
5854,
471,
432,
4149,
73,
77,
804,
18,
11473,
379,
81,
1434,
3113,
4752,
1769,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
8301,
266,
1670,
2932,
382,
17207,
434,
30964,
5889,
814,
16682,
4676,
3113,
4752,
1769,
3639,
8301,
266,
1670,
2932,
984,
6760,
560,
434,
6651,
267,
70,
295,
17680,
2
] |
assertTrue(rs.getDate("a") != null); assertTrue(rs.getDate("b") == null); assertTrue(rs.getDate("c") != null); assertTrue(rs.getDate("d") == null); | assertNotNull(rs.getDate("a")); assertNull(rs.getDate("b")); assertNotNull(rs.getDate("c")); assertNull(rs.getDate("d")); | public void testTimestamps0037() throws Exception { Connection cx = getConnection(); Statement stmt = cx.createStatement(); ResultSet rs = stmt.executeQuery( "select " + " convert(smalldatetime, '1999-01-02') a, " + " convert(smalldatetime, null) b, " + " convert(datetime, '1999-01-02') c, " + " convert(datetime, null) d " + ""); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getDate("a") != null); assertTrue(rs.getDate("b") == null); assertTrue(rs.getDate("c") != null); assertTrue(rs.getDate("d") == null); assertTrue(rs.getTime("a") != null); assertTrue(rs.getTime("b") == null); assertTrue(rs.getTime("c") != null); assertTrue(rs.getTime("d") == null); assertTrue(rs.getTimestamp("a") != null); assertTrue(rs.getTimestamp("b") == null); assertTrue(rs.getTimestamp("c") != null); assertTrue(rs.getTimestamp("d") == null); assertTrue("Expected no result set", !rs.next()); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/3536f07067bcf3c572aa820c500e64c50499f6c5/TimestampTest.java/buggy/src/test/net/sourceforge/jtds/test/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
23761,
713,
6418,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
8056,
225,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
10842,
225,
3597,
282,
273,
3480,
18,
8837,
1138,
12,
4766,
6647,
315,
4025,
4766,
565,
315,
397,
4766,
6647,
315,
225,
1765,
12,
12019,
6585,
16,
296,
21,
11984,
17,
1611,
17,
3103,
6134,
279,
16,
315,
397,
4766,
6647,
315,
225,
1765,
12,
12019,
6585,
16,
446,
13,
540,
324,
16,
315,
397,
4766,
6647,
315,
225,
1765,
12,
6585,
16,
296,
21,
11984,
17,
1611,
17,
3103,
6134,
1377,
276,
16,
315,
397,
4766,
6647,
315,
225,
1765,
12,
6585,
16,
446,
13,
2868,
302,
225,
315,
397,
4766,
6647,
1408,
1769,
3639,
25395,
12,
5453,
1769,
3639,
1815,
5510,
2932,
6861,
279,
563,
444,
3113,
3597,
18,
4285,
10663,
3639,
1815,
5510,
12,
5453,
18,
588,
1626,
2932,
69,
7923,
480,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
1626,
2932,
70,
7923,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
1626,
2932,
71,
7923,
480,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
1626,
2932,
72,
7923,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
950,
2932,
69,
7923,
480,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
950,
2932,
70,
7923,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
950,
2932,
71,
7923,
480,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
588,
950,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23761,
713,
6418,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
8056,
225,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
10842,
225,
3597,
282,
273,
3480,
18,
8837,
1138,
12,
4766,
6647,
315,
4025,
4766,
565,
315,
397,
4766,
6647,
315,
225,
1765,
12,
12019,
6585,
16,
296,
21,
11984,
17,
1611,
17,
3103,
6134,
279,
16,
315,
397,
4766,
6647,
315,
225,
1765,
12,
12019,
6585,
16,
446,
13,
540,
324,
16,
315,
397,
4766,
6647,
315,
225,
1765,
12,
6585,
16,
296,
21,
11984,
17,
1611,
17,
3103,
6134,
1377,
276,
16,
315,
397,
4766,
6647,
315,
225,
1765,
12,
6585,
16,
446,
13,
2868,
302,
225,
315,
397,
2
] |
classFile.stopMethod((short)(firstLocal + 1), null); | cfw.stopMethod((short)(firstLocal + 1), null); | private void emitDirectConstructor() {/* we generate .. Scriptable directConstruct(<directCallArgs>) { Scriptable newInstance = createObject(cx, scope); Object val = callDirect(cx, scope, newInstance, <directCallArgs>); if (val instanceof Scriptable && val != Undefined.instance) { return (Scriptable) val; } return newInstance; }*/ short flags = (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL); classFile.startMethod("constructDirect", fnCurrent.getDirectCallMethodSignature(), flags); int argCount = fnCurrent.getParamCount(); int firstLocal = (4 + argCount * 3) + 1; aload((short)0); // this aload((short)1); // cx aload((short)2); // scope addVirtualInvoke("org/mozilla/javascript/BaseFunction", "createObject", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore((short)firstLocal); aload((short)0); aload((short)1); aload((short)2); aload((short)firstLocal); for (int i = 0; i < argCount; i++) { aload((short)(4 + (i * 3))); dload((short)(5 + (i * 3))); } aload((short)(4 + argCount * 3)); addVirtualInvoke(generatedClassName, "callDirect", fnCurrent.getDirectCallMethodSignature()); int exitLabel = acquireLabel(); addByteCode(ByteCode.DUP); // make a copy of callDirect result addByteCode(ByteCode.INSTANCEOF, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.IFEQ, exitLabel); addByteCode(ByteCode.DUP); // make a copy of callDirect result pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, exitLabel); // cast callDirect result addByteCode(ByteCode.CHECKCAST, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.ARETURN); markLabel(exitLabel); aload((short)firstLocal); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)(firstLocal + 1), null); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
5368,
6293,
1435,
565,
288,
20308,
565,
732,
2103,
6116,
3639,
22780,
2657,
7249,
12,
32,
7205,
1477,
2615,
23429,
288,
5411,
22780,
5984,
273,
17109,
12,
71,
92,
16,
2146,
1769,
5411,
1033,
1244,
273,
745,
5368,
12,
71,
92,
16,
2146,
16,
5984,
16,
411,
7205,
1477,
2615,
34,
1769,
5411,
309,
261,
1125,
1276,
22780,
597,
1244,
480,
22243,
18,
1336,
13,
288,
7734,
327,
261,
3651,
429,
13,
1244,
31,
5411,
289,
5411,
327,
5984,
31,
3639,
289,
5549,
3639,
3025,
2943,
273,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
14939,
18701,
571,
30614,
2289,
18,
31414,
67,
7263,
1013,
1769,
3639,
29728,
18,
1937,
1305,
2932,
10062,
5368,
3113,
17311,
2295,
3935,
18,
588,
5368,
1477,
1305,
5374,
9334,
17311,
2943,
1769,
3639,
509,
1501,
1380,
273,
2295,
3935,
18,
588,
786,
1380,
5621,
3639,
509,
1122,
2042,
273,
261,
24,
397,
1501,
1380,
380,
890,
13,
397,
404,
31,
3639,
279,
945,
12443,
6620,
13,
20,
1769,
368,
333,
3639,
279,
945,
12443,
6620,
13,
21,
1769,
368,
9494,
3639,
279,
945,
12443,
6620,
13,
22,
1769,
368,
2146,
3639,
527,
6466,
10969,
2932,
3341,
19,
8683,
15990,
19,
11242,
19,
2171,
2083,
3113,
7682,
315,
2640,
921,
3113,
7682,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
7682,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
7682,
397,
7923,
48,
3341,
19,
8683,
15990,
19,
11242,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3626,
5368,
6293,
1435,
565,
288,
20308,
565,
732,
2103,
6116,
3639,
22780,
2657,
7249,
12,
32,
7205,
1477,
2615,
23429,
288,
5411,
22780,
5984,
273,
17109,
12,
71,
92,
16,
2146,
1769,
5411,
1033,
1244,
273,
745,
5368,
12,
71,
92,
16,
2146,
16,
5984,
16,
411,
7205,
1477,
2615,
34,
1769,
5411,
309,
261,
1125,
1276,
22780,
597,
1244,
480,
22243,
18,
1336,
13,
288,
7734,
327,
261,
3651,
429,
13,
1244,
31,
5411,
289,
5411,
327,
5984,
31,
3639,
289,
5549,
3639,
3025,
2943,
273,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
14939,
18701,
571,
30614,
2289,
18,
31414,
67,
7263,
1013,
1769,
3639,
29728,
18,
1937,
1305,
2932,
10062,
5368,
2
] |
public void print() { filterReferences(); idtable = createIDTable(projects); out.println("<?xml version=\"1.0\"?>\n<graph name=" + getQuotedId(graphid) + ">\n"); indentLevel++; printBaseAttributes(attrMap); int subgraphNum = 0; Vector clusterRefs = new Vector(); Enumeration enumList = projects.elements(); while (enumList.hasMoreElements()) { printProject((VizProject) enumList.nextElement(), clusterRefs, subgraphNum); subgraphNum++; } printClusterRefs(clusterRefs); indentLevel--; out.println("</graph>"); | public void print(String str) { printIndent(); out.print(str); | public void print() { filterReferences(); idtable = createIDTable(projects); out.println("<?xml version=\"1.0\"?>\n<graph name=" + getQuotedId(graphid) + ">\n"); indentLevel++; printBaseAttributes(attrMap); int subgraphNum = 0; Vector clusterRefs = new Vector(); Enumeration enumList = projects.elements(); while (enumList.hasMoreElements()) { printProject((VizProject) enumList.nextElement(), clusterRefs, subgraphNum); subgraphNum++; } printClusterRefs(clusterRefs); indentLevel--; out.println("</graph>"); } | 2719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2719/0203ca921862f70cbfd958b0a212cb91063cbe45/VizPrinter.java/buggy/whiteboard/forrestdoc/src/java/org/apache/forrest/forrestdoc/ant/doc/VizPrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
1435,
288,
3639,
1034,
8221,
5621,
3639,
612,
2121,
273,
752,
734,
1388,
12,
13582,
1769,
3639,
596,
18,
8222,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
35,
5333,
82,
32,
4660,
508,
1546,
397,
336,
15919,
548,
12,
4660,
350,
13,
397,
315,
5333,
82,
8863,
3639,
3504,
2355,
9904,
31,
3639,
1172,
2171,
2498,
12,
1747,
863,
1769,
3639,
509,
21469,
2578,
273,
374,
31,
3639,
5589,
2855,
9837,
273,
394,
5589,
5621,
3639,
13864,
2792,
682,
273,
10137,
18,
6274,
5621,
3639,
1323,
261,
7924,
682,
18,
5332,
7417,
3471,
10756,
288,
5411,
1172,
4109,
12443,
58,
452,
4109,
13,
2792,
682,
18,
4285,
1046,
9334,
10792,
2855,
9837,
16,
21469,
2578,
1769,
5411,
21469,
2578,
9904,
31,
3639,
289,
3639,
1172,
3629,
9837,
12,
7967,
9837,
1769,
3639,
3504,
2355,
413,
31,
3639,
596,
18,
8222,
2932,
1757,
4660,
2984,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
1435,
288,
3639,
1034,
8221,
5621,
3639,
612,
2121,
273,
752,
734,
1388,
12,
13582,
1769,
3639,
596,
18,
8222,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
35,
5333,
82,
32,
4660,
508,
1546,
397,
336,
15919,
548,
12,
4660,
350,
13,
397,
315,
5333,
82,
8863,
3639,
3504,
2355,
9904,
31,
3639,
1172,
2171,
2498,
12,
1747,
863,
1769,
3639,
509,
21469,
2578,
273,
374,
31,
3639,
5589,
2855,
9837,
273,
394,
5589,
5621,
3639,
13864,
2792,
682,
273,
10137,
18,
6274,
5621,
3639,
1323,
261,
7924,
682,
18,
5332,
7417,
3471,
10756,
288,
5411,
1172,
4109,
12443,
58,
452,
4109,
13,
2792,
682,
18,
4285,
1046,
9334,
10792,
2855,
9837,
16,
2
] |
Iterator iter = this.transports.iterator(); while ( iter.hasNext() ) { Transporter next = (Transporter)iter.next(); | Enumeration iter = this.transports.elements(); while ( iter.hasMoreElements() ) { Transporter next = (Transporter)iter.nextElement(); | public boolean isWeaponBlockedAt( int loc, boolean isRear ) { // Walk through this entity's transport components; // check each for blockage in turn. // Stop after the first match. Iterator iter = this.transports.iterator(); while ( iter.hasNext() ) { Transporter next = (Transporter)iter.next(); if ( next.isWeaponBlockedAt( loc, isRear ) ) { return true; } } // If we got here, none of our transports // carry a blocking unit at that location. return false; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/efe62f47237c92571a47c14fe96fa8038318ef76/Entity.java/clean/megamek/src/megamek/common/Entity.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
3218,
28629,
23722,
861,
12,
509,
1515,
16,
1250,
28627,
297,
262,
288,
202,
759,
7564,
3059,
333,
1522,
1807,
4736,
4085,
31,
202,
759,
866,
1517,
364,
1203,
410,
316,
7005,
18,
202,
759,
5131,
1839,
326,
1122,
845,
18,
202,
3198,
1400,
273,
333,
18,
2338,
4363,
18,
9838,
5621,
202,
17523,
261,
1400,
18,
5332,
2134,
1435,
262,
288,
202,
565,
2604,
7988,
1024,
273,
261,
1429,
7988,
13,
2165,
18,
4285,
5621,
202,
565,
309,
261,
1024,
18,
291,
3218,
28629,
23722,
861,
12,
1515,
16,
28627,
297,
262,
262,
288,
202,
202,
2463,
638,
31,
202,
565,
289,
202,
97,
202,
759,
971,
732,
2363,
2674,
16,
6555,
434,
3134,
28567,
3639,
368,
9331,
279,
9445,
2836,
622,
716,
2117,
18,
202,
2463,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
3218,
28629,
23722,
861,
12,
509,
1515,
16,
1250,
28627,
297,
262,
288,
202,
759,
7564,
3059,
333,
1522,
1807,
4736,
4085,
31,
202,
759,
866,
1517,
364,
1203,
410,
316,
7005,
18,
202,
759,
5131,
1839,
326,
1122,
845,
18,
202,
3198,
1400,
273,
333,
18,
2338,
4363,
18,
9838,
5621,
202,
17523,
261,
1400,
18,
5332,
2134,
1435,
262,
288,
202,
565,
2604,
7988,
1024,
273,
261,
1429,
7988,
13,
2165,
18,
4285,
5621,
202,
565,
309,
261,
1024,
18,
291,
3218,
28629,
23722,
861,
12,
1515,
16,
28627,
297,
262,
262,
288,
202,
202,
2463,
638,
31,
202,
565,
289,
202,
97,
202,
759,
971,
732,
2363,
2674,
16,
6555,
434,
3134,
2
] |
LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) | final LineAttributes lia = ax.getLineAttributes( ); final LineAttributes liaMajorTick = ax.getGrid( ) | public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); double dLocation = ax.getAxisCoordinate( ); double dAngleInDegrees = ax.getLabel( ) .getCaption( ) .getFont( ) .getRotation( ); AutoScale sc = ax.getScale( ); IntersectionValue iv = ax.getIntersectionValue( ); int iMajorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MAJOR ); int iMinorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MINOR ); int iLabelLocation = ax.getLabelPosition( ); int iOrientation = ax.getOrientation( ); Label la = (Label) EcoreUtil.copy( ax.getLabel( ) ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); double[] daEndPoints = sc.getEndPoints( ); double[] da = sc.getTickCordinates( ); double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; int iDimension = pwa.getDimension( ); double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Bounds boPlot = getPlotBounds( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( (Trigger) EcoreUtil.copy( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( (Trigger) EcoreUtil.copy( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) EcoreUtil.copy( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { final double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dOffset = 0; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dOffset = -dUnitSize / 2; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d + dOffset, dZEnd ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d + dOffset, dZ ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // RENDER // LABELS // ONLY // IF // REQUESTED { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = (Label) EcoreUtil.copy( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = (Label) EcoreUtil.copy( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { final double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dOffset = 0; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = dUnitSize / 2; } double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dOffset = dUnitSize / 2; double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } // RENDER THE AXIS TITLE la = (Label) EcoreUtil.copy( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } la.getCaption( ).setValue( sRestoreValue ); // RESTORE ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = (Label) EcoreUtil.copy( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/536b54a46b25aa99e427a2fbd8217e09108c905a/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
9056,
302,
2735,
273,
1740,
18,
588,
6558,
13503,
12,
11272,
202,
202,
9056,
302,
8467,
382,
24400,
273,
1740,
18,
588,
2224,
12,
262,
9506,
202,
18,
588,
21158,
12,
262,
9506,
202,
18,
588,
5711,
12,
262,
9506,
202,
18,
588,
14032,
12,
11272,
202,
202,
4965,
5587,
888,
273,
1740,
18,
588,
5587,
12,
11272,
202,
202,
23634,
620,
4674,
273,
1740,
18,
588,
23634,
620,
12,
11272,
202,
202,
474,
277,
17581,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
18,
588,
6264,
2885,
12,
467,
2918,
18,
26976,
916,
11272,
202,
202,
474,
277,
19549,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
18,
588,
6264,
2885,
12,
467,
2918,
18,
6236,
916,
11272,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
2
] |
public void buildWebapp( MavenProject project ) throws IOException { getLog().info( "Assembling webapp " + project.getArtifactId() + " in " + webappDirectory ); File libDirectory = new File( webappDirectory, WEB_INF + "/lib" ); File tldDirectory = new File( webappDirectory, WEB_INF + "/tld" ); File webappClassesDirectory = new File( webappDirectory, WEB_INF + "/classes" ); File classesDirectory = new File( this.classesDirectory ); if ( classesDirectory.exists() ) { FileUtils.copyDirectoryStructure( classesDirectory, webappClassesDirectory ); } Set artifacts = project.getArtifacts(); for ( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); // TODO: scope handler // TODO: use classpath instead // Include runtime and compile time libraries // [jc, 21-June]: handle TLDs as a special-case. if ( "tld".equals( artifact.getType() ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), tldDirectory ); } // [jc, 21-June]: filter POMs out of the /lib copy process. else if ( "pom".equals( artifact.getType() ) ) { // don't mess with these...they'd only be here for inclusion of dependencies. } // [jc, 21-June]: I'm removing ( "jar".equals( artifact.getType() ) ) from consideration here // we'll handle anything that's NOT a POM or a TLD as a binary library to go in /lib else if ( !Artifact.SCOPE_TEST.equals( artifact.getScope() ) && !Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), libDirectory ); } } } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/fd3e9fe9e29b5a6d361320f8a629a28803c4436b/WarMojo.java/clean/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3510,
4079,
2910,
12,
49,
7638,
4109,
4406,
13,
15069,
14106,
95,
588,
1343,
7675,
1376,
2932,
1463,
5747,
2456,
4875,
2910,
6,
15,
4406,
18,
588,
7581,
548,
1435,
9078,
267,
6,
15,
4875,
2910,
2853,
1769,
25579,
30575,
2853,
33,
2704,
812,
12,
4875,
2910,
2853,
16,
14778,
67,
19212,
9078,
19,
2941,
8863,
25579,
278,
1236,
2853,
33,
2704,
812,
12,
4875,
2910,
2853,
16,
14778,
67,
19212,
9078,
19,
88,
1236,
8863,
812,
4875,
2910,
4818,
2853,
33,
2704,
812,
12,
4875,
2910,
2853,
16,
14778,
67,
19212,
9078,
19,
4701,
8863,
812,
4701,
2853,
33,
2704,
812,
12,
2211,
18,
4701,
2853,
1769,
430,
12,
4701,
2853,
18,
1808,
10756,
95,
812,
1989,
18,
3530,
2853,
6999,
12,
4701,
2853,
16,
4875,
2910,
4818,
2853,
1769,
97,
694,
30347,
33,
4406,
18,
588,
16981,
5621,
1884,
12,
3198,
2165,
33,
30347,
18,
9838,
5621,
2165,
18,
5332,
2134,
5621,
15329,
7581,
17706,
28657,
7581,
13,
2165,
18,
4285,
5621,
759,
6241,
30,
4887,
4176,
759,
6241,
30,
1202,
26302,
8591,
684,
759,
382,
830,
89,
765,
29332,
464,
2919,
330,
278,
381,
30575,
11042,
759,
63,
78,
71,
16,
5340,
17,
46,
7556,
14542,
4110,
5967,
22831,
345,
345,
705,
649,
17,
3593,
18,
430,
2932,
88,
1236,
9654,
14963,
12,
17706,
18,
588,
559,
1435,
3719,
95,
812,
1989,
18,
3530,
812,
774,
2853,
12,
17706,
18,
29925,
9334,
88,
1236,
2853,
1769,
97,
759,
63,
78,
71,
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,
1071,
6459,
3510,
4079,
2910,
12,
49,
7638,
4109,
4406,
13,
15069,
14106,
95,
588,
1343,
7675,
1376,
2932,
1463,
5747,
2456,
4875,
2910,
6,
15,
4406,
18,
588,
7581,
548,
1435,
9078,
267,
6,
15,
4875,
2910,
2853,
1769,
25579,
30575,
2853,
33,
2704,
812,
12,
4875,
2910,
2853,
16,
14778,
67,
19212,
9078,
19,
2941,
8863,
25579,
278,
1236,
2853,
33,
2704,
812,
12,
4875,
2910,
2853,
16,
14778,
67,
19212,
9078,
19,
88,
1236,
8863,
812,
4875,
2910,
4818,
2853,
33,
2704,
812,
12,
4875,
2910,
2853,
16,
14778,
67,
19212,
9078,
19,
4701,
8863,
812,
4701,
2853,
33,
2704,
812,
12,
2211,
18,
4701,
2853,
1769,
430,
12,
4701,
2853,
18,
1808,
10756,
95,
812,
2
] |
||
watchedResources[i] = resolver.getResource(res); | Resource[] tmp = resolver.getResources(res); if(LOG.isDebugEnabled()) { LOG.debug("Watching resource set ["+(i+1)+"]: " + ArrayUtils.toString(tmp)); } watchedResources = (Resource[])ArrayUtils.addAll(this.watchedResources, tmp); | public DefaultGrailsPlugin(Class pluginClass, GrailsApplication application) { super(pluginClass, application); this.pluginGrailsClass = new GrailsPluginClass(pluginClass); this.plugin = (GroovyObject)this.pluginGrailsClass.newInstance(); this.pluginBean = new BeanWrapperImpl(this.plugin); this.dependencies = Collections.EMPTY_MAP; this.parentCtx = application.getParentContext(); if(this.pluginBean.isReadableProperty(DEPENDS_ON)) { this.dependencies = (Map)GrailsClassUtils.getPropertyOrStaticPropertyOrFieldValue(this.plugin, DEPENDS_ON); this.dependencyNames = (String[])this.dependencies.keySet().toArray(new String[this.dependencies.size()]); } if(this.pluginBean.isReadableProperty(PLUGIN_LOAD_AFTER_NAMES)) { List loadAfterNamesList = (List)GrailsClassUtils.getPropertyOrStaticPropertyOrFieldValue(this.plugin, PLUGIN_LOAD_AFTER_NAMES); if(loadAfterNamesList != null) { this.loadAfterNames = (String[])loadAfterNamesList.toArray(new String[loadAfterNamesList.size()]); } } if(this.pluginBean.isReadableProperty(VERSION)) { BigDecimal bd = (BigDecimal)this.plugin.getProperty("version"); this.version = bd; } else { throw new PluginException("Plugin ["+getName()+"] must specify a version!"); } if(this.pluginBean.isReadableProperty(ON_CHANGE)) { this.onChangeListener = (Closure)GrailsClassUtils.getPropertyOrStaticPropertyOrFieldValue(this.plugin, ON_CHANGE); Object referencedResources = GrailsClassUtils.getPropertyOrStaticPropertyOrFieldValue(this.plugin, WATCHED_RESOURCES); this.resolver = new PathMatchingResourcePatternResolver(); try { if(referencedResources instanceof String) { this.resourcesReference = referencedResources.toString(); watchedResources = resolver.getResources(resourcesReference); } else if(referencedResources instanceof List) { List resourceList = (List)referencedResources; watchedResources = new Resource[resourceList.size()]; for (int i = 0; i < resourceList.size(); i++) { String res = resourceList.get(i).toString(); watchedResources[i] = resolver.getResource(res); } } initializeModifiedTimes(); } catch (IOException e) { LOG.warn("I/O exception loading plug-in resource watch list: " + e.getMessage(), e); } } } | 53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/66a94eed5389260cfc96924c5e16f3a1fb9c7443/DefaultGrailsPlugin.java/buggy/src/commons/org/codehaus/groovy/grails/plugins/DefaultGrailsPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
14571,
14573,
3773,
12,
797,
1909,
797,
16,
10812,
14573,
3208,
2521,
13,
288,
202,
202,
9565,
12,
4094,
797,
16,
2521,
1769,
202,
202,
2211,
18,
4094,
14571,
14573,
797,
273,
394,
10812,
14573,
3773,
797,
12,
4094,
797,
1769,
202,
202,
2211,
18,
4094,
273,
261,
43,
12859,
921,
13,
2211,
18,
4094,
14571,
14573,
797,
18,
2704,
1442,
5621,
202,
202,
2211,
18,
4094,
3381,
273,
394,
7704,
3611,
2828,
12,
2211,
18,
4094,
1769,
202,
202,
2211,
18,
11037,
273,
5737,
18,
13625,
67,
8352,
31,
202,
202,
2211,
18,
2938,
6442,
273,
2521,
18,
588,
3054,
1042,
5621,
202,
202,
430,
12,
2211,
18,
4094,
3381,
18,
291,
14151,
1396,
12,
1639,
52,
1157,
3948,
67,
673,
3719,
288,
1082,
202,
2211,
18,
11037,
273,
261,
863,
13,
14571,
14573,
797,
1989,
18,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
2211,
18,
4094,
16,
2030,
52,
1157,
3948,
67,
673,
1769,
1082,
202,
2211,
18,
15896,
1557,
273,
261,
780,
63,
5717,
2211,
18,
11037,
18,
856,
694,
7675,
31447,
12,
2704,
514,
63,
2211,
18,
11037,
18,
1467,
1435,
19226,
202,
202,
97,
202,
202,
430,
12,
2211,
18,
4094,
3381,
18,
291,
14151,
1396,
12,
19415,
67,
7783,
67,
18249,
67,
16257,
3719,
288,
1082,
202,
682,
1262,
4436,
1557,
682,
273,
261,
682,
13,
14571,
14573,
797,
1989,
18,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
2211,
18,
4094,
16,
22704,
67,
7783,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2989,
14571,
14573,
3773,
12,
797,
1909,
797,
16,
10812,
14573,
3208,
2521,
13,
288,
202,
202,
9565,
12,
4094,
797,
16,
2521,
1769,
202,
202,
2211,
18,
4094,
14571,
14573,
797,
273,
394,
10812,
14573,
3773,
797,
12,
4094,
797,
1769,
202,
202,
2211,
18,
4094,
273,
261,
43,
12859,
921,
13,
2211,
18,
4094,
14571,
14573,
797,
18,
2704,
1442,
5621,
202,
202,
2211,
18,
4094,
3381,
273,
394,
7704,
3611,
2828,
12,
2211,
18,
4094,
1769,
202,
202,
2211,
18,
11037,
273,
5737,
18,
13625,
67,
8352,
31,
202,
202,
2211,
18,
2938,
6442,
273,
2521,
18,
588,
3054,
1042,
5621,
202,
202,
430,
12,
2211,
18,
4094,
3381,
18,
291,
14151,
1396,
2
] |
weapon.minimumRange = 0; | weapon.minimumRange = WEAPON_NA; | public static WeaponType createCLPROLRM11() { WeaponType weapon = new WeaponType(); weapon.name = "LRM 11"; weapon.setInternalName("CLLRM11"); weapon.heat = 0; weapon.damage=DAMAGE_MISSILE; weapon.rackSize=11; weapon.ammoType = AmmoType.T_LRM; weapon.minimumRange = 0; weapon.shortRange = 7; weapon.mediumRange=14; weapon.longRange =21; weapon.tonnage = 2.2f; weapon.criticals=0; weapon.bv = 139; weapon.flags |= F_PROTOMECH; weapon.setModes(new String[] {"", "Indirect"}); return weapon; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/e34eab3397e8f0ce6945e8fea65402a51536b0b3/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
3373,
48,
8717,
2499,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
48,
8717,
4648,
14432,
3639,
732,
28629,
18,
542,
3061,
461,
2932,
39,
4503,
8717,
2499,
8863,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
33,
40,
2192,
2833,
67,
7492,
1260,
13578,
31,
3639,
732,
28629,
18,
21580,
1225,
33,
2499,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
48,
8717,
31,
3639,
732,
28629,
18,
15903,
2655,
273,
13880,
2203,
673,
67,
11277,
31,
3639,
732,
28629,
18,
6620,
2655,
273,
2371,
31,
3639,
732,
28629,
18,
19011,
2655,
33,
3461,
31,
3639,
732,
28629,
18,
5748,
2655,
273,
5340,
31,
3639,
732,
28629,
18,
1917,
82,
410,
273,
576,
18,
22,
74,
31,
3639,
732,
28629,
18,
27826,
335,
1031,
33,
20,
31,
3639,
732,
28629,
18,
70,
90,
273,
404,
5520,
31,
3639,
732,
28629,
18,
7133,
5626,
478,
67,
25455,
958,
1792,
31,
3639,
732,
28629,
18,
542,
18868,
12,
2704,
514,
8526,
12528,
3113,
315,
24943,
6,
22938,
3639,
327,
732,
28629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1660,
28629,
559,
752,
5017,
3373,
48,
8717,
2499,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
48,
8717,
4648,
14432,
3639,
732,
28629,
18,
542,
3061,
461,
2932,
39,
4503,
8717,
2499,
8863,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
33,
40,
2192,
2833,
67,
7492,
1260,
13578,
31,
3639,
732,
28629,
18,
21580,
1225,
33,
2499,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
48,
8717,
31,
3639,
732,
28629,
18,
15903,
2655,
273,
13880,
2203,
673,
67,
11277,
31,
3639,
732,
28629,
18,
6620,
2
] |
jj_la1[30] = jj_gen; break label_11; | jj_la1[39] = jj_gen; break label_15; | final public void FormalParameters() throws ParseException { /*@bgen(jjtree) FormalParameters */ ASTFormalParameters jjtn000 = new ASTFormalParameters(this, JJTFORMALPARAMETERS); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LPAREN); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FINAL: case FLOAT: case INT: case LONG: case SHORT: case IDENTIFIER: FormalParameter(); label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[30] = jj_gen; break label_11; } jj_consume_token(COMMA); FormalParameter(); } break; default: jj_la1[31] = jj_gen; ; } jj_consume_token(RPAREN); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
478,
1687,
2402,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
478,
1687,
2402,
1195,
225,
9183,
12183,
2402,
10684,
5088,
3784,
273,
394,
9183,
12183,
2402,
12,
2211,
16,
804,
46,
56,
4983,
1013,
20103,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
10684,
67,
21224,
67,
2316,
12,
48,
15111,
1769,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
18993,
30,
1377,
648,
20660,
30,
1377,
648,
12090,
30,
1377,
648,
14918,
30,
1377,
648,
17563,
1013,
30,
1377,
648,
15483,
30,
1377,
648,
6137,
30,
1377,
648,
14011,
30,
1377,
648,
20079,
30,
1377,
648,
26765,
30,
3639,
478,
1687,
1662,
5621,
3639,
1433,
67,
2499,
30,
3639,
1323,
261,
3767,
13,
288,
1850,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1850,
648,
17373,
30,
5411,
274,
5411,
898,
31,
1850,
805,
30,
5411,
10684,
67,
11821,
21,
63,
5082,
65,
273,
10684,
67,
4507,
31,
5411,
898,
1433,
67,
2499,
31,
1850,
289,
1850,
10684,
67,
21224,
67,
2316,
12,
4208,
5535,
1769,
1850,
478,
1687,
1662,
5621,
3639,
289,
3639,
898,
31,
1377,
805,
30,
3639,
10684,
67,
11821,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
478,
1687,
2402,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
478,
1687,
2402,
1195,
225,
9183,
12183,
2402,
10684,
5088,
3784,
273,
394,
9183,
12183,
2402,
12,
2211,
16,
804,
46,
56,
4983,
1013,
20103,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
10684,
67,
21224,
67,
2316,
12,
48,
15111,
1769,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
18993,
30,
1377,
648,
20660,
30,
1377,
648,
12090,
30,
1377,
648,
2
] |
return new char[]{}; | return new char[] { }; | protected char[] assertUnexpectedCharacter(char c, int line, int column) throws Exception { try { this.lexer.nextToken(); fail( "should have thrown UnexpectedCharacterException" ); } catch (UnexpectedCharacterException e) { // expected and correct assertEquals( c, e.getCharacter() ); assertEquals( line, e.getLine() ); assertEquals( column, e.getColumn() ); return e.getExpected(); } return new char[]{}; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3d37acd34fcf44c4a51bd104ef70043af62c7d99/LexerTest.java/clean/src/test/org/codehaus/groovy/syntax/lexer/LexerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1149,
8526,
1815,
7762,
7069,
12,
3001,
276,
16,
4766,
9079,
509,
980,
16,
4766,
9079,
509,
1057,
13,
3639,
1216,
1185,
565,
288,
3639,
775,
3639,
288,
5411,
333,
18,
31731,
18,
4285,
1345,
5621,
5411,
2321,
12,
315,
13139,
1240,
6718,
9649,
7069,
503,
6,
11272,
3639,
289,
3639,
1044,
261,
7762,
7069,
503,
425,
13,
3639,
288,
5411,
368,
2665,
471,
3434,
5411,
1815,
8867,
12,
276,
16,
12900,
425,
18,
588,
7069,
1435,
11272,
5411,
1815,
8867,
12,
980,
16,
12900,
425,
18,
588,
1670,
1435,
11272,
5411,
1815,
8867,
12,
1057,
16,
12900,
425,
18,
588,
1494,
1435,
11272,
5411,
327,
425,
18,
588,
6861,
5621,
3639,
289,
3639,
327,
394,
1149,
8526,
288,
289,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1149,
8526,
1815,
7762,
7069,
12,
3001,
276,
16,
4766,
9079,
509,
980,
16,
4766,
9079,
509,
1057,
13,
3639,
1216,
1185,
565,
288,
3639,
775,
3639,
288,
5411,
333,
18,
31731,
18,
4285,
1345,
5621,
5411,
2321,
12,
315,
13139,
1240,
6718,
9649,
7069,
503,
6,
11272,
3639,
289,
3639,
1044,
261,
7762,
7069,
503,
425,
13,
3639,
288,
5411,
368,
2665,
471,
3434,
5411,
1815,
8867,
12,
276,
16,
12900,
425,
18,
588,
7069,
1435,
11272,
5411,
1815,
8867,
12,
980,
16,
12900,
425,
18,
588,
1670,
1435,
11272,
5411,
1815,
8867,
12,
1057,
16,
12900,
425,
18,
588,
1494,
1435,
11272,
5411,
327,
425,
18,
588,
6861,
5621,
3639,
289,
3639,
327,
394,
1149,
2
] |
private void updateActionEnablement(Object sel) { | private void updateActionEnablement(Action action, ITaskListElement element){ if(element instanceof Task){ if(action instanceof MarkTaskCompleteAction){ if(element.isCompleted()){ action.setEnabled(false); } else { action.setEnabled(true); } } else if(action instanceof MarkTaskIncompleteAction){ if(element.isCompleted()){ action.setEnabled(true); } else { action.setEnabled(false); } } else if(action instanceof DeleteAction){ action.setEnabled(true); } else if(action instanceof CreateTaskAction){ action.setEnabled(false); } } else if(element instanceof TaskCategory) { if(action instanceof MarkTaskCompleteAction){ action.setEnabled(false); } else if(action instanceof MarkTaskIncompleteAction){ action.setEnabled(false); } else if(action instanceof DeleteAction){ action.setEnabled(true); } else if(action instanceof CreateTaskAction){ action.setEnabled(true); } } else { action.setEnabled(true); } | private void updateActionEnablement(Object sel) {// XXX use enables for part of contribution// if(sel != null && sel instanceof ITaskListElement){// if(sel instanceof BugzillaHit){// BugzillaTask task = ((BugzillaHit)sel).getAssociatedTask();// if(task == null){// clearSelectedTaskscapeAction.setEnabled(false);// } else {// clearSelectedTaskscapeAction.setEnabled(true);// }// completeTask.setEnabled(false);// incompleteTask.setEnabled(false);// moveTaskToRoot.setEnabled(false);// delete.setEnabled(false);// refreshQuery.setEnabled(false);// } else if(sel instanceof BugzillaTask){// clearSelectedTaskscapeAction.setEnabled(true);// completeTask.setEnabled(false);// incompleteTask.setEnabled(false);// moveTaskToRoot.setEnabled(true);// delete.setEnabled(true);// refreshQuery.setEnabled(false);// } else if(sel instanceof AbstractCategory){// clearSelectedTaskscapeAction.setEnabled(false);// completeTask.setEnabled(false);// incompleteTask.setEnabled(false);// moveTaskToRoot.setEnabled(false);// delete.setEnabled(true);// if (sel instanceof BugzillaQueryCategory) {// refreshQuery.setEnabled(true);// } else {// refreshQuery.setEnabled(false);// }// //delete.setEnabled(true);// } else {// clearSelectedTaskscapeAction.setEnabled(true);// completeTask.setEnabled(true);// incompleteTask.setEnabled(true);// moveTaskToRoot.setEnabled(true);// delete.setEnabled(true);// refreshQuery.setEnabled(false);// } // } else {// clearSelectedTaskscapeAction.setEnabled(false);// completeTask.setEnabled(false);// incompleteTask.setEnabled(false);// moveTaskToRoot.setEnabled(false);// delete.setEnabled(false);// refreshQuery.setEnabled(false);// } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/7df845e2d3ea6ca7c7421c2680425910c9904944/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1803,
8317,
475,
12,
921,
357,
13,
288,
759,
377,
202,
15639,
999,
19808,
364,
1087,
434,
24880,
759,
377,
202,
430,
12,
1786,
480,
446,
597,
357,
1276,
467,
2174,
682,
1046,
15329,
759,
202,
377,
202,
430,
12,
1786,
1276,
16907,
15990,
13616,
15329,
759,
9506,
202,
19865,
15990,
2174,
1562,
273,
14015,
19865,
15990,
13616,
13,
1786,
2934,
588,
19233,
2174,
5621,
759,
9506,
202,
430,
12,
4146,
422,
446,
15329,
759,
6862,
202,
8507,
7416,
2174,
12476,
1803,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
97,
469,
288,
759,
6862,
202,
8507,
7416,
2174,
12476,
1803,
18,
542,
1526,
12,
3767,
1769,
759,
9506,
202,
97,
759,
9506,
202,
6226,
2174,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
17624,
2174,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
8501,
2174,
774,
2375,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
3733,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
9144,
1138,
18,
542,
1526,
12,
5743,
1769,
759,
1082,
202,
97,
469,
309,
12,
1786,
1276,
16907,
15990,
2174,
15329,
759,
9506,
202,
8507,
7416,
2174,
12476,
1803,
18,
542,
1526,
12,
3767,
1769,
759,
9506,
202,
6226,
2174,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
17624,
2174,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
8501,
2174,
774,
2375,
18,
542,
1526,
12,
3767,
1769,
759,
9506,
202,
3733,
18,
542,
1526,
12,
3767,
1769,
759,
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,
377,
3238,
918,
1089,
1803,
8317,
475,
12,
921,
357,
13,
288,
759,
377,
202,
15639,
999,
19808,
364,
1087,
434,
24880,
759,
377,
202,
430,
12,
1786,
480,
446,
597,
357,
1276,
467,
2174,
682,
1046,
15329,
759,
202,
377,
202,
430,
12,
1786,
1276,
16907,
15990,
13616,
15329,
759,
9506,
202,
19865,
15990,
2174,
1562,
273,
14015,
19865,
15990,
13616,
13,
1786,
2934,
588,
19233,
2174,
5621,
759,
9506,
202,
430,
12,
4146,
422,
446,
15329,
759,
6862,
202,
8507,
7416,
2174,
12476,
1803,
18,
542,
1526,
12,
5743,
1769,
759,
9506,
202,
97,
469,
288,
759,
6862,
202,
8507,
7416,
2174,
12476,
1803,
18,
542,
1526,
12,
3767,
1769,
759,
9506,
202,
97,
759,
9506,
202,
2
] |
route.setAddress( (AddressImpl) ((AddressImpl) rr.getAddress()).clone()); | route.setAddress((AddressImpl) ((AddressImpl) rr.getAddress()) .clone()); | public Request createAck() throws SipException { SIPRequest originalRequest = this.getOriginalRequest(); if (originalRequest == null) throw new SipException("bad state " + getState()); if (getMethod().equalsIgnoreCase(Request.ACK)) { throw new SipException("Cannot ACK an ACK!"); } else if (lastResponse == null) { throw new SipException("bad Transaction state"); } else if (lastResponse.getStatusCode() < 200) { if (LogWriter.needsLogging) { sipStack.logWriter.logMessage( "lastResponse = " + lastResponse); } throw new SipException("Cannot ACK a provisional response!"); } SIPRequest ackRequest = originalRequest.createAckRequest((To) lastResponse.getTo()); // Pull the record route headers from the last reesponse. RecordRouteList recordRouteList = lastResponse.getRecordRouteHeaders(); // Matt Keller (Motorolla) sent in a bug fix for the following. if (recordRouteList == null) { Contact contact = null; if (lastResponse.getContactHeaders() != null) { contact = (Contact)lastResponse.getContactHeaders().getFirst(); javax.sip.address.URI uri = (javax.sip.address.URI) contact.getAddress().getURI().clone(); ackRequest.setRequestURI(uri); } return ackRequest; } ackRequest.removeHeader(RouteHeader.NAME); RouteList routeList = new RouteList(); // start at the end of the list and walk backwards ListIterator li = recordRouteList.listIterator(recordRouteList.size()); while (li.hasPrevious()) { RecordRoute rr = (RecordRoute) li.previous(); AddressImpl addr = (AddressImpl) rr.getAddress(); Route route = new Route(); route.setAddress( (AddressImpl) ((AddressImpl) rr.getAddress()).clone()); route.setParameters((NameValueList) rr.getParameters().clone()); routeList.add(route); } Contact contact = null; if (lastResponse.getContactHeaders() != null) { contact = (Contact) lastResponse.getContactHeaders().getFirst(); } if (!((SipURI) ((Route) routeList.getFirst()).getAddress().getURI()) .hasLrParam()) { // Contact may not yet be there (bug reported by Andreas B). Route route = null; if (contact != null) { route = new Route(); route.setAddress( (AddressImpl) ((AddressImpl) (contact.getAddress())) .clone()); } Route firstRoute = (Route) routeList.getFirst(); routeList.removeFirst(); javax.sip.address.URI uri = firstRoute.getAddress().getURI(); ackRequest.setRequestURI(uri); if (route != null) routeList.add(route); ackRequest.addHeader(routeList); } else { if (contact != null) { javax.sip.address.URI uri = (javax.sip.address.URI) contact.getAddress().getURI().clone(); ackRequest.setRequestURI(uri); ackRequest.addHeader(routeList); } } return ackRequest; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/48d0f5aefaaec7a6c6f768504e4d3fcffcc8313f/SIPClientTransaction.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPClientTransaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1567,
752,
11931,
1435,
1216,
13475,
503,
288,
3639,
348,
2579,
691,
2282,
691,
273,
333,
18,
588,
8176,
691,
5621,
3639,
309,
261,
8830,
691,
422,
446,
13,
604,
394,
13475,
503,
2932,
8759,
919,
315,
397,
8997,
10663,
3639,
309,
261,
588,
1305,
7675,
14963,
5556,
12,
691,
18,
3649,
3719,
288,
5411,
604,
394,
13475,
503,
2932,
4515,
26069,
392,
26069,
4442,
1769,
3639,
289,
469,
309,
261,
2722,
1064,
422,
446,
13,
288,
5411,
604,
394,
13475,
503,
2932,
8759,
5947,
919,
8863,
3639,
289,
469,
309,
261,
2722,
1064,
18,
588,
14041,
1435,
411,
4044,
13,
288,
5411,
309,
261,
1343,
2289,
18,
20600,
7735,
13,
288,
7734,
10341,
2624,
18,
1330,
2289,
18,
1330,
1079,
12,
7734,
315,
2722,
1064,
273,
315,
397,
1142,
1064,
1769,
5411,
289,
5411,
604,
394,
13475,
503,
2932,
4515,
26069,
279,
10595,
287,
766,
4442,
1769,
3639,
289,
3639,
348,
2579,
691,
8479,
691,
273,
3639,
2282,
691,
18,
2640,
11931,
691,
12443,
774,
13,
1142,
1064,
18,
588,
774,
10663,
3639,
368,
14899,
326,
1409,
1946,
1607,
628,
326,
1142,
283,
281,
575,
18,
3639,
5059,
3255,
682,
1409,
3255,
682,
273,
1142,
1064,
18,
588,
2115,
3255,
3121,
5621,
202,
759,
490,
4558,
1475,
292,
749,
261,
24749,
280,
355,
11821,
13,
3271,
316,
279,
7934,
2917,
364,
326,
3751,
18,
202,
430,
261,
3366,
3255,
682,
422,
446,
13,
288,
6647,
202,
6567,
5388,
273,
446,
31,
1850,
202,
430,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1567,
752,
11931,
1435,
1216,
13475,
503,
288,
3639,
348,
2579,
691,
2282,
691,
273,
333,
18,
588,
8176,
691,
5621,
3639,
309,
261,
8830,
691,
422,
446,
13,
604,
394,
13475,
503,
2932,
8759,
919,
315,
397,
8997,
10663,
3639,
309,
261,
588,
1305,
7675,
14963,
5556,
12,
691,
18,
3649,
3719,
288,
5411,
604,
394,
13475,
503,
2932,
4515,
26069,
392,
26069,
4442,
1769,
3639,
289,
469,
309,
261,
2722,
1064,
422,
446,
13,
288,
5411,
604,
394,
13475,
503,
2932,
8759,
5947,
919,
8863,
3639,
289,
469,
309,
261,
2722,
1064,
18,
588,
14041,
1435,
411,
4044,
13,
288,
5411,
309,
261,
1343,
2289,
18,
20600,
7735,
13,
288,
7734,
10341,
2624,
18,
1330,
2
] |
public TA_RetCode PPO(int startIdx, int endIdx, double inReal[], int optInFastPeriod, int optInSlowPeriod, TA_MAType optInMAType, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { | public TA_RetCode PPO( int startIdx, int endIdx, double inReal[], int optInFastPeriod, int optInSlowPeriod, TA_MAType optInMAType, MInteger outBegIdx, MInteger outNbElement, double outReal[] ) { | public TA_RetCode PPO(int startIdx, int endIdx, double inReal[], int optInFastPeriod, int optInSlowPeriod, TA_MAType optInMAType, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { double[] tempBuffer; TA_RetCode retCode; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInFastPeriod == (Integer.MIN_VALUE )) optInFastPeriod = 12; else if (((int) optInFastPeriod < 2) || ((int) optInFastPeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; if ((int) optInSlowPeriod == (Integer.MIN_VALUE )) optInSlowPeriod = 26; else if (((int) optInSlowPeriod < 2) || ((int) optInSlowPeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; tempBuffer = new double[endIdx - startIdx + 1]; retCode = INT_PO(startIdx, endIdx, inReal, optInFastPeriod, optInSlowPeriod, optInMAType, outBegIdx, outNbElement, outReal, tempBuffer, 1); ; return retCode; } | 2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
453,
2419,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
399,
37,
67,
5535,
559,
2153,
382,
5535,
559,
16,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
63,
5717,
288,
202,
202,
9056,
8526,
1906,
1892,
31,
202,
202,
9833,
67,
7055,
1085,
325,
1085,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
430,
14015,
474,
13,
2153,
382,
12305,
5027,
422,
261,
4522,
18,
6236,
67,
4051,
8623,
1082,
202,
3838,
382,
12305,
5027,
273,
2593,
31,
202,
202,
12107,
309,
261,
12443,
474,
13,
2153,
382,
12305,
5027,
411,
576,
13,
9506,
202,
20081,
14015,
474,
13,
2153,
382,
12305,
5027,
405,
25259,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
202,
202,
430,
14015,
474,
13,
2153,
382,
28733,
5027,
422,
261,
4522,
18,
6236,
67,
4051,
8623,
1082,
202,
3838,
382,
28733,
5027,
273,
10659,
31,
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,
399,
37,
67,
7055,
1085,
453,
2419,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
399,
37,
67,
5535,
559,
2153,
382,
5535,
559,
16,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
63,
5717,
288,
202,
202,
9056,
8526,
1906,
1892,
31,
202,
202,
9833,
67,
7055,
1085,
325,
1085,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
2
] |
skippedObjects, logger, protocol); | skippedObjects, logger); | public void run() { String hostname = null; int port = 0; DefaultListModel skippedObjects = new DefaultListModel(); NodeExploration explorator = new NodeExploration(asso, skippedObjects, logger, protocol); explorator.setMaxDepth(depth); explorator.startExploration(); if (host != null) { hostname = UrlBuilder.removePortFromHost(host); port = UrlBuilder.getPortFromUrl(host); } explorator.exploreHost(hostname, port); explorator.endExploration(); Iterator it = asso.getHosts().iterator(); // iterator de MonitoredHost while (it.hasNext()) { MonitoredHost monitoredhost = (MonitoredHost) it.next(); // String tmphost = monitoredhost.getFullName(); try { worldObject.addHostObject(monitoredhost, asso); } catch (RemoteException e) { e.printStackTrace(); } } } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/3c8dcbce5b12b18f3cb7fa6f4a4cf723face3153/MonitorThread.java/buggy/src/org/objectweb/proactive/ic2d/util/MonitorThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
514,
5199,
273,
446,
31,
3639,
509,
1756,
273,
374,
31,
3639,
2989,
682,
1488,
9700,
4710,
273,
394,
2989,
682,
1488,
5621,
3639,
2029,
424,
412,
22226,
22991,
17939,
273,
394,
2029,
424,
412,
22226,
12,
428,
83,
16,
7734,
9700,
4710,
16,
1194,
1769,
3639,
22991,
17939,
18,
542,
2747,
6148,
12,
5979,
1769,
3639,
22991,
17939,
18,
1937,
424,
412,
22226,
5621,
3639,
309,
261,
2564,
480,
446,
13,
288,
5411,
5199,
273,
6816,
1263,
18,
4479,
2617,
1265,
2594,
12,
2564,
1769,
5411,
1756,
273,
6816,
1263,
18,
588,
2617,
28488,
12,
2564,
1769,
3639,
289,
3639,
22991,
17939,
18,
2749,
383,
266,
2594,
12,
10358,
16,
1756,
1769,
3639,
22991,
17939,
18,
409,
424,
412,
22226,
5621,
3639,
4498,
518,
273,
1551,
83,
18,
588,
12172,
7675,
9838,
5621,
368,
2775,
443,
9041,
20425,
2594,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
9041,
20425,
2594,
28651,
2564,
273,
261,
11415,
20425,
2594,
13,
518,
18,
4285,
5621,
5411,
368,
7734,
514,
6118,
844,
669,
273,
28651,
2564,
18,
588,
19223,
5621,
5411,
775,
288,
7734,
9117,
921,
18,
1289,
2594,
921,
12,
2586,
20425,
2564,
16,
1551,
83,
1769,
5411,
289,
1044,
261,
5169,
503,
425,
13,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
514,
5199,
273,
446,
31,
3639,
509,
1756,
273,
374,
31,
3639,
2989,
682,
1488,
9700,
4710,
273,
394,
2989,
682,
1488,
5621,
3639,
2029,
424,
412,
22226,
22991,
17939,
273,
394,
2029,
424,
412,
22226,
12,
428,
83,
16,
7734,
9700,
4710,
16,
1194,
1769,
3639,
22991,
17939,
18,
542,
2747,
6148,
12,
5979,
1769,
3639,
22991,
17939,
18,
1937,
424,
412,
22226,
5621,
3639,
309,
261,
2564,
480,
446,
13,
288,
5411,
5199,
273,
6816,
1263,
18,
4479,
2617,
1265,
2594,
12,
2564,
1769,
5411,
1756,
273,
6816,
1263,
18,
588,
2617,
28488,
12,
2564,
1769,
3639,
289,
3639,
22991,
17939,
18,
2749,
383,
266,
2594,
12,
10358,
16,
1756,
2
] |
if(listener != null) { | if (listener != null) { | public void run() { synchronizeJob.run(new NullProgressMonitor()); if(listener != null) { listener.done(null); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f242ed2f4b497447017191b1c1a6ab0636b6f617/AbstractRepositoryConnector.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/AbstractRepositoryConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
87,
2600,
554,
2278,
18,
2681,
12,
2704,
4112,
5491,
7187,
10663,
6862,
202,
430,
12,
12757,
480,
446,
13,
288,
25083,
202,
12757,
18,
8734,
12,
2011,
1769,
6862,
202,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1086,
1435,
288,
6862,
202,
87,
2600,
554,
2278,
18,
2681,
12,
2704,
4112,
5491,
7187,
10663,
6862,
202,
430,
12,
12757,
480,
446,
13,
288,
25083,
202,
12757,
18,
8734,
12,
2011,
1769,
6862,
202,
97,
9506,
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
] |
new RubyProc(getRuntime(), getRuntime().getClasses().getProcClass()); | new RubyProc(getRuntime(), getRuntime().getClass("Proc")); | protected IRubyObject doClone() { RubyProc newProc = new RubyProc(getRuntime(), getRuntime().getClasses().getProcClass()); newProc.block = getBlock(); newProc.wrapper = getWrapper(); return newProc; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyProc.java/buggy/src/org/jruby/RubyProc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
15908,
10340,
921,
741,
10930,
1435,
288,
377,
202,
54,
10340,
15417,
394,
15417,
273,
1377,
202,
202,
2704,
19817,
15417,
12,
588,
5576,
9334,
18814,
7675,
588,
797,
2932,
15417,
7923,
1769,
377,
202,
377,
202,
2704,
15417,
18,
2629,
273,
11902,
5621,
377,
202,
2704,
15417,
18,
8376,
273,
336,
3611,
5621,
377,
202,
377,
202,
2463,
394,
15417,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
15908,
10340,
921,
741,
10930,
1435,
288,
377,
202,
54,
10340,
15417,
394,
15417,
273,
1377,
202,
202,
2704,
19817,
15417,
12,
588,
5576,
9334,
18814,
7675,
588,
797,
2932,
15417,
7923,
1769,
377,
202,
377,
202,
2704,
15417,
18,
2629,
273,
11902,
5621,
377,
202,
2704,
15417,
18,
8376,
273,
336,
3611,
5621,
377,
202,
377,
202,
2463,
394,
15417,
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
] |
System.out.println("To name the job (appears in the JobTrack Web UI):"); | System.out.println("To speed up the last reduces:"); System.out.println(" -jobconf mapred.speculative.execution=true"); System.out.println(" Do not use this along -reducer " + REDUCE_NONE); System.out.println("To name the job (appears in the JobTracker Web UI):"); | public void exitUsage(boolean detailed) { // 1 2 3 4 5 6 7 //1234567890123456789012345678901234567890123456789012345678901234567890123456789 System.out.println("Usage: $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar [options]"); System.out.println("Options:"); System.out.println(" -input <path> DFS input file(s) for the Map step"); System.out.println(" -output <path> DFS output directory for the Reduce step"); System.out.println(" -mapper <cmd> The streaming command to run"); System.out.println(" -combiner <cmd> The streaming command to run"); System.out.println(" -reducer <cmd> The streaming command to run"); System.out.println(" -file <file> File/dir to be shipped in the Job jar file"); System.out.println(" -cluster <name> Default uses hadoop-default.xml and hadoop-site.xml"); System.out.println(" -config <file> Optional. One or more paths to xml config files"); System.out.println(" -dfs <h:p> Optional. Override DFS configuration"); System.out.println(" -jt <h:p> Optional. Override JobTracker configuration"); System.out.println(" -inputreader <spec> Optional."); System.out.println(" -jobconf <n>=<v> Optional."); System.out.println(" -cmdenv <n>=<v> Optional. Pass env.var to streaming commands"); System.out.println(" -verbose"); System.out.println(); if(!detailed) { System.out.println("For more details about these options:"); System.out.println("Use $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar -info"); fail(""); } System.out.println("In -input: globbing on <path> is supported and can have multiple -input"); System.out.println("Default Map input format: a line is a record in UTF-8"); System.out.println(" the key part ends at first TAB, the rest of the line is the value"); System.out.println("Custom Map input format: -inputreader package.MyRecordReader,n=v,n=v "); System.out.println(" comma-separated name-values can be specified to configure the InputFormat"); System.out.println(" Ex: -inputreader 'StreamXmlRecordReader,begin=<doc>,end=</doc>'"); System.out.println("Map output format, reduce input/output format:"); System.out.println(" Format defined by what mapper command outputs. Line-oriented"); System.out.println(); System.out.println("Use -cluster <name> to switch between \"local\" Hadoop and one or more remote "); System.out.println(" Hadoop clusters. "); System.out.println(" The default is to use the normal hadoop-default.xml and hadoop-site.xml"); System.out.println(" Else configuration will use $HADOOP_HOME/conf/hadoop-<name>.xml"); System.out.println(); System.out.println("To skip the shuffle/sort/reduce step:" ); System.out.println(" Use -reducer " + REDUCE_NONE); System.out.println(" This preserves the map input order and speeds up processing"); System.out.println(); System.out.println("To set the number of reduce tasks (num. of output files):"); System.out.println(" -jobconf mapred.reduce.tasks=10"); System.out.println("To name the job (appears in the JobTrack Web UI):"); System.out.println(" -jobconf mapred.job.name='My Job' "); System.out.println("To specify that line-oriented input is in gzip format:"); System.out.println("(at this time ALL input files must be gzipped and this is not recognized based on file extension)"); System.out.println(" -jobconf stream.recordreader.compression=gzip "); System.out.println("To change the local temp directory:"); System.out.println(" -jobconf dfs.data.dir=/tmp"); System.out.println("Additional local temp directories with -cluster local:"); System.out.println(" -jobconf mapred.local.dir=/tmp/local"); System.out.println(" -jobconf mapred.system.dir=/tmp/system"); System.out.println(" -jobconf mapred.temp.dir=/tmp/temp"); System.out.println("For more details about jobconf parameters see:"); System.out.println(" http://wiki.apache.org/lucene-hadoop/JobConfFile"); System.out.println("To set an environement variable in a streaming command:"); System.out.println(" -cmdenv EXAMPLE_DIR=/home/example/dictionaries/"); System.out.println(); System.out.println("Shortcut to run from any directory:"); System.out.println(" setenv HSTREAMING \"$HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/build/hadoop-streaming.jar\""); System.out.println(); System.out.println("Example: $HSTREAMING -mapper \"/usr/local/bin/perl5 filter.pl\""); System.out.println(" -file /local/filter.pl -input \"/logs/0604*/*\" [...]"); System.out.println(" Ships a script, invokes the non-shipped perl interpreter"); System.out.println(" Shipped files go to the working directory so filter.pl is found by perl"); System.out.println(" Input files are all the daily logs for days in month 2006-04"); fail(""); } | 49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2427,
5357,
12,
6494,
6864,
13,
225,
288,
8227,
368,
540,
404,
540,
576,
540,
890,
540,
1059,
540,
1381,
540,
1666,
540,
2371,
8227,
368,
28462,
20277,
26684,
26684,
26684,
26684,
26684,
26684,
26684,
565,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
271,
44,
1880,
51,
3665,
67,
14209,
19,
4757,
19,
76,
12460,
7334,
1361,
19,
76,
12460,
17,
3256,
310,
18,
11930,
306,
2116,
4279,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
1320,
2773,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2630,
565,
411,
803,
34,
377,
23872,
810,
585,
12,
87,
13,
364,
326,
1635,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2844,
282,
411,
803,
34,
377,
23872,
876,
1867,
364,
326,
24614,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
13919,
282,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
832,
4757,
264,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
1118,
89,
2750,
225,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
768,
377,
411,
768,
34,
377,
1387,
19,
1214,
358,
506,
24316,
1845,
316,
326,
3956,
7334,
585,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
7967,
225,
411,
529,
34,
377,
2989,
4692,
22840,
17,
1886,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2427,
5357,
12,
6494,
6864,
13,
225,
288,
8227,
368,
540,
404,
540,
576,
540,
890,
540,
1059,
540,
1381,
540,
1666,
540,
2371,
8227,
368,
28462,
20277,
26684,
26684,
26684,
26684,
26684,
26684,
26684,
565,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
271,
44,
1880,
51,
3665,
67,
14209,
19,
4757,
19,
76,
12460,
7334,
1361,
19,
76,
12460,
17,
3256,
310,
18,
11930,
306,
2116,
4279,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
1320,
2773,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2630,
565,
411,
803,
34,
377,
23872,
810,
585,
12,
87,
13,
364,
326,
1635,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2844,
2
] |
auxEnrolment.getEvaluations().addAll(enrolment.getEvaluations()); auxEnrolment.getEnrolmentEquivalences().addAll(enrolment.getEnrolmentEquivalences()); auxEnrolment.getAttends().addAll(enrolment.getAttends()); auxEnrolment.getEquivalentEnrolmentForEnrolmentEquivalences().addAll(enrolment.getEquivalentEnrolmentForEnrolmentEquivalences()); auxEnrolment.getCreditsInAnySecundaryAreas().addAll(enrolment.getCreditsInAnySecundaryAreas()); auxEnrolment.getCreditsInScientificAreas().addAll(enrolment.getCreditsInScientificAreas()); | for (final List<IEnrolmentEvaluation> evaluations = enrolment.getEvaluations(); !evaluations .isEmpty(); auxEnrolment.addEvaluations(evaluations.get(0))) ; for (final List<IEnrolmentEquivalence> equivalences = enrolment.getEnrolmentEquivalences(); !equivalences .isEmpty(); auxEnrolment.addEnrolmentEquivalences(equivalences.get(0))) ; for (final List<IAttends> attends = enrolment.getAttends(); !attends.isEmpty(); auxEnrolment .addAttends(attends.get(0))) ; for (final List<ICreditsInAnySecundaryArea> credits = enrolment.getCreditsInAnySecundaryAreas(); !credits .isEmpty(); auxEnrolment.addCreditsInAnySecundaryAreas(credits.get(0))) ; for (final List<ICreditsInScientificArea> credits = enrolment.getCreditsInScientificAreas(); !credits .isEmpty(); auxEnrolment.addCreditsInScientificAreas(credits.get(0))) ; | private void copyEnrollment(IEnrolment enrolment, IEnrolment auxEnrolment) throws FenixServiceException { auxEnrolment.setCreatedBy(enrolment.getCreatedBy()); auxEnrolment.setCreationDate(enrolment.getCreationDate()); auxEnrolment.setAccumulatedWeight(enrolment.getAccumulatedWeight()); auxEnrolment.setCurricularCourse(enrolment.getCurricularCourse()); auxEnrolment.setExecutionPeriod(enrolment.getExecutionPeriod()); auxEnrolment.setStudentCurricularPlan(enrolment.getStudentCurricularPlan()); auxEnrolment.setCondition(enrolment.getCondition()); auxEnrolment.setEnrolmentEvaluationType(enrolment.getEnrolmentEvaluationType()); auxEnrolment.setEnrollmentState(enrolment.getEnrollmentState()); auxEnrolment.getEvaluations().addAll(enrolment.getEvaluations()); auxEnrolment.getEnrolmentEquivalences().addAll(enrolment.getEnrolmentEquivalences()); auxEnrolment.getAttends().addAll(enrolment.getAttends()); auxEnrolment.getEquivalentEnrolmentForEnrolmentEquivalences().addAll(enrolment.getEquivalentEnrolmentForEnrolmentEquivalences()); auxEnrolment.getCreditsInAnySecundaryAreas().addAll(enrolment.getCreditsInAnySecundaryAreas()); auxEnrolment.getCreditsInScientificAreas().addAll(enrolment.getCreditsInScientificAreas()); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/3d99bc60e5d718c4b8f3269bc8986f0d63c3dcae/EditPosGradStudentCurricularPlanStateAndCredits.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/masterDegree/administrativeOffice/student/studentCurricularPlan/EditPosGradStudentCurricularPlanStateAndCredits.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
664,
17118,
12,
45,
664,
922,
475,
14905,
475,
16,
467,
664,
922,
475,
9397,
664,
922,
475,
13,
3639,
1216,
478,
275,
697,
15133,
288,
3639,
9397,
664,
922,
475,
18,
542,
6119,
858,
12,
12401,
475,
18,
588,
6119,
858,
10663,
3639,
9397,
664,
922,
475,
18,
542,
9906,
1626,
12,
12401,
475,
18,
588,
9906,
1626,
10663,
3639,
9397,
664,
922,
475,
18,
542,
8973,
5283,
690,
6544,
12,
12401,
475,
18,
588,
8973,
5283,
690,
6544,
10663,
3639,
9397,
664,
922,
475,
18,
542,
2408,
1512,
2490,
39,
3117,
12,
12401,
475,
18,
588,
2408,
1512,
2490,
39,
3117,
10663,
3639,
9397,
664,
922,
475,
18,
542,
3210,
5027,
12,
12401,
475,
18,
588,
3210,
5027,
10663,
3639,
9397,
664,
922,
475,
18,
542,
19943,
319,
2408,
1512,
2490,
5365,
12,
12401,
475,
18,
588,
19943,
319,
2408,
1512,
2490,
5365,
10663,
2398,
9397,
664,
922,
475,
18,
542,
3418,
12,
12401,
475,
18,
588,
3418,
10663,
3639,
9397,
664,
922,
475,
18,
542,
664,
922,
475,
13468,
559,
12,
12401,
475,
18,
588,
664,
922,
475,
13468,
559,
10663,
3639,
9397,
664,
922,
475,
18,
542,
664,
17118,
1119,
12,
12401,
475,
18,
588,
664,
17118,
1119,
10663,
1082,
3639,
9397,
664,
922,
475,
18,
588,
6644,
1012,
7675,
1289,
1595,
12,
12401,
475,
18,
588,
6644,
1012,
10663,
3639,
9397,
664,
922,
475,
18,
588,
664,
922,
475,
13142,
5162,
2369,
7675,
1289,
1595,
12,
12401,
475,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1610,
664,
17118,
12,
45,
664,
922,
475,
14905,
475,
16,
467,
664,
922,
475,
9397,
664,
922,
475,
13,
3639,
1216,
478,
275,
697,
15133,
288,
3639,
9397,
664,
922,
475,
18,
542,
6119,
858,
12,
12401,
475,
18,
588,
6119,
858,
10663,
3639,
9397,
664,
922,
475,
18,
542,
9906,
1626,
12,
12401,
475,
18,
588,
9906,
1626,
10663,
3639,
9397,
664,
922,
475,
18,
542,
8973,
5283,
690,
6544,
12,
12401,
475,
18,
588,
8973,
5283,
690,
6544,
10663,
3639,
9397,
664,
922,
475,
18,
542,
2408,
1512,
2490,
39,
3117,
12,
12401,
475,
18,
588,
2408,
1512,
2490,
39,
3117,
10663,
3639,
9397,
664,
922,
475,
18,
542,
3210,
5027,
12,
12401,
2
] |
if (bg != null) { toolBar.setBackground(bg); } container.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { onPaint(e); } }); MenuManager manager = new MenuManager(); IMenuListener listener = new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { contextMenuAboutToShow(manager); } }; manager.setRemoveAllWhenShown(true); manager.addMenuListener(listener); Menu contextMenu = manager.createContextMenu(toolBarManager .getControl()); toolBarManager.getControl().setMenu(contextMenu); IntroPlugin.getDefault().setLaunchBar(this); } | if (bg != null) { toolBar.setBackground(bg); } container.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { onPaint(e); } }); MenuManager manager = new MenuManager(); IMenuListener listener = new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { contextMenuAboutToShow(manager); } }; manager.setRemoveAllWhenShown(true); manager.addMenuListener(listener); Menu contextMenu = manager.createContextMenu(toolBarManager .getControl()); toolBarManager.getControl().setMenu(contextMenu); IntroPlugin.getDefault().setLaunchBar(this); } | public void createControl(Composite parent) { container = new Composite(parent, SWT.NULL); computeColors(parent.getDisplay()); container.setLayout(new BarLayout()); boolean vertical = (orientation & SWT.VERTICAL) != 0; toolBarManager = new ToolBarManager(SWT.FLAT | orientation); Listener dragListener = new Listener() { public void handleEvent(Event event) { Point position = DragUtil.getEventLoc(event); startDragging(position, false); } }; if (element.getCreateHandle()) { if (element.getClose()) { closeButton = new CloseButton(container, SWT.NULL); closeButton.setBackground(bg); } handle = new Composite(container, SWT.NULL); final Cursor dragCursor = new Cursor(parent.getDisplay(), SWT.CURSOR_SIZEALL); handle.setCursor(dragCursor); handle.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { dragCursor.dispose(); } }); ImageDescriptor desc = element.getHandleImageDescriptor(); if (desc != null) handleImage = desc.createImage(); Rectangle ibounds = handleImage.getBounds(); handle.setBackground(bg); handle.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { onHandlePaint(e); } }); handle.addListener(SWT.DragDetect, dragListener); handle.setCursor(dragCursor); closeButton.addListener(SWT.DragDetect, dragListener); } fillToolBar(); //coolBar = new CoolBar(container, SWT.NULL); //CoolItem coolItem = new CoolItem(coolBar, SWT.NULL); //toolBarManager.createControl(coolBar); toolBarManager.createControl(container); ToolBar toolBar = toolBarManager.getControl(); //coolItem.setControl(toolBar); //Point toolBarSize = toolBar.computeSize(SWT.DEFAULT, // SWT.DEFAULT); // Set the preffered size to the size of the toolbar plus trim //Point preferredSize = coolItem.computeSize(toolBarSize.x, // toolBarSize.y); //coolItem.setPreferredSize(preferredSize); if (bg != null) { toolBar.setBackground(bg); //coolBar.setBackground(bg); } container.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { onPaint(e); } }); MenuManager manager = new MenuManager(); IMenuListener listener = new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { contextMenuAboutToShow(manager); } }; manager.setRemoveAllWhenShown(true); manager.addMenuListener(listener); Menu contextMenu = manager.createContextMenu(toolBarManager .getControl()); toolBarManager.getControl().setMenu(contextMenu); IntroPlugin.getDefault().setLaunchBar(this); } | 13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/1b18c4111a9bdd6d059092d4cb5971693a9544b2/IntroLaunchBar.java/clean/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
3782,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
9200,
12570,
12,
2938,
18,
588,
4236,
10663,
202,
202,
3782,
18,
542,
3744,
12,
2704,
16654,
3744,
10663,
202,
202,
6494,
9768,
273,
261,
19235,
473,
348,
8588,
18,
21654,
10109,
13,
480,
374,
31,
202,
202,
6738,
5190,
1318,
273,
394,
13288,
5190,
1318,
12,
55,
8588,
18,
42,
12190,
571,
9820,
1769,
202,
202,
2223,
8823,
2223,
273,
394,
10652,
1435,
288,
1082,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
9506,
202,
2148,
1754,
273,
28425,
1304,
18,
588,
1133,
1333,
12,
2575,
1769,
9506,
202,
1937,
11728,
1998,
12,
3276,
16,
629,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
430,
261,
2956,
18,
588,
1684,
3259,
10756,
288,
1082,
202,
430,
261,
2956,
18,
588,
4605,
10756,
288,
9506,
202,
4412,
3616,
273,
394,
3527,
3616,
12,
3782,
16,
348,
8588,
18,
8560,
1769,
9506,
202,
4412,
3616,
18,
542,
8199,
12,
12370,
1769,
1082,
202,
97,
1082,
202,
4110,
273,
394,
14728,
12,
3782,
16,
348,
8588,
18,
8560,
1769,
1082,
202,
6385,
13949,
8823,
6688,
273,
394,
13949,
12,
2938,
18,
588,
4236,
9334,
6862,
202,
55,
8588,
18,
7509,
55,
916,
67,
4574,
4685,
1769,
1082,
202,
4110,
18,
542,
6688,
12,
15997,
6688,
1769,
1082,
202,
4110,
18,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
3782,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
9200,
12570,
12,
2938,
18,
588,
4236,
10663,
202,
202,
3782,
18,
542,
3744,
12,
2704,
16654,
3744,
10663,
202,
202,
6494,
9768,
273,
261,
19235,
473,
348,
8588,
18,
21654,
10109,
13,
480,
374,
31,
202,
202,
6738,
5190,
1318,
273,
394,
13288,
5190,
1318,
12,
55,
8588,
18,
42,
12190,
571,
9820,
1769,
202,
202,
2223,
8823,
2223,
273,
394,
10652,
1435,
288,
1082,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
9506,
202,
2148,
1754,
273,
28425,
1304,
18,
588,
1133,
1333,
12,
2575,
1769,
9506,
202,
2
] |
if (name == null) { | if (name == null) { | public void subTask(String name) { if (subTaskLabel.isDisposed()) { return; } if (name == null) { fSubTask = "";//$NON-NLS-1$ } else { fSubTask = name; } subTaskLabel.setText(shortenText(fSubTask,subTaskLabel)); if (!forked) { subTaskLabel.update(); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/18d6e658dfbeda87524388388c4d4c049701f36f/ProgressMonitorDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressMonitorDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
720,
2174,
12,
780,
508,
13,
288,
5411,
309,
261,
1717,
2174,
2224,
18,
291,
1669,
7423,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
5411,
309,
261,
529,
422,
446,
13,
288,
9506,
202,
74,
1676,
2174,
273,
1408,
31,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
469,
288,
9506,
202,
74,
1676,
2174,
273,
508,
31,
1082,
202,
97,
5411,
720,
2174,
2224,
18,
542,
1528,
12,
6620,
275,
1528,
12,
74,
1676,
2174,
16,
1717,
2174,
2224,
10019,
5411,
309,
16051,
23335,
329,
13,
288,
9506,
202,
1717,
2174,
2224,
18,
2725,
5621,
1082,
202,
97,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
720,
2174,
12,
780,
508,
13,
288,
5411,
309,
261,
1717,
2174,
2224,
18,
291,
1669,
7423,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
5411,
309,
261,
529,
422,
446,
13,
288,
9506,
202,
74,
1676,
2174,
273,
1408,
31,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
469,
288,
9506,
202,
74,
1676,
2174,
273,
508,
31,
1082,
202,
97,
5411,
720,
2174,
2224,
18,
542,
1528,
12,
6620,
275,
1528,
12,
74,
1676,
2174,
16,
1717,
2174,
2224,
10019,
5411,
309,
16051,
23335,
329,
13,
288,
9506,
202,
1717,
2174,
2224,
18,
2725,
5621,
1082,
202,
97,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
TreePath path = new TreePath(tocModel.getPathToRoot(node)); toc.expandPath(path); toc.setSelectionPath(path); toc.scrollPathToVisible(path); | TreePath path = new TreePath(tocModel.getPathToRoot(node)); toc.expandPath(path); toc.setSelectionPath(path); toc.scrollPathToVisible(path); } | public void gotoURL(String url, boolean addToHistory) { // reset default cursor so that the hand cursor doesn't // stick around viewer.setCursor(Cursor.getDefaultCursor()); int index = url.indexOf('#'); URL _url = null; try { _url = new URL(url); urlField.setText(_url.toString()); viewer.setPage(_url); if(addToHistory) { history[historyPos] = url; if(historyPos + 1 == history.length) { System.arraycopy(history,1,history, 0,history.length - 1); history[historyPos] = null; } else historyPos++; } } catch(MalformedURLException mf) { Log.log(Log.ERROR,this,mf); String[] args = { url, mf.getMessage() }; GUIUtilities.error(this,"badurl",args); return; } catch(IOException io) { Log.log(Log.ERROR,this,io); String[] args = { url, io.toString() }; GUIUtilities.error(this,"read-error",args); return; } // select the appropriate tree node. DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.get(url); if(node == null) return; TreePath path = new TreePath(tocModel.getPathToRoot(node)); toc.expandPath(path); toc.setSelectionPath(path); toc.scrollPathToVisible(path); } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/68dbdd95261b9680d2664b2510a57645537de714/HelpViewer.java/clean/org/gjt/sp/jedit/gui/HelpViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2897,
1785,
12,
780,
880,
16,
1250,
9604,
5623,
13,
202,
95,
202,
202,
759,
2715,
805,
3347,
1427,
716,
326,
948,
3347,
3302,
1404,
202,
202,
759,
25608,
6740,
202,
202,
25256,
18,
542,
6688,
12,
6688,
18,
588,
1868,
6688,
10663,
202,
202,
474,
770,
273,
880,
18,
31806,
2668,
7,
8284,
202,
202,
1785,
389,
718,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
67,
718,
273,
394,
1976,
12,
718,
1769,
1082,
202,
718,
974,
18,
542,
1528,
24899,
718,
18,
10492,
10663,
1082,
202,
25256,
18,
542,
1964,
24899,
718,
1769,
1082,
202,
430,
12,
1289,
774,
5623,
13,
1082,
202,
95,
9506,
202,
8189,
63,
8189,
1616,
65,
273,
880,
31,
9506,
202,
430,
12,
8189,
1616,
397,
404,
422,
4927,
18,
2469,
13,
9506,
202,
95,
6862,
202,
3163,
18,
1126,
3530,
12,
8189,
16,
21,
16,
8189,
16,
25083,
202,
20,
16,
8189,
18,
2469,
300,
404,
1769,
6862,
202,
8189,
63,
8189,
1616,
65,
273,
446,
31,
9506,
202,
97,
9506,
202,
12107,
6862,
202,
8189,
1616,
9904,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
14683,
12,
18695,
20160,
14749,
13,
202,
202,
95,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
16126,
1769,
1082,
202,
780,
8526,
833,
273,
288,
880,
16,
14749,
18,
24906,
1435,
289,
31,
1082,
202,
43,
5370,
11864,
18,
1636,
12,
2211,
10837,
8759,
718,
3113,
1968,
1769,
1082,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2897,
1785,
12,
780,
880,
16,
1250,
9604,
5623,
13,
202,
95,
202,
202,
759,
2715,
805,
3347,
1427,
716,
326,
948,
3347,
3302,
1404,
202,
202,
759,
25608,
6740,
202,
202,
25256,
18,
542,
6688,
12,
6688,
18,
588,
1868,
6688,
10663,
202,
202,
474,
770,
273,
880,
18,
31806,
2668,
7,
8284,
202,
202,
1785,
389,
718,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
67,
718,
273,
394,
1976,
12,
718,
1769,
1082,
202,
718,
974,
18,
542,
1528,
24899,
718,
18,
10492,
10663,
1082,
202,
25256,
18,
542,
1964,
24899,
718,
1769,
1082,
202,
430,
12,
1289,
774,
5623,
13,
1082,
202,
95,
9506,
202,
8189,
63,
8189,
2
] |
this.clearResourceCache(filename, currentProject, currentUser); | public void undeleteResource(CmsUser currentUser, CmsProject currentProject, String filename) throws CmsException { boolean isFolder = false; CmsResource resource = null; int state = I_CmsConstants.C_STATE_CHANGED; // read the resource to check the access if (filename.endsWith("/")) { isFolder = true; resource = readFolder(currentUser, currentProject, filename); } else { resource = (CmsFile) readFileHeader(currentUser, currentProject, filename, true); } // check if the user has write access to the destination folder // accessWriteUnlocked checkPermissions(currentUser, currentProject, resource, I_CmsConstants.C_WRITE_ACCESS); // undelete the resource resource.setState(state); resource.setLocked(currentUser.getId()); // write the file. if (filename.endsWith("/")) { m_vfsDriver.writeFolder(currentProject, (CmsFolder) resource, false, currentUser.getId()); // update the cache this.clearResourceCache(filename, currentProject, currentUser); } else { m_vfsDriver.writeFileHeader(currentProject, (CmsFile) resource, false, currentUser.getId()); // update the cache this.clearResourceCache(filename, currentProject, currentUser); } // undelete access control entries undeleteAllAccessControlEntries(currentUser, currentProject, resource); // inform about the file-system-change fileSystemChanged(isFolder); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/306783b83ba45cc7b082cf130c48cbc9f5130aaf/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
3733,
1420,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
27573,
514,
1544,
13,
3639,
1216,
11228,
288,
3639,
1250,
31137,
273,
629,
31,
3639,
7630,
1058,
273,
446,
31,
3639,
509,
919,
273,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
24435,
31,
3639,
368,
855,
326,
1058,
358,
866,
326,
2006,
3639,
309,
261,
3459,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
31137,
273,
638,
31,
5411,
1058,
273,
855,
3899,
12,
2972,
1299,
16,
783,
4109,
16,
1544,
1769,
3639,
289,
469,
288,
5411,
1058,
273,
261,
4747,
812,
13,
10413,
1864,
12,
2972,
1299,
16,
783,
4109,
16,
1544,
16,
638,
1769,
3639,
289,
3639,
368,
866,
309,
326,
729,
711,
1045,
2006,
358,
326,
2929,
3009,
3639,
368,
2006,
3067,
7087,
329,
202,
202,
1893,
6521,
12,
2972,
1299,
16,
783,
4109,
16,
1058,
16,
467,
67,
4747,
2918,
18,
39,
67,
11677,
67,
13204,
1769,
2398,
368,
640,
3733,
326,
1058,
3639,
1058,
18,
542,
1119,
12,
2019,
1769,
3639,
1058,
18,
542,
8966,
12,
2972,
1299,
18,
26321,
10663,
3639,
368,
1045,
326,
585,
18,
3639,
309,
261,
3459,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
312,
67,
90,
2556,
4668,
18,
2626,
3899,
12,
2972,
4109,
16,
261,
4747,
3899,
13,
1058,
16,
629,
16,
13970,
18,
26321,
10663,
5411,
368,
1089,
326,
1247,
5375,
289,
469,
288,
5411,
312,
67,
90,
2556,
4668,
18,
2626,
812,
1864,
12,
2972,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
3733,
1420,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
27573,
514,
1544,
13,
3639,
1216,
11228,
288,
3639,
1250,
31137,
273,
629,
31,
3639,
7630,
1058,
273,
446,
31,
3639,
509,
919,
273,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
24435,
31,
3639,
368,
855,
326,
1058,
358,
866,
326,
2006,
3639,
309,
261,
3459,
18,
5839,
1190,
2932,
4898,
3719,
288,
5411,
31137,
273,
638,
31,
5411,
1058,
273,
855,
3899,
12,
2972,
1299,
16,
783,
4109,
16,
1544,
1769,
3639,
289,
469,
288,
5411,
1058,
273,
261,
4747,
812,
13,
10413,
1864,
12,
2972,
1299,
16,
783,
4109,
16,
1544,
16,
638,
1769,
3639,
289,
3639,
368,
866,
2
] |
|
mainLayout.dispose(); | public void deactivate() { if (!active) return; disableAllDrag(); // Reparent all views to the main window Composite parent = mainLayout.getParent(); Vector children = new Vector(); collectViewPanes(children, mainLayout.getChildren()); for (int i = 0, length = detachedWindowList.size(); i < length; i++) { DetachedWindow window = (DetachedWindow) detachedWindowList.get(i); collectViewPanes(children, window.getChildren()); } // *** Do we even need to do this if detached windows not supported? Enumeration itr = children.elements(); while (itr.hasMoreElements()) { LayoutPart part = (LayoutPart) itr.nextElement(); part.reparent(parent); } // Dispose main layout. mainLayout.dispose(); // Dispose the detached windows for (int i = 0, length = detachedWindowList.size(); i < length; i++) { DetachedWindow window = (DetachedWindow) detachedWindowList.get(i); window.close(); } active = false; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0f9e79f0648392aa2d0092033ea11a0726dd9e8d/PerspectiveHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18790,
1435,
288,
3639,
309,
16051,
3535,
13,
5411,
327,
31,
3639,
4056,
1595,
11728,
5621,
3639,
368,
868,
2938,
777,
7361,
358,
326,
2774,
2742,
3639,
14728,
982,
273,
2774,
3744,
18,
588,
3054,
5621,
3639,
5589,
2325,
273,
394,
5589,
5621,
3639,
3274,
1767,
4069,
281,
12,
5906,
16,
2774,
3744,
18,
588,
4212,
10663,
3639,
364,
261,
474,
277,
273,
374,
16,
769,
273,
22037,
3829,
682,
18,
1467,
5621,
277,
411,
769,
31,
277,
27245,
288,
5411,
8083,
2004,
3829,
2742,
273,
261,
4986,
2004,
3829,
13,
22037,
3829,
682,
18,
588,
12,
77,
1769,
5411,
3274,
1767,
4069,
281,
12,
5906,
16,
2742,
18,
588,
4212,
10663,
3639,
289,
3639,
368,
18852,
2256,
732,
5456,
1608,
358,
741,
333,
309,
22037,
9965,
486,
3260,
35,
3639,
13864,
11176,
273,
2325,
18,
6274,
5621,
3639,
1323,
261,
305,
86,
18,
5332,
7417,
3471,
10756,
288,
5411,
9995,
1988,
1087,
273,
261,
3744,
1988,
13,
11176,
18,
4285,
1046,
5621,
5411,
1087,
18,
266,
2938,
12,
2938,
1769,
3639,
289,
7734,
368,
3035,
4150,
2774,
3511,
18,
9079,
368,
3035,
4150,
326,
22037,
9965,
3639,
364,
261,
474,
277,
273,
374,
16,
769,
273,
22037,
3829,
682,
18,
1467,
5621,
277,
411,
769,
31,
277,
27245,
288,
5411,
8083,
2004,
3829,
2742,
273,
261,
4986,
2004,
3829,
13,
22037,
3829,
682,
18,
588,
12,
77,
1769,
5411,
2742,
18,
4412,
5621,
3639,
289,
7734,
2695,
273,
629,
31,
565,
289,
2,
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,
1,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18790,
1435,
288,
3639,
309,
16051,
3535,
13,
5411,
327,
31,
3639,
4056,
1595,
11728,
5621,
3639,
368,
868,
2938,
777,
7361,
358,
326,
2774,
2742,
3639,
14728,
982,
273,
2774,
3744,
18,
588,
3054,
5621,
3639,
5589,
2325,
273,
394,
5589,
5621,
3639,
3274,
1767,
4069,
281,
12,
5906,
16,
2774,
3744,
18,
588,
4212,
10663,
3639,
364,
261,
474,
277,
273,
374,
16,
769,
273,
22037,
3829,
682,
18,
1467,
5621,
277,
411,
769,
31,
277,
27245,
288,
5411,
8083,
2004,
3829,
2742,
273,
261,
4986,
2004,
3829,
13,
22037,
3829,
682,
18,
588,
12,
77,
1769,
5411,
3274,
1767,
4069,
281,
12,
5906,
16,
2742,
18,
588,
4212,
10663,
3639,
289,
3639,
368,
2
] |
|
OnmsNode node = getNodeDao().findByAssetNumber(AssetRecordDao.IMPORTED_ID+"7"); | OnmsNode node = getNodeDao().findByAssetNumber("imported:"+"7"); | public void testSaveThenUpdate() throws Exception { m_transTemplate.execute(new TransactionCallback() { public Object doInTransaction(TransactionStatus status) { OnmsServiceType icmp = getServiceTypeDao().findByName("ICMP"); OnmsServiceType snmp = getServiceTypeDao().findByName("SNMP"); OnmsDistPoller distPoller = getDistPollerDao().get("localhost"); NetworkBuilder builder = new NetworkBuilder(distPoller); builder.addNode("node7").getAssetRecord().setAssetNumber(AssetRecordDao.IMPORTED_ID+"7"); builder.getCurrentNode().getAssetRecord().setDisplayCategory("cat7"); builder.addInterface("192.168.7.1", -1).setIsManaged("M").setIsSnmpPrimary("P").setIpStatus(1); builder.addService(icmp); builder.addService(snmp); getNodeDao().save(builder.getCurrentNode()); return builder.getCurrentNode(); } }); //getDistPollerDao().clear(); m_transTemplate.execute(new TransactionCallback() { public Object doInTransaction(TransactionStatus status) { OnmsNode node = getNodeDao().findByAssetNumber(AssetRecordDao.IMPORTED_ID+"7"); assertNotNull(node); assertEquals("node7", node.getLabel()); assertEquals("cat7", node.getAssetRecord().getDisplayCategory()); assertEquals(1, node.getIpInterfaces().size()); OnmsIpInterface iface = (OnmsIpInterface)node.getIpInterfaces().iterator().next(); assertEquals("192.168.7.1", iface.getIpAddress()); assertEquals("M", iface.getIsManaged()); assertEquals(2, iface.getMonitoredServices().size()); System.err.println("###################3 UPDATE ####################"); getNodeDao().update(node); return null; } }); } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/0400674033a43abf6e876bbc15a1e43b5891a369/ImportOperationsManagerTest.java/clean/model-import/src/test/java/org/opennms/netmgt/importer/ImportOperationsManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4755,
20112,
1891,
1435,
1216,
1185,
288,
377,
202,
377,
202,
3639,
312,
67,
2338,
2283,
18,
8837,
12,
2704,
5947,
2428,
1435,
288,
5411,
1071,
1033,
741,
382,
3342,
12,
3342,
1482,
1267,
13,
288,
2398,
202,
1398,
959,
1179,
559,
277,
9625,
273,
6373,
559,
11412,
7675,
4720,
5911,
2932,
2871,
4566,
8863,
2398,
202,
1398,
959,
1179,
559,
15366,
273,
6373,
559,
11412,
7675,
4720,
5911,
2932,
13653,
4566,
8863,
7734,
2755,
959,
5133,
5850,
749,
2411,
5850,
749,
273,
2343,
376,
5850,
749,
11412,
7675,
588,
2932,
13014,
8863,
7734,
5128,
1263,
2089,
273,
394,
5128,
1263,
12,
4413,
5850,
749,
1769,
7734,
2089,
18,
1289,
907,
2932,
2159,
27,
20387,
588,
6672,
2115,
7675,
542,
6672,
1854,
12,
6672,
2115,
11412,
18,
30667,
67,
734,
9078,
27,
8863,
7734,
2089,
18,
588,
3935,
907,
7675,
588,
6672,
2115,
7675,
542,
4236,
4457,
2932,
2574,
27,
8863,
7734,
2089,
18,
1289,
1358,
2932,
15561,
18,
23329,
18,
27,
18,
21,
3113,
300,
21,
2934,
542,
2520,
10055,
2932,
49,
20387,
542,
2520,
10461,
1291,
6793,
2932,
52,
20387,
542,
5273,
1482,
12,
21,
1769,
7734,
2089,
18,
1289,
1179,
12,
335,
1291,
1769,
7734,
2089,
18,
1289,
1179,
12,
26527,
1769,
7734,
5973,
11412,
7675,
5688,
12,
9574,
18,
588,
3935,
907,
10663,
7734,
327,
2089,
18,
588,
3935,
907,
5621,
5411,
289,
3639,
15549,
7734,
368,
588,
5133,
5850,
749,
11412,
7675,
8507,
5621,
3639,
312,
67,
2338,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4755,
20112,
1891,
1435,
1216,
1185,
288,
377,
202,
377,
202,
3639,
312,
67,
2338,
2283,
18,
8837,
12,
2704,
5947,
2428,
1435,
288,
5411,
1071,
1033,
741,
382,
3342,
12,
3342,
1482,
1267,
13,
288,
2398,
202,
1398,
959,
1179,
559,
277,
9625,
273,
6373,
559,
11412,
7675,
4720,
5911,
2932,
2871,
4566,
8863,
2398,
202,
1398,
959,
1179,
559,
15366,
273,
6373,
559,
11412,
7675,
4720,
5911,
2932,
13653,
4566,
8863,
7734,
2755,
959,
5133,
5850,
749,
2411,
5850,
749,
273,
2343,
376,
5850,
749,
11412,
7675,
588,
2932,
13014,
8863,
7734,
5128,
1263,
2089,
273,
394,
5128,
1263,
12,
4413,
5850,
749,
1769,
7734,
2089,
18,
1289,
907,
2932,
2159,
27,
20387,
2
] |
String[] devClassPath = DevClassPathHelper.getDevClassPath(pluginInfo.getUniqueId()); List starExport = new ArrayList(1); starExport.add("*"); if (devClassPath != null) { for (int i = 0; i < devClassPath.length; i++) libs.put(devClassPath[i], starExport); | if (DevClassPathHelper.inDevelopmentMode()) { String[] devClassPath = DevClassPathHelper.getDevClassPath(pluginInfo.getUniqueId()); List allExportClauses = new ArrayList(libs.size()); Set libEntries = libs.entrySet(); for (Iterator iter = libEntries.iterator(); iter.hasNext();) { Map.Entry element = (Map.Entry) iter.next(); allExportClauses.addAll((List) element.getValue()); } if (devClassPath != null) { for (int i = 0; i < devClassPath.length; i++) libs.put(devClassPath[i], allExportClauses); } | private Set getExports() { Map libs = pluginInfo.getLibraries(); if (libs == null) return null; // Based on similar code from EclipseStarter // Check the osgi.dev property to see if dev classpath entries have been defined. String[] devClassPath = DevClassPathHelper.getDevClassPath(pluginInfo.getUniqueId()); // add the dev. time classpath entries List starExport = new ArrayList(1); starExport.add("*"); //$NON-NLS-1$ if (devClassPath != null) { for (int i = 0; i < devClassPath.length; i++) libs.put(devClassPath[i], starExport); } Set result = new HashSet(7); Set libEntries = libs.entrySet(); for (Iterator iter = libEntries.iterator(); iter.hasNext();) { Map.Entry element = (Map.Entry) iter.next(); List filter = (List) element.getValue(); if (filter.size() == 0) //If the library is not exported, then ignore it continue; File libraryLocation = new File(pluginManifestLocation, (String) element.getKey()); Set exports = null; if (libraryLocation.exists()) { if (libraryLocation.isFile()) exports = filterExport(getExportsFromJAR(libraryLocation), filter); //TODO Need to handle $xx$ variables else if (libraryLocation.isDirectory()) exports = filterExport(getExportsFromDir(libraryLocation), filter); } else { ArrayList expandedLibs = getLibrariesExpandingVariables((String) element.getKey(), false); exports = new HashSet(); for (Iterator iterator = expandedLibs.iterator(); iterator.hasNext();) { String libName = (String) iterator.next(); File libFile = new File(pluginManifestLocation, libName); if (libFile.isFile()) { exports.addAll(filterExport(getExportsFromJAR(libFile), filter)); } } } if (exports != null) result.addAll(exports); } return result; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/8e1fcb89282252c2125a79808de7a1f0828bc25a/PluginConverterImpl.java/clean/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/PluginConverterImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
336,
15352,
1435,
288,
202,
202,
863,
15042,
273,
1909,
966,
18,
588,
31909,
5621,
202,
202,
430,
261,
21571,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
25935,
603,
7281,
981,
628,
20840,
10472,
510,
14153,
202,
202,
759,
2073,
326,
320,
17537,
18,
5206,
1272,
358,
2621,
309,
4461,
10006,
3222,
1240,
2118,
2553,
18,
202,
202,
780,
8526,
4461,
22158,
273,
9562,
22158,
2276,
18,
588,
8870,
22158,
12,
4094,
966,
18,
588,
24174,
10663,
202,
202,
759,
527,
326,
4461,
18,
813,
10006,
3222,
202,
202,
682,
10443,
6144,
273,
394,
2407,
12,
21,
1769,
202,
202,
10983,
6144,
18,
1289,
2932,
7388,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
5206,
22158,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4461,
22158,
18,
2469,
31,
277,
27245,
9506,
202,
21571,
18,
458,
12,
5206,
22158,
63,
77,
6487,
10443,
6144,
1769,
202,
202,
97,
202,
202,
694,
563,
273,
394,
6847,
12,
27,
1769,
202,
202,
694,
2561,
5400,
273,
15042,
18,
4099,
694,
5621,
202,
202,
1884,
261,
3198,
1400,
273,
2561,
5400,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
863,
18,
1622,
930,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
1082,
202,
682,
1034,
273,
261,
682,
13,
930,
18,
24805,
5621,
1082,
202,
430,
261,
2188,
18,
1467,
1435,
422,
374,
13,
368,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
336,
15352,
1435,
288,
202,
202,
863,
15042,
273,
1909,
966,
18,
588,
31909,
5621,
202,
202,
430,
261,
21571,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
25935,
603,
7281,
981,
628,
20840,
10472,
510,
14153,
202,
202,
759,
2073,
326,
320,
17537,
18,
5206,
1272,
358,
2621,
309,
4461,
10006,
3222,
1240,
2118,
2553,
18,
202,
202,
780,
8526,
4461,
22158,
273,
9562,
22158,
2276,
18,
588,
8870,
22158,
12,
4094,
966,
18,
588,
24174,
10663,
202,
202,
759,
527,
326,
4461,
18,
813,
10006,
3222,
202,
202,
682,
10443,
6144,
273,
394,
2407,
12,
21,
1769,
202,
202,
10983,
6144,
18,
1289,
2932,
7388,
1769,
4329,
3993,
17,
5106,
2
] |
if (debugLevel >= 1) { aload(contextLocal); aload(variableObjectLocal); iload(debug_pcLocal); addStaticInvoke("org/mozilla/javascript/debug/NativeDelegate", "setPC", "(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;I)", "V"); } | private void visitRegularCall(Node node, int type, Node child, boolean firstArgDone) { /* * Generate code for call. * * push <arity> * anewarray Ljava/lang/Object; * // "initCount" instances of code from here... * dup * push <i> * <gen code for child> * aastore * //...to here * invokestatic call */ OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); Node chelsea = child; int childCount = 0; int argSkipCount = (type == TokenStream.NEW) ? 1 : 2; while (child != null) { childCount++; child = child.getNextSibling(); } child = chelsea; // re-start the iterator from the first child, // REMIND - too bad we couldn't just back-patch the count ? int argIndex = -argSkipCount; if (firstArgDone && (child != null)) { child = child.getNextSibling(); argIndex++; aload(contextLocal); addByteCode(ByteCode.SWAP); } else aload(contextLocal); if (firstArgDone && (type == TokenStream.NEW)) constructArgArray(childCount - argSkipCount); boolean isSpecialCall = node.getProp(Node.SPECIALCALL_PROP) != null; boolean isSimpleCall = false; String simpleCallName = null; if (type != TokenStream.NEW) { simpleCallName = getSimpleCallName(node); if (simpleCallName != null && !isSpecialCall && debugLevel < 3) { isSimpleCall = true; push(simpleCallName); aload(variableObjectLocal); child = child.getNextSibling().getNextSibling(); argIndex = 0; push(childCount - argSkipCount); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); } } while (child != null) { if (argIndex < 0) // not moving these arguments to the array generateCodeFromNode(child, node, -1, -1); else { addByteCode(ByteCode.DUP); push(argIndex); if (target != null) {/* If this has also been a directCall sequence, the Number flag will have remained set for any parameter so that the values could be copied directly into the outgoing args. Here we want to force it to be treated as not in a Number context, so we set the flag off.*/ boolean handled = false; if ((child.getType() == TokenStream.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar.isParameter()) { child.putProp(Node.ISNUMBER_PROP, null); generateCodeFromNode(child, node, -1, -1); handled = true; } } if (!handled) { Integer childNumberFlag = (Integer)(child.getProp(Node.ISNUMBER_PROP)); if ((childNumberFlag != null) && (childNumberFlag.intValue() == Node.BOTH)) { addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node, -1, -1); addDoubleConstructor(); } else generateCodeFromNode(child, node, -1, -1); } } else generateCodeFromNode(child, node, -1, -1); addByteCode(ByteCode.AASTORE); } argIndex++; if (argIndex == 0) { // now we need to construct the array // (even if there are no args to load // into it) - REMIND could pass null // instead ? constructArgArray(childCount - argSkipCount); } child = child.getNextSibling(); } // set our pc into the top frame if (debugLevel >= 1) { aload(contextLocal); aload(variableObjectLocal); iload(debug_pcLocal); addStaticInvoke("org/mozilla/javascript/debug/NativeDelegate", "setPC", "(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;I)", "V"); } String className; String methodNameNewObj; String methodNameCall; String callSignature; if (isSpecialCall) { className = "org/mozilla/javascript/ScriptRuntime"; methodNameNewObj = "newObjectSpecial"; methodNameCall = "callSpecial"; if (type != TokenStream.NEW) { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;I)"; // filename & linenumber aload(thisObjLocal); aload(variableObjectLocal); push(itsSourceFile == null ? "" : itsSourceFile); push(itsLineNumber); } else { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)"; aload(variableObjectLocal); } } else { methodNameNewObj = "newObject"; if (isSimpleCall) { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/String;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)"; methodNameCall = "callSimple"; className = "org/mozilla/javascript/optimizer/OptRuntime"; } else { aload(variableObjectLocal); if (type == TokenStream.NEW) { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)"; } else { callSignature = "(Lorg/mozilla/javascript/Context;" + "Ljava/lang/Object;" + "Ljava/lang/Object;" + "[Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)"; } methodNameCall = "call"; className = "org/mozilla/javascript/ScriptRuntime"; } } /* NOTE: we assure above !(isSimpleCall && debugLevel >= 3). So * we don't need to worry about the SimpleCall case in debug code. */ if (debugLevel >= 3) { className = "org/mozilla/javascript/debug/NativeDelegate"; if (isSpecialCall) { methodNameNewObj = "newObjectSpecialDebug"; methodNameCall = "callSpecialDebug"; } else { methodNameNewObj = "newObjectDebug"; methodNameCall = "callDebug"; } } if (type == TokenStream.NEW) { addStaticInvoke(className, methodNameNewObj, callSignature, "Lorg/mozilla/javascript/Scriptable;"); } else { addStaticInvoke(className, methodNameCall, callSignature, "Ljava/lang/Object;"); } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/358852ab0559d31ad406a9294705552786b43c55/Codegen.java/buggy/js/rhino/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
17974,
1477,
12,
907,
756,
16,
509,
618,
16,
21394,
2029,
1151,
16,
1250,
1122,
4117,
7387,
13,
565,
288,
3639,
1748,
540,
380,
6654,
981,
364,
745,
18,
540,
380,
540,
380,
1817,
411,
20498,
34,
540,
380,
392,
359,
1126,
511,
6290,
19,
4936,
19,
921,
31,
540,
380,
368,
315,
2738,
1380,
6,
3884,
434,
981,
628,
2674,
2777,
540,
380,
9417,
540,
380,
1817,
411,
77,
34,
540,
380,
411,
4507,
981,
364,
1151,
34,
540,
380,
279,
689,
479,
540,
380,
368,
2777,
869,
2674,
540,
380,
5770,
395,
2126,
745,
540,
1195,
3639,
12056,
2083,
907,
1018,
273,
261,
6179,
2083,
907,
13,
2159,
18,
588,
4658,
12,
907,
18,
17541,
13730,
67,
15811,
1769,
3639,
2029,
462,
12107,
69,
273,
1151,
31,
3639,
509,
31492,
273,
374,
31,
3639,
509,
1501,
6368,
1380,
273,
261,
723,
422,
3155,
1228,
18,
12917,
13,
692,
404,
294,
576,
31,
3639,
1323,
261,
3624,
480,
446,
13,
288,
5411,
31492,
9904,
31,
5411,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
3639,
289,
3639,
1151,
273,
462,
12107,
69,
31,
565,
368,
283,
17,
1937,
326,
2775,
628,
326,
1122,
1151,
16,
10792,
368,
2438,
49,
2356,
300,
4885,
5570,
732,
17991,
1404,
2537,
1473,
17,
2272,
326,
1056,
692,
3639,
509,
1501,
1016,
273,
300,
3175,
6368,
1380,
31,
3639,
309,
261,
3645,
4117,
7387,
597,
261,
3624,
480,
446,
3719,
288,
5411,
1151,
273,
1151,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
17974,
1477,
12,
907,
756,
16,
509,
618,
16,
21394,
2029,
1151,
16,
1250,
1122,
4117,
7387,
13,
565,
288,
3639,
1748,
540,
380,
6654,
981,
364,
745,
18,
540,
380,
540,
380,
1817,
411,
20498,
34,
540,
380,
392,
359,
1126,
511,
6290,
19,
4936,
19,
921,
31,
540,
380,
368,
315,
2738,
1380,
6,
3884,
434,
981,
628,
2674,
2777,
540,
380,
9417,
540,
380,
1817,
411,
77,
34,
540,
380,
411,
4507,
981,
364,
1151,
34,
540,
380,
279,
689,
479,
540,
380,
368,
2777,
869,
2674,
540,
380,
5770,
395,
2126,
745,
540,
1195,
3639,
12056,
2083,
907,
1018,
273,
261,
6179,
2083,
907,
13,
2159,
18,
588,
4658,
12,
907,
2
] |
|
.getPageSize(getPreferenceStore(), false); | .getPageSize(getPreferenceStore(), false, getMapMode()); | protected void drawPage(Graphics g, GC gc, float scale, int row, int col, PageMargins margins) { org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper .getPageSize(getPreferenceStore(), false); g.pushState(); Rectangle bounds = getBounds(); int translateX = (int) (0f - bounds.x * scale + ((float) getTotalNumberOfColumns() * pageSize.x - bounds.width) * scale / 2f - (((float) pageSize.x) * ((float) (col + userX)) * scale)), translateY = (int) (0f - bounds.y * scale + ((float) getTotalNumberOfRows() * pageSize.y - bounds.height) * scale / 2f - (((float) pageSize.y) * ((float) (row + userY)) * scale)); //offset by page break figure bounds, then offset by the row or column we're at, and then take margins into account translateX = - bounds.x - (pageSize.x * (col + userX)) + (margins.left * (col + userX + 1)) + (margins.right * (col + userX)); translateY = - bounds.y - (pageSize.y * (row + userY)) + (margins.top * (row + userY + 1)) + (margins.bottom * (row + userY)); //To set a specific font, we could do this //For a completely accurate print preview, the font is printer specific //and may not be supported by the screen, so it is pointless //FontData fontData = JFaceResources.getDefaultFont().getFontData()[0]; //Font font = new Font(device, fontData); //g.setFont(font); if (doesPageExist(1 + userX + col, 1 + userY + row)) { g.pushState(); //draw text, don't make it too small or big g.scale(scale); String headerOrFooter = HeaderAndFooterHelper.makeHeaderOrFooterString( WorkspaceViewerProperties.HEADER_PREFIX, 1 + userY + row, 1 + userX + col, getDiagramEditPart()); g.drawText( headerOrFooter, (pageSize.x - getMapMode().DPtoLP(gc.textExtent(headerOrFooter).x)) / 2, HeaderAndFooterHelper.TOP_MARGIN); headerOrFooter = HeaderAndFooterHelper.makeHeaderOrFooterString( WorkspaceViewerProperties.FOOTER_PREFIX, 1 + userY + row, 1 + userX + col, getDiagramEditPart()); g.drawText( headerOrFooter, (pageSize.x - getMapMode().DPtoLP(gc.textExtent(headerOrFooter).x)) / 2, pageSize.y - HeaderAndFooterHelper.BOTTOM_MARGIN); g.popState(); //for drawing the text } g.scale(scale); g.translate(translateX, translateY); Rectangle clip = new Rectangle((pageSize.x - margins.left - margins.right) * (col + userX) + bounds.x, (pageSize.y - margins.top - margins.bottom) * (row + userY) + bounds.y, pageSize.x - margins.left - margins.right, pageSize.y - margins.top - margins.bottom); g.clipRect(clip); //should be from printer and screen ratio and image size getDiagramEditPart().getLayer(LayerConstants.PRINTABLE_LAYERS).paint(g); g.popState(); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/adc1102179d667e4a670bfc5711892726a23a343/PrintPreviewHelper.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.printing/src/org/eclipse/gmf/runtime/diagram/ui/printing/internal/printpreview/PrintPreviewHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3724,
1964,
12,
17558,
314,
16,
15085,
8859,
16,
1431,
3159,
16,
509,
1027,
16,
509,
645,
16,
3460,
28528,
24889,
13,
288,
202,
202,
3341,
18,
20416,
18,
9446,
22,
72,
18,
14330,
18,
2148,
13387,
273,
3460,
966,
2276,
202,
202,
18,
588,
24035,
12,
588,
9624,
2257,
9334,
629,
1769,
9506,
202,
75,
18,
6206,
1119,
5621,
202,
202,
19463,
4972,
273,
22107,
5621,
202,
202,
474,
4204,
60,
273,
261,
474,
13,
261,
20,
74,
9506,
202,
17,
4972,
18,
92,
9506,
202,
14,
3159,
9506,
202,
15,
14015,
5659,
13,
12831,
9226,
3380,
1435,
6862,
202,
14,
13387,
18,
92,
300,
4972,
18,
2819,
13,
9506,
202,
14,
3159,
342,
576,
74,
9506,
202,
17,
261,
12443,
5659,
13,
13387,
18,
92,
13,
9506,
202,
14,
14015,
5659,
13,
261,
1293,
397,
729,
60,
3719,
380,
3159,
13,
3631,
202,
202,
13929,
61,
273,
261,
474,
13,
261,
20,
74,
9506,
202,
17,
4972,
18,
93,
9506,
202,
14,
3159,
9506,
202,
15,
14015,
5659,
13,
12831,
9226,
4300,
1435,
6862,
202,
14,
13387,
18,
93,
300,
4972,
18,
4210,
13,
9506,
202,
14,
3159,
342,
576,
74,
9506,
202,
17,
261,
12443,
5659,
13,
13387,
18,
93,
13,
9506,
202,
14,
14015,
5659,
13,
261,
492,
397,
729,
61,
3719,
380,
3159,
10019,
25083,
202,
759,
3348,
635,
1363,
898,
7837,
4972,
16,
1508,
1384,
635,
326,
1027,
578,
1057,
732,
4565,
622,
16,
471,
1508,
4862,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
1964,
12,
17558,
314,
16,
15085,
8859,
16,
1431,
3159,
16,
509,
1027,
16,
509,
645,
16,
3460,
28528,
24889,
13,
288,
202,
202,
3341,
18,
20416,
18,
9446,
22,
72,
18,
14330,
18,
2148,
13387,
273,
3460,
966,
2276,
202,
202,
18,
588,
24035,
12,
588,
9624,
2257,
9334,
629,
1769,
9506,
202,
75,
18,
6206,
1119,
5621,
202,
202,
19463,
4972,
273,
22107,
5621,
202,
202,
474,
4204,
60,
273,
261,
474,
13,
261,
20,
74,
9506,
202,
17,
4972,
18,
92,
9506,
202,
14,
3159,
9506,
202,
15,
14015,
5659,
13,
12831,
9226,
3380,
1435,
6862,
202,
14,
13387,
18,
92,
300,
4972,
18,
2819,
13,
9506,
202,
14,
3159,
342,
2
] |
public static Queryable select(Query query, Node currentNode, Queryable items) throws OperationException { | public static Queryable select( Query query, Node startNode, Node endNode, Queryable items ) throws OperationException { final boolean debug = false; if(debug) System.out.println("Executing at " + startNode + " with " + items); if(items.size() == 0) { if(debug) System.out.println("No items to process. Returning empty set"); return items; } | public static Queryable select(Query query, Node currentNode, Queryable items) throws OperationException { Queryable selected; if(currentNode instanceof ResultNode) { selected = items; } else { selected = new Queryable.Empty(items.getQueryClass()); } Iterator ai = query.getArcsFrom(currentNode).iterator(); while(ai.hasNext()) { Arc arc = (Arc) ai.next(); Iterator oi = query.getOperations(arc).iterator(); while(oi.hasNext()) { Operation op = (Operation) oi.next(); Queryable res; try { res = op.apply(items); } catch (OperationException oe) { throw new OperationException(oe, "Failed to execute " + arc + " " + op); } catch (ClassCastException cce) { throw new OperationException(cce, "Failed to execute " + arc + " " + op); } selected = QueryTools.union(selected, select(query, arc.to, res)); } } return selected; } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/16e211b30f2de853621b0c083c1e7d659c54cfd1/QueryTools.java/buggy/src/org/biojava/utils/query/QueryTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2770,
429,
2027,
12,
1138,
843,
16,
2029,
13425,
16,
2770,
429,
1516,
13,
225,
1216,
4189,
503,
288,
565,
2770,
429,
3170,
31,
565,
309,
12,
2972,
907,
1276,
3438,
907,
13,
288,
1377,
3170,
273,
1516,
31,
565,
289,
469,
288,
1377,
3170,
273,
394,
2770,
429,
18,
1921,
12,
3319,
18,
588,
1138,
797,
10663,
565,
289,
3639,
4498,
14679,
273,
843,
18,
588,
686,
2143,
1265,
12,
2972,
907,
2934,
9838,
5621,
565,
1323,
12,
10658,
18,
5332,
2134,
10756,
288,
1377,
24881,
8028,
273,
261,
14598,
13,
14679,
18,
4285,
5621,
1377,
4498,
24971,
273,
843,
18,
588,
9343,
12,
11828,
2934,
9838,
5621,
1377,
1323,
12,
11359,
18,
5332,
2134,
10756,
288,
3639,
4189,
1061,
273,
261,
2988,
13,
24971,
18,
4285,
5621,
3639,
2770,
429,
400,
31,
3639,
775,
288,
1850,
400,
273,
1061,
18,
9010,
12,
3319,
1769,
3639,
289,
1044,
261,
10602,
320,
73,
13,
288,
1850,
604,
394,
4189,
503,
12,
15548,
16,
315,
2925,
358,
1836,
315,
397,
8028,
397,
315,
315,
397,
1061,
1769,
3639,
289,
1044,
261,
797,
22768,
276,
311,
13,
288,
1850,
604,
394,
4189,
503,
12,
71,
311,
16,
315,
2925,
358,
1836,
315,
397,
8028,
397,
315,
315,
397,
1061,
1769,
3639,
289,
3639,
3170,
273,
2770,
10348,
18,
18910,
12,
8109,
16,
2027,
12,
2271,
16,
8028,
18,
869,
16,
400,
10019,
1377,
289,
565,
289,
3639,
327,
3170,
31,
225,
289,
2,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2770,
429,
2027,
12,
1138,
843,
16,
2029,
13425,
16,
2770,
429,
1516,
13,
225,
1216,
4189,
503,
288,
565,
2770,
429,
3170,
31,
565,
309,
12,
2972,
907,
1276,
3438,
907,
13,
288,
1377,
3170,
273,
1516,
31,
565,
289,
469,
288,
1377,
3170,
273,
394,
2770,
429,
18,
1921,
12,
3319,
18,
588,
1138,
797,
10663,
565,
289,
3639,
4498,
14679,
273,
843,
18,
588,
686,
2143,
1265,
12,
2972,
907,
2934,
9838,
5621,
565,
1323,
12,
10658,
18,
5332,
2134,
10756,
288,
1377,
24881,
8028,
273,
261,
14598,
13,
14679,
18,
4285,
5621,
1377,
4498,
24971,
273,
843,
18,
588,
9343,
12,
11828,
2934,
9838,
5621,
1377,
1323,
12,
11359,
18,
5332,
2134,
2
] |
{ return null; } | { return null; } | public Adapter createChartPreferencesAdapter() { return null; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/bdab78403751f288b76844a99f50b999c34fb491/ComponentAdapterFactory.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/util/ComponentAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14238,
752,
7984,
12377,
4216,
1435,
565,
288,
3639,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14238,
752,
7984,
12377,
4216,
1435,
565,
288,
3639,
327,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ return new DefaultDivExpr( lhs, rhs ); } | { return new DefaultDivExpr( lhs, rhs ); } | public BinaryExpr createMultiplicativeExpr(Expr lhs, Expr rhs, int multiplicativeOperator) throws JaxenException { switch ( multiplicativeOperator ) { case MULTIPLY: { return new DefaultMultiplyExpr( lhs, rhs ); } case DIV: { return new DefaultDivExpr( lhs, rhs ); } case MOD: { return new DefaultModExpr( lhs, rhs ); } } throw new JaxenException( "Unhandled operator in createMultiplicativeExpr(): " + multiplicativeOperator ); } | 47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/a606244b1948c4585839126f02bfc0d4958ec2f1/DefaultXPathFactory.java/buggy/src/java/main/org/jaxen/expr/DefaultXPathFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7896,
4742,
752,
5002,
28884,
4742,
12,
4742,
8499,
16,
4766,
9079,
8074,
7711,
16,
4766,
9079,
509,
3309,
28884,
5592,
13,
1216,
25824,
275,
503,
565,
288,
3639,
1620,
261,
3309,
28884,
5592,
262,
3639,
288,
5411,
648,
31385,
7076,
30,
5411,
288,
7734,
327,
394,
2989,
26040,
4742,
12,
8499,
16,
4766,
7734,
7711,
11272,
5411,
289,
5411,
648,
27355,
30,
5411,
288,
7734,
327,
394,
2989,
7244,
4742,
12,
8499,
16,
4766,
6647,
7711,
11272,
5411,
289,
5411,
648,
8663,
30,
5411,
288,
7734,
327,
394,
2989,
1739,
4742,
12,
8499,
16,
4766,
6647,
7711,
11272,
5411,
289,
3639,
289,
3639,
604,
394,
25824,
275,
503,
12,
315,
26952,
3726,
316,
752,
5002,
28884,
4742,
13332,
315,
397,
3309,
28884,
5592,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
7896,
4742,
752,
5002,
28884,
4742,
12,
4742,
8499,
16,
4766,
9079,
8074,
7711,
16,
4766,
9079,
509,
3309,
28884,
5592,
13,
1216,
25824,
275,
503,
565,
288,
3639,
1620,
261,
3309,
28884,
5592,
262,
3639,
288,
5411,
648,
31385,
7076,
30,
5411,
288,
7734,
327,
394,
2989,
26040,
4742,
12,
8499,
16,
4766,
7734,
7711,
11272,
5411,
289,
5411,
648,
27355,
30,
5411,
288,
7734,
327,
394,
2989,
7244,
4742,
12,
8499,
16,
4766,
6647,
7711,
11272,
5411,
289,
5411,
648,
8663,
30,
5411,
288,
7734,
327,
394,
2989,
1739,
4742,
12,
8499,
16,
4766,
6647,
7711,
11272,
5411,
289,
3639,
289,
3639,
604,
394,
25824,
275,
503,
12,
315,
26952,
3726,
316,
752,
5002,
28884,
2
] |
else if ( curElevation > nextElevation + 1 ) { | else if ( curAltitude > nextAltitude + 1 ) { | 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); addReport(r); Coords pos = entity.getPosition(); int fleeDirection; if (pos.x == 0) { fleeDirection = IOffBoardDirections.WEST; } else if (pos.y == 0) { fleeDirection = IOffBoardDirections.SOUTH; } else if (pos.x == game.getBoard().getWidth()) { fleeDirection = IOffBoardDirections.EAST; } else { fleeDirection = IOffBoardDirections.NORTH; } // 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); addReport(r); passenger.setRetreatedDirection(fleeDirection); 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; } else { mw.setRetreatedDirection(fleeDirection); } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); r.addDesc(mw); r.indent(); addReport(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); addReport(r); game.removeEntity( swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED) ); } entity.setRetreatedDirection(fleeDirection); 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); addReport(r); } else if (entity instanceof Tank) { r = new Report(2025); r.subject = entity.getId(); r.addDesc(entity); addReport(r); } addReport( 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(); Vector vReport = new Vector(); if (((Mech)entity).checkForMASCFailure(md, vReport, crits)) { addReport(vReport); 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; } //check for dig in or fortify if(entity instanceof Infantry) { Infantry inf = (Infantry)entity; if(step.getType() == MovePath.STEP_DIG_IN) { inf.setDugIn(Infantry.DUG_IN_WORKING); continue; } else if(step.getType() == MovePath.STEP_FORTIFY) { if(!entity.hasWorkingMisc(MiscType.F_TOOLS, MiscType.S_VIBROSHOVEL)) { sendServerChat(entity.getDisplayName() + " failed to fortify because it is missing suitable equipment"); } inf.setDugIn(Infantry.DUG_IN_FORTIFYING1); continue; } else if(step.getType() != MovePath.STEP_TURN_LEFT && step.getType() != MovePath.STEP_TURN_RIGHT) { //other movement clears dug in status inf.setDugIn(Infantry.DUG_IN_NONE); } } // set last step parameters curPos = step.getPosition(); if(moveType != IEntityMovementType.MOVE_JUMP || entity.getJumpType() != Mech.JUMP_BOOSTER) curFacing = step.getFacing(); //check if a building PSR will be needed later, before setting the new elevation int buildingMove = entity.checkMovementInBuilding(step, prevStep, curPos, lastPos); 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); addReport(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(); addReport(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); addReport(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); addReport(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; addReport(r); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; r = new Report(2055); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; addReport(r); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { r = new Report(2060); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; addReport(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; addReport(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(); addReport(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(); addNewLines(); } } // 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; addReport(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. addReport( damageEntity(target, hit, Math.round(entity.getWeight()/5))); addNewLines(); } // 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); addReport(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(); addReport(buildingReport); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, entity.sideTable(nextPos) ); addReport( damageEntity( entity, hit, toAttacker )); addNewLines(); 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; 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(); addReport(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, isPavementStep); 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); addReport(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; addReport(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); addReport(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); addReport( damageEntity(entity, hit, cluster)); damage -= cluster; } addNewLines(); } // 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(); addReport(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); addReport(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); addReport(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(); addReport(r); } // Stay in the current hex and stop skidding. break; } IHex hex = game.getBoard().getHex(newPos); int terrainLevel = hex.ceiling() - hex.surface(); int newElevation=entity.calcElevation(game.getBoard().getHex(curPos), game.getBoard().getHex(newPos), curVTOLElevation, step.climbMode()); if(newElevation<=terrainLevel) { r = new Report(2105); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); addReport(r); int hitSide=curFacing-prevFacing+6; 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; addReport(crashVTOL((VTOL) entity,true,distance,curPos,curVTOLElevation,table)); if(hex.containsTerrain(Terrains.WATER) && !hex.containsTerrain(Terrains.ICE) || hex.containsTerrain(Terrains.WOODS) || hex.containsTerrain(Terrains.JUNGLE)) { addReport(destroyEntity(entity,"could not land in crash site")); } else if(newElevation < hex.terrainLevel(Terrains.BLDG_ELEV)){ addReport(destroyEntity(entity, "crashed into building")); } } else { r = new Report(2110); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); addReport(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(); addReport(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, isPavementStep); 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(); addReport(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); addReport(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); addReport(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); addReport(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(); addReport(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); addReport(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.isLoadableThisTurn() ) { // 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. 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 ( !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. 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" ); 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" ); 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" ); addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else if (bldgExited != null){ collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); addAffectedBldg( bldgExited, collapsed ); } } //stepping on roof, no PSR just check for over weight if(bldgStepped != null) { collapsed = checkBuildingCollapseWhileMoving(bldgStepped, entity, curPos); 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(); addReport(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(); addReport(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(); addReport(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(); addReport(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 (Mounted mount : swarmer.getMisc()) { 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); addReport(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); addReport(r); } else { // Dislodged swarmers don't get turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Update the report and the swarmer's status. r.choose(true); addReport(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); addReport(r); addReport( 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); addReport(r); addReport(damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11)); addNewLines(); 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); addReport(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)); } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/6ead5991edd04390177c94f912d7675143aea3d6/Server.java/clean/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,
3639,
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,
10320,
87,
949,
273,
1522,
18,
588,
2555,
5621,
5411,
509,
284,
11182,
8212,
31,
5411,
309,
261,
917,
18,
92,
422,
374,
13,
288,
7734,
284,
11182,
8212,
273,
467,
7210,
22233,
8212,
87,
18,
31285,
31,
5411,
289,
469,
309,
261,
917,
18,
93,
422,
374,
13,
288,
7734,
284,
11182,
8212,
273,
467,
7210,
22233,
8212,
87,
18,
3584,
5844,
31,
5411,
289,
469,
309,
261,
917,
18,
92,
422,
7920,
18,
588,
22233,
7675,
588,
2384,
10756,
288,
7734,
284,
11182,
8212,
273,
467,
7210,
22233,
8212,
87,
18,
41,
9053,
31,
5411,
289,
469,
288,
7734,
284,
11182,
8212,
273,
467,
7210,
22233,
8212,
87,
18,
50,
28212,
31,
5411,
289,
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,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
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,
10320,
87,
949,
273,
1522,
18,
588,
2555,
5621,
5411,
509,
284,
11182,
8212,
31,
5411,
309,
261,
917,
18,
92,
2
] |
final HtmlPage firstPage = ( HtmlPage )webClient.getPage( URL_FIRST, SubmitMethod.POST, Collections.EMPTY_LIST ); | final HtmlPage firstPage = ( HtmlPage )webClient.getPage(URL_FIRST); | public void testConfirm_noConfirmHandler() throws Exception { final WebClient webClient = new WebClient(); final MockWebConnection webConnection = new MockWebConnection( webClient ); final List collectedAlerts = new ArrayList(); final List collectedConfirms = new ArrayList(); webClient.setAlertHandler(new CollectingAlertHandler(collectedAlerts)); final String firstContent = "<html><head><title>First</title><script>function doTest(){alert(confirm('foo'))}</script>" + "</head><body onload='doTest()'></body></html>"; webConnection.setResponse( URL_FIRST, firstContent, 200, "OK", "text/html", Collections.EMPTY_LIST ); webClient.setWebConnection( webConnection ); getLog().warn("Warning for no confirm handler expected next"); final HtmlPage firstPage = ( HtmlPage )webClient.getPage( URL_FIRST, SubmitMethod.POST, Collections.EMPTY_LIST ); assertEquals( "First", firstPage.getTitleText() ); assertEquals( Collections.EMPTY_LIST, collectedConfirms ); assertEquals( Collections.singletonList("false"), collectedAlerts ); } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/429ab9b3f74495494a904bb8f0f080fb6c368809/WindowTest.java/clean/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/WindowTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11269,
67,
2135,
11269,
1503,
1435,
1216,
1185,
288,
3639,
727,
2999,
1227,
3311,
1227,
273,
394,
2999,
1227,
5621,
3639,
727,
7867,
4079,
1952,
3311,
1952,
273,
394,
7867,
4079,
1952,
12,
3311,
1227,
11272,
3639,
727,
987,
12230,
37,
29729,
273,
394,
2407,
5621,
3639,
727,
987,
12230,
3976,
481,
959,
273,
394,
2407,
5621,
3639,
3311,
1227,
18,
542,
13298,
1503,
12,
2704,
9302,
310,
13298,
1503,
12,
14676,
329,
37,
29729,
10019,
3639,
727,
514,
1122,
1350,
5411,
273,
3532,
2620,
4438,
1978,
4438,
2649,
34,
3759,
1757,
2649,
4438,
4263,
34,
915,
741,
4709,
1435,
95,
11798,
12,
10927,
2668,
11351,
26112,
12863,
4263,
2984,
5411,
397,
6823,
1978,
4438,
3432,
23609,
2218,
2896,
4709,
11866,
4695,
3432,
4695,
2620,
2984,
31,
3639,
3311,
1952,
18,
542,
1064,
12,
5411,
1976,
67,
15354,
16,
1122,
1350,
16,
4044,
16,
315,
3141,
3113,
315,
955,
19,
2620,
3113,
5737,
18,
13625,
67,
7085,
11272,
3639,
3311,
1227,
18,
542,
4079,
1952,
12,
3311,
1952,
11272,
3639,
9189,
7675,
8935,
2932,
6210,
364,
1158,
6932,
1838,
2665,
1024,
8863,
3639,
727,
5430,
1964,
1122,
1964,
273,
261,
5430,
1964,
262,
4875,
1227,
18,
588,
1964,
12,
7734,
1976,
67,
15354,
16,
17320,
1305,
18,
3798,
16,
5737,
18,
13625,
67,
7085,
11272,
3639,
1815,
8867,
12,
315,
3759,
3113,
1122,
1964,
18,
588,
4247,
1528,
1435,
11272,
3639,
1815,
8867,
12,
5737,
18,
13625,
67,
7085,
16,
12230,
3976,
481,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11269,
67,
2135,
11269,
1503,
1435,
1216,
1185,
288,
3639,
727,
2999,
1227,
3311,
1227,
273,
394,
2999,
1227,
5621,
3639,
727,
7867,
4079,
1952,
3311,
1952,
273,
394,
7867,
4079,
1952,
12,
3311,
1227,
11272,
3639,
727,
987,
12230,
37,
29729,
273,
394,
2407,
5621,
3639,
727,
987,
12230,
3976,
481,
959,
273,
394,
2407,
5621,
3639,
3311,
1227,
18,
542,
13298,
1503,
12,
2704,
9302,
310,
13298,
1503,
12,
14676,
329,
37,
29729,
10019,
3639,
727,
514,
1122,
1350,
5411,
273,
3532,
2620,
4438,
1978,
4438,
2649,
34,
3759,
1757,
2649,
4438,
4263,
34,
915,
741,
4709,
1435,
95,
11798,
12,
10927,
2668,
11351,
26112,
12863,
4263,
2984,
5411,
397,
6823,
1978,
4438,
2
] |
Collections.sort(resultModel,new ResultCompare()); | public void actionPerformed(ActionEvent evt) { final HelpIndex index = getHelpIndex(); if(index == null) return; results.setListData(new String[] { jEdit.getProperty( "helpviewer.searching") }); final String text = searchField.getText(); final Vector resultModel = new Vector(); VFSManager.runInWorkThread(new Runnable() { public void run() { StringTokenizer st = new StringTokenizer(text,",.;:- "); // we later use this to compute a relative ranking int maxRank = 0; while(st.hasMoreTokens()) { String word = st.nextToken().toLowerCase(); HelpIndex.Word lookup = index.lookupWord(word); if(lookup == null) continue; for(int i = 0; i < lookup.occurCount; i++) { HelpIndex.Word.Occurrence occur = lookup.occurrences[i]; boolean ok = false; HelpIndex.HelpFile file = index.getFile(occur.file); for(int j = 0; j < resultModel.size(); j++) { Result result = (Result)resultModel.elementAt(j); if(result.file.equals(file.file)) { result.rank += occur.count; result.rank += 30; // multiple files w/ word bonus maxRank = Math.max(result.rank,maxRank); ok = true; break; } } if(!ok) { maxRank = Math.max(occur.count,maxRank); resultModel.addElement(new Result(file,occur.count)); } } } Collections.sort(resultModel,new ResultCompare()); if(maxRank != 0) { // turn the rankings into relative rankings, from 1 to 4 for(int i = 0; i < resultModel.size(); i++) { Result result = (Result)resultModel.elementAt(i); result.rank = (int)Math.ceil((double)result.rank * 4 / maxRank); } } } }); VFSManager.runInAWTThread(new Runnable() { public void run() { if(resultModel.size() == 0) { results.setListData(new String[] { jEdit.getProperty( "helpviewer.no-results") }); getToolkit().beep(); } else results.setListData(resultModel); } }); } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/734a31ecba33db08edeb9dfec4b764642b595c7d/HelpSearchPanel.java/clean/org/gjt/sp/jedit/help/HelpSearchPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
6385,
11288,
1016,
770,
273,
336,
6696,
1016,
5621,
1082,
202,
430,
12,
1615,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
4717,
18,
542,
682,
751,
12,
2704,
514,
8526,
288,
525,
4666,
18,
588,
1396,
12,
9506,
202,
6,
5201,
25256,
18,
3072,
310,
7923,
15549,
1082,
202,
6385,
514,
977,
273,
1623,
974,
18,
588,
1528,
5621,
1082,
202,
6385,
5589,
563,
1488,
273,
394,
5589,
5621,
1082,
202,
58,
4931,
1318,
18,
2681,
382,
2421,
3830,
12,
2704,
10254,
1435,
1082,
202,
95,
9506,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
780,
10524,
384,
273,
394,
16370,
12,
955,
16,
3113,
18,
31,
30,
17,
315,
1769,
6862,
202,
759,
732,
5137,
999,
333,
358,
3671,
279,
3632,
23087,
6862,
202,
474,
943,
12925,
273,
374,
31,
6862,
202,
17523,
12,
334,
18,
5332,
7417,
5157,
10756,
6862,
202,
95,
25083,
202,
780,
2076,
273,
384,
18,
4285,
1345,
7675,
869,
5630,
5621,
25083,
202,
6696,
1016,
18,
3944,
3689,
273,
770,
18,
8664,
3944,
12,
1095,
1769,
25083,
202,
430,
12,
8664,
422,
446,
13,
6862,
1082,
202,
17143,
31,
25083,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
3689,
18,
26635,
1380,
31,
277,
27245,
25083,
202,
95,
6862,
1082,
202,
6696,
1016,
18,
3944,
18,
24267,
3334,
273,
3689,
18,
26635,
12228,
63,
77,
15533,
6862,
1082,
202,
6494,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
6385,
11288,
1016,
770,
273,
336,
6696,
1016,
5621,
1082,
202,
430,
12,
1615,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
4717,
18,
542,
682,
751,
12,
2704,
514,
8526,
288,
525,
4666,
18,
588,
1396,
12,
9506,
202,
6,
5201,
25256,
18,
3072,
310,
7923,
15549,
1082,
202,
6385,
514,
977,
273,
1623,
974,
18,
588,
1528,
5621,
1082,
202,
6385,
5589,
563,
1488,
273,
394,
5589,
5621,
1082,
202,
58,
4931,
1318,
18,
2681,
382,
2421,
3830,
12,
2704,
10254,
1435,
1082,
202,
95,
9506,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
780,
10524,
384,
273,
394,
2
] |
|
String debugOptionsFilename = System.getProperty("osgi.debug"); | String debugOptionsFilename = FrameworkProperties.getProperty("osgi.debug"); | private void loadOptions() { // if no debug option was specified, don't even bother to try. // Must ensure that the options slot is null as this is the signal to the // platform that debugging is not enabled. String debugOptionsFilename = System.getProperty("osgi.debug"); //$NON-NLS-1$ if (debugOptionsFilename == null) return; options = new Properties(); URL optionsFile; if (debugOptionsFilename.length() == 0) { // default options location is user.dir (install location may be r/o so // is not a good candidate for a trace options that need to be updatable by // by the user) String userDir = System.getProperty("user.dir").replace(File.separatorChar, '/'); //$NON-NLS-1$ if (!userDir.endsWith("/")) //$NON-NLS-1$ userDir += "/"; //$NON-NLS-1$ debugOptionsFilename = new File(userDir, OPTIONS).toString(); } optionsFile = buildURL(debugOptionsFilename, false); if (optionsFile == null) { System.out.println("Unable to construct URL for options file: " + debugOptionsFilename); //$NON-NLS-1$ return; } System.out.print("Debug options:\n " + optionsFile.toExternalForm()); //$NON-NLS-1$ try { InputStream input = optionsFile.openStream(); try { options.load(input); System.out.println(" loaded"); //$NON-NLS-1$ } finally { input.close(); } } catch (FileNotFoundException e) { System.out.println(" not found"); //$NON-NLS-1$ } catch (IOException e) { System.out.println(" did not parse"); //$NON-NLS-1$ e.printStackTrace(System.out); } // trim off all the blanks since properties files don't do that. for (Iterator i = options.keySet().iterator(); i.hasNext();) { Object key = i.next(); options.put(key, ((String) options.get(key)).trim()); } if (options.size() == 0) options = null; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/795e339493dd76d146d62fd4fd2526e831c650bd/FrameworkDebugOptions.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/debug/FrameworkDebugOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
1320,
1435,
288,
202,
202,
759,
309,
1158,
1198,
1456,
1703,
1269,
16,
2727,
1404,
5456,
23440,
358,
775,
18,
202,
202,
759,
6753,
3387,
716,
326,
702,
4694,
353,
446,
487,
333,
353,
326,
4277,
358,
326,
202,
202,
759,
4072,
716,
10450,
353,
486,
3696,
18,
202,
202,
780,
1198,
1320,
5359,
273,
13472,
2297,
18,
588,
1396,
2932,
538,
10052,
18,
4148,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
4148,
1320,
5359,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
2116,
273,
394,
6183,
5621,
202,
202,
1785,
702,
812,
31,
202,
202,
430,
261,
4148,
1320,
5359,
18,
2469,
1435,
422,
374,
13,
288,
1082,
202,
759,
805,
702,
2117,
353,
729,
18,
1214,
261,
5425,
2117,
2026,
506,
436,
19,
83,
1427,
1082,
202,
759,
353,
486,
279,
7494,
5500,
364,
279,
2606,
702,
716,
1608,
358,
506,
2166,
8163,
635,
1082,
202,
759,
635,
326,
729,
13,
1082,
202,
780,
729,
1621,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
20387,
2079,
12,
812,
18,
11287,
2156,
16,
2023,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
430,
16051,
1355,
1621,
18,
5839,
1190,
2932,
4898,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1355,
1621,
1011,
4016,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
4148,
1320,
5359,
273,
394,
1387,
12,
1355,
1621,
16,
16726,
2934,
10492,
5621,
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,
225,
202,
1152,
918,
1262,
1320,
1435,
288,
202,
202,
759,
309,
1158,
1198,
1456,
1703,
1269,
16,
2727,
1404,
5456,
23440,
358,
775,
18,
202,
202,
759,
6753,
3387,
716,
326,
702,
4694,
353,
446,
487,
333,
353,
326,
4277,
358,
326,
202,
202,
759,
4072,
716,
10450,
353,
486,
3696,
18,
202,
202,
780,
1198,
1320,
5359,
273,
13472,
2297,
18,
588,
1396,
2932,
538,
10052,
18,
4148,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
4148,
1320,
5359,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
2116,
273,
394,
6183,
5621,
202,
202,
1785,
702,
812,
31,
202,
202,
430,
261,
4148,
1320,
5359,
18,
2469,
1435,
422,
374,
13,
288,
2
] |
if ( aa.getTargetType() != Targetable.TYPE_HEX_ARTILLERY && aa.getTargetType() != Targetable.TYPE_HEX_FASCAM && aa.getTargetType() != Targetable.TYPE_HEX_INFERNO_IV && aa.getTargetType() != Targetable.TYPE_HEX_VIBRABOMB_IV) { | if ( aa.getTargetType() != Targetable.TYPE_HEX_ARTILLERY) { | public void addAttack(AttackAction aa) { // do not make a sprite unless we're aware of both entities // this is not a great solution but better than a crash Entity ae = game.getEntity(aa.getEntityId()); Targetable t = game.getTarget(aa.getTargetType(), aa.getTargetId()); if (ae == null || t == null || t.getTargetType() == Targetable.TYPE_INARC_POD) { return; } for (final Iterator i = attackSprites.iterator(); i.hasNext();) { final AttackSprite sprite = (AttackSprite)i.next(); // can we just add this attack to an existing one? if (sprite.getEntityId() == aa.getEntityId() && sprite.getTargetId() == aa.getTargetId()) { // use existing attack, but add this weapon if (aa instanceof WeaponAttackAction) { WeaponAttackAction waa = (WeaponAttackAction)aa; if ( aa.getTargetType() != Targetable.TYPE_HEX_ARTILLERY && aa.getTargetType() != Targetable.TYPE_HEX_FASCAM && aa.getTargetType() != Targetable.TYPE_HEX_INFERNO_IV && aa.getTargetType() != Targetable.TYPE_HEX_VIBRABOMB_IV) { sprite.addWeapon(waa); } else if ( waa.getEntity(game).getOwner().getId() == localPlayer.getId()) { sprite.addWeapon(waa); } } if (aa instanceof KickAttackAction) { sprite.addWeapon((KickAttackAction)aa); } if (aa instanceof PunchAttackAction) { sprite.addWeapon((PunchAttackAction)aa); } if (aa instanceof PushAttackAction) { sprite.addWeapon((PushAttackAction)aa); } if (aa instanceof ClubAttackAction) { sprite.addWeapon((ClubAttackAction)aa); } if (aa instanceof ChargeAttackAction) { sprite.addWeapon((ChargeAttackAction)aa); } if (aa instanceof DfaAttackAction) { sprite.addWeapon((DfaAttackAction)aa); } if (aa instanceof ProtomechPhysicalAttackAction) { sprite.addWeapon((ProtomechPhysicalAttackAction)aa); } if (aa instanceof SearchlightAttackAction) { sprite.addWeapon((SearchlightAttackAction)aa); } return; } } // no re-use possible, add a new one // don't add a sprite for an artillery attack made by the other player if (aa instanceof WeaponAttackAction) { WeaponAttackAction waa = (WeaponAttackAction)aa; if ( aa.getTargetType() != Targetable.TYPE_HEX_ARTILLERY && aa.getTargetType() != Targetable.TYPE_HEX_FASCAM && aa.getTargetType() != Targetable.TYPE_HEX_INFERNO_IV && aa.getTargetType() != Targetable.TYPE_HEX_VIBRABOMB_IV) { attackSprites.addElement(new AttackSprite(aa)); } else if ( waa.getEntity(game).getOwner().getId() == localPlayer.getId()) { attackSprites.addElement(new AttackSprite(aa)); } } else { attackSprites.addElement(new AttackSprite(aa)); } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/6f2413930442513a555250cb91696d0c5883c419/BoardView1.java/clean/megamek/src/megamek/client/ui/AWT/BoardView1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3075,
484,
12,
3075,
484,
1803,
12391,
13,
288,
3639,
368,
741,
486,
1221,
279,
16839,
3308,
732,
4565,
18999,
434,
3937,
5140,
3639,
368,
333,
353,
486,
279,
18825,
6959,
1496,
7844,
2353,
279,
17053,
3639,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
7598,
18,
588,
18029,
10663,
3639,
5916,
429,
268,
273,
7920,
18,
588,
2326,
12,
7598,
18,
588,
2326,
559,
9334,
12391,
18,
588,
2326,
548,
10663,
3639,
309,
261,
8906,
422,
446,
747,
268,
422,
446,
747,
268,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
706,
27206,
67,
52,
1212,
13,
288,
5411,
327,
31,
3639,
289,
3639,
364,
261,
6385,
4498,
277,
273,
13843,
3389,
24047,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
727,
6020,
484,
3389,
796,
16839,
273,
261,
3075,
484,
3389,
796,
13,
77,
18,
4285,
5621,
5411,
368,
848,
732,
2537,
527,
333,
13843,
358,
392,
2062,
1245,
35,
5411,
309,
261,
1752,
796,
18,
588,
18029,
1435,
422,
12391,
18,
588,
18029,
1435,
7734,
597,
16839,
18,
588,
2326,
548,
1435,
422,
12391,
18,
588,
2326,
548,
10756,
288,
7734,
368,
999,
2062,
13843,
16,
1496,
527,
333,
732,
28629,
7734,
309,
261,
7598,
1276,
1660,
28629,
3075,
484,
1803,
13,
288,
10792,
1660,
28629,
3075,
484,
1803,
341,
7598,
273,
261,
3218,
28629,
3075,
484,
1803,
13,
7598,
31,
10792,
309,
261,
12391,
18,
588,
2326,
559,
1435,
480,
5916,
429,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3075,
484,
12,
3075,
484,
1803,
12391,
13,
288,
3639,
368,
741,
486,
1221,
279,
16839,
3308,
732,
4565,
18999,
434,
3937,
5140,
3639,
368,
333,
353,
486,
279,
18825,
6959,
1496,
7844,
2353,
279,
17053,
3639,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
7598,
18,
588,
18029,
10663,
3639,
5916,
429,
268,
273,
7920,
18,
588,
2326,
12,
7598,
18,
588,
2326,
559,
9334,
12391,
18,
588,
2326,
548,
10663,
3639,
309,
261,
8906,
422,
446,
747,
268,
422,
446,
747,
268,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
706,
27206,
67,
52,
1212,
13,
288,
5411,
327,
31,
3639,
289,
3639,
364,
261,
6385,
4498,
277,
273,
13843,
2
] |
} else { try { Thread.sleep(10); } catch (InterruptedException e) { } | public void run() { try { // read from the Mic // feed the VU meter // if recording, store in pcm file while (isOpen) { if( microphone.hasMoreData() ) { Data data = microphone.getData(); vuMeter.calculateVULevels(data); writeData(data); } else { try { Thread.sleep(10); } catch (InterruptedException e) { } } } } catch (DataProcessingException e) { throw new Error(e); } catch (IOException e) { throw new Error(e); } } | 48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/5ff17f8c971febc50ba6f3487f664625c3818490/Recorder.java/clean/tools/common/src/java/edu/cmu/sphinx/tools/audio/Recorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
855,
628,
326,
490,
335,
7734,
368,
4746,
326,
776,
57,
16565,
7734,
368,
309,
14949,
16,
1707,
316,
6125,
81,
585,
7734,
1323,
261,
291,
3678,
13,
288,
10792,
309,
12,
6481,
10540,
18,
5332,
7417,
751,
1435,
262,
288,
13491,
1910,
501,
273,
6481,
10540,
18,
588,
751,
5621,
13491,
331,
89,
16935,
18,
11162,
58,
1506,
73,
941,
87,
12,
892,
1769,
13491,
1045,
751,
12,
892,
1769,
10792,
289,
10792,
469,
288,
13491,
775,
288,
18701,
4884,
18,
19607,
12,
2163,
1769,
13491,
289,
1044,
261,
24485,
503,
425,
13,
288,
13491,
289,
10792,
289,
7734,
289,
5411,
289,
5411,
1044,
261,
751,
23684,
425,
13,
288,
7734,
604,
394,
1068,
12,
73,
1769,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
604,
394,
1068,
12,
73,
1769,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
855,
628,
326,
490,
335,
7734,
368,
4746,
326,
776,
57,
16565,
7734,
368,
309,
14949,
16,
1707,
316,
6125,
81,
585,
7734,
1323,
261,
291,
3678,
13,
288,
10792,
309,
12,
6481,
10540,
18,
5332,
7417,
751,
1435,
262,
288,
13491,
1910,
501,
273,
6481,
10540,
18,
588,
751,
5621,
13491,
331,
89,
16935,
18,
11162,
58,
1506,
73,
941,
87,
12,
892,
1769,
13491,
1045,
751,
12,
892,
1769,
10792,
289,
10792,
469,
288,
13491,
775,
288,
18701,
4884,
18,
19607,
12,
2163,
1769,
13491,
289,
1044,
261,
24485,
503,
425,
13,
288,
13491,
289,
10792,
289,
7734,
289,
5411,
289,
5411,
1044,
261,
751,
23684,
2
] |
|
return tv.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; | return tv.isConstant() ? DefUseEffect.MOVE_FOLDED : DefUseEffect.MOVE_REDUCED; | private static byte longCondMove(OPT_Instruction s) { { OPT_Operand val1 = CondMove.getVal1(s); OPT_Operand val2 = CondMove.getVal2(s); int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { // BOTH CONSTANTS OR SIMILAR: FOLD OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, LONG_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } if (val1.isConstant() && !val2.isConstant()) { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } OPT_Operand tv = CondMove.getTrueValue(s); OPT_Operand fv = CondMove.getFalseValue(s); if (tv.similar(fv)) { Move.mutate(s, LONG_MOVE, CondMove.getClearResult(s), tv); return tv.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } if (tv.isLongConstant() && fv.isLongConstant() && !CondMove.getCond(s).isFLOATINGPOINT()) { long itv = tv.asLongConstant().value; long ifv = fv.asLongConstant().value; OPT_Operator op = null; if(val1.isLong()) { op = BOOLEAN_CMP_LONG; } else if(val1.isFloat()) { op = BOOLEAN_CMP_FLOAT; } else if(val1.isDouble()) { op = BOOLEAN_CMP_DOUBLE; } else { op = BOOLEAN_CMP_INT; } if (itv == 1 && ifv == 0) { BooleanCmp.mutate(s, op, CondMove.getClearResult(s), CondMove.getClearVal1(s), CondMove.getClearVal2(s), CondMove.getClearCond(s), new OPT_BranchProfileOperand()); return REDUCED; } if (itv == 0 && ifv == 1) { BooleanCmp.mutate(s, op, CondMove.getClearResult(s), CondMove.getClearVal1(s), CondMove.getClearVal2(s), CondMove.getClearCond(s).flipCode(), new OPT_BranchProfileOperand()); return REDUCED; } } } return UNCHANGED; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4f52a59569c48e68010a63e605ee6691083a9e97/OPT_Simplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
1525,
12441,
7607,
12,
15620,
67,
11983,
272,
13,
288,
282,
288,
1377,
16456,
67,
10265,
1244,
21,
273,
735,
72,
7607,
18,
588,
3053,
21,
12,
87,
1769,
1377,
16456,
67,
10265,
1244,
22,
273,
735,
72,
7607,
18,
588,
3053,
22,
12,
87,
1769,
1377,
509,
6941,
273,
735,
72,
7607,
18,
588,
12441,
12,
87,
2934,
21024,
12,
1125,
21,
16,
1244,
22,
1769,
1377,
309,
261,
10013,
480,
16456,
67,
3418,
10265,
18,
14737,
13,
288,
3639,
368,
29370,
24023,
55,
4869,
31433,
2627,
985,
30,
478,
11846,
3639,
16456,
67,
10265,
1244,
273,
6647,
261,
10013,
422,
16456,
67,
3418,
10265,
18,
18724,
13,
692,
735,
72,
7607,
18,
588,
9094,
5510,
620,
12,
87,
13,
6647,
294,
735,
72,
7607,
18,
588,
9094,
8381,
620,
12,
87,
1769,
3639,
9933,
18,
10735,
340,
12,
87,
16,
14011,
67,
16537,
16,
735,
72,
7607,
18,
588,
9094,
1253,
12,
87,
3631,
1244,
1769,
3639,
327,
1244,
18,
291,
6902,
1435,
692,
16070,
3412,
67,
42,
1741,
7660,
294,
16070,
3412,
67,
5879,
57,
23552,
31,
1377,
289,
1377,
309,
261,
1125,
21,
18,
291,
6902,
1435,
597,
401,
1125,
22,
18,
291,
6902,
10756,
288,
3639,
368,
19413,
554,
635,
30882,
14883,
471,
284,
549,
1382,
981,
18,
3639,
16456,
67,
10265,
1853,
273,
735,
72,
7607,
18,
588,
9094,
3053,
21,
12,
87,
1769,
3639,
735,
72,
7607,
18,
542,
3053,
21,
12,
87,
16,
735,
72,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1160,
1525,
12441,
7607,
12,
15620,
67,
11983,
272,
13,
288,
282,
288,
1377,
16456,
67,
10265,
1244,
21,
273,
735,
72,
7607,
18,
588,
3053,
21,
12,
87,
1769,
1377,
16456,
67,
10265,
1244,
22,
273,
735,
72,
7607,
18,
588,
3053,
22,
12,
87,
1769,
1377,
509,
6941,
273,
735,
72,
7607,
18,
588,
12441,
12,
87,
2934,
21024,
12,
1125,
21,
16,
1244,
22,
1769,
1377,
309,
261,
10013,
480,
16456,
67,
3418,
10265,
18,
14737,
13,
288,
3639,
368,
29370,
24023,
55,
4869,
31433,
2627,
985,
30,
478,
11846,
3639,
16456,
67,
10265,
1244,
273,
6647,
261,
10013,
422,
16456,
67,
3418,
10265,
18,
18724,
13,
692,
735,
72,
7607,
18,
588,
2
] |
setFamily( family ); | public Os( final String family ) { setFamily( family ); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/3ddf07367d08d15d5298b81cc83b9c82060c2d0b/Os.java/clean/proposal/myrmidon/src/java/org/apache/myrmidon/framework/Os.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31799,
12,
727,
514,
6755,
262,
565,
288,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31799,
12,
727,
514,
6755,
262,
565,
288,
6647,
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
] |
|
window.getFastViewBar().update(true); | window.updateFastViewBar(); | private IViewPart busyShowView( String viewID, String secondaryID, int mode) throws PartInitException { Perspective persp = getActivePerspective(); if (persp == null) return null; // If this view is already visible just return. IViewReference ref = persp.findView(viewID, secondaryID); IViewPart view = null; if (ref != null) view = ref.getView(true); if (view != null) { if (mode == VIEW_ACTIVATE) activate(view); else if (mode == VIEW_VISIBLE) bringToTop(view); return view; } // Show the view. view = persp.showView(viewID, secondaryID); if (view != null) { zoomOutIfNecessary(view); if (mode == VIEW_ACTIVATE) activate(view); else if (mode == VIEW_VISIBLE) bringToTop(view); window.firePerspectiveChanged( this, getPerspective(), CHANGE_VIEW_SHOW); // Just in case view was fast. window.getFastViewBar().update(true); } return view; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7cb20e653b9445ef510b197ad64e7dccb0a3e8b2/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1767,
1988,
21697,
5706,
1767,
12,
1082,
202,
780,
1476,
734,
16,
1875,
202,
780,
9946,
734,
16,
1875,
202,
474,
1965,
13,
202,
202,
15069,
6393,
2570,
503,
288,
202,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
202,
430,
261,
10422,
84,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
971,
333,
1476,
353,
1818,
6021,
2537,
327,
18,
202,
202,
45,
1767,
2404,
1278,
273,
13508,
84,
18,
4720,
1767,
12,
1945,
734,
16,
9946,
734,
1769,
202,
202,
45,
1767,
1988,
1476,
273,
446,
31,
202,
202,
430,
261,
1734,
480,
446,
13,
1082,
202,
1945,
273,
1278,
18,
588,
1767,
12,
3767,
1769,
202,
202,
430,
261,
1945,
480,
446,
13,
288,
1082,
202,
430,
261,
3188,
422,
21794,
67,
22271,
1777,
13,
6862,
1082,
202,
10014,
12,
1945,
1769,
1082,
202,
12107,
309,
261,
3188,
422,
21794,
67,
29588,
13,
9506,
202,
2848,
310,
774,
3401,
12,
1945,
1769,
1082,
202,
2463,
1476,
31,
202,
202,
97,
202,
202,
759,
9674,
326,
1476,
18,
202,
202,
1945,
273,
13508,
84,
18,
4500,
1767,
12,
1945,
734,
16,
9946,
734,
1769,
202,
202,
430,
261,
1945,
480,
446,
13,
288,
1082,
202,
14932,
1182,
26034,
12,
1945,
1769,
1082,
202,
430,
261,
3188,
422,
21794,
67,
22271,
1777,
13,
6862,
1082,
202,
10014,
12,
1945,
1769,
1082,
202,
12107,
309,
261,
3188,
422,
21794,
67,
29588,
13,
9506,
202,
2848,
310,
774,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1767,
1988,
21697,
5706,
1767,
12,
1082,
202,
780,
1476,
734,
16,
1875,
202,
780,
9946,
734,
16,
1875,
202,
474,
1965,
13,
202,
202,
15069,
6393,
2570,
503,
288,
202,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
202,
430,
261,
10422,
84,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
971,
333,
1476,
353,
1818,
6021,
2537,
327,
18,
202,
202,
45,
1767,
2404,
1278,
273,
13508,
84,
18,
4720,
1767,
12,
1945,
734,
16,
9946,
734,
1769,
202,
202,
45,
1767,
1988,
1476,
273,
446,
31,
202,
202,
430,
261,
1734,
480,
446,
13,
1082,
202,
1945,
273,
1278,
18,
588,
1767,
12,
3767,
1769,
202,
2
] |
getLogger().debug("Reading SQL resources from file: " + sqlFile.getAbsolutePath() + ", section " + this.getClass().getName() + "."); | if (getLogger().isDebugEnabled()) { logBuffer = new StringBuffer(256) .append("Reading SQL resources from file: ") .append(sqlFile.getAbsolutePath()) .append(", section ") .append(this.getClass().getName()) .append("."); getLogger().debug(logBuffer.toString()); } | public void initialize() throws Exception { getLogger().debug( this.getClass().getName() + ".initialize()"); // Get the data-source required. m_datasource = (DataSourceComponent)m_datasources.select(m_datasourceName); // Test the connection to the database, by getting the DatabaseMetaData. Connection conn = openConnection(); try{ DatabaseMetaData dbMetaData = conn.getMetaData(); // Initialise the sql strings. String fileName = m_sqlFileName.substring("file://".length()); if (!(fileName.startsWith("/"))) { fileName = ((BlockContext)context).getBaseDirectory() + File.separator + fileName; } File sqlFile = (new File(fileName)).getCanonicalFile(); getLogger().debug("Reading SQL resources from file: " + sqlFile.getAbsolutePath() + ", section " + this.getClass().getName() + "."); SqlResources sqlStatements = new SqlResources(); sqlStatements.init(sqlFile, this.getClass().getName(), conn, m_sqlParameters); // Create the SQL Strings to use for this table. // Fetches all Users from the db. m_getUsersSql = sqlStatements.getSqlString("select", true); // Get a user by lowercase name. (optional) // If not provided, the entire list is iterated to find a user. m_userByNameCaseInsensitiveSql = sqlStatements.getSqlString("selectByLowercaseName"); // Insert, update and delete are not guaranteed to be case-insensitive // Will always be called with correct case in username.. m_insertUserSql = sqlStatements.getSqlString("insert", true); m_updateUserSql = sqlStatements.getSqlString("update", true); m_deleteUserSql = sqlStatements.getSqlString("delete", true); // Creates a single table with "username" the Primary Key. m_createUserTableSql = sqlStatements.getSqlString("createTable", true); // Check if the required table exists. If not, create it. // The table name is defined in the SqlResources. String tableName = sqlStatements.getSqlString("tableName", true); // Need to ask in the case that identifiers are stored, ask the DatabaseMetaInfo. // NB this should work, but some drivers (eg mm MySQL) // don't return the right details, hence the hackery below. /* String tableName = m_tableName; if ( dbMetaData.storesLowerCaseIdentifiers() ) { tableName = tableName.toLowerCase(); } else if ( dbMetaData.storesUpperCaseIdentifiers() ) { tableName = tableName.toUpperCase(); } */ // Try UPPER, lower, and MixedCase, to see if the table is there. if (! ( tableExists(dbMetaData, tableName) || tableExists(dbMetaData, tableName.toUpperCase()) || tableExists(dbMetaData, tableName.toLowerCase()) )) { // Users table doesn't exist - create it. PreparedStatement createStatement = conn.prepareStatement(m_createUserTableSql); createStatement.execute(); createStatement.close(); getLogger().info(this.getClass().getName() + ": Created table \'" + tableName + "\'."); } else { getLogger().debug("Using table: " + tableName); } } finally { closeConnection( conn ); } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/4d09342e0a1bdb6d97c3641c67b6f55b359b2cb7/AbstractJdbcUsersRepository.java/clean/src/java/org/apache/james/userrepository/AbstractJdbcUsersRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
1216,
1185,
377,
288,
3639,
7156,
7675,
4148,
12,
333,
18,
588,
797,
7675,
17994,
1435,
397,
3552,
11160,
1435,
8863,
3639,
368,
968,
326,
501,
17,
3168,
1931,
18,
3639,
312,
67,
13178,
552,
273,
261,
8597,
1841,
13,
81,
67,
13178,
1418,
18,
4025,
12,
81,
67,
13178,
552,
461,
1769,
3639,
368,
7766,
326,
1459,
358,
326,
2063,
16,
635,
8742,
326,
5130,
6998,
18,
3639,
4050,
1487,
273,
24982,
5621,
3639,
775,
95,
5411,
5130,
6998,
1319,
6998,
273,
1487,
18,
588,
6998,
5621,
5411,
368,
31739,
326,
1847,
2064,
18,
5411,
514,
3968,
273,
312,
67,
4669,
4771,
18,
28023,
2932,
768,
2207,
9654,
2469,
10663,
5411,
309,
16051,
12,
17812,
18,
17514,
1190,
2932,
4898,
20349,
288,
7734,
3968,
273,
14015,
1768,
1042,
13,
2472,
2934,
588,
2171,
2853,
1435,
397,
21821,
1387,
18,
11287,
397,
3968,
31,
5411,
289,
5411,
1387,
1847,
812,
273,
261,
2704,
1387,
12,
17812,
13,
2934,
588,
15512,
812,
5621,
13491,
7156,
7675,
4148,
2932,
15714,
3063,
2703,
628,
585,
30,
315,
397,
1171,
9079,
1847,
812,
18,
588,
10368,
743,
1435,
397,
3104,
2442,
315,
397,
17311,
333,
18,
588,
797,
7675,
17994,
1435,
397,
4585,
1769,
5411,
8855,
3805,
1847,
14663,
273,
394,
8855,
3805,
5621,
5411,
1847,
14663,
18,
2738,
12,
4669,
812,
16,
333,
18,
588,
797,
7675,
17994,
9334,
27573,
1487,
16,
312,
67,
4669,
2402,
1769,
5411,
368,
1788,
326,
3063,
8139,
358,
999,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
1435,
1216,
1185,
377,
288,
3639,
7156,
7675,
4148,
12,
333,
18,
588,
797,
7675,
17994,
1435,
397,
3552,
11160,
1435,
8863,
3639,
368,
968,
326,
501,
17,
3168,
1931,
18,
3639,
312,
67,
13178,
552,
273,
261,
8597,
1841,
13,
81,
67,
13178,
1418,
18,
4025,
12,
81,
67,
13178,
552,
461,
1769,
3639,
368,
7766,
326,
1459,
358,
326,
2063,
16,
635,
8742,
326,
5130,
6998,
18,
3639,
4050,
1487,
273,
24982,
5621,
3639,
775,
95,
5411,
5130,
6998,
1319,
6998,
273,
1487,
18,
588,
6998,
5621,
5411,
368,
31739,
326,
1847,
2064,
18,
5411,
514,
3968,
273,
312,
67,
4669,
4771,
18,
28023,
2932,
768,
2207,
9654,
2469,
10663,
5411,
309,
16051,
2
] |
addController(new Spinner(this, FastMath.PI/2)); | addController(_spinner = new Spinner(this, FastMath.PI/2)); | public BonusSprite (String type) { super("bonuses", type); if (!isHidden()) { addController(new Spinner(this, FastMath.PI/2)); } } | 8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/5d9954d678737890df71ec235c6cec6189e15f4b/BonusSprite.java/buggy/src/java/com/threerings/bang/game/client/sprite/BonusSprite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
605,
22889,
3389,
796,
261,
780,
618,
13,
565,
288,
3639,
2240,
2932,
18688,
6117,
3113,
618,
1769,
3639,
309,
16051,
291,
9345,
10756,
288,
5411,
527,
2933,
24899,
1752,
7872,
273,
394,
5878,
7872,
12,
2211,
16,
26915,
18,
1102,
19,
22,
10019,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
22889,
3389,
796,
261,
780,
618,
13,
565,
288,
3639,
2240,
2932,
18688,
6117,
3113,
618,
1769,
3639,
309,
16051,
291,
9345,
10756,
288,
5411,
527,
2933,
24899,
1752,
7872,
273,
394,
5878,
7872,
12,
2211,
16,
26915,
18,
1102,
19,
22,
10019,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return getAddress() + ": return " + operand; | return getAddress() + ": return " + refs[0]; | public String toString() { return getAddress() + ": return " + operand; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/568227fef1ae7ced51f104ef1af634c7a6188718/VarReturnQuad.java/buggy/core/src/core/org/jnode/vm/compiler/ir/quad/VarReturnQuad.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
14808,
1435,
397,
6398,
327,
315,
397,
9886,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
14808,
1435,
397,
6398,
327,
315,
397,
9886,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public int methodArity(int methodId) | public int methodArity(IdFunction f) | public int methodArity(int methodId) { if (prototypeFlag) { switch (methodId) { case Id_constructor: return 1; case Id_toString: return 0; case Id_toLocaleString: return 1; case Id_toSource: return 0; case Id_join: return 1; case Id_reverse: return 0; case Id_sort: return 1; case Id_push: return 1; case Id_pop: return 1; case Id_shift: return 1; case Id_unshift: return 1; case Id_splice: return 1; case Id_concat: return 1; case Id_slice: return 1; } } return super.methodArity(methodId); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
548,
2083,
284,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
3124,
67,
12316,
30,
377,
327,
404,
31,
7734,
648,
3124,
67,
10492,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
780,
30,
225,
327,
404,
31,
7734,
648,
3124,
67,
869,
1830,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
5701,
30,
5411,
327,
404,
31,
7734,
648,
3124,
67,
9845,
30,
540,
327,
374,
31,
7734,
648,
3124,
67,
3804,
30,
5411,
327,
404,
31,
7734,
648,
3124,
67,
6206,
30,
5411,
327,
404,
31,
7734,
648,
3124,
67,
5120,
30,
2398,
327,
404,
31,
7734,
648,
3124,
67,
4012,
30,
6647,
327,
404,
31,
7734,
648,
3124,
67,
13858,
30,
540,
327,
404,
31,
7734,
648,
3124,
67,
19535,
30,
1850,
327,
404,
31,
7734,
648,
3124,
67,
16426,
30,
1850,
327,
404,
31,
7734,
648,
3124,
67,
6665,
30,
6647,
327,
404,
31,
5411,
289,
3639,
289,
3639,
327,
2240,
18,
2039,
686,
560,
12,
2039,
548,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
509,
707,
686,
560,
12,
548,
2083,
284,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
3124,
67,
12316,
30,
377,
327,
404,
31,
7734,
648,
3124,
67,
10492,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
780,
30,
225,
327,
404,
31,
7734,
648,
3124,
67,
869,
1830,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
5701,
30,
5411,
327,
404,
31,
7734,
648,
3124,
67,
9845,
30,
540,
327,
374,
31,
7734,
648,
3124,
67,
3804,
30,
5411,
327,
404,
31,
7734,
648,
3124,
67,
6206,
30,
5411,
327,
404,
31,
7734,
648,
3124,
67,
5120,
30,
2398,
327,
404,
2
] |
connector.fireNotification(new MessageNotification(event.getMessage(), event.getEndpoint(), event.getComponent().getDescriptor().getName(), MessageNotification.MESSAGE_SENT)); | try { String component = null; if(event.getComponent()!=null) { component = event.getComponent().getDescriptor().getName(); } connector.fireNotification(new MessageNotification(event.getMessage(), event.getEndpoint(), component, MessageNotification.MESSAGE_SENT)); } catch (NullPointerException e) { e.printStackTrace(); } | public final UMOMessage send(UMOEvent event) throws DispatchException { try { event.setSynchronous(true); event.setProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, event.getEndpoint().getEndpointURI().toString()); RequestContext.setEvent(event); // Apply Security filter if one is set UMOEndpoint endpoint = event.getEndpoint(); if (endpoint.getSecurityFilter() != null) { try { endpoint.getSecurityFilter().authenticate(event); } catch (org.mule.umo.security.SecurityException e) { logger.warn("Outbound Request was made but was not authenticated: " + e.getMessage(), e); connector.fireNotification(new SecurityNotification(e, SecurityNotification.SECURITY_AUTHENTICATION_FAILED)); connector.handleException(e); return event.getMessage(); } catch (UMOException e) { dispose(); throw new DispatchException(event.getMessage(), event.getEndpoint(), e); } } // the security filter may update the payload so we need to get the // latest event again event = RequestContext.getEvent(); try { UMOMessage result = doSend(event); if(connector.isEnableMessageEvents()) { connector.fireNotification(new MessageNotification(event.getMessage(), event.getEndpoint(), event.getComponent().getDescriptor().getName(), MessageNotification.MESSAGE_SENT)); } //Once a dispatcher has done its work we need to romve this property so that //it is not propagated to the next request if(result!=null) result.removeProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY); return result; } catch (DispatchException e) { dispose(); throw e; } catch (Exception e) { dispose(); throw new DispatchException(event.getMessage(), event.getEndpoint(), e); } } finally { if(connector.isCreateDispatcherPerRequest()) { dispose(); } } } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/9471c05c63a59636fabbe1bbbaa147b6cd7f5055/AbstractMessageDispatcher.java/clean/mule/src/java/org/mule/providers/AbstractMessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
587,
5980,
1079,
1366,
12,
2799,
51,
1133,
871,
13,
1216,
11552,
503,
565,
288,
3639,
775,
288,
5411,
871,
18,
542,
55,
7121,
12,
3767,
1769,
5411,
871,
18,
542,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
18506,
67,
9900,
16,
871,
18,
588,
3293,
7675,
588,
3293,
3098,
7675,
10492,
10663,
5411,
20479,
18,
542,
1133,
12,
2575,
1769,
5411,
368,
5534,
6036,
1034,
309,
1245,
353,
444,
5411,
587,
5980,
3293,
2494,
273,
871,
18,
588,
3293,
5621,
5411,
309,
261,
8003,
18,
588,
4368,
1586,
1435,
480,
446,
13,
288,
7734,
775,
288,
10792,
2494,
18,
588,
4368,
1586,
7675,
22035,
12,
2575,
1769,
7734,
289,
1044,
261,
3341,
18,
81,
725,
18,
379,
83,
18,
7462,
18,
24918,
425,
13,
288,
10792,
1194,
18,
8935,
2932,
17873,
1567,
1703,
7165,
1496,
1703,
486,
9370,
30,
315,
397,
425,
18,
24906,
9334,
425,
1769,
10792,
8703,
18,
12179,
4386,
12,
2704,
6036,
4386,
12,
73,
16,
6036,
4386,
18,
29209,
67,
25114,
2689,
67,
11965,
10019,
10792,
8703,
18,
4110,
503,
12,
73,
1769,
10792,
327,
871,
18,
24906,
5621,
7734,
289,
1044,
261,
2799,
51,
503,
425,
13,
288,
10792,
15825,
5621,
10792,
604,
394,
11552,
503,
12,
2575,
18,
24906,
9334,
871,
18,
588,
3293,
9334,
425,
1769,
7734,
289,
5411,
289,
5411,
368,
326,
4373,
1034,
2026,
1089,
326,
2385,
1427,
732,
1608,
358,
336,
326,
5411,
368,
4891,
871,
3382,
5411,
871,
273,
20479,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
587,
5980,
1079,
1366,
12,
2799,
51,
1133,
871,
13,
1216,
11552,
503,
565,
288,
3639,
775,
288,
5411,
871,
18,
542,
55,
7121,
12,
3767,
1769,
5411,
871,
18,
542,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
18506,
67,
9900,
16,
871,
18,
588,
3293,
7675,
588,
3293,
3098,
7675,
10492,
10663,
5411,
20479,
18,
542,
1133,
12,
2575,
1769,
5411,
368,
5534,
6036,
1034,
309,
1245,
353,
444,
5411,
587,
5980,
3293,
2494,
273,
871,
18,
588,
3293,
5621,
5411,
309,
261,
8003,
18,
588,
4368,
1586,
1435,
480,
446,
13,
288,
7734,
775,
288,
10792,
2494,
18,
588,
4368,
1586,
7675,
22035,
12,
2575,
1769,
7734,
289,
1044,
261,
3341,
18,
2
] |
Subsets and Splits