rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
IAdaptable[] items = workingSet.getElements(); tree.setCheckedElements(items); for (int i = 0; i < items.length; i++) { IAdaptable item = items[i]; IContainer container = null; IResource resource = null; if (item instanceof IContainer) { container = (IContainer) item; } else { container = (IContainer) item.getAdapter(IContainer.class); } if (container != null) { setSubtreeChecked(container, true, true); } if (item instanceof IResource) { resource = (IResource) item; } else { resource = (IResource) item.getAdapter(IResource.class); } if (resource != null && resource.isAccessible() == false) { IProject project = resource.getProject(); if (tree.getChecked(project) == false) tree.setGrayChecked(project, true); } else { updateParentState(resource);
|
Object[] elements; if (fWorkingSet == null) { IWorkbenchPage page= CUIPlugin.getActivePage(); if (page == null) return; IWorkbenchPart part= CUIPlugin.getActivePage().getActivePart(); if (part == null) return; try { elements= SelectionConverter.getStructuredSelection(part).toArray(); for (int i= 0; i < elements.length; i++) { if (elements[i] instanceof IResource) { ICElement ce= (ICElement)((IResource)elements[i]).getAdapter(ICElement.class); if (ce != null && ce.exists() && ce.getCProject().isOnSourceRoot((IResource)elements[i])) elements[i]= ce; } } } catch (CModelException e) { return;
|
public void run() { IAdaptable[] items = workingSet.getElements(); tree.setCheckedElements(items); for (int i = 0; i < items.length; i++) { IAdaptable item = items[i]; IContainer container = null; IResource resource = null; if (item instanceof IContainer) { container = (IContainer) item; } else { container = (IContainer) item.getAdapter(IContainer.class); } if (container != null) { setSubtreeChecked(container, true, true); } if (item instanceof IResource) { resource = (IResource) item; } else { resource = (IResource) item.getAdapter(IResource.class); } if (resource != null && resource.isAccessible() == false) { IProject project = resource.getProject(); if (tree.getChecked(project) == false) tree.setGrayChecked(project, true); } else { updateParentState(resource); } } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ead46b18a7f254959c1428306b90fb9479690b28/CElementWorkingSetPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/workingsets/CElementWorkingSetPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
13716,
429,
8526,
1516,
273,
5960,
694,
18,
588,
3471,
5621,
9506,
202,
3413,
18,
542,
11454,
3471,
12,
3319,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
6862,
202,
45,
13716,
429,
761,
273,
1516,
63,
77,
15533,
6862,
202,
45,
2170,
1478,
273,
446,
31,
6862,
202,
45,
1420,
1058,
273,
446,
31,
6862,
202,
430,
261,
1726,
1276,
467,
2170,
13,
288,
25083,
202,
3782,
273,
261,
45,
2170,
13,
761,
31,
6862,
202,
97,
469,
288,
25083,
202,
3782,
273,
261,
45,
2170,
13,
761,
18,
588,
4216,
12,
45,
2170,
18,
1106,
1769,
6862,
202,
97,
6862,
202,
430,
261,
3782,
480,
446,
13,
288,
25083,
202,
542,
18615,
11454,
12,
3782,
16,
638,
16,
638,
1769,
6862,
202,
97,
6862,
202,
430,
261,
1726,
1276,
467,
1420,
13,
288,
25083,
202,
3146,
273,
261,
45,
1420,
13,
761,
31,
6862,
202,
97,
469,
288,
25083,
202,
3146,
273,
261,
45,
1420,
13,
761,
18,
588,
4216,
12,
45,
1420,
18,
1106,
1769,
6862,
202,
97,
6862,
202,
430,
261,
3146,
480,
446,
597,
1058,
18,
291,
10451,
1435,
422,
629,
13,
288,
25083,
202,
45,
4109,
1984,
273,
1058,
18,
588,
4109,
5621,
25083,
202,
430,
261,
3413,
18,
588,
11454,
12,
4406,
13,
422,
629,
13,
6862,
1082,
202,
3413,
18,
542,
23521,
11454,
12,
4406,
16,
638,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
13716,
429,
8526,
1516,
273,
5960,
694,
18,
588,
3471,
5621,
9506,
202,
3413,
18,
542,
11454,
3471,
12,
3319,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
6862,
202,
45,
13716,
429,
761,
273,
1516,
63,
77,
15533,
6862,
202,
45,
2170,
1478,
273,
446,
31,
6862,
202,
45,
1420,
1058,
273,
446,
31,
6862,
202,
430,
261,
1726,
1276,
467,
2170,
13,
288,
25083,
202,
3782,
273,
261,
45,
2170,
13,
761,
31,
6862,
202,
97,
469,
288,
25083,
202,
3782,
273,
261,
45,
2170,
13,
761,
18,
588,
4216,
12,
45,
2170,
18,
1106,
1769,
2
] |
return "Could not find a related Fixed Asset for the product: " + productId;
|
Map messageMap = UtilMisc.toMap("productId", productId); String msg = UtilProperties.getMessage(resource, "item.cannot_find_Fixed_Asset", messageMap , cart.getLocale()); return msg;
|
public static String checkAvailability(String productId, double quantity, Timestamp reservStart, double reservLength, ShoppingCart cart) { GenericDelegator delegator = cart.getDelegator(); // find related fixedAsset List selFixedAssetProduct = null; GenericValue fixedAssetProduct = null; try { List allFixedAssetProduct = delegator.findByAnd("FixedAssetProduct", UtilMisc.toMap("productId", productId, "fixedAssetProductTypeId", "FAPT_USE")); selFixedAssetProduct = EntityUtil.filterByDate(allFixedAssetProduct, UtilDateTime.nowTimestamp(), "fromDate", "thruDate", true); } catch (GenericEntityException e) { return "Could not find a related Fixed Asset for the product: " + productId; } if (selFixedAssetProduct != null && selFixedAssetProduct.size() > 0) { Iterator firstOne = selFixedAssetProduct.iterator(); fixedAssetProduct = (GenericValue) firstOne.next(); } else { return "Could not find a related Fixed Asset for the product: " + productId; } // find the fixed asset itself GenericValue fixedAsset = null; try { fixedAsset = fixedAssetProduct.getRelatedOne("FixedAsset"); } catch (GenericEntityException e) { return "fixed_Asset_not_found. Fixed AssetId: " + fixedAssetProduct.getString("fixedAssetId"); } if (fixedAsset == null) { return "fixed_Asset_not_found. Fixed AssetId: " + fixedAssetProduct.getString("fixedAssetId"); } //Debug.logInfo("Checking availability for product: " + productId.toString() + " and related FixedAsset: " + fixedAssetProduct.getString("fixedAssetId"),module); // see if this fixed asset has a calendar, when no create one and attach to fixed asset // DEJ20050725 this isn't being used anywhere, commenting out for now and not assigning from the getRelatedOne: GenericValue techDataCalendar = null; try { fixedAsset.getRelatedOne("TechDataCalendar"); } catch (GenericEntityException e) { // no calendar ok, when not more that total capacity if (fixedAsset.getDouble("productionCapacity").doubleValue() >= quantity) { return "OK"; } else { return "Quantity requested: " + quantity + " Quantity available: " + fixedAsset.getString("productionCapacity"); } } // now find all the dates and check the availabilty for each date // please note that calendarId is the same for (TechData)Calendar, CalendarExcDay and CalendarExWeek long dayCount = 0; String resultMessage = ""; while (dayCount < (long) reservLength) { GenericValue techDataCalendarExcDay = null; // find an existing Day exception record Timestamp exceptionDateStartTime = new Timestamp((long) (reservStart.getTime() + (dayCount++ * 86400000))); try { techDataCalendarExcDay = delegator.findByPrimaryKey("TechDataCalendarExcDay", UtilMisc.toMap("calendarId", fixedAsset.get("calendarId"), "exceptionDateStartTime", exceptionDateStartTime)); } catch (GenericEntityException e) { if (fixedAsset.get("productionCapacity") != null) { //Debug.logInfo(" No exception day record found, available: " + fixedAsset.getString("productionCapacity") + " Requested now: " + quantity, module); if (fixedAsset.getDouble("productionCapacity").doubleValue() < quantity) resultMessage = resultMessage.concat(exceptionDateStartTime.toString().substring(0, 10) + ", "); } } if (techDataCalendarExcDay != null) { // see if we can get the number of assets available // first try techDataCalendarExcDay(exceptionCapacity) and then FixedAsset(productionCapacity) // if still zero, do not check availability double exceptionCapacity = 0.00; if (techDataCalendarExcDay.get("exceptionCapacity") != null) exceptionCapacity = techDataCalendarExcDay.getDouble("exceptionCapacity").doubleValue(); if (exceptionCapacity == 0.00 && fixedAsset.get("productionCapacity") != null) exceptionCapacity = fixedAsset.getDouble("productionCapacity").doubleValue(); if (exceptionCapacity != 0.00) { double usedCapacity = 0.00; if (techDataCalendarExcDay.get("usedCapacity") != null) usedCapacity = techDataCalendarExcDay.getDouble("usedCapacity").doubleValue(); if (exceptionCapacity < (quantity + usedCapacity)) { resultMessage = resultMessage.concat(exceptionDateStartTime.toString().substring(0, 10) + ", "); Debug.logInfo("No rental fixed Asset available: " + exceptionCapacity + " already used: " + usedCapacity + " Requested now: " + quantity, module); } } } } if (resultMessage.compareTo("") == 0) return "OK"; else return "I am sorry, not available at these dates: " + resultMessage + "item not added to the shopping cart....."; }
|
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/bfc668d925bc9e2c2f3342c658e280adc008a8e1/ShoppingCartItem.java/buggy/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
866,
10427,
12,
780,
23820,
16,
1645,
10457,
16,
8159,
400,
264,
90,
1685,
16,
1645,
400,
264,
90,
1782,
16,
17568,
1382,
13006,
7035,
13,
288,
3639,
7928,
15608,
639,
11158,
639,
273,
7035,
18,
588,
15608,
639,
5621,
3639,
368,
1104,
3746,
5499,
6672,
3639,
987,
357,
7505,
6672,
4133,
273,
446,
31,
3639,
7928,
620,
5499,
6672,
4133,
273,
446,
31,
3639,
775,
288,
5411,
987,
777,
7505,
6672,
4133,
273,
11158,
639,
18,
4720,
858,
1876,
2932,
7505,
6672,
4133,
3113,
3564,
11729,
71,
18,
869,
863,
2932,
5896,
548,
3113,
23820,
16,
315,
12429,
6672,
4133,
11731,
3113,
315,
2046,
1856,
67,
8001,
7923,
1769,
5411,
357,
7505,
6672,
4133,
273,
3887,
1304,
18,
2188,
858,
1626,
12,
454,
7505,
6672,
4133,
16,
3564,
5096,
18,
3338,
4921,
9334,
315,
2080,
1626,
3113,
315,
451,
8653,
1626,
3113,
638,
1769,
3639,
289,
1044,
261,
7014,
1943,
503,
425,
13,
288,
5411,
1635,
883,
863,
273,
3564,
11729,
71,
18,
869,
863,
2932,
5896,
548,
3113,
23820,
1769,
514,
1234,
273,
3564,
2297,
18,
24906,
12,
3146,
16,
315,
1726,
18,
12892,
67,
4720,
67,
7505,
67,
6672,
3113,
883,
863,
269,
7035,
18,
588,
3916,
10663,
327,
1234,
31,
3639,
289,
3639,
309,
261,
1786,
7505,
6672,
4133,
480,
446,
597,
357,
7505,
6672,
4133,
18,
1467,
1435,
405,
374,
13,
288,
5411,
4498,
1122,
3335,
273,
357,
7505,
6672,
4133,
18,
9838,
5621,
5411,
5499,
6672,
4133,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
866,
10427,
12,
780,
23820,
16,
1645,
10457,
16,
8159,
400,
264,
90,
1685,
16,
1645,
400,
264,
90,
1782,
16,
17568,
1382,
13006,
7035,
13,
288,
3639,
7928,
15608,
639,
11158,
639,
273,
7035,
18,
588,
15608,
639,
5621,
3639,
368,
1104,
3746,
5499,
6672,
3639,
987,
357,
7505,
6672,
4133,
273,
446,
31,
3639,
7928,
620,
5499,
6672,
4133,
273,
446,
31,
3639,
775,
288,
5411,
987,
777,
7505,
6672,
4133,
273,
11158,
639,
18,
4720,
858,
1876,
2932,
7505,
6672,
4133,
3113,
3564,
11729,
71,
18,
869,
863,
2932,
5896,
548,
3113,
23820,
16,
315,
12429,
6672,
4133,
11731,
3113,
315,
2046,
1856,
67,
8001,
7923,
1769,
5411,
357,
7505,
6672,
4133,
2
] |
state.add(ref, null);
|
state.add(ref);
|
public void testNonRecoverableState_remove_6() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (!state.acceptReliableMessages()) { // only state that accepts reliable messages is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessage("message" + i, true, "payload" + i)); state.add(ref, null); } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = state.remove(); assertEquals("message" + i, ref.getMessageID()); } assertNull(state.remove()); log.info("ok"); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/b808cf059a2bd5d2b256a4cae82cef505669b216/StateTestBase.java/clean/tests/src/org/jboss/test/messaging/core/base/StateTestBase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3989,
426,
17399,
1119,
67,
4479,
67,
26,
1435,
1216,
4206,
282,
288,
1377,
309,
261,
2019,
18,
291,
426,
17399,
10756,
1377,
288,
540,
368,
1338,
1661,
17,
25864,
919,
353,
18432,
2037,
540,
327,
31,
1377,
289,
1377,
309,
16051,
2019,
18,
9436,
1971,
2214,
5058,
10756,
1377,
288,
540,
368,
1338,
919,
716,
8104,
31024,
2743,
353,
18432,
2037,
540,
327,
31,
1377,
289,
1377,
364,
12,
474,
277,
273,
374,
31,
277,
411,
15532,
67,
3932,
67,
26195,
31,
277,
27245,
1377,
288,
540,
2350,
2404,
1278,
273,
9079,
4086,
18,
6180,
12,
1079,
1733,
18,
2640,
1079,
2932,
2150,
6,
397,
277,
16,
638,
16,
315,
7648,
6,
397,
277,
10019,
540,
919,
18,
1289,
12,
1734,
1769,
1377,
289,
1377,
364,
12,
474,
277,
273,
374,
31,
277,
411,
15532,
67,
3932,
67,
26195,
31,
277,
27245,
1377,
288,
540,
2350,
2404,
1278,
273,
919,
18,
4479,
5621,
540,
1815,
8867,
2932,
2150,
6,
397,
277,
16,
1278,
18,
24906,
734,
10663,
1377,
289,
1377,
1815,
2041,
12,
2019,
18,
4479,
10663,
1377,
613,
18,
1376,
2932,
601,
8863,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3989,
426,
17399,
1119,
67,
4479,
67,
26,
1435,
1216,
4206,
282,
288,
1377,
309,
261,
2019,
18,
291,
426,
17399,
10756,
1377,
288,
540,
368,
1338,
1661,
17,
25864,
919,
353,
18432,
2037,
540,
327,
31,
1377,
289,
1377,
309,
16051,
2019,
18,
9436,
1971,
2214,
5058,
10756,
1377,
288,
540,
368,
1338,
919,
716,
8104,
31024,
2743,
353,
18432,
2037,
540,
327,
31,
1377,
289,
1377,
364,
12,
474,
277,
273,
374,
31,
277,
411,
15532,
67,
3932,
67,
26195,
31,
277,
27245,
1377,
288,
540,
2350,
2404,
1278,
273,
9079,
4086,
18,
6180,
12,
1079,
1733,
18,
2640,
1079,
2932,
2150,
6,
397,
277,
16,
638,
16,
315,
7648,
6,
397,
277,
2
] |
public String getModuleViewName();
|
public String getModuleViewName(String modulename);
|
public String getModuleViewName();
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/7d6a3b4d956e2627ee4788a98daddf5f7382f5a8/I_CmsRegistry.java/clean/src/com/opencms/file/I_CmsRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
514,
11251,
27146,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
514,
11251,
27146,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String filter(String urlString) throws URLFilterException { for (int i = 0; i < CACHE.length; i++) {
|
public String filter(String urlString) throws URLFilterException { for (int i = 0; i < this.filters.length; i++) {
|
public static String filter(String urlString) throws URLFilterException { for (int i = 0; i < CACHE.length; i++) { if (urlString == null) return null; //System.out.println("using fitler "+i+":"+CACHE[i].getClass().getName()); urlString = CACHE[i].filter(urlString); } return urlString; }
|
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/URLFilters.java/clean/src/java/org/apache/nutch/net/URLFilters.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1034,
12,
780,
29374,
13,
1216,
1976,
1586,
503,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
13669,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
718,
780,
422,
446,
13,
3639,
327,
446,
31,
1377,
368,
3163,
18,
659,
18,
8222,
2932,
9940,
4845,
749,
13773,
77,
9078,
2773,
15,
8495,
63,
77,
8009,
588,
797,
7675,
17994,
10663,
1377,
29374,
273,
13669,
63,
77,
8009,
2188,
12,
718,
780,
1769,
565,
289,
565,
327,
29374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1034,
12,
780,
29374,
13,
1216,
1976,
1586,
503,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
13669,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
718,
780,
422,
446,
13,
3639,
327,
446,
31,
1377,
368,
3163,
18,
659,
18,
8222,
2932,
9940,
4845,
749,
13773,
77,
9078,
2773,
15,
8495,
63,
77,
8009,
588,
797,
7675,
17994,
10663,
1377,
29374,
273,
13669,
63,
77,
8009,
2188,
12,
718,
780,
1769,
565,
289,
565,
327,
29374,
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
] |
if (element.getChildren().size() != element.getChildren(ADD_TO_GROUP_ELEMENT_NAME).size() ) { if (!(obj instanceof DefaultActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + DefaultActionGroup.class.getName() + " because there are children specified");
|
if (id != null) { registerAction(id, group); } Presentation presentation = group.getTemplatePresentation(); String text = loadTextForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setText(text); String description = loadDescriptionForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setDescription(description); setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); String popup = element.getAttributeValue(POPAP_ATTR_NAME); if (popup != null) { group.setPopup(Boolean.valueOf(popup).booleanValue()); } for (final Object o : element.getChildren()) { Element child = (Element)o; String name = child.getName(); if (ACTION_ELEMENT_NAME.equals(name)) { AnAction action = processActionElement(child, loader, pluginId); if (action != null) { assertActionIsGroupOrStub(action); ((DefaultActionGroup)group).add(action, this); } } else if (SEPARATOR_ELEMENT_NAME.equals(name)) { processSeparatorNode((DefaultActionGroup)group, child); } else if (GROUP_ELEMENT_NAME.equals(name)) { AnAction action = processGroupElement(child, loader, pluginId); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else if (ADD_TO_GROUP_ELEMENT_NAME.equals(name)) { processAddToGroupNode(group, child); } else if (REFERENCE_ELEMENT_NAME.equals(name)) { AnAction action = processReferenceElement(child); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else { LOG.error("unexpected name of element \"" + name + "\n");
|
private AnAction processGroupElement(Element element, final ClassLoader loader, PluginId pluginId) { final Application app = ApplicationManager.getApplication(); final IdeaPluginDescriptor plugin = app.getPlugin(pluginId); @NonNls final String resBundleName = plugin != null ? plugin.getResourceBundleBaseName() : ACTIONS_BUNDLE; ResourceBundle bundle = null; if (resBundleName != null) { bundle = ResourceBundle.getBundle(resBundleName, Locale.getDefault(), loader); } if (LOG.isDebugEnabled()) { LOG.debug("enter: processGroupElement(" + element.getName() + ")"); } if (!GROUP_ELEMENT_NAME.equals(element.getName())) { LOG.error("unexpected name of element \"" + element.getName() + "\""); return null; } String className = element.getAttributeValue(CLASS_ATTR_NAME); if (className == null) { // use default group if class isn't specified className = DefaultActionGroup.class.getName(); } try { Class aClass = Class.forName(className, true, loader); Object obj = new ConstructorInjectionComponentAdapter(className, aClass).getComponentInstance(ApplicationManager.getApplication().getPicoContainer()); if (!(obj instanceof ActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + ActionGroup.class.getName()); return null; } if (element.getChildren().size() != element.getChildren(ADD_TO_GROUP_ELEMENT_NAME).size() ) { // if (!(obj instanceof DefaultActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + DefaultActionGroup.class.getName() + " because there are children specified"); return null; } } ActionGroup group = (ActionGroup)obj; // read ID and register loaded group String id = element.getAttributeValue(ID_ATTR_NAME); if (id != null && id.length() == 0) { LOG.error("ID of the group cannot be an empty string"); return null; } if (Boolean.valueOf(element.getAttributeValue(INTERNAL_ATTR_NAME)).booleanValue() && !ApplicationManagerEx.getApplicationEx().isInternal()) { myNotRegisteredInternalActionIds.add(id); return null; } if (id != null) { registerAction(id, group); } // text Presentation presentation = group.getTemplatePresentation(); String text = loadTextForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setText(text); // description String description = loadDescriptionForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setDescription(description); // icon setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); // popup String popup = element.getAttributeValue(POPAP_ATTR_NAME); if (popup != null) { group.setPopup(Boolean.valueOf(popup).booleanValue()); } // process all group's children. There are other groups, actions, references and links for (final Object o : element.getChildren()) { Element child = (Element)o; String name = child.getName(); if (ACTION_ELEMENT_NAME.equals(name)) { AnAction action = processActionElement(child, loader, pluginId); if (action != null) { assertActionIsGroupOrStub(action); ((DefaultActionGroup)group).add(action, this); } } else if (SEPARATOR_ELEMENT_NAME.equals(name)) { processSeparatorNode((DefaultActionGroup)group, child); } else if (GROUP_ELEMENT_NAME.equals(name)) { AnAction action = processGroupElement(child, loader, pluginId); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else if (ADD_TO_GROUP_ELEMENT_NAME.equals(name)) { processAddToGroupNode(group, child); } else if (REFERENCE_ELEMENT_NAME.equals(name)) { AnAction action = processReferenceElement(child); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else { LOG.error("unexpected name of element \"" + name + "\n"); return null; } } return group; } catch (ClassNotFoundException e) { LOG.error("class with name \"" + className + "\" not found"); return null; } catch (Exception e) { LOG.error("cannot create class \"" + className + "\"", e); return null; } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1922,
1803,
1207,
1114,
1046,
12,
1046,
930,
16,
727,
9403,
4088,
16,
6258,
548,
1909,
548,
13,
288,
565,
727,
4257,
595,
273,
4257,
1318,
18,
588,
3208,
5621,
565,
727,
23062,
69,
3773,
3187,
1909,
273,
595,
18,
588,
3773,
12,
4094,
548,
1769,
565,
632,
3989,
50,
3251,
727,
514,
400,
3405,
461,
273,
1909,
480,
446,
692,
1909,
18,
588,
18731,
29907,
1435,
294,
11385,
55,
67,
30245,
31,
565,
19198,
3440,
273,
446,
31,
565,
309,
261,
455,
3405,
461,
480,
446,
13,
288,
1377,
3440,
273,
19198,
18,
588,
3405,
12,
455,
3405,
461,
16,
6458,
18,
588,
1868,
9334,
4088,
1769,
565,
289,
565,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
1377,
2018,
18,
4148,
2932,
2328,
30,
1207,
1114,
1046,
2932,
397,
930,
18,
17994,
1435,
397,
7310,
1769,
565,
289,
565,
309,
16051,
8468,
67,
10976,
67,
1985,
18,
14963,
12,
2956,
18,
17994,
1435,
3719,
288,
1377,
2018,
18,
1636,
2932,
21248,
508,
434,
930,
11843,
397,
930,
18,
17994,
1435,
397,
11143,
1769,
1377,
327,
446,
31,
565,
289,
565,
514,
2658,
273,
930,
18,
588,
14942,
12,
5237,
67,
12043,
67,
1985,
1769,
565,
309,
261,
12434,
422,
446,
13,
288,
368,
999,
805,
1041,
309,
667,
5177,
1404,
1269,
1377,
2658,
273,
2989,
1803,
1114,
18,
1106,
18,
17994,
5621,
565,
289,
565,
775,
288,
1377,
1659,
20148,
273,
1659,
18,
1884,
461,
12,
12434,
16,
638,
16,
4088,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1922,
1803,
1207,
1114,
1046,
12,
1046,
930,
16,
727,
9403,
4088,
16,
6258,
548,
1909,
548,
13,
288,
565,
727,
4257,
595,
273,
4257,
1318,
18,
588,
3208,
5621,
565,
727,
23062,
69,
3773,
3187,
1909,
273,
595,
18,
588,
3773,
12,
4094,
548,
1769,
565,
632,
3989,
50,
3251,
727,
514,
400,
3405,
461,
273,
1909,
480,
446,
692,
1909,
18,
588,
18731,
29907,
1435,
294,
11385,
55,
67,
30245,
31,
565,
19198,
3440,
273,
446,
31,
565,
309,
261,
455,
3405,
461,
480,
446,
13,
288,
1377,
3440,
273,
19198,
18,
588,
3405,
12,
455,
3405,
461,
16,
6458,
18,
588,
1868,
9334,
4088,
1769,
565,
289,
565,
309,
261,
4842,
18,
291,
2829,
2
] |
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); if(quick) { //f = f.deriveFont((float)((int)(Math.random()*10))); return f; } if(el.getParentNode().getNodeType() == el.DOCUMENT_NODE) { //u.p("ended up at the top somehow!: "); return c.getGraphics().getFont().deriveFont((float)10); } // calculate the font size // look up the parent and use it's font size to scale against // joshy: this will fail if the parent also has a relative size // need to fix this by passing down the enclosing block's font size // in the context Element par = (Element)el.getParentNode(); float parent_size = c.css.getFloatProperty(par,"font-size",true); float size = c.css.getFloatProperty(el,"font-size",parent_size,true); String weight = c.css.getStringProperty(el,"font-weight"); String[] family = c.css.getStringArrayProperty(el,"font-family"); //u.p("families"); //u.p(family); /* if(!family[0].equals("sans-serif")) { //u.p("family = "); //u.p(family); //u.p(""); } */ String style = c.css.getStringProperty(el,"font-style"); // CLEAN System.out.println("family=" + family + ", size=" + size + ", weight=" + weight + ", style=" + style); f = c.getFontResolver().resolveFont(c,family,size,weight,style); // calculate the font color c.getGraphics().setColor(c.css.getColor(el)); return f;}
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/26f5d912c90d7e3336b7d1b0aa076c1e30cf293e/FontUtil.java/buggy/src/java/org/joshy/html/util/FontUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
5711,
21336,
5711,
12,
1042,
71,
16,
1046,
292,
15329,
759,
6241,
30,
14891,
88,
369,
291,
7641,
3350,
2323,
499,
792,
17703,
310,
13139,
70,
1332,
83,
310,
265,
14852,
16,
70,
26881,
1355,
292,
1535,
759,
3404,
13373,
5625,
3375,
464,
2294,
5817,
267,
2680,
2152,
73,
11,
2972,
11,
5776,
1884,
304,
2956,
12,
52,
19989,
3461,
19,
6840,
19,
3028,
13,
759,
89,
18,
84,
2932,
3813,
310,
2159,
2773,
15,
73,
1769,
5711,
74,
33,
71,
18,
588,
17558,
7675,
588,
5711,
5621,
430,
12,
19525,
15329,
759,
74,
33,
74,
18,
765,
688,
5711,
12443,
5659,
13,
12443,
474,
21433,
10477,
18,
9188,
1435,
14,
2163,
3719,
1769,
2463,
74,
31,
97,
430,
12,
292,
18,
588,
3054,
907,
7675,
588,
15101,
1435,
631,
292,
18,
18450,
67,
8744,
15329,
759,
89,
18,
84,
2932,
3934,
416,
270,
451,
278,
4473,
1742,
13606,
5,
2773,
1769,
2463,
71,
18,
588,
17558,
7675,
588,
5711,
7675,
765,
688,
5711,
12443,
5659,
13,
2163,
1769,
97,
759,
12780,
270,
546,
73,
23055,
759,
7330,
3648,
580,
2938,
464,
1202,
305,
1807,
22052,
452,
278,
538,
1869,
23095,
334,
759,
78,
17636,
93,
30,
2211,
20194,
6870,
430,
451,
881,
817,
31144,
5332,
834,
4801,
3606,
554,
759,
14891,
88,
792,
697,
2211,
29604,
310,
2378,
5787,
1331,
10910,
2629,
1807,
23055,
759,
267,
451,
17181,
955,
1046,
1065,
28657,
1046,
13,
292,
18,
588,
3054,
907,
5621,
5659,
2938,
67,
1467,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
5711,
21336,
5711,
12,
1042,
71,
16,
1046,
292,
15329,
759,
6241,
30,
14891,
88,
369,
291,
7641,
3350,
2323,
499,
792,
17703,
310,
13139,
70,
1332,
83,
310,
265,
14852,
16,
70,
26881,
1355,
292,
1535,
759,
3404,
13373,
5625,
3375,
464,
2294,
5817,
267,
2680,
2152,
73,
11,
2972,
11,
5776,
1884,
304,
2956,
12,
52,
19989,
3461,
19,
6840,
19,
3028,
13,
759,
89,
18,
84,
2932,
3813,
310,
2159,
2773,
15,
73,
1769,
5711,
74,
33,
71,
18,
588,
17558,
7675,
588,
5711,
5621,
430,
12,
19525,
15329,
759,
74,
33,
74,
18,
765,
688,
5711,
12443,
5659,
13,
12443,
474,
21433,
10477,
18,
9188,
1435,
14,
2163,
3719,
1769,
2463,
74,
31,
2
] |
||
boolean routingBackedOffNow = (now < routingBackedOffUntil);
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } StringBuffer buf = new StringBuffer(1024); //HTTPRequest request = new HTTPRequest(uri); ctx.getPageMaker().makeHead(buf, "Darknet Peers"); // FIXME! We need some nice images PeerNode[] peerNodes = node.getDarknetConnections(); long now = System.currentTimeMillis(); boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); node.alerts.toSummaryHtml(buf); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = (int) node.getNetworkSizeEstimate( 0 ); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); /* gather connection statistics */ int numberOfConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_NEVER_CONNECTED); buf.append("<table class=\"column\"><tr><td class=\"first\">"); /* node status overview box */ if(advancedEnabled) { buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Node status overview</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); buf.append("<li>bwlimitDelayTime: ").append(bwlimitDelayTime).append("ms</li>"); buf.append("<li>nodeAveragePingTime: ").append(nodeAveragePingTime).append("ms</li>"); buf.append("<li>networkSizeEstimate: ").append(networkSizeEstimate).append(" nodes</li>"); buf.append("<li>nodeUptime: ").append(nodeUptimeString).append("</li>"); buf.append("</ul></div>"); buf.append("</div>\n"); buf.append("</td><td>"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); buf.append("<div class=\"infobox\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Current Activity\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { buf.append("Your node is not processing any requests right now."); } else { buf.append("<ul id=\"activity\">\n"); if (numInserts > 0) { buf.append("<li>Inserts: ").append(numInserts).append("</li>"); } if (numRequests > 0) { buf.append("<li>Requests: ").append(numRequests).append("</li>"); } if (numTransferringRequests > 0) { buf.append("<li>Transferring Requests: ").append(numTransferringRequests).append("</li>"); } if(advancedEnabled) { if (numARKFetchers > 0) { buf.append("<li>ARK Fetch Requests: ").append(numARKFetchers).append("</li>"); } } buf.append("</ul>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); buf.append("</td><td>"); // Peer statistics box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer statistics</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); if (numberOfConnected > 0) { buf.append("<li><span class=\"peer_connected\">Connected: ").append(numberOfConnected).append("</span></li>"); } if (numberOfRoutingBackedOff > 0) { buf.append("<li><span class=\"peer_backedoff\">Backed off: ").append(numberOfRoutingBackedOff).append("</span></li>"); } if (numberOfTooNew > 0) { buf.append("<li><span class=\"peer_too_new\">Too new: ").append(numberOfTooNew).append("</span></li>"); } if (numberOfTooOld > 0) { buf.append("<li><span class=\"peer_too_old\">Too old: ").append(numberOfTooOld).append("</span></li>"); } if (numberOfDisconnected > 0) { buf.append("<li><span class=\"peer_disconnected\">Disconnected: ").append(numberOfDisconnected).append("</span></li>"); } if (numberOfNeverConnected > 0) { buf.append("<li><span class=\"peer_never_connected\">Never Connected: ").append(numberOfNeverConnected).append("</span></li>"); } buf.append("</ul>"); buf.append("</div>"); buf.append("</div>\n"); // Peer routing backoff reason box if(advancedEnabled) { buf.append("</td><td class=\"last\">"); buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer backoff reasons</div>"); buf.append("<div class=\"infobox-content\">"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { buf.append("Good, your node is not backed off from any peers!<br/>\n"); } else { buf.append("<ul>\n"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { buf.append("<li>").append(routingBackoffReasons[i]).append(": ").append(reasonCount).append("</li>\n"); } } buf.append("</ul>\n"); } buf.append("</div>"); buf.append("</div>\n"); } buf.append("</td></tr></table>\n"); buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("My Peers"); if(advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { buf.append(" <a href=\"displaymessagetypes.html\">(more detailed)</a>"); } } buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); StringBuffer buf2 = new StringBuffer(1024); buf2.append("<table class=\"darknet_connections\">\n"); buf2.append(" <tr>\n"); buf2.append(" <th></th>\n"); buf2.append(" <th>Status</th>\n"); buf2.append(" <th><span title=\"Click on the nodename link to send a N2NTM\" style=\"border-bottom:1px dotted;cursor:help;\">Name</span></th>\n"); if(advancedEnabled) { buf2.append(" <th><span title=\"Address:Port\" style=\"border-bottom:1px dotted;cursor:help;\">Address</span></th>\n"); } buf2.append(" <th>Version</th>\n"); if(advancedEnabled) { buf2.append(" <th>Location</th>\n"); buf2.append(" <th><span title=\"Temporarily disconnected. Other node busy? Wait time(s) remaining/total\" style=\"border-bottom:1px dotted;cursor:help;\">Backoff</span></th>\n"); } buf2.append(" <th><span title=\"How long since the node was last seen\" style=\"border-bottom:1px dotted;cursor:help;\">Idle</span></th>\n"); buf2.append(" </tr>\n"); if (peerNodes.length == 0) { buf2.append("<tr><td colspan=\"8\">Freenet can't work - you have not added any peers so far. <a href=\"/\">Go here</a> and read the top infobox to see how it's done.</td></tr>\n"); buf2.append("</table>\n"); // buf.append(buf2); } else { // Create array Object[][] rows = new Object[peerNodes.length][]; for(int i=0;i<peerNodes.length;i++) { PeerNode pn = peerNodes[i]; long routingBackedOffUntil = pn.getRoutingBackedOffUntil(); boolean routingBackedOffNow = (now < routingBackedOffUntil); int backoff = (int)(Math.max(routingBackedOffUntil - now, 0)); // Don't list the backoff as zero before it's actually zero if(backoff > 0 && backoff < 1000 ) backoff = 1000; // Elements must be HTML encoded. Object[] row = new Object[10]; // where [0] is the pn object and 9 is the node name only for sorting! rows[i] = row; Object status = new Integer(pn.getPeerNodeStatus()); long idle = pn.lastReceivedPacketTime(); if(((Integer) status).intValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) idle = pn.getPeerAddedTime(); String lastBackoffReasonOutputString = ""; if(advancedEnabled) { String backoffReason = pn.getLastBackoffReason(); if( backoffReason != null ) { lastBackoffReasonOutputString = "/"+backoffReason; } else { lastBackoffReasonOutputString = "/"; } } String avgPingTimeString = ""; if(advancedEnabled) { if(pn.isConnected()) { avgPingTimeString = " ("+(int) pn.averagePingTime()+"ms)"; } } String VersionPrefixString = ""; String VersionString = ""; String VersionSuffixString = ""; if(pn.publicInvalidVersion() || pn.publicReverseInvalidVersion()) { VersionPrefixString = "<span class=\"peer_version_problem\">"; VersionSuffixString = "</span>"; } String NamePrefixString = ""; String NameSuffixString = ""; if(pn.isConnected()) { NamePrefixString = "<a href=\"/send_n2ntm/?peernode_hashcode="+pn.hashCode()+"\">"; NameSuffixString = "</a>"; } if(advancedEnabled) { VersionString = HTMLEncoder.encode(pn.getVersion()); } else { VersionString = HTMLEncoder.encode(pn.getSimpleVersion()); } row[0] = pn; row[1] = "<input type=\"checkbox\" name=\"delete_node_"+pn.hashCode()+"\" />"; row[2] = status; row[3] = NamePrefixString+HTMLEncoder.encode(pn.getName())+NameSuffixString; row[4] = ( pn.getDetectedPeer() != null ? HTMLEncoder.encode(pn.getDetectedPeer().toString()) : "(address unknown)" ) + avgPingTimeString; row[5] = VersionPrefixString+VersionString+VersionSuffixString; row[6] = new Double(pn.getLocation().getValue()); row[7] = backoff/1000 + "/" + pn.getRoutingBackoffLength()/1000+lastBackoffReasonOutputString; row[8] = idleToString(now, idle, ((Integer) status).intValue()); row[9] = HTMLEncoder.encode(pn.getName()); } // Sort array Arrays.sort(rows, new MyComparator()); // Convert status codes into status strings for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; int x = ((Integer) row[2]).intValue(); String arkAsterisk = ""; if(advancedEnabled) { if(((PeerNode) row[0]).isFetchingARK()) { arkAsterisk = "*"; } } row[2] = "<span class=\""+((PeerNode) row[0]).getPeerNodeStatusCSSClassName()+"\">"+((PeerNode) row[0]).getPeerNodeStatusString()+arkAsterisk+"</span>"; } // Turn array into HTML for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; buf2.append("<tr>"); for(int j=1;j<row.length;j++) { // skip index 0 as it's the PeerNode object if(j == 9) { // skip index 9 as it's used for sorting purposes only continue; } if(!advancedEnabled) { // if not in advanced Darknet page output mode if( j == 4 || j == 6 || j == 7 ) { // skip IP address/name, location and backoff times continue; } } buf2.append("<td>"+row[j]+"</td>"); } buf2.append("</tr>\n"); if (path.endsWith("displaymessagetypes.html")) { buf2.append("<tr class=\"messagetypes\"><td colspan=\"8\">\n"); buf2.append("<table class=\"sentmessagetypes\">\n"); buf2.append("<tr><th>Sent Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("<table class=\"receivedmessagetypes\">\n"); buf2.append("<tr><th>Received Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("</td></tr>\n"); } } buf2.append("</table>\n"); // buf.append(buf2); // buf.append("<input type=\"submit\" name=\"remove\" value=\"Remove selected peers\" />"); if(advancedEnabled) { buf.append(" <span class=\"darknet_connections\">* Requesting ARK</span>\n"); } buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("</form>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); // new peer addition box buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Add another peer\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); buf.append("Reference:<br />\n"); buf.append("<textarea id=\"reftext\" name=\"ref\" rows=\"8\" cols=\"74\"></textarea>\n"); buf.append("<br />\n"); buf.append("or URL:\n"); buf.append("<input id=\"refurl\" type=\"text\" name=\"url\" />\n"); buf.append("<br />\n"); buf.append("or file:\n"); buf.append("<input id=\"reffile\" type=\"file\" name=\"reffile\" />\n"); buf.append("<br />\n"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("<input type=\"submit\" name=\"add\" value=\"Add\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // our reference buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("<a href=\"myref.txt\">My Reference</a>\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<pre id=\"reference\">\n"); buf.append(HTMLEncoder.encode(this.node.exportPublicFieldSet().toString())); buf.append("</pre>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/a742c7e613e032e408b0845c7f2ddc5edbddba64/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
5830,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
1892,
1681,
273,
394,
6674,
12,
2163,
3247,
1769,
9506,
202,
759,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
4385,
16,
315,
40,
1313,
2758,
19622,
414,
8863,
9506,
202,
759,
9852,
5,
1660,
1608,
2690,
13752,
4602,
202,
202,
6813,
907,
8526,
4261,
3205,
273,
756,
18,
588,
40,
1313,
2758,
9314,
5621,
9506,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
6494,
16111,
1526,
273,
756,
18,
588,
774,
361,
1810,
2170,
7675,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
2159,
18,
11798,
87,
18,
869,
4733,
4353,
12,
4385,
1769,
9506,
202,
20308,
756,
1267,
924,
1195,
202,
202,
474,
12986,
3595,
6763,
950,
273,
261,
474,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
5830,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2
] |
|
if (i < myParametersNotNull.length && myParametersNotNull[i] && !memState.applyNotNull(arg)) { runner.onPassingNullParameter(myArgs[myArgs.length - i - 1]);
|
final int revIdx = myArgs.length - i - 1; if (i < myParametersNotNull.length && myParametersNotNull[revIdx] && !memState.applyNotNull(arg)) { runner.onPassingNullParameter(myArgs[revIdx]);
|
public DfaInstructionState[] apply(DataFlowRunner runner, DfaMemoryState memState) { final @NotNull DfaValue qualifier = memState.pop(); for (int i = 0; i < myArgs.length; i++) { final DfaValue arg = memState.pop(); if (i < myParametersNotNull.length && myParametersNotNull[i] && !memState.applyNotNull(arg)) { runner.onPassingNullParameter(myArgs[myArgs.length - i - 1]); // Parameters on stack are reverted. return new DfaInstructionState[0]; } } try { if (!memState.applyNotNull(qualifier)) { runner.onInstructionProducesNPE(this); return new DfaInstructionState[0]; } return new DfaInstructionState[]{new DfaInstructionState(runner.getInstruction(getIndex() + 1), memState)}; } finally { pushResult(memState); memState.flushFields(runner); } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/aa03e13c5b5fd4c54108772efc0eacef547f3e5e/MethodCallInstruction.java/clean/source/com/intellij/codeInspection/dataFlow/instructions/MethodCallInstruction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
463,
507,
11983,
1119,
8526,
2230,
12,
751,
5249,
9709,
8419,
16,
463,
507,
6031,
1119,
1663,
1119,
13,
288,
565,
727,
632,
5962,
463,
507,
620,
12327,
273,
1663,
1119,
18,
5120,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3399,
2615,
18,
2469,
31,
277,
27245,
288,
1377,
727,
463,
507,
620,
1501,
273,
1663,
1119,
18,
5120,
5621,
1377,
309,
261,
77,
411,
3399,
2402,
5962,
18,
2469,
597,
3399,
2402,
5962,
63,
77,
65,
597,
401,
3917,
1119,
18,
9010,
5962,
12,
3175,
3719,
288,
3639,
8419,
18,
265,
6433,
310,
2041,
1662,
12,
4811,
2615,
63,
4811,
2615,
18,
2469,
300,
277,
300,
404,
19226,
368,
7012,
603,
2110,
854,
15226,
329,
18,
3639,
327,
394,
463,
507,
11983,
1119,
63,
20,
15533,
1377,
289,
565,
289,
565,
775,
288,
1377,
309,
16051,
3917,
1119,
18,
9010,
5962,
12,
28157,
3719,
288,
3639,
8419,
18,
265,
11983,
27291,
50,
1423,
12,
2211,
1769,
3639,
327,
394,
463,
507,
11983,
1119,
63,
20,
15533,
1377,
289,
1377,
327,
394,
463,
507,
11983,
1119,
63,
7073,
2704,
463,
507,
11983,
1119,
12,
18156,
18,
588,
11983,
12,
588,
1016,
1435,
397,
404,
3631,
1663,
1119,
16869,
31,
565,
289,
565,
3095,
288,
1377,
1817,
1253,
12,
3917,
1119,
1769,
1377,
1663,
1119,
18,
11330,
2314,
12,
18156,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
463,
507,
11983,
1119,
8526,
2230,
12,
751,
5249,
9709,
8419,
16,
463,
507,
6031,
1119,
1663,
1119,
13,
288,
565,
727,
632,
5962,
463,
507,
620,
12327,
273,
1663,
1119,
18,
5120,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3399,
2615,
18,
2469,
31,
277,
27245,
288,
1377,
727,
463,
507,
620,
1501,
273,
1663,
1119,
18,
5120,
5621,
1377,
309,
261,
77,
411,
3399,
2402,
5962,
18,
2469,
597,
3399,
2402,
5962,
63,
77,
65,
597,
401,
3917,
1119,
18,
9010,
5962,
12,
3175,
3719,
288,
3639,
8419,
18,
265,
6433,
310,
2041,
1662,
12,
4811,
2615,
63,
4811,
2615,
18,
2469,
300,
277,
300,
404,
19226,
368,
7012,
603,
2110,
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
] |
||
RubyId attrIV = getRuby().intern("@" + name);
|
RubyId attrIV = getRuby().intern("@" + name);
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10759,
12,
54,
10340,
548,
612,
16,
1250,
855,
16,
1250,
1045,
16,
1250,
431,
13,
288,
202,
202,
759,
19817,
30010,
28600,
683,
313,
273,
4170,
10340,
7675,
588,
30010,
5621,
202,
202,
474,
1158,
338,
273,
5245,
18,
3417,
2294,
67,
14939,
31,
202,
202,
430,
261,
338,
13,
288,
1082,
202,
430,
261,
588,
54,
10340,
7675,
588,
2459,
1305,
3876,
1435,
422,
5245,
18,
19444,
67,
20055,
13,
288,
9506,
202,
2135,
338,
273,
5245,
18,
3417,
2294,
67,
20055,
31,
1082,
202,
97,
469,
309,
261,
588,
54,
10340,
7675,
588,
2459,
1305,
3876,
1435,
422,
5245,
18,
19444,
67,
3373,
26729,
13,
288,
9506,
202,
2135,
338,
273,
5245,
18,
3417,
2294,
67,
3373,
26729,
31,
1082,
202,
97,
469,
288,
9506,
202,
2135,
338,
273,
5245,
18,
3417,
2294,
67,
14939,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
780,
508,
273,
612,
18,
869,
461,
5621,
202,
202,
54,
10340,
548,
1604,
8188,
273,
4170,
10340,
7675,
267,
798,
2932,
27614,
397,
508,
1769,
202,
202,
430,
261,
896,
13,
288,
1082,
202,
1289,
1305,
12,
350,
16,
394,
2029,
1733,
12,
588,
54,
10340,
1435,
2934,
2704,
45,
1537,
12,
1747,
8188,
3631,
1158,
338,
1769,
1082,
202,
759,
612,
18,
8507,
1649,
5621,
1082,
202,
644,
454,
12,
588,
54,
10340,
7675,
267,
798,
2932,
2039,
67,
9665,
6,
3631,
612,
18,
869,
5335,
10663,
202,
202,
97,
202,
202,
430,
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,
225,
202,
482,
918,
10759,
12,
54,
10340,
548,
612,
16,
1250,
855,
16,
1250,
1045,
16,
1250,
431,
13,
288,
202,
202,
759,
19817,
30010,
28600,
683,
313,
273,
4170,
10340,
7675,
588,
30010,
5621,
202,
202,
474,
1158,
338,
273,
5245,
18,
3417,
2294,
67,
14939,
31,
202,
202,
430,
261,
338,
13,
288,
1082,
202,
430,
261,
588,
54,
10340,
7675,
588,
2459,
1305,
3876,
1435,
422,
5245,
18,
19444,
67,
20055,
13,
288,
9506,
202,
2135,
338,
273,
5245,
18,
3417,
2294,
67,
20055,
31,
1082,
202,
97,
469,
309,
261,
588,
54,
10340,
7675,
588,
2459,
1305,
3876,
1435,
422,
5245,
18,
19444,
67,
3373,
26729,
13,
288,
9506,
202,
2135,
338,
273,
5245,
2
] |
protected void calculateChecksum(Patch p,int start,int end,int ofs)
|
protected static void calculateChecksum(Patch p,int start,int end,int ofs)
|
protected void calculateChecksum(Patch p,int start,int end,int ofs) { //This synth does not use a checksum }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/fdbee42aa3689ba7bb6d6df12004785dd534b97e/AlesisQSMixDriver.java/buggy/JSynthLib/synthdrivers/AlesisQS/AlesisQSMixDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
918,
4604,
10723,
12,
7332,
293,
16,
474,
787,
16,
474,
679,
16,
474,
26927,
13,
225,
288,
565,
368,
2503,
6194,
451,
1552,
486,
999,
279,
6697,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
918,
4604,
10723,
12,
7332,
293,
16,
474,
787,
16,
474,
679,
16,
474,
26927,
13,
225,
288,
565,
368,
2503,
6194,
451,
1552,
486,
999,
279,
6697,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
global);
|
type);
|
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), global); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
5498,
907,
12,
529,
16,
11794,
2027,
18,
14056,
12,
19403,
3631,
11794,
618,
1769,
565,
309,
261,
5906,
480,
446,
13,
1377,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
12,
19403,
1769,
1377,
289,
565,
309,
261,
4285,
480,
446,
13,
1377,
288,
3639,
325,
18,
4285,
273,
1024,
18,
14056,
12,
19403,
1769,
1377,
289,
565,
327,
325,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
5498,
907,
12,
529,
16,
11794,
2027,
18,
14056,
12,
19403,
3631,
11794,
618,
1769,
565,
309,
261,
5906,
480,
446,
13,
1377,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
12,
19403,
1769,
1377,
289,
565,
309,
261,
4285,
480,
446,
13,
1377,
288,
3639,
325,
18,
4285,
273,
1024,
18,
14056,
12,
19403,
1769,
1377,
289,
565,
327,
325,
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
] |
this.sendHtml( req, res, vm, ADD_IP_TEMPLATE ); return; } if ( req.getParameter( "CANCEL" ) != null ) { res.sendRedirect( "AdminManager" );
|
super.sendHtml( req, res, vm, ADD_IP_TEMPLATE );
|
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets check if the user is an admin, otherwise throw him out. IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( user.isSuperAdmin() == false ) { String header = "Error in AdminCounter."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/global/no_administrator")+"<br>"; this.log( header + "- user is not an administrator" ); new AdminError( req, res, header, msg ); return; } // ******* GENERATE THE ADD A NEW IP-ACCESS TO DB ********** if ( req.getParameter( "ADD_IP_ACCESS" ) != null ) { // Lets get all USERS from DB String[] usersArr = imcref.sqlProcedure( "GetAllUsersInList", new String[0] ); Vector usersV = new Vector( java.util.Arrays.asList( usersArr ) ); String usersOption = Html.createOptionList( "", usersV ); // Lets generate the html page VariableManager vm = new VariableManager(); vm.addProperty( "USERS_LIST", usersOption ); this.sendHtml( req, res, vm, ADD_IP_TEMPLATE ); return; } // *************** RETURN TO ADMINMANAGER ***************** if ( req.getParameter( "CANCEL" ) != null ) { res.sendRedirect( "AdminManager" ); return; } // ******* RETURN TO THE NORMAL ADMIN IPACCESS PAGE ********** else if ( req.getParameter( "CANCEL_ADD_IP" ) != null || req.getParameter( "IP_CANCEL_DELETE" ) != null ) { res.sendRedirect( "AdminIpAccess?action=start" ); return; } // ******* RETURN TO THE NORMAL ADMIN IPACCESS PAGE ********** else if ( req.getParameter( "IP_CANCEL_DELETE" ) != null ) { res.sendRedirect( "AdminIpAccess?action=start" ); return; } // ******* ADD A NEW IP-ACCESS TO DB ********** else if ( req.getParameter( "ADD_NEW_IP_ACCESS" ) != null ) { log( "Now's ADD_IP_ACCESS running" ); // Lets get the parameters from html page and validate them Properties params = this.getAddParameters( req ); //log("PARAMS: " + params.toString()) ; params = this.validateParameters( params, req, res, imcref, user); if ( params == null ) return; imcref.sqlUpdateProcedure( "IPAccessAdd", new String[]{params.getProperty( "USER_ID" ), params.getProperty( "IP_START" ), params.getProperty( "IP_END" )} ); res.sendRedirect( "AdminIpAccess?action=start" ); return; } // ******** SAVE AN EXISTING IP-ACCESS TO DB *************** else if ( req.getParameter( "RESAVE_IP_ACCESS" ) != null ) { // Lets get all the ip_access id:s String[] reSavesIds = this.getEditedIpAccesses( req ); // Lets resave all marked ip-accesses. if ( reSavesIds != null ) { for ( int i = 0; i < reSavesIds.length; i++ ) { log( "ResaveId: " + reSavesIds[i] ); String tmpId = reSavesIds[i]; // Lets get all edited fields for that ip-access String ipAccessId = req.getParameter( "IP_ACCESS_ID_" + tmpId ); String ipUserId = req.getParameter( "IP_USER_ID_" + tmpId ); String ipStart = req.getParameter( "IP_START_" + tmpId ); String ipEnd = req.getParameter( "IP_END_" + tmpId ); long ipStartInt = Utility.ipStringToLong( ipStart ); long ipEndInt = Utility.ipStringToLong( ipEnd ); imcref.sqlUpdateProcedure( "IPAccessUpdate", new String[]{ipAccessId, ipUserId, "" + ipStartInt, "" + ipEndInt} ); } } this.doGet( req, res ); return; } // ***** GENERATE THE LAST DELETE IP-ACCESS WARNING PAGE ********** else if ( req.getParameter( "IP_WARN_DELETE" ) != null ) { // Lets get the parameters from html page and validate them HttpSession session = req.getSession( false ); if ( session != null ) { Enumeration enumNames = req.getParameterNames(); while ( enumNames.hasMoreElements() ) { String paramName = (String)( enumNames.nextElement() ); String[] arr = req.getParameterValues( paramName ); session.setAttribute( "IP." + paramName, arr ); } } else { String header = "Error in AdminIpAccess, delete. "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminIpAccess/no_session") + "<br>"; this.log( header + "- session could not be created"); new AdminError( req, res, header, msg ); return; } // Lets generate the last warning html page VariableManager vm = new VariableManager(); this.sendHtml( req, res, vm, WARN_DEL_IP_TEMPLATE ); return; } // ******** DELETE A IP ACCESS FROM DB *************** else if ( req.getParameter( "DEL_IP_ACCESS" ) != null ) { HttpSession session = req.getSession( false ); if ( session != null ) { log( "Ok, ta bort en Ip-access: " + session.toString() ); String[] deleteIds = (String[])session.getAttribute( "IP.EDIT_IP_ACCESS" ); // Lets resave all marked ip-accesses. if ( deleteIds != null ) { for ( int i = 0; i < deleteIds.length; i++ ) { String tmpId = "IP.IP_ACCESS_ID_" + deleteIds[i]; String[] tmpArr = (String[])session.getAttribute( tmpId ); String ipAccessId = tmpArr[0]; imcref.sqlUpdateProcedure( "IPAccessDelete", new String[]{ipAccessId} ); } } } else { String header = "Error in AdminIpAccess, delete."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminIpAccess/no_session") + "<br>"; this.log( header + "- session could not be created" ); new AdminError( req, res, header, msg ); return; } this.doGet( req, res ); return; } } // end HTTP POST
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ab75311a112782af0e51c28c07d788fe238b5d09/AdminIpAccess.java/buggy/server/src/com/imcode/imcms/servlet/superadmin/AdminIpAccess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
5411,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
866,
309,
326,
729,
353,
392,
3981,
16,
3541,
604,
366,
381,
596,
18,
3639,
6246,
39,
18348,
709,
71,
1734,
273,
4257,
2081,
18,
588,
3445,
39,
18348,
5621,
3639,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
1111,
11272,
3639,
309,
261,
729,
18,
291,
8051,
4446,
1435,
422,
629,
262,
288,
5411,
514,
1446,
273,
315,
668,
316,
7807,
4789,
1199,
31,
5411,
6183,
3303,
4738,
273,
709,
71,
1734,
18,
588,
3779,
2297,
12,
729,
11272,
5411,
514,
1234,
273,
3303,
4738,
18,
588,
1396,
2932,
1636,
19,
23231,
19,
6347,
19,
2135,
67,
3666,
14207,
7923,
9078,
32,
2848,
2984,
31,
5411,
333,
18,
1330,
12,
1446,
397,
3701,
729,
353,
486,
392,
22330,
6,
11272,
5411,
394,
7807,
668,
12,
1111,
16,
400,
16,
1446,
16,
1234,
11272,
5411,
327,
31,
3639,
289,
3639,
368,
380,
11345,
13679,
1777,
12786,
11689,
432,
12887,
2971,
17,
13204,
8493,
2383,
380,
1644,
14,
3639,
309,
261,
1111,
18,
588,
1662,
12,
315,
8355,
67,
2579,
67,
13204,
6,
262,
480,
446,
262,
288,
5411,
368,
511,
2413,
336,
777,
7443,
55,
628,
2383,
5411,
514,
8526,
3677,
5715,
273,
709,
71,
1734,
18,
4669,
17213,
12,
315,
21413,
6588,
24218,
3113,
394,
514,
63,
20,
65,
11272,
5411,
5589,
3677,
58,
273,
394,
5589,
12,
2252,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
5411,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
866,
309,
326,
729,
353,
392,
3981,
16,
3541,
604,
366,
381,
596,
18,
3639,
6246,
39,
18348,
709,
71,
1734,
273,
4257,
2081,
18,
588,
3445,
39,
18348,
5621,
3639,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
1111,
11272,
3639,
309,
261,
729,
18,
291,
8051,
4446,
1435,
422,
629,
262,
288,
5411,
514,
1446,
273,
315,
668,
316,
7807,
4789,
1199,
31,
5411,
6183,
3303,
4738,
273,
709,
71,
1734,
18,
588,
3779,
2297,
12,
729,
11272,
5411,
514,
1234,
273,
3303,
4738,
18,
588,
1396,
2932,
1636,
19,
23231,
2
] |
public boolean execute() throws SQLException
|
public boolean execute(String p_sql) throws SQLException
|
public boolean execute() throws SQLException { if (isFunction && !returnTypeSet) throw new PSQLException("postgresql.call.noreturntype"); if (isFunction) { // set entry 1 to dummy entry.. m_binds[0] = ""; // dummy entry which ensured that no one overrode m_bindTypes[0] = PG_TEXT; // and calls to setXXX (2,..) really went to first arg in a function call.. } // New in 7.1, if we have a previous resultset then force it to close // This brings us nearer to compliance, and helps memory management. // Internal stuff will call ExecSQL directly, bypassing this. if (result != null) { java.sql.ResultSet rs = getResultSet(); if (rs != null) rs.close(); } //Use server prepared statements if directed if (m_useServerPrepare) { if (m_statementName == null) { m_statementName = "JDBC_STATEMENT_" + m_preparedCount++; m_origSqlFragments = new String[m_sqlFragments.length]; m_executeSqlFragments = new String[m_sqlFragments.length]; System.arraycopy(m_sqlFragments, 0, m_origSqlFragments, 0, m_sqlFragments.length); m_executeSqlFragments[0] = "EXECUTE " + m_statementName; if (m_sqlFragments.length > 1) { m_executeSqlFragments[0] = m_executeSqlFragments[0] + "("; for (int i = 1; i < m_bindTypes.length; i++) { m_executeSqlFragments[i] = ", "; } m_executeSqlFragments[m_bindTypes.length] = ")"; } synchronized (sbuf) { sbuf.setLength(0); sbuf.append("PREPARE "); sbuf.append(m_statementName); if (m_origSqlFragments.length > 1) { sbuf.append("("); for (int i = 0; i < m_bindTypes.length - 1; i++) { sbuf.append(m_bindTypes[i]); sbuf.append(", "); } sbuf.append(m_bindTypes[m_bindTypes.length - 1]); sbuf.append(")"); } sbuf.append(" AS "); sbuf.append(m_origSqlFragments[0]); for (int i = 1; i < m_origSqlFragments.length; i++) { sbuf.append(" $"); sbuf.append(i); sbuf.append(" "); sbuf.append(m_origSqlFragments[i]); } sbuf.append("; "); sbuf.append(m_executeSqlFragments[0]); m_sqlFragments[0] = sbuf.toString(); System.arraycopy(m_executeSqlFragments, 1, m_sqlFragments, 1, m_sqlFragments.length - 1); } } else { m_sqlFragments = m_executeSqlFragments; } } // New in 7.1, pass Statement so that ExecSQL can customise to it result = ((AbstractJdbc1Connection)connection).ExecSQL(m_sqlFragments, m_binds, (java.sql.Statement)this); //If we are executing a callable statement function set the return data if (isFunction) { if (!((AbstractJdbc1ResultSet)result).reallyResultSet()) throw new PSQLException("postgresql.call.noreturnval"); if (!result.next ()) throw new PSQLException ("postgresql.call.noreturnval"); callResult = result.getObject(1); int columnType = result.getMetaData().getColumnType(1); if (columnType != functionReturnType) throw new PSQLException ("postgresql.call.wrongrtntype", new Object[]{ "java.sql.Types=" + columnType, "java.sql.Types=" + functionReturnType }); result.close (); return true; } else { return (result != null && ((AbstractJdbc1ResultSet)result).reallyResultSet()); } }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/030e8fc4f0812d863c69c499b126fd96385d75c7/AbstractJdbc1Statement.java/buggy/org/postgresql/jdbc1/AbstractJdbc1Statement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
291,
2083,
597,
401,
2463,
559,
694,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
1991,
18,
82,
479,
20922,
723,
8863,
202,
202,
430,
261,
291,
2083,
13,
202,
202,
95,
368,
444,
1241,
404,
358,
9609,
1241,
838,
1082,
202,
81,
67,
4376,
87,
63,
20,
65,
273,
1408,
31,
368,
9609,
1241,
1492,
3387,
72,
716,
1158,
1245,
1879,
303,
323,
1082,
202,
81,
67,
4376,
2016,
63,
20,
65,
273,
22116,
67,
5151,
31,
1082,
202,
759,
471,
4097,
358,
444,
15639,
261,
22,
16,
838,
13,
8654,
16343,
358,
1122,
1501,
316,
279,
445,
745,
838,
202,
202,
97,
202,
202,
759,
1166,
316,
2371,
18,
21,
16,
309,
732,
1240,
279,
2416,
26539,
1508,
2944,
518,
358,
1746,
202,
202,
759,
1220,
5186,
899,
584,
13378,
264,
358,
29443,
16,
471,
21814,
3778,
11803,
18,
202,
202,
759,
3186,
10769,
903,
745,
3889,
3997,
5122,
16,
17587,
310,
333,
18,
202,
202,
430,
261,
2088,
480,
446,
13,
202,
202,
95,
1082,
202,
6290,
18,
4669,
18,
13198,
3597,
273,
8601,
694,
5621,
1082,
202,
430,
261,
5453,
480,
446,
13,
9506,
202,
5453,
18,
4412,
5621,
202,
202,
97,
202,
202,
759,
3727,
1438,
8208,
6317,
309,
20830,
202,
202,
430,
261,
81,
67,
1202,
2081,
7543,
13,
202,
202,
95,
1082,
202,
430,
261,
81,
67,
11516,
461,
422,
446,
13,
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,
1250,
1836,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
291,
2083,
597,
401,
2463,
559,
694,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
1991,
18,
82,
479,
20922,
723,
8863,
202,
202,
430,
261,
291,
2083,
13,
202,
202,
95,
368,
444,
1241,
404,
358,
9609,
1241,
838,
1082,
202,
81,
67,
4376,
87,
63,
20,
65,
273,
1408,
31,
368,
9609,
1241,
1492,
3387,
72,
716,
1158,
1245,
1879,
303,
323,
1082,
202,
81,
67,
4376,
2016,
63,
20,
65,
273,
22116,
67,
5151,
31,
1082,
202,
759,
471,
4097,
358,
444,
15639,
261,
22,
16,
838,
13,
8654,
16343,
358,
1122,
1501,
316,
279,
445,
745,
838,
202,
2
] |
IJavaProject javaProj, IFile file, ICompilationUnit compilationUnit ) {
|
IJavaProject javaProj, IFile[] files, ICompilationUnit compilationUnit, boolean isFullBuild) { assert ( files != null && compilationUnit == null ) || ( files == null && compilationUnit != null ) : "either compilation unit is null or set of files is, but not both";
|
private static APTResult runAPT(final List<AnnotationProcessorFactory> factories, IJavaProject javaProj, IFile file, ICompilationUnit compilationUnit ) { APTDispatchRunnable runnable; ISchedulingRule schedulingRule; if ( file != null ) { runnable = new APTDispatchRunnable( file, javaProj, factories ); schedulingRule = javaProj.getResource(); } else { runnable = new APTDispatchRunnable( compilationUnit, javaProj, factories ); schedulingRule = null; } try { IWorkspace w = ResourcesPlugin.getWorkspace(); w.run( runnable, schedulingRule, IWorkspace.AVOID_UPDATE, null ); } catch( CoreException ce ) { AptPlugin.log(ce, "Could not run APT"); //$NON-NLS-1$ } return runnable.getResult(); }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/baf433f0226e8b9036b18a28d560e5a42cb8b949/APTDispatch.java/clean/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
432,
1856,
1253,
1086,
37,
1856,
12,
6385,
987,
32,
3257,
5164,
1733,
34,
17456,
16,
1082,
202,
45,
5852,
4109,
2252,
626,
78,
16,
467,
812,
585,
16,
1875,
202,
45,
19184,
2802,
8916,
2802,
262,
202,
95,
9506,
202,
37,
1856,
5325,
20013,
14685,
31,
202,
202,
5127,
13252,
2175,
21895,
2175,
31,
202,
202,
430,
261,
585,
480,
446,
262,
202,
202,
95,
9506,
14685,
273,
394,
432,
1856,
5325,
20013,
12,
585,
16,
2252,
626,
78,
16,
17456,
11272,
9506,
21895,
2175,
273,
2252,
626,
78,
18,
588,
1420,
5621,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2681,
6914,
273,
394,
432,
1856,
5325,
20013,
12,
8916,
2802,
16,
2252,
626,
78,
16,
17456,
11272,
1082,
202,
87,
13252,
2175,
273,
446,
31,
202,
202,
97,
9506,
202,
698,
202,
202,
95,
1082,
202,
45,
8241,
341,
273,
8128,
3773,
18,
588,
8241,
5621,
1082,
202,
91,
18,
2681,
12,
14685,
16,
21895,
2175,
16,
467,
8241,
18,
5856,
12945,
67,
8217,
16,
446,
11272,
202,
202,
97,
202,
202,
14683,
12,
30015,
5898,
262,
202,
202,
95,
1082,
202,
37,
337,
3773,
18,
1330,
12,
311,
16,
315,
4445,
486,
1086,
432,
1856,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
6862,
202,
2463,
14685,
18,
588,
1253,
5621,
202,
97,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
432,
1856,
1253,
1086,
37,
1856,
12,
6385,
987,
32,
3257,
5164,
1733,
34,
17456,
16,
1082,
202,
45,
5852,
4109,
2252,
626,
78,
16,
467,
812,
585,
16,
1875,
202,
45,
19184,
2802,
8916,
2802,
262,
202,
95,
9506,
202,
37,
1856,
5325,
20013,
14685,
31,
202,
202,
5127,
13252,
2175,
21895,
2175,
31,
202,
202,
430,
261,
585,
480,
446,
262,
202,
202,
95,
9506,
14685,
273,
394,
432,
1856,
5325,
20013,
12,
585,
16,
2252,
626,
78,
16,
17456,
11272,
9506,
21895,
2175,
273,
2252,
626,
78,
18,
588,
1420,
5621,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2681,
6914,
273,
394,
432,
1856,
5325,
20013,
12,
8916,
2
] |
if (toolBarMgr != null) toolBarMgr.setVisible(set); }
|
if (toolBarMgr != null) toolBarMgr.setVisible(set); }
|
protected void setActive(boolean set) { active = set; if (menuMgr != null) menuMgr.setVisible(set); if (statusLineMgr != null) statusLineMgr.setVisible(set); if (toolBarMgr != null) toolBarMgr.setVisible(set); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f1c8b0aa355c00a6c82a289c808984de6778bfca/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
20669,
12,
6494,
444,
13,
288,
3639,
2695,
273,
444,
31,
3639,
309,
261,
5414,
9455,
480,
446,
13,
5411,
3824,
9455,
18,
542,
6207,
12,
542,
1769,
3639,
309,
261,
2327,
1670,
9455,
480,
446,
13,
5411,
1267,
1670,
9455,
18,
542,
6207,
12,
542,
1769,
3639,
309,
261,
6738,
5190,
9455,
480,
446,
13,
5411,
5226,
5190,
9455,
18,
542,
6207,
12,
542,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
20669,
12,
6494,
444,
13,
288,
3639,
2695,
273,
444,
31,
3639,
309,
261,
5414,
9455,
480,
446,
13,
5411,
3824,
9455,
18,
542,
6207,
12,
542,
1769,
3639,
309,
261,
2327,
1670,
9455,
480,
446,
13,
5411,
1267,
1670,
9455,
18,
542,
6207,
12,
542,
1769,
3639,
309,
261,
6738,
5190,
9455,
480,
446,
13,
5411,
5226,
5190,
9455,
18,
542,
6207,
12,
542,
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
] |
ExecSQL("end");
|
ExecSQL(null, "end");
|
public void setAutoCommit(boolean autoCommit) throws SQLException { if (this.autoCommit == autoCommit) return; if (autoCommit) ExecSQL("end"); else ExecSQL("begin"); this.autoCommit = autoCommit; }
|
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
225,
288,
565,
309,
261,
2211,
18,
6079,
5580,
422,
3656,
5580,
13,
1377,
327,
31,
565,
309,
261,
6079,
5580,
13,
1377,
3889,
3997,
12,
2011,
16,
315,
409,
8863,
565,
469,
1377,
3889,
3997,
2932,
10086,
8863,
565,
333,
18,
6079,
5580,
273,
3656,
5580,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
225,
288,
565,
309,
261,
2211,
18,
6079,
5580,
422,
3656,
5580,
13,
1377,
327,
31,
565,
309,
261,
6079,
5580,
13,
1377,
3889,
3997,
12,
2011,
16,
315,
409,
8863,
565,
469,
1377,
3889,
3997,
2932,
10086,
8863,
565,
333,
18,
6079,
5580,
273,
3656,
5580,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!s.equals("Foo::pang();Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException( "bad FooBar::used" );
|
if (!s.equals("Foo::pang();Bar::pong();Foo::pong();director_protected_FooBar::ping();")) throw new RuntimeException( "bad director_protected_FooBar::used" );
|
public static void main(String argv[]) { Bar b = new Bar(); Foo f = b.create(); FooBar fb = new FooBar(); FooBar2 fb2 = new FooBar2(); { String s = fb.used(); if (!s.equals("Foo::pang();Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException( "bad FooBar::used" ); } { String s = fb2.used(); if (!s.equals("FooBar2::pang();Bar::pong();Foo::pong();FooBar2::ping();")) throw new RuntimeException( "bad FooBar2::used" ); } { String s = b.pong(); if (!s.equals("Bar::pong();Foo::pong();Bar::ping();")) throw new RuntimeException( "bad Bar::pong" ); } { String s = f.pong(); if (!s.equals("Bar::pong();Foo::pong();Bar::ping();")) throw new RuntimeException(" bad Foo::pong" ); } { String s3 = fb.pong(); if (!s3.equals("Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException(" bad FooBar::pong" ); } try { Method method = b.getClass().getDeclaredMethod("ping", (java.lang.Class[])null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Bar::ping should be protected" ); method = f.getClass().getDeclaredMethod("ping", (java.lang.Class[])null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Foo::ping should be protected" ); } catch (NoSuchMethodException n) { throw new RuntimeException("NoSuchmethodException caught. Test failed."); } catch (SecurityException s) { throw new RuntimeException("SecurityException caught. Test failed."); } }
|
47242 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47242/676f166752f4d6323f0b425c6ade22b8185bdaba/director_protected_runme.java/buggy/SWIG/Examples/test-suite/java/director_protected_runme.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
16654,
324,
273,
394,
16654,
5621,
565,
23077,
284,
273,
324,
18,
2640,
5621,
565,
23077,
5190,
12754,
273,
394,
23077,
5190,
5621,
565,
23077,
5190,
22,
12754,
22,
273,
394,
23077,
5190,
22,
5621,
565,
288,
1377,
514,
272,
273,
12754,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
42,
5161,
2866,
84,
539,
5621,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
42,
5161,
5190,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
23077,
5190,
2866,
3668,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
12754,
22,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
42,
5161,
5190,
22,
2866,
84,
539,
5621,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
42,
5161,
5190,
22,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
23077,
5190,
22,
2866,
3668,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
324,
18,
500,
75,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
5190,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
16654,
2866,
500,
75,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
284,
18,
500,
75,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
5190,
2866,
1382,
26994,
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,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
16654,
324,
273,
394,
16654,
5621,
565,
23077,
284,
273,
324,
18,
2640,
5621,
565,
23077,
5190,
12754,
273,
394,
23077,
5190,
5621,
565,
23077,
5190,
22,
12754,
22,
273,
394,
23077,
5190,
22,
5621,
565,
288,
1377,
514,
272,
273,
12754,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
42,
5161,
2866,
84,
539,
5621,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
42,
5161,
5190,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
23077,
5190,
2866,
3668,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
12754,
22,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
2
] |
});
|
private int retrieveOffsetValue(Object[] arguments) { int result = -1; if(arguments.length > 1) { result = retrieveInt(ARGUMENT_OFFSET, arguments[1]); if(arguments.length > 2 && result == -1) { result = retrieveInt(ARGUMENT_OFFSET, arguments[2]); } } return result; } private int retrieveInt(String name, Object arg) { if(arg instanceof Integer) { return ((Integer)arg).intValue(); } else if(arg instanceof Map) { Object value = ((Map)arg).get(name); if(value instanceof Integer) { return ((Integer)value).intValue(); } } return -1; } });
|
protected Object doInvokeInternal(final Class clazz, String methodName, final Object[] arguments) { if(arguments.length == 0) return getHibernateTemplate().loadAll(clazz); final Object arg = arguments[0] instanceof GString ? arguments[0].toString() :arguments[0]; // if the arg is an instance of the class find by example if(arg instanceof String) { final String query = (String)arg; if(!query.matches( "from "+clazz.getName()+".*" )) { throw new GrailsQueryException("Invalid query ["+query+"] for domain class ["+clazz+"]"); } return super.getHibernateTemplate().executeFind( new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Query q = session.createQuery(query); Object[] queryArgs = null; int max = -1; if(arguments.length > 1) { if(arguments[1] instanceof List) { queryArgs = ((List)arguments[1]).toArray(); } else if(arguments[1].getClass().isArray()) { queryArgs = (Object[])arguments[1]; } } max = retrieveMaxValue(arguments); if(queryArgs != null) { for (int i = 0; i < queryArgs.length; i++) { if(queryArgs[0] instanceof GString) { q.setParameter(i,queryArgs[i].toString()); } else { q.setParameter(i, queryArgs[i]); } } } if(max > -1) { q.setMaxResults(max); } return q.list(); } private int retrieveMaxValue(Object[] arguments) { int max = -1; if(arguments.length > 1) { if(arguments[1] instanceof Integer) { max = ((Integer)arguments[1]).intValue(); } if(arguments.length > 2) { if(arguments[2] instanceof Integer) { max = ((Integer)arguments[2]).intValue(); } } } return max; } }); } if(clazz.isAssignableFrom( arg.getClass() )) { return super.getHibernateTemplate().executeFind( new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Example example = Example.create(arg) .ignoreCase(); Criteria crit = session.createCriteria(clazz); crit.add(example); return crit.list(); } }); } throw new MissingMethodException(methodName,clazz,arguments); }
|
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/eb420a51890989f6ca7f281725a19ebec728f77c/FindAllPersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindAllPersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
6385,
1033,
8526,
1775,
13,
288,
202,
202,
430,
12,
7099,
18,
2469,
422,
374,
13,
1082,
202,
2463,
7628,
24360,
2283,
7675,
945,
1595,
12,
830,
3638,
1769,
9506,
202,
6385,
1033,
1501,
273,
1775,
63,
20,
65,
1276,
611,
780,
692,
1775,
63,
20,
8009,
10492,
1435,
294,
7099,
63,
20,
15533,
9506,
202,
759,
309,
326,
1501,
353,
392,
791,
434,
326,
667,
1104,
635,
3454,
202,
202,
430,
12,
3175,
1276,
514,
13,
288,
1082,
202,
6385,
514,
843,
273,
261,
780,
13,
3175,
31,
1082,
202,
430,
12,
5,
2271,
18,
8436,
12,
315,
2080,
13773,
830,
3638,
18,
17994,
1435,
9078,
4509,
6,
8623,
288,
9506,
202,
12849,
394,
10812,
14573,
1138,
503,
2932,
1941,
843,
8247,
15,
2271,
9078,
65,
364,
2461,
667,
8247,
15,
830,
3638,
9078,
4279,
1769,
1082,
202,
97,
25083,
202,
2463,
2240,
18,
588,
44,
24360,
2283,
7675,
8837,
3125,
12,
394,
670,
24360,
2428,
1435,
288,
9506,
202,
482,
1033,
741,
382,
44,
24360,
12,
2157,
1339,
13,
1216,
670,
24360,
503,
16,
6483,
288,
6862,
6862,
6862,
1082,
202,
1138,
1043,
273,
1339,
18,
2640,
1138,
12,
2271,
1769,
6862,
202,
921,
8526,
843,
2615,
273,
446,
31,
6862,
202,
474,
943,
273,
300,
21,
31,
6862,
202,
430,
12,
7099,
18,
2469,
405,
404,
13,
288,
25083,
202,
430,
12,
7099,
63,
21,
65,
1276,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
6385,
1033,
8526,
1775,
13,
288,
202,
202,
430,
12,
7099,
18,
2469,
422,
374,
13,
1082,
202,
2463,
7628,
24360,
2283,
7675,
945,
1595,
12,
830,
3638,
1769,
9506,
202,
6385,
1033,
1501,
273,
1775,
63,
20,
65,
1276,
611,
780,
692,
1775,
63,
20,
8009,
10492,
1435,
294,
7099,
63,
20,
15533,
9506,
202,
759,
309,
326,
1501,
353,
392,
791,
434,
326,
667,
1104,
635,
3454,
202,
202,
430,
12,
3175,
1276,
514,
13,
288,
1082,
202,
6385,
514,
843,
273,
261,
780,
13,
3175,
31,
1082,
202,
430,
12,
5,
2271,
18,
8436,
12,
315,
2080,
13773,
830,
2
] |
public Icon getVisualRepresentation (Transferable t)
|
public Icon getVisualRepresentation(Transferable t)
|
public Icon getVisualRepresentation (Transferable t) { return visualRepresentation; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16011,
336,
25780,
13742,
12,
5912,
429,
268,
13,
225,
288,
565,
327,
11623,
13742,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16011,
336,
25780,
13742,
12,
5912,
429,
268,
13,
225,
288,
565,
327,
11623,
13742,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
vPhaseReport.addElement(r);
|
addReport(r);
|
public void addL3Smoke(int x, int y) { IBoard board = game.getBoard(); Coords smokeCoords = new Coords(x, y); IHex smokeHex = game.getBoard().getHex(smokeCoords); boolean infernoBurning = board.isInfernoBurning( smokeCoords ); Report r; if (smokeHex == null) { return; } // Have to check if it's inferno smoke or from a heavy/hardened building - heavy smoke from those if (infernoBurning || Building.MEDIUM < smokeHex.terrainLevel(Terrains.BUILDING)) { if (smokeHex.terrainLevel(Terrains.SMOKE) == 2){ //heavy smoke fills hex r = new Report(5180, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } else { if (smokeHex.terrainLevel(Terrains.SMOKE) == 1){ //heavy smoke overrides light smokeHex.removeTerrain(Terrains.SMOKE); } smokeHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.SMOKE, 2)); sendChangedHex(smokeCoords); r = new Report(5185, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } } else { if (smokeHex.terrainLevel(Terrains.SMOKE) == 2){ //heavy smoke overpowers light r = new Report(5190, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } else if (smokeHex.terrainLevel(Terrains.SMOKE) == 1){ //light smoke continue to fill hex r = new Report(5195, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } else { smokeHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.SMOKE, 1)); sendChangedHex(smokeCoords); //light smoke fills hex r = new Report(5200, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
48,
23,
9552,
3056,
12,
474,
619,
16,
509,
677,
13,
288,
3639,
467,
22233,
11094,
273,
7920,
18,
588,
22233,
5621,
3639,
10320,
87,
3029,
3056,
13089,
273,
394,
10320,
87,
12,
92,
16,
677,
1769,
3639,
467,
7037,
3029,
3056,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
4808,
3056,
13089,
1769,
3639,
1250,
12455,
2135,
38,
321,
310,
273,
11094,
18,
291,
382,
586,
2135,
38,
321,
310,
12,
3029,
3056,
13089,
11272,
3639,
8706,
436,
31,
3639,
309,
261,
4808,
3056,
7037,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
368,
21940,
358,
866,
309,
518,
1807,
12455,
2135,
3029,
3056,
578,
628,
279,
3904,
23935,
19,
20379,
275,
329,
10504,
300,
3904,
23935,
3029,
3056,
628,
5348,
3639,
309,
261,
25889,
2135,
38,
321,
310,
747,
3998,
310,
18,
15971,
2799,
411,
3029,
3056,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
20215,
1360,
3719,
288,
5411,
309,
261,
4808,
3056,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
7303,
3141,
41,
13,
422,
576,
15329,
7734,
368,
580,
23935,
3029,
3056,
21652,
3827,
7734,
436,
273,
394,
8706,
12,
25,
18278,
16,
8706,
18,
14939,
1769,
7734,
436,
18,
1289,
12,
4808,
3056,
13089,
18,
588,
22233,
2578,
10663,
7734,
527,
4820,
12,
86,
1769,
5411,
289,
469,
288,
7734,
309,
261,
4808,
3056,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
7303,
3141,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48,
23,
9552,
3056,
12,
474,
619,
16,
509,
677,
13,
288,
3639,
467,
22233,
11094,
273,
7920,
18,
588,
22233,
5621,
3639,
10320,
87,
3029,
3056,
13089,
273,
394,
10320,
87,
12,
92,
16,
677,
1769,
3639,
467,
7037,
3029,
3056,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
4808,
3056,
13089,
1769,
3639,
1250,
12455,
2135,
38,
321,
310,
273,
11094,
18,
291,
382,
586,
2135,
38,
321,
310,
12,
3029,
3056,
13089,
11272,
3639,
8706,
436,
31,
3639,
309,
261,
4808,
3056,
7037,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
368,
21940,
358,
866,
309,
518,
1807,
12455,
2135,
3029,
3056,
578,
628,
279,
3904,
23935,
19,
2
] |
(messages.getMessage("include.read", name, e.toString()));
|
(messages.getMessage("include.read", url.toString(), e.toString()));
|
public int doStartTag() throws JspException { // Validate the format of the "name" attribute // FIXME - deal with relative URIs like <jsp:include> does if (!name.startsWith("/")) { JspException e = new JspException (messages.getMessage("include.format", name)); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } // Identify our current session identifier (if any) String sessionId = null; HttpSession session = pageContext.getSession(); if (session != null) { try { sessionId = session.getId(); } catch (IllegalStateException e) { sessionId = null; } } // Calculate the URL of the requested page HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); StringBuffer url = new StringBuffer(); url.append(request.getScheme()); url.append("://"); url.append(request.getServerName()); if (request.getServerPort() != 80) { url.append(':'); url.append(request.getServerPort()); } if (request.getContextPath() != null) url.append(request.getContextPath()); int question = name.indexOf('?'); if (sessionId == null) { url.append(name); } else if (question < 0) { url.append(name); url.append(";jsessionid="); url.append(sessionId); } else { url.append(name.substring(0, question)); url.append(";jsessionid="); url.append(sessionId); url.append(name.substring(question)); } // Set up a URLConnection to read the requested page URLConnection conn = null; try { conn = (new URL(url.toString())).openConnection(); conn.setAllowUserInteraction(false); conn.setDoInput(true); conn.setDoOutput(false); conn.connect(); } catch (Exception e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("include.open", name, e.toString())); } // Copy the contents of this URL StringBuffer sb = new StringBuffer(); try { BufferedInputStream is = new BufferedInputStream(conn.getInputStream()); InputStreamReader in = new InputStreamReader(is); // FIXME - encoding char buffer[] = new char[BUFFER_SIZE]; int n = 0; while (true) { n = in.read(buffer); if (n < 1) break; sb.append(buffer, 0, n); } in.close(); } catch (Exception e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("include.read", name, e.toString())); } // Define the retrieved content as a page scope attribute pageContext.setAttribute(id, sb.toString()); // Skip any body of this tag return (SKIP_BODY); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/356adcf20ce8ab0f6d162adfd629d46609305bdc/IncludeTag.java/clean/src/share/org/apache/struts/taglib/bean/IncludeTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
202,
759,
3554,
326,
740,
434,
326,
315,
529,
6,
1566,
202,
759,
9852,
300,
10490,
598,
3632,
24565,
3007,
411,
24926,
30,
6702,
34,
1552,
202,
430,
16051,
529,
18,
17514,
1190,
2932,
4898,
3719,
288,
5411,
27485,
425,
273,
394,
27485,
2868,
261,
6833,
18,
24906,
2932,
6702,
18,
2139,
3113,
508,
10019,
5411,
21442,
18,
542,
1499,
12,
1803,
18,
12658,
67,
3297,
16,
425,
16,
19694,
3460,
1042,
18,
5519,
67,
19444,
1769,
5411,
604,
425,
31,
3639,
289,
3639,
368,
25622,
3134,
783,
1339,
2756,
261,
430,
1281,
13,
3639,
514,
10338,
273,
446,
31,
3639,
26166,
1339,
273,
21442,
18,
588,
2157,
5621,
3639,
309,
261,
3184,
480,
446,
13,
288,
5411,
775,
288,
7734,
10338,
273,
1339,
18,
26321,
5621,
5411,
289,
1044,
261,
12195,
5060,
425,
13,
288,
7734,
10338,
273,
446,
31,
5411,
289,
3639,
289,
3639,
368,
9029,
326,
1976,
434,
326,
3764,
1363,
202,
2940,
18572,
590,
273,
202,
565,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
202,
780,
1892,
880,
273,
394,
6674,
5621,
202,
718,
18,
6923,
12,
2293,
18,
588,
9321,
10663,
202,
718,
18,
6923,
2932,
2207,
8863,
202,
718,
18,
6923,
12,
2293,
18,
588,
28434,
10663,
202,
430,
261,
2293,
18,
588,
2081,
2617,
1435,
480,
8958,
13,
288,
202,
565,
880,
18,
6923,
2668,
2497,
1769,
202,
565,
880,
18,
6923,
12,
2293,
18,
588,
2081,
2617,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
202,
759,
3554,
326,
740,
434,
326,
315,
529,
6,
1566,
202,
759,
9852,
300,
10490,
598,
3632,
24565,
3007,
411,
24926,
30,
6702,
34,
1552,
202,
430,
16051,
529,
18,
17514,
1190,
2932,
4898,
3719,
288,
5411,
27485,
425,
273,
394,
27485,
2868,
261,
6833,
18,
24906,
2932,
6702,
18,
2139,
3113,
508,
10019,
5411,
21442,
18,
542,
1499,
12,
1803,
18,
12658,
67,
3297,
16,
425,
16,
19694,
3460,
1042,
18,
5519,
67,
19444,
1769,
5411,
604,
425,
31,
3639,
289,
3639,
368,
25622,
3134,
783,
1339,
2756,
261,
430,
1281,
13,
3639,
514,
10338,
273,
446,
31,
3639,
26166,
1339,
273,
21442,
18,
588,
2157,
5621,
3639,
2
] |
System.out.println("Connecting to Database URL = " + url);
|
public ImageViewer(Frame f,String url,String user,String password) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException { frame = f; MenuBar mb = new MenuBar(); Menu m; MenuItem i; f.setMenuBar(mb); mb.add(m = new Menu("PostgreSQL")); m.add(i= new MenuItem("Initialise")); i.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.init(); } }); m.add(i= new MenuItem("Exit")); ActionListener exitListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.close(); } }; m.addActionListener(exitListener); mb.add(m = new Menu("Image")); m.add(i= new MenuItem("Import")); ActionListener importListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.importImage(); } }; i.addActionListener(importListener); m.add(i= new MenuItem("Remove")); ActionListener removeListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.removeImage(); } }; i.addActionListener(removeListener); // To the north is a label used to display the current images name f.add("North",label = new Label()); // We have a panel to the south of the frame containing the controls Panel p = new Panel(); p.setLayout(new FlowLayout()); Button b; p.add(b=new Button("Refresh List")); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.refreshList(); } }); p.add(b=new Button("Import new image")); b.addActionListener(importListener); p.add(b=new Button("Remove image")); b.addActionListener(removeListener); p.add(b=new Button("Quit")); b.addActionListener(exitListener); f.add("South",p); // And a panel to the west containing the list of available images f.add("West",list=new List()); list.addItemListener(this); // Finally the centre contains our image f.add("Center",canvas = new imageCanvas()); // Load the driver Class.forName("org.postgresql.Driver"); // Connect to database System.out.println("Connecting to Database URL = " + url); db = DriverManager.getConnection(url, user, password); // Create a statement stat = db.createStatement(); // Set the connection to use transactions db.setAutoCommit(false); // Also, get the LargeObjectManager for this connection lom = ((org.postgresql.Connection)db).getLargeObjectAPI(); // Now refresh the image selection list refreshList(); }
|
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/02faee5eaa0ed93364446f5c186fa6904899dca6/ImageViewer.java/clean/src/interfaces/jdbc/example/ImageViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3421,
18415,
12,
3219,
284,
16,
780,
880,
16,
780,
729,
16,
780,
2201,
13,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
2623,
273,
284,
31,
3639,
9809,
5190,
4903,
273,
394,
9809,
5190,
5621,
565,
9809,
312,
31,
565,
25085,
277,
31,
3639,
284,
18,
542,
4599,
5190,
12,
1627,
1769,
565,
4903,
18,
1289,
12,
81,
273,
394,
9809,
2932,
3349,
23896,
7923,
1769,
565,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
4435,
784,
7923,
1769,
565,
277,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
2738,
5621,
1377,
289,
565,
15549,
3639,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
6767,
7923,
1769,
565,
25962,
2427,
2223,
273,
394,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
4412,
5621,
1377,
289,
565,
289,
31,
565,
312,
18,
1289,
1803,
2223,
12,
8593,
2223,
1769,
3639,
4903,
18,
1289,
12,
81,
273,
394,
9809,
2932,
2040,
7923,
1769,
565,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
5010,
7923,
1769,
565,
25962,
1930,
2223,
273,
394,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
5666,
2040,
5621,
1377,
289,
565,
289,
31,
565,
277,
18,
1289,
1803,
2223,
12,
5666,
2223,
1769,
3639,
312,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3421,
18415,
12,
3219,
284,
16,
780,
880,
16,
780,
729,
16,
780,
2201,
13,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
2623,
273,
284,
31,
3639,
9809,
5190,
4903,
273,
394,
9809,
5190,
5621,
565,
9809,
312,
31,
565,
25085,
277,
31,
3639,
284,
18,
542,
4599,
5190,
12,
1627,
1769,
565,
4903,
18,
1289,
12,
81,
273,
394,
9809,
2932,
3349,
23896,
7923,
1769,
565,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
4435,
784,
7923,
1769,
565,
277,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
2738,
5621,
1377,
289,
565,
15549,
2
] |
|
return EVAL_BODY_INCLUDE;
|
actionSubmitBean.setName(createActionURI()); if (!key.equals("")) { actionSubmitBean.setKey(key); Locale locale = pageContext.getRequest().getLocale(); ResourceBundle bundle = ResourceBundle.getBundle("Portlet", locale); String localizedText = bundle.getString(actionSubmitBean.getKey()); if (localizedText != null) { value = localizedText; } } if (!beanId.equals("")) { this.updateBaseComponentBean(actionSubmitBean); } else { this.setBaseComponentBean(actionSubmitBean); } actionSubmitBean.setAction(action); Object parentTag = getParent(); if (parentTag instanceof ContainerTag) { ContainerTag containerTag = (ContainerTag)parentTag; containerTag.addTagBean(actionSubmitBean); } else { try { JspWriter out = pageContext.getOut(); out.print(actionSubmitBean.toStartString()); } catch (Exception e) { throw new JspException(e.getMessage()); } } return SKIP_BODY;
|
public int doStartTag() throws JspException { actionSubmitBean = new ActionSubmitBean(); if (!beanId.equals("")) { actionSubmitBean = (ActionSubmitBean)pageContext.getAttribute(getBeanKey()); } if (actionSubmitBean == null) actionSubmitBean = new ActionSubmitBean(); paramBeans = new ArrayList(); return EVAL_BODY_INCLUDE; }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/9863b89cfaff33fe3399474348972a14bc241035/ActionSubmitTag.java/clean/src/org/gridlab/gridsphere/tags/portletui/ActionSubmitTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
3639,
1301,
11620,
3381,
273,
394,
4382,
11620,
3381,
5621,
3639,
309,
16051,
14496,
548,
18,
14963,
2932,
6,
3719,
288,
5411,
1301,
11620,
3381,
273,
261,
1803,
11620,
3381,
13,
2433,
1042,
18,
588,
1499,
12,
588,
3381,
653,
10663,
3639,
289,
3639,
309,
261,
1128,
11620,
3381,
422,
446,
13,
1301,
11620,
3381,
273,
394,
4382,
11620,
3381,
5621,
3639,
579,
14495,
273,
394,
2407,
5621,
540,
1301,
11620,
3381,
18,
542,
461,
12,
2640,
1803,
3098,
10663,
309,
16051,
856,
18,
14963,
2932,
6,
3719,
288,
1301,
11620,
3381,
18,
542,
653,
12,
856,
1769,
6458,
2573,
273,
21442,
18,
588,
691,
7675,
588,
3916,
5621,
19198,
3440,
273,
19198,
18,
588,
3405,
2932,
18566,
3113,
2573,
1769,
514,
13596,
1528,
273,
3440,
18,
588,
780,
12,
1128,
11620,
3381,
18,
588,
653,
10663,
309,
261,
3729,
1235,
1528,
480,
446,
13,
288,
460,
273,
13596,
1528,
31,
289,
289,
225,
309,
16051,
14496,
548,
18,
14963,
2932,
6,
3719,
288,
333,
18,
2725,
2171,
1841,
3381,
12,
1128,
11620,
3381,
1769,
289,
469,
288,
333,
18,
542,
2171,
1841,
3381,
12,
1128,
11620,
3381,
1769,
289,
225,
1301,
11620,
3381,
18,
542,
1803,
12,
1128,
1769,
225,
1033,
982,
1805,
273,
5089,
5621,
309,
261,
2938,
1805,
1276,
4039,
1805,
13,
288,
4039,
1805,
1478,
1805,
273,
261,
2170,
1805,
13,
2938,
1805,
31,
1478,
1805,
18,
1289,
1805,
3381,
12,
1128,
11620,
3381,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
3639,
1301,
11620,
3381,
273,
394,
4382,
11620,
3381,
5621,
3639,
309,
16051,
14496,
548,
18,
14963,
2932,
6,
3719,
288,
5411,
1301,
11620,
3381,
273,
261,
1803,
11620,
3381,
13,
2433,
1042,
18,
588,
1499,
12,
588,
3381,
653,
10663,
3639,
289,
3639,
309,
261,
1128,
11620,
3381,
422,
446,
13,
1301,
11620,
3381,
273,
394,
4382,
11620,
3381,
5621,
3639,
579,
14495,
273,
394,
2407,
5621,
540,
1301,
11620,
3381,
18,
542,
461,
12,
2640,
1803,
3098,
10663,
309,
16051,
856,
18,
14963,
2932,
6,
3719,
288,
1301,
11620,
3381,
18,
542,
653,
12,
856,
1769,
6458,
2573,
273,
21442,
18,
588,
691,
7675,
588,
3916,
5621,
19198,
2
] |
String textKey = getStringProperty( TextItem.CONTENT_RESOURCE_KEY_PROP ); ; if ( !StringUtil.isBlank( textKey ) ) { String localizedText = getModule( ).getMessage( textKey ); if ( !StringUtil.isBlank( localizedText ) ) return localizedText; } return getStringProperty( TextItem.CONTENT_PROP );
|
return super.getExternalizedValue( TextItem.CONTENT_RESOURCE_KEY_PROP, TextItem.CONTENT_PROP );
|
public String getDisplayContent( ) { String textKey = getStringProperty( TextItem.CONTENT_RESOURCE_KEY_PROP ); ; if ( !StringUtil.isBlank( textKey ) ) { // find in report. String localizedText = getModule( ).getMessage( textKey ); if ( !StringUtil.isBlank( localizedText ) ) return localizedText; } // use static text. return getStringProperty( TextItem.CONTENT_PROP ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b45a98d2253ce24a4775f9b31afb59c7b25a2048/TextItemHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TextItemHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
13854,
1350,
12,
262,
202,
95,
202,
202,
780,
977,
653,
273,
4997,
1396,
12,
3867,
1180,
18,
9689,
67,
11395,
67,
3297,
67,
15811,
11272,
202,
202,
31,
202,
202,
430,
261,
401,
13565,
18,
291,
7796,
12,
977,
653,
262,
262,
202,
202,
95,
1082,
202,
759,
1104,
316,
2605,
18,
1082,
202,
780,
13596,
1528,
273,
11251,
12,
262,
18,
24906,
12,
977,
653,
11272,
1082,
202,
430,
261,
401,
13565,
18,
291,
7796,
12,
13596,
1528,
262,
262,
9506,
202,
2463,
13596,
1528,
31,
202,
202,
97,
202,
202,
759,
999,
760,
977,
18,
202,
202,
2463,
4997,
1396,
12,
3867,
1180,
18,
9689,
67,
15811,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
13854,
1350,
12,
262,
202,
95,
202,
202,
780,
977,
653,
273,
4997,
1396,
12,
3867,
1180,
18,
9689,
67,
11395,
67,
3297,
67,
15811,
11272,
202,
202,
31,
202,
202,
430,
261,
401,
13565,
18,
291,
7796,
12,
977,
653,
262,
262,
202,
202,
95,
1082,
202,
759,
1104,
316,
2605,
18,
1082,
202,
780,
13596,
1528,
273,
11251,
12,
262,
18,
24906,
12,
977,
653,
11272,
1082,
202,
430,
261,
401,
13565,
18,
291,
7796,
12,
13596,
1528,
262,
262,
9506,
202,
2463,
13596,
1528,
31,
202,
202,
97,
202,
202,
759,
999,
760,
977,
18,
202,
202,
2463,
4997,
1396,
12,
3867,
1180,
18,
9689,
67,
15811,
11272,
202,
97,
2,
-100,
-100
] |
case VALIDATE_XPATH :
|
case VALIDATE_XPATH:
|
protected void processXmla(File file, int validateXmlaResponce) throws Exception { byte[] bytes = XmlaSupport.processXmla(file, getConnectString()); String response = new String(bytes); System.out.println(response); switch (validateXmlaResponce) { case VALIDATE_NONE : break; case VALIDATE_TRANSFORM : XmlaSupport.validateSchemaXmla(bytes); System.out.println("XML Data is Valid"); break; case VALIDATE_XPATH : XmlaSupport.validateXmlaUsingXpath(bytes); System.out.println("XML Data is Valid"); break; } }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/c3f6363095dc52f521dd8666c0cfc494bedffffd/CmdRunner.java/buggy/src/main/mondrian/tui/CmdRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
4432,
69,
12,
812,
585,
16,
509,
1954,
4432,
69,
607,
500,
311,
13,
2398,
1216,
1185,
288,
3639,
1160,
8526,
1731,
273,
5714,
69,
6289,
18,
2567,
4432,
69,
12,
768,
16,
7682,
336,
5215,
780,
10663,
3639,
514,
766,
273,
394,
514,
12,
3890,
1769,
3639,
2332,
18,
659,
18,
8222,
12,
2740,
1769,
3639,
1620,
261,
5662,
4432,
69,
607,
500,
311,
13,
288,
3639,
648,
15093,
1777,
67,
9826,
294,
5411,
898,
31,
3639,
648,
15093,
1777,
67,
16596,
4983,
294,
5411,
5714,
69,
6289,
18,
5662,
3078,
4432,
69,
12,
3890,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
4201,
1910,
353,
2364,
8863,
5411,
898,
31,
3639,
648,
15093,
1777,
67,
60,
4211,
30,
5411,
5714,
69,
6289,
18,
5662,
4432,
69,
7736,
28137,
12,
3890,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
4201,
1910,
353,
2364,
8863,
5411,
898,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
1207,
4432,
69,
12,
812,
585,
16,
509,
1954,
4432,
69,
607,
500,
311,
13,
2398,
1216,
1185,
288,
3639,
1160,
8526,
1731,
273,
5714,
69,
6289,
18,
2567,
4432,
69,
12,
768,
16,
7682,
336,
5215,
780,
10663,
3639,
514,
766,
273,
394,
514,
12,
3890,
1769,
3639,
2332,
18,
659,
18,
8222,
12,
2740,
1769,
3639,
1620,
261,
5662,
4432,
69,
607,
500,
311,
13,
288,
3639,
648,
15093,
1777,
67,
9826,
294,
5411,
898,
31,
3639,
648,
15093,
1777,
67,
16596,
4983,
294,
5411,
5714,
69,
6289,
18,
5662,
3078,
4432,
69,
12,
3890,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
4201,
1910,
353,
2364,
8863,
5411,
898,
31,
3639,
648,
15093,
2
] |
createSpaceInCode(false);
|
createSpaceInCode(mySettings.SPACE_WITHIN_FOR_PARENTHESES);
|
public void visitForStatement(PsiForStatement statement) { if (myRole2 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_BEFORE_FOR_PARENTHESES); } else if (myRole1 == ChildRole.LPARENTH) { ASTNode rparenth = findFrom(myChild2, ElementType.RPARENTH, true); if (rparenth == null) { createSpaceInCode(false); } else { createParenSpace(mySettings.FOR_STATEMENT_LPAREN_ON_NEXT_LINE, false, new TextRange(myChild1.getTextRange().getStartOffset(), rparenth.getTextRange().getEndOffset())); } } else if (myRole2 == ChildRole.RPARENTH) { ASTNode lparenth = findFrom(myChild2, ElementType.LPARENTH, false); if (lparenth == null) { createSpaceInCode(mySettings.SPACE_WITHIN_FOR_PARENTHESES); } else { createParenSpace(mySettings.FOR_STATEMENT_RPAREN_ON_NEXT_LINE, mySettings.SPACE_WITHIN_FOR_PARENTHESES, new TextRange(lparenth.getTextRange().getStartOffset(), myChild2.getTextRange().getEndOffset())); } } else if (myRole1 == ChildRole.FOR_INITIALIZATION) { createSpaceInCode(mySettings.SPACE_AFTER_SEMICOLON); } else if (myRole1 == ChildRole.CONDITION) { createSpaceInCode(mySettings.SPACE_BEFORE_SEMICOLON); } else if (myRole1 == ChildRole.FOR_SEMICOLON) { createSpaceInCode(mySettings.SPACE_AFTER_SEMICOLON); } else if (myRole2 == ChildRole.LOOP_BODY) { if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_FOR_LBRACE, mySettings.BRACE_STYLE); } else if (mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE) { myResult = Formatter.getInstance().createDependentLFProperty(1, 1, myParent.getTextRange(), false, mySettings.KEEP_BLANK_LINES_IN_CODE); } else { myResult = Formatter.getInstance().createSpaceProperty(0 ,0, 1, false, mySettings.KEEP_BLANK_LINES_IN_CODE); } } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/54b6205d15a150bd0abe7082a4fcc1900c6dd863/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/newXmlFormatter/java/JavaSpacePropertyProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
1290,
3406,
12,
52,
7722,
1290,
3406,
3021,
13,
288,
565,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
19152,
67,
7473,
67,
14943,
3900,
1090,
55,
1769,
565,
289,
565,
469,
309,
261,
4811,
2996,
21,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
9183,
907,
436,
13012,
451,
273,
1104,
1265,
12,
4811,
1763,
22,
16,
3010,
559,
18,
54,
14943,
44,
16,
638,
1769,
1377,
309,
261,
86,
13012,
451,
422,
446,
13,
288,
3639,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
9147,
706,
67,
7473,
67,
14943,
3900,
1090,
55,
1769,
1377,
289,
469,
288,
3639,
752,
25520,
3819,
12,
4811,
2628,
18,
7473,
67,
28411,
67,
48,
15111,
67,
673,
67,
25539,
67,
5997,
16,
629,
16,
394,
3867,
2655,
12,
4811,
1763,
21,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
9334,
436,
13012,
451,
18,
588,
1528,
2655,
7675,
588,
1638,
2335,
1435,
10019,
1377,
289,
565,
289,
565,
469,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
54,
14943,
44,
13,
288,
1377,
9183,
907,
328,
13012,
451,
273,
1104,
1265,
12,
4811,
1763,
22,
16,
3010,
559,
18,
48,
14943,
44,
16,
629,
1769,
1377,
309,
261,
80,
13012,
451,
422,
446,
13,
288,
3639,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
9147,
706,
67,
7473,
67,
14943,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
1290,
3406,
12,
52,
7722,
1290,
3406,
3021,
13,
288,
565,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
19152,
67,
7473,
67,
14943,
3900,
1090,
55,
1769,
565,
289,
565,
469,
309,
261,
4811,
2996,
21,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
9183,
907,
436,
13012,
451,
273,
1104,
1265,
12,
4811,
1763,
22,
16,
3010,
559,
18,
54,
14943,
44,
16,
638,
1769,
1377,
309,
261,
86,
13012,
451,
422,
446,
13,
288,
3639,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
9147,
706,
67,
7473,
67,
14943,
3900,
1090,
2
] |
public ClassLoader getSystemClassLoader() {
|
ClassLoader getSystemClassLoader() {
|
public ClassLoader getSystemClassLoader() { return null; }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ece2785811888611fd2661ac554bf6ba880d46ea/SecuritySupport.java/clean/src/org/apache/xpath/functions/SecuritySupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
9403,
12996,
7805,
1435,
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,
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,
9403,
12996,
7805,
1435,
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,
-100,
-100,
-100,
-100
] |
childPath = path.substring(nextSlash + 1);
|
childPath = path.substring(nextSlash+1);
|
private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; childPath = ""; } else { childName = path.substring(0, nextSlash); childPath = path.substring(nextSlash + 1); } // Get the child node AbstractPreferences child; child = (AbstractPreferences) childCache.get(childName); if (child == null) { if (childName.length() > MAX_NAME_LENGTH) throw new IllegalArgumentException(childName); // Not in childCache yet so create a new sub node child = childSpi(childName); // XXX - check if node is new childCache.put(childName, child); } // Lock the child and go down synchronized (child.lock) { return child.getNode(childPath); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/buggy/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
28310,
5973,
12,
780,
589,
13,
288,
202,
202,
759,
309,
2267,
353,
4092,
1508,
2897,
679,
202,
202,
759,
8953,
514,
1408,
8527,
333,
756,
202,
202,
430,
261,
803,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
333,
31,
202,
202,
759,
9029,
1151,
508,
471,
3127,
434,
589,
202,
202,
780,
27440,
31,
202,
202,
780,
1151,
743,
31,
202,
202,
474,
1024,
11033,
273,
589,
18,
31806,
2668,
2473,
1769,
202,
202,
430,
261,
4285,
11033,
422,
300,
21,
13,
288,
1082,
202,
3624,
461,
273,
589,
31,
1082,
202,
3624,
743,
273,
1408,
31,
202,
202,
97,
469,
288,
1082,
202,
3624,
461,
273,
589,
18,
28023,
12,
20,
16,
1024,
11033,
1769,
1082,
202,
3624,
743,
273,
589,
18,
28023,
12,
4285,
11033,
397,
404,
1769,
202,
202,
97,
202,
202,
759,
968,
326,
1151,
756,
202,
202,
7469,
12377,
1151,
31,
202,
202,
3624,
273,
261,
7469,
12377,
13,
1151,
1649,
18,
588,
12,
3624,
461,
1769,
202,
202,
430,
261,
3624,
422,
446,
13,
288,
1082,
202,
430,
261,
3624,
461,
18,
2469,
1435,
405,
4552,
67,
1985,
67,
7096,
13,
9506,
202,
12849,
394,
2754,
12,
3624,
461,
1769,
1082,
202,
759,
2288,
316,
1151,
1649,
4671,
1427,
752,
279,
394,
720,
756,
1082,
202,
3624,
273,
1151,
21887,
12,
3624,
461,
1769,
1082,
202,
759,
11329,
300,
866,
309,
756,
353,
394,
1082,
202,
3624,
1649,
18,
458,
12,
3624,
461,
16,
1151,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28310,
5973,
12,
780,
589,
13,
288,
202,
202,
759,
309,
2267,
353,
4092,
1508,
2897,
679,
202,
202,
759,
8953,
514,
1408,
8527,
333,
756,
202,
202,
430,
261,
803,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
333,
31,
202,
202,
759,
9029,
1151,
508,
471,
3127,
434,
589,
202,
202,
780,
27440,
31,
202,
202,
780,
1151,
743,
31,
202,
202,
474,
1024,
11033,
273,
589,
18,
31806,
2668,
2473,
1769,
202,
202,
430,
261,
4285,
11033,
422,
300,
21,
13,
288,
1082,
202,
3624,
461,
273,
589,
31,
1082,
202,
3624,
743,
273,
1408,
31,
202,
202,
97,
469,
288,
1082,
202,
3624,
461,
273,
589,
18,
28023,
12,
20,
16,
2
] |
public void setModTime(long time) {
|
public void setModTime( long time ) {
|
public void setModTime(long time) { this.modTime = time / MILLIS_PER_SECOND; }
|
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/TarEntry.java/buggy/src/main/java/org/codehaus/plexus/archiver/tar/TarEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1739,
950,
12,
1525,
813,
262,
288,
3639,
333,
18,
1711,
950,
273,
813,
342,
13570,
55,
67,
3194,
67,
16328,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1739,
950,
12,
1525,
813,
262,
288,
3639,
333,
18,
1711,
950,
273,
813,
342,
13570,
55,
67,
3194,
67,
16328,
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
] |
greatGrandKidName = greatGrandKid.getLocalName();
|
private void renameRedefiningComponents(XSDocumentInfo currSchema, Element child, String componentType, String oldName, String newName) { if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5.a.a", null, child); } else { String grandKidName = grandKid.getLocalName(); if (grandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); grandKidName = grandKid.getLocalName(); } if (grandKid == null) { reportSchemaError("src-redefine.5.a.a", null, child); } else if (!grandKidName.equals(SchemaSymbols.ELT_RESTRICTION)) { reportSchemaError("src-redefine.5.a.b", new Object[]{grandKidName}, child); } else { Object[] attrs = fAttributeChecker.checkAttributes(grandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5.a.c", new Object[]{grandKidName, (currSchema.fTargetNamespace==null?"":currSchema.fTargetNamespace) + "," + oldName}, child); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) grandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else grandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } fAttributeChecker.returnAttrArray(attrs, currSchema); } } } else if (componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5.b.a", null, child); } else { if (grandKid.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); } if (grandKid == null) { reportSchemaError("src-redefine.5.b.a", null, child); } else { // have to go one more level down; let another pass worry whether complexType is valid. Element greatGrandKid = DOMUtil.getFirstChildElement(grandKid); if (greatGrandKid == null) { reportSchemaError("src-redefine.5.b.b", null, grandKid); } else { String greatGrandKidName = greatGrandKid.getLocalName(); if (greatGrandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { greatGrandKid = DOMUtil.getNextSiblingElement(greatGrandKid); greatGrandKidName = greatGrandKid.getLocalName(); } if (greatGrandKid == null) { reportSchemaError("src-redefine.5.b.b", null, grandKid); } else if (!greatGrandKidName.equals(SchemaSymbols.ELT_RESTRICTION) && !greatGrandKidName.equals(SchemaSymbols.ELT_EXTENSION)) { reportSchemaError("src-redefine.5.b.c", new Object[]{greatGrandKidName}, greatGrandKid); } else { Object[] attrs = fAttributeChecker.checkAttributes(greatGrandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5.b.d", new Object[]{greatGrandKidName, (currSchema.fTargetNamespace==null?"":currSchema.fTargetNamespace) + "," + oldName}, greatGrandKid); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } } } } } } else if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int attGroupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (attGroupRefsCount > 1) { reportSchemaError("src-redefine.7.1", new Object []{new Integer(attGroupRefsCount)}, child); } else if (attGroupRefsCount == 1) {// return true; } else if (currSchema.fTargetNamespace == null) fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } else if (componentType.equals(SchemaSymbols.ELT_GROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int groupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (groupRefsCount > 1) { reportSchemaError("src-redefine.6.1.1", new Object []{new Integer(groupRefsCount)}, child); } else if (groupRefsCount == 1) {// return true; } else { if (currSchema.fTargetNamespace == null) fRedefinedRestrictedGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } } else { reportSchemaError("Internal-Error", new Object [] {"could not handle this particular <redefine>; please submit your schemas and instance document in a bug report!"}, child); } // if we get here then we must have reported an error and failed somewhere...// return false; } // renameRedefiningComponents(XSDocumentInfo, Element, String, String, String):void
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/cc18e659b4da8c57345a55e0e28b1d95a4ae3d9a/XSDHandler.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6472,
426,
5649,
310,
7171,
12,
60,
55,
2519,
966,
4306,
3078,
16,
4766,
5411,
3010,
1151,
16,
514,
20065,
16,
4766,
5411,
514,
22916,
16,
514,
13253,
13,
288,
3639,
309,
261,
4652,
559,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
31669,
900,
2399,
3719,
288,
5411,
3010,
16225,
47,
350,
273,
4703,
1304,
18,
588,
3759,
1763,
1046,
12,
3624,
1769,
5411,
309,
261,
3197,
464,
47,
350,
422,
446,
13,
288,
7734,
2605,
3078,
668,
2932,
4816,
17,
266,
11255,
18,
25,
18,
69,
18,
69,
3113,
446,
16,
1151,
1769,
5411,
289,
5411,
469,
288,
7734,
514,
16225,
47,
350,
461,
273,
16225,
47,
350,
18,
588,
29583,
5621,
7734,
309,
261,
3197,
464,
47,
350,
461,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
24922,
3719,
288,
10792,
16225,
47,
350,
273,
4703,
1304,
18,
588,
2134,
10291,
1046,
12,
3197,
464,
47,
350,
1769,
10792,
16225,
47,
350,
461,
273,
16225,
47,
350,
18,
588,
29583,
5621,
7734,
289,
7734,
309,
261,
3197,
464,
47,
350,
422,
446,
13,
288,
10792,
2605,
3078,
668,
2932,
4816,
17,
266,
11255,
18,
25,
18,
69,
18,
69,
3113,
446,
16,
1151,
1769,
7734,
289,
7734,
469,
309,
16051,
3197,
464,
47,
350,
461,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
12030,
2259,
3106,
3719,
288,
10792,
2605,
3078,
668,
2932,
4816,
17,
266,
11255,
18,
25,
18,
69,
18,
70,
3113,
394,
1033,
63,
7073,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6472,
426,
5649,
310,
7171,
12,
60,
55,
2519,
966,
4306,
3078,
16,
4766,
5411,
3010,
1151,
16,
514,
20065,
16,
4766,
5411,
514,
22916,
16,
514,
13253,
13,
288,
3639,
309,
261,
4652,
559,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
31669,
900,
2399,
3719,
288,
5411,
3010,
16225,
47,
350,
273,
4703,
1304,
18,
588,
3759,
1763,
1046,
12,
3624,
1769,
5411,
309,
261,
3197,
464,
47,
350,
422,
446,
13,
288,
7734,
2605,
3078,
668,
2932,
4816,
17,
266,
11255,
18,
25,
18,
69,
18,
69,
3113,
446,
16,
1151,
1769,
5411,
289,
5411,
469,
288,
7734,
514,
16225,
47,
350,
461,
273,
16225,
47,
350,
18,
588,
29583,
5621,
7734,
2
] |
|
Assert.assertEquals("WA", member.getName());
|
Assert.assertEquals("WA", member.getName());
|
public void testClosingPeriodMember(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([USA])"); Assert.assertEquals("WA", member.getName()); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3d57e0d95581f154be9f8c4d0e69c51f642272b8/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1842,
15745,
5027,
4419,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
9506,
202,
4419,
3140,
273,
1842,
18,
8837,
6558,
12,
25083,
202,
6,
15745,
5027,
3816,
3378,
37,
65,
2225,
1769,
3639,
5452,
18,
11231,
8867,
2932,
59,
37,
3113,
3140,
18,
17994,
10663,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1842,
15745,
5027,
4419,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
9506,
202,
4419,
3140,
273,
1842,
18,
8837,
6558,
12,
25083,
202,
6,
15745,
5027,
3816,
3378,
37,
65,
2225,
1769,
3639,
5452,
18,
11231,
8867,
2932,
59,
37,
3113,
3140,
18,
17994,
10663,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } );
|
message = getCause( ).getLocalizedMessage( ); if ( getCause( ) instanceof UnknownHostException ) { message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } ); }
|
public String getMessage( ) { String message = getCause( ).getLocalizedMessage( ); if ( getCause( ) instanceof UnknownHostException ) { message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } ); } return message; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b06fe9f8052c23c08e25abe6dc916cac04c42a5f/GUIException.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/runtime/GUIException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2381,
12,
262,
202,
95,
202,
202,
780,
883,
273,
12932,
12,
262,
18,
588,
2042,
1235,
1079,
12,
11272,
202,
202,
430,
261,
12932,
12,
262,
1276,
30592,
262,
202,
202,
95,
1082,
202,
2150,
273,
13771,
67,
14737,
67,
8908,
397,
883,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
12932,
12,
262,
1276,
13707,
262,
202,
202,
95,
1082,
202,
2150,
273,
13771,
67,
3776,
67,
4400,
67,
9294,
397,
883,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
12932,
12,
262,
1276,
18407,
6031,
668,
262,
202,
202,
95,
1082,
202,
2150,
273,
13771,
67,
5069,
67,
3932,
67,
24329,
31,
202,
202,
97,
202,
202,
430,
261,
14205,
18,
291,
7796,
12,
883,
262,
262,
202,
202,
95,
1082,
202,
2150,
273,
17377,
18,
2139,
12,
13771,
67,
3587,
20093,
67,
6486,
16,
394,
514,
63,
7073,
9506,
202,
588,
10683,
12,
262,
18,
588,
797,
12,
262,
18,
17994,
12,
262,
1082,
202,
97,
11272,
202,
202,
97,
202,
202,
2463,
883,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2381,
12,
262,
202,
95,
202,
202,
780,
883,
273,
12932,
12,
262,
18,
588,
2042,
1235,
1079,
12,
11272,
202,
202,
430,
261,
12932,
12,
262,
1276,
30592,
262,
202,
202,
95,
1082,
202,
2150,
273,
13771,
67,
14737,
67,
8908,
397,
883,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
12932,
12,
262,
1276,
13707,
262,
202,
202,
95,
1082,
202,
2150,
273,
13771,
67,
3776,
67,
4400,
67,
9294,
397,
883,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
12932,
12,
262,
1276,
18407,
6031,
668,
262,
202,
202,
95,
1082,
202,
2150,
273,
13771,
67,
5069,
67,
3932,
67,
24329,
31,
202,
202,
97,
202,
202,
430,
261,
14205,
2
] |
public TagHandler processObjectValue(Object value) throws JspException { if( value instanceof AttributeDefinition ) { return processTypedAttribute((AttributeDefinition)value); } else if( value instanceof ComponentDefinition ) return processDefinition( (ComponentDefinition)value );
|
public TagHandler processObjectValue(Object value) throws JspException { if (value instanceof AttributeDefinition) { return processTypedAttribute((AttributeDefinition) value); } else if (value instanceof ComponentDefinition) return processDefinition((ComponentDefinition) value);
|
public TagHandler processObjectValue(Object value) throws JspException { // First, check if value is one of the Typed Attribute if( value instanceof AttributeDefinition ) { // We have a type => return appropriate IncludeType return processTypedAttribute((AttributeDefinition)value); } else if( value instanceof ComponentDefinition ) return processDefinition( (ComponentDefinition)value ); // Value must denote a valid String return processAsDefinitionOrURL( value.toString() ); }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/26a2005160d3de38b572957d78e83d591d8b6912/InsertTag.java/clean/src/share/org/apache/struts/taglib/tiles/InsertTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4034,
1503,
1207,
921,
620,
12,
921,
460,
13,
1377,
1216,
27485,
202,
202,
95,
1377,
368,
5783,
16,
866,
309,
460,
353,
1245,
434,
326,
13833,
3601,
565,
309,
12,
460,
1276,
3601,
1852,
262,
1377,
288,
368,
1660,
1240,
279,
618,
516,
327,
5505,
12672,
559,
1377,
327,
1207,
11985,
1499,
12443,
1499,
1852,
13,
1132,
1769,
1377,
289,
377,
469,
309,
12,
460,
1276,
5435,
1852,
262,
1377,
327,
1207,
1852,
12,
261,
1841,
1852,
13,
1132,
11272,
1377,
368,
1445,
1297,
5545,
1168,
279,
923,
514,
565,
327,
1207,
1463,
1852,
1162,
1785,
12,
460,
18,
10492,
1435,
11272,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3196,
202,
482,
4034,
1503,
1207,
921,
620,
12,
921,
460,
13,
1377,
1216,
27485,
202,
202,
95,
1377,
368,
5783,
16,
866,
309,
460,
353,
1245,
434,
326,
13833,
3601,
565,
309,
12,
460,
1276,
3601,
1852,
262,
1377,
288,
368,
1660,
1240,
279,
618,
516,
327,
5505,
12672,
559,
1377,
327,
1207,
11985,
1499,
12443,
1499,
1852,
13,
1132,
1769,
1377,
289,
377,
469,
309,
12,
460,
1276,
5435,
1852,
262,
1377,
327,
1207,
1852,
12,
261,
1841,
1852,
13,
1132,
11272,
1377,
368,
1445,
1297,
5545,
1168,
279,
923,
514,
565,
327,
1207,
1463,
1852,
1162,
1785,
12,
460,
18,
10492,
1435,
11272,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
param.setValue(sd7);
|
param.setValue(sd7, d);
|
private int readIntParams(C3DIntParameter param, int[] d, int offset) { switch(d.length) { case 0: // A string with 0 dimensions is just a single character int sd0 = reader.readShort(offset); offset += 2; param.setValue(sd0); break; case 1: int[] sd1 = new int[d[0]]; for(int i = 0; i < d[0]; i++) sd1[i] = reader.readShort(offset + 2 * i); offset += d[0] * 2; param.setValue(sd1); break; case 2: int[][] sd2 = new int[d[1]][d[0]]; for(int i = 0; i < d[1]; i++) for(int j = 0; j < d[0]; j++) sd2[i][j] = reader.readShort(offset + 2 * i * j); offset += d[0] * d[1] * 2; param.setValue(sd2); break; case 3: int[][][] sd3 = new int[d[2]][d[1]][d[0]]; for(int i = 0; i < d[2]; i++) for(int j = 0; j < d[1]; j++) for(int k = 0; k < d[0]; k++) sd3[i][j][k] = reader.readShort(offset + 2 * i * j * k); offset += d[0] * d[1] * d[2] * 2; param.setValue(sd3); break; case 4: int[][][][] sd4 = new int[d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[3]; i++) for(int j = 0; j < d[2]; j++) for(int k = 0; k < d[1]; k++) for(int l = 0; l < d[0]; l++) sd4[i][j][k][l] = reader.readShort(offset + 2 * i * j * k * l); offset += d[0] * d[1] * d[2] * d[3] * 2; param.setValue(sd4); break; case 5: int[][][][][] sd5 = new int[d[4]][d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[4]; i++) for(int j = 0; j < d[3]; j++) for(int k = 0; k < d[2]; k++) for(int l = 0; l < d[1]; l++) for(int m = 0; m < d[0]; m++) sd5[i][j][k][l][m] = reader.readShort(offset + 2 * i * j * k * l * m); offset += d[0] * d[1] * d[2] * d[3] * d[4] * 2; param.setValue(sd5); break; case 6: int[][][][][][] sd6 = new int[d[5]][d[4]][d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[5]; i++) for(int j = 0; j < d[4]; j++) for(int k = 0; k < d[3]; k++) for(int l = 0; l < d[2]; l++) for(int m = 0; m < d[1]; m++) for(int n = 0; n < d[0]; n++) sd6[i][j][k][l][m][n] = reader.readShort(offset + 2 * i * j * k * l * m * n); offset += d[0] * d[1] * d[2] * d[3] * d[4] * d[5] * 2; param.setValue(sd6); break; case 7: int[][][][][][][] sd7 = new int[d[6]][d[5]][d[4]][d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[6]; i++) for(int j = 0; j < d[5]; j++) for(int k = 0; k < d[4]; k++) for(int l = 0; l < d[3]; l++) for(int m = 0; m < d[2]; m++) for(int n = 0; n < d[1]; n++) for(int p = 0; p < d[0]; p++) sd7[i][j][k][l][m][n][p] = reader.readShort(offset + 2 * i * j * k * l * m * n * p); offset += d[0] * d[1] * d[2] * d[3] * d[4] * d[5] * d[6] * 2; param.setValue(sd7); break; } return offset; }
|
46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/aa094d461f17a1b041bf9d0c5744084b778f622c/C3DParser.java/buggy/src/java/org/j3d/loaders/c3d/C3DParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
13731,
1370,
12,
39,
23,
40,
1702,
1662,
579,
16,
509,
8526,
302,
16,
509,
1384,
13,
565,
288,
3639,
1620,
12,
72,
18,
2469,
13,
3639,
288,
5411,
648,
374,
30,
7734,
368,
432,
533,
598,
374,
5769,
353,
2537,
279,
2202,
3351,
7734,
509,
8349,
20,
273,
2949,
18,
896,
4897,
12,
3348,
1769,
7734,
1384,
1011,
576,
31,
7734,
579,
18,
542,
620,
12,
6427,
20,
1769,
7734,
898,
31,
5411,
648,
404,
30,
7734,
509,
8526,
8349,
21,
273,
394,
509,
63,
72,
63,
20,
13563,
31,
7734,
364,
12,
474,
277,
273,
374,
31,
277,
411,
302,
63,
20,
15533,
277,
27245,
10792,
8349,
21,
63,
77,
65,
273,
2949,
18,
896,
4897,
12,
3348,
397,
576,
380,
277,
1769,
7734,
1384,
1011,
302,
63,
20,
65,
380,
576,
31,
7734,
579,
18,
542,
620,
12,
6427,
21,
1769,
7734,
898,
31,
5411,
648,
576,
30,
7734,
509,
63,
6362,
65,
8349,
22,
273,
394,
509,
63,
72,
63,
21,
65,
6362,
72,
63,
20,
13563,
31,
7734,
364,
12,
474,
277,
273,
374,
31,
277,
411,
302,
63,
21,
15533,
277,
27245,
10792,
364,
12,
474,
525,
273,
374,
31,
525,
411,
302,
63,
20,
15533,
525,
27245,
13491,
8349,
22,
63,
77,
6362,
78,
65,
273,
2949,
18,
896,
4897,
12,
3348,
397,
576,
380,
277,
380,
525,
1769,
7734,
1384,
1011,
302,
63,
20,
65,
380,
302,
63,
21,
65,
380,
576,
31,
7734,
579,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
13731,
1370,
12,
39,
23,
40,
1702,
1662,
579,
16,
509,
8526,
302,
16,
509,
1384,
13,
565,
288,
3639,
1620,
12,
72,
18,
2469,
13,
3639,
288,
5411,
648,
374,
30,
7734,
368,
432,
533,
598,
374,
5769,
353,
2537,
279,
2202,
3351,
7734,
509,
8349,
20,
273,
2949,
18,
896,
4897,
12,
3348,
1769,
7734,
1384,
1011,
576,
31,
7734,
579,
18,
542,
620,
12,
6427,
20,
1769,
7734,
898,
31,
5411,
648,
404,
30,
7734,
509,
8526,
8349,
21,
273,
394,
509,
63,
72,
63,
20,
13563,
31,
7734,
364,
12,
474,
277,
273,
374,
31,
277,
411,
302,
63,
20,
15533,
277,
27245,
10792,
8349,
21,
63,
77,
65,
273,
2949,
18,
2
] |
DocumentImpl doc = null;
|
public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException { Sequence arg = getArgument(0).eval(contextSequence, contextItem); if(arg.getLength() == 0) return Sequence.EMPTY_SEQUENCE; String path = arg.itemAt(0).getStringValue(); if (path.length() == 0) throw new XPathException("Invalid argument to fn:doc function: empty string is not allowed here."); if (path.charAt(0) != '/') path = context.getBaseURI() + '/' + path; Lock dlock = null; if(path.equals(cachedPath) && cachedNode != null) { dlock = cachedNode.getDocument().getUpdateLock(); try { // wait for pending updates dlock.acquire(Lock.READ_LOCK); return cachedNode; } catch (LockException e) { throw new XPathException(getASTNode(), "Failed to acquire lock on document " + path); } finally { dlock.release(Lock.READ_LOCK); } } try { DocumentImpl doc = (DocumentImpl) context.getBroker().getDocument(path); if(doc == null) return Sequence.EMPTY_SEQUENCE; if(!doc.getPermissions().validate(context.getUser(), Permission.READ)) throw new XPathException(getASTNode(), "Insufficient privileges to read resource " + path); // wait for currently pending updates dlock = doc.getUpdateLock(); dlock.acquire(Lock.READ_LOCK); cachedPath = path; cachedNode = new NodeProxy(doc, -1, Node.DOCUMENT_NODE); return cachedNode; } catch (PermissionDeniedException e) { throw new XPathException( "Permission denied: unable to load document " + path); } catch (LockException e) { throw new XPathException(getASTNode(), "Failed to acquire read lock on document " + path); } finally { if(dlock != null) dlock.release(Lock.READ_LOCK); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/82334808af49cb6fbd738d4e24528b9d48573eb5/FunDoc.java/clean/src/org/exist/xquery/functions/FunDoc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
2828,
997,
273,
446,
31,
8370,
4319,
2828,
997,
273,
446,
31,
5302,
12,
4021,
4319,
2828,
997,
273,
446,
31,
819,
4021,
16,
4319,
2828,
997,
273,
446,
31,
4342,
4319,
2828,
997,
273,
446,
31,
819,
1180,
13,
202,
202,
15069,
4319,
2828,
997,
273,
446,
31,
10172,
503,
4319,
2828,
997,
273,
446,
31,
288,
202,
202,
4021,
4319,
2828,
997,
273,
446,
31,
1501,
4319,
2828,
997,
273,
446,
31,
273,
1082,
202,
588,
1379,
12,
20,
2934,
8622,
12,
2472,
4021,
16,
4319,
2828,
997,
273,
446,
31,
819,
1180,
1769,
202,
202,
430,
12,
3175,
18,
588,
1782,
1435,
4319,
2828,
997,
273,
446,
31,
422,
4319,
2828,
997,
273,
446,
31,
374,
13,
1082,
202,
2463,
4319,
2828,
997,
273,
446,
31,
8370,
18,
13625,
67,
25330,
31,
202,
202,
780,
4319,
2828,
997,
273,
446,
31,
589,
4319,
2828,
997,
273,
446,
31,
273,
4319,
2828,
997,
273,
446,
31,
1501,
18,
1726,
861,
12,
20,
2934,
588,
19733,
5621,
202,
202,
430,
4319,
2828,
997,
273,
446,
31,
261,
803,
18,
2469,
1435,
4319,
2828,
997,
273,
446,
31,
422,
4319,
2828,
997,
273,
446,
31,
374,
13,
1082,
202,
12849,
4319,
2828,
997,
273,
446,
31,
394,
4319,
2828,
997,
273,
446,
31,
10172,
503,
2932,
1941,
4319,
2828,
997,
273,
446,
31,
1237,
4319,
2828,
997,
273,
446,
31,
358,
4319,
2828,
997,
273,
446,
31,
2295,
30,
2434,
4319,
2828,
997,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4319,
2828,
997,
273,
446,
31,
8370,
4319,
2828,
997,
273,
446,
31,
5302,
12,
4021,
4319,
2828,
997,
273,
446,
31,
819,
4021,
16,
4319,
2828,
997,
273,
446,
31,
4342,
4319,
2828,
997,
273,
446,
31,
819,
1180,
13,
202,
202,
15069,
4319,
2828,
997,
273,
446,
31,
10172,
503,
4319,
2828,
997,
273,
446,
31,
288,
202,
202,
4021,
4319,
2828,
997,
273,
446,
31,
1501,
4319,
2828,
997,
273,
446,
31,
273,
1082,
202,
588,
1379,
12,
20,
2934,
8622,
12,
2472,
4021,
16,
4319,
2828,
997,
273,
446,
31,
819,
1180,
1769,
202,
202,
430,
12,
3175,
18,
588,
1782,
1435,
4319,
2828,
997,
273,
446,
31,
422,
4319,
2828,
997,
2
] |
|
read = read();
|
if (count < length) { read = read(); }
|
public int readLine(byte[] b, int offset, int length) throws IOException { int count = 0; int read = read(); if (read == -1) { return -1; } while ((read != -1) && (count < length)) { if (read == '\n') break; b[offset] = (byte) read; count++; offset++; read = read(); } return count; }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/c0776b9c84dfa396ad17b38fd613c281e5ce01b0/BufferedMultipartInputStream.java/clean/src/share/org/apache/struts/upload/BufferedMultipartInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12273,
12,
7229,
8526,
324,
16,
509,
1384,
16,
509,
769,
13,
1216,
1860,
288,
7734,
509,
1056,
273,
374,
31,
3639,
509,
282,
309,
261,
1883,
411,
769,
13,
288,
855,
273,
855,
5621,
289,
3639,
309,
261,
896,
422,
300,
21,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
7734,
1323,
14015,
896,
480,
300,
21,
13,
597,
261,
1883,
411,
769,
3719,
288,
5411,
309,
261,
896,
422,
2337,
82,
6134,
7734,
898,
31,
5411,
324,
63,
3348,
65,
273,
261,
7229,
13,
855,
31,
5411,
1056,
9904,
31,
5411,
1384,
9904,
31,
2868,
309,
261,
1883,
411,
769,
13,
288,
855,
273,
855,
5621,
289,
3639,
289,
3639,
327,
1056,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12273,
12,
7229,
8526,
324,
16,
509,
1384,
16,
509,
769,
13,
1216,
1860,
288,
7734,
509,
1056,
273,
374,
31,
3639,
509,
282,
309,
261,
1883,
411,
769,
13,
288,
855,
273,
855,
5621,
289,
3639,
309,
261,
896,
422,
300,
21,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
7734,
1323,
14015,
896,
480,
300,
21,
13,
597,
261,
1883,
411,
769,
3719,
288,
5411,
309,
261,
896,
422,
2337,
82,
6134,
7734,
898,
31,
5411,
324,
63,
3348,
65,
273,
261,
7229,
13,
855,
31,
5411,
1056,
9904,
31,
5411,
1384,
9904,
31,
2868,
309,
261,
1883,
411,
769,
13,
288,
855,
273,
855,
5621,
289,
3639,
289,
3639,
327,
1056,
31,
2
] |
&& CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires());
|
&& CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { if (f_req.getParameterMap().size() == 0) { CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); }
|
private byte[] dispatchJsp(CmsFlexController controller) throws ServletException, IOException { // get request / response wrappers CmsFlexRequest f_req = controller.getCurrentRequest(); CmsFlexResponse f_res = controller.getCurrentResponse(); try { f_req.getRequestDispatcher(controller.getCmsObject().readAbsolutePath(controller.getCmsResource())) .include(f_req, f_res); } catch (SocketException e) { // uncritical, might happen if client (browser) does not wait until end of page delivery OpenCms.getLog(this).debug("Ignoring SocketException" + e); } byte[] result = null; HttpServletResponse res = controller.getTopResponse(); if (!controller.isStreaming() && !f_res.isSuspended()) { try { // if a JSP errorpage was triggered the response will be already committed here if (!res.isCommitted() || m_errorPagesAreNotCommited) { // check if the content was modified since the last request if (controller.isTop() && CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); res.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return null; } // get the result byte array result = f_res.getWriterBytes(); if (controller.getTopRequest().getHeader(I_CmsConstants.C_HEADER_OPENCMS_EXPORT) != null) { // this is an export request, don't write to the response stream controller.getTopRequest().setAttribute( I_CmsConstants.C_HEADER_OPENCMS_EXPORT, new Long(controller.getDateLastModified())); } else if (controller.isTop()) { // process headers and write output if this is the "top" request/response res.setContentLength(result.length); // set date last modified header CmsFlexController.setDateLastModifiedHeader(res, controller.getDateLastModified()); CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); CmsFlexResponse.processHeaders(f_res.getHeaders(), res); res.getOutputStream().write(result); res.getOutputStream().flush(); } } } catch (IllegalStateException e) { // uncritical, might happen if JSP error page was used OpenCms.getLog(this).debug("Ignoring IllegalStateException" + e); } catch (SocketException e) { // uncritical, might happen if client (browser) does not wait until end of page delivery OpenCms.getLog(this).debug("Ignoring SocketException", e); } } return result; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f763862bd99446199b428469bc93d10136c32226/CmsJspLoader.java/clean/src/org/opencms/loader/CmsJspLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
3435,
21796,
12,
4747,
19667,
2933,
2596,
13,
1216,
16517,
16,
1860,
288,
3639,
368,
336,
590,
342,
766,
21589,
3639,
2149,
19667,
691,
284,
67,
3658,
273,
2596,
18,
588,
3935,
691,
5621,
3639,
2149,
19667,
1064,
284,
67,
455,
273,
2596,
18,
588,
3935,
1064,
5621,
3639,
775,
288,
5411,
284,
67,
3658,
18,
588,
691,
6681,
12,
5723,
18,
588,
4747,
921,
7675,
896,
10368,
743,
12,
5723,
18,
588,
4747,
1420,
1435,
3719,
7734,
263,
6702,
12,
74,
67,
3658,
16,
284,
67,
455,
1769,
3639,
289,
1044,
261,
4534,
503,
425,
13,
288,
5411,
368,
6301,
15197,
16,
4825,
5865,
309,
1004,
261,
11213,
13,
1552,
486,
2529,
3180,
679,
434,
1363,
7912,
5411,
10319,
18,
588,
1343,
12,
2211,
2934,
4148,
2932,
21702,
8758,
503,
6,
397,
425,
1769,
3639,
289,
3639,
1160,
8526,
563,
273,
446,
31,
3639,
12446,
400,
273,
2596,
18,
588,
3401,
1064,
5621,
3639,
309,
16051,
5723,
18,
291,
15973,
1435,
597,
401,
74,
67,
455,
18,
291,
55,
22942,
10756,
288,
5411,
775,
288,
7734,
368,
309,
279,
804,
3118,
555,
2433,
1703,
10861,
326,
766,
903,
506,
1818,
16015,
2674,
7734,
309,
16051,
455,
18,
291,
27813,
1435,
747,
312,
67,
1636,
5716,
4704,
1248,
5580,
329,
13,
288,
10792,
368,
866,
309,
326,
913,
1703,
4358,
3241,
326,
1142,
590,
10792,
309,
261,
5723,
18,
291,
3401,
1435,
13491,
597,
2149,
19667,
2933,
18,
291,
1248,
29943,
12,
74,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
3435,
21796,
12,
4747,
19667,
2933,
2596,
13,
1216,
16517,
16,
1860,
288,
3639,
368,
336,
590,
342,
766,
21589,
3639,
2149,
19667,
691,
284,
67,
3658,
273,
2596,
18,
588,
3935,
691,
5621,
3639,
2149,
19667,
1064,
284,
67,
455,
273,
2596,
18,
588,
3935,
1064,
5621,
3639,
775,
288,
5411,
284,
67,
3658,
18,
588,
691,
6681,
12,
5723,
18,
588,
4747,
921,
7675,
896,
10368,
743,
12,
5723,
18,
588,
4747,
1420,
1435,
3719,
7734,
263,
6702,
12,
74,
67,
3658,
16,
284,
67,
455,
1769,
3639,
289,
1044,
261,
4534,
503,
425,
13,
288,
5411,
368,
6301,
15197,
16,
4825,
5865,
309,
1004,
261,
11213,
13,
1552,
486,
2529,
3180,
679,
2
] |
conn.commit();
|
conn.commit();
|
private void commentList(Integer userId) { ResultSet rs = null; String date, comment; int authorId; try { conn.setAutoCommit(false); // faster if made inside a Tx // Try to find the comment corresponding to the user try { stmt = conn.prepareStatement("SELECT * FROM comments WHERE to_user_id=?"); stmt.setInt(1, userId.intValue()); rs = stmt.executeQuery(); } catch (Exception e) { sp.printHTML("Failed to execute Query for list of comments: " + e); closeConnection(); return; } if (!rs.first()) { sp.printHTML("<h3>There is no comment yet for this user.</h3><br>"); return; } else sp.printHTML("<br><hr><br><h3>Comments for this user</h3><br>"); sp.printCommentHeader(); // Display each comment and the name of its author do { comment = rs.getString("comment"); date = rs.getString("date"); authorId = rs.getInt("from_user_id"); String authorName = "none"; ResultSet authorRS = null; try { stmt = conn.prepareStatement("SELECT nickname FROM users WHERE id=?"); stmt.setInt(1, authorId); authorRS = stmt.executeQuery(); if (authorRS.first()) authorName = authorRS.getString("nickname"); } catch (Exception e) { sp.printHTML("Failed to execute Query for the comment author: " + e); closeConnection(); return; } sp.printComment(authorName, authorId, date, comment); } while (rs.next()); sp.printCommentFooter(); conn.commit(); } catch (Exception e) { sp.printHTML("Exception getting comment list: " + e + "<br>"); try { conn.rollback(); } catch (Exception se) { sp.printHTML("Transaction rollback failed: " + e + "<br>"); } closeConnection(); } }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/d48a75a39f89d17aea7e3f2fc2dbce50b1ce6950/ViewUserInfo.java/buggy/Servlets/edu/rice/rubis/servlets/ViewUserInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2879,
682,
12,
4522,
6249,
13,
225,
288,
565,
10842,
3597,
273,
446,
31,
565,
514,
1509,
16,
2879,
31,
565,
509,
2869,
548,
31,
565,
775,
565,
288,
1377,
1487,
18,
542,
4965,
5580,
12,
5743,
1769,
368,
12063,
309,
7165,
4832,
279,
6424,
1377,
368,
6161,
358,
1104,
326,
2879,
4656,
358,
326,
729,
1377,
775,
1377,
288,
3639,
3480,
273,
1850,
1487,
18,
9366,
3406,
2932,
4803,
380,
4571,
5678,
4852,
358,
67,
1355,
67,
350,
25501,
1769,
3639,
3480,
18,
542,
1702,
12,
21,
16,
6249,
18,
474,
620,
10663,
3639,
3597,
273,
3480,
18,
8837,
1138,
5621,
1377,
289,
1377,
1044,
261,
503,
425,
13,
1377,
288,
3639,
1694,
18,
1188,
4870,
2932,
2925,
358,
1836,
2770,
364,
666,
434,
5678,
30,
315,
397,
425,
1769,
3639,
1746,
1952,
5621,
3639,
327,
31,
1377,
289,
1377,
309,
16051,
5453,
18,
3645,
10756,
1377,
288,
3639,
1694,
18,
1188,
4870,
2932,
32,
76,
23,
34,
9828,
353,
1158,
2879,
4671,
364,
333,
729,
17347,
76,
23,
4438,
2848,
2984,
1769,
3639,
327,
31,
1377,
289,
1377,
469,
3639,
1694,
18,
1188,
4870,
2932,
32,
2848,
4438,
7256,
4438,
2848,
4438,
76,
23,
34,
9051,
364,
333,
729,
1757,
76,
23,
4438,
2848,
2984,
1769,
1377,
1694,
18,
1188,
4469,
1864,
5621,
1377,
368,
9311,
1517,
2879,
471,
326,
508,
434,
2097,
2869,
1377,
741,
1377,
288,
3639,
2879,
273,
3597,
18,
588,
780,
2932,
3469,
8863,
3639,
1509,
273,
3597,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2879,
682,
12,
4522,
6249,
13,
225,
288,
565,
10842,
3597,
273,
446,
31,
565,
514,
1509,
16,
2879,
31,
565,
509,
2869,
548,
31,
565,
775,
565,
288,
1377,
1487,
18,
542,
4965,
5580,
12,
5743,
1769,
368,
12063,
309,
7165,
4832,
279,
6424,
1377,
368,
6161,
358,
1104,
326,
2879,
4656,
358,
326,
729,
1377,
775,
1377,
288,
3639,
3480,
273,
1850,
1487,
18,
9366,
3406,
2932,
4803,
380,
4571,
5678,
4852,
358,
67,
1355,
67,
350,
25501,
1769,
3639,
3480,
18,
542,
1702,
12,
21,
16,
6249,
18,
474,
620,
10663,
3639,
3597,
273,
3480,
18,
8837,
1138,
5621,
1377,
289,
1377,
1044,
261,
503,
425,
13,
1377,
288,
3639,
1694,
18,
1188,
2
] |
public void print(PrintWriter _ps) { try { // only generate class files for explicitly // defined sequence types, i.e. for typedef'd ones if ((!written) && typedefd) { // write holder file String fullName = full_name(); String className; if (fullName.indexOf('.') > 0) { pack_name = fullName.substring(0, fullName.lastIndexOf('.')); className = fullName.substring(fullName.lastIndexOf('.') + 1); } else { pack_name = ""; className = fullName; } String path = parser.out_dir + fileSeparator + pack_name.replace('.', fileSeparator); File dir = new File(path); if (!dir.exists()) { if (!dir.mkdirs()) { org.jacorb.idl.parser.fatal_error("Unable to create " + path, null); } } String fname = className + "Holder.java"; File f = new File(dir, fname); if (GlobalInputStream.isMoreRecentThan(f)) { // print the mapped java class PrintWriter ps = new PrintWriter(new java.io.FileWriter(f)); printHolderClass(className, ps); ps.close(); } fname = className + "Helper.java"; f = new File(dir, fname); if (GlobalInputStream.isMoreRecentThan(f)) { // print the mapped java class PrintWriter ps = new PrintWriter(new java.io.FileWriter(f)); printHelperClass(className, ps); ps.close(); } written = true; } } catch (java.io.IOException i) { throw new RuntimeException("File IO error" + i); } }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1fa4fca3642e870636f7373973e37568c93c654b/SequenceType.java/clean/src/org/jacorb/idl/SequenceType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1188,
12,
5108,
2289,
67,
1121,
15329,
698,
95,
759,
3700,
7163,
1106,
2354,
1405,
92,
3561,
715,
759,
2178,
307,
372,
1331,
15180,
16,
77,
18,
73,
18,
18850,
388,
536,
14271,
5322,
430,
12443,
5,
9748,
13,
10,
10,
723,
536,
72,
15329,
759,
2626,
4505,
768,
780,
2854,
461,
33,
2854,
67,
529,
5621,
780,
12434,
31,
430,
12,
2854,
461,
18,
31806,
2668,
1093,
13,
34,
20,
15329,
2920,
67,
529,
33,
2854,
461,
18,
28023,
12,
20,
16,
2854,
461,
18,
2722,
31985,
2668,
1093,
10019,
12434,
33,
2854,
461,
18,
28023,
12,
2854,
461,
18,
2722,
31985,
2668,
1093,
27921,
21,
1769,
97,
12107,
95,
2920,
67,
529,
1546,
14432,
12434,
33,
2854,
461,
31,
97,
780,
803,
33,
4288,
18,
659,
67,
1214,
15,
768,
6581,
15,
2920,
67,
529,
18,
2079,
2668,
1093,
16,
768,
6581,
1769,
812,
1214,
33,
2704,
812,
12,
803,
1769,
430,
12,
5,
1214,
18,
1808,
10756,
95,
430,
12,
5,
1214,
18,
24816,
8291,
10756,
95,
3341,
18,
31390,
16640,
18,
350,
80,
18,
4288,
18,
30709,
67,
1636,
2932,
984,
378,
1810,
504,
602,
6,
15,
803,
16,
2011,
1769,
9090,
780,
12749,
33,
12434,
9078,
6064,
18,
6290,
14432,
812,
74,
33,
2704,
812,
12,
1214,
16,
12749,
1769,
430,
12,
5160,
4348,
18,
291,
7417,
17076,
9516,
12,
74,
3719,
95,
759,
1188,
451,
25248,
1845,
19207,
1077,
459,
5108,
2289,
1121,
33,
2704,
5108,
2289,
12,
2704,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1188,
12,
5108,
2289,
67,
1121,
15329,
698,
95,
759,
3700,
7163,
1106,
2354,
1405,
92,
3561,
715,
759,
2178,
307,
372,
1331,
15180,
16,
77,
18,
73,
18,
18850,
388,
536,
14271,
5322,
430,
12443,
5,
9748,
13,
10,
10,
723,
536,
72,
15329,
759,
2626,
4505,
768,
780,
2854,
461,
33,
2854,
67,
529,
5621,
780,
12434,
31,
430,
12,
2854,
461,
18,
31806,
2668,
1093,
13,
34,
20,
15329,
2920,
67,
529,
33,
2854,
461,
18,
28023,
12,
20,
16,
2854,
461,
18,
2722,
31985,
2668,
1093,
10019,
12434,
33,
2854,
461,
18,
28023,
12,
2854,
461,
18,
2722,
31985,
2668,
1093,
27921,
21,
1769,
97,
12107,
95,
2920,
67,
529,
1546,
14432,
12434,
2
] |
||
final DefaultActionGroup executeOnGroup = new DefaultActionGroup(AntBundle.message("ant.explorer.execute.on.action.group.name"), true);
|
final DefaultActionGroup executeOnGroup = new DefaultActionGroup(AntBundle.message("ant.explorer.execute.on.action.group.name"), true);
|
private void popupInvoked(final Component comp, final int x, final int y) { Object userObject = null; final TreePath path = myTree.getSelectionPath(); if (path != null) { final DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent(); if (node != null) { userObject = node.getUserObject(); } } final DefaultActionGroup group = new DefaultActionGroup(); group.add(new RunAction()); group.add(new CreateMetaTargetAction()); group.add(new RemoveMetaTargetsOrBuildFileAction()); group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); if (userObject instanceof AntBuildFileNodeDescriptor) { group.add(new RemoveBuildFileAction(this)); } if (userObject instanceof AntTargetNodeDescriptor) { final AntBuildTargetBase target = ((AntTargetNodeDescriptor)userObject).getTarget(); final DefaultActionGroup executeOnGroup = new DefaultActionGroup(AntBundle.message("ant.explorer.execute.on.action.group.name"), true); executeOnGroup.add(new ExecuteOnEventAction(target, ExecuteBeforeCompilationEvent.getInstance())); executeOnGroup.add(new ExecuteOnEventAction(target, ExecuteAfterCompilationEvent.getInstance())); executeOnGroup.addSeparator(); executeOnGroup.add(new ExecuteBeforeRunAction(target, getCurrentBuildFile())); group.add(executeOnGroup); group.add(new AssignShortcutAction(target.getActionId())); } group.add(myAntBuildFilePropertiesAction); final ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.ANT_EXPLORER_POPUP, group); popupMenu.getComponent().show(comp, x, y); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/04c0300f2ab4d47ceeca13252dfb897f69527d64/AntExplorer.java/buggy/plugins/ant/src/com/intellij/lang/ant/config/explorer/AntExplorer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
10431,
26215,
12,
6385,
5435,
1161,
16,
727,
509,
619,
16,
727,
509,
677,
13,
288,
565,
1033,
729,
921,
273,
446,
31,
565,
727,
4902,
743,
589,
273,
3399,
2471,
18,
588,
6233,
743,
5621,
565,
309,
261,
803,
480,
446,
13,
288,
1377,
727,
2989,
19536,
12513,
756,
273,
261,
1868,
19536,
12513,
13,
803,
18,
588,
3024,
743,
1841,
5621,
1377,
309,
261,
2159,
480,
446,
13,
288,
3639,
729,
921,
273,
756,
18,
588,
1299,
921,
5621,
1377,
289,
565,
289,
565,
727,
2989,
1803,
1114,
1041,
273,
394,
2989,
1803,
1114,
5621,
565,
1041,
18,
1289,
12,
2704,
1939,
1803,
10663,
565,
1041,
18,
1289,
12,
2704,
1788,
2781,
2326,
1803,
10663,
565,
1041,
18,
1289,
12,
2704,
3581,
2781,
9432,
1162,
3116,
812,
1803,
10663,
565,
1041,
18,
1289,
12,
1803,
1318,
18,
588,
1442,
7675,
588,
1803,
12,
45,
323,
6100,
18,
12249,
67,
10776,
67,
6537,
10019,
565,
309,
261,
1355,
921,
1276,
18830,
3116,
812,
907,
3187,
13,
288,
1377,
1041,
18,
1289,
12,
2704,
3581,
3116,
812,
1803,
12,
2211,
10019,
565,
289,
565,
309,
261,
1355,
921,
1276,
18830,
2326,
907,
3187,
13,
288,
1377,
727,
18830,
3116,
2326,
2171,
1018,
273,
14015,
14925,
2326,
907,
3187,
13,
1355,
921,
2934,
588,
2326,
5621,
1377,
727,
2989,
1803,
1114,
1836,
1398,
1114,
273,
394,
2989,
1803,
1114,
12,
14925,
3405,
18,
2150,
2932,
970,
18,
338,
11766,
18,
8837,
18,
265,
18,
1128,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
10431,
26215,
12,
6385,
5435,
1161,
16,
727,
509,
619,
16,
727,
509,
677,
13,
288,
565,
1033,
729,
921,
273,
446,
31,
565,
727,
4902,
743,
589,
273,
3399,
2471,
18,
588,
6233,
743,
5621,
565,
309,
261,
803,
480,
446,
13,
288,
1377,
727,
2989,
19536,
12513,
756,
273,
261,
1868,
19536,
12513,
13,
803,
18,
588,
3024,
743,
1841,
5621,
1377,
309,
261,
2159,
480,
446,
13,
288,
3639,
729,
921,
273,
756,
18,
588,
1299,
921,
5621,
1377,
289,
565,
289,
565,
727,
2989,
1803,
1114,
1041,
273,
394,
2989,
1803,
1114,
5621,
565,
1041,
18,
1289,
12,
2704,
1939,
1803,
10663,
565,
1041,
18,
1289,
12,
2704,
1788,
2781,
2326,
1803,
2
] |
boolean isSuperadmin = imcref.checkUserAdminrole( user.getUserId(), 1 );
|
boolean isSuperadmin = imcref.checkUserAdminrole( user.getUserId(), 1 );
|
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets validate the session if( super.checkSession( req, res ) == false ) return; // Get the session HttpSession session = req.getSession( false ); // Lets get an user object imcode.server.user.UserDomainObject user = super.getUserObj( req, res ); if( user == null ) { String header = "Error in AdminCounter."; String msg = "Couldnt create an user object." + "<BR>"; this.log( header + msg ); new AdminError( req, res, header, msg ); return; } IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterface( req ); // check if user is a Useradmin, adminRole = 2 boolean isUseradmin = imcref.checkUserAdminrole( user.getUserId(), 2 ); // check if user is a Superadmin, adminRole = 1 boolean isSuperadmin = imcref.checkUserAdminrole( user.getUserId(), 1 ); //Lets get temporary values from session if there is some. //String[] tmp_userRoles = (String[])session.getAttribute("tempUserRoles"); //String tmp_userType = (String)session.getAttribute("tempUserType"); Properties tmp_userInfo = (Properties)session.getAttribute( "tempUser" ); Vector tmp_phones = (Vector)session.getAttribute( "Ok_phoneNumbers" ); if( tmp_phones == null ) { tmp_phones = new Vector(); } String[] phonetypesA = imcref.sqlProcedure( "GetPhonetypes " + user.getLangId() ); // Get a new Vector: phonetype_id, typename Vector phoneTypesV = new Vector( java.util.Arrays.asList( phonetypesA ) ); // ******* GENERATE AN ADD_USER PAGE ********** if( req.getParameter( "ADD_USER" ) != null ) { // Lets check if the user is an admin, otherwise throw him out. //if (imcref.checkAdminRights(user) == false) { if( !isSuperadmin && !isUseradmin ) { showErrorPageUserNotAnAdministrator( req, res ); return; } showAddUserPage( tmp_userInfo, res, phoneTypesV, tmp_phones, user, imcref, req, session ); return; } // ******* GENERATE AN CHANGE_USER PAGE********** if( req.getParameter( "CHANGE_USER" ) != null ) { log( "Changeuser" ); // lets first try to get userId from the session if we has been redirectet from authenticate String userToChangeId = getCurrentUserId( req, res ); // Lets check if the user has right to do changes // only if he is an superadmin, useradmin or if he try to change his own values // otherwise throw him out. if( imcref.checkAdminRights( user ) == false && !isUseradmin && !userToChangeId.equals( "" + user.getUserId() ) ) { showErrorPageUserHasNoRightsToChangeUserValues( req, res ); return; } showChangeUserPage( userToChangeId, imcref, tmp_userInfo, tmp_phones, user, res, session, phoneTypesV, isSuperadmin, isUseradmin, req ); return; } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/04c4b3b5609d7d010ac7c9c5eeb9d696b924a290/AdminUserProps.java/clean/servlets/AdminUserProps.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
1377,
368,
511,
2413,
1954,
326,
1339,
1377,
309,
12,
2240,
18,
1893,
2157,
12,
1111,
16,
400,
262,
422,
629,
262,
540,
327,
31,
1377,
368,
968,
326,
1339,
1377,
26166,
1339,
273,
1111,
18,
588,
2157,
12,
629,
11272,
1377,
368,
511,
2413,
336,
392,
729,
733,
1377,
709,
710,
18,
3567,
18,
1355,
18,
1299,
3748,
921,
729,
273,
2240,
18,
588,
1299,
2675,
12,
1111,
16,
400,
11272,
1377,
309,
12,
729,
422,
446,
262,
288,
540,
514,
1446,
273,
315,
668,
316,
7807,
4789,
1199,
31,
540,
514,
1234,
273,
315,
4445,
496,
752,
392,
729,
733,
1199,
397,
3532,
7192,
2984,
31,
540,
333,
18,
1330,
12,
1446,
397,
1234,
11272,
540,
394,
7807,
668,
12,
1111,
16,
400,
16,
1446,
16,
1234,
11272,
540,
327,
31,
1377,
289,
1377,
6246,
39,
18348,
709,
71,
1734,
273,
6246,
39,
1179,
54,
7492,
18,
588,
3445,
39,
18348,
12,
1111,
11272,
1377,
368,
866,
309,
729,
353,
279,
2177,
3666,
16,
3981,
2996,
273,
576,
1377,
1250,
29302,
3666,
273,
709,
71,
1734,
18,
1893,
1299,
4446,
4615,
12,
729,
18,
588,
10502,
9334,
576,
11272,
1377,
368,
866,
309,
729,
353,
279,
14845,
3666,
16,
3981,
2996,
273,
404,
1377,
1250,
353,
8051,
3666,
273,
709,
71,
1734,
18,
1893,
1299,
4446,
4615,
12,
729,
18,
588,
10502,
9334,
404,
11272,
1377,
368,
48,
2413,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
1377,
368,
511,
2413,
1954,
326,
1339,
1377,
309,
12,
2240,
18,
1893,
2157,
12,
1111,
16,
400,
262,
422,
629,
262,
540,
327,
31,
1377,
368,
968,
326,
1339,
1377,
26166,
1339,
273,
1111,
18,
588,
2157,
12,
629,
11272,
1377,
368,
511,
2413,
336,
392,
729,
733,
1377,
709,
710,
18,
3567,
18,
1355,
18,
1299,
3748,
921,
729,
273,
2240,
18,
588,
1299,
2675,
12,
1111,
16,
400,
11272,
1377,
309,
12,
729,
422,
446,
262,
288,
540,
514,
1446,
273,
315,
668,
316,
7807,
4789,
1199,
31,
540,
514,
1234,
273,
315,
4445,
496,
752,
392,
729,
733,
1199,
2
] |
}
|
}
|
boolean handleEvent (AWTEvent e) { if ((eventMask & e.getID ()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent (me); if (mouseEventTarget != null) { Component oldSource = (Component) me.getSource (); me.setSource (mouseEventTarget); mouseEventTarget.dispatchEvent (me); me.setSource (oldSource); } } else if (e instanceof KeyEvent && focus != null) { focus.processKeyEvent ((KeyEvent) e); } return e.isConsumed(); }
|
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/ad6c8435ee03593e980da05d382c95b10d220822/Container.java/buggy/libjava/java/awt/Container.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
1640,
1133,
261,
37,
8588,
1133,
425,
13,
225,
288,
565,
309,
14015,
2575,
5796,
473,
425,
18,
588,
734,
1832,
13,
422,
374,
13,
202,
565,
327,
629,
31,
565,
309,
261,
73,
1276,
17013,
1133,
13,
225,
288,
3639,
17013,
1133,
1791,
273,
261,
9186,
1133,
13,
425,
31,
3639,
10533,
1841,
1290,
9186,
1133,
261,
3501,
1769,
3639,
309,
261,
11697,
1133,
2326,
480,
446,
13,
1850,
288,
5411,
5435,
1592,
1830,
273,
261,
1841,
13,
1791,
18,
588,
1830,
261,
1769,
5411,
1791,
18,
542,
1830,
261,
11697,
1133,
2326,
1769,
5411,
7644,
1133,
2326,
18,
10739,
1133,
261,
3501,
1769,
5411,
1791,
18,
542,
1830,
261,
1673,
1830,
1769,
1850,
289,
202,
565,
289,
565,
469,
309,
261,
73,
1276,
23737,
597,
7155,
480,
446,
13,
225,
288,
3639,
7155,
18,
2567,
653,
1133,
14015,
653,
1133,
13,
425,
1769,
202,
565,
289,
1850,
327,
425,
18,
291,
20554,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
1640,
1133,
261,
37,
8588,
1133,
425,
13,
225,
288,
565,
309,
14015,
2575,
5796,
473,
425,
18,
588,
734,
1832,
13,
422,
374,
13,
202,
565,
327,
629,
31,
565,
309,
261,
73,
1276,
17013,
1133,
13,
225,
288,
3639,
17013,
1133,
1791,
273,
261,
9186,
1133,
13,
425,
31,
3639,
10533,
1841,
1290,
9186,
1133,
261,
3501,
1769,
3639,
309,
261,
11697,
1133,
2326,
480,
446,
13,
1850,
288,
5411,
5435,
1592,
1830,
273,
261,
1841,
13,
1791,
18,
588,
1830,
261,
1769,
5411,
1791,
18,
542,
1830,
261,
11697,
1133,
2326,
1769,
5411,
7644,
1133,
2326,
18,
10739,
1133,
261,
3501,
1769,
5411,
1791,
18,
542,
1830,
261,
1673,
1830,
1769,
1850,
289,
202,
2
] |
public void findTypes(char[] prefix, boolean findMembers, ISearchRequestor storage) {
|
public void findTypes(char[] prefix, boolean findMembers, boolean camelCaseMatch, ISearchRequestor storage) {
|
public void findTypes(char[] prefix, boolean findMembers, ISearchRequestor storage) { checkCanceled(); super.findTypes(prefix, findMembers, storage); }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7f7fe7a0ba4a6e12c0bff10c900a5fe01a5f59ed/CancelableNameEnvironment.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CancelableNameEnvironment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
2016,
12,
3001,
8526,
1633,
16,
1250,
1104,
6918,
16,
467,
2979,
691,
280,
2502,
13,
288,
202,
202,
1893,
23163,
5621,
202,
202,
9565,
18,
4720,
2016,
12,
3239,
16,
1104,
6918,
16,
2502,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
2016,
12,
3001,
8526,
1633,
16,
1250,
1104,
6918,
16,
467,
2979,
691,
280,
2502,
13,
288,
202,
202,
1893,
23163,
5621,
202,
202,
9565,
18,
4720,
2016,
12,
3239,
16,
1104,
6918,
16,
2502,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0,
|
0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0,
|
private static final short[] yyTable4() { return new short[] { 54, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 56, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 47, 39, 40, 41, 42, 41, 0, 43, 44, 45, 0, 0, 0, 0, 0, 41, 0, 47, 47, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 41, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 41, 0, 0, 0, 0, 0, 0, 54, 54, 0, 54, 54, 54, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 41, 41, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 414, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 615, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 804, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 808, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 812, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 867, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 869, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 881, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 251, 251, 251, 0, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 0, 251, 251, 251, 0, 251, 0, 251, 0, 251, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 268, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 593, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 643, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 769, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 798, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 483, 483, 483, 0, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 483, 483, 0, 0, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 213, 213, 213, 0, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 213, 213, 0, 0, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 0, 213, 213, 213, 0, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 349, 0, 48, 49, 50, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 286, 287, 199, 288, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, }; }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
22431,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282,
4248,
16,
282,
6969,
16,
565,
374,
16,
565,
374,
16,
5411,
10659,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
13850,
16,
282,
12732,
16,
282,
9131,
16,
282,
12899,
16,
282,
5196,
16,
5411,
8231,
16,
282,
3847,
16,
282,
13159,
16,
282,
13438,
16,
282,
13191,
16,
282,
6580,
16,
282,
18091,
16,
282,
18012,
16,
282,
17495,
16,
282,
16977,
16,
5411,
8063,
16,
282,
20170,
16,
282,
14856,
16,
282,
20170,
16,
565,
374,
16,
282,
21193,
16,
282,
13291,
16,
282,
12292,
16,
565,
374,
16,
565,
374,
16,
2398,
374,
16,
565,
374,
16,
565,
374,
16,
282,
20170,
16,
565,
374,
16,
282,
17495,
16,
282,
17495,
16,
282,
13850,
16,
565,
374,
16,
565,
374,
16,
2398,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
17077,
16,
565,
374,
16,
565,
374,
16,
5411,
17495,
16,
565,
374,
16,
282,
9934,
16,
282,
17160,
16,
282,
6437,
16,
565,
374,
16,
282,
21119,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
5411,
18106,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
20170,
16,
565,
374,
16,
565,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
22431,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282,
4248,
16,
282,
6969,
16,
565,
374,
16,
565,
374,
16,
5411,
10659,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
13850,
16,
282,
12732,
16,
282,
9131,
16,
282,
12899,
16,
282,
5196,
16,
5411,
8231,
16,
282,
3847,
16,
282,
13159,
16,
282,
13438,
16,
282,
13191,
16,
282,
6580,
16,
282,
18091,
16,
282,
18012,
16,
282,
17495,
16,
282,
16977,
16,
5411,
8063,
16,
282,
20170,
16,
282,
14856,
16,
282,
20170,
16,
2
] |
Text textNode = xsdSchema.getDocument().createTextNode("\n");
|
Text textNode = xsdSchema.getDocument().createTextNode("\n");
|
public void execute() { XSDFactory factory = XSDSchemaBuildingTools.getXSDFactory(); XSDComplexTypeDefinition complexType = factory.createXSDComplexTypeDefinition(); addedXSDConcreteComponent = complexType; String newName = getNewName(nameToAdd == null ? "NewXSDComplexType" : nameToAdd, parent.getSchema()); complexType.setName(newName); if (parent instanceof XSDSchema) { try { XSDSchema xsdSchema = (XSDSchema)parent; Text textNode = xsdSchema.getDocument().createTextNode("\n"); xsdSchema.getElement().appendChild(textNode); xsdSchema.getContents().add(complexType); } catch (Exception e) { e.printStackTrace(); } } else if (parent instanceof XSDElementDeclaration) { ((XSDElementDeclaration) parent).setAnonymousTypeDefinition((XSDComplexTypeDefinition) complexType); formatChild(parent.getElement()); } createdComplexType = complexType; }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/62c89ad1fbc07ee51dde873a5a1d9b4784eaf3f9/AddXSDComplexTypeDefinitionCommand.java/clean/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/AddXSDComplexTypeDefinitionCommand.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
225,
288,
565,
26462,
1733,
3272,
273,
26462,
3078,
16713,
10348,
18,
588,
31244,
1733,
5621,
565,
26462,
12795,
559,
1852,
7233,
559,
273,
3272,
18,
2640,
31244,
12795,
559,
1852,
5621,
565,
3096,
31244,
25845,
1841,
273,
7233,
559,
31,
565,
514,
13253,
273,
12654,
461,
12,
529,
13786,
422,
446,
692,
315,
1908,
31244,
12795,
559,
6,
294,
508,
13786,
16,
982,
18,
588,
3078,
10663,
565,
7233,
559,
18,
542,
461,
12,
2704,
461,
1769,
565,
309,
261,
2938,
1276,
26462,
3078,
13,
565,
288,
1377,
775,
1377,
288,
3639,
26462,
3078,
14802,
3078,
273,
261,
31244,
3078,
13,
2938,
31,
3639,
3867,
977,
907,
273,
14802,
3078,
18,
588,
2519,
7675,
2640,
17299,
31458,
82,
8863,
3639,
14802,
3078,
18,
21336,
7675,
6923,
1763,
12,
955,
907,
1769,
3639,
14802,
3078,
18,
588,
6323,
7675,
1289,
12,
14259,
559,
1769,
1377,
289,
1377,
1044,
261,
503,
425,
13,
1377,
288,
3639,
425,
18,
1188,
6332,
5621,
1377,
289,
377,
289,
565,
469,
309,
261,
2938,
1276,
26462,
1046,
6094,
13,
565,
288,
1377,
14015,
31244,
1046,
6094,
13,
982,
2934,
542,
18792,
559,
1852,
12443,
31244,
12795,
559,
1852,
13,
7233,
559,
1769,
1377,
740,
1763,
12,
2938,
18,
21336,
10663,
565,
289,
565,
2522,
12795,
559,
273,
7233,
559,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
225,
288,
565,
26462,
1733,
3272,
273,
26462,
3078,
16713,
10348,
18,
588,
31244,
1733,
5621,
565,
26462,
12795,
559,
1852,
7233,
559,
273,
3272,
18,
2640,
31244,
12795,
559,
1852,
5621,
565,
3096,
31244,
25845,
1841,
273,
7233,
559,
31,
565,
514,
13253,
273,
12654,
461,
12,
529,
13786,
422,
446,
692,
315,
1908,
31244,
12795,
559,
6,
294,
508,
13786,
16,
982,
18,
588,
3078,
10663,
565,
7233,
559,
18,
542,
461,
12,
2704,
461,
1769,
565,
309,
261,
2938,
1276,
26462,
3078,
13,
565,
288,
1377,
775,
1377,
288,
3639,
26462,
3078,
14802,
3078,
273,
261,
31244,
3078,
13,
2938,
31,
3639,
3867,
977,
907,
273,
14802,
3078,
18,
588,
2519,
2
] |
return new AddBracesPredicate(); }
|
return new AddBracesPredicate(); }
|
protected PsiElementPredicate getElementPredicate() { return new AddBracesPredicate(); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4a657090da89db22fd1794270f60907c66fe047e/AddBracesIntention.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/braces/AddBracesIntention.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
453,
7722,
1046,
8634,
7426,
8634,
1435,
288,
565,
327,
394,
1436,
38,
354,
764,
8634,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
4750,
453,
7722,
1046,
8634,
7426,
8634,
1435,
288,
565,
327,
394,
1436,
38,
354,
764,
8634,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
char next = format.nextChar();
|
char next = format.nextChar();
|
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); int idx = 0; String lCurElemString; while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); if (Character.isWhitespace(type)) { // skip all spaces type = next; continue; } if (next == '!' || next == '_') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } next = format.nextChar(); } // Determine how many of type are needed (default: 1) boolean isStar = false; int occurrences = 1; if (next == '*') { if ("@Xxu".indexOf(type) != -1) { occurrences = 0; } else { occurrences = listSize; isStar = true; } next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); // an exception may occur here if an int can't hold this but ... occurrences = format.nextAsciiNumber(); next = format.nextChar(); } Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { idx = encode(runtime, occurrences, result, list, idx, converter); type = next; continue; } switch (type) { case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (isStar) { occurrences = lCurElemString.length(); } switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else {//need padding //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { if ((lCurElemString.charAt(i++) & 1) != 0) {//if the low bit is set currentByte |= 128; //set the high bit of the result } if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte >>= 1; //shift the byte } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte >>= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } //do some padding, I don't understand the padding strategy result.setLength(result.length() + padLength); } break; case 'B' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { currentByte |= lCurElemString.charAt(i++) & 1; // we filled up current byte; append it and create next one if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte <<= 1; } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte <<= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'h' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= (((currentChar & 15) + 9) & 15) << 4; } else { currentByte |= (currentChar & 15) << 4; } if ((i & 1) != 0) { currentByte >>= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'H' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= ((currentChar & 15) + 9) & 15; } else { currentByte |= currentChar & 15; } if ((i & 1) != 0) { currentByte <<= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; } break; } case 'x' : grow(result, sNil10, occurrences); break; case 'X' : try { shrink(result, occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `pack': X outside of string"); } break; case '@' : occurrences -= result.length(); if (occurrences > 0) { grow(result, sNil10, occurrences); } occurrences = -occurrences; if (occurrences > 0) { shrink(result, occurrences); } break; case 'u' : case 'm' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); occurrences = occurrences <= 2 ? 45 : occurrences / 3 * 3; for (;;) { encodes(runtime, result, lCurElemString, occurrences, type); if (occurrences >= lCurElemString.length()) { break; } lCurElemString = lCurElemString.substring(occurrences); } } break; case 'M' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; } qpencode(result, lCurElemString, occurrences); } break; case 'U' : char[] c = new char[occurrences]; for (int cIndex = 0; occurrences-- > 0; cIndex++) { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); long l = from == runtime.getNil() ? 0 : RubyNumeric.num2long(from); c[cIndex] = (char) l; } try { byte[] bytes = new String(c).getBytes("UTF-8"); result.append(RubyString.bytesToString(bytes)); } catch (java.io.UnsupportedEncodingException e) { assert false : "can't convert to UTF8"; } break; } type = next; } return runtime.newString(result.toString()); }
|
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
15908,
10340,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139,
780,
18,
24805,
10663,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
509,
666,
1225,
273,
666,
18,
1467,
5621,
3639,
1149,
618,
273,
740,
18,
4285,
2156,
5621,
7734,
509,
2067,
273,
374,
31,
3639,
514,
328,
2408,
7498,
780,
31,
7734,
1323,
12,
5,
2139,
18,
291,
861,
1638,
10756,
288,
540,
202,
759,
25433,
1024,
618,
16,
740,
434,
783,
618,
16,
15698,
434,
618,
540,
202,
3001,
1024,
273,
740,
18,
4285,
2156,
5621,
5411,
309,
261,
7069,
18,
291,
9431,
12,
723,
3719,
288,
368,
2488,
777,
7292,
7734,
618,
273,
1024,
31,
7734,
1324,
31,
5411,
289,
13491,
309,
261,
4285,
422,
15502,
747,
1024,
422,
4427,
13,
288,
7734,
309,
261,
50,
12992,
67,
17070,
18,
31806,
12,
723,
13,
422,
300,
21,
13,
288,
1171,
202,
12849,
3099,
18,
2704,
1379,
668,
2932,
4970,
397,
1024,
397,
1171,
202,
3639,
2491,
2935,
1338,
1839,
1953,
315,
397,
423,
12992,
67,
17070,
1769,
7734,
289,
7734,
1024,
273,
740,
18,
4285,
2156,
5621,
5411,
289,
5411,
368,
10229,
3661,
4906,
434,
618,
854,
3577,
261,
1886,
30,
404,
13,
5411,
1250,
353,
18379,
273,
629,
31,
5411,
509,
15698,
273,
404,
31,
5411,
309,
261,
4285,
422,
5306,
13,
288,
7734,
309,
7566,
36,
60,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
15908,
10340,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139,
780,
18,
24805,
10663,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
509,
666,
1225,
273,
666,
18,
1467,
5621,
3639,
1149,
618,
273,
740,
18,
4285,
2156,
5621,
7734,
509,
2067,
273,
374,
31,
3639,
514,
328,
2408,
7498,
780,
31,
7734,
1323,
12,
5,
2139,
18,
291,
861,
1638,
10756,
288,
540,
202,
759,
25433,
1024,
618,
16,
740,
434,
783,
618,
16,
15698,
434,
618,
540,
202,
3001,
1024,
273,
740,
18,
4285,
2156,
5621,
5411,
309,
261,
7069,
18,
291,
2
] |
public StepMeta findPrevStep(StepMeta stepMeta, int nr, boolean info)
|
public StepMeta findPrevStep(String stepname, int nr)
|
public StepMeta findPrevStep(StepMeta stepMeta, int nr, boolean info) { int count = 0; int i; for (i = 0; i < nrTransHops(); i++) // Look at all the hops; { TransHopMeta hi = getTransHop(i); if (hi.getToStep() != null && hi.isEnabled() && hi.getToStep().equals(stepMeta)) { if (info || !isStepInformative(stepMeta, hi.getFromStep())) { if (count == nr) { return hi.getFromStep(); } count++; } } } return null; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/010ce55cc835e24ea0d281df3b9d8fb611398414/TransMeta.java/buggy/kettle/src/be/ibridge/kettle/trans/TransMeta.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8693,
2781,
1104,
9958,
4160,
12,
780,
2235,
529,
16,
509,
9884,
13,
565,
288,
3639,
509,
1056,
273,
374,
31,
3639,
509,
277,
31,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
9884,
1429,
44,
4473,
5621,
277,
27245,
368,
10176,
622,
777,
326,
366,
4473,
31,
3639,
288,
5411,
2604,
27461,
2781,
10118,
273,
336,
1429,
27461,
12,
77,
1769,
5411,
309,
261,
12266,
18,
588,
774,
4160,
1435,
480,
446,
597,
10118,
18,
291,
1526,
1435,
597,
10118,
18,
588,
774,
4160,
7675,
14963,
12,
4119,
2781,
3719,
5411,
288,
7734,
309,
261,
1376,
747,
401,
291,
4160,
25541,
1535,
12,
4119,
2781,
16,
10118,
18,
588,
1265,
4160,
1435,
3719,
7734,
288,
10792,
309,
261,
1883,
422,
9884,
13,
288,
327,
10118,
18,
588,
1265,
4160,
5621,
289,
10792,
1056,
9904,
31,
7734,
289,
5411,
289,
3639,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8693,
2781,
1104,
9958,
4160,
12,
780,
2235,
529,
16,
509,
9884,
13,
565,
288,
3639,
509,
1056,
273,
374,
31,
3639,
509,
277,
31,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
9884,
1429,
44,
4473,
5621,
277,
27245,
368,
10176,
622,
777,
326,
366,
4473,
31,
3639,
288,
5411,
2604,
27461,
2781,
10118,
273,
336,
1429,
27461,
12,
77,
1769,
5411,
309,
261,
12266,
18,
588,
774,
4160,
1435,
480,
446,
597,
10118,
18,
291,
1526,
1435,
597,
10118,
18,
588,
774,
4160,
7675,
14963,
12,
4119,
2781,
3719,
5411,
288,
7734,
309,
261,
1376,
747,
401,
291,
4160,
25541,
1535,
12,
4119,
2781,
16,
10118,
18,
588,
1265,
4160,
1435,
3719,
7734,
288,
2
] |
case 113:
|
case 112:
|
final public void subscript() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: jj_consume_token(DOT); jj_consume_token(DOT); SimpleNode jjtn001 = new SimpleNode(JJTELLIPSES); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); jjtreeOpenNodeScope(jjtn001); try { jj_consume_token(DOT); } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, true); jjtreeCloseNodeScope(jjtn001); } } break; case LPAREN: case LBRACE: case LBRACKET: case PLUS: case MINUS: case NOT: case NOT_BOOL: case LAMBDA: case AS: case NAME: case DECNUMBER: case HEXNUMBER: case OCTNUMBER: case FLOAT: case SINGLE_STRING: case SINGLE_STRING2: case TRIPLE_STRING: case TRIPLE_STRING2: case 113: SimpleNode jjtn002 = new SimpleNode(JJTSLICE); boolean jjtc002 = true; jjtree.openNodeScope(jjtn002); jjtreeOpenNodeScope(jjtn002); try { test(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COLON: slice(); break; default: jj_la1[77] = jj_gen; ; } } catch (Throwable jjte002) { if (jjtc002) { jjtree.clearNodeScope(jjtn002); jjtc002 = false; } else { jjtree.popNode(); } if (jjte002 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte002;} } if (jjte002 instanceof ParseException) { {if (true) throw (ParseException)jjte002;} } {if (true) throw (Error)jjte002;} } finally { if (jjtc002) { jjtree.closeNodeScope(jjtn002, jjtree.nodeArity() > 1); jjtreeCloseNodeScope(jjtn002); } } break; case COLON: SimpleNode jjtn003 = new SimpleNode(JJTSLICE); boolean jjtc003 = true; jjtree.openNodeScope(jjtn003); jjtreeOpenNodeScope(jjtn003); try { slice(); } catch (Throwable jjte003) { if (jjtc003) { jjtree.clearNodeScope(jjtn003); jjtc003 = false; } else { jjtree.popNode(); } if (jjte003 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte003;} } if (jjte003 instanceof ParseException) { {if (true) throw (ParseException)jjte003;} } {if (true) throw (Error)jjte003;} } finally { if (jjtc003) { jjtree.closeNodeScope(jjtn003, jjtree.nodeArity() > 0); jjtreeCloseNodeScope(jjtn003); } } break; default: jj_la1[78] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/990a4416bd2a7ed851b7580527ecd4b4df231ca5/PythonGrammar.java/buggy/org/python/parser/PythonGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
31855,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
15772,
30,
1377,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
1377,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
5375,
4477,
907,
10684,
5088,
11664,
273,
394,
4477,
907,
12,
46,
46,
1448,
48,
2053,
52,
1090,
55,
1769,
5375,
1250,
10684,
5111,
11664,
273,
638,
31,
5375,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
11664,
1769,
5375,
10684,
3413,
3678,
907,
3876,
12,
78,
78,
5088,
11664,
1769,
1377,
775,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
1377,
289,
3095,
288,
5375,
309,
261,
78,
78,
5111,
11664,
13,
288,
10792,
10684,
3413,
18,
4412,
907,
3876,
12,
78,
78,
5088,
11664,
16,
638,
1769,
10792,
10684,
3413,
4605,
907,
3876,
12,
78,
78,
5088,
11664,
1769,
5375,
289,
1377,
289,
1377,
898,
31,
565,
648,
511,
15111,
30,
565,
648,
511,
26980,
30,
565,
648,
511,
21217,
30,
565,
648,
22443,
3378,
30,
565,
648,
6989,
3378,
30,
565,
648,
4269,
30,
565,
648,
4269,
67,
19040,
30,
565,
648,
511,
2192,
38,
9793,
30,
565,
648,
5355,
30,
565,
648,
6048,
30,
565,
648,
2030,
39,
9931,
30,
565,
648,
23971,
9931,
30,
565,
648,
531,
1268,
9931,
30,
565,
648,
15483,
30,
565,
648,
15915,
67,
5804,
30,
565,
648,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31855,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
15772,
30,
1377,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
1377,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
5375,
4477,
907,
10684,
5088,
11664,
273,
394,
4477,
907,
12,
46,
46,
1448,
48,
2053,
52,
1090,
55,
1769,
5375,
1250,
10684,
5111,
11664,
273,
638,
31,
5375,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
11664,
1769,
5375,
10684,
3413,
3678,
907,
3876,
12,
78,
78,
5088,
11664,
1769,
1377,
775,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
2
] |
parentUID=DrillDownUtils.getUID(remoteEvent.getEvent(),DrillDownQueryConstants.PARENT_UID); if(parentUID!=null) { if(map.containsKey(parentUID)){ list=(List)map.get(parentUID);
|
originatorUID=DrillDownUtils.getUID(remoteEvent.getEvent(),DrillDownQueryConstants.ORIGINATORS_UID); if(originatorUID!=null) { if(map.containsKey(originatorUID)){ list=(List)map.get(originatorUID);
|
public void processIdmefEvent(Collection idmefEventCollection) { if(idmefEventCollection==null) { if (loggingService.isDebugEnabled()) { loggingService.debug("New IDMEF Collection is NULL :"+myAddress.toString() ); } return; } if(idmefEventCollection.isEmpty()) { if (loggingService.isDebugEnabled()) { loggingService.debug("New IDMEF Collection is empty :"+myAddress.toString() ); } return; } Map map=new Hashtable(); Iterator iter=idmefEventCollection.iterator(); Event event=null; RemoteConsolidatedEvent remoteEvent=null; UID parentUID=null; List list=null; Object o; while(iter.hasNext()){ o=iter.next(); if(o instanceof Event) { event=(Event)o; parentUID=DrillDownUtils.getUID(event.getEvent(),DrillDownQueryConstants.PARENT_UID); if(parentUID!=null) { if(map.containsKey(parentUID)){ list=(List)map.get(parentUID); list.add(event); map.put(parentUID,list); } else { list=new ArrayList(); list.add(event); map.put(parentUID,list); } } } if(o instanceof RemoteConsolidatedEvent) { remoteEvent=(RemoteConsolidatedEvent)o; parentUID=DrillDownUtils.getUID(remoteEvent.getEvent(),DrillDownQueryConstants.PARENT_UID); if(parentUID!=null) { if(map.containsKey(parentUID)){ list=(List)map.get(parentUID); list.add(createConsolidatedEvent(remoteEvent)); map.put(parentUID,list); } else { list=new ArrayList(); list.add(createConsolidatedEvent(remoteEvent)); map.put(parentUID,list); } } } }// end of while Collection detailsQueryCollection=getBlackboardService().query(new DetailsDrillDownPredicate(myAddress)); Set setkeys=map.keySet(); Iterator keys=setkeys.iterator(); UID key =null; CmrRelay relay=null; while(keys.hasNext()){ list=null; key=(UID)keys.next(); list=(List)map.get(key); relay=getCmrRelayWithDetailsDrillDownQuery(key,detailsQueryCollection); if(relay==null) { if (loggingService.isDebugEnabled()) { loggingService.debug("No Details drill down query relay present for parent UID :"+key.toString() ); } continue; } AggregatedResponse aggresponse=new AggregatedResponse(list); relay.updateResponse(relay.getSource(),aggresponse); getBlackboardService().publishChange(relay); } }
|
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/b9174f55aa87a56824cb2c4207812fdfb3ec54ef/MnRAggSendRemoteResponse.java/buggy/securityservices/src/org/cougaar/core/security/monitoring/plugin/MnRAggSendRemoteResponse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
548,
3501,
74,
1133,
12,
2532,
612,
3501,
74,
1133,
2532,
13,
288,
565,
309,
12,
350,
3501,
74,
1133,
2532,
631,
2011,
13,
288,
4202,
309,
261,
11167,
1179,
18,
291,
2829,
1526,
10756,
288,
3639,
2907,
1179,
18,
4148,
2932,
1908,
1599,
958,
42,
2200,
225,
353,
3206,
225,
20514,
15,
4811,
1887,
18,
10492,
1435,
11272,
1377,
289,
4202,
327,
31,
377,
289,
565,
309,
12,
350,
3501,
74,
1133,
2532,
18,
291,
1921,
10756,
288,
4202,
309,
261,
11167,
1179,
18,
291,
2829,
1526,
10756,
288,
3639,
2907,
1179,
18,
4148,
2932,
1908,
1599,
958,
42,
2200,
353,
1008,
225,
20514,
15,
4811,
1887,
18,
10492,
1435,
11272,
1377,
289,
4202,
327,
31,
377,
289,
565,
1635,
852,
33,
2704,
18559,
5621,
565,
4498,
1400,
33,
350,
3501,
74,
1133,
2532,
18,
9838,
5621,
565,
2587,
871,
33,
2011,
31,
565,
6304,
9054,
7953,
690,
1133,
2632,
1133,
33,
2011,
31,
565,
10034,
982,
3060,
33,
2011,
31,
565,
987,
666,
33,
2011,
31,
565,
1033,
320,
31,
565,
1323,
12,
2165,
18,
5332,
2134,
10756,
95,
1377,
320,
33,
2165,
18,
4285,
5621,
1377,
309,
12,
83,
1276,
2587,
13,
288,
3639,
871,
28657,
1133,
13,
83,
31,
3639,
982,
3060,
33,
8956,
737,
4164,
1989,
18,
588,
3060,
12,
2575,
18,
588,
1133,
9334,
8956,
737,
4164,
1138,
2918,
18,
14943,
67,
3060,
1769,
3639,
309,
12,
2938,
3060,
5,
33,
2011,
13,
288,
1850,
309,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
548,
3501,
74,
1133,
12,
2532,
612,
3501,
74,
1133,
2532,
13,
288,
565,
309,
12,
350,
3501,
74,
1133,
2532,
631,
2011,
13,
288,
4202,
309,
261,
11167,
1179,
18,
291,
2829,
1526,
10756,
288,
3639,
2907,
1179,
18,
4148,
2932,
1908,
1599,
958,
42,
2200,
225,
353,
3206,
225,
20514,
15,
4811,
1887,
18,
10492,
1435,
11272,
1377,
289,
4202,
327,
31,
377,
289,
565,
309,
12,
350,
3501,
74,
1133,
2532,
18,
291,
1921,
10756,
288,
4202,
309,
261,
11167,
1179,
18,
291,
2829,
1526,
10756,
288,
3639,
2907,
1179,
18,
4148,
2932,
1908,
1599,
958,
42,
2200,
353,
1008,
225,
20514,
15,
4811,
1887,
18,
10492,
1435,
11272,
1377,
289,
4202,
2
] |
IRingSet object = new NNRingSet(); return object;
|
return new NNRingSet();
|
public IRingSet newRingSet() { IRingSet object = new NNRingSet(); return object; }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/762a77528782926809031cb87d71cf26053aa8de/NoNotificationChemObjectBuilder.java/buggy/src/org/openscience/cdk/nonotify/NoNotificationChemObjectBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
10369,
694,
394,
10369,
694,
1435,
288,
202,
202,
7937,
310,
694,
733,
273,
394,
30471,
10369,
694,
5621,
202,
202,
2463,
733,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
10369,
694,
394,
10369,
694,
1435,
288,
202,
202,
7937,
310,
694,
733,
273,
394,
30471,
10369,
694,
5621,
202,
202,
2463,
733,
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
] |
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; imcode.server.User user ; // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream(); String meta_id = req.getParameter( "meta_id" ) ; int meta_id_int = Integer.parseInt(meta_id) ; if ( !IMCServiceRMI.checkDocAdminRightsAny(imcserver,meta_id_int,user,7 ) ) { // Checking to see if user may edit this byte[] tempbytes ; tempbytes = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; } Properties metaprops = new Properties () ; String classification = req.getParameter("classification") ; // Hey, hey! Watch as i fetch the permission-set set (pun intended) for each role! String[][] role_permissions = IMCServiceRMI.sqlProcedureMulti(imcserver, "GetRolesDocPermissions "+meta_id) ; // Now watch as i fetch the permission_set for the user... String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; // The users set_id // Check if the user has any business in here whatsoever. if ( user_set_id > 2 ) { out.write(AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res)) ; return ; } int user_perm_set = Integer.parseInt(current_permissions[1]) ; // The users permission_set for that id int currentdoc_perms = Integer.parseInt(current_permissions[2]) ; // The docspecific permissions for this doc. // Now i'll loop through the db-results, and read the values // for each roles set_id this user may change from the form. // Then set the new value for each. Properties temp_permission_settings = new Properties() ; for ( int i = 0 ; i < role_permissions.length ; ++i ) { String role_set_id_str = role_permissions[i][2] ; // Get the old set_id for this role from the db int role_set_id = Integer.parseInt(role_set_id_str) ; String role_id = role_permissions[i][0] ; // Get the role_id from the db String new_set_id_str = req.getParameter("role_"+role_id) ; // Check the value from the form if ( new_set_id_str == null ) { // If a new set_id for this role didn't come from the form continue ; // skip to the next role. } int new_set_id = Integer.parseInt(new_set_id_str) ; if ( ( // May the user edit permissions at all? user_set_id == 0 // If user has set_id == 0... || (user_perm_set & 4) != 0) // ...or the user may edit permissions for this document // May the user set this particular permission-set? && user_set_id <= new_set_id // May the user edit the permissions for this particular role? && user_set_id <= role_set_id // If user potentially has a more privileged set_id than the role... && (user_set_id != 1 // If user has set_id == 1 (that is , != 0 && != 2) || (role_set_id != 2 // ...he may not change set_id for a role with set_id 2.. && new_set_id != 2) // ...and he may not set set_id to 2 for any role... || (currentdoc_perms&1) != 0// ...unless set_id 1 is more privileged than set_id 2 for this document. ) ) { // We used to save to the db immediately. Now we do it a little bit differently to make it possible to store stuff in the session instead of the db. // IMCServiceRMI.sqlUpdateProcedure(imcserver, "SetRoleDocPermissionSetId "+role_id+","+meta_id+","+new_set_id) ; temp_permission_settings.setProperty(String.valueOf(role_id),String.valueOf(new_set_id)) ; } else { log ("User "+user.getInt("user_id")+" with set_id "+user_set_id+" and permission_set "+user_perm_set+" was denied permission to change set_id for role " +role_id+" from "+role_set_id+" to "+new_set_id+" on meta_id "+meta_id) ; } } /* Now we're going to start accepting the input form fields. This table keeps track of all the fields we may encounter. The "nullvalue" is there to support checkboxes, which, if not checked, report null. So, if the checkboxes do not appear, we know that we should enter the "nullvalue" found here, into the db. */ // NOTE! This table matches the one below. Don't go changing one without changing the other. // FIXME: They should be merged into one table. String [] metatable = { /* Nullable Nullvalue */ "shared", "0", "disable_search","0", "archive", "0", "show_meta", "0", "permissions", "0", "meta_headline", null, "meta_text", null, "meta_image", null, "activated_datetime",null, "archived_datetime", null, "frame_name", null, "target", null } ; final int metatable_cols = 2 ; // I'll make a table to keep track of // what is the least privileged (highest) // set_id you may have, to be able to change // each property. Roles with set_ids 1 and 2 // still need explicit permissions, so this is // mainly for fleshing out what only a user with // "full" (0) may do. (Change whether set-id 1 is // more privileged. "permissions") // I use a bitmask here to specify what permissions // are required for each. // 0 == Unreachable // 1 == Something on the "simple docinfo"-page // 2 == Something on the "advanced docinfo"-page // 3 == 1|2 // 4 == Something on the "rights/permissions"-page // 5 == 1|4 // 6 == 2|4 // 7 == 1|2|4 // NOTE! This table matches the one above. Don't go changing one without changing the other. // FIXME: They should be merged into one table. int[] metatable_restrictions = { // set_id, permission_bitmask 2, 6, //"shared", 2, 2, //"disable_search", 2, 2, //"archive", 2, 6, //"show_meta", 0, 4, //"permissions", 2, 7, //"meta_headline", 2, 3, //"meta_text", 2, 3, //"meta_image", 2, 2, //"activated_datetime", 2, 2, //"archived_datetime", 2, 2, //"frame_name", 2, 2 //"target" } ; HashMap inputMap = new HashMap() ; // Loop through all meta-table-properties // Adding them to a HashMap to be used as input // That way i can mutilate the values before all the // permissions are checked. for ( int i=0 ; i<metatable.length ; i+=metatable_cols ) { inputMap.put(metatable[i],req.getParameter(metatable[i])) ; } // Here's some mutilation! // activated_date and activated_time need to be merged, and likewise with archived_date and archived_time SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm") ; String activated_date = req.getParameter("activated_date") ; String activated_time = req.getParameter("activated_time") ; String activated_datetime = null ; if ( activated_date != null && activated_time != null ) { activated_datetime = activated_date + ' ' + activated_time ; try { dateformat.parse(activated_datetime) ; } catch (ParseException ex) { activated_datetime = null ; } } String archived_date = req.getParameter("archived_date") ; String archived_time = req.getParameter("archived_time") ; String archived_datetime = null ; if ( archived_date != null && archived_time != null ) { archived_datetime = archived_date + ' ' + archived_time ; try { dateformat.parse(archived_datetime) ; } catch (ParseException ex) { archived_datetime = null ; } } // Loop through all meta-table-properties // Checking permissions as we go. // All alterations of the inputdata must happen before this for ( int i=0 ; i<metatable.length ; i+=metatable_cols ) { String tmp = (String)inputMap.get(metatable[i]) ; if ( user_set_id > metatable_restrictions[i] // Check on set_id if user is allowed to set this particular property. || (user_set_id > 0 // If user not has full access (0)... && ((user_perm_set & metatable_restrictions[i+1]) == 0) // check permission-bitvector for the users set_id. ) ) { continue ; } if (metatable[i].equals("meta_headline")||metatable[i].equals("meta_text")) { if( tmp != null) tmp = imcode.server.HTMLConv.toHTML(tmp); } if ( tmp != null) { metaprops.setProperty(metatable[i],tmp) ; // If it is found, set it. } else { tmp = metatable[i+1] ; // FIXME: If it is null, that could mean the user // emptied the field. This leads to the property // not being updated, and left unchanged! // _Should_ be ok, since for checkboxes null is valid. (Means false) // For fields other than checkboxes and radiobuttons null would be bad. if ( tmp != null ) { metaprops.setProperty(metatable[i],tmp) ; // If it is not found, set it to the nullvalue. (For checkboxes, which do not appear if they are not checked.) } } } //ok here we fetch the settings fore the default_template 1 & 2 String temp_default_template_1 = req.getParameter("default_template_set_1") == null ? "-1" : req.getParameter("default_template_set_1"); String temp_default_template_2 = req.getParameter("default_template_set_2") == null ? "-1" : req.getParameter("default_template_set_2"); String[] temp_default_templates = {temp_default_template_1, temp_default_template_2}; // Set modified-date to now... Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; metaprops.setProperty("date_modified",dateformat.format(dt)) ; // It's like this... people make changes on the page, and then they forget to press "save" // before they press one of the "define-permission" buttons, and then their settings are lost. // I will fix this by storing the settings in a temporary variable in the user object. // This variable will be an array of four objects. In order: // A String, containing the meta-id of the page. // A Properties, containing the docinfo for the page. (db-column, value) // A Properties, containing the permission_sets for the roles. (role_id, set_id) // A String[], containing default_template 1 and 2 // We also need a name for this temporary variable... i think i shall call it... (Drumroll, please...) "temp_perm_settings" ! // if ( req.getParameter("define_set_1") != null ) { // If user want's to edit permission-set 1 user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,1,false)) ; return ; } else if ( req.getParameter("define_set_2") != null ) { // If user want's to edit permission-set 2 user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,2,false)) ; return ; } else if ( req.getParameter("define_new_set_1") != null ) { user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,1,true)) ; return ; } else if ( req.getParameter("define_new_set_2") != null ) { user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,2,true)) ; return ; } else if ( req.getParameter("add_roles") != null ) { // The user wants to give permissions to roles that have none. String[] roles_no_rights = req.getParameterValues("roles_no_rights") ; for ( int i = 0 ; roles_no_rights!=null && i<roles_no_rights.length ; ++i ) { temp_permission_settings.setProperty(roles_no_rights[i],"3") ; } user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parseMetaPermission(meta_id,meta_id,user,host,"change_meta_rights.html")) ; return ; } // From now on we enter stuff into the db. // Here i'll construct an sql-query that will update all docinfo // the user is allowed to change. //ok lets start and get the default templates String tempStr = req.getParameter("default_template_set_1"); String template1 = "-1"; String template2 = "-1"; if (tempStr != null) { template1 = req.getParameter("default_template_set_1").equals("") ? "-1" : req.getParameter("default_template_set_1"); } tempStr = req.getParameter("default_template_set_2"); if (tempStr != null) { template2 = req.getParameter("default_template_set_2").equals("")? "-1":req.getParameter("default_template_set_2"); } String sqlStr = "activated_datetime = "+(null == activated_datetime ? "NULL" : "'"+activated_datetime+"'")+ ",archived_datetime = "+(null == archived_datetime ? "NULL" : "'"+archived_datetime+"'") + ","; Enumeration propkeys = metaprops.propertyNames() ; while ( propkeys.hasMoreElements() ) { String temp = (String)propkeys.nextElement() ; String val = metaprops.getProperty(temp) ; String [] vp = { "'", "''" } ; sqlStr += temp +" = '"+Parser.parseDoc(val,vp)+"' " ; if ( propkeys.hasMoreElements() ) { sqlStr += ", " ; } } for (int i=0; i<role_permissions.length; ++i) { String role_id = (String)role_permissions[i][0] ; String new_set_id = temp_permission_settings.getProperty(role_id) ; if (new_set_id == null) { continue ; } IMCServiceRMI.sqlUpdateProcedure(imcserver, "SetRoleDocPermissionSetId "+role_id+","+meta_id+","+new_set_id) ; } if ( sqlStr.length() > 0 ) { sqlStr = "update meta set " +sqlStr+ " where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; } // Save the classifications to the db if ( classification != null ) { classification = imcode.server.HTMLConv.toHTML(classification); IMCServiceRMI.sqlUpdateProcedure(imcserver,"Classification_Fix "+meta_id+",'"+classification+"'") ; } //ok lets save the default templates //log("test sql: UpdateDefaultTemplates "+meta_id+",'"+template1+"','"+template2+"'"); IMCServiceRMI.sqlUpdateProcedure(imcserver, "UpdateDefaultTemplates '"+meta_id+"','"+template1+"','"+template2+"'") ; // Update the date_modified for all parents. IMCServiceRMI.sqlUpdateProcedure(imcserver, "UpdateParentsDateModified "+meta_id) ; // Let's split this joint! byte[] temp = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if (temp != null) { out.write(temp) ; } //lets log to mainlog that the user done stuff mainLog.info(logdateFormat.format(new java.util.Date())+"Metadata on ["+meta_id+"] updated by user: [" +user.getString("first_name").trim() + " " + user.getString("last_name").trim() + "]"); return ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cd4b638e76682d918728cd2557cfc09e03e5195c/SaveMeta.java/clean/servlets/SaveMeta.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
780,
787,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
202,
780,
8100,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
202,
759,
2073,
309,
729,
7545,
603,
202,
202,
430,
12,
261,
1355,
33,
1564,
18,
1355,
19862,
1398,
12,
1111,
16,
455,
16,
1937,
67,
718,
8623,
631,
2011,
262,
288,
1082,
202,
2463,
274,
202,
202,
97,
202,
202,
455,
18,
542,
8046,
12,
315,
955,
19,
2620,
6,
11272,
202,
202,
4745,
4632,
596,
273,
400,
18,
588,
4632,
5621,
202,
202,
780,
2191,
67,
350,
273,
1111,
18,
588,
1662,
12,
315,
3901,
67,
350,
6,
262,
274,
202,
202,
474,
2191,
67,
350,
67,
474,
273,
2144,
18,
2670,
1702,
12,
3901,
67,
350,
13,
274,
202,
202,
430,
261,
401,
3445,
39,
1179,
54,
7492,
18,
1893,
1759,
4446,
18464,
2961,
12,
381,
71,
3567,
16,
3901,
67,
350,
67,
474,
16,
1355,
16,
27,
262,
262,
288,
202,
759,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
780,
787,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
202,
780,
8100,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
202,
759,
2073,
309,
729,
7545,
603,
202,
2
] |
||
if (o instanceof Student) { symphonie.getStudentTreeModel().removeStudent((Student) o); symphonie.getCurrentStudentModel().clear(); } } }; } removeStudentAction.putValue(Action.SMALL_ICON, icon); return removeStudentAction;
|
a.putValue(Action.SMALL_ICON, icon); return a;
|
public AbstractAction getRemoveStudentAction(Icon icon, final JTree tree) { if (removeStudentAction == null) { removeStudentAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { Object o = tree.getLastSelectedPathComponent(); if (o instanceof Student) { symphonie.getStudentTreeModel().removeStudent((Student) o); symphonie.getCurrentStudentModel().clear(); } } }; } removeStudentAction.putValue(Action.SMALL_ICON, icon); return removeStudentAction; }
|
12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/c842b364d6a94077b64fae7a7404c364e26003c6/SymphonieActionFactory.java/buggy/dupratcated/src/fr/umlv/symphonie/view/SymphonieActionFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4115,
1803,
336,
3288,
19943,
319,
1803,
12,
5554,
4126,
16,
727,
804,
2471,
2151,
13,
288,
3639,
309,
261,
4479,
19943,
319,
1803,
422,
446,
13,
288,
1377,
1206,
19943,
319,
1803,
273,
394,
4115,
1803,
1435,
288,
3639,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1850,
1033,
320,
273,
2151,
18,
588,
3024,
7416,
743,
1841,
5621,
1850,
309,
261,
83,
1276,
934,
1100,
319,
13,
288,
5411,
5382,
844,
265,
1385,
18,
588,
19943,
319,
2471,
1488,
7675,
4479,
19943,
319,
12443,
19943,
319,
13,
320,
1769,
5411,
5382,
844,
265,
1385,
18,
588,
3935,
19943,
319,
1488,
7675,
8507,
5621,
1850,
289,
3639,
289,
1377,
289,
31,
565,
289,
565,
1206,
19943,
319,
1803,
18,
458,
620,
12,
1803,
18,
23882,
67,
21745,
16,
4126,
1769,
3639,
327,
1206,
19943,
319,
1803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4115,
1803,
336,
3288,
19943,
319,
1803,
12,
5554,
4126,
16,
727,
804,
2471,
2151,
13,
288,
3639,
309,
261,
4479,
19943,
319,
1803,
422,
446,
13,
288,
1377,
1206,
19943,
319,
1803,
273,
394,
4115,
1803,
1435,
288,
3639,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1850,
1033,
320,
273,
2151,
18,
588,
3024,
7416,
743,
1841,
5621,
1850,
309,
261,
83,
1276,
934,
1100,
319,
13,
288,
5411,
5382,
844,
265,
1385,
18,
588,
19943,
319,
2471,
1488,
7675,
4479,
19943,
319,
12443,
19943,
319,
13,
320,
1769,
5411,
5382,
844,
265,
1385,
18,
588,
3935,
19943,
319,
1488,
7675,
8507,
5621,
1850,
289,
3639,
289,
1377,
289,
31,
565,
289,
565,
1206,
2
] |
if (self.getNumPop() == 1) { if (mod_push_pop) { p.print("(*____in++)"); return; }
|
if (self.getNumPop() == 1) { if (mod_push_pop) { p.print("(*____in++)"); return; }
|
public void visitPopExpression(SIRPopExpression self, CType tapeType) { //NetStream in = RegisterStreams.getFilterInStream(filter); if (self.getNumPop() == 1) { if (mod_push_pop) { p.print("(*____in++)"); return; } p.print("__pop__" + selfID + "()"); } else { if (mod_push_pop) { p.print("assert(false);"); } p.print("__pop__" + selfID + "(" + self.getNumPop() + ")"); } }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/72014ef7490e7b2635af8cc4bab31ead936daef9/FlatIRToCluster.java/buggy/streams/src/at/dms/kjc/cluster/FlatIRToCluster.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
7049,
2300,
12,
2320,
54,
7049,
2300,
365,
16,
385,
559,
268,
1273,
559,
13,
288,
3639,
368,
7308,
1228,
316,
273,
5433,
10301,
18,
588,
1586,
382,
1228,
12,
2188,
1769,
202,
430,
261,
2890,
18,
588,
2578,
7049,
1435,
422,
404,
13,
225,
288,
202,
565,
309,
261,
1711,
67,
6206,
67,
5120,
13,
288,
202,
202,
84,
18,
1188,
2932,
30857,
7198,
267,
9904,
2225,
1769,
202,
202,
2463,
31,
202,
565,
289,
5411,
293,
18,
1188,
2932,
972,
5120,
14437,
397,
365,
734,
397,
25605,
8863,
3639,
289,
469,
288,
202,
565,
309,
261,
1711,
67,
6206,
67,
5120,
13,
288,
202,
202,
84,
18,
1188,
2932,
11231,
12,
5743,
1769,
8863,
202,
565,
289,
5411,
293,
18,
1188,
2932,
972,
5120,
14437,
397,
365,
734,
397,
12452,
397,
365,
18,
588,
2578,
7049,
1435,
397,
7310,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
7049,
2300,
12,
2320,
54,
7049,
2300,
365,
16,
385,
559,
268,
1273,
559,
13,
288,
3639,
368,
7308,
1228,
316,
273,
5433,
10301,
18,
588,
1586,
382,
1228,
12,
2188,
1769,
202,
430,
261,
2890,
18,
588,
2578,
7049,
1435,
422,
404,
13,
225,
288,
202,
565,
309,
261,
1711,
67,
6206,
67,
5120,
13,
288,
202,
202,
84,
18,
1188,
2932,
30857,
7198,
267,
9904,
2225,
1769,
202,
202,
2463,
31,
202,
565,
289,
5411,
293,
18,
1188,
2932,
972,
5120,
14437,
397,
365,
734,
397,
25605,
8863,
3639,
289,
469,
288,
202,
565,
309,
261,
1711,
67,
6206,
67,
5120,
13,
288,
202,
202,
84,
18,
1188,
2932,
11231,
12,
5743,
1769,
2
] |
Symbol[] oldtparams = nextTypeParams(getOuterClass(symbol));
|
Symbol[] oldtparams = getOuterTypeParams(symbol);
|
private Type.Map getOuterTypeSubst(Symbol symbol, boolean update) { if (!hasOuterTypeLinks(symbol)) return Type.IdMap; Symbol[] oldtparams = nextTypeParams(getOuterClass(symbol)); Symbol[] newtparams = nextTypeParams(symbol); Symbol[] tlinks = new Symbol[oldtparams.length]; for (int i = 0; i < tlinks.length; i++) tlinks[i] = newtparams[i]; return Type.getSubst(oldtparams, tlinks, update); }
|
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/9b9e16dd39fc866752e907c1a9fcfcb2dcde7fd8/ExplicitOuterClassesPhase.java/clean/sources/scalac/transformer/ExplicitOuterClassesPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1412,
18,
863,
336,
15040,
559,
1676,
334,
12,
5335,
3273,
16,
1250,
1089,
13,
288,
3639,
309,
16051,
5332,
15040,
559,
7100,
12,
7175,
3719,
327,
1412,
18,
548,
863,
31,
3639,
8565,
8526,
1592,
88,
2010,
273,
336,
15040,
559,
1370,
12,
7175,
1769,
3639,
8565,
8526,
394,
88,
2010,
273,
1024,
559,
1370,
12,
7175,
1769,
3639,
8565,
8526,
268,
7135,
273,
394,
8565,
63,
1673,
88,
2010,
18,
2469,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
268,
7135,
18,
2469,
31,
277,
27245,
268,
7135,
63,
77,
65,
273,
394,
88,
2010,
63,
77,
15533,
3639,
327,
1412,
18,
588,
1676,
334,
12,
1673,
88,
2010,
16,
268,
7135,
16,
1089,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1412,
18,
863,
336,
15040,
559,
1676,
334,
12,
5335,
3273,
16,
1250,
1089,
13,
288,
3639,
309,
16051,
5332,
15040,
559,
7100,
12,
7175,
3719,
327,
1412,
18,
548,
863,
31,
3639,
8565,
8526,
1592,
88,
2010,
273,
336,
15040,
559,
1370,
12,
7175,
1769,
3639,
8565,
8526,
394,
88,
2010,
273,
1024,
559,
1370,
12,
7175,
1769,
3639,
8565,
8526,
268,
7135,
273,
394,
8565,
63,
1673,
88,
2010,
18,
2469,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
268,
7135,
18,
2469,
31,
277,
27245,
268,
7135,
63,
77,
65,
273,
394,
88,
2010,
63,
77,
15533,
3639,
327,
1412,
18,
588,
1676,
334,
12,
1673,
88,
2010,
16,
268,
7135,
2
] |
else if ( LA3_0==-1||LA3_0==EOL||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) {
|
else if ( LA3_0==-1||LA3_0==EOL||LA3_0==15||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) {
|
public void prolog() throws RecognitionException { String name = null; String packageName = ""; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:102:17: ( opt_eol (name= package_statement )? ( import_statement )* ( expander )? ( global )* ( function )* opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:102:17: opt_eol (name= package_statement )? ( import_statement )* ( expander )? ( global )* ( function )* opt_eol { following.push(FOLLOW_opt_eol_in_prolog104); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:103:17: (name= package_statement )? int alt3=2; int LA3_0 = input.LA(1); if ( LA3_0==15 ) { alt3=1; } else if ( LA3_0==-1||LA3_0==EOL||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) { alt3=2; } else { NoViableAltException nvae = new NoViableAltException("103:17: (name= package_statement )?", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:103:19: name= package_statement { following.push(FOLLOW_package_statement_in_prolog112); name=package_statement(); following.pop(); packageName = name; } break; } this.packageDescr = new PackageDescr( name ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:107:17: ( import_statement )* loop4: do { int alt4=2; int LA4_0 = input.LA(1); if ( LA4_0==17 ) { alt4=1; } switch (alt4) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:107:17: import_statement { following.push(FOLLOW_import_statement_in_prolog125); import_statement(); following.pop(); } break; default : break loop4; } } while (true); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:108:17: ( expander )? int alt5=2; int LA5_0 = input.LA(1); if ( LA5_0==18 ) { alt5=1; } else if ( LA5_0==-1||LA5_0==EOL||(LA5_0>=19 && LA5_0<=20)||LA5_0==26||LA5_0==28 ) { alt5=2; } else { NoViableAltException nvae = new NoViableAltException("108:17: ( expander )?", 5, 0, input); throw nvae; } switch (alt5) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:108:17: expander { following.push(FOLLOW_expander_in_prolog130); expander(); following.pop(); } break; } // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:109:17: ( global )* loop6: do { int alt6=2; int LA6_0 = input.LA(1); if ( LA6_0==19 ) { alt6=1; } switch (alt6) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:109:17: global { following.push(FOLLOW_global_in_prolog136); global(); following.pop(); } break; default : break loop6; } } while (true); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:110:17: ( function )* loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( LA7_0==20 ) { alt7=1; } switch (alt7) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:110:17: function { following.push(FOLLOW_function_in_prolog141); function(); following.pop(); } break; default : break loop7; } } while (true); following.push(FOLLOW_opt_eol_in_prolog146); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
20481,
30,
4033,
30,
261,
2153,
67,
30951,
261,
529,
33,
2181,
67,
11516,
7851,
261,
1930,
67,
11516,
8618,
261,
4542,
264,
7851,
261,
2552,
8618,
261,
445,
8618,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
20481,
30,
4033,
30,
2153,
67,
30951,
261,
529,
33,
2181,
67,
11516,
7851,
261,
1930,
67,
11516,
8618,
261,
4542,
264,
7851,
261,
2552,
8618,
261,
445,
8618,
2153,
67,
30951,
5411,
288,
5411,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
685,
1330,
21869,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
23494,
30,
4033,
30,
261,
529,
33,
2181,
67,
11516,
7851,
5411,
509,
3770,
23,
33,
22,
31,
5411,
509,
2928,
23,
67,
20,
273,
810,
18,
2534,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
20481,
30,
4033,
30,
261,
2153,
67,
30951,
261,
529,
33,
2181,
67,
11516,
7851,
261,
1930,
67,
11516,
8618,
261,
4542,
264,
7851,
261,
2552,
8618,
261,
445,
8618,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
2
] |
fireMessageCountEvent(mce);
|
fireMessageCountEvent(newMce);
|
protected void runMessagesRemoved(MessageCountEvent mce) { Message[] removedMessages = mce.getMessages(); Message[] removedCachingMessages = new Message[removedMessages.length]; if (Pooka.isDebug()) System.out.println("removedMessages was of size " + removedMessages.length); MessageInfo mi; Vector removedProxies=new Vector(); for (int i = 0; i < removedMessages.length; i++) { if (Pooka.isDebug()) System.out.println("checking for existence of message."); if (removedMessages[i] != null && removedMessages[i] instanceof CachingMimeMessage) { removedCachingMessages[i] = removedMessages[i]; mi = getMessageInfo(removedMessages[i]); if (mi.getMessageProxy() != null) mi.getMessageProxy().close(); if (mi != null) { if (Pooka.isDebug()) System.out.println("message exists--removing"); removedProxies.add(mi.getMessageProxy()); messageToInfoTable.remove(mi); uidToInfoTable.remove(new Long(((CachingMimeMessage) removedMessages[i]).getUID())); getCache().invalidateCache(((CachingMimeMessage) removedMessages[i]).getUID(), SimpleFileCache.MESSAGE); } } else { // not a CachingMimeMessage. long uid = -1; try { uid =((UIDFolder)getFolder()).getUID(removedMessages[i]); } catch (MessagingException me) { } mi = getMessageInfoByUid(uid); if (mi != null) { removedCachingMessages[i] = mi.getMessage(); if (mi.getMessageProxy() != null) mi.getMessageProxy().close(); if (Pooka.isDebug()) System.out.println("message exists--removing"); Message localMsg = mi.getMessage(); removedProxies.add(mi.getMessageProxy()); messageToInfoTable.remove(localMsg); uidToInfoTable.remove(new Long(uid)); getCache().invalidateCache(uid, SimpleFileCache.MESSAGE); } else { removedCachingMessages[i] = removedMessages[i]; } } } MessageCountEvent newMce = new MessageCountEvent(getFolder(), mce.getType(), mce.isRemoved(), removedCachingMessages); if (getFolderDisplayUI() != null) { getFolderDisplayUI().removeRows(removedProxies); resetMessageCounts(); fireMessageCountEvent(mce); } else { resetMessageCounts(); fireMessageCountEvent(mce); getFolderTableModel().removeRows(removedProxies); } }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/3b19f8bade0ad8840745d397641b10627df9ff47/CachingFolderInfo.java/clean/net/suberic/pooka/cache/CachingFolderInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1086,
5058,
10026,
12,
1079,
1380,
1133,
312,
311,
13,
288,
202,
1079,
8526,
3723,
5058,
273,
312,
311,
18,
588,
5058,
5621,
202,
1079,
8526,
3723,
17712,
5058,
273,
394,
2350,
63,
14923,
5058,
18,
2469,
15533,
202,
202,
430,
261,
52,
1184,
69,
18,
291,
2829,
10756,
202,
565,
2332,
18,
659,
18,
8222,
2932,
14923,
5058,
1703,
434,
963,
315,
397,
3723,
5058,
18,
2469,
1769,
202,
1079,
966,
12837,
31,
202,
5018,
3723,
21488,
33,
2704,
5589,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3723,
5058,
18,
2469,
31,
277,
27245,
288,
202,
565,
309,
261,
52,
1184,
69,
18,
291,
2829,
10756,
202,
202,
3163,
18,
659,
18,
8222,
2932,
24609,
364,
15782,
434,
883,
1199,
1769,
202,
377,
202,
565,
309,
261,
14923,
5058,
63,
77,
65,
480,
446,
597,
3723,
5058,
63,
77,
65,
1276,
23782,
310,
13320,
1079,
13,
288,
202,
202,
14923,
17712,
5058,
63,
77,
65,
273,
3723,
5058,
63,
77,
15533,
202,
202,
9197,
273,
2381,
966,
12,
14923,
5058,
63,
77,
19226,
202,
202,
430,
261,
9197,
18,
24906,
3886,
1435,
480,
446,
13,
1082,
565,
12837,
18,
24906,
3886,
7675,
4412,
5621,
9506,
202,
430,
261,
9197,
480,
446,
13,
288,
1082,
565,
309,
261,
52,
1184,
69,
18,
291,
2829,
10756,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2150,
1704,
413,
2764,
13767,
8863,
1082,
565,
3723,
21488,
18,
1289,
12,
9197,
18,
24906,
3886,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1086,
5058,
10026,
12,
1079,
1380,
1133,
312,
311,
13,
288,
202,
1079,
8526,
3723,
5058,
273,
312,
311,
18,
588,
5058,
5621,
202,
1079,
8526,
3723,
17712,
5058,
273,
394,
2350,
63,
14923,
5058,
18,
2469,
15533,
202,
202,
430,
261,
52,
1184,
69,
18,
291,
2829,
10756,
202,
565,
2332,
18,
659,
18,
8222,
2932,
14923,
5058,
1703,
434,
963,
315,
397,
3723,
5058,
18,
2469,
1769,
202,
1079,
966,
12837,
31,
202,
5018,
3723,
21488,
33,
2704,
5589,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3723,
5058,
18,
2469,
31,
277,
27245,
288,
202,
565,
309,
261,
52,
1184,
69,
18,
291,
2829,
10756,
202,
202,
3163,
18,
659,
2
] |
remove(0);
|
items.removeElementAt(0);
|
private void removeShowCheckBox(JCheckBoxMenuItem item){ remove(item); if (sepIndex != -1) sepIndex--; if (sepIndex == 0){ // the separator is first remove(0); // remove the separator sepIndex = -1; } }
|
1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/cf6705b53a9f574babdfcf3df52e47b7b2934b15/PluginContainersMenu.java/clean/src/free/jin/ui/PluginContainersMenu.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1206,
5706,
19174,
12,
46,
19174,
12958,
761,
15329,
565,
1206,
12,
1726,
1769,
3639,
309,
261,
10814,
1016,
480,
300,
21,
13,
1377,
5478,
1016,
413,
31,
3639,
309,
261,
10814,
1016,
422,
374,
15329,
368,
326,
4182,
353,
1122,
1377,
1516,
18,
4479,
1046,
861,
12,
20,
1769,
3639,
368,
1206,
326,
4182,
1377,
5478,
1016,
273,
300,
21,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1206,
5706,
19174,
12,
46,
19174,
12958,
761,
15329,
565,
1206,
12,
1726,
1769,
3639,
309,
261,
10814,
1016,
480,
300,
21,
13,
1377,
5478,
1016,
413,
31,
3639,
309,
261,
10814,
1016,
422,
374,
15329,
368,
326,
4182,
353,
1122,
1377,
1516,
18,
4479,
1046,
861,
12,
20,
1769,
3639,
368,
1206,
326,
4182,
1377,
5478,
1016,
273,
300,
21,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
catch (NoSuchAlgorithmException nsae)
|
catch (NoSuchAlgorithmException x)
|
public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmException nsae) { } } throw new NoSuchAlgorithmException(algorithm); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/99e9abeef27c28d491d6cbb3f304d7454d599169/SecretKeyFactory.java/buggy/core/src/classpath/javax/javax/crypto/SecretKeyFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
19391,
1733,
3694,
12,
780,
4886,
13,
565,
1216,
17684,
225,
288,
565,
7561,
8526,
450,
6904,
273,
6036,
18,
588,
10672,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
450,
6904,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
775,
1850,
288,
5411,
327,
3694,
12,
12743,
16,
450,
6904,
63,
77,
19226,
1850,
289,
3639,
1044,
261,
28341,
17293,
619,
13,
1850,
288,
1850,
289,
1377,
289,
565,
604,
394,
17684,
12,
12743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
19391,
1733,
3694,
12,
780,
4886,
13,
565,
1216,
17684,
225,
288,
565,
7561,
8526,
450,
6904,
273,
6036,
18,
588,
10672,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
450,
6904,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
775,
1850,
288,
5411,
327,
3694,
12,
12743,
16,
450,
6904,
63,
77,
19226,
1850,
289,
3639,
1044,
261,
28341,
17293,
619,
13,
1850,
288,
1850,
289,
1377,
289,
565,
604,
394,
17684,
12,
12743,
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
] |
if (prefixes == null) {
|
if (prefix == null) {
|
public PrefixFileFilter(final String prefix) { if (prefixes == null) { throw new IllegalArgumentException("The prefix must not be null"); } this.prefixes = new String[] {prefix}; }
|
49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/d3b1bac788bcef2487065bd699ab727bbd320f41/PrefixFileFilter.java/clean/src/java/org/apache/commons/io/filefilter/PrefixFileFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10139,
29837,
12,
6385,
514,
1633,
13,
288,
3639,
309,
261,
3239,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1986,
1633,
1297,
486,
506,
446,
8863,
3639,
289,
3639,
333,
18,
17777,
273,
394,
514,
8526,
288,
3239,
20451,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10139,
29837,
12,
6385,
514,
1633,
13,
288,
3639,
309,
261,
3239,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1986,
1633,
1297,
486,
506,
446,
8863,
3639,
289,
3639,
333,
18,
17777,
273,
394,
514,
8526,
288,
3239,
20451,
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
] |
try { this.position++; this.bCodeStream[this.classFileOffset++] = OPC_invokevirtual; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_invokevirtual);
|
if (classFileOffset + 2 >= bCodeStream.length) { resizeByteArray();
|
protected void invokeJavaLangReflectFieldSetter(int typeID) { this.countLabels = 0; int usedTypeID; if (typeID == T_null) usedTypeID = T_Object; else usedTypeID = typeID; // invokevirtual try { this.position++; this.bCodeStream[this.classFileOffset++] = OPC_invokevirtual; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_invokevirtual); } writeUnsignedShort(((CodeSnippetConstantPool) this.constantPool).literalIndexJavaLangReflectFieldSetter(typeID)); if ((usedTypeID != T_long) && (usedTypeID != T_double)) { this.stackDepth-=3; } else { this.stackDepth-=4; }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3a562aaf09f9f323b583086b80b4683378886606/CodeSnippetCodeStream.java/buggy/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetCodeStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4356,
5852,
7275,
24452,
974,
8465,
12,
474,
618,
734,
13,
288,
202,
2211,
18,
1883,
5888,
273,
374,
31,
202,
474,
1399,
559,
734,
31,
202,
430,
261,
723,
734,
422,
399,
67,
2011,
13,
202,
202,
3668,
559,
734,
273,
399,
67,
921,
31,
202,
12107,
202,
202,
3668,
559,
734,
273,
618,
734,
31,
202,
759,
4356,
12384,
202,
698,
288,
202,
202,
2211,
18,
3276,
9904,
31,
202,
202,
2211,
18,
70,
1085,
1228,
63,
2211,
18,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
14407,
12384,
31,
202,
97,
1044,
261,
30548,
425,
13,
288,
202,
202,
15169,
8826,
12,
51,
3513,
67,
14407,
12384,
1769,
202,
97,
202,
2626,
13290,
4897,
12443,
12,
1085,
19614,
6902,
2864,
13,
333,
18,
14384,
2864,
2934,
13107,
1016,
5852,
7275,
24452,
974,
8465,
12,
723,
734,
10019,
202,
430,
14015,
3668,
559,
734,
480,
399,
67,
5748,
13,
597,
261,
3668,
559,
734,
480,
399,
67,
9056,
3719,
288,
202,
202,
2211,
18,
3772,
6148,
17,
33,
23,
31,
202,
97,
469,
288,
202,
202,
2211,
18,
3772,
6148,
17,
33,
24,
31,
202,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4356,
5852,
7275,
24452,
974,
8465,
12,
474,
618,
734,
13,
288,
202,
2211,
18,
1883,
5888,
273,
374,
31,
202,
474,
1399,
559,
734,
31,
202,
430,
261,
723,
734,
422,
399,
67,
2011,
13,
202,
202,
3668,
559,
734,
273,
399,
67,
921,
31,
202,
12107,
202,
202,
3668,
559,
734,
273,
618,
734,
31,
202,
759,
4356,
12384,
202,
698,
288,
202,
202,
2211,
18,
3276,
9904,
31,
202,
202,
2211,
18,
70,
1085,
1228,
63,
2211,
18,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
14407,
12384,
31,
202,
97,
1044,
261,
30548,
425,
13,
288,
202,
202,
15169,
8826,
12,
51,
3513,
67,
14407,
12384,
1769,
202,
97,
202,
2626,
13290,
2
] |
if (conquerable.match(route.getEnd())) {
|
Collection conquered = route.getMatches(conquerable); conquered.remove(route.getEnd()); Collection blitzed = Match.getMatches(conquered, canBlitz);
|
private void addEmptyBattle(Route route, Collection units, TransportTracker tracker, final PlayerID id, final GameData data, IDelegateBridge bridge, UndoableMove changeTracker) { if (!Match.someMatch(units, Matches.UnitIsLand)) return; //find the territories that are considered blitz Match canBlitz = new Match() { public boolean match(Object o) { Territory territory = (Territory) o; return MoveValidator.isBlitzable(territory, data, id); } }; CompositeMatch conquerable = new CompositeMatchAnd(); conquerable.add(Matches.territoryIsEmptyOfCombatUnits(data, id)); conquerable.add(Matches.isTerritoryEnemy(id, data)); conquerable.addInverse(Matches.TerritoryIsNuetral); //check the last territory specially to see if its a naval invasion Collection conquered = route.getMatches(conquerable); //we handle the end of the route later conquered.remove(route.getEnd()); Collection blitzed = Match.getMatches(conquered, canBlitz); m_blitzed.addAll(blitzed); m_conquered.addAll(conquered); Iterator iter = conquered.iterator(); while (iter.hasNext()) { Territory current = (Territory) iter.next(); takeOver(current, id, bridge, data, changeTracker); } //check the last territory if (conquerable.match(route.getEnd())) { Battle precede = getDependentAmphibiousAssault(route); if (precede == null) { if(canBlitz.match(route.getEnd())) { m_blitzed.add(route.getEnd()); } takeOver(route.getEnd(), id, bridge, data, changeTracker); m_conquered.add(route.getEnd()); } else { Battle nonFight = getPendingBattle(route.getEnd(), false); if (nonFight == null) { nonFight = new NonFightingBattle(route.getEnd(), id, this, true, data, tracker); m_pendingBattles.add(nonFight); } nonFight.addAttack(route, units); addDependency(nonFight, precede); } } }
|
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/44a851b1bdef8d26ea382e74c57b9a2d0a8d64e3/BattleTracker.java/buggy/src/games/strategy/triplea/delegate/BattleTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
1921,
38,
4558,
298,
12,
3255,
1946,
16,
2200,
4971,
16,
9514,
8135,
9745,
16,
727,
19185,
734,
612,
16,
727,
14121,
751,
501,
16,
1599,
292,
4784,
13691,
10105,
16,
1351,
2896,
429,
7607,
2549,
8135,
13,
225,
288,
565,
309,
16051,
2060,
18,
19068,
2060,
12,
7705,
16,
21608,
18,
2802,
2520,
29398,
3719,
1377,
327,
31,
565,
368,
4720,
326,
27428,
1811,
606,
716,
854,
7399,
2811,
305,
94,
565,
4639,
848,
4802,
305,
94,
273,
394,
4639,
1435,
565,
288,
3639,
1071,
1250,
845,
12,
921,
320,
13,
3639,
288,
5411,
399,
25313,
268,
25313,
273,
261,
56,
25313,
13,
320,
31,
5411,
327,
225,
9933,
5126,
18,
291,
4802,
305,
94,
429,
12,
88,
25313,
16,
501,
16,
612,
1769,
3639,
289,
565,
289,
31,
3639,
14728,
2060,
356,
372,
25121,
273,
394,
14728,
2060,
1876,
5621,
565,
356,
372,
25121,
18,
1289,
12,
6869,
18,
88,
25313,
2520,
1921,
951,
11328,
270,
7537,
12,
892,
16,
612,
10019,
565,
356,
372,
25121,
18,
1289,
12,
6869,
18,
291,
56,
25313,
664,
351,
93,
12,
350,
16,
501,
10019,
565,
356,
372,
25121,
18,
1289,
16376,
12,
6869,
18,
56,
25313,
2520,
50,
89,
16354,
287,
1769,
1377,
368,
1893,
326,
1142,
268,
25313,
857,
6261,
358,
2621,
309,
2097,
279,
8775,
287,
2198,
345,
285,
3639,
2200,
356,
25734,
329,
273,
1946,
18,
588,
6869,
12,
591,
372,
25121,
1769,
202,
565,
368,
1814,
1640,
326,
679,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
1921,
38,
4558,
298,
12,
3255,
1946,
16,
2200,
4971,
16,
9514,
8135,
9745,
16,
727,
19185,
734,
612,
16,
727,
14121,
751,
501,
16,
1599,
292,
4784,
13691,
10105,
16,
1351,
2896,
429,
7607,
2549,
8135,
13,
225,
288,
565,
309,
16051,
2060,
18,
19068,
2060,
12,
7705,
16,
21608,
18,
2802,
2520,
29398,
3719,
1377,
327,
31,
565,
368,
4720,
326,
27428,
1811,
606,
716,
854,
7399,
2811,
305,
94,
565,
4639,
848,
4802,
305,
94,
273,
394,
4639,
1435,
565,
288,
3639,
1071,
1250,
845,
12,
921,
320,
13,
3639,
288,
5411,
399,
25313,
268,
25313,
273,
261,
56,
25313,
13,
320,
31,
5411,
327,
225,
9933,
5126,
18,
291,
4802,
305,
2
] |
done = true; synchronized (connectionListeners) { for (Iterator i=connectionListeners.iterator(); i.hasNext(); ) { ConnectionListener listener = (ConnectionListener)i.next(); listener.connectionClosed();
|
if (!done) { synchronized (connectionListeners) { for (Iterator i=connectionListeners.iterator(); i.hasNext(); ) { ConnectionListener listener = (ConnectionListener)i.next(); listener.connectionClosed(); }
|
public void shutdown() { done = true; // Notify connection listeners of the connection closing. synchronized (connectionListeners) { for (Iterator i=connectionListeners.iterator(); i.hasNext(); ) { ConnectionListener listener = (ConnectionListener)i.next(); listener.connectionClosed(); } } }
|
966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/334cfd8c3ae8dc9c456d8dd60f982a8b1aa3c3c2/PacketReader.java/clean/source/org/jivesoftware/smack/PacketReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5731,
1435,
288,
3639,
2731,
273,
638,
31,
3639,
368,
10918,
1459,
4679,
434,
326,
1459,
7647,
18,
3639,
3852,
261,
4071,
5583,
13,
288,
5411,
364,
261,
3198,
277,
33,
4071,
5583,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
7734,
4050,
2223,
2991,
273,
261,
1952,
2223,
13,
77,
18,
4285,
5621,
7734,
2991,
18,
4071,
7395,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5731,
1435,
288,
3639,
2731,
273,
638,
31,
3639,
368,
10918,
1459,
4679,
434,
326,
1459,
7647,
18,
3639,
3852,
261,
4071,
5583,
13,
288,
5411,
364,
261,
3198,
277,
33,
4071,
5583,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
7734,
4050,
2223,
2991,
273,
261,
1952,
2223,
13,
77,
18,
4285,
5621,
7734,
2991,
18,
4071,
7395,
5621,
5411,
289,
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
] |
JavaCorrectionProcessor.collectAssists(context, null, proposals);
|
IStatus status= JavaCorrectionProcessor.collectAssists(context, null, proposals); assertStatusOk(status);
|
protected static final ArrayList collectAssists(IInvocationContext context, Class[] filteredTypes) { ArrayList proposals= new ArrayList(); JavaCorrectionProcessor.collectAssists(context, null, proposals); if (!proposals.isEmpty()) { assertTrue("should be marked as 'has assist'", JavaCorrectionProcessor.hasAssists(context)); } if (filteredTypes != null && filteredTypes.length > 0) { for (Iterator iter= proposals.iterator(); iter.hasNext(); ) { if (isFiltered(iter.next(), filteredTypes)) { iter.remove(); } } } return proposals; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/31560cf83529207374247abeee373980e70f4d80/QuickFixTest.java/buggy/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
727,
2407,
3274,
2610,
1486,
12,
45,
9267,
1042,
819,
16,
1659,
8526,
5105,
2016,
13,
288,
202,
202,
19558,
450,
22536,
33,
394,
2407,
5621,
202,
202,
5852,
20884,
5164,
18,
14676,
2610,
1486,
12,
2472,
16,
446,
16,
450,
22536,
1769,
9506,
202,
430,
16051,
685,
22536,
18,
291,
1921,
10756,
288,
1082,
202,
11231,
5510,
2932,
13139,
506,
9350,
487,
296,
5332,
1551,
376,
11,
3113,
5110,
20884,
5164,
18,
5332,
2610,
1486,
12,
2472,
10019,
202,
202,
97,
25083,
202,
430,
261,
12071,
2016,
480,
446,
597,
5105,
2016,
18,
2469,
405,
374,
13,
288,
1082,
202,
1884,
261,
3198,
1400,
33,
450,
22536,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
288,
9506,
202,
430,
261,
291,
14478,
12,
2165,
18,
4285,
9334,
5105,
2016,
3719,
288,
6862,
202,
2165,
18,
4479,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
450,
22536,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
727,
2407,
3274,
2610,
1486,
12,
45,
9267,
1042,
819,
16,
1659,
8526,
5105,
2016,
13,
288,
202,
202,
19558,
450,
22536,
33,
394,
2407,
5621,
202,
202,
5852,
20884,
5164,
18,
14676,
2610,
1486,
12,
2472,
16,
446,
16,
450,
22536,
1769,
9506,
202,
430,
16051,
685,
22536,
18,
291,
1921,
10756,
288,
1082,
202,
11231,
5510,
2932,
13139,
506,
9350,
487,
296,
5332,
1551,
376,
11,
3113,
5110,
20884,
5164,
18,
5332,
2610,
1486,
12,
2472,
10019,
202,
202,
97,
25083,
202,
430,
261,
12071,
2016,
480,
446,
597,
5105,
2016,
18,
2469,
405,
374,
13,
288,
1082,
202,
1884,
261,
3198,
1400,
33,
450,
22536,
18,
9838,
5621,
1400,
18,
5332,
2134,
2
] |
if (target instanceof HexEntity) { if (hex.contains(Terrain.SMOKE)) { toHit.addModifier(2, "target in smoke"); } return toHit; }
|
public static ToHitData getTargetTerrainModifier(Game game, int entityId) { final Entity target = game.getEntity(entityId); final Hex hex = game.board.getHex(target.getPosition()); // you don't get terrain modifiers in midair if (target.isMakingDfa()) { return new ToHitData(); } ToHitData toHit = new ToHitData(); if (hex.levelOf(Terrain.WATER) > 0 && target.getMovementType() != Entity.MovementType.HOVER) { toHit.addModifier(-1, "target in water"); } if (hex.contains(Terrain.SMOKE)) { toHit.addModifier(2, "target in smoke"); } else if (hex.levelOf(Terrain.WOODS) == 1) { toHit.addModifier(1, "target in light woods"); } else if (hex.levelOf(Terrain.WOODS) > 1) { toHit.addModifier(2, "target in heavy woods"); } return toHit; }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/138fb480bcda082859db47beee9b323d32cf959c/Compute.java/buggy/megamek/src/megamek/common/Compute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
565,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
565,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
565,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
282,
1071,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
282,
760,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
565,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
3056,
8863,
289,
327,
358,
13616,
31,
289,
565,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
2
] |
|
synPredMatched83 = false;
|
synPredMatched100 = false;
|
public final void wildcard() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST wildcard_AST = null; Token nc1 = null; AST nc1_AST = null; Token nc2 = null; AST nc2_AST = null; boolean synPredMatched83 = false; if (((LA(1)==STAR))) { int _m83 = mark(); synPredMatched83 = true; inputState.guessing++; try { { match(STAR); match(COLON); } } catch (RecognitionException pe) { synPredMatched83 = false; } rewind(_m83); inputState.guessing--; } if ( synPredMatched83 ) { match(STAR); match(COLON); nc1 = LT(1); nc1_AST = astFactory.create(nc1); astFactory.addASTChild(currentAST, nc1_AST); match(NCNAME); if ( inputState.guessing==0 ) { wildcard_AST = (AST)currentAST.root; wildcard_AST= (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(PREFIX_WILDCARD,"*")).add(nc1_AST)); currentAST.root = wildcard_AST; currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ? wildcard_AST.getFirstChild() : wildcard_AST; currentAST.advanceChildToEnd(); } wildcard_AST = (AST)currentAST.root; } else if ((LA(1)==NCNAME)) { nc2 = LT(1); nc2_AST = astFactory.create(nc2); astFactory.addASTChild(currentAST, nc2_AST); match(NCNAME); match(COLON); match(STAR); if ( inputState.guessing==0 ) { wildcard_AST = (AST)currentAST.root; wildcard_AST= (AST)astFactory.make( (new ASTArray(2)).add(nc2_AST).add(astFactory.create(WILDCARD,"*"))); currentAST.root = wildcard_AST; currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ? wildcard_AST.getFirstChild() : wildcard_AST; currentAST.advanceChildToEnd(); } wildcard_AST = (AST)currentAST.root; } else if ((LA(1)==STAR)) { AST tmp133_AST = null; tmp133_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp133_AST); match(STAR); if ( inputState.guessing==0 ) { wildcard_AST = (AST)currentAST.root; // make this distinct from multiplication wildcard_AST= astFactory.create(WILDCARD,"*"); currentAST.root = wildcard_AST; currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ? wildcard_AST.getFirstChild() : wildcard_AST; currentAST.advanceChildToEnd(); } wildcard_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = wildcard_AST; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
8531,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
8531,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
8194,
21,
273,
446,
31,
202,
202,
9053,
8194,
21,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
8194,
22,
273,
446,
31,
202,
202,
9053,
8194,
22,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
10261,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
631,
20943,
20349,
288,
1082,
202,
474,
389,
81,
10261,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
10261,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
1916,
12,
20943,
1769,
9506,
202,
1916,
12,
4935,
673,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
9506,
202,
11982,
10391,
15400,
10261,
273,
629,
31,
1082,
202,
97,
1082,
202,
266,
10094,
24899,
81,
10261,
1769,
1082,
202,
2630,
1119,
18,
20885,
310,
413,
31,
202,
202,
97,
202,
202,
430,
261,
6194,
10391,
15400,
10261,
262,
288,
1082,
202,
1916,
12,
20943,
1769,
1082,
202,
1916,
12,
4935,
673,
1769,
1082,
202,
14202,
21,
273,
11807,
12,
21,
1769,
1082,
202,
14202,
21,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
14202,
21,
1769,
1082,
202,
689,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8531,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
8531,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
8194,
21,
273,
446,
31,
202,
202,
9053,
8194,
21,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
8194,
22,
273,
446,
31,
202,
202,
9053,
8194,
22,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
10261,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
631,
20943,
20349,
288,
1082,
202,
474,
389,
81,
10261,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
10261,
273,
638,
2
] |
l.start(m1,m2group); endTime = System.currentTimeMillis() - startTime; System.out.println(" Distributed Multiplication : " + endTime + " millisecondes\n\n");
|
i++;
|
public static void main (String args[]) { if (args.length != 2) { System.err.println("missing argument : <nodesListFile> <MatrixSize>"); System.exit(0); } String[] nodesList = readNodesList(args[0]); String targetNode = nodesList[0].substring(0, nodesList[0].length()-1)+"2"; Launcher l = null; try { l = (Launcher) ProActive.newActive("org.objectweb.proactive.examples.matrix.Launcher", new Object[] {nodesList}, targetNode); } catch (Exception e) {e.printStackTrace();} int matrixSize=Integer.parseInt(args[1]); Matrix m1; Matrix m2 = l.createMatrix(matrixSize); long startTime; long endTime; // DISTRIBUTION printMessageAndWait("Ready for distribution"); startTime= System.currentTimeMillis(); Matrix m2group = l.distribute(m2); endTime = System.currentTimeMillis() - startTime; System.out.println(" Distribution : " + endTime + " millisecondes\n\n"); // MULTIPLICATION while (true) { printMessageAndWait("Ready for distributed multiplication"); startTime= System.currentTimeMillis(); m1 = l.createMatrix(matrixSize); System.out.println(m1); System.out.println(m2); l.start(m1,m2group); endTime = System.currentTimeMillis() - startTime; System.out.println(" Distributed Multiplication : " + endTime + " millisecondes\n\n"); } }
|
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/6c6cebd15e6ccaa8618f1c96037b6df18600d110/Main.java/clean/src/org/objectweb/proactive/examples/matrix/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
288,
202,
430,
261,
1968,
18,
2469,
480,
576,
13,
288,
202,
565,
2332,
18,
370,
18,
8222,
2932,
7337,
1237,
294,
411,
4690,
682,
812,
34,
411,
4635,
1225,
2984,
1769,
202,
565,
2332,
18,
8593,
12,
20,
1769,
202,
97,
202,
202,
780,
8526,
2199,
682,
273,
855,
3205,
682,
12,
1968,
63,
20,
19226,
202,
202,
780,
25804,
273,
2199,
682,
63,
20,
8009,
28023,
12,
20,
16,
2199,
682,
63,
20,
8009,
2469,
1435,
17,
21,
13,
9078,
22,
14432,
202,
28820,
328,
273,
446,
31,
202,
698,
288,
202,
565,
328,
273,
261,
28820,
13,
1186,
3896,
18,
2704,
3896,
2932,
3341,
18,
1612,
4875,
18,
685,
3535,
18,
16858,
18,
5667,
18,
28820,
3113,
394,
1033,
8526,
288,
4690,
682,
5779,
25804,
1769,
225,
202,
97,
1044,
261,
503,
425,
13,
288,
73,
18,
1188,
6332,
5621,
97,
202,
474,
3148,
1225,
33,
4522,
18,
2670,
1702,
12,
1968,
63,
21,
19226,
202,
4635,
312,
21,
31,
202,
4635,
312,
22,
273,
328,
18,
2640,
4635,
12,
5667,
1225,
1769,
225,
202,
5748,
8657,
31,
225,
202,
5748,
13859,
31,
202,
759,
3690,
28926,
225,
202,
1188,
1079,
1876,
5480,
2932,
8367,
364,
7006,
8863,
202,
1937,
950,
33,
2332,
18,
2972,
28512,
5621,
225,
202,
4635,
312,
22,
1655,
273,
328,
18,
2251,
887,
12,
81,
22,
1769,
202,
409,
950,
273,
2332,
18,
2972,
28512,
1435,
300,
8657,
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,
377,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
288,
202,
430,
261,
1968,
18,
2469,
480,
576,
13,
288,
202,
565,
2332,
18,
370,
18,
8222,
2932,
7337,
1237,
294,
411,
4690,
682,
812,
34,
411,
4635,
1225,
2984,
1769,
202,
565,
2332,
18,
8593,
12,
20,
1769,
202,
97,
202,
202,
780,
8526,
2199,
682,
273,
855,
3205,
682,
12,
1968,
63,
20,
19226,
202,
202,
780,
25804,
273,
2199,
682,
63,
20,
8009,
28023,
12,
20,
16,
2199,
682,
63,
20,
8009,
2469,
1435,
17,
21,
13,
9078,
22,
14432,
202,
28820,
328,
273,
446,
31,
202,
698,
288,
202,
565,
328,
273,
261,
28820,
13,
1186,
3896,
18,
2704,
3896,
2932,
3341,
18,
1612,
2
] |
Font font = firstColumn.getFont();
|
private void createFontList(Composite firstColumn) { Font font = firstColumn.getFont(); Composite parent = new Composite(firstColumn, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; parent.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; parent.setLayoutData(data); Label label = new Label(parent, SWT.LEFT); label.setText(WorkbenchMessages.getString("FontsPreference.fonts")); //$NON-NLS-1$ label.setFont(font); fontList = new List(parent, SWT.BORDER); data = new GridData( GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; fontList.setLayoutData(data); fontList.setFont(font); fontList.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { FontDefinition selectedFontDefinition = getSelectedFontDefinition(); if (selectedFontDefinition == null) { changeFontButton.setEnabled(false); useSystemButton.setEnabled(false); } else { changeFontButton.setEnabled(true); useSystemButton.setEnabled(true); updateForSelectedFontDefinition(selectedFontDefinition); } } }); Set names = labelsToDefinitions.keySet(); int nameSize = names.size(); String[] unsortedItems = new String[nameSize]; names.toArray(unsortedItems); Sorter sorter = new Sorter() { private Collator collator = Collator.getInstance(); public boolean compare(Object o1, Object o2) { String s1 = (String) o1; String s2 = (String) o2; return collator.compare(s1, s2) < 0; } }; Object[] sortedItems = sorter.sort(unsortedItems); String[] listItems = new String[nameSize]; System.arraycopy(sortedItems, 0, listItems, 0, nameSize); fontList.setItems(listItems); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa3d8b2c736e3652be89a2f1f10b1731caba01eb/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5711,
682,
12,
9400,
1122,
1494,
13,
288,
202,
202,
5711,
3512,
273,
1122,
1494,
18,
588,
5711,
5621,
202,
202,
9400,
982,
273,
394,
14728,
12,
3645,
1494,
16,
348,
8588,
18,
8560,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
2938,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
2938,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
2224,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
10066,
1769,
202,
202,
1925,
18,
542,
1528,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
5711,
87,
9624,
18,
22052,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
1925,
18,
542,
5711,
12,
5776,
1769,
202,
202,
5776,
682,
273,
394,
987,
12,
2938,
16,
348,
8588,
18,
38,
7954,
1769,
202,
202,
892,
273,
1082,
202,
2704,
7145,
751,
12,
9506,
202,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
571,
7145,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
5776,
682,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
5776,
682,
18,
542,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5711,
682,
12,
9400,
1122,
1494,
13,
288,
202,
202,
5711,
3512,
273,
1122,
1494,
18,
588,
5711,
5621,
202,
202,
9400,
982,
273,
394,
14728,
12,
3645,
1494,
16,
348,
8588,
18,
8560,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
2938,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
2938,
18,
542,
3744,
751,
12,
892,
1769,
202,
2
] |
|
out.println(InspectionGadgetsBundle.message("create.documentation.inspections.enabled.by.default.message"));
|
out.println(InspectionGadgetsBundle.message( "create.documentation.inspections.enabled.by.default.message"));
|
private void createDocumentation(PrintStream out){ final Class<? extends LocalInspectionTool>[] classes = getInspectionClasses(); Arrays.sort(classes, new InspectionComparator()); final int numQuickFixes = countQuickFixes(classes, out); out.println(InspectionGadgetsBundle.message("create.documentation.count.inspections.message", classes.length)); out.println(InspectionGadgetsBundle.message("create.documentation.count.quick.fixes.message", numQuickFixes)); String currentGroupName=""; for(final Class<? extends LocalInspectionTool> aClass : classes){ final String className = aClass.getName(); try{ final LocalInspectionTool inspection = aClass.newInstance(); final String groupDisplayName = inspection.getGroupDisplayName(); if(!groupDisplayName.equals(currentGroupName)){ currentGroupName = groupDisplayName; out.println(); out.print(" * "); out.println(currentGroupName); } printInspectionDescription(inspection, out); } catch(InstantiationException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldn.t.instantiate.class", className)); } catch(IllegalAccessException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.access.class", className)); } catch(ClassCastException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.cast.class", className)); } } out.println(); out.println(InspectionGadgetsBundle.message("create.documentation.inspections.enabled.by.default.message")); for(final Class<? extends LocalInspectionTool> aClass : classes){ final String className = aClass.getName(); try{ final LocalInspectionTool inspection = aClass.newInstance(); if(inspection.isEnabledByDefault()){ out.println('\t' + inspection.getDisplayName()); } } catch(InstantiationException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldn.t.instantiate.class", className)); } catch(IllegalAccessException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.access.class", className)); } catch(ClassCastException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.cast.class", className)); } } final File descriptionDirectory = new File(DESCRIPTION_DIRECTORY_NAME); final File[] descriptionFiles = descriptionDirectory.listFiles(); final Set<File> descriptionFilesSet = new HashSet<File>(descriptionFiles.length); for(File descriptionFile1 : descriptionFiles){ if(!descriptionFile1.getName().startsWith(".")){ descriptionFilesSet.add(descriptionFile1); } } for(final Class<? extends LocalInspectionTool> aClass : classes){ final String className = aClass.getName(); final String simpleClassName = className.substring(className.lastIndexOf('.') + 1, className.length() - INSPECTION.length()); @NonNls final String fileName = DESCRIPTION_DIRECTORY_NAME + simpleClassName + ".html"; final File descriptionFile = new File(fileName); if(descriptionFile.exists()){ descriptionFilesSet.remove(descriptionFile); } else{ out.println(InspectionGadgetsBundle.message("create.documentation.couldnt.find.documentation.file.error.message", fileName)); } } for(final File file : descriptionFilesSet){ out.println( InspectionGadgetsBundle.message("create.documentation.unused.documentation.file.error.message", file.getAbsolutePath())); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/497cb26ab638795ef427fb3aa44b60061439a5e4/InspectionGadgetsPlugin.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
18905,
12,
5108,
1228,
596,
15329,
3639,
727,
1659,
12880,
3231,
3566,
14985,
6364,
34,
8526,
3318,
273,
336,
14985,
4818,
5621,
3639,
5647,
18,
3804,
12,
4701,
16,
394,
22085,
7017,
5559,
10663,
3639,
727,
509,
818,
13663,
8585,
281,
273,
1056,
13663,
8585,
281,
12,
4701,
16,
596,
1769,
3639,
596,
18,
8222,
12,
14985,
43,
361,
14665,
3405,
18,
2150,
2932,
2640,
18,
26941,
18,
1883,
18,
2679,
7017,
87,
18,
2150,
3113,
3318,
18,
2469,
10019,
3639,
596,
18,
8222,
12,
14985,
43,
361,
14665,
3405,
18,
2150,
2932,
2640,
18,
26941,
18,
1883,
18,
19525,
18,
904,
281,
18,
2150,
3113,
818,
13663,
8585,
281,
10019,
3639,
514,
783,
3943,
1546,
14432,
3639,
364,
12,
6385,
1659,
12880,
3231,
3566,
14985,
6364,
34,
20148,
294,
3318,
15329,
5411,
727,
514,
2658,
273,
20148,
18,
17994,
5621,
5411,
775,
95,
7734,
727,
3566,
14985,
6364,
2763,
7017,
273,
7682,
20148,
18,
2704,
1442,
5621,
7734,
727,
514,
1041,
20524,
273,
13491,
2763,
7017,
18,
588,
1114,
20524,
5621,
7734,
309,
12,
5,
1655,
20524,
18,
14963,
12,
2972,
3943,
3719,
95,
10792,
783,
3943,
273,
1041,
20524,
31,
10792,
596,
18,
8222,
5621,
10792,
596,
18,
1188,
2932,
282,
380,
315,
1769,
10792,
596,
18,
8222,
12,
2972,
3943,
1769,
7734,
289,
7734,
1172,
14985,
3291,
12,
2679,
7017,
16,
596,
1769,
5411,
289,
1044,
12,
10675,
7072,
503,
2305,
15329,
7734,
596,
18,
1188,
12,
14985,
43,
361,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
18905,
12,
5108,
1228,
596,
15329,
3639,
727,
1659,
12880,
3231,
3566,
14985,
6364,
34,
8526,
3318,
273,
336,
14985,
4818,
5621,
3639,
5647,
18,
3804,
12,
4701,
16,
394,
22085,
7017,
5559,
10663,
3639,
727,
509,
818,
13663,
8585,
281,
273,
1056,
13663,
8585,
281,
12,
4701,
16,
596,
1769,
3639,
596,
18,
8222,
12,
14985,
43,
361,
14665,
3405,
18,
2150,
2932,
2640,
18,
26941,
18,
1883,
18,
2679,
7017,
87,
18,
2150,
3113,
3318,
18,
2469,
10019,
3639,
596,
18,
8222,
12,
14985,
43,
361,
14665,
3405,
18,
2150,
2932,
2640,
18,
26941,
18,
1883,
18,
19525,
18,
904,
281,
18,
2150,
3113,
818,
13663,
8585,
281,
10019,
3639,
514,
783,
3943,
2
] |
if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments");
|
else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size();
|
public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("undef: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("undef: wrong arguments"); } // we don't do an actual undef because we don't care }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/daa5304636a08f20e2545b070a8a5d968b0ebfb8/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
4317,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
318,
536,
30,
7194,
1775,
8863,
3639,
289,
3639,
309,
16051,
261,
892,
63,
21,
65,
1276,
17988,
969,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
318,
536,
30,
7194,
1775,
8863,
3639,
289,
3639,
9670,
969,
273,
261,
8592,
969,
13,
501,
63,
21,
15533,
3639,
309,
16051,
261,
16330,
969,
18,
723,
422,
17988,
969,
18,
3297,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
318,
536,
30,
7194,
1775,
8863,
3639,
289,
3639,
368,
732,
2727,
1404,
741,
392,
3214,
640,
536,
2724,
732,
2727,
1404,
7671,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
4317,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
318,
536,
30,
7194,
1775,
8863,
3639,
289,
3639,
309,
16051,
261,
892,
63,
21,
65,
1276,
17988,
969,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
318,
536,
30,
7194,
1775,
8863,
3639,
289,
3639,
9670,
969,
273,
261,
8592,
969,
13,
501,
63,
21,
15533,
3639,
309,
16051,
261,
16330,
969,
18,
723,
422,
17988,
969,
18,
3297,
3719,
288,
1850,
2
] |
while ((workerIt.hasNext()) && taskIt.hasNext()) {
|
while ((workerIt.hasNext()) && this.taskProvider.hasNext().booleanValue()) {
|
public void start() { Body body = ProActive.getBodyOnThis(); if (!body.isActive()) { logger.fatal("The manager is not active"); throw new RuntimeException("The manager is not active"); } if (this.isComputing) { // nothing to do logger.info("The manager is already started"); return; } this.isComputing = true; Iterator taskIt = this.tasks.iterator(); Group group = ProActiveGroup.getGroup(this.workerGroup); Iterator workerIt = group.iterator(); while ((workerIt.hasNext()) && taskIt.hasNext()) { this.assignTaskToWorker((Worker) workerIt.next(), (Task) taskIt.next()); } Service service = new Service(body); while (taskIt.hasNext()) { try { // wait for a free worker int index = ProActive.waitForAny(this.futureTaskList, 500); this.allResults.add(this.futureTaskList.remove(index)); this.pendingTaskList.remove(index); Worker freeWorker = (Worker) this.workingWorkerList.remove(index); this.assignTaskToWorker(freeWorker, (Task) taskIt.next()); } catch (ProActiveException e) { while (service.getRequestCount() > 0) { service.serveOldest(); } continue; } } // Serving requests and waiting for results while (taskIt.hasNext() || (this.allResults.size() != this.tasks.size())) { try { int index = ProActive.waitForAny(this.futureTaskList, 500); this.allResults.add(this.futureTaskList.remove(index)); this.freeWorkerList.add(this.workingWorkerList.remove(index)); } catch (ProActiveException e) { while (service.getRequestCount() > 0) { service.serveOldest(); } continue; } } System.out.println("Total of results = " + this.allResults.size()); System.out.println("Total of tasks = " + this.tasks.size()); // Set the final result this.finalResult = this.rootTask.gather((Result[]) this.allResults.toArray( new Result[this.allResults.size()])); this.isComputing = false; }
|
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/080cb45c9a42cc5dd69932f892e1fcf2a2fa3902/Manager.java/clean/src/org/objectweb/proactive/p2p/api/core/Manager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
288,
3639,
5652,
1417,
273,
1186,
3896,
18,
588,
2250,
1398,
2503,
5621,
3639,
309,
16051,
3432,
18,
291,
3896,
10756,
288,
5411,
1194,
18,
30709,
2932,
1986,
3301,
353,
486,
2695,
8863,
5411,
604,
394,
3235,
2932,
1986,
3301,
353,
486,
2695,
8863,
3639,
289,
3639,
309,
261,
2211,
18,
291,
7703,
310,
13,
288,
5411,
368,
5083,
358,
741,
5411,
1194,
18,
1376,
2932,
1986,
3301,
353,
1818,
5746,
8863,
5411,
327,
31,
3639,
289,
3639,
333,
18,
291,
7703,
310,
273,
638,
31,
3639,
4498,
1562,
7193,
273,
333,
18,
9416,
18,
9838,
5621,
3639,
3756,
1041,
273,
1186,
3896,
1114,
18,
588,
1114,
12,
2211,
18,
10124,
1114,
1769,
3639,
4498,
4322,
7193,
273,
1041,
18,
9838,
5621,
3639,
1323,
14015,
10124,
7193,
18,
5332,
2134,
10756,
597,
333,
18,
4146,
2249,
18,
5332,
2134,
7675,
6494,
620,
10756,
288,
5411,
333,
18,
6145,
2174,
774,
6671,
12443,
6671,
13,
4322,
7193,
18,
4285,
9334,
7734,
261,
2174,
13,
1562,
7193,
18,
4285,
10663,
3639,
289,
3639,
1956,
1156,
273,
394,
1956,
12,
3432,
1769,
3639,
1323,
261,
4146,
7193,
18,
5332,
2134,
10756,
288,
5411,
775,
288,
7734,
368,
2529,
364,
279,
4843,
4322,
7734,
509,
770,
273,
1186,
3896,
18,
7048,
1290,
2961,
12,
2211,
18,
14343,
2174,
682,
16,
6604,
1769,
7734,
333,
18,
454,
3447,
18,
1289,
12,
2211,
18,
14343,
2174,
682,
18,
4479,
12,
1615,
10019,
7734,
333,
18,
9561,
2174,
682,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
1435,
288,
3639,
5652,
1417,
273,
1186,
3896,
18,
588,
2250,
1398,
2503,
5621,
3639,
309,
16051,
3432,
18,
291,
3896,
10756,
288,
5411,
1194,
18,
30709,
2932,
1986,
3301,
353,
486,
2695,
8863,
5411,
604,
394,
3235,
2932,
1986,
3301,
353,
486,
2695,
8863,
3639,
289,
3639,
309,
261,
2211,
18,
291,
7703,
310,
13,
288,
5411,
368,
5083,
358,
741,
5411,
1194,
18,
1376,
2932,
1986,
3301,
353,
1818,
5746,
8863,
5411,
327,
31,
3639,
289,
3639,
333,
18,
291,
7703,
310,
273,
638,
31,
3639,
4498,
1562,
7193,
273,
333,
18,
9416,
18,
9838,
5621,
3639,
3756,
1041,
273,
1186,
3896,
1114,
18,
588,
1114,
12,
2211,
18,
10124,
1114,
1769,
3639,
2
] |
WorkbenchPlugin.getDefault().getPreferenceStore().setValue(
|
PrefUtil.getAPIPreferenceStore().setValue(
|
public void setCurrentTheme(String id) { ITheme oldTheme = currentTheme; if (WorkbenchThemeManager.getInstance().doSetCurrentTheme(id)) { firePropertyChange(CHANGE_CURRENT_THEME, oldTheme, getCurrentTheme()); if (oldTheme != null) oldTheme.removePropertyChangeListener(currentThemeListener); currentTheme.addPropertyChangeListener(currentThemeListener); // update the preference if required. if (!WorkbenchPlugin.getDefault().getPreferenceStore().getString( IWorkbenchPreferenceConstants.CURRENT_THEME_ID).equals(id)) { WorkbenchPlugin.getDefault().getPreferenceStore().setValue( IWorkbenchPreferenceConstants.CURRENT_THEME_ID, id); //$NON-NLS-1$ WorkbenchPlugin.getDefault().savePluginPreferences(); } //update the jface registries { ColorRegistry jfaceColors = JFaceResources.getColorRegistry(); ColorRegistry themeColors = currentTheme.getColorRegistry(); for (Iterator i = themeColors.getKeySet().iterator(); i .hasNext();) { String key = (String) i.next(); jfaceColors.put(key, themeColors.getRGB(key)); } } { FontRegistry jfaceFonts = JFaceResources.getFontRegistry(); FontRegistry themeFonts = currentTheme.getFontRegistry(); for (Iterator i = themeFonts.getKeySet().iterator(); i .hasNext();) { String key = (String) i.next(); jfaceFonts.put(key, themeFonts.getFontData(key)); } } } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f0041368a7eaaaac4f174f8df8481886f598818e/WorkbenchThemeManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/WorkbenchThemeManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12589,
8335,
12,
780,
612,
13,
288,
3639,
467,
8335,
1592,
8335,
273,
783,
8335,
31,
3639,
309,
261,
2421,
22144,
8335,
1318,
18,
588,
1442,
7675,
2896,
694,
3935,
8335,
12,
350,
3719,
288,
5411,
4452,
1396,
3043,
12,
14473,
67,
15487,
67,
24644,
958,
16,
1592,
8335,
16,
10792,
5175,
8335,
10663,
5411,
309,
261,
1673,
8335,
480,
446,
13,
7734,
1592,
8335,
18,
4479,
1396,
15744,
12,
2972,
8335,
2223,
1769,
5411,
783,
8335,
18,
1289,
1396,
15744,
12,
2972,
8335,
2223,
1769,
5411,
368,
1089,
326,
11555,
309,
1931,
18,
5411,
309,
16051,
2421,
22144,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
588,
780,
12,
10792,
467,
2421,
22144,
9624,
2918,
18,
15487,
67,
24644,
958,
67,
734,
2934,
14963,
12,
350,
3719,
288,
7734,
28184,
1304,
18,
588,
2557,
9624,
2257,
7675,
542,
620,
12,
13491,
467,
2421,
22144,
9624,
2918,
18,
15487,
67,
24644,
958,
67,
734,
16,
612,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
4147,
22144,
3773,
18,
588,
1868,
7675,
5688,
3773,
12377,
5621,
5411,
289,
5411,
368,
2725,
326,
525,
865,
960,
22796,
5411,
288,
7734,
5563,
4243,
525,
865,
12570,
273,
804,
11824,
3805,
18,
588,
2957,
4243,
5621,
7734,
5563,
4243,
5006,
12570,
273,
783,
8335,
18,
588,
2957,
4243,
5621,
7734,
364,
261,
3198,
277,
273,
5006,
12570,
18,
588,
653,
694,
7675,
9838,
5621,
277,
13491,
263,
5332,
2134,
5621,
13,
288,
10792,
514,
498,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12589,
8335,
12,
780,
612,
13,
288,
3639,
467,
8335,
1592,
8335,
273,
783,
8335,
31,
3639,
309,
261,
2421,
22144,
8335,
1318,
18,
588,
1442,
7675,
2896,
694,
3935,
8335,
12,
350,
3719,
288,
5411,
4452,
1396,
3043,
12,
14473,
67,
15487,
67,
24644,
958,
16,
1592,
8335,
16,
10792,
5175,
8335,
10663,
5411,
309,
261,
1673,
8335,
480,
446,
13,
7734,
1592,
8335,
18,
4479,
1396,
15744,
12,
2972,
8335,
2223,
1769,
5411,
783,
8335,
18,
1289,
1396,
15744,
12,
2972,
8335,
2223,
1769,
5411,
368,
1089,
326,
11555,
309,
1931,
18,
5411,
309,
16051,
2421,
22144,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
588,
780,
12,
10792,
467,
2421,
22144,
9624,
2
] |
set(parameterIndex, (new Integer(x)).toString());
|
set(parameterIndex, Integer.toString(x));
|
public void setByte(int parameterIndex, byte x) throws SQLException { set(parameterIndex, (new Integer(x)).toString()); }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/49740c5fb99094b3942d7b8588f545907fd17074/PreparedStatement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3216,
12,
474,
25412,
16,
1160,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
261,
2704,
2144,
12,
92,
13,
2934,
10492,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3216,
12,
474,
25412,
16,
1160,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
261,
2704,
2144,
12,
92,
13,
2934,
10492,
10663,
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
] |
listener.connectionErrorOccurred(connectionEvent);
|
try { if (connection == null || connection.isClosed()) { listener.connectionErrorOccurred(connectionEvent); } } catch (SQLException ex) { }
|
public synchronized void fireConnectionEvent(boolean closed, SQLException sqlException) { if (listeners.size() > 0) { ConnectionEvent connectionEvent = new ConnectionEvent(this, sqlException); Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ConnectionEventListener listener = (ConnectionEventListener) iterator.next(); if (closed) { listener.connectionClosed(connectionEvent); } else { // TODO Only notify listener if the error is fatal listener.connectionErrorOccurred(connectionEvent); } } } }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d0ec4abe17e09ae4768b31e1b621cd0558fcb544/PooledConnection.java/clean/src/main/net/sourceforge/jtds/jdbcx/PooledConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
4452,
1952,
1133,
12,
6494,
4375,
16,
6483,
1847,
503,
13,
288,
3639,
309,
261,
16072,
18,
1467,
1435,
405,
374,
13,
288,
5411,
4050,
1133,
1459,
1133,
273,
394,
4050,
1133,
12,
2211,
16,
1847,
503,
1769,
5411,
4498,
2775,
273,
4679,
18,
9838,
5621,
5411,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
7734,
4050,
7375,
2991,
273,
261,
1952,
7375,
13,
2775,
18,
4285,
5621,
7734,
309,
261,
12204,
13,
288,
10792,
2991,
18,
4071,
7395,
12,
4071,
1133,
1769,
7734,
289,
469,
288,
10792,
368,
2660,
5098,
5066,
2991,
309,
326,
555,
353,
10081,
10402,
775,
288,
309,
261,
4071,
422,
446,
747,
1459,
18,
291,
7395,
10756,
288,
2991,
18,
4071,
668,
30096,
12,
4071,
1133,
1769,
289,
289,
1044,
261,
23116,
431,
13,
288,
225,
289,
7734,
289,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
4452,
1952,
1133,
12,
6494,
4375,
16,
6483,
1847,
503,
13,
288,
3639,
309,
261,
16072,
18,
1467,
1435,
405,
374,
13,
288,
5411,
4050,
1133,
1459,
1133,
273,
394,
4050,
1133,
12,
2211,
16,
1847,
503,
1769,
5411,
4498,
2775,
273,
4679,
18,
9838,
5621,
5411,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
7734,
4050,
7375,
2991,
273,
261,
1952,
7375,
13,
2775,
18,
4285,
5621,
7734,
309,
261,
12204,
13,
288,
10792,
2991,
18,
4071,
7395,
12,
4071,
1133,
1769,
7734,
289,
469,
288,
10792,
368,
2660,
5098,
5066,
2991,
309,
326,
555,
353,
10081,
10402,
775,
288,
309,
261,
4071,
422,
446,
747,
1459,
18,
291,
7395,
10756,
288,
2991,
18,
2
] |
fStructurePage = new ProjectStructurePage("page1", fProjectProvider, fFragmentData, true); fContentPage = new ContentPage("page2", fProjectProvider, fStructurePage, fFragmentData, true); addPage(fStructurePage);
|
fContentPage = new FragmentContentPage("page2", fProjectProvider, fMainPage, fFragmentData);
|
public void addPages() { fMainPage = new WizardNewProjectCreationPage("main"); //$NON-NLS-1$ fMainPage.setTitle(PDEPlugin.getResourceString("NewProjectWizard.MainPage.ftitle")); //$NON-NLS-1$ fMainPage.setDescription(PDEPlugin.getResourceString("NewProjectWizard.MainPage.fdesc")); //$NON-NLS-1$ addPage(fMainPage); fProjectProvider = new IProjectProvider() { public String getProjectName() { return fMainPage.getProjectName(); } public IProject getProject() { return fMainPage.getProjectHandle(); } public IPath getLocationPath() { return fMainPage.getLocationPath(); } }; fStructurePage = new ProjectStructurePage("page1", fProjectProvider, fFragmentData, true); //$NON-NLS-1$ fContentPage = new ContentPage("page2", fProjectProvider, fStructurePage, fFragmentData, true); //$NON-NLS-1$ addPage(fStructurePage); addPage(fContentPage); }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/8d27aa46e8b907fa6061d8651d021a3ca7d1b2a2/NewFragmentProjectWizard.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/NewFragmentProjectWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
1435,
288,
202,
202,
74,
6376,
1964,
273,
394,
678,
13412,
1908,
4109,
9906,
1964,
2932,
5254,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
6376,
1964,
18,
542,
4247,
12,
52,
1639,
3773,
18,
588,
1420,
780,
2932,
1908,
4109,
27130,
18,
6376,
1964,
18,
1222,
1280,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
6376,
1964,
18,
542,
3291,
12,
52,
1639,
3773,
18,
588,
1420,
780,
2932,
1908,
4109,
27130,
18,
6376,
1964,
18,
74,
5569,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
1289,
1964,
12,
74,
6376,
1964,
1769,
9506,
202,
74,
4109,
2249,
273,
394,
467,
4109,
2249,
1435,
288,
1082,
202,
482,
514,
11080,
461,
1435,
288,
9506,
202,
2463,
284,
6376,
1964,
18,
588,
4109,
461,
5621,
1082,
202,
97,
1082,
202,
482,
467,
4109,
11080,
1435,
288,
9506,
202,
2463,
284,
6376,
1964,
18,
588,
4109,
3259,
5621,
1082,
202,
97,
1082,
202,
482,
467,
743,
13312,
743,
1435,
288,
9506,
202,
2463,
284,
6376,
1964,
18,
588,
2735,
743,
5621,
1082,
202,
97,
202,
202,
20451,
9506,
202,
74,
6999,
1964,
273,
394,
5420,
6999,
1964,
2932,
2433,
21,
3113,
284,
4109,
2249,
16,
284,
7456,
751,
16,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
1350,
1964,
273,
394,
3697,
1964,
2932,
2433,
22,
3113,
284,
4109,
2249,
16,
284,
6999,
1964,
16,
284,
7456,
751,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
5716,
1435,
288,
202,
202,
74,
6376,
1964,
273,
394,
678,
13412,
1908,
4109,
9906,
1964,
2932,
5254,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
6376,
1964,
18,
542,
4247,
12,
52,
1639,
3773,
18,
588,
1420,
780,
2932,
1908,
4109,
27130,
18,
6376,
1964,
18,
1222,
1280,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
6376,
1964,
18,
542,
3291,
12,
52,
1639,
3773,
18,
588,
1420,
780,
2932,
1908,
4109,
27130,
18,
6376,
1964,
18,
74,
5569,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
1289,
1964,
12,
74,
6376,
1964,
1769,
9506,
202,
74,
4109,
2249,
273,
394,
467,
4109,
2
] |
public static int bytesRequiredWhenCopied(Object fromObj, VM_Class type) { return VM_JavaHeader.bytesRequiredWhenCopied(fromObj, type);
|
public static int bytesRequiredWhenCopied(Object obj) { Object[] tib = getTIB(obj); VM_Type type = VM_Magic.objectAsType(tib[VM_TIBLayoutConstants.TIB_TYPE_INDEX]); if (type.isClassType()) { return bytesRequiredWhenCopied(obj, type.asClass()); } else { int numElements = VM_Magic.getArrayLength(obj); return bytesRequiredWhenCopied(obj, type.asArray(), numElements); }
|
public static int bytesRequiredWhenCopied(Object fromObj, VM_Class type) { return VM_JavaHeader.bytesRequiredWhenCopied(fromObj, type); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/3c0756abda37636c945aa641fbe8139169e9ad16/VM_ObjectModel.java/buggy/rvm/src/vm/objectModel/VM_ObjectModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
1731,
3705,
9434,
28127,
12,
921,
628,
2675,
16,
8251,
67,
797,
618,
13,
288,
565,
327,
8251,
67,
5852,
1864,
18,
3890,
3705,
9434,
28127,
12,
2080,
2675,
16,
618,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
1731,
3705,
9434,
28127,
12,
921,
628,
2675,
16,
8251,
67,
797,
618,
13,
288,
565,
327,
8251,
67,
5852,
1864,
18,
3890,
3705,
9434,
28127,
12,
2080,
2675,
16,
618,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
relationshipMap.setList("joins", joins); relationshipMap.setMap("userInfo", myUserInfo, true);
|
relationshipMap.setList("joins", joins, true); relationshipMap.setMap("userInfo", getUserInfo(), true);
|
public EOModelMap toMap() { EOModelMap relationshipMap = myRelationshipMap.cloneModelMap(); relationshipMap.setString("destination", myDestination.getName(), true); //$NON-NLS-1$ relationshipMap.setString("definition", myDefinition, true); //$NON-NLS-1$ relationshipMap.setBoolean("isMandatory", myMandatory); //$NON-NLS-1$ relationshipMap.setBoolean("isToMany", myToMany); //$NON-NLS-1$ if (myJoinSemantic != null) { relationshipMap.setString("joinSemantic", myJoinSemantic.getID(), true); //$NON-NLS-1$ } relationshipMap.setString("name", myName, true); //$NON-NLS-1$ if (myDeleteRule != null && myDeleteRule != EODeleteRule.NULLIFY) { relationshipMap.setString("deleteRule", myDeleteRule.getID(), true); //$NON-NLS-1$ } relationshipMap.setBoolean("ownsDestination", myOwnsDestination); //$NON-NLS-1$ relationshipMap.setBoolean("propagatesPrimaryKey", myPropagatesPrimaryKey); //$NON-NLS-1$ relationshipMap.setInteger("numberOfToManyFaultsToBatchFetch", myNumberOfToManyFaultsToBatchFetch); //$NON-NLS-1$ List joins = new LinkedList(); Iterator joinsIter = myJoins.iterator(); while (joinsIter.hasNext()) { EOJoin join = (EOJoin) joinsIter.next(); EOModelMap joinMap = join.toMap(); joins.add(joinMap); } relationshipMap.setList("joins", joins); //$NON-NLS-1$ relationshipMap.setMap("userInfo", myUserInfo, true); //$NON-NLS-1$ return relationshipMap; }
|
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/85e8c5c5e6069e4a772ec9eb7716a51dc31c2178/EORelationship.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EORelationship.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
512,
51,
1488,
863,
24382,
1435,
288,
565,
512,
51,
1488,
863,
5232,
863,
273,
3399,
8180,
863,
18,
14056,
1488,
863,
5621,
565,
5232,
863,
18,
542,
780,
2932,
10590,
3113,
3399,
5683,
18,
17994,
9334,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
5232,
863,
18,
542,
780,
2932,
6907,
3113,
3399,
1852,
16,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
5232,
863,
18,
542,
5507,
2932,
291,
49,
10018,
3113,
3399,
49,
10018,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
5232,
863,
18,
542,
5507,
2932,
291,
12601,
3113,
3399,
12601,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
309,
261,
4811,
4572,
13185,
9941,
480,
446,
13,
288,
1377,
5232,
863,
18,
542,
780,
2932,
5701,
13185,
9941,
3113,
3399,
4572,
13185,
9941,
18,
588,
734,
9334,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
289,
565,
5232,
863,
18,
542,
780,
2932,
529,
3113,
3399,
461,
16,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
309,
261,
4811,
2613,
2175,
480,
446,
597,
3399,
2613,
2175,
480,
512,
1212,
929,
2175,
18,
50,
1506,
2053,
42,
61,
13,
288,
1377,
5232,
863,
18,
542,
780,
2932,
3733,
2175,
3113,
3399,
2613,
2175,
18,
588,
734,
9334,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
289,
565,
5232,
863,
18,
542,
5507,
2932,
995,
87,
5683,
3113,
3399,
3494,
2387,
5683,
1769,
4329,
3993,
17,
5106,
17,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
51,
1488,
863,
24382,
1435,
288,
565,
512,
51,
1488,
863,
5232,
863,
273,
3399,
8180,
863,
18,
14056,
1488,
863,
5621,
565,
5232,
863,
18,
542,
780,
2932,
10590,
3113,
3399,
5683,
18,
17994,
9334,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
5232,
863,
18,
542,
780,
2932,
6907,
3113,
3399,
1852,
16,
638,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
5232,
863,
18,
542,
5507,
2932,
291,
49,
10018,
3113,
3399,
49,
10018,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
5232,
863,
18,
542,
5507,
2932,
291,
12601,
3113,
3399,
12601,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
309,
261,
4811,
4572,
13185,
9941,
480,
2
] |
logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this);
|
logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, limit, this);
|
public void run(PrintStream out, PrintStream err) throws SVNException { String revStr = (String) getCommandLine().getArgumentValue(SVNArgument.REVISION); SVNRevision startRevision = SVNRevision.UNDEFINED; SVNRevision endRevision = SVNRevision.UNDEFINED; if (revStr != null && revStr.indexOf(':') > 0) { startRevision = SVNRevision.parse(revStr.substring(0, revStr.indexOf(':'))); endRevision = SVNRevision.parse(revStr.substring(revStr.indexOf(':') + 1)); } else if (revStr != null) { startRevision = SVNRevision.parse(revStr); } if (startRevision.isValid() && !endRevision.isValid()) { endRevision = startRevision; } else if (!startRevision.isValid()) { if (getCommandLine().hasURLs()) { startRevision = SVNRevision.HEAD; } else { startRevision = SVNRevision.BASE; } if (!endRevision.isValid()) { endRevision = SVNRevision.create(0); } } boolean stopOnCopy = getCommandLine().hasArgument(SVNArgument.STOP_ON_COPY); myReportPaths = getCommandLine().hasArgument(SVNArgument.VERBOSE); myIsQuiet = getCommandLine().hasArgument(SVNArgument.QUIET); final StringBuffer buffer = new StringBuffer(); myPrintStream = new PrintStream(System.out, true) { public void print(String s) { super.print(s); buffer.append(s); } }; SVNLogClient logClient = getClientManager().getLogClient(); if (getCommandLine().hasURLs()) { String url = getCommandLine().getURL(0); Collection targets = new ArrayList(); for(int i = 0; i < getCommandLine().getPathCount(); i++) { targets.add(getCommandLine().getPathAt(i)); } String[] paths = (String[]) targets.toArray(new String[targets.size()]); logClient.doLog(SVNURL.parseURIEncoded(url), paths, SVNRevision.UNDEFINED, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this); } else if (getCommandLine().hasPaths()) { Collection targets = new ArrayList(); for(int i = 0; i < getCommandLine().getPathCount(); i++) { targets.add(new File(getCommandLine().getPathAt(i)).getAbsoluteFile()); } File[] paths = (File[]) targets.toArray(new File[targets.size()]); logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this); } if (myHasLogEntries) { myPrintStream.print(SEPARATOR); } }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/13e8e850ceaededef4e64ff755ede1b09a08ca77/LogCommand.java/clean/javasvn/src/org/tmatesoft/svn/cli/command/LogCommand.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
5108,
1228,
596,
16,
21677,
393,
13,
1216,
29537,
50,
503,
288,
3639,
514,
5588,
1585,
273,
261,
780,
13,
12856,
1670,
7675,
588,
1379,
620,
12,
23927,
50,
1379,
18,
862,
25216,
1769,
3639,
29537,
50,
7939,
787,
7939,
273,
29537,
50,
7939,
18,
2124,
15544,
31,
3639,
29537,
50,
7939,
679,
7939,
273,
29537,
50,
7939,
18,
2124,
15544,
31,
3639,
309,
261,
9083,
1585,
480,
446,
597,
5588,
1585,
18,
31806,
2668,
2497,
13,
405,
374,
13,
288,
5411,
787,
7939,
273,
29537,
50,
7939,
18,
2670,
12,
9083,
1585,
18,
28023,
12,
20,
16,
5588,
1585,
18,
31806,
2668,
2497,
3719,
1769,
5411,
679,
7939,
273,
29537,
50,
7939,
18,
2670,
12,
9083,
1585,
18,
28023,
12,
9083,
1585,
18,
31806,
2668,
2497,
13,
397,
404,
10019,
3639,
289,
469,
309,
261,
9083,
1585,
480,
446,
13,
288,
5411,
787,
7939,
273,
29537,
50,
7939,
18,
2670,
12,
9083,
1585,
1769,
3639,
289,
3639,
309,
261,
1937,
7939,
18,
26810,
1435,
597,
401,
409,
7939,
18,
26810,
10756,
288,
5411,
679,
7939,
273,
787,
7939,
31,
3639,
289,
469,
309,
16051,
1937,
7939,
18,
26810,
10756,
288,
5411,
309,
261,
588,
21391,
7675,
5332,
15749,
10756,
288,
7734,
787,
7939,
273,
29537,
50,
7939,
18,
12458,
31,
5411,
289,
469,
288,
7734,
787,
7939,
225,
273,
29537,
50,
7939,
18,
8369,
31,
5411,
289,
5411,
309,
16051,
409,
7939,
18,
26810,
10756,
288,
7734,
679,
7939,
273,
29537,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
5108,
1228,
596,
16,
21677,
393,
13,
1216,
29537,
50,
503,
288,
3639,
514,
5588,
1585,
273,
261,
780,
13,
12856,
1670,
7675,
588,
1379,
620,
12,
23927,
50,
1379,
18,
862,
25216,
1769,
3639,
29537,
50,
7939,
787,
7939,
273,
29537,
50,
7939,
18,
2124,
15544,
31,
3639,
29537,
50,
7939,
679,
7939,
273,
29537,
50,
7939,
18,
2124,
15544,
31,
3639,
309,
261,
9083,
1585,
480,
446,
597,
5588,
1585,
18,
31806,
2668,
2497,
13,
405,
374,
13,
288,
5411,
787,
7939,
273,
29537,
50,
7939,
18,
2670,
12,
9083,
1585,
18,
28023,
12,
20,
16,
5588,
1585,
18,
31806,
2668,
2497,
3719,
1769,
5411,
679,
7939,
273,
29537,
50,
7939,
18,
2
] |
return result;
|
return (X10Call_c) this.type(retType);
|
private X10Call_c adjustMI(TypeChecker tc) throws SemanticException { X10MethodInstance xmi = (X10MethodInstance) mi; if (mi == null) return this; X10Type type = (X10Type) mi.returnType(); //if (! type.isCanonical()) // return result; Constraint rc = type.realClause(); X10Call_c result = this; if (rc != null) { HashMap<C_Var,Promise> m = rc.roots(); if (m != null) { Set<C_Var> vars = m.keySet(); HashMap<C_Root, C_Var> subs = new HashMap<C_Root, C_Var>(); for (Iterator<C_Var> it = vars.iterator(); it.hasNext();) { C_Root var = (C_Root) it.next(); if (var.equals(C_Special.This)) { assert(target != null); C_Var realThis = selfVar((X10Type) target.type(), rc); subs.put(var, realThis); } else if (var instanceof C_Local){ X10LocalInstance li = ((C_Local) var).localInstance(); assert li != null; int p = li.positionInArgList(); if (p >= 0) { Expr arg = (Expr) arguments.get(p); C_Var realVar = selfVar((X10Type) arg.type(), rc); subs.put(var,realVar); } } } if (! subs.isEmpty()) { Constraint newRC = rc.substitute(subs); X10Type retType = type.makeVariant(newRC, null); mi = mi.returnType(retType);// TODO vj: Is this really necessary? result = (X10Call_c)this.methodInstance(mi).type(mi.returnType()); } } } return result; }
|
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Call_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10Call_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1139,
2163,
1477,
67,
71,
5765,
7492,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
377,
202,
377,
202,
60,
2163,
1305,
1442,
619,
9197,
273,
261,
60,
2163,
1305,
1442,
13,
12837,
31,
377,
202,
430,
261,
9197,
422,
446,
13,
327,
333,
31,
377,
202,
60,
2163,
559,
618,
273,
261,
60,
2163,
559,
13,
12837,
18,
2463,
559,
5621,
377,
202,
759,
430,
16051,
618,
18,
291,
15512,
10756,
377,
202,
759,
202,
2463,
261,
60,
2163,
1477,
67,
71,
13,
333,
18,
723,
12,
1349,
559,
1769,
377,
202,
5806,
4519,
273,
618,
18,
7688,
7044,
5621,
377,
202,
60,
2163,
1477,
67,
71,
563,
273,
333,
31,
377,
202,
430,
261,
1310,
480,
446,
13,
288,
377,
202,
202,
8658,
32,
39,
67,
1537,
16,
7643,
34,
312,
273,
4519,
18,
22078,
5621,
377,
202,
202,
430,
261,
81,
480,
446,
13,
288,
377,
1082,
202,
694,
32,
39,
67,
1537,
34,
4153,
273,
312,
18,
856,
694,
5621,
377,
1082,
202,
8658,
32,
39,
67,
2375,
16,
385,
67,
1537,
34,
11630,
273,
394,
4317,
32,
39,
67,
2375,
16,
385,
67,
1537,
34,
5621,
377,
1082,
202,
1884,
261,
3198,
32,
39,
67,
1537,
34,
518,
273,
4153,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
377,
9506,
202,
39,
67,
2375,
569,
273,
261,
39,
67,
2375,
13,
518,
18,
4285,
5621,
377,
9506,
202,
430,
261,
1401,
18,
14963,
12,
39,
67,
12193,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
2163,
1477,
67,
71,
5765,
7492,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
377,
202,
377,
202,
60,
2163,
1305,
1442,
619,
9197,
273,
261,
60,
2163,
1305,
1442,
13,
12837,
31,
377,
202,
430,
261,
9197,
422,
446,
13,
327,
333,
31,
377,
202,
60,
2163,
559,
618,
273,
261,
60,
2163,
559,
13,
12837,
18,
2463,
559,
5621,
377,
202,
759,
430,
16051,
618,
18,
291,
15512,
10756,
377,
202,
759,
202,
2463,
261,
60,
2163,
1477,
67,
71,
13,
333,
18,
723,
12,
1349,
559,
1769,
377,
202,
5806,
4519,
273,
618,
18,
7688,
7044,
5621,
377,
202,
60,
2163,
1477,
67,
71,
563,
273,
333,
31,
377,
202,
430,
261,
2
] |
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen();
|
public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen();
|
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Advertisement.java/buggy/src/java/src/quickfix/fix44/Advertisement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
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
] |
if ( ReportItem.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name )
|
if ( IReportItemModel.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name )
|
protected AbstractParseState generalJumpTo( ) { if ( DesignElement.USER_PROPERTIES_PROP.equalsIgnoreCase( name ) ) { AbstractPropertyState state = new UserPropertyListState( handler, element ); state.setName( name ); return state; } if ( element instanceof Module ) { if ( Module.INCLUDE_SCRIPTS_PROP.equalsIgnoreCase( name ) ) { SimpleStructureListState state = new SimpleStructureListState( handler, element ); state.setName( name ); state.setMemberName( IncludeScript.FILE_NAME_MEMBER ); return state; } if ( ( Module.LIBRARIES_PROP.equalsIgnoreCase( name ) ) || ( "includeLibraries".equals( name ) ) ) //$NON-NLS-1$ { AbstractPropertyState state = new IncludedLibrariesStructureListState( handler, element ); state.setName( Module.LIBRARIES_PROP ); return state; } } if ( ScalarParameter.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name ) && element instanceof ScalarParameter ) { CompatibleBoundColumnState state = new CompatibleBoundColumnState( handler, element ); state.setName( name ); return state; } if ( ReportItem.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name ) && element instanceof ReportItem ) { CompatibleBoundColumnState state = new CompatibleBoundColumnState( handler, element ); state.setName( name ); return state; } return super.generalJumpTo( ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/ListPropertyState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ListPropertyState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
3201,
1119,
7470,
26743,
774,
12,
262,
202,
95,
202,
202,
430,
261,
29703,
1046,
18,
4714,
67,
17421,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
202,
202,
95,
1082,
202,
7469,
1396,
1119,
919,
273,
394,
2177,
1396,
682,
1119,
12,
1838,
16,
6862,
202,
2956,
11272,
1082,
202,
2019,
18,
542,
461,
12,
508,
11272,
1082,
202,
2463,
919,
31,
202,
202,
97,
202,
202,
430,
261,
930,
1276,
5924,
262,
202,
202,
95,
1082,
202,
430,
261,
5924,
18,
26003,
67,
10885,
55,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
1082,
202,
95,
9506,
202,
5784,
6999,
682,
1119,
919,
273,
394,
4477,
6999,
682,
1119,
12,
25083,
202,
4176,
16,
930,
11272,
9506,
202,
2019,
18,
542,
461,
12,
508,
11272,
9506,
202,
2019,
18,
542,
4419,
461,
12,
12672,
3651,
18,
3776,
67,
1985,
67,
19630,
11272,
9506,
202,
2463,
919,
31,
1082,
202,
97,
1082,
202,
430,
261,
261,
5924,
18,
2053,
7192,
985,
8805,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
6862,
202,
20081,
261,
315,
6702,
31909,
9654,
14963,
12,
508,
262,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
95,
9506,
202,
7469,
1396,
1119,
919,
273,
394,
657,
7908,
31909,
6999,
682,
1119,
12,
25083,
202,
4176,
16,
930,
11272,
9506,
202,
2019,
18,
542,
461,
12,
5924,
18,
2053,
7192,
985,
8805,
67,
15811,
11272,
9506,
202,
2463,
919,
31,
1082,
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,
1117,
4115,
3201,
1119,
7470,
26743,
774,
12,
262,
202,
95,
202,
202,
430,
261,
29703,
1046,
18,
4714,
67,
17421,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
202,
202,
95,
1082,
202,
7469,
1396,
1119,
919,
273,
394,
2177,
1396,
682,
1119,
12,
1838,
16,
6862,
202,
2956,
11272,
1082,
202,
2019,
18,
542,
461,
12,
508,
11272,
1082,
202,
2463,
919,
31,
202,
202,
97,
202,
202,
430,
261,
930,
1276,
5924,
262,
202,
202,
95,
1082,
202,
430,
261,
5924,
18,
26003,
67,
10885,
55,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
1082,
202,
95,
9506,
202,
5784,
6999,
682,
1119,
919,
273,
394,
4477,
6999,
682,
1119,
12,
25083,
2
] |
NodeList nl = this.processor.selectNodeList(this.doc.getDocumentElement(), this.xpath);
|
NodeList nl = this.processor.selectNodeList(this.doc.getDocumentElement(), this.xpath,this.prefixResolver);
|
protected void performXPathQuery(File xmlFile) throws SAXException { this.doc = null; Source source = null; try { source = resolver.resolveURI(xmlFile.toURL().toExternalForm()); this.doc = this.parser.parseDocument(SourceUtil.getInputSource(source)); } catch (SAXException e) { getLogger().error("Warning:" + xmlFile.getName() + " is not a valid XML file. Ignoring.", e); } catch (ProcessingException e) { getLogger().error("Warning: Problem while reading the file " + xmlFile.getName() + ". Ignoring.", e); } catch (IOException e) { getLogger().error("Warning: Problem while reading the file " + xmlFile.getName() + ". Ignoring.", e); } finally { resolver.release(source); } if (doc != null) { NodeList nl = this.processor.selectNodeList(this.doc.getDocumentElement(), this.xpath); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", QUERY_ATTR_NAME, QUERY_ATTR_NAME, "CDATA", xpath); super.contentHandler.startElement(URI, XPATH_NODE_NAME, PREFIX + ":" + XPATH_NODE_NAME, attributes); DOMStreamer ds = new DOMStreamer(super.xmlConsumer); for (int i = 0; i < nl.getLength(); i++) { ds.stream(nl.item(i)); } super.contentHandler.endElement(URI, XPATH_NODE_NAME, PREFIX + ":" + XPATH_NODE_NAME); } }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/2ca23fb0f3a74538c9a48aa9a019f25d512650aa/XPathDirectoryGenerator.java/clean/src/java/org/apache/cocoon/generation/XPathDirectoryGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3073,
14124,
1138,
12,
812,
2025,
812,
13,
1216,
14366,
288,
3639,
333,
18,
2434,
273,
446,
31,
3639,
4998,
1084,
273,
446,
31,
3639,
775,
288,
5411,
1084,
273,
5039,
18,
10828,
3098,
12,
2902,
812,
18,
869,
1785,
7675,
869,
6841,
1204,
10663,
5411,
333,
18,
2434,
273,
333,
18,
4288,
18,
2670,
2519,
12,
1830,
1304,
18,
588,
1210,
1830,
12,
3168,
10019,
3639,
289,
1044,
261,
55,
2501,
503,
425,
13,
288,
5411,
7156,
7675,
1636,
2932,
6210,
2773,
397,
2025,
812,
18,
17994,
1435,
397,
17311,
315,
353,
486,
279,
923,
3167,
585,
18,
467,
16997,
1199,
16,
425,
1769,
3639,
289,
1044,
261,
23684,
425,
13,
288,
5411,
7156,
7675,
1636,
2932,
6210,
30,
21685,
1323,
6453,
326,
585,
315,
397,
17311,
2025,
812,
18,
17994,
1435,
397,
3552,
467,
16997,
1199,
16,
425,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
7156,
7675,
1636,
2932,
6210,
30,
21685,
1323,
6453,
326,
585,
315,
397,
17311,
2025,
812,
18,
17994,
1435,
397,
3552,
467,
16997,
1199,
16,
425,
1769,
3639,
289,
3095,
288,
5411,
5039,
18,
9340,
12,
3168,
1769,
3639,
289,
3639,
309,
261,
2434,
480,
446,
13,
288,
5411,
16781,
7741,
273,
333,
18,
8700,
18,
4025,
19914,
12,
2211,
18,
2434,
18,
588,
2519,
1046,
9334,
333,
18,
18644,
16,
2211,
18,
3239,
4301,
1769,
5411,
9055,
2828,
1677,
273,
394,
9055,
2828,
5621,
5411,
1677,
18,
1289,
1499,
2932,
3113,
17089,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3073,
14124,
1138,
12,
812,
2025,
812,
13,
1216,
14366,
288,
3639,
333,
18,
2434,
273,
446,
31,
3639,
4998,
1084,
273,
446,
31,
3639,
775,
288,
5411,
1084,
273,
5039,
18,
10828,
3098,
12,
2902,
812,
18,
869,
1785,
7675,
869,
6841,
1204,
10663,
5411,
333,
18,
2434,
273,
333,
18,
4288,
18,
2670,
2519,
12,
1830,
1304,
18,
588,
1210,
1830,
12,
3168,
10019,
3639,
289,
1044,
261,
55,
2501,
503,
425,
13,
288,
5411,
7156,
7675,
1636,
2932,
6210,
2773,
397,
2025,
812,
18,
17994,
1435,
397,
17311,
315,
353,
486,
279,
923,
3167,
585,
18,
467,
16997,
1199,
16,
425,
1769,
3639,
289,
1044,
261,
23684,
425,
13,
288,
5411,
7156,
7675,
2
] |
preferencesMenuItem = new JMenuItem("Filters/Suppressions..."); JMenuItem sortMenuItem = new JMenuItem("Sort Configuration..."); JMenuItem goToLineMenuItem = new JMenuItem("Go to line...");
|
preferencesMenuItem = newJMenuItem("Filters/Suppressions..."); JMenuItem sortMenuItem = newJMenuItem("Sort Configuration..."); JMenuItem goToLineMenuItem = newJMenuItem("Go to line...");
|
protected JMenuBar createMainMenuBar() { JMenuBar menuBar = new JMenuBar(); //Create JMenus for menuBar. JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic(KeyEvent.VK_E); //Edit fileMenu JMenu object. JMenuItem newProjectMenuItem = new JMenuItem("New Project", KeyEvent.VK_N); JMenuItem openProjectMenuItem = new JMenuItem("Open Project...", KeyEvent.VK_O); recentProjectsMenu = new JMenu("Recent Projects"); recentProjectsMenu.setMnemonic(KeyEvent.VK_E); createRecentProjectsMenu(); JMenuItem saveAsProjectMenuItem = new JMenuItem("Save Project As...", KeyEvent.VK_A); JMenuItem importBugsMenuItem = new JMenuItem("Load Analysis...", KeyEvent.VK_L); JMenuItem exportBugsMenuItem = new JMenuItem("Save Analysis...", KeyEvent.VK_B); JMenuItem redoAnalysis = new JMenuItem("Redo Analysis", KeyEvent.VK_R); JMenuItem mergeMenuItem = new JMenuItem("Merge Analysis..."); JMenuItem exitMenuItem = null; if (!MAC_OS_X) { exitMenuItem = new JMenuItem("Exit", KeyEvent.VK_X); exitMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ callOnClose(); } }); } JMenu windowMenu = guiLayout.createWindowMenu(); attachAccelaratorKey(newProjectMenuItem, KeyEvent.VK_N); newProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ newProjectMenu(); } }); attachAccelaratorKey(editProjectMenuItem, KeyEvent.VK_F); editProjectMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); new NewProjectWizard(curProject); } }); openProjectMenuItem.setEnabled(true); attachAccelaratorKey(openProjectMenuItem, KeyEvent.VK_O); openProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ openProject(); } }); mergeMenuItem.setEnabled(true); mergeMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ mergeAnalysis(); } }); redoAnalysis.setEnabled(true); attachAccelaratorKey(redoAnalysis, KeyEvent.VK_R); redoAnalysis.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ redoAnalysis(); } }); saveProjectMenuItem.setEnabled(false); attachAccelaratorKey(saveProjectMenuItem, KeyEvent.VK_S); saveProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); save(projectDirectory); } }); saveAsProjectMenuItem.setEnabled(true); attachAccelaratorKey(saveAsProjectMenuItem, KeyEvent.VK_S, Event.SHIFT_MASK); saveAsProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); if(projectSaveAs()) saveProjectMenuItem.setEnabled(true); } }); attachAccelaratorKey(importBugsMenuItem, KeyEvent.VK_O, Event.ALT_MASK); importBugsMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ loadAnalysis(); } }); exportBugsMenuItem.setEnabled(true); attachAccelaratorKey(exportBugsMenuItem, KeyEvent.VK_S, Event.ALT_MASK); exportBugsMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveAnalysis(); } }); fileMenu.add(newProjectMenuItem); fileMenu.add(editProjectMenuItem); fileMenu.addSeparator(); fileMenu.add(openProjectMenuItem); fileMenu.add(recentProjectsMenu); fileMenu.addSeparator(); fileMenu.add(saveProjectMenuItem); fileMenu.add(saveAsProjectMenuItem); fileMenu.addSeparator(); fileMenu.add(importBugsMenuItem); fileMenu.add(exportBugsMenuItem); fileMenu.addSeparator(); fileMenu.add(redoAnalysis); fileMenu.add(mergeMenuItem); if (exitMenuItem != null) { fileMenu.addSeparator(); fileMenu.add(exitMenuItem); } menuBar.add(fileMenu); //Edit editMenu Menu object. JMenuItem cutMenuItem = new JMenuItem(new CutAction()); JMenuItem copyMenuItem = new JMenuItem(new CopyAction()); JMenuItem pasteMenuItem = new JMenuItem(new PasteAction()); preferencesMenuItem = new JMenuItem("Filters/Suppressions..."); JMenuItem sortMenuItem = new JMenuItem("Sort Configuration..."); JMenuItem goToLineMenuItem = new JMenuItem("Go to line..."); attachAccelaratorKey(cutMenuItem, KeyEvent.VK_X); attachAccelaratorKey(copyMenuItem, KeyEvent.VK_C); attachAccelaratorKey(pasteMenuItem, KeyEvent.VK_V); preferencesMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); PreferencesFrame.getInstance().setLocationRelativeTo(MainFrame.this); PreferencesFrame.getInstance().setVisible(true); } }); sortMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); SorterDialog.getInstance().setLocationRelativeTo(MainFrame.this); SorterDialog.getInstance().setVisible(true); } }); attachAccelaratorKey(goToLineMenuItem, KeyEvent.VK_L); goToLineMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ guiLayout.makeSourceVisible(); try{ int num = Integer.parseInt(JOptionPane.showInputDialog(MainFrame.this, "", "Go To Line:", JOptionPane.QUESTION_MESSAGE)); displayer.showLine(num); } catch(NumberFormatException e){} }}); editMenu.add(cutMenuItem); editMenu.add(copyMenuItem); editMenu.add(pasteMenuItem); editMenu.addSeparator(); editMenu.add(goToLineMenuItem); editMenu.addSeparator(); //editMenu.add(selectAllMenuItem);// editMenu.addSeparator(); editMenu.add(preferencesMenuItem); editMenu.add(sortMenuItem); menuBar.add(editMenu); if (windowMenu != null) menuBar.add(windowMenu); final ActionMap map = tree.getActionMap(); JMenu navMenu = new JMenu("Navigation"); addNavItem(map, navMenu, "Expand", "expand", KeyEvent.VK_RIGHT ); addNavItem(map, navMenu, "Collapse", "collapse", KeyEvent.VK_LEFT); addNavItem(map, navMenu, "Up", "selectPrevious", KeyEvent.VK_UP ); addNavItem(map, navMenu, "Down", "selectNext", KeyEvent.VK_DOWN); menuBar.add(navMenu); JMenu designationMenu = new JMenu("Designation"); int i = 0; int keyEvents [] = {KeyEvent.VK_1, KeyEvent.VK_2, KeyEvent.VK_3, KeyEvent.VK_4, KeyEvent.VK_5, KeyEvent.VK_6, KeyEvent.VK_7, KeyEvent.VK_8, KeyEvent.VK_9}; for(String key : I18N.instance().getUserDesignationKeys(true)) { String name = I18N.instance().getUserDesignation(key); addDesignationItem(designationMenu, name, keyEvents[i++]); } menuBar.add(designationMenu); if (!MAC_OS_X) { // On Mac, 'About' appears under Findbugs menu, so no need for it here JMenu helpMenu = new JMenu("Help"); JMenuItem aboutItem = new JMenuItem("About FindBugs"); helpMenu.add(aboutItem); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { about(); } }); menuBar.add(helpMenu); } return menuBar; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/8030c91e4cc5c69deace557c469b6f68f3144426/MainFrame.java/buggy/findbugs/src/java5/edu/umd/cs/findbugs/gui2/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
804,
4599,
5190,
752,
6376,
4599,
5190,
1435,
288,
202,
202,
46,
4599,
5190,
3824,
5190,
273,
394,
804,
4599,
5190,
5621,
9506,
202,
759,
1684,
804,
29755,
364,
3824,
5190,
18,
202,
202,
46,
4599,
585,
4599,
273,
394,
804,
4599,
2932,
812,
8863,
202,
202,
768,
4599,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
42,
1769,
202,
202,
46,
4599,
3874,
4599,
273,
394,
804,
4599,
2932,
4666,
8863,
202,
202,
4619,
4599,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
41,
1769,
9506,
202,
759,
4666,
585,
4599,
804,
4599,
733,
18,
202,
202,
46,
12958,
394,
4109,
12958,
273,
394,
804,
12958,
2932,
1908,
5420,
3113,
23737,
18,
58,
47,
67,
50,
1769,
202,
202,
46,
12958,
1696,
4109,
12958,
273,
394,
804,
12958,
2932,
3678,
5420,
7070,
16,
23737,
18,
58,
47,
67,
51,
1769,
202,
202,
20872,
15298,
4599,
273,
394,
804,
4599,
2932,
17076,
30491,
8863,
202,
202,
20872,
15298,
4599,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
41,
1769,
202,
202,
2640,
17076,
15298,
4599,
5621,
202,
202,
46,
12958,
1923,
1463,
4109,
12958,
273,
394,
804,
12958,
2932,
4755,
5420,
2970,
7070,
16,
23737,
18,
58,
47,
67,
37,
1769,
202,
202,
46,
12958,
1930,
31559,
12958,
273,
394,
804,
12958,
2932,
2563,
16318,
7070,
16,
23737,
18,
58,
47,
67,
48,
1769,
202,
202,
46,
12958,
3359,
31559,
12958,
273,
394,
804,
12958,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
4599,
5190,
752,
6376,
4599,
5190,
1435,
288,
202,
202,
46,
4599,
5190,
3824,
5190,
273,
394,
804,
4599,
5190,
5621,
9506,
202,
759,
1684,
804,
29755,
364,
3824,
5190,
18,
202,
202,
46,
4599,
585,
4599,
273,
394,
804,
4599,
2932,
812,
8863,
202,
202,
768,
4599,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
42,
1769,
202,
202,
46,
4599,
3874,
4599,
273,
394,
804,
4599,
2932,
4666,
8863,
202,
202,
4619,
4599,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
41,
1769,
9506,
202,
759,
4666,
585,
4599,
804,
4599,
733,
18,
202,
202,
46,
12958,
394,
4109,
12958,
273,
394,
804,
12958,
2932,
1908,
5420,
2
] |
setPropertySilently( JoinCondition.LEFT_DATASET_MEMBER, leftDataset );
|
setProperty( JoinCondition.LEFT_DATASET_MEMBER, leftDataset );
|
public void setLeftDataSet( String leftDataset ) { setPropertySilently( JoinCondition.LEFT_DATASET_MEMBER, leftDataset ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ed446d9623424260d8ee1e1afb63abb84e497547/JoinConditionHandle.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/JoinConditionHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3910,
13676,
12,
514,
2002,
10656,
262,
202,
95,
202,
202,
542,
1396,
55,
8125,
715,
12,
4214,
3418,
18,
10066,
67,
4883,
4043,
67,
19630,
16,
2002,
10656,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3910,
13676,
12,
514,
2002,
10656,
262,
202,
95,
202,
202,
542,
1396,
55,
8125,
715,
12,
4214,
3418,
18,
10066,
67,
4883,
4043,
67,
19630,
16,
2002,
10656,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final String suiteName, final Map parameters, final String annotationType) { super(true);
|
final String suiteName, final Map parameters, final String annotationType, final int logLevel) { super(true);
|
public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { m_annotationType= TestNG.JAVADOC_ANNOTATION_TYPE; } else { m_annotationType= TestNG.JDK_ANNOTATION_TYPE; } }
|
54619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54619/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6082,
13587,
12,
6385,
514,
17234,
16,
15604,
727,
514,
11371,
461,
16,
15604,
727,
1635,
1472,
16,
15604,
727,
514,
17239,
13,
288,
1377,
2240,
12,
3767,
1769,
1377,
312,
67,
4406,
461,
33,
17234,
31,
1377,
312,
67,
30676,
461,
33,
11371,
461,
31,
1377,
312,
67,
3977,
33,
1472,
31,
1377,
309,
2932,
21,
18,
24,
9654,
14963,
12,
11495,
559,
13,
747,
7766,
4960,
18,
46,
5856,
1880,
10809,
67,
24922,
67,
2399,
18,
14963,
12,
11495,
559,
3719,
288,
3639,
312,
67,
11495,
559,
33,
7766,
4960,
18,
46,
5856,
1880,
10809,
67,
24922,
67,
2399,
31,
1377,
289,
1377,
469,
288,
3639,
312,
67,
11495,
559,
33,
7766,
4960,
18,
46,
3398,
67,
24922,
67,
2399,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6082,
13587,
12,
6385,
514,
17234,
16,
15604,
727,
514,
11371,
461,
16,
15604,
727,
1635,
1472,
16,
15604,
727,
514,
17239,
13,
288,
1377,
2240,
12,
3767,
1769,
1377,
312,
67,
4406,
461,
33,
17234,
31,
1377,
312,
67,
30676,
461,
33,
11371,
461,
31,
1377,
312,
67,
3977,
33,
1472,
31,
1377,
309,
2932,
21,
18,
24,
9654,
14963,
12,
11495,
559,
13,
747,
7766,
4960,
18,
46,
5856,
1880,
10809,
67,
24922,
67,
2399,
18,
14963,
12,
11495,
559,
3719,
288,
3639,
312,
67,
11495,
559,
33,
7766,
4960,
18,
46,
5856,
1880,
10809,
67,
24922,
67,
2399,
31,
1377,
289,
1377,
469,
288,
3639,
312,
67,
11495,
559,
33,
7766,
4960,
18,
46,
2
] |
sp.printHTML("<h3>Sorry, but there is no items in this category for this region.</h3><br>");
|
sp.printHTML( "<h3>Sorry, but there is no items in this category for this region.</h3><br>");
|
private void itemList(Integer categoryId, Integer regionId, int page, int nbOfItems) { try { Enumeration list; ItemPK itemPK; ItemHome iHome; Item item; Query query; QueryHome qHome; qHome = (QueryHome)PortableRemoteObject.narrow(initialContext.lookup("QueryHome"), QueryHome.class); query = qHome.create(); iHome = (ItemHome)PortableRemoteObject.narrow(initialContext.lookup("ItemHome"), ItemHome.class); list = query.getCurrentItemsInCategoryAndRegion(categoryId, regionId, page*nbOfItems, nbOfItems).elements(); if (list.hasMoreElements()) { sp.printItemHeader(); while (list.hasMoreElements()) { itemPK = (ItemPK)list.nextElement(); item = iHome.findByPrimaryKey(itemPK); sp.printItem(item); } } else { if (page == 0) sp.printHTML("<h3>Sorry, but there is no items in this category for this region.</h3><br>"); else { sp.printHTML("<h3>Sorry, but there is no more items in this category for this region.</h3><br>"); sp.printItemHeader(); sp.printItemFooter("<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page-1)+"&nbOfItems="+nbOfItems+"\">Previous page</a>", ""); } return ; } if (page == 0) sp.printItemFooter("", "<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page+1)+"&nbOfItems="+nbOfItems+"\">Next page</a>"); else sp.printItemFooter("<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page-1)+"&nbOfItems="+nbOfItems+"\">Previous page</a>", "<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page+1)+"&nbOfItems="+nbOfItems+"\">Next page</a>"); } catch (Exception e) { sp.printHTML("Exception getting item list: " + e +"<br>"); } }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/SearchItemsByRegion.java/clean/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/SearchItemsByRegion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
761,
682,
12,
4522,
28311,
16,
2144,
3020,
548,
16,
509,
1363,
16,
509,
4264,
951,
3126,
13,
282,
288,
565,
775,
565,
288,
1377,
13864,
666,
31,
1377,
4342,
8784,
1377,
761,
8784,
31,
1377,
4342,
8684,
565,
277,
8684,
31,
1377,
4342,
3639,
761,
31,
1377,
2770,
4202,
843,
31,
1377,
2770,
8684,
282,
1043,
8684,
31,
1377,
1043,
8684,
273,
261,
1138,
8684,
13,
2617,
429,
5169,
921,
18,
82,
7815,
12,
6769,
1042,
18,
8664,
2932,
1138,
8684,
6,
3631,
2770,
8684,
18,
1106,
1769,
1377,
843,
273,
1043,
8684,
18,
2640,
5621,
1377,
277,
8684,
273,
261,
1180,
8684,
13,
2617,
429,
5169,
921,
18,
82,
7815,
12,
6769,
1042,
18,
8664,
2932,
1180,
8684,
6,
3631,
4342,
8684,
18,
1106,
1769,
1377,
666,
273,
843,
18,
588,
3935,
3126,
382,
4457,
1876,
5165,
12,
4743,
548,
16,
3020,
548,
16,
1363,
14,
6423,
951,
3126,
16,
4264,
951,
3126,
2934,
6274,
5621,
1377,
309,
261,
1098,
18,
5332,
7417,
3471,
10756,
1377,
288,
3639,
1694,
18,
1188,
1180,
1864,
5621,
3639,
1323,
261,
1098,
18,
5332,
7417,
3471,
10756,
540,
288,
1850,
761,
8784,
273,
261,
1180,
8784,
13,
1098,
18,
4285,
1046,
5621,
1850,
761,
273,
277,
8684,
18,
4720,
858,
11575,
12,
1726,
8784,
1769,
1850,
1694,
18,
1188,
1180,
12,
1726,
1769,
3639,
289,
1377,
289,
1377,
469,
1377,
288,
3639,
309,
261,
2433,
422,
374,
13,
1850,
1694,
18,
1188,
4870,
12,
3532,
76,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
761,
682,
12,
4522,
28311,
16,
2144,
3020,
548,
16,
509,
1363,
16,
509,
4264,
951,
3126,
13,
282,
288,
565,
775,
565,
288,
1377,
13864,
666,
31,
1377,
4342,
8784,
1377,
761,
8784,
31,
1377,
4342,
8684,
565,
277,
8684,
31,
1377,
4342,
3639,
761,
31,
1377,
2770,
4202,
843,
31,
1377,
2770,
8684,
282,
1043,
8684,
31,
1377,
1043,
8684,
273,
261,
1138,
8684,
13,
2617,
429,
5169,
921,
18,
82,
7815,
12,
6769,
1042,
18,
8664,
2932,
1138,
8684,
6,
3631,
2770,
8684,
18,
1106,
1769,
1377,
843,
273,
1043,
8684,
18,
2640,
5621,
1377,
277,
8684,
273,
261,
1180,
8684,
13,
2617,
429,
5169,
921,
18,
82,
7815,
12,
6769,
1042,
18,
2
] |
println(" if (!yy_eof_done) {"); println(" yy_eof_done = true;");
|
println(" if (!yyFlexEOFDone) {"); println(" yyFlexEOFDone = true;");
|
private void emitDoEOF() { if ( scanner.eofCode == null ) return; println(" /**"); println(" * Contains user EOF-code, which will be executed exactly once,"); println(" * when the end of file is reached"); println(" */"); print(" private void yy_do_eof()"); if ( scanner.eofThrow != null ) { print(" throws "); print(scanner.eofThrow); } println(" {"); println(" if (!yy_eof_done) {"); println(" yy_eof_done = true;"); println(" "+scanner.eofCode ); println(" }"); println(" }"); println(""); println(""); }
|
6220 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6220/2be54126140619a5f1a55243415a849954586b1c/Emitter.java/clean/src/JFlex/Emitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3626,
3244,
12706,
1435,
288,
565,
309,
261,
7683,
18,
9339,
1085,
422,
446,
262,
327,
31,
3639,
3785,
2932,
225,
1783,
8863,
565,
3785,
2932,
282,
380,
8398,
729,
6431,
17,
710,
16,
1492,
903,
506,
7120,
8950,
3647,
16,
8863,
565,
3785,
2932,
282,
380,
1347,
326,
679,
434,
585,
353,
8675,
8863,
565,
3785,
2932,
282,
1195,
8863,
3639,
1172,
2932,
225,
3238,
918,
9016,
67,
2896,
67,
9339,
1435,
8863,
3639,
309,
261,
7683,
18,
9339,
8282,
480,
446,
262,
288,
1377,
1172,
2932,
1216,
315,
1769,
1377,
1172,
12,
26842,
18,
9339,
8282,
1769,
565,
289,
3639,
3785,
2932,
288,
8863,
3639,
3785,
2932,
565,
309,
16051,
6795,
67,
9339,
67,
8734,
13,
288,
8863,
565,
3785,
2932,
1377,
9016,
67,
9339,
67,
8734,
273,
638,
4868,
1769,
565,
3785,
2932,
565,
13773,
26842,
18,
9339,
1085,
11272,
565,
3785,
2932,
565,
289,
8863,
565,
3785,
2932,
225,
289,
8863,
565,
3785,
2932,
8863,
565,
3785,
2932,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3626,
3244,
12706,
1435,
288,
565,
309,
261,
7683,
18,
9339,
1085,
422,
446,
262,
327,
31,
3639,
3785,
2932,
225,
1783,
8863,
565,
3785,
2932,
282,
380,
8398,
729,
6431,
17,
710,
16,
1492,
903,
506,
7120,
8950,
3647,
16,
8863,
565,
3785,
2932,
282,
380,
1347,
326,
679,
434,
585,
353,
8675,
8863,
565,
3785,
2932,
282,
1195,
8863,
3639,
1172,
2932,
225,
3238,
918,
9016,
67,
2896,
67,
9339,
1435,
8863,
3639,
309,
261,
7683,
18,
9339,
8282,
480,
446,
262,
288,
1377,
1172,
2932,
1216,
315,
1769,
1377,
1172,
12,
26842,
18,
9339,
8282,
1769,
565,
289,
3639,
3785,
2932,
288,
8863,
3639,
3785,
2932,
565,
309,
16051,
6795,
67,
9339,
67,
2
] |
public InetAddress getAddress(boolean doDNSRequest) { if (_address != null) { return _address; } else { if(!doDNSRequest) return null; InetAddress addr = getHandshakeAddress(); if( addr != null ) { this._address = addr; } return addr; }
|
public InetAddress getAddress() { return getAddress(true);
|
public InetAddress getAddress(boolean doDNSRequest) { if (_address != null) { return _address; } else { if(!doDNSRequest) return null; InetAddress addr = getHandshakeAddress(); if( addr != null ) { this._address = addr; } return addr; } }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/637da9df2699fd8ae42a7310ab48121238cc4808/FreenetInetAddress.java/buggy/src/freenet/io/comm/FreenetInetAddress.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14218,
14808,
12,
6494,
741,
11602,
691,
13,
288,
202,
202,
430,
261,
67,
2867,
480,
446,
13,
288,
1082,
202,
2463,
389,
2867,
31,
202,
202,
97,
469,
288,
1082,
3639,
309,
12,
5,
2896,
11602,
691,
13,
327,
446,
31,
1082,
3639,
14218,
3091,
273,
336,
14545,
1887,
5621,
1082,
3639,
309,
12,
3091,
480,
446,
262,
288,
1082,
7734,
333,
6315,
2867,
273,
3091,
31,
1082,
3639,
289,
1082,
3639,
327,
3091,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14218,
14808,
12,
6494,
741,
11602,
691,
13,
288,
202,
202,
430,
261,
67,
2867,
480,
446,
13,
288,
1082,
202,
2463,
389,
2867,
31,
202,
202,
97,
469,
288,
1082,
3639,
309,
12,
5,
2896,
11602,
691,
13,
327,
446,
31,
1082,
3639,
14218,
3091,
273,
336,
14545,
1887,
5621,
1082,
3639,
309,
12,
3091,
480,
446,
262,
288,
1082,
7734,
333,
6315,
2867,
273,
3091,
31,
1082,
3639,
289,
1082,
3639,
327,
3091,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
yaccValue = "&";
|
yaccValue = new Token("&", getPosition(null, false));
|
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082,
202,
474,
946,
273,
5275,
67,
701,
6408,
18,
2670,
780,
12,
2211,
16,
1705,
1769,
1082,
202,
430,
261,
17692,
422,
13899,
18,
88,
5804,
67,
4415,
747,
946,
422,
13899,
18,
88,
28225,
67,
4415,
13,
288,
9506,
565,
5275,
67,
701,
6408,
273,
446,
31,
9506,
565,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
1082,
202,
97,
1082,
202,
2463,
946,
31,
3639,
289,
3639,
783,
1616,
273,
1705,
18,
588,
2555,
5621,
7734,
1296,
1119,
273,
1296,
1685,
31,
3639,
1296,
1685,
273,
629,
31,
7734,
3300,
30,
364,
12,
25708,
13,
288,
5411,
276,
273,
1705,
18,
896,
5621,
5411,
1620,
12,
71,
13,
288,
5411,
648,
2337,
26565,
4278,
202,
202,
20308,
3602,
40,
1195,
5411,
648,
2337,
20,
1578,
4278,
202,
202,
20308,
3602,
62,
1195,
5411,
648,
374,
30,
1082,
202,
20308,
679,
434,
2728,
18,
1195,
7734,
327,
374,
31,
21821,
1748,
9578,
7292,
1195,
5411,
648,
296,
4290,
648,
2337,
88,
4278,
648,
2337,
74,
4278,
648,
2337,
86,
4278,
5411,
648,
2337,
3437,
4278,
1748,
2337,
90,
11,
1195,
7734,
3476,
15160,
273,
638,
31,
7734,
1324,
3300,
31,
5411,
648,
2946,
4278,
202,
202,
20308,
518,
1807,
279,
2879,
1195,
7734,
1323,
14015,
71,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082,
202,
474,
946,
273,
5275,
67,
701,
6408,
18,
2670,
780,
12,
2211,
16,
1705,
1769,
1082,
202,
430,
261,
17692,
422,
13899,
18,
88,
5804,
67,
4415,
747,
946,
422,
13899,
18,
88,
28225,
67,
4415,
13,
288,
9506,
565,
5275,
67,
701,
6408,
273,
446,
31,
9506,
565,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
1082,
202,
97,
1082,
202,
2463,
946,
31,
3639,
289,
3639,
783,
1616,
273,
1705,
18,
588,
2555,
5621,
7734,
1296,
2
] |
&& f.lastModified() >= entryDate.getTime() )
|
&& f.lastModified() >= entryDate.getTime() )
|
protected void extractFile( File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory ) throws IOException {/* if ( patternsets != null && patternsets.size() > 0 ) { String name = entryName.replace( '/', File.separatorChar) .replace('\\', File.separatorChar ); boolean included = false; for ( int v = 0; v < patternsets.size(); v++ ) { PatternSet p = (PatternSet) patternsets.elementAt( v ); String[] incls = p.getIncludePatterns( getProject() ); if ( incls == null || incls.length == 0 ) { // no include pattern implicitly means includes="**" incls = new String[] { "**" }; } for ( int w = 0; w < incls.length; w++ ) { String pattern = incls[w].replace( '/', File.separatorChar ) .replace( '\\', File.separatorChar ); if ( pattern.endsWith(File.separator) ) { pattern += "**"; } included = SelectorUtils.matchPath( pattern, name ); if ( included ) { break; } } if ( !included ) { break; } String[] excls = p.getExcludePatterns( getProject() ); if ( excls != null ) { for ( int w = 0; w < excls.length; w++ ) { String pattern = excls[w] .replace( '/', File.separatorChar ) .replace( '\\', File.separatorChar ); if ( pattern.endsWith( File.separator ) ) { pattern += "**"; } included = ! ( SelectorUtils.matchPath( pattern, name ) ); if ( ! included ) { break; } } } } if ( ! included ) { //Do not process this file return; } }*/ File f = FileUtils.resolveFile( dir, entryName ); try { if ( !isOverwrite() && f.exists() && f.lastModified() >= entryDate.getTime() ) { getLogger().debug( "Skipping " + f + " as it is up-to-date" ); return; } getLogger().debug( "expanding " + entryName + " to " + f ); // create intermediary directories - sometimes zip don't add them File dirF = f.getParentFile(); if ( dirF != null ) { dirF.mkdirs(); } if ( isDirectory ) { f.mkdirs(); } else { byte[] buffer = new byte[1024]; int length = 0; FileOutputStream fos = null; try { fos = new FileOutputStream( f ); while ( ( length = compressedInputStream.read( buffer ) ) >= 0 ) { fos.write( buffer, 0, length ); } fos.close(); fos = null; } finally { if ( fos != null ) { try { fos.close(); } catch ( IOException e ) { // ignore } } } } f.setLastModified( entryDate.getTime() ); } catch ( FileNotFoundException ex ) { getLogger().warn( "Unable to expand to file " + f.getPath() ); } }
|
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/AbstractZipUnArchiver.java/buggy/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2608,
812,
12,
1387,
1705,
42,
16,
1387,
1577,
16,
1171,
9079,
5037,
8968,
4348,
16,
1171,
9079,
514,
1241,
461,
16,
1171,
9079,
2167,
1241,
1626,
16,
1250,
10126,
262,
3639,
1216,
1860,
565,
288,
20308,
3639,
309,
261,
1936,
4424,
480,
446,
597,
1936,
4424,
18,
1467,
1435,
405,
374,
262,
3639,
288,
5411,
514,
508,
273,
1241,
461,
18,
2079,
12,
2023,
16,
1387,
18,
11287,
2156,
13,
7734,
263,
2079,
2668,
1695,
2187,
1387,
18,
11287,
2156,
11272,
5411,
1250,
5849,
273,
629,
31,
5411,
364,
261,
509,
331,
273,
374,
31,
331,
411,
1936,
4424,
18,
1467,
5621,
331,
9904,
262,
5411,
288,
7734,
6830,
694,
293,
273,
261,
3234,
694,
13,
1936,
4424,
18,
2956,
861,
12,
331,
11272,
7734,
514,
8526,
2823,
87,
273,
293,
18,
588,
8752,
11268,
12,
11080,
1435,
11272,
7734,
309,
261,
2823,
87,
422,
446,
747,
2823,
87,
18,
2469,
422,
374,
262,
7734,
288,
10792,
368,
1158,
2341,
1936,
24682,
4696,
6104,
1546,
636,
6,
10792,
2823,
87,
273,
394,
514,
8526,
288,
28078,
6,
289,
31,
7734,
289,
7734,
364,
261,
509,
341,
273,
374,
31,
341,
411,
2823,
87,
18,
2469,
31,
341,
9904,
262,
7734,
288,
10792,
514,
1936,
273,
2823,
87,
63,
91,
8009,
2079,
12,
2023,
16,
1387,
18,
11287,
2156,
262,
13491,
263,
2079,
12,
3718,
2187,
1387,
18,
11287,
2156,
11272,
10792,
309,
261,
1936,
18,
5839,
1190,
12,
812,
18,
11287,
13,
262,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2608,
812,
12,
1387,
1705,
42,
16,
1387,
1577,
16,
1171,
9079,
5037,
8968,
4348,
16,
1171,
9079,
514,
1241,
461,
16,
1171,
9079,
2167,
1241,
1626,
16,
1250,
10126,
262,
3639,
1216,
1860,
565,
288,
20308,
3639,
309,
261,
1936,
4424,
480,
446,
597,
1936,
4424,
18,
1467,
1435,
405,
374,
262,
3639,
288,
5411,
514,
508,
273,
1241,
461,
18,
2079,
12,
2023,
16,
1387,
18,
11287,
2156,
13,
7734,
263,
2079,
2668,
1695,
2187,
1387,
18,
11287,
2156,
11272,
5411,
1250,
5849,
273,
629,
31,
5411,
364,
261,
509,
331,
273,
374,
31,
331,
411,
1936,
4424,
18,
1467,
5621,
331,
9904,
262,
5411,
288,
7734,
6830,
694,
293,
273,
261,
3234,
694,
2
] |
throw new PSQLException("postgresql.stream.eof");
|
throw new PSQLException("postgresql.stream.eof", PSQLState.COMMUNICATION_ERROR);
|
public int ReceiveChar() throws SQLException { int c = 0; try { c = pg_input.read(); if (c < 0) throw new PSQLException("postgresql.stream.eof"); } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror", e); } return c; }
|
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/0378a269f3ab3c44e67b14f96414b6ca95263263/PGStream.java/buggy/src/interfaces/jdbc/org/postgresql/core/PGStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
17046,
2156,
1435,
1216,
6483,
202,
95,
202,
202,
474,
276,
273,
374,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
71,
273,
7184,
67,
2630,
18,
896,
5621,
1082,
202,
430,
261,
71,
411,
374,
13,
9506,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
3256,
18,
9339,
8863,
202,
202,
97,
202,
202,
14683,
261,
14106,
425,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
3256,
18,
1594,
1636,
3113,
425,
1769,
202,
202,
97,
202,
202,
2463,
276,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
17046,
2156,
1435,
1216,
6483,
202,
95,
202,
202,
474,
276,
273,
374,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
71,
273,
7184,
67,
2630,
18,
896,
5621,
1082,
202,
430,
261,
71,
411,
374,
13,
9506,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
3256,
18,
9339,
8863,
202,
202,
97,
202,
202,
14683,
261,
14106,
425,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
3256,
18,
1594,
1636,
3113,
425,
1769,
202,
202,
97,
202,
202,
2463,
276,
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
] |
if (currentDepth >= 1) {
|
if (currentDepth == 1 && !this.getSubclassedRelations().contains(r)) {
|
private void walkRelations(Table currentTable, int currentDepth) { // Find all relations from this table. Collection relations = currentTable.getRelations(); // See if we need to do anything to each one. for (Iterator i = relations.iterator(); i.hasNext(); ) { Relation r = (Relation)i.next(); // Dodge relation? if (r.getStatus().equals(ComponentStatus.INFERRED_INCORRECT)) continue; // Seen before? else if (this.relationsPredicted.containsKey(r)) { // Have we got there by a shorter path? If not, then we can skip it. int previousDepth = ((Integer)this.relationsPredicted.get(r)).intValue(); if (previousDepth <= currentDepth) continue; } // Update the depth count on this relation. this.relationsPredicted.put(r, new Integer(currentDepth)); // Update the flags. if (currentDepth >= 2) { // Mask all relations that involve two or more levels of 1:m abstraction away // from the central main table. this.maskRelation(r); } else { this.unmaskRelation(r); } // Work out where to go next. if (r.getPrimaryKey().getTable().equals(currentTable) && (r.getFKCardinality().equals(Cardinality.MANY))) { // If currentTable is at the one end of a one-to-many relation, then // up the count (if it's not a subclass relation) and recurse down it. if (currentDepth >= 1) { // Mark as concat-only (default to comma-separation) all 1:m relations that involve // a second or further level of 1:m abstraction away from the central main table. this.flagConcatOnlyRelation(r, ConcatRelationType.COMMA); } int nextDepth = currentDepth; if (!this.getSubclassedRelations().contains(r)) nextDepth++; this.walkRelations(r.getForeignKey().getTable(), nextDepth); } else { // Otherwise, recurse down it anyway but leave the count as-is. if (r.getPrimaryKey().getTable().equals(currentTable)) { this.walkRelations(r.getForeignKey().getTable(), currentDepth); } else { this.walkRelations(r.getPrimaryKey().getTable(), currentDepth); } } } }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/d62084730dd4815e88fd51af28f27b0ea2a251b0/DataSet.java/clean/src/java/org/biomart/builder/model/DataSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5442,
10666,
12,
1388,
783,
1388,
16,
509,
783,
6148,
13,
288,
3639,
368,
4163,
777,
7467,
628,
333,
1014,
18,
3639,
2200,
7467,
273,
783,
1388,
18,
588,
10666,
5621,
3639,
368,
2164,
309,
732,
1608,
358,
741,
6967,
358,
1517,
1245,
18,
3639,
364,
261,
3198,
277,
273,
7467,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
7317,
436,
273,
261,
3963,
13,
77,
18,
4285,
5621,
5411,
368,
463,
369,
908,
2533,
35,
5411,
309,
261,
86,
18,
588,
1482,
7675,
14963,
12,
1841,
1482,
18,
706,
17356,
67,
706,
9428,
4512,
3719,
1324,
31,
5411,
368,
3265,
275,
1865,
35,
5411,
469,
309,
261,
2211,
18,
15018,
21362,
329,
18,
12298,
653,
12,
86,
3719,
288,
7734,
368,
21940,
732,
2363,
1915,
635,
279,
19623,
589,
35,
971,
486,
16,
1508,
732,
848,
2488,
518,
18,
7734,
509,
2416,
6148,
273,
14015,
4522,
13,
2211,
18,
15018,
21362,
329,
18,
588,
12,
86,
13,
2934,
474,
620,
5621,
7734,
309,
261,
11515,
6148,
1648,
783,
6148,
13,
1324,
31,
5411,
289,
5411,
368,
2315,
326,
3598,
1056,
603,
333,
2533,
18,
5411,
333,
18,
15018,
21362,
329,
18,
458,
12,
86,
16,
394,
2144,
12,
2972,
6148,
10019,
5411,
368,
2315,
326,
2943,
18,
5411,
309,
261,
2972,
6148,
1545,
576,
13,
288,
7734,
368,
16698,
777,
7467,
716,
2198,
5390,
2795,
578,
1898,
7575,
434,
404,
30,
81,
1223,
701,
1128,
10804,
7734,
368,
628,
326,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5442,
10666,
12,
1388,
783,
1388,
16,
509,
783,
6148,
13,
288,
3639,
368,
4163,
777,
7467,
628,
333,
1014,
18,
3639,
2200,
7467,
273,
783,
1388,
18,
588,
10666,
5621,
3639,
368,
2164,
309,
732,
1608,
358,
741,
6967,
358,
1517,
1245,
18,
3639,
364,
261,
3198,
277,
273,
7467,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
7317,
436,
273,
261,
3963,
13,
77,
18,
4285,
5621,
5411,
368,
463,
369,
908,
2533,
35,
5411,
309,
261,
86,
18,
588,
1482,
7675,
14963,
12,
1841,
1482,
18,
706,
17356,
67,
706,
9428,
4512,
3719,
1324,
31,
5411,
368,
3265,
275,
1865,
35,
5411,
469,
309,
261,
2211,
18,
15018,
21362,
329,
2
] |
updateItem(new TableItem(getTable(), SWT.NONE, index), element);
|
createItem(element, index);
|
public void add(Object[] elements) { assertElementsNotNull(elements); Object[] filtered = filter(elements); for (int i = 0; i < filtered.length; i++) { Object element = filtered[i]; int index = indexForElement(element); updateItem(new TableItem(getTable(), SWT.NONE, index), element); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e3c7fe79cb70d0fd8bd2b9ad7c56f9575de59e6f/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
12,
921,
8526,
2186,
13,
288,
202,
202,
11231,
3471,
5962,
12,
6274,
1769,
202,
202,
921,
8526,
5105,
273,
1034,
12,
6274,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
5105,
18,
2469,
31,
277,
27245,
288,
1082,
202,
921,
930,
273,
5105,
63,
77,
15533,
1082,
202,
474,
770,
273,
770,
1290,
1046,
12,
2956,
1769,
1082,
202,
2725,
1180,
12,
2704,
3555,
1180,
12,
588,
1388,
9334,
348,
8588,
18,
9826,
16,
770,
3631,
930,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
12,
921,
8526,
2186,
13,
288,
202,
202,
11231,
3471,
5962,
12,
6274,
1769,
202,
202,
921,
8526,
5105,
273,
1034,
12,
6274,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
5105,
18,
2469,
31,
277,
27245,
288,
1082,
202,
921,
930,
273,
5105,
63,
77,
15533,
1082,
202,
474,
770,
273,
770,
1290,
1046,
12,
2956,
1769,
1082,
202,
2725,
1180,
12,
2704,
3555,
1180,
12,
588,
1388,
9334,
348,
8588,
18,
9826,
16,
770,
3631,
930,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
TextWithImports text = new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, myCurrentExpression.getText()); final WatchItemDescriptor descriptor = new WatchItemDescriptor(myProject, text, value, false); descriptor.setContext(evaluationContext); if (myType == MOUSE_OVER_HINT) { descriptor.setRenderer(debuggerContext.getDebugProcess().getDefaultRenderer(value)); } descriptor.updateRepresentation(evaluationContext, new DescriptorLabelListener() { public void labelChanged() { if(myCurrentRange != null) { if(myType != MOUSE_OVER_HINT || descriptor.isValueValid()) { showHint(DebuggerTreeRenderer.getDescriptorText(descriptor, true));
|
if (value instanceof PrimitiveValue) { final WatchItemDescriptor descriptor = new WatchItemDescriptor(myProject, text, value, false); descriptor.setContext(evaluationContext); if (myType == MOUSE_OVER_HINT) { descriptor.setRenderer(debuggerContext.getDebugProcess().getDefaultRenderer(value)); } descriptor.updateRepresentation(evaluationContext, new DescriptorLabelListener() { public void labelChanged() { if(myCurrentRange != null) { if(myType != MOUSE_OVER_HINT || descriptor.isValueValid()) { showHint(DebuggerTreeRenderer.getDescriptorText(descriptor, true)); }
|
private void evaluateHint() { final DebuggerContextImpl debuggerContext = DebuggerManagerEx.getInstanceEx(myProject).getContext(); final DebuggerSession debuggerSession = debuggerContext.getDebuggerSession(); if(debuggerSession == null || !debuggerSession.isPaused()) return; try { final ExpressionEvaluator evaluator = EvaluatorBuilderImpl.getInstance().build(myCurrentExpression); debuggerContext.getDebugProcess().getManagerThread().invokeLater(new DebuggerContextCommandImpl(debuggerContext) { public void threadAction() { try { final EvaluationContextImpl evaluationContext = debuggerContext.createEvaluationContext(); final Value value = evaluator.evaluate(evaluationContext); TextWithImports text = new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, myCurrentExpression.getText()); final WatchItemDescriptor descriptor = new WatchItemDescriptor(myProject, text, value, false); descriptor.setContext(evaluationContext); if (myType == MOUSE_OVER_HINT) { // force using default renderer for mouse over hint in order to not to call accidentaly methods while rendering // otherwise, if the hint is invoked explicitly, show it with the right "auto" renderer descriptor.setRenderer(debuggerContext.getDebugProcess().getDefaultRenderer(value)); } descriptor.updateRepresentation(evaluationContext, new DescriptorLabelListener() { public void labelChanged() { if(myCurrentRange != null) { if(myType != MOUSE_OVER_HINT || descriptor.isValueValid()) { showHint(DebuggerTreeRenderer.getDescriptorText(descriptor, true)); } } } }); } catch (EvaluateException e) { LOG.debug(e); } } }, DebuggerManagerThreadImpl.HIGH_PRIORITY); } catch (EvaluateException e) { LOG.debug(e); } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/eead600b33355e646f64d618bc6ce83dbe8bcd73/ValueHint.java/clean/debugger/impl/com/intellij/debugger/ui/ValueHint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
5956,
7002,
1435,
288,
565,
727,
28645,
1042,
2828,
19977,
1042,
273,
28645,
1318,
424,
18,
588,
1442,
424,
12,
4811,
4109,
2934,
29120,
5621,
565,
727,
28645,
2157,
19977,
2157,
273,
19977,
1042,
18,
588,
24113,
2157,
5621,
565,
309,
12,
4148,
693,
2157,
422,
446,
747,
401,
4148,
693,
2157,
18,
291,
28590,
10756,
327,
31,
565,
775,
288,
1377,
727,
5371,
15876,
18256,
273,
31956,
1263,
2828,
18,
588,
1442,
7675,
3510,
12,
4811,
3935,
2300,
1769,
1377,
19977,
1042,
18,
588,
2829,
2227,
7675,
588,
1318,
3830,
7675,
14407,
20607,
12,
2704,
28645,
1042,
2189,
2828,
12,
4148,
693,
1042,
13,
288,
3639,
1071,
918,
2650,
1803,
1435,
288,
1850,
775,
288,
5411,
727,
17340,
1042,
2828,
9873,
1042,
273,
19977,
1042,
18,
2640,
13468,
1042,
5621,
5411,
727,
1445,
460,
273,
18256,
18,
21024,
12,
14168,
367,
1042,
1769,
5411,
3867,
1190,
13347,
977,
273,
394,
3867,
1190,
13347,
2828,
12,
1085,
7456,
5677,
18,
19111,
16,
3399,
3935,
2300,
18,
588,
1528,
10663,
5411,
727,
9736,
1180,
3187,
4950,
273,
394,
9736,
1180,
3187,
12,
4811,
4109,
16,
977,
16,
460,
16,
629,
1769,
5411,
4950,
18,
542,
1042,
12,
14168,
367,
1042,
1769,
5411,
309,
261,
4811,
559,
422,
16070,
8001,
67,
12959,
67,
44,
3217,
13,
288,
2868,
368,
2944,
1450,
805,
5690,
364,
7644,
1879,
7380,
316,
1353,
358,
486,
358,
745,
25961,
3450,
2590,
1323,
9782,
2868,
368,
3541,
16,
309,
326,
7380,
353,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
5956,
7002,
1435,
288,
565,
727,
28645,
1042,
2828,
19977,
1042,
273,
28645,
1318,
424,
18,
588,
1442,
424,
12,
4811,
4109,
2934,
29120,
5621,
565,
727,
28645,
2157,
19977,
2157,
273,
19977,
1042,
18,
588,
24113,
2157,
5621,
565,
309,
12,
4148,
693,
2157,
422,
446,
747,
401,
4148,
693,
2157,
18,
291,
28590,
10756,
327,
31,
565,
775,
288,
1377,
727,
5371,
15876,
18256,
273,
31956,
1263,
2828,
18,
588,
1442,
7675,
3510,
12,
4811,
3935,
2300,
1769,
1377,
19977,
1042,
18,
588,
2829,
2227,
7675,
588,
1318,
3830,
7675,
14407,
20607,
12,
2704,
28645,
1042,
2189,
2828,
12,
4148,
693,
1042,
13,
288,
3639,
1071,
918,
2650,
1803,
1435,
288,
1850,
775,
288,
2
] |
System.out.println("Reading CARTS"); File treesDir = new File(festvoxDirectory + "/festival/trees");
|
System.out.println("Reading CARTS from "+festvoxDirectory); File treesDir = new File(festvoxDirectory + "/festival/trees/");
|
public void importCARTS(String festvoxDirectory, String destDir, UnitCatalog unitCatalog){ try{ //open CART-File System.out.println("Reading CARTS"); File treesDir = new File(festvoxDirectory + "/festival/trees"); if (treesDir.isDirectory()){ File[] entries = treesDir.listFiles(); Map cartMap = new HashMap(); for (int i=0;i<entries.length;i++){ //get the name of the CART String name = entries[i].getName(); System.out.print(name); name = name.substring(0,name.length()-3); System.out.print(" "+name+"\n"); BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(entries[i]))); CARTWagonFormat cart = new CARTWagonFormat(reader); //store CART in map cartMap.put(name, cart); reader.close(); } //dump CARTS to binary file System.out.println("Dumping CARTS"); //Open the destination file (CARTS.bin) and output the header DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(destDir+"CARTS.bin"))); //create new CART-header and write it to output file MaryHeader hdr = new MaryHeader(MaryHeader.CARTS); hdr.write(out); //write number of CARTs out.writeInt(cartMap.size()); Set carts = cartMap.keySet(); //for each CART in the map, for (Iterator i = carts.iterator(); i.hasNext();) { //get name and CART, String name = (String) i.next(); CARTWagonFormat cart = (CARTWagonFormat) cartMap.get(name); //dump name and CART out.writeUTF(name); cart.dumpBinary(out); } //finish out.close(); System.out.println("Done\n"); } else { throw new Error(treesDir.getPath() + " is no directory!"); } } catch (Exception e){ e.printStackTrace(); throw new Error("Error reading CARTS"); } }
|
24259 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24259/f9af0f067382bde700d377f77a5bc00f4cff3503/FestivalCARTImporter.java/clean/java/de/dfki/lt/mary/unitselection/voiceimport_reorganized/FestivalCARTImporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1930,
39,
4928,
55,
12,
780,
284,
395,
90,
2409,
2853,
16,
1850,
6862,
202,
780,
26231,
16,
1850,
6862,
202,
2802,
9769,
2836,
9769,
15329,
3639,
775,
95,
10792,
368,
3190,
385,
4928,
17,
812,
5411,
2332,
18,
659,
18,
8222,
2932,
15714,
385,
4928,
55,
8863,
5411,
1387,
11491,
1621,
273,
394,
1387,
12,
74,
395,
90,
2409,
2853,
397,
2206,
74,
395,
5162,
19,
17204,
8863,
1171,
309,
261,
17204,
1621,
18,
291,
2853,
10756,
95,
7734,
1387,
8526,
3222,
273,
11491,
1621,
18,
1098,
2697,
5621,
10792,
1635,
7035,
863,
273,
394,
4317,
5621,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
8219,
18,
2469,
31,
77,
27245,
95,
10792,
368,
588,
326,
508,
434,
326,
385,
4928,
4766,
3639,
514,
508,
273,
3222,
63,
77,
8009,
17994,
5621,
10792,
2332,
18,
659,
18,
1188,
12,
529,
1769,
10792,
508,
273,
508,
18,
28023,
12,
20,
16,
529,
18,
2469,
1435,
17,
23,
1769,
10792,
2332,
18,
659,
18,
1188,
2932,
13773,
529,
9078,
64,
82,
8863,
10792,
10633,
2949,
273,
13491,
394,
10633,
12,
2704,
4766,
15322,
12,
2704,
11907,
12,
8219,
63,
77,
22643,
1769,
10792,
385,
4928,
59,
346,
265,
1630,
7035,
273,
394,
385,
4928,
59,
346,
265,
1630,
12,
10530,
1769,
10792,
368,
2233,
385,
4928,
316,
852,
10792,
7035,
863,
18,
458,
12,
529,
16,
7035,
1769,
10792,
2949,
18,
4412,
5621,
4766,
565,
289,
21821,
368,
8481,
385,
4928,
55,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1930,
39,
4928,
55,
12,
780,
284,
395,
90,
2409,
2853,
16,
1850,
6862,
202,
780,
26231,
16,
1850,
6862,
202,
2802,
9769,
2836,
9769,
15329,
3639,
775,
95,
10792,
368,
3190,
385,
4928,
17,
812,
5411,
2332,
18,
659,
18,
8222,
2932,
15714,
385,
4928,
55,
8863,
5411,
1387,
11491,
1621,
273,
394,
1387,
12,
74,
395,
90,
2409,
2853,
397,
2206,
74,
395,
5162,
19,
17204,
8863,
1171,
309,
261,
17204,
1621,
18,
291,
2853,
10756,
95,
7734,
1387,
8526,
3222,
273,
11491,
1621,
18,
1098,
2697,
5621,
10792,
1635,
7035,
863,
273,
394,
4317,
5621,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
8219,
18,
2469,
31,
77,
27245,
95,
10792,
2
] |
backup(mark); return; } }
|
backup(mark); return; } }
|
protected void consumePointerOperators(List collection) throws EndOfFileException, BacktrackException { for (;;) { if (LT(1) == IToken.tAMPER) { int length = LA(1).getEndOffset() - LA(1).getOffset(); int o = consume(IToken.tAMPER).getOffset(); ICPPASTReferenceOperator refOp = createReferenceOperator(); ((ASTNode) refOp).setOffsetAndLength(o, length); collection.add(refOp); return; } IToken last = null; IToken mark = mark(); ITokenDuple nameDuple = null; boolean isConst = false, isVolatile = false, isRestrict = false; if (LT(1) == IToken.tIDENTIFIER || LT(1) == IToken.tCOLONCOLON) { try { nameDuple = name(); last = nameDuple.getLastToken(); } catch (BacktrackException bt) { backup(mark); return; } } if (LT(1) == IToken.tSTAR) { last = consume(IToken.tSTAR); int starOffset = last.getOffset(); for (;;) { IToken t = LA(1); int startingOffset = LA(1).getOffset(); switch (LT(1)) { case IToken.t_const: last = consume(IToken.t_const); isConst = true; break; case IToken.t_volatile: last = consume(IToken.t_volatile); isVolatile = true; break; case IToken.t_restrict: if (allowCPPRestrict) { last = consume(IToken.t_restrict); isRestrict = true; break; } IToken la = LA(1); throwBacktrack(startingOffset, la.getEndOffset() - startingOffset); } if (t == LA(1)) break; } IASTPointerOperator po = null; if (nameDuple != null) { IASTName name = createName(nameDuple); ICPPASTPointerToMember p2m = createPointerToMember(isRestrict); ((ASTNode) p2m).setOffsetAndLength(nameDuple .getFirstToken().getOffset(), last.getEndOffset() - nameDuple.getFirstToken().getOffset()); p2m.setConst(isConst); p2m.setVolatile(isVolatile); p2m.setName(name); name.setParent(p2m); name.setPropertyInParent(ICPPASTPointerToMember.NAME); if (isRestrict) { IGPPASTPointerToMember newPo = (IGPPASTPointerToMember) p2m; newPo.setRestrict(isRestrict); p2m = newPo; } po = p2m; } else { po = createPointer(isRestrict); ((ASTNode) po).setOffsetAndLength(starOffset, last .getEndOffset() - starOffset); ((IASTPointer) po).setConst(isConst); ((IASTPointer) po).setVolatile(isVolatile); if (isRestrict) { IGPPASTPointer newPo = (IGPPASTPointer) po; newPo.setRestrict(isRestrict); po = newPo; } } if (po != null) collection.add(po); continue; } backup(mark); return; } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
7865,
4926,
24473,
12,
682,
1849,
13,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
1884,
261,
25708,
13,
288,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
2192,
3194,
13,
288,
9506,
202,
474,
769,
273,
2928,
12,
21,
2934,
588,
1638,
2335,
1435,
300,
2928,
12,
21,
2934,
588,
2335,
5621,
9506,
202,
474,
320,
273,
7865,
12,
1285,
969,
18,
88,
2192,
3194,
2934,
588,
2335,
5621,
9506,
202,
2871,
52,
4066,
882,
2404,
5592,
1278,
3817,
273,
752,
2404,
5592,
5621,
9506,
202,
12443,
9053,
907,
13,
1278,
3817,
2934,
542,
2335,
1876,
1782,
12,
83,
16,
769,
1769,
9506,
202,
5548,
18,
1289,
12,
1734,
3817,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
1285,
969,
1142,
273,
446,
31,
1082,
202,
1285,
969,
2267,
273,
2267,
5621,
1082,
202,
1285,
969,
40,
2268,
508,
40,
2268,
273,
446,
31,
1082,
202,
6494,
353,
9661,
273,
629,
16,
353,
17431,
20295,
273,
629,
16,
353,
29371,
273,
629,
31,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
16606,
747,
11807,
12,
21,
13,
422,
467,
1345,
18,
88,
4935,
673,
4935,
673,
13,
288,
9506,
202,
698,
288,
6862,
202,
529,
40,
2268,
273,
508,
5621,
6862,
202,
2722,
273,
508,
40,
2268,
18,
588,
3024,
1345,
5621,
9506,
202,
97,
1044,
261,
2711,
4101,
503,
10921,
13,
288,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7865,
4926,
24473,
12,
682,
1849,
13,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
1884,
261,
25708,
13,
288,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
2192,
3194,
13,
288,
9506,
202,
474,
769,
273,
2928,
12,
21,
2934,
588,
1638,
2335,
1435,
300,
2928,
12,
21,
2934,
588,
2335,
5621,
9506,
202,
474,
320,
273,
7865,
12,
1285,
969,
18,
88,
2192,
3194,
2934,
588,
2335,
5621,
9506,
202,
2871,
52,
4066,
882,
2404,
5592,
1278,
3817,
273,
752,
2404,
5592,
5621,
9506,
202,
12443,
9053,
907,
13,
1278,
3817,
2934,
542,
2335,
1876,
1782,
12,
83,
16,
769,
1769,
9506,
2
] |
if (method == null) {
|
if (method.isUndefined()) {
|
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); RubyModule origin = null; if (method == null) { if (isModule()) { method = getRuntime().getClasses().getObjectClass().searchMethod(oldName); } if (method == null) { throw new NameError( ruby, "undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + toName() + "'"); } } origin = method.getImplementationClass(); if (method instanceof AliasMethod) { /* was alias */ oldName = ((AliasMethod) method).getOldName(); origin = ((AliasMethod) method).getOrigin(); method = ((AliasMethod) method).getOldMethod(); } getRuntime().getMethodCache().clearByName(name); getMethods().put(name, new AliasMethod(method, oldName, origin, method.getNoex())); }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2308,
1305,
12,
780,
508,
16,
514,
22916,
13,
288,
3639,
1842,
42,
9808,
5621,
3639,
309,
261,
1673,
461,
18,
14963,
12,
529,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
2211,
422,
18814,
7675,
588,
4818,
7675,
588,
921,
797,
10756,
288,
5411,
18814,
7675,
8869,
12,
24,
1769,
3639,
289,
3639,
467,
11452,
707,
273,
1623,
1305,
12,
1673,
461,
1769,
3639,
19817,
3120,
4026,
273,
446,
31,
3639,
309,
261,
2039,
18,
291,
10317,
10756,
288,
5411,
309,
261,
291,
3120,
10756,
288,
7734,
707,
273,
18814,
7675,
588,
4818,
7675,
588,
921,
797,
7675,
3072,
1305,
12,
1673,
461,
1769,
5411,
289,
5411,
309,
261,
2039,
18,
291,
10317,
10756,
288,
7734,
604,
394,
25473,
12,
10792,
22155,
16,
10792,
315,
5978,
707,
2119,
397,
508,
397,
2491,
364,
315,
397,
261,
291,
3120,
1435,
692,
315,
2978,
6,
294,
315,
1106,
7923,
397,
315,
2119,
397,
358,
461,
1435,
397,
5862,
1769,
5411,
289,
3639,
289,
3639,
4026,
273,
707,
18,
588,
13621,
797,
5621,
3639,
309,
261,
2039,
1276,
11873,
1305,
13,
288,
1748,
1703,
2308,
1195,
5411,
22916,
273,
14015,
2936,
1305,
13,
707,
2934,
588,
7617,
461,
5621,
5411,
4026,
273,
14015,
2936,
1305,
13,
707,
2934,
588,
7571,
5621,
5411,
707,
273,
14015,
2936,
1305,
13,
707,
2934,
588,
7617,
1305,
5621,
3639,
289,
3639,
18814,
7675,
588,
1305,
1649,
7675,
8507,
5911,
12,
529,
1769,
3639,
15429,
7675,
458,
12,
529,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2308,
1305,
12,
780,
508,
16,
514,
22916,
13,
288,
3639,
1842,
42,
9808,
5621,
3639,
309,
261,
1673,
461,
18,
14963,
12,
529,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
309,
261,
2211,
422,
18814,
7675,
588,
4818,
7675,
588,
921,
797,
10756,
288,
5411,
18814,
7675,
8869,
12,
24,
1769,
3639,
289,
3639,
467,
11452,
707,
273,
1623,
1305,
12,
1673,
461,
1769,
3639,
19817,
3120,
4026,
273,
446,
31,
3639,
309,
261,
2039,
18,
291,
10317,
10756,
288,
5411,
309,
261,
291,
3120,
10756,
288,
7734,
707,
273,
18814,
7675,
588,
4818,
7675,
588,
921,
797,
7675,
3072,
1305,
12,
1673,
461,
1769,
5411,
289,
5411,
309,
261,
2039,
18,
291,
10317,
2
] |
} else
|
} else {
|
public Object fetch( Object[] fields, Object[] identities ) throws ObjectNotFoundException, PersistenceException { //System.out.println("SQLQuery fetched!"); int count; Object stamp = null; Object[] sqlIdentities; //Object[] sqlFields = new Object[fields.length]; try { sqlIdentities = _engine.idToSql( identities ); // Load all the fields of the object including one-one relations count = _engine._ids.length; for ( int i = 0 ; i < _engine._fields.length ; ++i ) { if ( _engine._fields[i].multi ) { ArrayVector res = new ArrayVector(); Object[] temp = new Object[_engine._fields[i].columns.length]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); if ( ! _rs.wasNull() ) temp[j] = value ; count++; } res.add( temp ); fields[i] = res; } else { Object[] temp = new Object[_engine._fields[i].columns.length]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); temp[j] = _rs.wasNull() ? null : value; count++; } fields[i] = temp; } } if ( _rs.next() ) { count = 1; if ( _lastIdentities == null ) _lastIdentities = new Object[_engine._ids.length]; for ( int i=0; i<_lastIdentities.length; i++ ) { _lastIdentities[i] = SQLTypes.getObject( _rs, count, _identSqlType ); count++; } while ( OID.isEquals( sqlIdentities, _lastIdentities ) ) { for ( int i = 0 ; i < _engine._fields.length ; ++i ) { if ( _engine._fields[i].multi ) { ArrayVector res = (ArrayVector) fields[i]; Object[] temp = new Object[_engine._fields[i].columns.length]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); if ( ! _rs.wasNull() ) temp[j] = value ; } res.add( temp ); fields[i] = res; count++; } else { count += _engine._fields[i].columns.length; } } if ( _rs.next() ) for ( int i=0; i<_engine._ids.length; i++ ) { _lastIdentities[i] = SQLTypes.getObject( _rs, 1+i, _identSqlType ); } else _lastIdentities = null; } } else _lastIdentities = null; } catch ( SQLException except ) { throw new PersistenceException( Messages.format("persist.nested", except) ); } return stamp; }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/e92761a5919870afaca7274d078de822ceba63f8/SQLEngine.java/buggy/branches/castorone/castor-2002/castor/src/main/org/exolab/castor/jdo/engine/SQLEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2158,
12,
1033,
8526,
1466,
16,
1033,
8526,
17230,
262,
5411,
1216,
1033,
3990,
16,
13381,
503,
3639,
288,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
3997,
1138,
12807,
4442,
1769,
5411,
509,
565,
1056,
31,
5411,
1033,
14429,
273,
446,
31,
5411,
1033,
8526,
1847,
20746,
31,
5411,
368,
921,
8526,
1847,
2314,
273,
394,
1033,
63,
2821,
18,
2469,
15533,
5411,
775,
288,
7734,
1847,
20746,
273,
389,
8944,
18,
350,
774,
5101,
12,
17230,
11272,
7734,
368,
4444,
777,
326,
1466,
434,
326,
733,
6508,
1245,
17,
476,
7467,
7734,
1056,
273,
389,
8944,
6315,
2232,
18,
2469,
31,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
411,
389,
8944,
6315,
2821,
18,
2469,
274,
965,
77,
225,
262,
288,
10792,
309,
261,
389,
8944,
6315,
2821,
63,
77,
8009,
7027,
262,
288,
13491,
1510,
5018,
400,
273,
394,
1510,
5018,
5621,
13491,
1033,
8526,
1906,
273,
394,
1033,
63,
67,
8944,
6315,
2821,
63,
77,
8009,
5112,
18,
2469,
15533,
13491,
364,
261,
509,
525,
33,
20,
31,
525,
32,
67,
8944,
6315,
2821,
63,
77,
8009,
5112,
18,
2469,
31,
525,
9904,
262,
288,
18701,
1033,
460,
273,
389,
8944,
18,
869,
5852,
12,
277,
16,
525,
16,
3063,
2016,
18,
588,
921,
12,
389,
5453,
16,
1056,
16,
389,
8944,
6315,
2821,
63,
77,
8009,
5112,
63,
78,
8009,
4669,
559,
262,
11272,
18701,
309,
261,
401,
389,
5453,
18,
17416,
2041,
1435,
262,
27573,
1906,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2158,
12,
1033,
8526,
1466,
16,
1033,
8526,
17230,
262,
5411,
1216,
1033,
3990,
16,
13381,
503,
3639,
288,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
3997,
1138,
12807,
4442,
1769,
5411,
509,
565,
1056,
31,
5411,
1033,
14429,
273,
446,
31,
5411,
1033,
8526,
1847,
20746,
31,
5411,
368,
921,
8526,
1847,
2314,
273,
394,
1033,
63,
2821,
18,
2469,
15533,
5411,
775,
288,
7734,
1847,
20746,
273,
389,
8944,
18,
350,
774,
5101,
12,
17230,
11272,
7734,
368,
4444,
777,
326,
1466,
434,
326,
733,
6508,
1245,
17,
476,
7467,
7734,
1056,
273,
389,
8944,
6315,
2232,
18,
2469,
31,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
411,
389,
8944,
6315,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.