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
public void show(){ //System.out.println("starting to retreive Alignments"); // get uniprot seq from spice. //int currentChainNumber = spice.getCurrentChainNumber(); //if ( currentChainNumber < 0) { // logger.warning(" no active chain found "); // return; //} //Chain chain = spice.getChain(currentChainNumber); String uniprot = chain.getSwissprotId(); //Alignment[] aligs = null ; // display in a new frame JFrame alignmentFrame = new JFrame(); alignmentFrame.setTitle("Choose Alignment"); alignmentFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); //alignmentFrame.setSize(700, 700); JPanel panel = new JPanel(); panel.setPreferredSize(new Dimension(700,700)); // JFrame.setDefaultLookAndFeelDecorated(false); ImageIcon icon = SpiceApplication.createImageIcon("spice.png"); alignmentFrame.setIconImage(icon.getImage()); Box vBox = Box.createVerticalBox(); Box hBox = Box.createHorizontalBox(); // visualize these. JTextField txt =new JTextField("Alignment for "+uniprot + " vs. " + subjectCoordSys); txt.setMaximumSize(new Dimension(400,20)); txt.setBorder(BorderFactory.createEmptyBorder()); hBox.add(txt); progressBar = new JProgressBar(0,100); progressBar.setValue(0); progressBar.setStringPainted(false); progressBar.setString(""); progressBar.setMaximumSize(new Dimension(80,20)); progressBar.setIndeterminate(true); progressBar.setBorder(BorderFactory.createEmptyBorder()); // space filler hBox.add(Box.createGlue()); hBox.add(progressBar,BorderLayout.EAST); vBox.add(hBox); setChain(chain,currentChainNumber); //setAlignments(aligs); //JScrollPane scroll = new JScrollPane(sequencePanel) ; //scroll.setPreferredSize(new Dimension( 600, 600)); //scroll.setPreferredSize(new Dimension(600, 600));; //scroll.setMinimumSize( new Dimension(30, 30));; //vBox.add(scroll); vBox.add(sequencePanel); panel.add(vBox); //panel.add(scroll); //panel.add(aligPanel); //aligPanel.repaint(); alignmentFrame.getContentPane().add(panel); alignmentFrame.pack(); alignmentFrame.setVisible(true); loadAlignments(uniprot); AligPanelListener apl = new AligPanelListener(this); alignmentFrame.addComponentListener(apl); }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/a1620e533008656411e17cb3b5e55f5a3fc11f1d/AlignmentChooser.java/clean/src/org/biojava/spice/GUI/alignmentchooser/AlignmentChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 2405, 1435, 95, 759, 3163, 18, 659, 18, 8222, 2932, 18526, 358, 325, 266, 688, 19317, 1346, 8863, 759, 336, 640, 30506, 3833, 628, 1694, 1812, 18, 759, 474, 783, 3893, 1854, 273, 1694, 1812, 18, 588, 3935, 3893, 1854, 5621, 759, 430, 261, 783, 3893, 1854, 411, 374, 13, 288, 759, 4901, 18, 8551, 2932, 1158, 2695, 2687, 1392, 315, 1769, 759, 2463, 31, 759, 97, 759, 3893, 2687, 273, 1694, 1812, 18, 588, 3893, 12, 2972, 3893, 1854, 1769, 780, 640, 30506, 273, 2687, 18, 588, 6050, 1054, 11815, 548, 5621, 759, 11535, 8526, 524, 360, 87, 273, 446, 274, 759, 2562, 316, 279, 394, 2623, 46, 3219, 8710, 3219, 273, 394, 804, 3219, 5621, 8710, 3219, 18, 542, 4247, 2932, 24529, 17804, 8863, 14409, 3219, 18, 542, 1868, 4605, 2988, 12, 46, 3219, 18, 13498, 23757, 67, 673, 67, 13384, 1769, 759, 14409, 3219, 18, 542, 1225, 12, 26874, 16, 2371, 713, 1769, 46, 5537, 6594, 273, 394, 24048, 5621, 13916, 18, 542, 16028, 1225, 12, 2704, 13037, 12, 26874, 16, 26874, 10019, 759, 202, 46, 3219, 18, 542, 1868, 9794, 1876, 2954, 292, 7859, 690, 12, 5743, 1769, 2040, 5554, 4126, 273, 5878, 1812, 3208, 18, 2640, 2040, 5554, 2932, 28679, 18, 6446, 8863, 14409, 3219, 18, 542, 5554, 2040, 12, 3950, 18, 588, 2040, 10663, 3514, 331, 3514, 273, 8549, 18, 2640, 15704, 3514, 5621, 3514, 366, 3514, 273, 8549, 18, 2640, 14457, 3514, 5621, 759, 11623, 554, 4259, 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, 1071, 918, 2405, 1435, 95, 759, 3163, 18, 659, 18, 8222, 2932, 18526, 358, 325, 266, 688, 19317, 1346, 8863, 759, 336, 640, 30506, 3833, 628, 1694, 1812, 18, 759, 474, 783, 3893, 1854, 273, 1694, 1812, 18, 588, 3935, 3893, 1854, 5621, 759, 430, 261, 783, 3893, 1854, 411, 374, 13, 288, 759, 4901, 18, 8551, 2932, 1158, 2695, 2687, 1392, 315, 1769, 759, 2463, 31, 759, 97, 759, 3893, 2687, 273, 1694, 1812, 18, 588, 3893, 12, 2972, 3893, 1854, 1769, 780, 640, 30506, 273, 2687, 18, 588, 6050, 1054, 11815, 548, 5621, 759, 11535, 8526, 524, 360, 87, 273, 446, 274, 759, 2562, 316, 279, 394, 2623, 46, 3219, 8710, 3219, 273, 394, 804, 3219, 5621, 2 ]
int currentWeek = currentBegin.get(Calendar.WEEK_OF_MONTH);
Date startTime = new Date(); currentBegin.setTime(startTime);
private void setupCelendarRanges() { // Current week GregorianCalendar currentBegin = new GregorianCalendar(); int currentWeek = currentBegin.get(Calendar.WEEK_OF_MONTH); snapToStartOfWeek(currentBegin); GregorianCalendar currentEnd = new GregorianCalendar(); snapToEndOfWeek(currentEnd); thisWeek = new DateRangeTaskContainer(currentBegin, currentEnd); dateRangeContainers.add(thisWeek); // previous weeks this month for (int x = currentWeek - 1; x > 0; x--) { GregorianCalendar calStart = new GregorianCalendar(); GregorianCalendar calEnd = new GregorianCalendar(); calStart.set(Calendar.WEEK_OF_MONTH, x); calEnd.set(Calendar.WEEK_OF_MONTH, x); snapToStartOfWeek(calStart); snapToEndOfWeek(calEnd); dateRangeContainers.add(new DateRangeTaskContainer(calStart, calEnd)); } // Report past month GregorianCalendar pastMonth = new GregorianCalendar(); int previousMonth = pastMonth.get(Calendar.MONTH) - 1; if (previousMonth >= Calendar.JANUARY) { pastMonth.set(Calendar.MONTH, previousMonth); } else { pastMonth.set(Calendar.YEAR, pastMonth.get(Calendar.YEAR) - 1); pastMonth.set(Calendar.MONTH, Calendar.DECEMBER); } for (int x = pastMonth.getMaximum(Calendar.WEEK_OF_MONTH); x > 0; x--) { GregorianCalendar calStart = (GregorianCalendar) pastMonth.clone(); GregorianCalendar calEnd = (GregorianCalendar) pastMonth.clone(); calStart.set(Calendar.WEEK_OF_MONTH, x); calEnd.set(Calendar.WEEK_OF_MONTH, x); snapToStartOfWeek(calStart); snapToEndOfWeek(calEnd); dateRangeContainers.add(new DateRangeTaskContainer(calStart, calEnd)); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/23d9f91e1b469ff840c33387d7fd17d42d74420f/TaskActivityContentProvider.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskActivityContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3875, 39, 292, 2843, 9932, 1435, 288, 202, 202, 759, 6562, 4860, 202, 202, 31560, 7335, 783, 8149, 273, 394, 28033, 5621, 202, 202, 474, 783, 6630, 273, 783, 8149, 18, 588, 12, 7335, 18, 20274, 67, 3932, 67, 13942, 1769, 202, 202, 28449, 28939, 12250, 12, 2972, 8149, 1769, 202, 202, 31560, 7335, 783, 1638, 273, 394, 28033, 5621, 202, 202, 28449, 774, 1638, 12250, 12, 2972, 1638, 1769, 202, 202, 2211, 6630, 273, 394, 2167, 2655, 2174, 2170, 12, 2972, 8149, 16, 783, 1638, 1769, 202, 202, 712, 2655, 11177, 18, 1289, 12, 2211, 6630, 1769, 202, 202, 759, 2416, 17314, 333, 3138, 202, 202, 1884, 261, 474, 619, 273, 783, 6630, 300, 404, 31, 619, 405, 374, 31, 619, 413, 13, 288, 1082, 202, 31560, 7335, 1443, 1685, 273, 394, 28033, 5621, 1082, 202, 31560, 7335, 1443, 1638, 273, 394, 28033, 5621, 1082, 202, 771, 1685, 18, 542, 12, 7335, 18, 20274, 67, 3932, 67, 13942, 16, 619, 1769, 1082, 202, 771, 1638, 18, 542, 12, 7335, 18, 20274, 67, 3932, 67, 13942, 16, 619, 1769, 1082, 202, 28449, 28939, 12250, 12, 771, 1685, 1769, 1082, 202, 28449, 774, 1638, 12250, 12, 771, 1638, 1769, 1082, 202, 712, 2655, 11177, 18, 1289, 12, 2704, 2167, 2655, 2174, 2170, 12, 771, 1685, 16, 1443, 1638, 10019, 202, 202, 97, 202, 202, 759, 8706, 8854, 3138, 202, 202, 31560, 7335, 8854, 5445, 273, 394, 28033, 5621, 202, 202, 474, 2416, 5445, 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, 225, 202, 1152, 918, 3875, 39, 292, 2843, 9932, 1435, 288, 202, 202, 759, 6562, 4860, 202, 202, 31560, 7335, 783, 8149, 273, 394, 28033, 5621, 202, 202, 474, 783, 6630, 273, 783, 8149, 18, 588, 12, 7335, 18, 20274, 67, 3932, 67, 13942, 1769, 202, 202, 28449, 28939, 12250, 12, 2972, 8149, 1769, 202, 202, 31560, 7335, 783, 1638, 273, 394, 28033, 5621, 202, 202, 28449, 774, 1638, 12250, 12, 2972, 1638, 1769, 202, 202, 2211, 6630, 273, 394, 2167, 2655, 2174, 2170, 12, 2972, 8149, 16, 783, 1638, 1769, 202, 202, 712, 2655, 11177, 18, 1289, 12, 2211, 6630, 1769, 202, 202, 759, 2416, 17314, 333, 3138, 202, 202, 1884, 261, 474, 619, 273, 783, 6630, 300, 2 ]
for (Iterator it = parentCommunities.iterator(); it.hasNext();) { final String communityName = (String)it.next(); if (logger.isDetailEnabled()) { logger.detail("joinCommunity:" + " community=" + nestedCommunity + " community=" + agentId); }
for (Iterator it = parentCommunities.entrySet().iterator(); it.hasNext();) { Map.Entry me = (Map.Entry)it.next(); final String communityName = (String)me.getKey(); final Attributes memberAttrs = (Attributes)me.getValue();
protected void joinParentCommunities(Collection parentCommunities, final String nestedCommunity) { for (Iterator it = parentCommunities.iterator(); it.hasNext();) { final String communityName = (String)it.next(); if (logger.isDetailEnabled()) { logger.detail("joinCommunity:" + " community=" + nestedCommunity + " community=" + agentId); } communityService.joinCommunity(communityName, nestedCommunity, CommunityService.COMMUNITY, null, false, null, new CommunityResponseListener() { public void getResponse(CommunityResponse resp) { if (logger.isDebugEnabled()) { logger.debug("joinParentCommunity:" + " community=" + communityName + " nestedCommunity=" + nestedCommunity + " result=" + resp.getStatusAsString()); } } }); } }
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/261561ad4314c53e2e109152210fa12c4652bb47/CommunityPlugin.java/buggy/community/src/org/cougaar/community/CommunityPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1233, 3054, 12136, 318, 1961, 12, 2532, 982, 12136, 318, 1961, 16, 4766, 4202, 727, 514, 4764, 12136, 13352, 13, 288, 565, 364, 261, 3198, 518, 273, 982, 12136, 318, 1961, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1377, 727, 514, 19833, 461, 273, 261, 780, 13, 305, 18, 4285, 5621, 1377, 309, 261, 4901, 18, 291, 6109, 1526, 10756, 288, 3639, 1194, 18, 8992, 2932, 5701, 12136, 13352, 2773, 397, 8227, 315, 19833, 1546, 397, 4764, 12136, 13352, 397, 8227, 315, 19833, 1546, 397, 4040, 548, 1769, 1377, 289, 1377, 19833, 1179, 18, 5701, 12136, 13352, 12, 20859, 461, 16, 19694, 4764, 12136, 13352, 16, 19694, 16854, 13352, 1179, 18, 4208, 49, 2124, 4107, 16, 19694, 446, 16, 19694, 629, 16, 19694, 446, 16, 19694, 394, 16854, 13352, 1064, 2223, 1435, 288, 3639, 1071, 918, 6476, 12, 12136, 13352, 1064, 1718, 13, 288, 1850, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 2932, 5701, 3054, 12136, 13352, 2773, 397, 7682, 315, 19833, 1546, 397, 19833, 461, 397, 7682, 315, 4764, 12136, 13352, 1546, 397, 4764, 12136, 13352, 397, 7682, 315, 563, 1546, 397, 1718, 18, 588, 1482, 8092, 10663, 1850, 289, 3639, 289, 1377, 15549, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1233, 3054, 12136, 318, 1961, 12, 2532, 982, 12136, 318, 1961, 16, 4766, 4202, 727, 514, 4764, 12136, 13352, 13, 288, 565, 364, 261, 3198, 518, 273, 982, 12136, 318, 1961, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1377, 727, 514, 19833, 461, 273, 261, 780, 13, 305, 18, 4285, 5621, 1377, 309, 261, 4901, 18, 291, 6109, 1526, 10756, 288, 3639, 1194, 18, 8992, 2932, 5701, 12136, 13352, 2773, 397, 8227, 315, 19833, 1546, 397, 4764, 12136, 13352, 397, 8227, 315, 19833, 1546, 397, 4040, 548, 1769, 1377, 289, 1377, 19833, 1179, 18, 5701, 12136, 13352, 12, 20859, 461, 16, 19694, 4764, 12136, 13352, 16, 19694, 16854, 13352, 1179, 18, 4208, 49, 2 ]
return SEPARATOR + "Scheduled for: " + DateFormat.getDateInstance(DateFormat.MEDIUM).format(date) + ", " + DateFormat.getTimeInstance(DateFormat.SHORT).format(date);
return SEPARATOR + "Scheduled for: " + DateFormat.getDateInstance(DateFormat.MEDIUM).format(date) + ", " + DateFormat.getTimeInstance(DateFormat.SHORT).format(date);
private String formatScheduledFor(ITaskListElement element) { if (element instanceof ITask) { Date date = ((ITask)element).getScheduledForDate(); if (date != null) { return SEPARATOR + "Scheduled for: " + DateFormat.getDateInstance(DateFormat.MEDIUM).format(date) + ", " + DateFormat.getTimeInstance(DateFormat.SHORT).format(date); } } return ""; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/2956a98429de52c00437c2c1ab4abd9297030ce2/TaskListToolTipHandler.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListToolTipHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 740, 10660, 1290, 12, 1285, 835, 682, 1046, 930, 13, 288, 202, 202, 430, 261, 2956, 1276, 467, 2174, 13, 288, 1082, 202, 1626, 1509, 273, 14015, 1285, 835, 13, 2956, 2934, 588, 10660, 1290, 1626, 5621, 1082, 202, 430, 261, 712, 480, 446, 13, 288, 9506, 202, 2463, 17620, 397, 315, 10660, 364, 30, 315, 397, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 15971, 2799, 2934, 2139, 12, 712, 13, 397, 3104, 315, 397, 18371, 18, 588, 950, 1442, 12, 11878, 18, 15993, 2934, 2139, 12, 712, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 1408, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 740, 10660, 1290, 12, 1285, 835, 682, 1046, 930, 13, 288, 202, 202, 430, 261, 2956, 1276, 467, 2174, 13, 288, 1082, 202, 1626, 1509, 273, 14015, 1285, 835, 13, 2956, 2934, 588, 10660, 1290, 1626, 5621, 1082, 202, 430, 261, 712, 480, 446, 13, 288, 9506, 202, 2463, 17620, 397, 315, 10660, 364, 30, 315, 397, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 15971, 2799, 2934, 2139, 12, 712, 13, 397, 3104, 315, 397, 18371, 18, 588, 950, 1442, 12, 11878, 18, 15993, 2934, 2139, 12, 712, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 1408, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
final ClassData data = theClassData.get(aKey); if ( data != null )
ClassData data = theClassData.get(aKey); if ( data == null )
public WeightedList<SkillChoice> getSkillWeights(final String aKey) { final ClassData data = theClassData.get(aKey); if ( data != null ) { return data.getSkillWeights(); } return null; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/702b037e2f689561675929d6350ee23555326271/Configuration.java/clean/code/src/java/pcgen/core/npcgen/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15437, 18073, 32, 9030, 10538, 34, 1322, 16418, 16595, 12, 6385, 514, 279, 653, 13, 202, 95, 202, 202, 6385, 1659, 751, 501, 273, 326, 797, 751, 18, 588, 12, 69, 653, 1769, 202, 202, 430, 261, 501, 480, 446, 262, 202, 202, 95, 1082, 202, 2463, 501, 18, 588, 9030, 16595, 5621, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15437, 18073, 32, 9030, 10538, 34, 1322, 16418, 16595, 12, 6385, 514, 279, 653, 13, 202, 95, 202, 202, 6385, 1659, 751, 501, 273, 326, 797, 751, 18, 588, 12, 69, 653, 1769, 202, 202, 430, 261, 501, 480, 446, 262, 202, 202, 95, 1082, 202, 2463, 501, 18, 588, 9030, 16595, 5621, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case ts.LC:
case TokenStream.LC:
private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case ts.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case ts.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case ts.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case ts.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case ts.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case ts.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case ts.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case ts.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case ts.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case ts.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case ts.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case ts.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case ts.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case ts.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case ts.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case ts.ERROR: // Fall thru, to have a node for error recovery to work on case ts.EOL: case ts.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/8024efa9963a32d478db0d09899ffa61e921aa3e/Parser.java/buggy/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3742, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5501, 1769, 5411, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 5411, 1033, 6941, 273, 2269, 12, 3428, 16, 1084, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5842, 1769, 5411, 1033, 309, 5510, 273, 3021, 12, 3428, 16, 1084, 1769, 5411, 1033, 309, 8381, 273, 446, 31, 5411, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 2247, 1090, 3719, 288, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 11529, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2247, 1090, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 7734, 1084, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3742, 18, 5501, 30, 288, 5411, 2 ]
/* WOProjectFileUpdater.addFrameworkToPBFile( currentPackageFragmentRoot .getRawClasspathEntry() .getPath(), WOProjectFileUpdater .projectFileFromParentResource( projectToExamine), null); */
public final void elementChanged(ElementChangedEvent event) { /*if (ElementChangedEvent.POST_CHANGE != event.getType()) return;*/ if (event.getDelta().getElement().getElementType() != IJavaElement.JAVA_MODEL) return; IJavaElementDelta elementDeltaToExamine = event.getDelta(); ArrayList foundChangedElements = new ArrayList(); HashMap addedFrameworksProjectDict = new HashMap(); HashMap removedFrameworksProjectDict = new HashMap(); boolean javaProjectChanges = false; // java model has changed - get affected webobjects projects for (int i = 0; i < elementDeltaToExamine.getChangedChildren().length; i++) { // examine changed children if they are webobjects projects if (elementDeltaToExamine .getChangedChildren()[i] .getElement() .getElementType() == IJavaElement.JAVA_PROJECT) { IProject projectToExamine = ((IJavaProject) elementDeltaToExamine .getChangedChildren()[i] .getElement()) .getProject(); if (!projectToExamine.exists() || !projectToExamine.isAccessible()) { // project deleted no further investigatin needed continue; } if (!searchDeltasForElementType(elementDeltaToExamine .getChangedChildren()[i] .getChangedChildren(), IJavaElement.PACKAGE_FRAGMENT_ROOT, foundChangedElements)) continue; javaProjectChanges = true; IWOLipsProject woLipsProject = null; try { woLipsProject = WOLipsCore.createProject(projectToExamine); if (woLipsProject.getNaturesAccessor().hasWOLipsNature()) { UpdateOtherClasspathIncludeFiles updateOtherClasspathIncludeFiles = new UpdateOtherClasspathIncludeFiles(); updateOtherClasspathIncludeFiles.setIProject( projectToExamine); updateOtherClasspathIncludeFiles.execute(); UpdateFrameworkIncludeFiles updateFrameworkIncludeFiles = new UpdateFrameworkIncludeFiles(); updateFrameworkIncludeFiles.setIProject( projectToExamine); updateFrameworkIncludeFiles.execute(); if (!Preferences.getPREF_PBWO_PROJECT_UPDATE()) { addedFrameworksProjectDict.put( projectToExamine, new ArrayList()); removedFrameworksProjectDict.put( projectToExamine, new ArrayList()); // webobjects project changed ArrayList foundElements = new ArrayList(); // search deltas for classpath changes searchDeltas( elementDeltaToExamine .getChangedChildren()[i] .getChangedChildren(), IJavaElementDelta.F_ADDED_TO_CLASSPATH, foundElements); IPackageFragmentRoot currentPackageFragmentRoot; for (int j = 0; j < foundElements.size(); j++) { currentPackageFragmentRoot = (IPackageFragmentRoot) foundElements.get(j); ArrayList addedFrameworks = (ArrayList) addedFrameworksProjectDict.get( projectToExamine); addedFrameworks.add( currentPackageFragmentRoot .getRawClasspathEntry() .getPath()); /* WOProjectFileUpdater.addFrameworkToPBFile( currentPackageFragmentRoot .getRawClasspathEntry() .getPath(), WOProjectFileUpdater .projectFileFromParentResource( projectToExamine), null); */ } foundElements = new ArrayList(); // search deltas for classpath changes searchDeltas( elementDeltaToExamine .getChangedChildren()[i] .getChangedChildren(), IJavaElementDelta.F_REMOVED_FROM_CLASSPATH, foundElements); for (int j = 0; j < foundElements.size(); j++) { currentPackageFragmentRoot = (IPackageFragmentRoot) foundElements.get(j); ArrayList removedFrameworks = ( ArrayList) removedFrameworksProjectDict .get( projectToExamine); removedFrameworks.add( new Path( currentPackageFragmentRoot .getElementName())); /* WOProjectFileUpdater .removeFrameworkFromPBFile( new Path( currentPackageFragmentRoot .getElementName()), WOProjectFileUpdater .projectFileFromParentResource( projectToExamine), null); */ } } } } catch (CoreException e) { WOLipsLog.log(e); } } } if (javaProjectChanges) // update project files updateProjects( addedFrameworksProjectDict, removedFrameworksProjectDict); }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/989befc9c5b8e0f9919e7e880f899e4409467d38/JavaElementChangeListener.java/buggy/projects/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/listener/JavaElementChangeListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 930, 5033, 12, 1046, 27553, 871, 13, 288, 202, 202, 20308, 430, 261, 1046, 27553, 18, 3798, 67, 14473, 480, 871, 18, 588, 559, 10756, 1082, 202, 2463, 31, 5549, 202, 202, 430, 261, 2575, 18, 588, 9242, 7675, 21336, 7675, 588, 17481, 1435, 1082, 202, 5, 33, 467, 5852, 1046, 18, 27264, 67, 17391, 13, 1082, 202, 2463, 31, 202, 202, 45, 5852, 1046, 9242, 930, 9242, 774, 424, 301, 558, 273, 871, 18, 588, 9242, 5621, 202, 202, 19558, 1392, 5033, 3471, 273, 394, 2407, 5621, 202, 202, 8658, 3096, 13701, 87, 4109, 5014, 273, 394, 4317, 5621, 202, 202, 8658, 3723, 13701, 87, 4109, 5014, 273, 394, 4317, 5621, 202, 202, 6494, 2252, 4109, 7173, 273, 629, 31, 202, 202, 759, 2252, 938, 711, 3550, 300, 336, 9844, 732, 1075, 489, 87, 10137, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 1082, 202, 77, 411, 930, 9242, 774, 424, 301, 558, 18, 588, 5033, 4212, 7675, 2469, 31, 1082, 202, 77, 27245, 288, 1082, 202, 759, 19707, 558, 3550, 2325, 309, 2898, 854, 732, 1075, 489, 87, 10137, 1082, 202, 430, 261, 2956, 9242, 774, 424, 301, 558, 9506, 202, 18, 588, 5033, 4212, 1435, 63, 77, 65, 9506, 202, 18, 21336, 1435, 9506, 202, 18, 588, 17481, 1435, 9506, 202, 631, 467, 5852, 1046, 18, 27264, 67, 17147, 13, 288, 9506, 202, 45, 4109, 1984, 774, 424, 301, 558, 273, 6862, 202, 12443, 45, 5852, 4109, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 930, 5033, 12, 1046, 27553, 871, 13, 288, 202, 202, 20308, 430, 261, 1046, 27553, 18, 3798, 67, 14473, 480, 871, 18, 588, 559, 10756, 1082, 202, 2463, 31, 5549, 202, 202, 430, 261, 2575, 18, 588, 9242, 7675, 21336, 7675, 588, 17481, 1435, 1082, 202, 5, 33, 467, 5852, 1046, 18, 27264, 67, 17391, 13, 1082, 202, 2463, 31, 202, 202, 45, 5852, 1046, 9242, 930, 9242, 774, 424, 301, 558, 273, 871, 18, 588, 9242, 5621, 202, 202, 19558, 1392, 5033, 3471, 273, 394, 2407, 5621, 202, 202, 8658, 3096, 13701, 87, 4109, 5014, 273, 394, 4317, 5621, 202, 202, 8658, 3723, 13701, 87, 4109, 5014, 273, 394, 4317, 5621, 202, 202, 2 ]
}
}
public ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); ServletContext servletContext = session.getServletContext(); Profile profile = (Profile) session.getAttribute(Constants.PROFILE); String queryName = request.getParameter("name"); SavedQuery sq; if (request.getParameter("type").equals("history")) { sq = (SavedQuery) profile.getHistory().get(queryName); } else if (request.getParameter("type").equals("bag")) { return new ForwardParameters(mapping.findForward("bagDetails")) .addParameter("bagName", queryName).forward(); } else { sq = (SavedQuery) profile.getSavedQueries().get(queryName); } SessionMethods.loadQuery(sq.getPathQuery(), session, response); if (sq.getPathQuery() instanceof TemplateQuery) { return new ForwardParameters(mapping.findForward("template")) .addParameter("name", ((TemplateQuery) session.getAttribute(Constants.QUERY)) .getName()) .forward(); } return mapping.findForward("query"); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/761bf6b03d1f63f220dba5aac3b24c6b3472c49d/ModifyQueryChangeAction.java/buggy/intermine/web/main/src/org/intermine/web/history/ModifyQueryChangeAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1262, 12, 1803, 3233, 2874, 16, 17311, 4382, 1204, 646, 16, 17311, 9984, 590, 16, 17311, 12446, 766, 13, 3639, 1216, 1185, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 22717, 20474, 273, 1339, 18, 588, 4745, 1042, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 514, 843, 461, 273, 590, 18, 588, 1662, 2932, 529, 8863, 3639, 348, 8158, 1138, 4744, 31, 7734, 309, 261, 2293, 18, 588, 1662, 2932, 723, 20387, 14963, 2932, 8189, 6, 3719, 288, 5411, 4744, 273, 261, 16776, 1138, 13, 3042, 18, 588, 5623, 7675, 588, 12, 2271, 461, 1769, 3639, 289, 469, 309, 261, 2293, 18, 588, 1662, 2932, 723, 20387, 14963, 2932, 22551, 6, 3719, 288, 5411, 327, 394, 17206, 2402, 12, 6770, 18, 4720, 8514, 2932, 22551, 3790, 6, 3719, 7734, 263, 1289, 1662, 2932, 22551, 461, 3113, 843, 461, 2934, 11565, 5621, 3639, 289, 469, 288, 5411, 4744, 273, 261, 16776, 1138, 13, 3042, 18, 588, 16776, 9592, 7675, 588, 12, 2271, 461, 1769, 3639, 289, 9079, 3877, 4712, 18, 945, 1138, 12, 11410, 18, 588, 743, 1138, 9334, 1339, 16, 766, 1769, 7734, 309, 261, 11410, 18, 588, 743, 1138, 1435, 1276, 5035, 1138, 13, 288, 5411, 327, 394, 17206, 2402, 12, 6770, 18, 4720, 8514, 2932, 3202, 6, 3719, 13491, 263, 1289, 1662, 2932, 529, 3113, 4766, 1377, 14015, 2283, 1138, 13, 1339, 18, 588, 1499, 12, 2918, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4382, 8514, 1262, 12, 1803, 3233, 2874, 16, 17311, 4382, 1204, 646, 16, 17311, 9984, 590, 16, 17311, 12446, 766, 13, 3639, 1216, 1185, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 22717, 20474, 273, 1339, 18, 588, 4745, 1042, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 514, 843, 461, 273, 590, 18, 588, 1662, 2932, 529, 8863, 3639, 348, 8158, 1138, 4744, 31, 7734, 309, 261, 2293, 18, 588, 1662, 2932, 723, 20387, 14963, 2932, 8189, 6, 3719, 288, 5411, 4744, 273, 261, 16776, 1138, 13, 3042, 18, 588, 5623, 7675, 588, 12, 2271, 461, 1769, 3639, 289, 469, 309, 261, 2293, 2 ]
recordTypeCode r = new recordTypeCode(TCKind.tk_except);
RecordTypeCode r = new RecordTypeCode(TCKind.tk_except);
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept = false; ClientRequestInterceptorOperations c_interceptor = null; gnuClientRequestInfo c_info = null; try { if (poa.m_orb.iServer != null || poa.m_orb.iClient != null) { setORB(poa.m_orb); // These two are only needed with interceptors. m_rqh = new RequestHeader(); m_rqh.operation = m_operation; m_rph = new ReplyHeader(); m_rqh.object_key = object.Id; m_rph.request_id = m_rqh.request_id; } if (poa.m_orb.iClient != null) { c_interceptor = poa.m_orb.iClient; c_info = new gnuClientRequestInfo(this); c_intercept = true; c_interceptor.send_request(c_info); m_target = object; } if (poa.m_orb.iServer != null) { s_interceptor = poa.m_orb.iServer; s_info = new gnuServerRequestInfo(object, m_rqh, m_rph); s_info.m_request = this; s_intercept = true; s_interceptor.receive_request_service_contexts(s_info); } if (handler == null) { handler = object.getHandler(operation(), cookie, false); } cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_parameters(header, request_part); if (m_parameter_buffer != null) { throw new BAD_INV_ORDER("Please either add parameters or " + "write them into stream, but not both " + "at once." ); } } if (m_parameter_buffer != null) { write_parameter_buffer(header, request_part); } Servant servant; if (handler instanceof Servant) { servant = (Servant) handler; } else { throw new BAD_OPERATION("Unexpected handler type " + handler); } org.omg.CORBA.portable.InputStream input = request_part.create_input_stream(); // Ensure the servant (handler) has a delegate set. servantDelegate sd = null; Delegate d = null; try { d = servant._get_delegate(); } catch (Exception ex) { // In some cases exception is thrown if the delegate is not set. } if (d instanceof servantDelegate) { // If the delegate is already set, try to reuse the existing // instance. sd = (servantDelegate) d; if (sd.object != object) { sd = new servantDelegate(servant, poa, Id); } } else { sd = new servantDelegate(servant, poa, Id); } servant._set_delegate(sd); try { ORB o = orb(); if (o instanceof ORB_1_4) { ((ORB_1_4) o).currents.put(Thread.currentThread(), this); } try { if (s_intercept) { s_interceptor.receive_request(s_info); } handler._invoke(m_operation, input, this); // Handler is casted into i_handler. if ((s_intercept || c_intercept) && isExceptionReply()) { s_info.m_reply_header.reply_status = ReplyHeader.USER_EXCEPTION; m_rph.reply_status = ReplyHeader.USER_EXCEPTION; // Make Any, holding the user exception. Any a = new gnuAny(); OutputStream buf = getBuffer(); InputStream in = buf.create_input_stream(); String uex_idl = "unknown"; try { in.mark(Integer.MAX_VALUE); uex_idl = in.read_string(); m_exception_id = uex_idl; in.reset(); } catch (IOException e) { throw new Unexpected(e); } try { UserException exception = ObjectCreator.readUserException(uex_idl, in); m_environment.exception(exception); ObjectCreator.insertWithHelper(a, exception); } catch (Exception e) { // Failed due any reason, insert without // helper. a.insert_Streamable(new streamReadyHolder( buf.create_input_stream() ) ); recordTypeCode r = new recordTypeCode(TCKind.tk_except); r.setId(uex_idl); r.setName(ObjectCreator.getDefaultName(uex_idl)); } s_info.m_usr_exception = a; c_info.m_wrapped_exception = a; s_interceptor.send_exception(s_info); c_interceptor.receive_exception(c_info); } else { if (s_intercept) { s_info.m_reply_header.reply_status = ReplyHeader.NO_EXCEPTION; s_interceptor.send_reply(s_info); } if (c_intercept) { m_rph.reply_status = ReplyHeader.NO_EXCEPTION; c_interceptor.receive_reply(c_info); } } } catch (SystemException sys_ex) { if (s_intercept) { s_info.m_reply_header.reply_status = ReplyHeader.SYSTEM_EXCEPTION; s_info.m_sys_exception = sys_ex; s_interceptor.send_exception(s_info); } if (c_intercept) { m_rph.reply_status = ReplyHeader.SYSTEM_EXCEPTION; Any a = new gnuAny(); if (ObjectCreator.insertSysException(a, sys_ex)) { c_info.m_wrapped_exception = a; } c_interceptor.receive_exception(c_info); } throw sys_ex; } } finally { ORB o = orb(); if (o instanceof ORB_1_4) { ((ORB_1_4) o).currents.remove(Thread.currentThread()); } } if (poa.servant_locator != null) { poa.servant_locator.postinvoke(object.Id, poa, operation(), cookie.value, object.getServant() ); } return buffer.create_input_stream(); } catch (ForwardRequest fex) { // May be thrown by interceptor. if (s_intercept) { Forwarding: while (true) { s_info.m_reply_header.reply_status = ReplyHeader.LOCATION_FORWARD; s_info.m_forward_reference = fex.forward; try { s_interceptor.send_other(s_info); break Forwarding; } catch (ForwardRequest fex2) { s_info.m_forward_reference = fex2.forward; fex.forward = s_info.m_forward_reference; } } } if (c_intercept) { this.m_rph.reply_status = ReplyHeader.LOCATION_FORWARD; this.m_forwarding_target = fex.forward; try { c_interceptor.receive_other(c_info); } catch (ForwardRequest fex2) { fex.forward = fex2.forward; } } throw new gnuForwardRequest(fex.forward); } catch (gnuForwardRequest fex) { // May be thrown during activation. // May be thrown during activation. if (s_intercept) { Forwarding: while (true) { s_info.m_reply_header.reply_status = ReplyHeader.LOCATION_FORWARD; s_info.m_forward_reference = fex.forward_reference; try { s_interceptor.send_other(s_info); break Forwarding; } catch (ForwardRequest fex2) { s_info.m_forward_reference = fex2.forward; fex.forward_reference = (ObjectImpl) fex2.forward; } } } if (c_intercept) { this.m_rph.reply_status = ReplyHeader.LOCATION_FORWARD; this.m_forwarding_target = fex.forward_reference; try { c_interceptor.receive_other(c_info); } catch (ForwardRequest fex2) { fex.forward_reference = (ObjectImpl) fex2.forward; } } throw fex; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/LocalRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/LocalRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 4348, 331, 67, 14407, 12, 10969, 1503, 1838, 13, 225, 288, 565, 368, 3566, 590, 1297, 506, 10883, 329, 3937, 635, 1438, 471, 590, 565, 368, 18496, 18, 565, 1250, 272, 67, 27481, 273, 629, 31, 565, 3224, 691, 10281, 9343, 272, 67, 2761, 6757, 273, 446, 31, 565, 314, 13053, 2081, 23113, 272, 67, 1376, 273, 446, 31, 565, 1250, 276, 67, 27481, 273, 629, 31, 565, 2445, 691, 10281, 9343, 276, 67, 2761, 6757, 273, 446, 31, 565, 314, 13053, 1227, 23113, 276, 67, 1376, 273, 446, 31, 565, 775, 1377, 288, 3639, 309, 261, 1631, 69, 18, 81, 67, 16640, 18, 77, 2081, 480, 446, 747, 8275, 69, 18, 81, 67, 16640, 18, 77, 1227, 480, 446, 13, 1850, 288, 5411, 444, 916, 38, 12, 1631, 69, 18, 81, 67, 16640, 1769, 5411, 368, 8646, 2795, 854, 1338, 3577, 598, 18496, 18, 5411, 312, 67, 86, 85, 76, 273, 394, 1567, 1864, 5621, 5411, 312, 67, 86, 85, 76, 18, 7624, 273, 312, 67, 7624, 31, 5411, 312, 67, 86, 844, 273, 394, 16202, 1864, 5621, 5411, 312, 67, 86, 85, 76, 18, 1612, 67, 856, 273, 733, 18, 548, 31, 5411, 312, 67, 86, 844, 18, 2293, 67, 350, 273, 312, 67, 86, 85, 76, 18, 2293, 67, 350, 31, 1850, 289, 3639, 309, 261, 1631, 69, 18, 81, 67, 16640, 18, 77, 1227, 480, 446, 13, 1850, 288, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 4348, 331, 67, 14407, 12, 10969, 1503, 1838, 13, 225, 288, 565, 368, 3566, 590, 1297, 506, 10883, 329, 3937, 635, 1438, 471, 590, 565, 368, 18496, 18, 565, 1250, 272, 67, 27481, 273, 629, 31, 565, 3224, 691, 10281, 9343, 272, 67, 2761, 6757, 273, 446, 31, 565, 314, 13053, 2081, 23113, 272, 67, 1376, 273, 446, 31, 565, 1250, 276, 67, 27481, 273, 629, 31, 565, 2445, 691, 10281, 9343, 276, 67, 2761, 6757, 273, 446, 31, 565, 314, 13053, 1227, 23113, 276, 67, 1376, 273, 446, 31, 565, 775, 1377, 288, 3639, 309, 261, 1631, 69, 18, 81, 67, 16640, 18, 77, 2081, 2 ]
stringBuffer.append(TEXT_344);
stringBuffer.append(TEXT_311);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenChildLabelNode genChildNode = (GenChildLabelNode)genElement;GenNode genHost = genChildNode;GenNode genNode = genChildNode; /*var used by componentEditPolicy.javajetinc*/GenClass underlyingMetaClass = genHost.getDomainMetaClass();GenDiagram genDiagram = genChildNode.getDiagram();final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];LabelModelFacet labelModelFacet = genChildNode.getLabelModelFacet();final boolean isReadOnly = genChildNode.isLabelReadOnly(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); stringBuffer.append(TEXT_5); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_7); } if (needsCastToEObject) { stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_9); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_10); } stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_12); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_13); if (needsCastToResultType) { stringBuffer.append(TEXT_14); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_16); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_17); } stringBuffer.append(TEXT_18); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_19); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_20); importManager.emitPackageStatement(stringBuffer);importManager.registerInnerClass("TreeEditPartAdapter");importManager.addImport("org.eclipse.gef.EditPolicy");importManager.addImport("org.eclipse.gef.Request");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.addImport("org.eclipse.gmf.runtime.notation.NotationPackage");importManager.addImport("java.util.List");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_21); stringBuffer.append(genChildNode.getEditPartClassName()); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_24); {GenCommonBase genCommonBase = genChildNode; stringBuffer.append(TEXT_25); stringBuffer.append(TEXT_26); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_27); } stringBuffer.append(TEXT_28); stringBuffer.append(TEXT_29); if (!isReadOnly) { stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_31); } stringBuffer.append(TEXT_32); stringBuffer.append(genChildNode.getEditPartClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_35); stringBuffer.append(TEXT_36); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_41); String resolvedSemanticElement = "(" + importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()) + ") getDiagramNode().getElement()"; final String primaryView = "getDiagramNode()"; if (!isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_42); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_45); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_46); stringBuffer.append(TEXT_47); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_51); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_52); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_58); stringBuffer.append(primaryView); stringBuffer.append(TEXT_59); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_66); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_70); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_73); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_78); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_81); } else { stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_85); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_89); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_92); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_95); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_96); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_97); } stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_100); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_102); stringBuffer.append(i); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_104); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_105); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_106); } stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_108); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_111); } else { stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_113); } } stringBuffer.append(TEXT_114); } stringBuffer.append(TEXT_115); } stringBuffer.append(TEXT_116); stringBuffer.append(TEXT_117); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_128); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_129); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_130); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_131); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_132); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_134); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_135); } else { stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_138); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_140); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_143); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_144); } else { stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_147); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_149); } stringBuffer.append(TEXT_150); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_153); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_154); } else { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_156); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_157); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_159); }} stringBuffer.append(TEXT_160); } /*restrict local vars used in component edit policy*/ stringBuffer.append(TEXT_161); if (!isReadOnly) { stringBuffer.append(TEXT_162); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_169); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_171); } stringBuffer.append(TEXT_172); stringBuffer.append(TEXT_173); /*genFeature.getObjectType() throws NPE on primitive types. This is a workaround. */HashMap primitiveTypeToWrapperClassName = new HashMap();primitiveTypeToWrapperClassName.put(Boolean.TYPE, "Boolean");primitiveTypeToWrapperClassName.put(Byte.TYPE, "Byte");primitiveTypeToWrapperClassName.put(Character.TYPE, "Character");primitiveTypeToWrapperClassName.put(Double.TYPE, "Double");primitiveTypeToWrapperClassName.put(Float.TYPE, "Float");primitiveTypeToWrapperClassName.put(Integer.TYPE, "Integer");primitiveTypeToWrapperClassName.put(Long.TYPE, "Long");primitiveTypeToWrapperClassName.put(Short.TYPE, "Short");String viewPattern = null;String editPattern = null;if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; viewPattern = featureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { viewPattern = "{0}"; } editPattern = featureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { editPattern = "{0}"; }} else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; viewPattern = compositeFeatureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } viewPattern = patternBuffer.toString().trim(); } editPattern = compositeFeatureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } editPattern = patternBuffer.toString().trim(); }} stringBuffer.append(TEXT_174); stringBuffer.append(viewPattern); stringBuffer.append(TEXT_175); stringBuffer.append(editPattern); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_177); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_179); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_181); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; GenFeature feature = featureLabelModelFacet.getMetaFeature(); if (!feature.isPrimitiveType()) { stringBuffer.append(TEXT_182); myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); stringBuffer.append(TEXT_183); } stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_185); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_186); stringBuffer.append(primitiveTypeToWrapperClassName.get(feature.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_187); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_188); } stringBuffer.append(TEXT_189); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_191); for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_192); stringBuffer.append(primitiveTypeToWrapperClassName.get(next.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_193); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", next, underlyingMetaClass, false); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_194); } if (it.hasNext()) { stringBuffer.append(TEXT_195); } } stringBuffer.append(TEXT_196); } else { stringBuffer.append(TEXT_197); } stringBuffer.append(TEXT_198); stringBuffer.append(TEXT_199); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_200); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_203); stringBuffer.append(primaryView); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_207); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_212); } stringBuffer.append(TEXT_213); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_215); } stringBuffer.append(TEXT_216); stringBuffer.append(TEXT_217); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_220); stringBuffer.append(primaryView); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image")); stringBuffer.append(TEXT_227); if (genChildNode.isLabelElementIcon()) { stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.resource.ImageDescriptor")); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_230); } stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart")); stringBuffer.append(TEXT_232); /*@ include file="adapters/propertySource.javajetinc"*/ stringBuffer.append(TEXT_233); stringBuffer.append(TEXT_234); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_237); stringBuffer.append(TEXT_238); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_242); stringBuffer.append(TEXT_243); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_246); stringBuffer.append(TEXT_247); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_249); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet compositeFeatureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_251); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_252); }} stringBuffer.append(TEXT_253); stringBuffer.append(TEXT_254); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_256); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_258); stringBuffer.append(TEXT_259); stringBuffer.append(TEXT_260); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_261); final Viewmap viewmap = genChildNode.getViewmap(); stringBuffer.append(TEXT_262); final String figureQualifiedClassName;if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; figureQualifiedClassName = parentAssignedViewmap.getFigureQualifiedClassName() == null ? "org.eclipse.draw2d.IFigure" : parentAssignedViewmap.getFigureQualifiedClassName();} else if (viewmap instanceof FigureViewmap) { String figureQualifiedClassNameCandidate = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassNameCandidate == null || figureQualifiedClassNameCandidate.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.Label"; } else { figureQualifiedClassName = figureQualifiedClassNameCandidate; }} else if (viewmap instanceof SnippetViewmap) { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";} else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName();} else { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";}final String figureImportedName;if (viewmap instanceof InnerClassViewmap) { figureImportedName = figureQualifiedClassName; //do not import inner class} else { figureImportedName = importManager.getImportedName(figureQualifiedClassName);}if (viewmap instanceof ParentAssignedViewmap) { final ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_264); stringBuffer.append((parentAssignedViewmap.getSetterName() == null ? "setLabel" : parentAssignedViewmap.getSetterName())); stringBuffer.append(TEXT_265); } else { stringBuffer.append(TEXT_266); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_267); if (viewmap instanceof FigureViewmap) { stringBuffer.append(TEXT_268); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_269); } // instanceof FigureViewmap else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_270); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_271); } // instanceof SnippetViewmap; FIXME : obtain figure class name to generate getter else if (viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_272); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_273); } stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_275); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_276); if ("org.eclipse.draw2d.Label".equals(figureQualifiedClassName) || viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_277); } else { stringBuffer.append(TEXT_278); } stringBuffer.append(TEXT_279); } /*not parent-assigned*/ stringBuffer.append(TEXT_280); if (!"org.eclipse.draw2d.Label".equals(figureQualifiedClassName) && viewmap instanceof InnerClassViewmap==false) { stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_283); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_284); String labelSetterName = "setLabel"; // same assumption in NodeEditPartString labelFigureClassName = "org.eclipse.draw2d.IFigure";if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; if (parentAssignedViewmap.getSetterName() != null) { labelSetterName = parentAssignedViewmap.getSetterName(); } if (parentAssignedViewmap.getFigureQualifiedClassName() != null) { labelFigureClassName = parentAssignedViewmap.getFigureQualifiedClassName(); }} // FIXME perhaps, there's no sense to have setLabel for any other viewmap than ParentAssigned? stringBuffer.append(TEXT_285); stringBuffer.append(labelSetterName); stringBuffer.append(TEXT_286); stringBuffer.append(importManager.getImportedName(labelFigureClassName)); stringBuffer.append(TEXT_287); if ("org.eclipse.draw2d.Label".equals(labelFigureClassName)) { stringBuffer.append(TEXT_288); } else { stringBuffer.append(TEXT_289); } stringBuffer.append(TEXT_290); if (viewmap instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) viewmap).getClassBody(); stringBuffer.append(TEXT_291); stringBuffer.append(classBody); stringBuffer.append(TEXT_292); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_293); } } stringBuffer.append(TEXT_294); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart")); stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(TEXT_297); stringBuffer.append(TEXT_298); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_301); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_303); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_304); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_305); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_308); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_309); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_312); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_315); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_316); } else { stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_319); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_321); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_324); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_325); } else { stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_328); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_330); } stringBuffer.append(TEXT_331); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_334); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_335); } else { stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_338); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_340); }} stringBuffer.append(TEXT_341); } /*restrict local vars used in component edit policy*/ if (!isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_342); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_346); stringBuffer.append(TEXT_347); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_352); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_358); stringBuffer.append(primaryView); stringBuffer.append(TEXT_359); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_361); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_362); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_363); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_366); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_370); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_372); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_373); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_375); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_377); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_378); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_381); } else { stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_383); } stringBuffer.append(TEXT_384); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_385); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_392); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_395); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_396); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_397); } stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_399); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_400); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_401); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_402); stringBuffer.append(i); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_404); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_405); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_406); } stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_408); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_410); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_411); } else { stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_413); } } stringBuffer.append(TEXT_414); } stringBuffer.append(TEXT_415); } stringBuffer.append(TEXT_416); stringBuffer.append(TEXT_417); stringBuffer.append(TEXT_418); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); stringBuffer.append(TEXT_419); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_421); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); stringBuffer.append(TEXT_422); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); stringBuffer.append(TEXT_423); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_424); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_426); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem")); stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem")); stringBuffer.append(TEXT_428); stringBuffer.append(TEXT_429); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_432); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet compositeFeatureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_434); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_435); }} stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_438); importManager.emitSortedImports(); stringBuffer.append(TEXT_439); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/de70953cec74fbba0ed0cfbed37c36c0b594b3db/ChildNodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/ChildNodeEditPartGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5717, 1237, 25146, 20, 15533, 6385, 10938, 1763, 2224, 907, 3157, 25550, 273, 261, 7642, 1763, 2224, 907, 13, 4507, 1046, 31, 7642, 907, 3157, 2594, 273, 3157, 25550, 31, 7642, 907, 3157, 907, 273, 3157, 25550, 31, 202, 20308, 1401, 1399, 635, 1794, 4666, 2582, 18, 6290, 78, 278, 9523, 5549, 7642, 797, 6808, 2781, 797, 273, 3157, 2594, 18, 588, 3748, 2781, 797, 5621, 7642, 14058, 1940, 3157, 14058, 1940, 273, 3157, 25550, 18, 588, 14058, 1940, 5621, 6385, 6164, 2610, 17175, 1930, 1318, 273, 261, 5010, 2610, 17175, 13, 14015, 921, 63, 5717, 1237, 25146, 21, 15533, 2224, 1488, 11137, 1433, 1488, 11137, 273, 3157, 25550, 18, 588, 2224, 1488, 11137, 5621, 6385, 1250, 26249, 273, 3157, 25550, 18, 291, 2224, 12066, 5621, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 514, 22245, 1528, 273, 3157, 14058, 1940, 18, 588, 6946, 7642, 7675, 588, 2951, 4083, 1528, 5621, 430, 261, 29187, 1528, 480, 446, 597, 22245, 1528, 18, 5290, 7675, 2469, 1435, 405, 374, 13, 288, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 533, 1892, 18, 6923, 12, 29187, 1528, 18, 2079, 1595, 31458, 82, 3113, 1548, 82, 380, 9369, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 23, 1769, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5717, 1237, 25146, 20, 15533, 6385, 10938, 1763, 2224, 907, 3157, 25550, 273, 261, 7642, 1763, 2224, 907, 13, 4507, 1046, 31, 7642, 907, 3157, 2594, 273, 3157, 25550, 31, 7642, 907, 3157, 907, 273, 3157, 25550, 31, 202, 20308, 1401, 1399, 635, 1794, 4666, 2582, 18, 6290, 78, 278, 9523, 5549, 7642, 797, 6808, 2781, 797, 273, 3157, 2594, 18, 588, 3748, 2781, 797, 5621, 7642, 14058, 1940, 3157, 14058, 1940, 273, 3157, 25550, 18, 588, 14058, 1940, 5621, 6385, 6164, 2610, 17175, 2 ]
if (waitingForRequestIcon != null) setIcon(waitingForRequestIcon);
if (waitByNecessityIcon != null) setIcon(waitByNecessityIcon);
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, Object val, int index, boolean isSelected, boolean cellHasFocus) { if (! (val instanceof SpyEvent)) return this; SpyEvent event = (SpyEvent) val; switch (event.getType()) { case SpyEvent.REQUEST_SENT_MESSAGE_TYPE: { SpyMessageEvent rq = (SpyMessageEvent)val; UniqueID id = rq.getDestinationBodyID(); setToolTipText("Request sent to " + id); if (requestSentIcon != null) setIcon(requestSentIcon); formatItem(rq, id); } break; case SpyEvent.REQUEST_RECEIVED_MESSAGE_TYPE: { SpyMessageEvent rq = (SpyMessageEvent)val; UniqueID id = rq.getSourceBodyID(); setToolTipText("Request received from " + id); if (requestReceivedIcon != null) setIcon(requestReceivedIcon); formatItem(rq, id); } break; case SpyEvent.REPLY_SENT_MESSAGE_TYPE: { SpyMessageEvent rp = (SpyMessageEvent)val; UniqueID id = rp.getDestinationBodyID(); setToolTipText("Reply sent to " + id); if (replySentIcon != null) setIcon(replySentIcon); formatItem(rp, id); } break; case SpyEvent.REPLY_RECEIVED_MESSAGE_TYPE: { SpyMessageEvent rp = (SpyMessageEvent)val; UniqueID id = rp.getSourceBodyID(); setToolTipText("Reply received from " + id); if (replyReceivedIcon != null) setIcon(replyReceivedIcon); formatItem(rp, id); } break; case SpyEvent.OBJECT_WAIT_BY_NECESSITY_TYPE: setToolTipText(""); setText("-- ObjectWaitByNecessity"); setBackground(java.awt.Color.white); if (waitingForRequestIcon != null) setIcon(waitingForRequestIcon); break; case SpyEvent.OBJECT_WAIT_FOR_REQUEST_TYPE: setToolTipText(""); setText("-- ObjectWaitForRequest"); setBackground(java.awt.Color.white); if (waitingForRequestIcon != null) setIcon(waitingForRequestIcon); break; } return this; }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/2666230e00db643175e81dac0b52f3f8ba384784/EventListsPanel.java/clean/src/org/objectweb/proactive/ic2d/gui/EventListsPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 2219, 88, 18, 1841, 10033, 4020, 6747, 1841, 12, 28384, 18, 5328, 310, 18, 46, 682, 666, 16, 1033, 1244, 16, 509, 770, 16, 1250, 20956, 16, 1250, 2484, 5582, 9233, 13, 288, 1377, 309, 16051, 261, 1125, 1276, 29803, 1133, 3719, 327, 333, 31, 1377, 29803, 1133, 871, 273, 261, 55, 2074, 1133, 13, 1244, 31, 1377, 1620, 261, 2575, 18, 588, 559, 10756, 288, 3639, 648, 29803, 1133, 18, 5519, 67, 17418, 67, 8723, 67, 2399, 30, 1850, 288, 5411, 29803, 1079, 1133, 22227, 273, 261, 55, 2074, 1079, 1133, 13, 1125, 31, 5411, 14584, 734, 612, 273, 22227, 18, 588, 5683, 2250, 734, 5621, 5411, 444, 29250, 1528, 2932, 691, 3271, 358, 315, 397, 612, 1769, 5411, 309, 261, 2293, 7828, 5554, 480, 446, 13, 21481, 12, 2293, 7828, 5554, 1769, 5411, 740, 1180, 12, 86, 85, 16, 612, 1769, 1850, 289, 1850, 898, 31, 3639, 648, 29803, 1133, 18, 5519, 67, 27086, 20764, 67, 8723, 67, 2399, 30, 1850, 288, 5411, 29803, 1079, 1133, 22227, 273, 261, 55, 2074, 1079, 1133, 13, 1125, 31, 5411, 14584, 734, 612, 273, 22227, 18, 588, 1830, 2250, 734, 5621, 5411, 444, 29250, 1528, 2932, 691, 5079, 628, 315, 397, 612, 1769, 5411, 309, 261, 2293, 8872, 5554, 480, 446, 13, 21481, 12, 2293, 8872, 5554, 1769, 5411, 740, 1180, 12, 86, 85, 16, 612, 1769, 1850, 289, 1850, 898, 31, 18701, 648, 29803, 1133, 18, 862, 23893, 67, 17418, 67, 8723, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 2219, 88, 18, 1841, 10033, 4020, 6747, 1841, 12, 28384, 18, 5328, 310, 18, 46, 682, 666, 16, 1033, 1244, 16, 509, 770, 16, 1250, 20956, 16, 1250, 2484, 5582, 9233, 13, 288, 1377, 309, 16051, 261, 1125, 1276, 29803, 1133, 3719, 327, 333, 31, 1377, 29803, 1133, 871, 273, 261, 55, 2074, 1133, 13, 1244, 31, 1377, 1620, 261, 2575, 18, 588, 559, 10756, 288, 3639, 648, 29803, 1133, 18, 5519, 67, 17418, 67, 8723, 67, 2399, 30, 1850, 288, 5411, 29803, 1079, 1133, 22227, 273, 261, 55, 2074, 1079, 1133, 13, 1125, 31, 5411, 14584, 734, 612, 273, 22227, 18, 588, 5683, 2250, 734, 5621, 5411, 444, 29250, 1528, 2932, 691, 3271, 358, 2 ]
ResultSet result = ExecSQL("select oid from pg_type where typname='" + typeName + "'");
String sql; if (haveMinimumServerVersion("7.3")) { sql = "SELECT oid FROM pg_catalog.pg_type WHERE typname='" + typeName + "'"; } else { sql = "SELECT oid FROM pg_type WHERE typname='" + typeName + "'"; } ResultSet result = ExecSQL(sql);
public int getPGType(String typeName) throws SQLException { int oid = -1; if (typeName != null) { Integer oidValue = (Integer) typeOidCache.get(typeName); if (oidValue != null) { oid = oidValue.intValue(); } else { // it's not in the cache, so perform a query, and add the result to the cache ResultSet result = ExecSQL("select oid from pg_type where typname='" + typeName + "'"); if (((AbstractJdbc1ResultSet)result).getColumnCount() != 1 || ((AbstractJdbc1ResultSet)result).getTupleCount() != 1) throw new PSQLException("postgresql.unexpected"); result.next(); oid = Integer.parseInt(result.getString(1)); typeOidCache.put(typeName, new Integer(oid)); result.close(); } } return oid; }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1Connection.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1689, 43, 559, 12, 780, 8173, 13, 1216, 6483, 202, 95, 202, 202, 474, 7764, 273, 300, 21, 31, 202, 202, 430, 261, 723, 461, 480, 446, 13, 202, 202, 95, 1082, 202, 4522, 7764, 620, 273, 261, 4522, 13, 618, 19105, 1649, 18, 588, 12, 723, 461, 1769, 1082, 202, 430, 261, 839, 620, 480, 446, 13, 1082, 202, 95, 9506, 202, 839, 273, 7764, 620, 18, 474, 620, 5621, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 759, 518, 1807, 486, 316, 326, 1247, 16, 1427, 3073, 279, 843, 16, 471, 527, 326, 563, 358, 326, 1247, 9506, 202, 13198, 563, 273, 3889, 3997, 2932, 4025, 7764, 628, 7184, 67, 723, 1625, 3815, 529, 13396, 6862, 6862, 1082, 282, 397, 8173, 397, 5862, 1769, 9506, 202, 430, 261, 12443, 7469, 25316, 21, 13198, 13, 2088, 2934, 588, 1494, 1380, 1435, 480, 404, 747, 14015, 7469, 25316, 21, 13198, 13, 2088, 2934, 588, 9038, 1380, 1435, 480, 404, 13, 6862, 202, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 21248, 8863, 9506, 202, 2088, 18, 4285, 5621, 9506, 202, 839, 273, 2144, 18, 2670, 1702, 12, 2088, 18, 588, 780, 12, 21, 10019, 9506, 202, 723, 19105, 1649, 18, 458, 12, 723, 461, 16, 394, 2144, 12, 839, 10019, 9506, 202, 2088, 18, 4412, 5621, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 7764, 31, 202, 97, 2, 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, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1689, 43, 559, 12, 780, 8173, 13, 1216, 6483, 202, 95, 202, 202, 474, 7764, 273, 300, 21, 31, 202, 202, 430, 261, 723, 461, 480, 446, 13, 202, 202, 95, 1082, 202, 4522, 7764, 620, 273, 261, 4522, 13, 618, 19105, 1649, 18, 588, 12, 723, 461, 1769, 1082, 202, 430, 261, 839, 620, 480, 446, 13, 1082, 202, 95, 9506, 202, 839, 273, 7764, 620, 18, 474, 620, 5621, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 759, 518, 1807, 486, 316, 326, 1247, 16, 1427, 3073, 279, 843, 16, 471, 527, 326, 563, 358, 326, 1247, 9506, 202, 13198, 563, 273, 3889, 3997, 2932, 4025, 7764, 628, 7184, 67, 2 ]
setLine(line); setPos(pos);
public TComma(int line, int pos) { super.setText(","); setLine(line); setPos(pos); }
50059 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50059/a343b73e05abe516d42c4d6672f63a8325be4a98/TComma.java/buggy/sub/source/net/sourceforge/texlipse/bibparser/node/TComma.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 15594, 12, 474, 980, 16, 509, 949, 13, 565, 288, 3639, 2240, 18, 542, 1528, 2932, 16, 8863, 3639, 26482, 12, 1369, 1769, 3639, 444, 1616, 12, 917, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 15594, 12, 474, 980, 16, 509, 949, 13, 565, 288, 3639, 2240, 18, 542, 1528, 2932, 16, 8863, 3639, 26482, 12, 1369, 1769, 3639, 444, 1616, 12, 917, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
java.sql.ResultSet columnNameRS = connection.ExecSQL("select a.attname FROM pg_attribute a WHERE (a.attnum = " + columnOrdinals[i] + ") AND (a.attrelid = " + r.getInt(9) + ")"); columnNameRS.next(); tuple[8] = columnNameRS.getBytes(1);
if (columnNameRS.next()) { tuple[8] = columnNameRS.getBytes(1); } else { tuple[8] = "".getBytes(); }
public java.sql.ResultSet getIndexInfo(String catalog, String schema, String tableName, boolean unique, boolean approximate) throws SQLException { Field f[] = new Field[13]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "NON_UNIQUE", iBoolOid, 1); f[4] = new Field(connection, "INDEX_QUALIFIER", iVarcharOid, 32); f[5] = new Field(connection, "INDEX_NAME", iVarcharOid, 32); f[6] = new Field(connection, "TYPE", iInt2Oid, 2); f[7] = new Field(connection, "ORDINAL_POSITION", iInt2Oid, 2); f[8] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[9] = new Field(connection, "ASC_OR_DESC", iVarcharOid, 32); f[10] = new Field(connection, "CARDINALITY", iInt4Oid, 4); f[11] = new Field(connection, "PAGES", iInt4Oid, 4); f[12] = new Field(connection, "FILTER_CONDITION", iVarcharOid, 32); r = connection.ExecSQL("select " + "c.relname, " + "x.indisunique, " + "i.relname, " + "x.indisclustered, " + "a.amname, " + "x.indkey, " + "c.reltuples, " + "c.relpages, " + "x.indexrelid " + "FROM pg_index x, pg_class c, pg_class i, pg_am a " + "WHERE ((c.relname = '" + tableName.toLowerCase() + "') " + " AND (c.oid = x.indrelid) " + " AND (i.oid = x.indexrelid) " + " AND (i.relam = a.oid)) " + "ORDER BY x.indisunique DESC, " + " x.indisclustered, a.amname, i.relname"); while (r.next()) { // indkey is an array of column ordinals (integers). In the JDBC // interface, this has to be separated out into a separate // tuple for each indexed column. Also, getArray() is not yet // implemented for Postgres JDBC, so we parse by hand. String columnOrdinalString = r.getString(6); StringTokenizer stok = new StringTokenizer(columnOrdinalString); int [] columnOrdinals = new int[stok.countTokens()]; int o = 0; while (stok.hasMoreTokens()) { columnOrdinals[o++] = Integer.parseInt(stok.nextToken()); } for (int i = 0; i < columnOrdinals.length; i++) { byte [] [] tuple = new byte [13] []; tuple[0] = "".getBytes(); tuple[1] = "".getBytes(); tuple[2] = r.getBytes(1); tuple[3] = r.getBoolean(2) ? "f".getBytes() : "t".getBytes(); tuple[4] = null; tuple[5] = r.getBytes(3); tuple[6] = r.getBoolean(4) ? Integer.toString(tableIndexClustered).getBytes() : r.getString(5).equals("hash") ? Integer.toString(tableIndexHashed).getBytes() : Integer.toString(tableIndexOther).getBytes(); tuple[7] = Integer.toString(i + 1).getBytes(); java.sql.ResultSet columnNameRS = connection.ExecSQL("select a.attname FROM pg_attribute a WHERE (a.attnum = " + columnOrdinals[i] + ") AND (a.attrelid = " + r.getInt(9) + ")"); columnNameRS.next(); tuple[8] = columnNameRS.getBytes(1); tuple[9] = null; // sort sequence ??? tuple[10] = r.getBytes(7); // inexact tuple[11] = r.getBytes(8); tuple[12] = null; v.addElement(tuple); } } return new ResultSet(connection, f, v, "OK", 1); }
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/deaad93462febc938230cff510f17780bf619862/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 8088, 966, 12, 780, 6222, 16, 514, 1963, 16, 514, 4775, 16, 1250, 3089, 16, 1250, 21204, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 3437, 15533, 202, 202, 6290, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 315, 3993, 67, 16879, 3113, 277, 7464, 19105, 16, 404, 1769, 202, 202, 74, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 315, 9199, 67, 8729, 10591, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 25, 65, 273, 394, 2286, 12, 4071, 16, 315, 9199, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 26, 65, 273, 394, 2286, 12, 4071, 16, 315, 2399, 3113, 277, 1702, 22, 19105, 16, 576, 1769, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 8088, 966, 12, 780, 6222, 16, 514, 1963, 16, 514, 4775, 16, 1250, 3089, 16, 1250, 21204, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 3437, 15533, 202, 202, 6290, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 2 ]
rsvc.error(msg);
rsvc.getLog().error(msg);
public void merge( Context context, Writer writer) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, Exception { /* * we shouldn't have to do this, as if there is an error condition, * the application code should never get a reference to the * Template */ if (errorCondition != null) { throw errorCondition; } if( data != null) { /* * create an InternalContextAdapter to carry the user Context down * into the rendering engine. Set the template name and render() */ InternalContextAdapterImpl ica = new InternalContextAdapterImpl( context ); try { ica.pushCurrentTemplateName( name ); ica.setCurrentResource( this ); ( (SimpleNode) data ).render( ica, writer); } finally { /* * lets make sure that we always clean up the context */ ica.popCurrentTemplateName(); ica.setCurrentResource( null ); } } else { /* * this shouldn't happen either, but just in case. */ String msg = "Template.merge() failure. The document is null, " + "most likely due to parsing error."; rsvc.error(msg); throw new Exception(msg); } }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/f4adefb79ccda5d9df1f60719e0ede8f167e4089/Template.java/buggy/src/java/org/apache/velocity/Template.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2691, 12, 1772, 819, 16, 5497, 2633, 13, 3639, 1216, 16676, 16, 2884, 10009, 16, 2985, 9267, 503, 16, 1185, 565, 288, 3639, 1748, 540, 380, 225, 732, 12044, 1404, 1240, 358, 741, 333, 16, 487, 309, 1915, 353, 392, 555, 2269, 16, 540, 380, 225, 326, 2521, 981, 1410, 5903, 336, 279, 2114, 358, 326, 540, 380, 225, 5035, 540, 1195, 3639, 309, 261, 1636, 3418, 480, 446, 13, 3639, 288, 5411, 604, 555, 3418, 31, 3639, 289, 3639, 309, 12, 501, 480, 446, 13, 3639, 288, 5411, 1748, 2398, 380, 225, 752, 392, 3186, 1042, 4216, 358, 9331, 326, 729, 1772, 2588, 2398, 380, 225, 1368, 326, 9782, 4073, 18, 225, 1000, 326, 1542, 508, 471, 1743, 1435, 2398, 1195, 5411, 3186, 1042, 4216, 2828, 277, 5353, 273, 394, 3186, 1042, 4216, 2828, 12, 819, 11272, 5411, 775, 5411, 288, 7734, 277, 5353, 18, 6206, 3935, 28917, 12, 508, 11272, 7734, 277, 5353, 18, 542, 3935, 1420, 12, 333, 11272, 7734, 261, 261, 5784, 907, 13, 501, 262, 18, 5902, 12, 277, 5353, 16, 2633, 1769, 5411, 289, 5411, 3095, 5411, 288, 7734, 1748, 1171, 380, 225, 14557, 1221, 3071, 716, 732, 3712, 2721, 731, 326, 819, 1171, 1195, 7734, 277, 5353, 18, 5120, 3935, 28917, 5621, 7734, 277, 5353, 18, 542, 3935, 1420, 12, 446, 11272, 5411, 289, 3639, 289, 3639, 469, 3639, 288, 5411, 1748, 2398, 380, 333, 12044, 1404, 5865, 3344, 16, 1496, 2537, 316, 648, 18, 2398, 1195, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 12, 1772, 819, 16, 5497, 2633, 13, 3639, 1216, 16676, 16, 2884, 10009, 16, 2985, 9267, 503, 16, 1185, 565, 288, 3639, 1748, 540, 380, 225, 732, 12044, 1404, 1240, 358, 741, 333, 16, 487, 309, 1915, 353, 392, 555, 2269, 16, 540, 380, 225, 326, 2521, 981, 1410, 5903, 336, 279, 2114, 358, 326, 540, 380, 225, 5035, 540, 1195, 3639, 309, 261, 1636, 3418, 480, 446, 13, 3639, 288, 5411, 604, 555, 3418, 31, 3639, 289, 3639, 309, 12, 501, 480, 446, 13, 3639, 288, 5411, 1748, 2398, 380, 225, 752, 392, 3186, 1042, 4216, 358, 9331, 326, 729, 1772, 2588, 2398, 380, 225, 1368, 326, 9782, 4073, 18, 225, 1000, 326, 1542, 2 ]
if(whereExpr != null) whereExpr.analyze(this, flags);
if(whereExpr != null) { whereExpr.analyze(this, flags | IN_PREDICATE); }
public void analyze(Expression parent, int flags, OrderSpec orderBy[]) throws XPathException { // Save the local variable stack LocalVariable mark = context.markLocalVariables(); // Declare the iteration variable context.declareVariable(new LocalVariable(QName.parse(context, varName, null))); inputSequence.analyze(this, flags); if(whereExpr != null) whereExpr.analyze(this, flags); if(returnExpr instanceof BindingExpression) { ((BindingExpression)returnExpr).analyze(this, flags, orderBy); } else { if(orderBy != null) { for(int i = 0; i < orderBy.length; i++) orderBy[i].analyze(this, flags); } returnExpr.analyze(this, flags); } // restore the local variable stack context.popLocalVariables(mark); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/6f42510a4a949e59f3c55b7bcc7a8bab9532e10a/LetExpr.java/buggy/src/org/exist/xquery/LetExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12375, 12, 2300, 982, 16, 509, 2943, 16, 4347, 1990, 5278, 63, 5717, 1216, 10172, 503, 288, 3639, 368, 7074, 326, 1191, 2190, 2110, 202, 202, 2042, 3092, 2267, 273, 819, 18, 3355, 2042, 6158, 5621, 9506, 202, 759, 16110, 834, 326, 6532, 2190, 202, 202, 2472, 18, 29554, 3092, 12, 2704, 3566, 3092, 12, 13688, 18, 2670, 12, 2472, 16, 13722, 16, 446, 3719, 1769, 9506, 202, 2630, 4021, 18, 304, 9508, 12, 2211, 16, 2943, 1769, 202, 202, 430, 12, 6051, 4742, 480, 446, 13, 1082, 565, 1625, 4742, 18, 304, 9508, 12, 2211, 16, 2943, 1769, 202, 202, 430, 12, 2463, 4742, 1276, 15689, 2300, 13, 288, 1082, 565, 14015, 5250, 2300, 13, 2463, 4742, 2934, 304, 9508, 12, 2211, 16, 2943, 16, 5278, 1769, 202, 202, 97, 469, 288, 1082, 202, 430, 12, 26323, 480, 446, 13, 288, 9506, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 5278, 18, 2469, 31, 277, 27245, 9506, 3639, 5278, 63, 77, 8009, 304, 9508, 12, 2211, 16, 2943, 1769, 1082, 202, 97, 1082, 202, 2463, 4742, 18, 304, 9508, 12, 2211, 16, 2943, 1769, 202, 202, 97, 9506, 202, 759, 5217, 326, 1191, 2190, 2110, 202, 202, 2472, 18, 5120, 2042, 6158, 12, 3355, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12375, 12, 2300, 982, 16, 509, 2943, 16, 4347, 1990, 5278, 63, 5717, 1216, 10172, 503, 288, 3639, 368, 7074, 326, 1191, 2190, 2110, 202, 202, 2042, 3092, 2267, 273, 819, 18, 3355, 2042, 6158, 5621, 9506, 202, 759, 16110, 834, 326, 6532, 2190, 202, 202, 2472, 18, 29554, 3092, 12, 2704, 3566, 3092, 12, 13688, 18, 2670, 12, 2472, 16, 13722, 16, 446, 3719, 1769, 9506, 202, 2630, 4021, 18, 304, 9508, 12, 2211, 16, 2943, 1769, 202, 202, 430, 12, 6051, 4742, 480, 446, 13, 1082, 565, 1625, 4742, 18, 304, 9508, 12, 2211, 16, 2943, 1769, 202, 202, 430, 12, 2463, 4742, 1276, 15689, 2300, 13, 288, 1082, 565, 14015, 5250, 2300, 2 ]
while(enterCount > 0) {
while (enterCount > 0) {
void interrupted(Context cx) { synchronized(swingMonitor) { if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting++; if(nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); while(nonDispatcherWaiting) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| //shouldDispatchTo(comp)) { comp.dispatchEvent(event); //} } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } if(this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch(InterruptedException exc) { return; } } } } else { while(isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch(InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; } do { currentContext = cx; DebuggableEngine engine = cx.getDebuggableEngine(); Thread thread = Thread.currentThread(); statusBar.setText("Thread: " + thread.toString()); ThreadState state = (ThreadState)threadState.get(thread); int stopAtFrameDepth = -1; if(state != null) { stopAtFrameDepth = state.stopAtFrameDepth; } if(runToCursorFile != null && thread == runToCursorThread) { int frameCount = engine.getFrameCount(); if(frameCount > 0) { DebugFrame frame = engine.getFrame(0); String sourceName = frame.getSourceName(); if(sourceName != null) { if(sourceName.equals(runToCursorFile)) { int lineNumber = frame.getLineNumber(); if(lineNumber == runToCursorLine) { stopAtFrameDepth = -1; runToCursorFile = null; } else { FileWindow w = getFileWindow(sourceName); if(w == null || !w.isBreakPoint(lineNumber)) { return; } else { runToCursorFile = null; } } } } } else { } } if(stopAtFrameDepth > 0) { if (engine.getFrameCount() > stopAtFrameDepth) { break; } } if(state != null) { state.stopAtFrameDepth = -1; } threadState.remove(thread); int frameCount = engine.getFrameCount(); this.frameIndex = frameCount -1; int line = 0; if(frameCount == 0) { break; } DebugFrame frame = engine.getFrame(0); String fileName = frame.getSourceName(); engine.setBreakNextLine(false); line = frame.getLineNumber(); int enterCount = 0; boolean isDispatchThread = java.awt.EventQueue.isDispatchThread(); if(!isDispatchThread) { // detach cx from its thread so the debugger (in the awt // dispatcher thread) can enter it if necessary cx.exit(); while(Context.getCurrentContext() != null) { Context.exit(); enterCount++; } } if(fileName != null && !fileName.equals("<stdin>")) { FileWindow w = (FileWindow)getFileWindow(fileName); if(w != null) { SetFilePosition action = new SetFilePosition(this, w, line); swingInvoke(action); } else { Vector v = (Vector)sourceNames.get(fileName); String source = ((SourceEntry)v.elementAt(0)).source.toString(); CreateFileWindow action = new CreateFileWindow(this, fileName, source, line); swingInvoke(action); } } else { if(console.isVisible()) { final JSInternalConsole finalConsole = console; swingInvoke(new Runnable() { public void run() { finalConsole.show(); } }); } } swingInvoke(new EnterInterrupt(this, cx)); swingInvoke(new UpdateContext(this, cx)); int returnValue; if(!isDispatchThread) { synchronized(monitor) { this.returnValue = -1; try { while(this.returnValue == -1) { monitor.wait(); } returnValue = this.returnValue; } catch(InterruptedException exc) { break; } } } else { java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); this.returnValue = -1; while(this.returnValue == -1) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| // shouldDispatchTo(comp)) { //comp.dispatchEvent(event); //} comp.dispatchEvent(event); } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } } catch(InterruptedException exc) { } } returnValue = this.returnValue; } swingInvoke(new ExitInterrupt(this)); if(!isDispatchThread) { // reattach cx to its thread Context current; if((current = Context.enter(cx)) != cx) { System.out.println("debugger error: cx = " + cx + " current = " + current); } while(enterCount > 0) { Context.enter(); enterCount--; } } switch(returnValue) { case STEP_OVER: engine.setBreakNextLine(true); stopAtFrameDepth = engine.getFrameCount(); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); break; case STEP_INTO: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; case STEP_OUT: stopAtFrameDepth = engine.getFrameCount() -1; if(stopAtFrameDepth > 0) { engine.setBreakNextLine(true); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); } break; case RUN_TO_CURSOR: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; } } while(false); synchronized(swingMonitor) { isInterrupted = false; if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15711, 12, 1042, 9494, 13, 288, 3639, 3852, 12, 5328, 310, 7187, 13, 288, 5411, 309, 12, 6290, 18, 2219, 88, 18, 1133, 3183, 18, 291, 5325, 3830, 10756, 288, 7734, 7393, 2520, 15946, 9904, 31, 7734, 309, 12, 5836, 6681, 15946, 13, 288, 10792, 368, 432, 24413, 2650, 353, 9627, 316, 326, 19977, 10792, 368, 1207, 2641, 3180, 518, 400, 6411, 471, 732, 10792, 368, 848, 6103, 10792, 2252, 18, 2219, 88, 18, 1133, 3183, 871, 53, 225, 273, 13491, 2252, 18, 2219, 88, 18, 6364, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 1133, 3183, 5621, 10792, 1323, 12, 5836, 6681, 15946, 13, 288, 13491, 775, 288, 18701, 432, 8588, 1133, 871, 273, 871, 53, 18, 588, 2134, 1133, 5621, 18701, 309, 12, 2575, 1276, 8857, 1133, 13, 288, 27573, 14015, 3896, 1133, 13, 2575, 2934, 10739, 5621, 18701, 289, 469, 288, 27573, 1033, 1084, 273, 871, 18, 588, 1830, 5621, 27573, 309, 12, 3168, 1276, 5435, 13, 288, 4766, 565, 5435, 1161, 273, 261, 1841, 13, 3168, 31, 27573, 368, 4598, 6076, 19, 1210, 1133, 1807, 716, 11526, 1404, 27573, 368, 20830, 358, 326, 28645, 4766, 565, 368, 309, 12, 5, 12, 2575, 1276, 2741, 1133, 747, 4766, 565, 368, 2575, 1276, 6076, 1133, 14047, 96, 4766, 565, 368, 13139, 5325, 774, 12, 2919, 3719, 288, 4766, 565, 1161, 18, 10739, 1133, 12, 2575, 1769, 27573, 19363, 27573, 289, 469, 309, 12, 3168, 1276, 9809, 1841, 13, 288, 4766, 565, 14015, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15711, 12, 1042, 9494, 13, 288, 3639, 3852, 12, 5328, 310, 7187, 13, 288, 5411, 309, 12, 6290, 18, 2219, 88, 18, 1133, 3183, 18, 291, 5325, 3830, 10756, 288, 7734, 7393, 2520, 15946, 9904, 31, 7734, 309, 12, 5836, 6681, 15946, 13, 288, 10792, 368, 432, 24413, 2650, 353, 9627, 316, 326, 19977, 10792, 368, 1207, 2641, 3180, 518, 400, 6411, 471, 732, 10792, 368, 848, 6103, 10792, 2252, 18, 2219, 88, 18, 1133, 3183, 871, 53, 225, 273, 13491, 2252, 18, 2219, 88, 18, 6364, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 1133, 3183, 5621, 10792, 1323, 12, 5836, 6681, 15946, 13, 288, 13491, 775, 288, 18701, 432, 8588, 1133, 871, 273, 871, 2 ]
public void algorithmRescheduled(Algorithm algorithm, Calendar time) {
public synchronized void algorithmRescheduled(Algorithm algorithm, Calendar time) {
public void algorithmRescheduled(Algorithm algorithm, Calendar time) { _schedulerListener.algorithmRescheduled(algorithm, time); }
45843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45843/c0bd6541b8531af1fa0e2dd8c91dda140fbbda4a/SchedulerServiceImpl.java/buggy/core/org.cishell.reference/src/org/cishell/reference/app/service/scheduler/SchedulerServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 4886, 607, 2847, 72, 12, 6801, 4886, 16, 5542, 813, 13, 288, 3639, 389, 19972, 2223, 18, 12743, 607, 2847, 72, 12, 12743, 16, 813, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 4886, 607, 2847, 72, 12, 6801, 4886, 16, 5542, 813, 13, 288, 3639, 389, 19972, 2223, 18, 12743, 607, 2847, 72, 12, 12743, 16, 813, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
((FigEdgeModelElement)_content).computeRoute();
((FigEdgeModelElement) _content).computeRoute();
public void mouseReleased(MouseEvent me) { // check pre-conds if (me.isConsumed() || armed == false || pointIndex==-1){ armed = false; super.mouseReleased(me); return; } //Set-up: int x = me.getX(), y = me.getY(); // the fig that was under the mouse when it was released FigNodeModelElement newFig = null; //make a nice little target area: Rectangle mousePoint = new Rectangle(x-5,y-5,5,5); // and find the Fig: Editor editor = Globals.curEditor(); LayerManager lm = editor.getLayerManager(); Layer active = lm.getActiveLayer(); Enumeration figs = active.elementsIn(mousePoint); // last is the top fig. while(figs.hasMoreElements()){ Fig candidateFig = (Fig)figs.nextElement(); if(candidateFig instanceof FigNodeModelElement){ newFig = (FigNodeModelElement)candidateFig; } } // check intermediate post-condition. if(newFig == null){ armed = false; super.mouseReleased(me); return; } UMLMutableGraphSupport mgm = (UMLMutableGraphSupport)editor.getGraphModel(); FigNodeModelElement oldFig=null; boolean isSource=false; if (pointIndex==0){ oldFig = sourceFig; isSource=true; } else { oldFig = destFig; } // delegate the re-routing to graphmodels. if( mgm.canChangeConnectedNode(newFig.getOwner(), oldFig.getOwner(), this._content.getOwner()) ){ mgm.changeConnectedNode(newFig.getOwner(), oldFig.getOwner(), this._content.getOwner(), isSource); } editor.getSelectionManager().deselect(_content); armed = false; ((FigEdgeModelElement)_content).computeRoute(); super.mouseReleased(me); return; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SelectionRerouteEdge.java/clean/src_new/org/argouml/uml/diagram/ui/SelectionRerouteEdge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 26363, 12, 9186, 1133, 1791, 13, 288, 3639, 368, 866, 675, 17, 20874, 3639, 309, 261, 3501, 18, 291, 20554, 1435, 747, 419, 2937, 422, 629, 747, 1634, 1016, 631, 17, 21, 15329, 5411, 419, 2937, 273, 629, 31, 5411, 2240, 18, 11697, 26363, 12, 3501, 1769, 5411, 327, 31, 3639, 289, 15604, 368, 694, 17, 416, 30, 3639, 509, 619, 273, 1791, 18, 588, 60, 9334, 677, 273, 1791, 18, 588, 61, 5621, 3639, 368, 326, 4291, 716, 1703, 3613, 326, 7644, 1347, 518, 1703, 15976, 3639, 478, 360, 907, 1488, 1046, 394, 42, 360, 273, 446, 31, 3639, 368, 6540, 279, 13752, 12720, 1018, 5091, 30, 3639, 13264, 7644, 2148, 273, 394, 13264, 12, 92, 17, 25, 16, 93, 17, 25, 16, 25, 16, 25, 1769, 3639, 368, 471, 1104, 326, 478, 360, 30, 3639, 18451, 4858, 273, 18901, 1031, 18, 1397, 6946, 5621, 3639, 12112, 1318, 14966, 273, 4858, 18, 588, 4576, 1318, 5621, 3639, 12112, 2695, 273, 14966, 18, 588, 3896, 4576, 5621, 3639, 13864, 4291, 87, 273, 2695, 18, 6274, 382, 12, 11697, 2148, 1769, 3639, 368, 1142, 353, 326, 1760, 4291, 18, 3639, 1323, 12, 470, 87, 18, 5332, 7417, 3471, 10756, 95, 5411, 478, 360, 5500, 42, 360, 273, 261, 42, 360, 13, 470, 87, 18, 4285, 1046, 5621, 5411, 309, 12, 19188, 42, 360, 1276, 478, 360, 907, 1488, 1046, 15329, 7734, 394, 42, 360, 273, 261, 42, 360, 907, 1488, 1046, 13, 19188, 42, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7644, 26363, 12, 9186, 1133, 1791, 13, 288, 3639, 368, 866, 675, 17, 20874, 3639, 309, 261, 3501, 18, 291, 20554, 1435, 747, 419, 2937, 422, 629, 747, 1634, 1016, 631, 17, 21, 15329, 5411, 419, 2937, 273, 629, 31, 5411, 2240, 18, 11697, 26363, 12, 3501, 1769, 5411, 327, 31, 3639, 289, 15604, 368, 694, 17, 416, 30, 3639, 509, 619, 273, 1791, 18, 588, 60, 9334, 677, 273, 1791, 18, 588, 61, 5621, 3639, 368, 326, 4291, 716, 1703, 3613, 326, 7644, 1347, 518, 1703, 15976, 3639, 478, 360, 907, 1488, 1046, 394, 42, 360, 273, 446, 31, 3639, 368, 6540, 279, 13752, 12720, 1018, 5091, 30, 3639, 13264, 7644, 2148, 273, 394, 13264, 2 ]
return this.split;
return split;
public JSplitPane getPanel() { return this.split; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/IndexBrowserPanel.java/buggy/src/thaw/plugins/index/IndexBrowserPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 5521, 8485, 1689, 30427, 1435, 288, 202, 202, 2463, 333, 18, 4939, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 5521, 8485, 1689, 30427, 1435, 288, 202, 202, 2463, 333, 18, 4939, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
KoLmafia.updateDisplay( PENDING_STATE, lastUpdate );
KoLmafia.updateDisplay( ERROR_STATE, lastUpdate );
protected static void parseConsumption( String responseText, boolean showHTML ) { if ( lastItemUsed == null ) return; // Assume initially that this causes the item to disappear. // In the event that the item is not used, then proceed to // undo the consumption. int consumptionType = TradeableItemDatabase.getConsumptionType( lastItemUsed.getItemId() ); StaticEntity.getClient().processResult( lastItemUsed.getNegation() ); // Check for familiar growth - if a familiar is added, // make sure to update the StaticEntity.getClient(). if ( consumptionType == GROW_FAMILIAR ) { if ( responseText.indexOf( "You've already got a familiar of that type." ) != -1 ) { lastUpdate = "You already have that familiar."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); return; } // Pop up a window showing the result KoLCharacter.addFamiliar( FamiliarsDatabase.growFamiliarLarva( lastItemUsed.getItemId() ) ); showItemUsage( showHTML, responseText, "Your new familiar", true ); return; } if ( responseText.indexOf( "You may not" ) != -1 ) { KoLmafia.updateDisplay( PENDING_STATE, "Pathed ascension." ); StaticEntity.getClient().processResult( lastItemUsed ); return; } if ( responseText.indexOf( "rupture" ) != -1 ) { lastUpdate = "Your spleen might go kabooie."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); return; } // Check to make sure that it wasn't a food or drink // that was consumed that resulted in nothing. Eating // too much is flagged as a continuable state. if ( responseText.indexOf( "too full" ) != -1 ) { lastUpdate = "Consumption limit reached."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); return; } if ( responseText.indexOf( "too drunk" ) != -1 ) { lastUpdate = "Inebriety limit reached."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); return; } // For popping up HTML windows String text; String title; // Perform item-specific processing switch ( lastItemUsed.getItemId() ) { // Items which do not get used up, no matter what. case SEAL_TOOTH: case FOUNTAIN: case MEMO: case AWFUL_POETRY: StaticEntity.getClient().processResult( lastItemUsed ); return; // If it's a gift package, get the inner message case GIFT1: case GIFT2: case GIFT3: case GIFT4: case GIFT5: case GIFT6: case GIFT7: case GIFT8: case GIFT9: case GIFT10: case GIFT11: case GIFTV: case GIFTR: // "You can't receive things from other players // right now." if ( responseText.indexOf( "You can't receive things" ) != -1 ) { lastUpdate = "You can't open that package yet."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } else if ( showHTML ) { // Find out who sent it and popup a window showing // what was in the gift. Matcher matcher = GIFT_PATTERN.matcher( responseText ); title = matcher.find() ? "Gift from " + matcher.group(1) : "Your gift"; showItemUsage( true, responseText, title, true ); } return; // If it's a trading card, display it case TRADING_CARD1: case TRADING_CARD2: case TRADING_CARD3: case TRADING_CARD4: case TRADING_CARD5: case TRADING_CARD6: case TRADING_CARD7: case TRADING_CARD8: case TRADING_CARD9: case TRADING_CARD10: case TRADING_CARD11: case TRADING_CARD12: case TRADING_CARD13: case TRADING_CARD14: case TRADING_CARD15: case TRADING_CARD16: showItemUsage( showHTML, responseText, "Trading Card", false ); return; // If it's a memo from Uncle Crimbo, show it case CRIMBOWEEN_MEMO: showItemUsage( showHTML, responseText, "The Memo", false ); return; // If it's a stuffed angry cow, let the player beat the stuffing out of it case STUFFED_ANGRY_COW: showItemUsage( showHTML, responseText, "Aggression Relief", false ); return; // If it's a fortune cookie, get the fortune case FORTUNE_COOKIE: showItemUsage( showHTML, responseText, "Your fortune", true ); return; case GATES_SCROLL: // You can only use a 64735 scroll if you have the // original dictionary in your inventory // "Even though your name isn't Lee, you're flattered // and hand over your dictionary." if ( responseText.indexOf( "you're flattered" ) == -1 ) StaticEntity.getClient().processResult( lastItemUsed ); else StaticEntity.getClient().processResult( FightRequest.DICTIONARY1.getNegation() ); return; case ENCHANTED_BEAN: // There are three possibilities: // If you haven't been give the quest, "you can't find // anywhere that looks like a good place to plant the // bean" and you're told to "wait until later" // If you've already planted one, "There's already a // beanstalk in the Nearby Plains." In either case, the // bean is not consumed. // Otherwise, "it immediately grows into an enormous // beanstalk". if ( responseText.indexOf( "grows into an enormous beanstalk" ) == -1 ) StaticEntity.getClient().processResult( lastItemUsed ); return; case HEY_DEZE_MAP: // "Your song has pleased me greatly. I will reward you // with some of my crazy imps, to do your bidding." if ( responseText.indexOf( "pleased me greatly" ) == -1 ) { lastUpdate = "You music was inadequate."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case GIANT_CASTLE_MAP: // "I'm sorry, adventurer, but the Sorceress is in // another castle!" if ( responseText.indexOf( "Sorceress is in another castle" ) == -1 ) { lastUpdate = "You couldn't make it all the way to the back door."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case DRASTIC_HEALING: // If a scroll of drastic healing was used and didn't // crumble, it is not consumed StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.HP, KoLCharacter.getMaximumHP() ) ); if ( responseText.indexOf( "crumble" ) == -1 ) { StaticEntity.getClient().processResult( lastItemUsed ); KoLCharacter.updateStatus(); } return; case TEARS: activeEffects.remove( KoLAdventure.BEATEN_UP ); return; case ANTIdOTE: activeEffects.remove( POISON ); return; case TINY_HOUSE: // Tiny houses remove lots of different effects. activeEffects.clear(); return; case RAFFLE_TICKET: // The first time you use an Elf Farm Raffle ticket // with a ten-leaf clover in your inventory, the clover // disappears in a puff of smoke and you get pagoda // plans. // Subsequent raffle tickets don't consume clovers. if ( responseText.indexOf( "puff of smoke" ) != -1 ) StaticEntity.getClient().processResult( SewerRequest.CLOVER ); return; case KETCHUP_HOUND: // Successfully using a ketchup hound uses up the Hey // Deze nuts and pagoda plan. if ( responseText.indexOf( "pagoda" ) != -1 ) { StaticEntity.getClient().processResult( NUTS ); StaticEntity.getClient().processResult( PLAN ); } // The ketchup hound does not go away... StaticEntity.getClient().processResult( lastItemUsed ); return; case LUCIFER: // Jumbo Dr. Lucifer reduces your hit points to 1. StaticEntity.getClient().processResult( new AdventureResult( AdventureResult.HP, 1 - KoLCharacter.getCurrentHP() ) ); return; case DOLPHIN_KING_MAP: // "You follow the Dolphin King's map to the bottom of // the sea, and find his glorious treasure." if ( responseText.indexOf( "find his glorious treasure" ) == -1 ) { lastUpdate = "You don't have everything you need."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case SLUG_LORD_MAP: // "You make your way to the deepest part of the tank, // and find a chest engraved with the initials S. L." if ( responseText.indexOf( "deepest part of the tank" ) == -1 ) { lastUpdate = "You don't have everything you need."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case DR_HOBO_MAP: // "You place it atop the Altar, and grab the Scalpel // at the exact same moment." if ( responseText.indexOf( "exact same moment" ) == -1 ) { lastUpdate = "You don't have everything you need."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case SPOOKY_TEMPLE_MAP: // "You plant your Spooky Sapling in the loose soil at // the base of the Temple. You spray it with your // Spooky-Gro Fertilizer, and it immediately grows to // 20 feet in height. You can easily climb the // branches to reach the first step of the Temple // now..." if ( responseText.indexOf( "easily climb the branches" ) == -1 ) { lastUpdate = "You don't have everything you need."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } StaticEntity.getClient().processResult( SAPLING ); StaticEntity.getClient().processResult( FERTILIZER ); return; case DINGHY_PLANS: // "You need some planks to build the dinghy." if ( responseText.indexOf( "need some planks" ) != -1 ) { lastUpdate = "You need some dingy planks."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } else { StaticEntity.getClient().processResult( PLANKS ); } return; case FENG_SHUI: // Successfully using "Feng Shui for Big Dumb Idiots" // consumes the decorative fountain and windchimes. // Only used up once if ( responseText.indexOf( "Feng Shui goodness" ) == -1 ) { StaticEntity.getClient().processResult( lastItemUsed ); } else { StaticEntity.getClient().processResult( new AdventureResult( FOUNTAIN, -1 ) ); StaticEntity.getClient().processResult( WINDCHIMES ); } return; case WARM_SUBJECT: // The first time you use Warm Subject gift // certificates when you have the Torso Awaregness // skill consumes only one, even if you tried to // multi-use the item. // "You go to Warm Subject and browse the shirts for a // while. You find one that you wouldn't mind wearing // ironically. There seems to be only one in the store, // though." if ( responseText.indexOf( "ironically" ) != -1 ) StaticEntity.getClient().processResult( lastItemUsed.getInstance( lastItemUsed.getCount() - 1 ) ); return; case PURPLE: case GREEN: case ORANGE: case RED: case BLUE: case BLACK: // "Your mouth is still cold from the last snowcone you // ate. Try again later." if ( responseText.indexOf( "still cold" ) != -1 ) { lastUpdate = "Your mouth is too cold."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case ROLLING_PIN: // Rolling pins remove dough from your inventory // They are not consumed by being used StaticEntity.getClient().processResult( DOUGH.getInstance( DOUGH.getCount( inventory ) ).getNegation() ); StaticEntity.getClient().processResult( lastItemUsed ); return; case UNROLLING_PIN: // Unrolling pins remove flat dough from your inventory // They are not consumed by being used StaticEntity.getClient().processResult( FLAT_DOUGH.getInstance( FLAT_DOUGH.getCount( inventory ) ).getNegation() ); StaticEntity.getClient().processResult( lastItemUsed ); return; case PLUS_SIGN: // "Following The Oracle's advice, you treat the plus // sign as a book, and read it." if ( responseText.indexOf( "you treat the plus sign as a book" ) == -1 ) { lastUpdate = "You don't know how to use it."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); } return; case YETI_PROTEST_SIGN: // You don't use up a Yeti Protest Sign by protesting StaticEntity.getClient().processResult( lastItemUsed ); return; case CHEF: case CLOCKWORK_CHEF: KoLCharacter.setChef( true ); return; case BARTENDER: case CLOCKWORK_BARTENDER: KoLCharacter.setBartender( true ); return; case TOASTER: KoLCharacter.setToaster( true ); return; case ARCHES: KoLCharacter.setArches( true ); return; case SNOWCONE_TOME: // "You read the incantation written on the pages of // the tome. Snowflakes coalesce in your // mind. Delicious snowflakes." if ( responseText.indexOf( "You read the incantation" ) == -1 ) StaticEntity.getClient().processResult( lastItemUsed ); else KoLCharacter.addAvailableSkill( UseSkillRequest.getInstance( "Summon Snowcone" ) ); return; case HILARIOUS_TOME: // "You pore over the tome, and sophomoric humor pours // into your brain. The mysteries of McPhee become // clear to you." if ( responseText.indexOf( "You pore over the tome" ) == -1 ) StaticEntity.getClient().processResult( lastItemUsed ); else KoLCharacter.addAvailableSkill( UseSkillRequest.getInstance( "Summon Hilarious Objects" ) ); return; case ASTRAL_MUSHROOM: // "You eat the mushroom, and are suddenly engulfed in // a whirling maelstrom of colors and sensations as // your awareness is whisked away to some strange // alternate dimension. Who would have thought that a // glowing, ethereal mushroom could have that kind of // effect?" // "Whoo, man, lemme tell you, you don't need to be // eating another one of those just now, okay?" if ( responseText.indexOf( "whirling maelstrom" ) == -1 ) StaticEntity.getClient().processResult( lastItemUsed ); return; case DUSTY_ANIMAL_SKULL: // You pick up the animal skull, and start // hooking other bones to it. It would be // easier if there were instructions, Tab A // into Slot B, or something... eventually, // though, you manage to produce a // fully-assembled animal skeleton. If you can // call something made out of random cat, // monkey, and hamster bones // "fully-assembled". The magic that had // previously animated the animals kicks back // in, and it stands up shakily and looks at // you. "Graaangh?" if ( responseText.indexOf( "Graaangh?" ) == -1 ) { lastUpdate = "You're missing some parts."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); return; } // Remove the other 98 bones for ( int i = 1802; i < 1900; ++i ) { AdventureResult bone = new AdventureResult( i, -1 ); StaticEntity.getClient().processResult( bone ); } return; case QUILL_PEN: // You pick up the pen, and it immediately dips // itself into your inkwell, completely // draining it. Filled to capacity, it // immediately floats toward a tattered scrap // of paper in your sack, and begins scrawling // arcane symbols on it. // // Exhausted, the pen falls to the floor, where // it disintegrates into dust. Well, dust // covered with ink. More like mud than dust, I // guess. if ( responseText.indexOf( "disintegrates into dust" ) == -1 ) { lastUpdate = "You're missing some parts."; KoLmafia.updateDisplay( PENDING_STATE, lastUpdate ); StaticEntity.getClient().processResult( lastItemUsed ); return; } // It worked. Also remove the ink and paper. StaticEntity.getClient().processResult( INKWELL ); StaticEntity.getClient().processResult( SCRAP_OF_PAPER ); return; } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/721035d155e7c4ac34e4bc7113ba1b6e4f3125ca/ConsumeItemRequest.java/buggy/src/net/sourceforge/kolmafia/ConsumeItemRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 918, 1109, 11911, 375, 12, 514, 23630, 16, 1250, 2405, 4870, 262, 202, 95, 202, 202, 430, 261, 1142, 1180, 6668, 422, 446, 262, 1082, 202, 2463, 31, 202, 202, 759, 15983, 22458, 716, 333, 14119, 326, 761, 358, 1015, 438, 17964, 18, 202, 202, 759, 657, 326, 871, 716, 326, 761, 353, 486, 1399, 16, 1508, 11247, 358, 202, 202, 759, 15436, 326, 24550, 18, 202, 202, 474, 24550, 559, 273, 2197, 323, 429, 1180, 4254, 18, 588, 11911, 375, 559, 12, 1142, 1180, 6668, 18, 588, 17673, 1435, 11272, 202, 202, 5788, 1943, 18, 588, 1227, 7675, 2567, 1253, 12, 1142, 1180, 6668, 18, 588, 14337, 367, 1435, 11272, 202, 202, 759, 2073, 364, 284, 11580, 77, 297, 13334, 451, 300, 309, 279, 284, 11580, 77, 297, 353, 3096, 16, 202, 202, 759, 1221, 3071, 358, 1089, 326, 10901, 1943, 18, 588, 1227, 7675, 202, 202, 430, 261, 24550, 559, 422, 611, 11226, 67, 2046, 7492, 2053, 985, 262, 202, 202, 95, 1082, 202, 430, 261, 23630, 18, 31806, 12, 315, 6225, 8081, 1818, 2363, 279, 284, 11580, 77, 297, 434, 716, 618, 1199, 262, 480, 300, 21, 262, 1082, 202, 95, 9506, 202, 2722, 1891, 273, 315, 6225, 1818, 1240, 716, 284, 11580, 77, 297, 1199, 31, 9506, 202, 47, 83, 48, 81, 1727, 1155, 18, 2725, 4236, 12, 28454, 67, 7998, 16, 1142, 1891, 11272, 9506, 202, 5788, 1943, 18, 588, 1227, 7675, 2567, 1253, 12, 1142, 1180, 6668, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1109, 11911, 375, 12, 514, 23630, 16, 1250, 2405, 4870, 262, 202, 95, 202, 202, 430, 261, 1142, 1180, 6668, 422, 446, 262, 1082, 202, 2463, 31, 202, 202, 759, 15983, 22458, 716, 333, 14119, 326, 761, 358, 1015, 438, 17964, 18, 202, 202, 759, 657, 326, 871, 716, 326, 761, 353, 486, 1399, 16, 1508, 11247, 358, 202, 202, 759, 15436, 326, 24550, 18, 202, 202, 474, 24550, 559, 273, 2197, 323, 429, 1180, 4254, 18, 588, 11911, 375, 559, 12, 1142, 1180, 6668, 18, 588, 17673, 1435, 11272, 202, 202, 5788, 1943, 18, 588, 1227, 7675, 2567, 1253, 12, 1142, 1180, 6668, 18, 588, 14337, 367, 1435, 11272, 202, 202, 759, 2073, 2 ]
return values;
return dataValueDelegatingList;
public EList getValues() { EStructuralFeature feature = getFeature(); if (feature instanceof EAttribute) { EList values = new BasicEList(); EDataType type = (EDataType)feature.getEType(); for (Iterator iter = getDataValues().iterator(); iter.hasNext(); ) { values.add(EcoreUtil.createFromString(type, (String)iter.next())); } return values; } else { return getReferenceValues(); } }
11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/bbb08196df3d1d178da6b1a05faf45fa3cba8df4/ListChangeImpl.java/clean/plugins/org.eclipse.emf.ecore.change/src/org/eclipse/emf/ecore/change/impl/ListChangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 17021, 13500, 1435, 225, 288, 565, 512, 14372, 4595, 2572, 273, 17961, 5621, 565, 309, 261, 7238, 1276, 512, 1499, 13, 565, 288, 1377, 17021, 924, 273, 394, 7651, 41, 682, 5621, 1377, 20807, 618, 273, 261, 41, 6273, 13, 7238, 18, 588, 41, 559, 5621, 1377, 364, 261, 3198, 1400, 273, 4303, 1972, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 1377, 288, 3639, 924, 18, 1289, 12, 41, 3644, 1304, 18, 2640, 9193, 12, 723, 16, 261, 780, 13, 2165, 18, 4285, 1435, 10019, 1377, 289, 1377, 327, 29965, 15608, 1776, 682, 31, 565, 289, 565, 469, 565, 288, 1377, 327, 13223, 1972, 5621, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 17021, 13500, 1435, 225, 288, 565, 512, 14372, 4595, 2572, 273, 17961, 5621, 565, 309, 261, 7238, 1276, 512, 1499, 13, 565, 288, 1377, 17021, 924, 273, 394, 7651, 41, 682, 5621, 1377, 20807, 618, 273, 261, 41, 6273, 13, 7238, 18, 588, 41, 559, 5621, 1377, 364, 261, 3198, 1400, 273, 4303, 1972, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 1377, 288, 3639, 924, 18, 1289, 12, 41, 3644, 1304, 18, 2640, 9193, 12, 723, 16, 261, 780, 13, 2165, 18, 4285, 1435, 10019, 1377, 289, 1377, 327, 29965, 15608, 1776, 682, 31, 565, 289, 565, 469, 565, 288, 1377, 327, 13223, 1972, 5621, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100 ]
return to_a().to_s();
if(!getRuntime().registerInspecting(this)) { return getRuntime().newString("{...}"); } try { return to_a().to_s(); } finally { getRuntime().unregisterInspecting(this); }
public IRubyObject to_s() { return to_a().to_s(); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/c41f74da90a0fae6fd661222d04c6b602b3bc6ec/RubyHash.java/buggy/src/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 358, 67, 87, 1435, 288, 3639, 309, 12, 5, 588, 5576, 7675, 4861, 12073, 310, 12, 2211, 3719, 288, 327, 18814, 7675, 2704, 780, 2932, 95, 2777, 1532, 1769, 289, 775, 288, 327, 358, 67, 69, 7675, 869, 67, 87, 5621, 289, 3095, 288, 18814, 7675, 318, 4861, 12073, 310, 12, 2211, 1769, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 358, 67, 87, 1435, 288, 3639, 309, 12, 5, 588, 5576, 7675, 4861, 12073, 310, 12, 2211, 3719, 288, 327, 18814, 7675, 2704, 780, 2932, 95, 2777, 1532, 1769, 289, 775, 288, 327, 358, 67, 69, 7675, 869, 67, 87, 5621, 289, 3095, 288, 18814, 7675, 318, 4861, 12073, 310, 12, 2211, 1769, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for( i=0; i<tdsPool.size(); i++ ) { try { if( commit ) ((TdsInstance)tdsPool.elementAt(i)).tds.commit(); else ((TdsInstance)tdsPool.elementAt(i)).tds.rollback(); } catch( java.sql.SQLException e ) {
for (i = 0; i < tdsPool.size(); i++) { try { if (commit) { ((TdsInstance) tdsPool.elementAt(i)).tds.commit(); } else { ((TdsInstance) tdsPool.elementAt(i)).tds.rollback(); } } catch (java.sql.SQLException e) {
private void commitOrRollback(boolean commit) throws SQLException { int i; // @todo SAfe Check when does clearWarnings actually have to be called warningChain.clearWarnings(); // MJH Commit or Rollback Tds connections directly rather than mess with TdsStatement for( i=0; i<tdsPool.size(); i++ ) { try { if( commit ) ((TdsInstance)tdsPool.elementAt(i)).tds.commit(); else ((TdsInstance)tdsPool.elementAt(i)).tds.rollback(); } catch( java.sql.SQLException e ) { warningChain.addException(e); } } warningChain.checkForExceptions(); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/fb8d83e970f8d6bd9cc0f859d3736d3613730e2b/TdsConnection.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3294, 1162, 12703, 12, 6494, 3294, 13, 1216, 6483, 565, 288, 3639, 509, 277, 31, 3639, 368, 632, 9012, 17127, 3030, 2073, 1347, 1552, 2424, 4312, 6013, 1240, 358, 506, 2566, 3639, 3436, 3893, 18, 8507, 4312, 5621, 3639, 368, 490, 46, 44, 225, 10269, 578, 17724, 399, 2377, 5921, 5122, 9178, 2353, 12755, 598, 399, 2377, 3406, 3639, 364, 12, 277, 33, 20, 31, 277, 32, 88, 2377, 2864, 18, 1467, 5621, 277, 9904, 262, 3639, 288, 5411, 775, 5411, 288, 7734, 309, 12, 3294, 262, 10792, 14015, 56, 2377, 1442, 13, 88, 2377, 2864, 18, 2956, 861, 12, 77, 13, 2934, 88, 2377, 18, 7371, 5621, 7734, 469, 10792, 14015, 56, 2377, 1442, 13, 88, 2377, 2864, 18, 2956, 861, 12, 77, 13, 2934, 88, 2377, 18, 20050, 5621, 5411, 289, 5411, 1044, 12, 2252, 18, 4669, 18, 23116, 425, 262, 5411, 288, 7734, 3436, 3893, 18, 1289, 503, 12, 73, 1769, 5411, 289, 3639, 289, 3639, 3436, 3893, 18, 1893, 1290, 11416, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3294, 1162, 12703, 12, 6494, 3294, 13, 1216, 6483, 565, 288, 3639, 509, 277, 31, 3639, 368, 632, 9012, 17127, 3030, 2073, 1347, 1552, 2424, 4312, 6013, 1240, 358, 506, 2566, 3639, 3436, 3893, 18, 8507, 4312, 5621, 3639, 368, 490, 46, 44, 225, 10269, 578, 17724, 399, 2377, 5921, 5122, 9178, 2353, 12755, 598, 399, 2377, 3406, 3639, 364, 12, 277, 33, 20, 31, 277, 32, 88, 2377, 2864, 18, 1467, 5621, 277, 9904, 262, 3639, 288, 5411, 775, 5411, 288, 7734, 309, 12, 3294, 262, 10792, 14015, 56, 2377, 1442, 13, 88, 2377, 2864, 18, 2956, 861, 12, 77, 13, 2934, 88, 2377, 18, 7371, 5621, 7734, 469, 10792, 14015, 56, 2377, 1442, 13, 2 ]
System.err.println("ERROR ["+clazz+"] "+ message);
System.err.println("ERROR ["+clazz+"] "+ message);
public void error(Object message) { if (logLevel <= ERROR) System.err.println("ERROR ["+clazz+"] "+ message); }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/53734e3a004051ab457f4ef459dc7d8916307f95/ConsoleLogger.java/clean/src/org/tn5250j/tools/logging/ConsoleLogger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 555, 12, 921, 883, 13, 288, 1377, 309, 261, 1330, 2355, 1648, 5475, 13, 1377, 2332, 18, 370, 18, 8222, 2932, 3589, 8247, 15, 830, 3638, 9078, 65, 13773, 883, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 555, 12, 921, 883, 13, 288, 1377, 309, 261, 1330, 2355, 1648, 5475, 13, 1377, 2332, 18, 370, 18, 8222, 2932, 3589, 8247, 15, 830, 3638, 9078, 65, 13773, 883, 1769, 282, 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 ]
Tree qual1 = makeStableId(tree.pos, pre);
Tree qual1 = gen.This(tree.pos, nextcontext.enclClass.owner);
Tree transformIdent(Tree tree, Name name) { //System.out.println("transforming " + name);//DEBUG // find applicable definition and assign to `sym' Symbol sym = Symbol.NONE; Type pre; Tree qual = Tree.Empty; int stopPos = Integer.MIN_VALUE; Context nextcontext = context; while (sym.kind == NONE && nextcontext != Context.NONE) { sym = nextcontext.scope.lookup(name); if (sym.kind != NONE) { stopPos = sym.pos; } else { nextcontext = nextcontext.enclClass; if (nextcontext != Context.NONE) { sym = nextcontext.owner.thisSym().info().lookup(name); if (sym.kind != NONE) { stopPos = nextcontext.owner.pos; } else { nextcontext = nextcontext.outer; } } } } // find applicable import and assign to `sym1' ImportList nextimports = context.imports; ImportList lastimports = null; Symbol sym1 = Symbol.NONE; // System.out.println("name = " + name + ", pos = " + tree.pos + ", importlist = ");//DEBUG// for (ImportList imp = nextimports; imp != null; imp = imp.prev) {// new TextTreePrinter().print(" ").print(imp.tree).println().end();//DEBUG// } while (nextimports != null && nextimports.tree.pos >= tree.pos) { nextimports = nextimports.prev; } while (sym1.kind == NONE && nextimports != null && nextimports.tree.pos > stopPos) { sym1 = nextimports.importedSymbol(name); lastimports = nextimports; nextimports = nextimports.prev; } // evaluate what was found if (sym1.kind == NONE) { if (sym.kind == NONE) { //System.out.println(name);//DEBUG error(tree.pos, "not found: " + decode(name)); return tree.setSymbol(Symbol.ERROR).setType(Type.ErrorType); } else { if (sym.owner().kind == CLASS) { pre = nextcontext.enclClass.owner.thisType(); if (!sym.owner().isPackage()) { Tree qual1 = makeStableId(tree.pos, pre); tree = make.Select(tree.pos, qual1, name); //System.out.println(name + " :::> " + tree + " " + qual1.symbol());//DEBUG } } else { pre = Type.localThisType; } } } else if (sym.kind != NONE && !sym.isExternal()) { return error(tree.pos, "reference to " + name + " is ambiguous;\n" + "it is both defined in " + sym.owner() + " and imported subsequently by \n" + nextimports.tree); } else { // check that there are no other applicable imports in same scope. while (nextimports != null && nextimports.enclscope == lastimports.enclscope) { if (!nextimports.sameImport(lastimports) && nextimports.importedSymbol(name).kind != NONE) { return error(tree.pos, "reference to " + name + " is ambiguous;\n" + "it is imported twice in the same scope by\n " + lastimports.tree + "\nand " + nextimports.tree); } nextimports = nextimports.prev; } sym = sym1; qual = lastimports.importPrefix().duplicate(); pre = qual.type; //new TextTreePrinter().print(name + " => ").print(lastimports.tree).print("." + name).println().end();//DEBUG tree = make.Select(tree.pos, qual, name); } Type symtype = (sym.isType() ? sym.typeConstructor() : sym.type()) .asSeenFrom(pre, sym.owner()); if (qual != Tree.Empty) symtype = checkAccessible(tree.pos, sym, symtype, qual); if (symtype == Type.NoType) return error(tree.pos, "not found: " + decode(name)); //System.out.println(name + ":" + symtype);//DEBUG return mkStable(tree.setSymbol(sym).setType(symtype), pre, mode, pt); }
55146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55146/366ae6010879ded62bf292daef2f0799add92428/Analyzer.java/clean/sources/scalac/typechecker/Analyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4902, 2510, 6106, 12, 2471, 2151, 16, 1770, 508, 13, 288, 202, 759, 3163, 18, 659, 18, 8222, 2932, 6547, 310, 315, 397, 508, 1769, 759, 9394, 202, 759, 1104, 12008, 2379, 471, 2683, 358, 1375, 8117, 11, 202, 5335, 5382, 273, 8565, 18, 9826, 31, 202, 559, 675, 31, 202, 2471, 4544, 273, 4902, 18, 1921, 31, 202, 474, 2132, 1616, 273, 2144, 18, 6236, 67, 4051, 31, 202, 1042, 1024, 2472, 273, 819, 31, 202, 17523, 261, 8117, 18, 9224, 422, 11829, 597, 1024, 2472, 480, 1772, 18, 9826, 13, 288, 202, 565, 5382, 273, 1024, 2472, 18, 4887, 18, 8664, 12, 529, 1769, 202, 565, 309, 261, 8117, 18, 9224, 480, 11829, 13, 288, 202, 202, 5681, 1616, 273, 5382, 18, 917, 31, 202, 565, 289, 469, 288, 202, 202, 4285, 2472, 273, 1024, 2472, 18, 275, 830, 797, 31, 202, 202, 430, 261, 4285, 2472, 480, 1772, 18, 9826, 13, 288, 1082, 565, 5382, 273, 1024, 2472, 18, 8443, 18, 2211, 11901, 7675, 1376, 7675, 8664, 12, 529, 1769, 1082, 565, 309, 261, 8117, 18, 9224, 480, 11829, 13, 288, 1082, 202, 5681, 1616, 273, 1024, 2472, 18, 8443, 18, 917, 31, 1082, 565, 289, 469, 288, 1082, 202, 4285, 2472, 273, 1024, 2472, 18, 14068, 31, 1082, 565, 289, 202, 202, 97, 202, 565, 289, 202, 97, 202, 759, 1104, 12008, 1930, 471, 2683, 358, 1375, 8117, 21, 11, 202, 5010, 682, 1024, 21350, 273, 819, 18, 21350, 31, 202, 5010, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 2510, 6106, 12, 2471, 2151, 16, 1770, 508, 13, 288, 202, 759, 3163, 18, 659, 18, 8222, 2932, 6547, 310, 315, 397, 508, 1769, 759, 9394, 202, 759, 1104, 12008, 2379, 471, 2683, 358, 1375, 8117, 11, 202, 5335, 5382, 273, 8565, 18, 9826, 31, 202, 559, 675, 31, 202, 2471, 4544, 273, 4902, 18, 1921, 31, 202, 474, 2132, 1616, 273, 2144, 18, 6236, 67, 4051, 31, 202, 1042, 1024, 2472, 273, 819, 31, 202, 17523, 261, 8117, 18, 9224, 422, 11829, 597, 1024, 2472, 480, 1772, 18, 9826, 13, 288, 202, 565, 5382, 273, 1024, 2472, 18, 4887, 18, 8664, 12, 529, 1769, 202, 565, 309, 261, 8117, 18, 9224, 480, 11829, 13, 288, 202, 2 ]
return count;
return set;
private int findMoves(MasterHex hex, Player player, Legion legion, int roll, int block, int cameFrom, boolean show) { int count = 0; // If there are enemy legions in this hex, mark it // as a legal move and stop recursing. If there is // also a friendly legion there, just stop recursing. if (hex.getNumEnemyLegions(player) > 0) { if (hex.getNumFriendlyLegions(player) == 0) { if (show) { hex.select(); hex.repaint(); // Set the entry side relative to the hex label. hex.setEntrySide((6 + cameFrom - hex.getLabelSide()) % 6); } } return count; } if (roll == 0) { // This hex is the final destination. Mark it as legal if // it is unoccupied by friendly legions. for (int i = 0; i < player.getNumLegions(); i++) { // Account for spin cycles. if (player.getLegion(i).getCurrentHex() == hex && player.getLegion(i) != legion) { return count; } } if (show) { hex.select(); hex.repaint(); // Need to set entry sides even if no possible engagement, // for MasterHex.chooseWhetherToTeleport() hex.setEntrySide((6 + cameFrom - hex.getLabelSide()) % 6); } count++; return count; } if (block >= 0) { count += findMoves(hex.getNeighbor(block), player, legion, roll - 1, -2, (block + 3) % 6, show); } else if (block == -1) { for (int i = 0; i < 6; i++) { if (hex.getExitType(i) >= MasterHex.ARCH && i != cameFrom) { count += findMoves(hex.getNeighbor(i), player, legion, roll - 1, -2, (i + 3) % 6, show); } } } else if (block == -2) { for (int i = 0; i < 6; i++) { if (hex.getExitType(i) >= MasterHex.ARROW && i != cameFrom) { count += findMoves(hex.getNeighbor(i), player, legion, roll - 1, -2, (i + 3) % 6, show); } } } return count; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/6966a6627dfe9dd5fda3f5d5af9df1d47daef99f/Game.java/buggy/Colossus/Game.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1104, 19297, 12, 7786, 7037, 3827, 16, 19185, 7291, 16, 17167, 285, 4553, 285, 16, 3639, 509, 5824, 16, 509, 1203, 16, 509, 22497, 1265, 16, 1250, 2405, 13, 565, 288, 3639, 509, 1056, 273, 374, 31, 3639, 368, 971, 1915, 854, 570, 351, 93, 4553, 1115, 316, 333, 3827, 16, 2267, 518, 3639, 368, 487, 279, 19286, 3635, 471, 2132, 8112, 2470, 18, 225, 971, 1915, 353, 3639, 368, 2546, 279, 13118, 4553, 285, 1915, 16, 2537, 2132, 8112, 2470, 18, 3639, 309, 261, 7118, 18, 588, 2578, 664, 351, 93, 8329, 1115, 12, 14872, 13, 405, 374, 13, 3639, 288, 5411, 309, 261, 7118, 18, 588, 2578, 19730, 8329, 1115, 12, 14872, 13, 422, 374, 13, 5411, 288, 7734, 309, 261, 4500, 13, 7734, 288, 10792, 3827, 18, 4025, 5621, 10792, 3827, 18, 14462, 1598, 5621, 10792, 368, 1000, 326, 1241, 4889, 3632, 358, 326, 3827, 1433, 18, 10792, 3827, 18, 542, 1622, 8895, 12443, 26, 397, 22497, 1265, 300, 3827, 18, 588, 2224, 8895, 10756, 738, 1666, 1769, 7734, 289, 18701, 289, 5411, 327, 444, 31, 3639, 289, 3639, 309, 261, 2693, 422, 374, 13, 3639, 288, 5411, 368, 1220, 3827, 353, 326, 727, 2929, 18, 225, 6622, 518, 487, 19286, 309, 5411, 368, 518, 353, 640, 25049, 416, 2092, 635, 13118, 4553, 1115, 18, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7291, 18, 588, 2578, 8329, 1115, 5621, 277, 27245, 5411, 288, 7734, 368, 6590, 364, 12490, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 19297, 12, 7786, 7037, 3827, 16, 19185, 7291, 16, 17167, 285, 4553, 285, 16, 3639, 509, 5824, 16, 509, 1203, 16, 509, 22497, 1265, 16, 1250, 2405, 13, 565, 288, 3639, 509, 1056, 273, 374, 31, 3639, 368, 971, 1915, 854, 570, 351, 93, 4553, 1115, 316, 333, 3827, 16, 2267, 518, 3639, 368, 487, 279, 19286, 3635, 471, 2132, 8112, 2470, 18, 225, 971, 1915, 353, 3639, 368, 2546, 279, 13118, 4553, 285, 1915, 16, 2537, 2132, 8112, 2470, 18, 3639, 309, 261, 7118, 18, 588, 2578, 664, 351, 93, 8329, 1115, 12, 14872, 13, 405, 374, 13, 3639, 288, 5411, 309, 261, 7118, 18, 588, 2578, 19730, 8329, 1115, 12, 14872, 13, 422, 2 ]
throw new TransformerException(new Message(Messages.TRANSFORM_FAILED_FROM_X_TO_X, msg.getClass().getName(), "byte[]"), e);
throw new TransformerException(new Message(Messages.TRANSFORM_FAILED_FROM_X_TO_X, msg .getClass().getName(), "byte[]"), e);
public byte[] getTransformedMessageAsBytes() throws TransformerException { Object msg = getTransformedMessage(); if (msg instanceof byte[]) { return (byte[])msg; } else if (msg instanceof String) { try { return msg.toString().getBytes(getEncoding()); } catch (UnsupportedEncodingException e) { throw new TransformerException(new Message(Messages.TRANSFORM_FAILED_FROM_X, msg.getClass().getName(), e)); } } else if( msg instanceof Serializable){ try { return SerializationUtils.serialize((Serializable)msg); } catch (Exception e) { throw new TransformerException(new Message(Messages.TRANSFORM_FAILED_FROM_X_TO_X, msg.getClass().getName(), "byte[]"), e); } } else { throw new TransformerException(new Message(Messages.TRANSFORM_ON_X_NOT_OF_SPECIFIED_TYPE_X, msg.getClass().getName(), "byte[] or " + Serializable.class.getName())); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/6de1510957924530f45b91a16430b826029ecf1b/MuleEvent.java/clean/src/java/org/mule/impl/MuleEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 336, 4059, 329, 1079, 1463, 2160, 1435, 1216, 21684, 565, 288, 3639, 1033, 1234, 273, 336, 4059, 329, 1079, 5621, 3639, 309, 261, 3576, 1276, 1160, 63, 5717, 288, 5411, 327, 261, 7229, 63, 5717, 3576, 31, 3639, 289, 469, 309, 261, 3576, 1276, 514, 13, 288, 5411, 775, 288, 7734, 327, 1234, 18, 10492, 7675, 588, 2160, 12, 588, 4705, 10663, 5411, 289, 1044, 261, 8544, 13836, 425, 13, 288, 7734, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 11965, 67, 11249, 67, 60, 16, 1234, 18, 588, 797, 7675, 17994, 9334, 425, 10019, 5411, 289, 3639, 289, 469, 309, 12, 1234, 1276, 13687, 15329, 5411, 775, 288, 7734, 327, 15253, 1989, 18, 6288, 12443, 21682, 13, 3576, 1769, 5411, 289, 5411, 1044, 261, 503, 425, 13, 288, 7734, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 11965, 67, 11249, 67, 60, 67, 4296, 67, 60, 16, 13491, 1234, 18, 588, 797, 7675, 17994, 9334, 315, 7229, 63, 4279, 3631, 425, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 673, 67, 60, 67, 4400, 67, 3932, 67, 13847, 13519, 67, 2399, 67, 60, 16, 10792, 1234, 18, 588, 797, 7675, 17994, 9334, 315, 7229, 8526, 578, 315, 397, 13687, 18, 1106, 18, 17994, 1435, 10019, 3639, 289, 565, 289, 2, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 336, 4059, 329, 1079, 1463, 2160, 1435, 1216, 21684, 565, 288, 3639, 1033, 1234, 273, 336, 4059, 329, 1079, 5621, 3639, 309, 261, 3576, 1276, 1160, 63, 5717, 288, 5411, 327, 261, 7229, 63, 5717, 3576, 31, 3639, 289, 469, 309, 261, 3576, 1276, 514, 13, 288, 5411, 775, 288, 7734, 327, 1234, 18, 10492, 7675, 588, 2160, 12, 588, 4705, 10663, 5411, 289, 1044, 261, 8544, 13836, 425, 13, 288, 7734, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 11965, 67, 11249, 67, 60, 16, 1234, 18, 588, 797, 7675, 17994, 9334, 425, 10019, 5411, 289, 3639, 289, 469, 309, 12, 1234, 1276, 13687, 15329, 5411, 775, 288, 7734, 327, 2 ]
} while (rs.next() && (structId = rs.getInt(1)) == lastStructId); } while(!rs.isAfterLast());
if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); }
public Document getUserLayout (IPerson person, int profileId) throws Exception { int userId = person.getID(); Connection con = rdbmService.getConnection(); String str_uLayoutXML = null; try { DocumentImpl doc = new DocumentImpl(); Element root = doc.createElement("layout"); Statement stmt = con.createStatement(); try { long startTime = System.currentTimeMillis(); String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILES WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profileId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId; ResultSet rs = stmt.executeQuery(subSelectString); try { rs.next(); layoutId = rs.getInt("LAYOUT_ID"); } finally { rs.close(); } String sQuery = "SELECT INIT_STRUCT_ID FROM UP_USER_LAYOUT WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { if (rs.next()) { int firstStructId = rs.getInt("INIT_STRUCT_ID"); if (firstStructId == 0) { // Grab the default "Guest" layout firstStructId = 1; // Should look this up } String sql = "SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE"; if (supportsOuterJoins) { sql += ",USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL " + dbStrings.layoutStructure; } else { sql += " FROM UP_LAYOUT_STRUCT ULS WHERE "; } sql += " ULS.USER_ID=" + userId + " AND ULS.LAYOUT_ID=" + layoutId + " ORDER BY ULS.STRUCT_ID"; stmt = con.createStatement(); HashMap layoutStructure = new HashMap(); try { LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); rs = stmt.executeQuery(sql); try { int lastStructId = 0; LayoutStructure ls = null; StringBuffer structParms = new StringBuffer(); String sepChar = ""; if (rs.next()) { int structId = rs.getInt(1); if (DEBUG > 1) { System.err.println("Read layout structrure " + structId); } LinkedList lis; MyPreparedStatement pstmtChannel = getChannelPstmt(con); try { MyPreparedStatement pstmtChannelParm = getChannelParmPstmt(con); try { do { int chanId = rs.getInt(4); ls = new LayoutStructure(structId,rs.getInt(2), rs.getInt(3), chanId, rs.getString(7),rs.getString(8),rs.getString(9)); layoutStructure.put(new Integer(structId), ls); lastStructId = structId; if (!ls.isChannel()) { ls.addFolderData(rs.getString(5), rs.getString(6)); } else { // Pre-prime the channel pump getChannel(chanId, true, pstmtChannel, pstmtChannelParm); if (DEBUG > 1) { System.err.println("Precached " + chanId); } } if (supportsOuterJoins) { do { String name = rs.getString(10); if (name != null) { // may not be there because of the join ls.addParameter(name, rs.getString(11)); } } while (rs.next() && (structId = rs.getInt(1)) == lastStructId); } else { // Do second SELECT later on for structure parameters if (ls.isChannel()) { structParms.append(sepChar + ls.chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); } } } while (!rs.isAfterLast()); rs.close(); } finally { if (pstmtChannelParm != null) { pstmtChannelParm.close(); } } } finally { pstmtChannel.close(); } } if (!supportsOuterJoins) { // Pick up structure parameters sql = "SELECT STRUCT_ID, STRUCT_PARM_NM,STRUCT_PARM_VAL FROM UP_STRUCT_PARAM WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND STRUCT_ID IN (" + structParms.toString() + ") ORDER BY STRUCT_ID"; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); rs = stmt.executeQuery(sql); try { if (rs.next()) { int structId = rs.getInt(1); do { ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); lastStructId = structId; do { ls.addParameter(rs.getString(2), rs.getString(3)); } while (rs.next() && (structId = rs.getInt(1)) == lastStructId); } while(!rs.isAfterLast()); } } finally { rs.close(); } } } finally { rs.close(); } } finally { stmt.close(); } createLayout(layoutStructure, doc, root, firstStructId); } } finally { rs.close(); } long stopTime = System.currentTimeMillis(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); doc.appendChild(root); if (DEBUG > 1) { System.err.println("--> created document"); dumpDoc(doc, ""); System.err.println("<--"); } } finally { stmt.close(); } return doc; } finally { rdbmService.releaseConnection(con); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/d2d36dc78ab3ce2e5d754549619a6442afce50ec/RDBMUserLayoutStore.java/buggy/source/org/jasig/portal/RDBMUserLayoutStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 509, 25903, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 4050, 356, 273, 436, 1966, 81, 1179, 18, 588, 1952, 5621, 565, 514, 609, 67, 89, 3744, 4201, 273, 446, 31, 565, 775, 288, 1377, 4319, 2828, 997, 273, 394, 4319, 2828, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 1377, 775, 288, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 514, 720, 3391, 780, 273, 315, 4803, 25239, 5069, 67, 734, 4571, 7376, 67, 4714, 67, 3373, 12669, 4852, 7443, 67, 734, 1546, 397, 6249, 397, 315, 4116, 4629, 3776, 67, 734, 1546, 397, 5411, 25903, 31, 3639, 1827, 1179, 18, 1336, 7675, 1330, 12, 1343, 1179, 18, 9394, 16, 315, 54, 2290, 49, 1299, 3744, 2257, 2866, 588, 1299, 3744, 13332, 315, 397, 720, 3391, 780, 1769, 3639, 509, 3511, 548, 31, 3639, 10842, 3597, 273, 3480, 18, 8837, 1138, 12, 1717, 3391, 780, 1769, 3639, 775, 288, 1850, 3597, 18, 4285, 5621, 1850, 3511, 548, 273, 3597, 18, 588, 1702, 2932, 7868, 5069, 67, 734, 8863, 3639, 289, 3095, 288, 1850, 3597, 18, 4412, 5621, 3639, 289, 3639, 514, 26656, 273, 315, 4803, 12584, 67, 13915, 67, 734, 4571, 7376, 67, 4714, 67, 7868, 5069, 4852, 7443, 67, 734, 1546, 397, 6249, 397, 315, 4116, 25239, 5069, 67, 734, 273, 315, 397, 3511, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 509, 25903, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 4050, 356, 273, 436, 1966, 81, 1179, 18, 588, 1952, 5621, 565, 514, 609, 67, 89, 3744, 4201, 273, 446, 31, 565, 775, 288, 1377, 4319, 2828, 997, 273, 394, 4319, 2828, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 1377, 775, 288, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 514, 720, 3391, 780, 273, 315, 4803, 25239, 5069, 67, 734, 4571, 7376, 67, 4714, 67, 3373, 12669, 4852, 7443, 67, 734, 1546, 397, 6249, 397, 315, 2 ]
mangled.append("To");
mangled.append(i == 1 ? "to" : "To");
public static String mangleName (String name) { int len = name.length (); StringBuffer mangled = new StringBuffer (len); for (int i = 0; i < len; i++) { char ch = name.charAt (i); // This function is probably not quite enough ... // (Note the verifier may be picky about class names.) if (Character.isLowerCase (ch) || Character.isUpperCase (ch) || Character.isDigit (ch) || ch == '_' || ch == '$') mangled.append(ch); else if (ch == '!') mangled.append("_B"); else if (ch == '?') { char first = mangled.length() > 0 ? mangled.charAt(0) : '\0'; if (i + 1 == len && Character.isLowerCase(first)) { mangled.setCharAt(0, Character.toTitleCase(first)); mangled.insert(0, "is"); } else mangled.append("_P"); } else if (ch == '%') mangled.append("_C"); else if (ch == '-') { char next = i + 1 < len ? name.charAt(i+1) : '\0'; if (next == '>') { i++; next = i + 1 < len ? name.charAt(i+1) : '\0'; if (Character.isLowerCase(next)) { mangled.append("To"); next = Character.toTitleCase(next); mangled.append(next); i++; } else mangled.append("_2_"); } else if (Character.isLowerCase(next)) { next = Character.toTitleCase(next); mangled.append(next); i++; } else mangled.append ("__"); } else { mangled.append ('_'); mangled.append (Character.forDigit ((ch >> 12) & 15, 16)); mangled.append (Character.forDigit ((ch >> 8) & 15, 16)); mangled.append (Character.forDigit ((ch >> 4) & 15, 16)); mangled.append (Character.forDigit ((ch ) & 15, 16)); } } String mname = mangled.toString (); return mname.equals(name) ? name : mname; }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/0a820848f7d64971115fbe74bb9bff5a16b4bbf9/Compilation.java/clean/gnu/expr/Compilation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 312, 4341, 461, 261, 780, 508, 13, 225, 288, 565, 509, 562, 273, 508, 18, 2469, 261, 1769, 565, 6674, 29674, 1259, 273, 394, 6674, 261, 1897, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 562, 31, 225, 277, 27245, 1377, 288, 202, 3001, 462, 273, 508, 18, 3001, 861, 261, 77, 1769, 202, 759, 1220, 445, 353, 8656, 486, 25102, 7304, 1372, 202, 759, 261, 8067, 326, 20130, 2026, 506, 6002, 93, 2973, 667, 1257, 12998, 202, 430, 261, 7069, 18, 291, 5630, 261, 343, 13, 747, 6577, 18, 291, 8915, 261, 343, 13, 202, 565, 747, 6577, 18, 291, 10907, 261, 343, 13, 747, 462, 422, 4427, 747, 462, 422, 3365, 6134, 202, 225, 29674, 1259, 18, 6923, 12, 343, 1769, 202, 12107, 309, 261, 343, 422, 15502, 13, 202, 225, 29674, 1259, 18, 6923, 2932, 67, 38, 8863, 202, 12107, 309, 261, 343, 422, 6787, 13, 202, 225, 288, 202, 565, 1149, 1122, 273, 29674, 1259, 18, 2469, 1435, 405, 374, 692, 29674, 1259, 18, 3001, 861, 12, 20, 13, 294, 2337, 20, 13506, 202, 565, 309, 261, 77, 397, 404, 422, 562, 597, 6577, 18, 291, 5630, 12, 3645, 3719, 202, 1377, 288, 202, 202, 81, 539, 1259, 18, 542, 2156, 861, 12, 20, 16, 6577, 18, 869, 4247, 2449, 12, 3645, 10019, 202, 202, 81, 539, 1259, 18, 6387, 12, 20, 16, 315, 291, 8863, 202, 1377, 289, 202, 565, 469, 202, 1377, 29674, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 312, 4341, 461, 261, 780, 508, 13, 225, 288, 565, 509, 562, 273, 508, 18, 2469, 261, 1769, 565, 6674, 29674, 1259, 273, 394, 6674, 261, 1897, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 562, 31, 225, 277, 27245, 1377, 288, 202, 3001, 462, 273, 508, 18, 3001, 861, 261, 77, 1769, 202, 759, 1220, 445, 353, 8656, 486, 25102, 7304, 1372, 202, 759, 261, 8067, 326, 20130, 2026, 506, 6002, 93, 2973, 667, 1257, 12998, 202, 430, 261, 7069, 18, 291, 5630, 261, 343, 13, 747, 6577, 18, 291, 8915, 261, 343, 13, 202, 565, 747, 6577, 18, 291, 10907, 261, 343, 13, 747, 462, 422, 4427, 747, 462, 2 ]
ObjectStoreDummyImpl os = new ObjectStoreDummyImpl(); os.setResultsSize(12);
ObjectStoreDummyImpl objectStore = new ObjectStoreDummyImpl(); objectStore.setResultsSize(12);
public void testCount() throws Exception { ObjectStoreDummyImpl os = new ObjectStoreDummyImpl(); os.setResultsSize(12); Query q = new Query(); assertEquals(os.count(q, 0), 12); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/23f1c6cb3b3980b8412d00bb3021ee244f7d5dae/ObjectStoreDummyImplTest.java/buggy/intermine/src/test/org/intermine/objectstore/dummy/ObjectStoreDummyImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1380, 1435, 1216, 1185, 288, 3639, 1033, 2257, 20094, 2828, 1140, 273, 394, 1033, 2257, 20094, 2828, 5621, 3639, 1140, 18, 542, 3447, 1225, 12, 2138, 1769, 3639, 2770, 1043, 273, 394, 2770, 5621, 3639, 1815, 8867, 12, 538, 18, 1883, 12, 85, 16, 374, 3631, 2593, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 1380, 1435, 1216, 1185, 288, 3639, 1033, 2257, 20094, 2828, 1140, 273, 394, 1033, 2257, 20094, 2828, 5621, 3639, 1140, 18, 542, 3447, 1225, 12, 2138, 1769, 3639, 2770, 1043, 273, 394, 2770, 5621, 3639, 1815, 8867, 12, 538, 18, 1883, 12, 85, 16, 374, 3631, 2593, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Class receiverClass =Class.forName(clasName,true,
Class receiverClass = Class.forName(clasName, true,
private void processTransportReceivers(Iterator trs_senders) throws DeploymentException { while (trs_senders.hasNext()) { TransportInDescription transportIN; OMElement transport = (OMElement) trs_senders.next(); // getting trsnport Name OMAttribute trsName = transport.getAttribute( new QName(ATTNAME)); if(trsName !=null){ String name = trsName.getAttributeValue(); transportIN = new TransportInDescription(new QName(name)); //tranport impl class OMAttribute trsClas = transport.getAttribute(new QName(CLASSNAME)); if(trsClas !=null) { try { String clasName = trsClas.getAttributeValue(); Class receiverClass =Class.forName(clasName,true, Thread.currentThread() .getContextClassLoader()); TransportListener receiver = (TransportListener) receiverClass.newInstance(); transportIN.setReceiver(receiver); } catch (ClassNotFoundException e) { throw new DeploymentException(e); } catch (IllegalAccessException e) { throw new DeploymentException(e); } catch (InstantiationException e) { throw new DeploymentException(e); } } try { //process Parameters //processing Paramters //Processing service level paramters Iterator itr = transport.getChildrenWithName( new QName(PARAMETERST)); processParameters(itr,transportIN,axisConfiguration); //process INFLOW OMElement inFlow = transport.getFirstChildWithName( new QName(INFLOWST)); if(inFlow !=null){ throw new DeploymentException( Messages.getMessage( DeploymentErrorMsgs.INFLOW_NOT_ALLOWED_IN_TRS_OUT, name)); } OMElement outFlow = transport.getFirstChildWithName( new QName(OUTFLOWST)); if(outFlow !=null){ transportIN.setInFlow( processFlow(outFlow,axisConfiguration)); } OMElement inFaultFlow = transport.getFirstChildWithName( new QName(IN_FAILTFLOW)); if(inFaultFlow !=null){ transportIN.setFaultFlow(processFlow(inFaultFlow,axisConfiguration)); } OMElement outFaultFlow = transport.getFirstChildWithName( new QName(OUT_FAILTFLOW)); if(outFaultFlow !=null){ throw new DeploymentException(Messages.getMessage( DeploymentErrorMsgs.OUTFLOW_NOT_ALLOWED_IN_TRS_IN, name)); } //adding to axis config axisConfiguration.addTransportIn(transportIN); } catch (AxisFault axisFault) { throw new DeploymentException(axisFault); } } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5f07c5c348ac1bfe427010be901bc10e3f0a6182/AxisConfigBuilder.java/clean/modules/core/src/org/apache/axis2/deployment/AxisConfigBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 6568, 4779, 6760, 12, 3198, 433, 87, 67, 4661, 414, 13, 1216, 8587, 503, 288, 3639, 1323, 261, 28007, 67, 4661, 414, 18, 5332, 2134, 10756, 288, 5411, 9514, 382, 3291, 4736, 706, 31, 5411, 531, 12310, 4736, 273, 261, 51, 12310, 13, 433, 87, 67, 4661, 414, 18, 4285, 5621, 5411, 368, 8742, 433, 8134, 655, 1770, 5411, 28839, 1499, 433, 87, 461, 273, 4736, 18, 588, 1499, 12, 10792, 394, 16723, 12, 789, 56, 1985, 10019, 5411, 309, 12, 28007, 461, 480, 2011, 15329, 7734, 514, 508, 273, 433, 87, 461, 18, 588, 14942, 5621, 7734, 4736, 706, 273, 394, 9514, 382, 3291, 12, 2704, 16723, 12, 529, 10019, 7734, 368, 13171, 655, 9380, 667, 7734, 28839, 1499, 433, 87, 2009, 345, 273, 4736, 18, 588, 1499, 12, 2704, 16723, 12, 5237, 1985, 10019, 7734, 309, 12, 28007, 2009, 345, 480, 2011, 13, 288, 10792, 775, 288, 13491, 514, 23268, 461, 273, 433, 87, 2009, 345, 18, 588, 14942, 5621, 13491, 1659, 5971, 797, 273, 1659, 18, 1884, 461, 12, 830, 345, 461, 16, 638, 16, 27573, 4884, 18, 2972, 3830, 1435, 4766, 3639, 263, 29120, 7805, 10663, 13491, 9514, 2223, 5971, 273, 261, 6568, 2223, 13, 5971, 797, 18, 2704, 1442, 5621, 13491, 4736, 706, 18, 542, 12952, 12, 24454, 1769, 10792, 289, 1044, 261, 797, 3990, 425, 13, 288, 13491, 604, 394, 8587, 503, 12, 73, 1769, 10792, 289, 1044, 261, 12195, 9773, 425, 13, 288, 13491, 604, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 6568, 4779, 6760, 12, 3198, 433, 87, 67, 4661, 414, 13, 1216, 8587, 503, 288, 3639, 1323, 261, 28007, 67, 4661, 414, 18, 5332, 2134, 10756, 288, 5411, 9514, 382, 3291, 4736, 706, 31, 5411, 531, 12310, 4736, 273, 261, 51, 12310, 13, 433, 87, 67, 4661, 414, 18, 4285, 5621, 5411, 368, 8742, 433, 8134, 655, 1770, 5411, 28839, 1499, 433, 87, 461, 273, 4736, 18, 588, 1499, 12, 10792, 394, 16723, 12, 789, 56, 1985, 10019, 5411, 309, 12, 28007, 461, 480, 2011, 15329, 7734, 514, 508, 273, 433, 87, 461, 18, 588, 14942, 5621, 7734, 4736, 706, 273, 394, 9514, 382, 3291, 12, 2704, 16723, 12, 529, 10019, 7734, 368, 13171, 655, 2 ]
} catch ( IOException except ) { } catch (SecurityException sx) {
} catch (SecurityException e) { LOG.warn(Messages.format("conf.privilegesError", e)); } catch (IOException e) { LOG.warn(Messages.format("conf.nonCriticalError", e));
public static Properties loadProperties(String resourceName, String fileName) { File file; Properties properties = new Properties(); boolean found = false; // Get detault configuration from the Castor JAR. // Complain if not found. try { properties.load( Configuration.class.getResourceAsStream( resourceName ) ); //-- debug information: //URL url = Configuration.class.getResource( resourceName ); //System.out.println("loading configuration: " + url.toExternalForm()); //-- end debug information found = true; } catch ( Exception except ) { // Do nothing as we will check classpath // and java lib directory below } // Get overriding configuration from the Java // library directory, ignore if not found. If // found merge existing properties. String javaHome = null; try { javaHome = System.getProperty("java.home"); } catch(Exception except) { // Ignore probably running in an applet } if (javaHome != null) { try { file = new File( javaHome, "lib" ); file = new File( file, fileName ); if ( file.exists() ) { properties = new Properties(properties); properties.load( new FileInputStream( file ) ); found = true; } } catch ( IOException except ) { // Do nothing } catch (SecurityException sx) { // Most likely running under an app-server // Do nothing } } //-- Cannot find any castor.properties file(s). if (!found) { throw new RuntimeException( Messages.format( "conf.noDefaultConfigurationFile", fileName ) ); } return properties; }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/97e0e597002f342475f6b5ac7c08b55d5e391a4d/Configuration.java/buggy/trunk/castor/src/main/org/exolab/castor/util/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6183, 1262, 2297, 12, 780, 9546, 16, 514, 3968, 13, 202, 95, 3639, 1387, 3639, 585, 31, 3639, 6183, 1790, 273, 394, 6183, 5621, 3639, 1250, 1392, 273, 629, 31, 7734, 368, 968, 302, 1066, 406, 1664, 628, 326, 19782, 280, 24728, 18, 3639, 368, 1286, 7446, 309, 486, 1392, 18, 3639, 775, 288, 5411, 1790, 18, 945, 12, 4659, 18, 1106, 18, 588, 1420, 17052, 12, 9546, 262, 11272, 13491, 368, 413, 1198, 1779, 30, 5411, 368, 1785, 880, 273, 4659, 18, 1106, 18, 588, 1420, 12, 9546, 11272, 5411, 368, 3163, 18, 659, 18, 8222, 2932, 15174, 1664, 30, 315, 397, 880, 18, 869, 6841, 1204, 10663, 5411, 368, 413, 679, 1198, 1779, 13491, 1392, 273, 638, 31, 3639, 289, 540, 1044, 261, 1185, 1335, 262, 288, 5411, 368, 2256, 5083, 487, 732, 903, 866, 10006, 2398, 368, 471, 2252, 2561, 1867, 5712, 3639, 289, 3639, 368, 968, 19488, 1664, 628, 326, 5110, 3639, 368, 5313, 1867, 16, 2305, 309, 486, 1392, 18, 971, 3639, 368, 1392, 2691, 2062, 1790, 18, 3639, 514, 2252, 8684, 273, 446, 31, 3639, 775, 288, 5411, 2252, 8684, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 8712, 8863, 3639, 289, 3639, 1044, 12, 503, 1335, 13, 288, 5411, 368, 8049, 8656, 3549, 316, 392, 21853, 3639, 289, 7734, 309, 261, 6290, 8684, 480, 446, 13, 288, 5411, 775, 288, 8227, 585, 273, 394, 1387, 12, 2252, 8684, 16, 315, 2941, 6, 11272, 7734, 585, 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, 225, 202, 482, 760, 6183, 1262, 2297, 12, 780, 9546, 16, 514, 3968, 13, 202, 95, 3639, 1387, 3639, 585, 31, 3639, 6183, 1790, 273, 394, 6183, 5621, 3639, 1250, 1392, 273, 629, 31, 7734, 368, 968, 302, 1066, 406, 1664, 628, 326, 19782, 280, 24728, 18, 3639, 368, 1286, 7446, 309, 486, 1392, 18, 3639, 775, 288, 5411, 1790, 18, 945, 12, 4659, 18, 1106, 18, 588, 1420, 17052, 12, 9546, 262, 11272, 13491, 368, 413, 1198, 1779, 30, 5411, 368, 1785, 880, 273, 4659, 18, 1106, 18, 588, 1420, 12, 9546, 11272, 5411, 368, 3163, 18, 659, 18, 8222, 2932, 15174, 1664, 30, 315, 397, 880, 18, 869, 6841, 1204, 10663, 5411, 368, 413, 679, 1198, 1779, 2 ]
throw new NotImplementedError();
public void raise(RubyException exc) { // TODO: How do we raise the exception from the target thread // (as opposed to the calling thread)? //throw exc; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/97a2e6c00e86a04f4922893e5ab540f1c1636188/RubyThread.java/clean/org/jruby/RubyThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 604, 394, 11206, 5621, 225, 1071, 918, 1002, 12, 54, 10340, 503, 3533, 13, 288, 12849, 394, 11206, 5621, 604, 394, 11206, 5621, 282, 368, 2660, 30, 9017, 741, 732, 1002, 326, 1520, 628, 326, 1018, 2650, 12849, 394, 11206, 5621, 604, 394, 11206, 5621, 282, 368, 261, 345, 1061, 7423, 358, 326, 4440, 2650, 9945, 12849, 394, 11206, 5621, 604, 394, 11206, 5621, 282, 368, 12849, 3533, 31, 12849, 394, 11206, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 604, 394, 11206, 5621, 225, 1071, 918, 1002, 12, 54, 10340, 503, 3533, 13, 288, 12849, 394, 11206, 5621, 604, 394, 11206, 5621, 282, 368, 2660, 30, 9017, 741, 732, 1002, 326, 1520, 628, 326, 1018, 2650, 12849, 394, 11206, 5621, 604, 394, 11206, 5621, 282, 368, 261, 345, 1061, 7423, 358, 326, 4440, 2650, 9945, 12849, 394, 11206, 5621, 604, 394, 11206, 5621, 282, 368, 12849, 3533, 31, 12849, 394, 11206, 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 ]
}else{
} else {
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ // Lets get the server this request was aimed for String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("adminserver",host) ; HttpSession session = req.getSession(); imcode.server.User user ; // Check if the user logged on if ( (user = Check.userLoggedOn(req,res,"StartDoc" )) == null ) { return ; } res.setContentType("text/html"); PrintWriter out = res.getWriter(); String whichFile = (String)session.getAttribute("file") ; if (req.getParameter("back")!=null) { res.sendRedirect("AdminQuestions") ; return; } List lines = (List)session.getAttribute("lines"); String date1 = ""; String date2 = ""; String text = ""; if (req.getParameter("save")!=null) { addLineToList(req,lines); IMCServiceRMI.setPollList(imcServer, whichFile+".poll.txt", lines); //tillbaks till res.sendRedirect("AdminQuestions") ; return; }else{ String options = IMCServiceRMI.parseExternalDoc(imcServer, null, OPTION_LINE , user.getLangPrefix(),DOCTYPE_FORTUNES+""); String errMsgDate = IMCServiceRMI.parseExternalDoc(imcServer, null, DATE_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); String errMsgTxt = IMCServiceRMI.parseExternalDoc(imcServer, null, TEXT_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); date1 = ""; date2 = ""; text = ""; if ((req.getParameter("add")).equals("add")){ //hmta parametrar date1 = (req.getParameter("date1")).trim(); date2 = (req.getParameter("date2")).trim(); text = (req.getParameter("text")).trim(); boolean ok = true; if( !checkDate(date1) ) { date1=errMsgDate; ok = false; } if( !checkDate(date2) ) { date2=errMsgDate; ok = false; } if( text.length()<1 ){ text=errMsgTxt; ok = false; } if( ok ){ addLineToList(req,lines); date1 = ""; date2 = ""; text = ""; } } if (req.getParameter("edit")!=null){ //hmta raden som r markerad String row = req.getParameter("AdminFile") ; //lgg till en eventuellt redan uppflyttad rad addLineToList(req,lines); if (!row.equals("No_Choice")){ Integer theRow = Integer.decode(row); Poll poll = (Poll)lines.get(theRow.intValue()); DateRange dates = poll.getDateRange(); date1 = dateForm.format(dates.getStartDate()); date2 = dateForm.format(dates.getEndDate()); text = poll.getQuestion(); lines.remove(poll); } } if (req.getParameter("remove")!=null){ //hmta de rader som ska tas bort String rows[] = req.getParameterValues("AdminFile") ; //ta bort de som ska raderas for(int i=0;i<rows.length;i++){ if (!rows[i].equals("No_Choice")){ lines.remove( lines.get(Integer.parseInt(rows[i])) ); } } } //this part is always done its the creation and sending of the page to the browser session.setAttribute("lines",lines); StringBuffer buff = createOptionList(req,lines, imcServer, user ); //Add info for parsing to a Vector and parse it with a template to a htmlString that is printed Vector values = new Vector(); values.add("#date1#"); values.add(date1); values.add("#date2#"); values.add(date2); values.add("#text#"); values.add(text); values.add("#file#"); values.add(whichFile); values.add("#options#"); values.add(buff.toString()); String parsed = IMCServiceRMI.parseExternalDoc(imcServer, values, ADMIN_TEMPLATE, user.getLangPrefix(), DOCTYPE_FORTUNES+""); out.print(parsed); return; } }//end doPost()
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7c08439e633ade9fd1b35d27e55611d3c71d2e7f/AdminQuestionsFile.java/buggy/servlets/AdminQuestionsFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 95, 202, 202, 759, 511, 2413, 336, 326, 1438, 333, 590, 1703, 279, 381, 329, 364, 202, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202, 780, 709, 71, 2081, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 202, 2940, 2157, 1339, 273, 1111, 18, 588, 2157, 5621, 202, 202, 381, 710, 18, 3567, 18, 1299, 729, 274, 202, 202, 759, 2073, 309, 326, 729, 7545, 603, 202, 202, 430, 261, 261, 1355, 273, 2073, 18, 1355, 19862, 1398, 12, 3658, 16, 455, 10837, 1685, 1759, 6, 8623, 422, 446, 262, 202, 95, 1082, 202, 2463, 274, 202, 202, 97, 202, 202, 455, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 202, 202, 5108, 2289, 596, 273, 400, 18, 588, 2289, 5621, 202, 202, 780, 1492, 812, 273, 261, 780, 13, 3184, 18, 588, 1499, 2932, 768, 7923, 274, 202, 202, 430, 261, 3658, 18, 588, 1662, 2932, 823, 7923, 5, 33, 2011, 13, 202, 95, 1082, 202, 455, 18, 4661, 5961, 2932, 4446, 30791, 1115, 7923, 274, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 682, 2362, 273, 261, 682, 13, 3184, 18, 588, 1499, 2932, 3548, 8863, 202, 202, 780, 1509, 21, 273, 1408, 31, 202, 202, 780, 1509, 22, 273, 1408, 31, 202, 202, 780, 977, 225, 273, 1408, 31, 202, 202, 430, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 95, 202, 202, 759, 511, 2413, 336, 326, 1438, 333, 590, 1703, 279, 381, 329, 364, 202, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202, 780, 709, 71, 2081, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 202, 2940, 2157, 1339, 273, 1111, 18, 588, 2157, 5621, 202, 202, 381, 710, 18, 3567, 18, 1299, 729, 274, 202, 202, 759, 2073, 309, 326, 729, 7545, 603, 202, 202, 430, 261, 261, 1355, 273, 2073, 18, 1355, 19862, 1398, 12, 3658, 16, 455, 10837, 1685, 1759, 6, 8623, 422, 2 ]
private void callEscape() throws SQLException { // Insert EXECUTE into SQL so that proc can be called as normal SQL copyLiteral("EXECUTE "); keyWord = "execute"; // Process procedure name procName = copyProcName(); skipWhiteSpace(); if (in[s] == '(') { // Optional ( ) s++; skipWhiteSpace(); terminator = ')'; } else { terminator = '}'; } out[d++] = ' '; // Process any parameters while (in[s] != terminator) { String name = null; if (in[s] == '@') { // Named parameter name = copyParamName(); skipWhiteSpace(); mustbe('=', true); skipWhiteSpace(); if (in[s] == '?') { copyParam(name, d); } else { // Named param has literal value can't call as RPC procName = ""; } } else if (in[s] == '?') { copyParam(name, d); } else { // Literal parameter can't call as RPC procName = ""; } // Now find terminator or comma while (in[s] != terminator && in[s] != ',') { if (in[s] == '{') { escape(); } else if (in[s] == '\'' || in[s] == '[' || in[s] == '"') { copyString(); } else { out[d++] = in[s++]; } } if (in[s] == ',') { out[d++] = in[s++]; } skipWhiteSpace(); } if (terminator == ')') { s++; // Elide } terminator = '}'; }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/7280c48789e4df146f790790062fb954f7dc9903/SQLParser.java/clean/src/main/net/sourceforge/jtds/jdbc/SQLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 745, 8448, 1435, 1216, 6483, 288, 3639, 368, 8040, 24508, 9099, 1368, 3063, 1427, 716, 5418, 848, 506, 2566, 487, 2212, 3063, 3639, 1610, 6177, 2932, 15271, 9099, 315, 1769, 3639, 498, 3944, 273, 315, 8837, 14432, 3639, 368, 4389, 12131, 508, 3639, 5418, 461, 273, 1610, 15417, 461, 5621, 3639, 2488, 23108, 5621, 7734, 309, 261, 267, 63, 87, 65, 422, 7321, 13, 288, 368, 4055, 261, 262, 5411, 272, 9904, 31, 2488, 23108, 5621, 5411, 24965, 273, 5777, 31, 3639, 289, 469, 288, 5411, 24965, 273, 9571, 31, 3639, 289, 7734, 596, 63, 72, 9904, 65, 273, 296, 12386, 7734, 368, 4389, 1281, 1472, 3639, 1323, 261, 267, 63, 87, 65, 480, 24965, 13, 288, 5411, 514, 508, 273, 446, 31, 13491, 309, 261, 267, 63, 87, 65, 422, 4622, 6134, 288, 7734, 368, 9796, 1569, 7734, 508, 273, 1610, 24635, 5621, 7734, 2488, 23108, 5621, 7734, 1297, 2196, 2668, 33, 2187, 638, 1769, 7734, 2488, 23108, 5621, 27573, 309, 261, 267, 63, 87, 65, 422, 6787, 13, 288, 10792, 1610, 786, 12, 529, 16, 302, 1769, 7734, 289, 469, 288, 10792, 368, 9796, 579, 711, 7158, 460, 848, 1404, 745, 487, 8295, 10792, 5418, 461, 273, 1408, 31, 7734, 289, 5411, 289, 469, 309, 261, 267, 63, 87, 65, 422, 6787, 13, 288, 7734, 1610, 786, 12, 529, 16, 302, 1769, 5411, 289, 469, 288, 7734, 368, 14392, 1569, 848, 1404, 745, 487, 8295, 7734, 5418, 461, 273, 1408, 31, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 745, 8448, 1435, 1216, 6483, 288, 3639, 368, 8040, 24508, 9099, 1368, 3063, 1427, 716, 5418, 848, 506, 2566, 487, 2212, 3063, 3639, 1610, 6177, 2932, 15271, 9099, 315, 1769, 3639, 498, 3944, 273, 315, 8837, 14432, 3639, 368, 4389, 12131, 508, 3639, 5418, 461, 273, 1610, 15417, 461, 5621, 3639, 2488, 23108, 5621, 7734, 309, 261, 267, 63, 87, 65, 422, 7321, 13, 288, 368, 4055, 261, 262, 5411, 272, 9904, 31, 2488, 23108, 5621, 5411, 24965, 273, 5777, 31, 3639, 289, 469, 288, 5411, 24965, 273, 9571, 31, 3639, 289, 7734, 596, 63, 72, 9904, 65, 273, 296, 12386, 7734, 368, 4389, 1281, 1472, 3639, 1323, 261, 267, 63, 87, 65, 480, 24965, 13, 2 ]
startTime = System.currentTimeMillis();
int nbTasks = 3 * engine.length; log("Creating " + nbTasks + " intervals"); int intheight = IMAGE_HEIGHT / nbTasks;
private void render() { // Checks there are some engines usde if (li_enginesUsed.getItems().length == 0) { showMessageAll("No engines ... contact the dispatcher"); return; } // Toggles the rendering flag.. b_render = true; // Benchmarking stuff... startTime = System.currentTimeMillis(); Interval interval; String keys[] = li_enginesUsed.getItems(); engines = keys.length; log("Creating " + intervals + " intervals"); intervals = 3 * keys.length; intheight = height / intervals; /* Sets the number of intervals not yet calculated to 'all' */ i_left = intervals; /* Creates the interval stack */ int_stack = new Stack(); for (int i = 0; i < intervals; i++) { // log("Creating inter : "+i); Interval newint = new Interval( i, width, height, i * intheight, (i + 1) * intheight, intervals); int_stack.push(newint); } engine = null; engine = new C3DRenderingEngine[keys.length]; C3DRenderingEngine tmp; if (keys != null) { for (int e = 0; e < keys.length; e++) { /* Assigns one initial interval to each engine */ if (!int_stack.empty()) { interval = (Interval) int_stack.pop(); tmp = (C3DRenderingEngine) h_engines.get(keys[e]); if (tmp != null) { tmp.setScene(scene); engine[e] = tmp; /* Triggers the calculation of this interval on engine e */ tmp.render(e, interval); log( "Interval " + interval.number + " assigned to engine " + keys[e] + "[" + e + "]"); } else { log( "Failed to assign an interval to engine " + keys[e]); h_engines.get(keys[e]); } } } } else b_render = false; }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/80a90996a87b23c561b5cc820ea57e1356c218b2/C3DDispatcher.java/clean/src/org/objectweb/proactive/examples/c3d/C3DDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1743, 1435, 202, 95, 202, 202, 759, 13074, 1915, 854, 2690, 20504, 584, 323, 202, 202, 430, 261, 549, 67, 275, 14660, 6668, 18, 588, 3126, 7675, 2469, 422, 374, 13, 202, 202, 95, 1082, 202, 4500, 1079, 1595, 2932, 2279, 20504, 1372, 5388, 326, 7393, 8863, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 399, 23972, 1040, 326, 9782, 2982, 838, 202, 202, 70, 67, 5902, 273, 638, 31, 202, 202, 759, 21854, 310, 10769, 2777, 202, 202, 1937, 950, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 4006, 3673, 31, 202, 202, 780, 1311, 8526, 273, 4501, 67, 275, 14660, 6668, 18, 588, 3126, 5621, 202, 202, 275, 14660, 273, 1311, 18, 2469, 31, 202, 202, 1330, 2932, 11092, 315, 397, 10389, 397, 315, 10389, 8863, 202, 202, 19812, 273, 890, 380, 1311, 18, 2469, 31, 202, 202, 267, 451, 1274, 273, 2072, 342, 10389, 31, 202, 202, 20308, 11511, 326, 1300, 434, 10389, 486, 4671, 8894, 358, 296, 454, 11, 1195, 202, 202, 77, 67, 4482, 273, 10389, 31, 202, 202, 20308, 10210, 326, 3673, 2110, 1195, 202, 202, 474, 67, 3772, 273, 394, 7283, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 10389, 31, 277, 27245, 202, 202, 95, 1082, 202, 759, 1377, 613, 2932, 11092, 1554, 294, 13773, 77, 1769, 1082, 202, 4006, 394, 474, 273, 9506, 202, 2704, 10803, 12, 6862, 202, 77, 16, 6862, 202, 2819, 16, 6862, 202, 4210, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 1435, 202, 95, 202, 202, 759, 13074, 1915, 854, 2690, 20504, 584, 323, 202, 202, 430, 261, 549, 67, 275, 14660, 6668, 18, 588, 3126, 7675, 2469, 422, 374, 13, 202, 202, 95, 1082, 202, 4500, 1079, 1595, 2932, 2279, 20504, 1372, 5388, 326, 7393, 8863, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 399, 23972, 1040, 326, 9782, 2982, 838, 202, 202, 70, 67, 5902, 273, 638, 31, 202, 202, 759, 21854, 310, 10769, 2777, 202, 202, 1937, 950, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 4006, 3673, 31, 202, 202, 780, 1311, 8526, 273, 4501, 67, 275, 14660, 6668, 18, 588, 3126, 5621, 202, 202, 275, 14660, 273, 1311, 2 ]
try { enumeration = ClassHelper.class.getClassLoader().getResources(resourceName); } catch (IOException e) { }
enumeration = (Enumeration) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { return ClassHelper.class.getClassLoader().getResources(resourceName); } catch (IOException e) { return null; } } });
public static Enumeration getResources(String resourceName, Class callingClass) { Enumeration enumeration = null; try { enumeration = Thread.currentThread().getContextClassLoader().getResources(resourceName); } catch (IOException e) { } if (enumeration == null) { try { enumeration = ClassHelper.class.getClassLoader().getResources(resourceName); } catch (IOException e) { } } if (enumeration == null) { try { enumeration = callingClass.getClassLoader().getResources(resourceName); } catch (IOException e) { } } return enumeration; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/474b57065fd42f121b8743a207c223c19f72c625/ClassHelper.java/clean/mule/src/java/org/mule/util/ClassHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 13864, 14590, 12, 780, 9546, 16, 1659, 4440, 797, 13, 288, 3639, 13864, 16836, 273, 446, 31, 3639, 775, 288, 5411, 16836, 273, 4884, 18, 2972, 3830, 7675, 29120, 7805, 7675, 588, 3805, 12, 3146, 461, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 3639, 289, 3639, 309, 261, 7924, 7067, 422, 446, 13, 288, 5411, 775, 288, 7734, 16836, 273, 1659, 2276, 18, 1106, 18, 588, 7805, 7675, 588, 3805, 12, 3146, 461, 1769, 5411, 289, 1044, 261, 14106, 425, 13, 288, 5411, 289, 3639, 289, 3639, 309, 261, 7924, 7067, 422, 446, 13, 288, 5411, 775, 288, 7734, 16836, 273, 4440, 797, 18, 588, 7805, 7675, 588, 3805, 12, 3146, 461, 1769, 5411, 289, 1044, 261, 14106, 425, 13, 288, 5411, 289, 3639, 289, 3639, 327, 16836, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 13864, 14590, 12, 780, 9546, 16, 1659, 4440, 797, 13, 288, 3639, 13864, 16836, 273, 446, 31, 3639, 775, 288, 5411, 16836, 273, 4884, 18, 2972, 3830, 7675, 29120, 7805, 7675, 588, 3805, 12, 3146, 461, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 3639, 289, 3639, 309, 261, 7924, 7067, 422, 446, 13, 288, 5411, 775, 288, 7734, 16836, 273, 1659, 2276, 18, 1106, 18, 588, 7805, 7675, 588, 3805, 12, 3146, 461, 1769, 5411, 289, 1044, 261, 14106, 425, 13, 288, 5411, 289, 3639, 289, 3639, 309, 261, 7924, 7067, 422, 446, 13, 288, 5411, 775, 288, 7734, 16836, 273, 4440, 797, 18, 588, 7805, 7675, 588, 3805, 12, 3146, 461, 1769, 5411, 2 ]
case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString();
case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString();
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_UTC: return wrap_double (jsStaticFunction_UTC(args)); case ConstructorId_parse: return wrap_double (jsStaticFunction_parse(ScriptRuntime.toString(args, 0))); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toGMTString: case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear(cx)); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setMilliseconds(args)); case Id_setUTCMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMilliseconds(args)); case Id_setSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setSeconds(args)); case Id_setUTCSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCSeconds(args)); case Id_setMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setMinutes(args)); case Id_setUTCMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMinutes(args)); case Id_setHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setHours(args)); case Id_setUTCHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCHours(args)); case Id_setDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setDate(args)); case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args)); case Id_setMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setMonth(args)); case Id_setUTCMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMonth(args)); case Id_setFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setFullYear(args)); case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCFullYear(args)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1620, 261, 2039, 548, 13, 288, 3639, 648, 11417, 548, 67, 11471, 30, 327, 2193, 67, 9056, 5411, 261, 2924, 5788, 2083, 67, 11471, 12, 1968, 10019, 3639, 648, 11417, 548, 67, 2670, 30, 327, 2193, 67, 9056, 5411, 261, 2924, 5788, 2083, 67, 2670, 12, 3651, 5576, 18, 10492, 12, 1968, 16, 374, 3719, 1769, 3639, 648, 3124, 67, 12316, 30, 5411, 327, 3828, 6293, 12, 1968, 16, 15261, 422, 446, 1769, 3639, 648, 3124, 67, 10492, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 5411, 3828, 2083, 67, 10492, 5621, 3639, 648, 3124, 67, 869, 950, 780, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 5411, 3828, 2083, 67, 869, 950, 780, 5621, 3639, 648, 3124, 67, 869, 1626, 780, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 5411, 3828, 2083, 67, 869, 1626, 780, 5621, 3639, 648, 3124, 67, 869, 3916, 780, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 5411, 3828, 2083, 67, 869, 3916, 780, 5621, 3639, 648, 3124, 67, 869, 3916, 950, 780, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 5411, 3828, 2083, 67, 869, 3916, 950, 780, 5621, 3639, 648, 3124, 67, 869, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1620, 261, 2039, 548, 13, 288, 3639, 648, 11417, 548, 67, 11471, 30, 327, 2193, 67, 9056, 5411, 261, 2924, 5788, 2083, 67, 11471, 12, 1968, 10019, 3639, 648, 11417, 548, 67, 2670, 30, 327, 2193, 67, 9056, 5411, 261, 2924, 5788, 2083, 67, 2670, 12, 3651, 5576, 18, 10492, 12, 1968, 16, 374, 3719, 1769, 3639, 648, 3124, 67, 12316, 30, 5411, 327, 3828, 6293, 12, 1968, 16, 15261, 422, 446, 1769, 3639, 648, 3124, 67, 10492, 30, 327, 2863, 2503, 12, 2 ]
_loop201:
_loop833:
public final void throwsClause() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST throwsClause_AST = null; AST tmp150_AST = null; tmp150_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp150_AST); match(LITERAL_throws); nls(); identifier(); astFactory.addASTChild(currentAST, returnAST); { _loop201: do { if ((LA(1)==COMMA)) { match(COMMA); nls(); identifier(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop201; } } while (true); } nls(); throwsClause_AST = (AST)currentAST.root; returnAST = throwsClause_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/0116bf864ced52bd188b9d77a4ac03fe93680645/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1216, 7044, 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, 1216, 7044, 67, 9053, 273, 446, 31, 9506, 202, 9053, 1853, 23014, 67, 9053, 273, 446, 31, 202, 202, 5645, 23014, 67, 9053, 273, 3364, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 18, 6540, 9053, 2375, 12, 2972, 9053, 16, 1853, 23014, 67, 9053, 1769, 202, 202, 1916, 12, 23225, 67, 15069, 1769, 202, 202, 82, 3251, 5621, 202, 202, 5644, 5621, 202, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 202, 202, 95, 202, 202, 67, 6498, 6734, 30, 202, 202, 2896, 288, 1082, 202, 430, 14015, 2534, 12, 21, 13, 631, 4208, 5535, 3719, 288, 9506, 202, 1916, 12, 4208, 5535, 1769, 9506, 202, 82, 3251, 5621, 9506, 202, 5644, 5621, 9506, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 8820, 389, 6498, 6734, 31, 1082, 202, 97, 6862, 202, 97, 1323, 261, 3767, 1769, 202, 202, 97, 202, 202, 82, 3251, 5621, 202, 202, 15069, 7044, 67, 9053, 273, 261, 9053, 13, 2972, 9053, 18, 3085, 31, 202, 202, 2463, 9053, 273, 1216, 7044, 67, 9053, 31, 202, 97, 2, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1216, 7044, 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, 1216, 7044, 67, 9053, 273, 446, 31, 9506, 202, 9053, 1853, 23014, 67, 9053, 273, 446, 31, 202, 202, 5645, 23014, 67, 9053, 273, 3364, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 18, 6540, 9053, 2375, 12, 2972, 9053, 16, 1853, 23014, 67, 9053, 1769, 202, 202, 1916, 12, 23225, 67, 15069, 1769, 202, 202, 82, 3251, 5621, 202, 202, 5644, 5621, 202, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 202, 2 ]
for(int i=0;i<k;i++) if(readers[i] != null) readers[i].close(); for(int i=0;i<n-k;i++) if(writers[i] != null) writers[i].close();
private void realEncode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { System.err.println("************* Encoding "+dataBlockStatus.length+" -> "+checkBlockStatus.length+" *************"); Logger.minor(this, "Doing encode: "+dataBlockStatus.length+" data blocks, "+checkBlockStatus.length+" check blocks, block length "+blockLength+" with "+this); if(dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if(dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] dataPackets = new Buffer[k]; Buffer[] checkPackets = new Buffer[n-k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[k]; OutputStream[] writers = new OutputStream[n-k]; int[] toEncode = new int[n-k]; int numberToEncode = 0; // can be less than n-k byte[] realBuffer = new byte[n * STRIPE_SIZE]; for(int i=0;i<k;i++) dataPackets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<n-k;i++) checkPackets[i] = new Buffer(realBuffer, (i+k)*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<dataBlockStatus.length;i++) { buckets[i] = dataBlockStatus[i].getData(); long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size"); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); } readers[i] = new DataInputStream(buckets[i].getInputStream()); } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { buckets[i+k] = bf.makeBucket(blockLength); writers[i] = buckets[i+k].getOutputStream(); toEncode[numberToEncode++] = i+k; } else { writers[i] = null; } } if(numberToEncode > 0) { // Do the (striped) decode for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { // Read the data in first for(int i=0;i<k;i++) { readers[i].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } // Do the encode // Not shuffled long startTime = System.currentTimeMillis(); code.encode(dataPackets, checkPackets, toEncode); long endTime = System.currentTimeMillis(); Logger.minor(this, "Stripe encode took "+(endTime-startTime)+" ms for k="+k+", n="+n+", stripeSize="+STRIPE_SIZE); // packets now contains an array of decoded blocks, in order // Write the data out for(int i=k;i<n;i++) { if(writers[i-k] != null) writers[i-k].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } } for(int i=0;i<k;i++) if(readers[i] != null) readers[i].close(); for(int i=0;i<n-k;i++) if(writers[i] != null) writers[i].close(); // Set new buckets only after have a successful decode. for(int i=0;i<checkBlockStatus.length;i++) { Bucket data = buckets[i+k]; if(data == null) throw new NullPointerException(); checkBlockStatus[i].setData(data); } System.err.println("************* Encoded "+dataBlockStatus.length+" -> "+checkBlockStatus.length+" *************"); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/fbdde7654afdefd24ae4365520a38c1c680248a7/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2863, 5509, 12, 5521, 768, 1768, 8526, 501, 1768, 1482, 16, 5385, 768, 1768, 8526, 866, 1768, 1482, 16, 509, 25367, 16, 7408, 1733, 16222, 13, 1216, 1860, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 1644, 23490, 13400, 13773, 892, 1768, 1482, 18, 2469, 9078, 317, 13773, 1893, 1768, 1482, 18, 2469, 9078, 380, 1644, 1007, 8863, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3244, 310, 2017, 30, 13773, 892, 1768, 1482, 18, 2469, 9078, 501, 4398, 16, 13773, 1893, 1768, 1482, 18, 2469, 9078, 866, 4398, 16, 1203, 769, 13773, 2629, 1782, 9078, 598, 13773, 2211, 1769, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 397, 866, 1768, 1482, 18, 2469, 480, 290, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 480, 417, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 1892, 8526, 501, 27328, 273, 394, 3525, 63, 79, 15533, 202, 202, 1892, 8526, 866, 27328, 273, 394, 3525, 63, 82, 17, 79, 15533, 202, 202, 4103, 8526, 9169, 273, 394, 7408, 63, 82, 15533, 202, 202, 751, 4348, 8526, 16527, 273, 394, 29382, 63, 79, 15533, 202, 202, 4632, 8526, 18656, 273, 394, 8962, 63, 82, 17, 79, 15533, 202, 202, 474, 8526, 358, 5509, 273, 394, 509, 63, 82, 17, 79, 15533, 202, 202, 474, 1300, 774, 5509, 273, 374, 31, 368, 848, 506, 5242, 2353, 290, 17, 79, 9506, 202, 7229, 8526, 2863, 1892, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2863, 5509, 12, 5521, 768, 1768, 8526, 501, 1768, 1482, 16, 5385, 768, 1768, 8526, 866, 1768, 1482, 16, 509, 25367, 16, 7408, 1733, 16222, 13, 1216, 1860, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 1644, 23490, 13400, 13773, 892, 1768, 1482, 18, 2469, 9078, 317, 13773, 1893, 1768, 1482, 18, 2469, 9078, 380, 1644, 1007, 8863, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3244, 310, 2017, 30, 13773, 892, 1768, 1482, 18, 2469, 9078, 501, 4398, 16, 13773, 1893, 1768, 1482, 18, 2469, 9078, 866, 4398, 16, 1203, 769, 13773, 2629, 1782, 9078, 598, 13773, 2211, 1769, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 397, 866, 1768, 1482, 2 ]
LoadFile(Main db, Scriptable scope, String fileName) {
LoadFile(DebugGui debugGui, Scriptable scope, String fileName) {
LoadFile(Main db, Scriptable scope, String fileName) { this.scope = scope; this.fileName = fileName; this.db = db; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4444, 812, 12, 2829, 18070, 1198, 18070, 16, 22780, 2146, 16, 514, 3968, 13, 288, 3639, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 17812, 273, 3968, 31, 3639, 333, 18, 1966, 273, 1319, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4444, 812, 12, 2829, 18070, 1198, 18070, 16, 22780, 2146, 16, 514, 3968, 13, 288, 3639, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 17812, 273, 3968, 31, 3639, 333, 18, 1966, 273, 1319, 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 ]
private void sendMail ( IMCServiceInterface imcref, String[] poll_param, String meta_id, TreeMap textQuestions, TreeMap textAnswers ) throws IOException { String mailFromAddress = getText( imcref, Integer.parseInt(meta_id), Integer.parseInt(poll_param[9]) ); String mailToAddress = getText( imcref, Integer.parseInt(meta_id), Integer.parseInt(poll_param[8]) ); // comma-separated string; String mailSubject = getText( imcref, Integer.parseInt(meta_id), Integer.parseInt(poll_param[10]) ); // get poll name TextDomainObject poll_name = new TextDomainObject("",0); if ( poll_param != null && poll_param.length !=0 && poll_param[1] != null ){ int text_no = Integer.parseInt( poll_param[1] ); poll_name = imcref.getText(Integer.parseInt(meta_id), text_no); } // Create the mail body StringBuffer mail = new StringBuffer(); mail.append( "Enktsvar \n" ); // Lets get todays date SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-dd HH:mm"); Date toDay = new Date() ; mail.append( formatter.format(toDay) + "\n" ) ; mail.append( "Enkt: " + poll_name + "\n" ); mail.append( "Meta_Id: " + meta_id + "\n" ); Set answers = textAnswers.entrySet(); Iterator answersIter = answers.iterator(); while ( answersIter.hasNext() ){ Map.Entry questionNo = (Map.Entry)answersIter.next(); mail.append( "___________________________________________" + "\n" ); //mail.append( "Frga " + (String)questionNo.getKey() + "\n"); mail.append( "Frga: \n"); mail.append(textQuestions.get(questionNo.getKey() ) + "\n\n" ); mail.append("Svar: \n" + (String)questionNo.getValue() + "\n"); mail.append("\n"); } // Send the mail SMTP smtp = imcref.getSMTP() ; smtp.sendMailWait(mailFromAddress, mailToAddress, mailSubject, mail.toString()) ; log.debug("Sending mail to "+mailToAddress); } // end of sendMail()
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d060a6873350aa2972f54c354321cf3756f50e6f/PollHandler.java/buggy/server/src/com/imcode/imcms/servlet/misc/PollHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 6759, 261, 6246, 39, 18348, 709, 71, 1734, 16, 514, 8526, 7672, 67, 891, 16, 514, 2191, 67, 350, 16, 18701, 16381, 977, 30791, 1115, 16, 16381, 977, 19543, 262, 1216, 1860, 288, 202, 202, 780, 4791, 1265, 1887, 273, 6701, 12, 709, 71, 1734, 16, 2144, 18, 2670, 1702, 12, 3901, 67, 350, 3631, 2144, 18, 2670, 1702, 12, 13835, 67, 891, 63, 29, 5717, 11272, 202, 202, 780, 4791, 774, 1887, 282, 273, 6701, 12, 709, 71, 1734, 16, 2144, 18, 2670, 1702, 12, 3901, 67, 350, 3631, 2144, 18, 2670, 1702, 12, 13835, 67, 891, 63, 28, 5717, 11272, 368, 8716, 17, 24622, 533, 31, 202, 202, 780, 4791, 6638, 377, 273, 6701, 12, 709, 71, 1734, 16, 2144, 18, 2670, 1702, 12, 3901, 67, 350, 3631, 2144, 18, 2670, 1702, 12, 13835, 67, 891, 63, 2163, 5717, 11272, 202, 202, 759, 336, 7672, 508, 202, 202, 1528, 3748, 921, 7672, 67, 529, 273, 394, 3867, 3748, 921, 2932, 3113, 20, 1769, 202, 202, 430, 261, 7672, 67, 891, 480, 446, 597, 7672, 67, 891, 18, 2469, 480, 20, 597, 7672, 67, 891, 63, 21, 65, 480, 446, 262, 95, 1082, 202, 474, 977, 67, 2135, 273, 2144, 18, 2670, 1702, 12, 7672, 67, 891, 63, 21, 65, 11272, 1082, 202, 13835, 67, 529, 273, 709, 71, 1734, 18, 588, 1528, 12, 4522, 18, 2670, 1702, 12, 3901, 67, 350, 3631, 977, 67, 2135, 1769, 202, 202, 97, 6862, 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, 377, 3238, 918, 1366, 6759, 261, 6246, 39, 18348, 709, 71, 1734, 16, 514, 8526, 7672, 67, 891, 16, 514, 2191, 67, 350, 16, 18701, 16381, 977, 30791, 1115, 16, 16381, 977, 19543, 262, 1216, 1860, 288, 202, 202, 780, 4791, 1265, 1887, 273, 6701, 12, 709, 71, 1734, 16, 2144, 18, 2670, 1702, 12, 3901, 67, 350, 3631, 2144, 18, 2670, 1702, 12, 13835, 67, 891, 63, 29, 5717, 11272, 202, 202, 780, 4791, 774, 1887, 282, 273, 6701, 12, 709, 71, 1734, 16, 2144, 18, 2670, 1702, 12, 3901, 67, 350, 3631, 2144, 18, 2670, 1702, 12, 13835, 67, 891, 63, 28, 5717, 11272, 368, 8716, 17, 24622, 533, 31, 202, 202, 780, 4791, 6638, 377, 273, 2 ]
l.addFirst(obj);
l.addFirst(obj);
public void addAtHead(Object obj) throws QueueClosedException { if(closed) throw new QueueClosedException(); if ( this.num_markers > 0 ) throw new QueueClosedException("LinkedListQueue.addAtHead(): queue has been closed. You can not add more elements. " + "Waiting for removal of remaining elements."); /*lock the queue from other threads*/ synchronized(mutex) { l.addFirst(obj); /*wake up all the threads that are waiting for the lock to be released*/ mutex.notifyAll(); } }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/4071daaa0d7c1c82cdc06c63ce8b9cfb7b0eff8c/LinkedListQueue.java/buggy/src/org/jgroups/util/LinkedListQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 861, 1414, 12, 921, 1081, 13, 1216, 7530, 7395, 503, 288, 3639, 309, 12, 12204, 13, 5411, 604, 394, 7530, 7395, 503, 5621, 3639, 309, 261, 333, 18, 2107, 67, 22807, 405, 374, 262, 5411, 604, 394, 7530, 7395, 503, 2932, 13174, 682, 3183, 18, 1289, 861, 1414, 13332, 2389, 711, 2118, 4375, 18, 4554, 848, 486, 527, 1898, 2186, 18, 315, 397, 25083, 282, 315, 15946, 364, 14817, 434, 4463, 2186, 1199, 1769, 3639, 1748, 739, 326, 2389, 628, 1308, 7403, 5549, 3639, 3852, 12, 29946, 13, 288, 202, 565, 328, 18, 1289, 3759, 12, 2603, 1769, 5411, 1748, 91, 911, 731, 777, 326, 7403, 716, 854, 7336, 364, 326, 2176, 358, 506, 15976, 5549, 5411, 9020, 18, 12336, 1595, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 861, 1414, 12, 921, 1081, 13, 1216, 7530, 7395, 503, 288, 3639, 309, 12, 12204, 13, 5411, 604, 394, 7530, 7395, 503, 5621, 3639, 309, 261, 333, 18, 2107, 67, 22807, 405, 374, 262, 5411, 604, 394, 7530, 7395, 503, 2932, 13174, 682, 3183, 18, 1289, 861, 1414, 13332, 2389, 711, 2118, 4375, 18, 4554, 848, 486, 527, 1898, 2186, 18, 315, 397, 25083, 282, 315, 15946, 364, 14817, 434, 4463, 2186, 1199, 1769, 3639, 1748, 739, 326, 2389, 628, 1308, 7403, 5549, 3639, 3852, 12, 29946, 13, 288, 202, 565, 328, 18, 1289, 3759, 12, 2603, 1769, 5411, 1748, 91, 911, 731, 777, 326, 7403, 716, 854, 7336, 364, 326, 2176, 358, 506, 15976, 2 ]
if ( debug ) { System.out.println(""+returnObj); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable{ if (isInvalidReference) throw new NoSuchObjectException("reference is invalid"); String methodName = method.getName(); if (method.getDeclaringClass() == Object.class ) { if ( methodName.equals( "toString" )) return "proxy="+getProxyInfo().getInterface().getName()+";deployment="+this.deploymentID+";pk="+this.primaryKey; else if (methodName.equals( "equals" )) return Boolean.FALSE; else if (methodName.equals("hashCode")) return new Integer(this.hashCode()); else throw new UnsupportedOperationException("Unkown method: "+method); } else if (method.getDeclaringClass() == IntraVmProxy.class ) { if (methodName.equals("writeReplace")) return _writeReplace( proxy ); else throw new UnsupportedOperationException("Unkown method: "+method); } /* Preserve the context When entering a container the ThreadContext will change to match the context of the bean being serviced. That changes the current context of the calling bean, so the context must be preserved and then resourced after request is serviced. The context is restored in the finnaly clause below. We could have same some typing by obtaining a ref to the ThreadContext and then setting the current ThreadContext to null, but this results in more object creation since the container will create a new context on the invoke( ) operation if the current context is null. Getting the context values and resetting them reduces object creation. It's ugly but performant. */ if ( debug ) { System.out.println("\n--------------------------------------------------------"); System.out.println(""+method); System.out.println(""+proxy); System.out.println(""); } ThreadContext cntext = null; DeploymentInfo depInfo = null; Object prmryKey = null; byte crrntOperation = (byte)0; Object scrtyIdentity = null; if(ThreadContext.isValid()){ cntext = ThreadContext.getThreadContext(); depInfo = cntext.getDeploymentInfo(); prmryKey = cntext.getPrimaryKey(); crrntOperation = cntext.getCurrentOperation(); scrtyIdentity = cntext.getSecurityIdentity(); } try{ if(doIntraVmCopy==true){// copy arguments as required by the specification // demarcate the begining of the copy operation. IntraVmCopyMonitor.preCopyOperation(); args = copyArgs(args); // demarcate end of copy operation IntraVmCopyMonitor.postCopyOperation(); Object returnObj = _invoke(proxy,method,args); if ( debug ) { System.out.println(""+returnObj); } // demarcate the begining of the copy operation. IntraVmCopyMonitor.preCopyOperation(); returnObj = copyObj(returnObj); if ( debug ) { System.out.println(""+returnObj); }// return copyObj(returnObj); return returnObj; // postCopyOperation() is handled in try/finally clause. } else { /* * The EJB 1.1 specification requires that arguments and return values between beans adhere to the * Java RMI copy semantics which requires that the all arguments be passed by value (copied) and * never passed as references. However, it is possible for the system administrator to turn off the * copy operation so that arguments and return values are passed by reference as a performance optimization. * Simply setting the org.openejb.core.EnvProps.INTRA_VM_COPY property to FALSE will cause * IntraVM to bypass the copy operations; arguments and return values will be passed by reference not value. * This property is, by default, always TRUE but it can be changed to FALSE by setting it as a System property * or a property of the Property argument when invoking OpenEJB.init(props). The doIntraVmCopy variable is set to that * property in the static block for this class. */ return _invoke(proxy,method,args); } } finally { // restore the context if(cntext!=null){ cntext.set(depInfo, prmryKey, scrtyIdentity); cntext.setCurrentOperation(crrntOperation); } if(doIntraVmCopy==true){ // demarcate end of copy operation // postCopyOperation() is executed here in case of an exception IntraVmCopyMonitor.postCopyOperation(); } } }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/19b310d4a4308bdf16072bc85924fbaf2e903df7/BaseEjbProxyHandler.java/clean/openejb0/src/main/org/openejb/core/ivm/BaseEjbProxyHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 1216, 4206, 95, 3639, 309, 261, 291, 1941, 2404, 13, 604, 394, 5823, 921, 503, 2932, 6180, 353, 2057, 8863, 3639, 514, 4918, 273, 707, 18, 17994, 5621, 3639, 309, 261, 2039, 18, 588, 3456, 14682, 1435, 422, 1033, 18, 1106, 262, 288, 5411, 309, 261, 4918, 18, 14963, 12, 315, 10492, 6, 8623, 4202, 327, 315, 5656, 1546, 15, 588, 3886, 966, 7675, 588, 1358, 7675, 17994, 1435, 9078, 31, 21704, 1546, 15, 2211, 18, 21704, 734, 9078, 31, 5465, 1546, 15, 2211, 18, 8258, 653, 31, 5411, 469, 309, 261, 2039, 461, 18, 14963, 12, 315, 14963, 6, 8623, 377, 327, 3411, 18, 21053, 31, 5411, 469, 309, 261, 2039, 461, 18, 14963, 2932, 2816, 1085, 6, 3719, 377, 327, 394, 2144, 12, 2211, 18, 2816, 1085, 10663, 5411, 469, 604, 394, 13172, 2932, 984, 79, 995, 707, 30, 13773, 2039, 1769, 3639, 289, 469, 309, 261, 2039, 18, 588, 3456, 14682, 1435, 422, 657, 2033, 22143, 3886, 18, 1106, 262, 288, 5411, 309, 261, 2039, 461, 18, 14963, 2932, 2626, 5729, 6, 3719, 1377, 327, 389, 2626, 5729, 12, 2889, 11272, 5411, 469, 604, 394, 13172, 2932, 984, 79, 995, 707, 30, 13773, 2039, 1769, 3639, 289, 540, 1748, 18346, 6527, 326, 819, 5411, 5203, 19014, 279, 1478, 326, 4884, 1042, 903, 2549, 358, 845, 326, 819, 434, 5411, 326, 3931, 3832, 1156, 72, 18, 12466, 3478, 326, 783, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 1216, 4206, 95, 3639, 309, 261, 291, 1941, 2404, 13, 604, 394, 5823, 921, 503, 2932, 6180, 353, 2057, 8863, 3639, 514, 4918, 273, 707, 18, 17994, 5621, 3639, 309, 261, 2039, 18, 588, 3456, 14682, 1435, 422, 1033, 18, 1106, 262, 288, 5411, 309, 261, 4918, 18, 14963, 12, 315, 10492, 6, 8623, 4202, 327, 315, 5656, 1546, 15, 588, 3886, 966, 7675, 588, 1358, 7675, 17994, 1435, 9078, 31, 21704, 1546, 15, 2211, 18, 21704, 734, 9078, 31, 5465, 1546, 15, 2211, 18, 8258, 653, 31, 5411, 469, 309, 261, 2039, 461, 18, 14963, 12, 315, 14963, 6, 8623, 377, 327, 3411, 2 ]
assertTrue(message.indexOf("FORG0001") > -1);
assertTrue(message.indexOf("FORG0001") > -1 | message.indexOf("FOCH0002") > -1);
public void testMax() throws XPathException { ResourceSet result = null; String r = ""; String message; try { result = service.query( "max((1, 2))" ); r = (String) result.getResource(0).getContent(); assertEquals( "2", r ); result = service.query( "max((<a>1</a>, <b>2</b>))" ); r = (String) result.getResource(0).getContent(); assertEquals( "2", r ); result = service.query( "max(())" ); assertEquals( 0, result.getSize()); result = service.query("max((xs:dateTime('2005-12-19T16:22:40.006+01:00'), xs:dateTime('2005-12-19T16:29:40.321+01:00')))"); r = (String) result.getResource(0).getContent(); assertEquals( "2005-12-19T16:29:40.321+01:00", r ); result = service.query("max(('a', 'b'))"); r = (String) result.getResource(0).getContent(); assertEquals( "b", r ); try { message = ""; result = service.query("max((xs:dateTime('2005-12-19T16:22:40.006+01:00'), 'a'))"); } catch (XMLDBException e) { message = e.getMessage(); } assertTrue(message.indexOf("FORG0006") > -1); try { message = ""; result = service.query("max(1, 2)"); } catch (XMLDBException e) { message = e.getMessage(); } assertTrue(message.indexOf("FORG0001") > -1); } catch (XMLDBException e) { e.printStackTrace(); fail(e.getMessage()); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9f25d7c6227c1d691befbbb78b627daa3310fdc4/XQueryFunctionsTest.java/clean/src/org/exist/xquery/test/XQueryFunctionsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2747, 1435, 1216, 10172, 503, 288, 202, 202, 1420, 694, 563, 3196, 202, 33, 446, 31, 202, 202, 780, 202, 202, 86, 1082, 202, 33, 1408, 31, 202, 202, 780, 883, 31, 9506, 202, 698, 288, 1082, 202, 2088, 225, 202, 33, 1156, 18, 2271, 12, 315, 1896, 12443, 21, 16, 576, 30743, 11272, 1082, 202, 86, 3196, 202, 33, 261, 780, 13, 563, 18, 588, 1420, 12, 20, 2934, 588, 1350, 5621, 1082, 202, 11231, 8867, 12, 315, 22, 3113, 436, 11272, 6862, 1082, 202, 2088, 225, 202, 33, 1156, 18, 2271, 12, 315, 1896, 12443, 32, 69, 34, 21, 1757, 69, 20401, 411, 70, 34, 22, 1757, 70, 23429, 2225, 11272, 1082, 202, 86, 3196, 202, 33, 261, 780, 13, 563, 18, 588, 1420, 12, 20, 2934, 588, 1350, 5621, 1082, 202, 11231, 8867, 12, 315, 22, 3113, 436, 11272, 6862, 1082, 202, 2088, 225, 202, 33, 1156, 18, 2271, 12, 315, 1896, 12, 1435, 2225, 11272, 6862, 202, 11231, 8867, 12, 374, 16, 563, 18, 588, 1225, 10663, 6862, 1082, 202, 2088, 225, 202, 33, 1156, 18, 2271, 2932, 1896, 12443, 13713, 30, 712, 950, 2668, 6976, 25, 17, 2138, 17, 3657, 56, 2313, 30, 3787, 30, 7132, 18, 713, 26, 15, 1611, 30, 713, 19899, 9280, 30, 712, 950, 2668, 6976, 25, 17, 2138, 17, 3657, 56, 2313, 30, 5540, 30, 7132, 18, 1578, 21, 15, 1611, 30, 713, 26112, 2225, 1769, 6862, 202, 86, 3196, 202, 33, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2747, 1435, 1216, 10172, 503, 288, 202, 202, 1420, 694, 563, 3196, 202, 33, 446, 31, 202, 202, 780, 202, 202, 86, 1082, 202, 33, 1408, 31, 202, 202, 780, 883, 31, 9506, 202, 698, 288, 1082, 202, 2088, 225, 202, 33, 1156, 18, 2271, 12, 315, 1896, 12443, 21, 16, 576, 30743, 11272, 1082, 202, 86, 3196, 202, 33, 261, 780, 13, 563, 18, 588, 1420, 12, 20, 2934, 588, 1350, 5621, 1082, 202, 11231, 8867, 12, 315, 22, 3113, 436, 11272, 6862, 1082, 202, 2088, 225, 202, 33, 1156, 18, 2271, 12, 315, 1896, 12443, 32, 69, 34, 21, 1757, 69, 20401, 411, 70, 34, 22, 1757, 70, 23429, 2225, 11272, 1082, 2 ]
buf.append("mg.iinc(");
public void visitIincInsn (final int var, final int increment) { buf.setLength(0); buf.append("mg.iinc("); if (var < firstLocal) { Type[] args = Type.getArgumentTypes(desc); int nextLocal = ((Opcodes.ACC_STATIC & access) != 0) ? 0 : 1; int v = 0; while (nextLocal != var) { nextLocal += args[v++].getSize(); } buf.append(v); } else { Integer i = (Integer)locals.get(new Integer(var)); if (i == null) { int v = locals.size(); locals.put(new Integer(var), new Integer(v)); buf.append("int local" + v + " = mg.newLocal(Type.INT_TYPE);\n"); buf.append("local").append(v); } else { buf.append("local").append(i.intValue()); } } buf.append(", ") .append(increment) .append(");\n"); text.add(buf.toString()); lastOpcode = IINC; }
2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/ca01aa23cc6eeb07e39f56aa25261875461565cc/GASMifierMethodVisitor.java/clean/asm/src/org/objectweb/asm/commons/GASMifierMethodVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 45, 9523, 11796, 261, 6385, 509, 569, 16, 727, 509, 5504, 13, 288, 565, 1681, 18, 542, 1782, 12, 20, 1769, 6647, 309, 261, 1401, 411, 1122, 2042, 13, 288, 1377, 1412, 8526, 833, 273, 1412, 18, 588, 1379, 2016, 12, 5569, 1769, 1377, 509, 1024, 2042, 273, 14015, 51, 18108, 18, 31414, 67, 22741, 473, 2006, 13, 480, 374, 13, 692, 374, 294, 404, 31, 1377, 509, 331, 273, 374, 31, 1377, 1323, 261, 4285, 2042, 480, 569, 13, 288, 3639, 1024, 2042, 1011, 833, 63, 90, 9904, 8009, 588, 1225, 5621, 1377, 289, 1377, 1681, 18, 6923, 12, 90, 1769, 565, 289, 469, 288, 1377, 2144, 277, 273, 261, 4522, 13, 17977, 18, 588, 12, 2704, 2144, 12, 1401, 10019, 1377, 309, 261, 77, 422, 446, 13, 288, 3639, 509, 331, 273, 8985, 18, 1467, 5621, 3639, 8985, 18, 458, 12, 2704, 2144, 12, 1401, 3631, 394, 2144, 12, 90, 10019, 3639, 1681, 18, 6923, 2932, 474, 1191, 6, 397, 331, 397, 315, 273, 11174, 18, 2704, 2042, 12, 559, 18, 3217, 67, 2399, 20472, 82, 8863, 3639, 1681, 18, 6923, 2932, 3729, 20387, 6923, 12, 90, 1769, 1377, 289, 469, 288, 3639, 1681, 18, 6923, 2932, 3729, 20387, 6923, 12, 77, 18, 474, 620, 10663, 1377, 289, 565, 289, 3639, 1681, 18, 6923, 2932, 16, 9369, 4202, 263, 6923, 12, 15016, 13, 4202, 263, 6923, 2932, 20472, 82, 8863, 565, 977, 18, 1289, 12, 4385, 18, 10492, 10663, 565, 1142, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 45, 9523, 11796, 261, 6385, 509, 569, 16, 727, 509, 5504, 13, 288, 565, 1681, 18, 542, 1782, 12, 20, 1769, 6647, 309, 261, 1401, 411, 1122, 2042, 13, 288, 1377, 1412, 8526, 833, 273, 1412, 18, 588, 1379, 2016, 12, 5569, 1769, 1377, 509, 1024, 2042, 273, 14015, 51, 18108, 18, 31414, 67, 22741, 473, 2006, 13, 480, 374, 13, 692, 374, 294, 404, 31, 1377, 509, 331, 273, 374, 31, 1377, 1323, 261, 4285, 2042, 480, 569, 13, 288, 3639, 1024, 2042, 1011, 833, 63, 90, 9904, 8009, 588, 1225, 5621, 1377, 289, 1377, 1681, 18, 6923, 12, 90, 1769, 565, 289, 469, 288, 1377, 2144, 277, 273, 261, 4522, 13, 17977, 18, 2 ]
if (canSupportAssertion(assertion, moduleList)) { throw new AxisFault("atleast one module can't support " + assertion.getName());
if (!canSupportAssertion(assertion, moduleList)) { throw new AxisFault("atleast one module can't support " + assertion.getName());
public void applyPolicy(Policy policy) throws AxisFault { AxisConfiguration configuration = getAxisConfiguration(); // sets AxisDescription policy this.policyInclude.setPolicy(policy); /* * now we should take the effective one .. it is necessary since * AxisDescription.applyPolicy(..) doesn't override policies at the * Upper levels. */ Policy effPolicy = this.policyInclude.getEffectivePolicy(); /* * for the moment we consider policies with only one alternative. If the * policy contains multiple alternatives only the first alternative will * be considered. */ Iterator iterator = effPolicy.getAlternatives(); if (! iterator.hasNext()) { throw new AxisFault("Policy doesn't contain any policy alternatives"); } List assertionList = (List) iterator.next(); Assertion assertion; String namespaceURI; List moduleList; List namespaceList = new ArrayList(); List modulesToEngage = new ArrayList(); for (Iterator assertions = assertionList.iterator(); assertions.hasNext();) { assertion = (Assertion) assertions.next(); namespaceURI = assertion.getName().getNamespaceURI(); moduleList = configuration.getModulesForPolicyNamesapce(namespaceURI); if (moduleList == null) { log.debug("can't find any module to process " + assertion.getName() + " type assertions"); continue; } if (canSupportAssertion(assertion, moduleList)) { throw new AxisFault("atleast one module can't support " + assertion.getName()); } if (namespaceList.contains(namespaceURI)) { namespaceList.add(namespaceURI); modulesToEngage.addAll(moduleList); } } engageModulesToAxisDescription(modulesToEngage, this); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/244aa4f43ff8119055aa57a36d41877e9626c506/AxisDescription.java/buggy/modules/kernel/src/org/apache/axis2/description/AxisDescription.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2230, 2582, 12, 2582, 3329, 13, 1216, 15509, 7083, 288, 3639, 15509, 1750, 1664, 273, 4506, 5674, 1750, 5621, 3639, 368, 1678, 15509, 3291, 3329, 3639, 333, 18, 5086, 8752, 18, 542, 2582, 12, 5086, 1769, 3639, 1748, 540, 380, 2037, 732, 1410, 4862, 326, 11448, 1245, 6116, 518, 353, 4573, 3241, 540, 380, 15509, 3291, 18, 9010, 2582, 12, 838, 13, 3302, 1404, 3849, 8923, 622, 326, 540, 380, 29844, 7575, 18, 540, 1195, 3639, 7436, 16419, 2582, 273, 333, 18, 5086, 8752, 18, 588, 28531, 2582, 5621, 3639, 1748, 540, 380, 364, 326, 10382, 732, 5260, 8923, 598, 1338, 1245, 10355, 18, 971, 326, 540, 380, 3329, 1914, 3229, 20699, 1338, 326, 1122, 10355, 903, 540, 380, 506, 7399, 18, 540, 1195, 3639, 4498, 2775, 273, 16419, 2582, 18, 588, 22111, 5621, 3639, 309, 16051, 2775, 18, 5332, 2134, 10756, 288, 5411, 604, 394, 15509, 7083, 2932, 2582, 3302, 1404, 912, 1281, 3329, 20699, 8863, 10792, 289, 7734, 987, 11240, 682, 273, 261, 682, 13, 2775, 18, 4285, 5621, 7734, 9067, 11240, 31, 3639, 514, 19421, 31, 7734, 987, 1605, 682, 31, 7734, 987, 1981, 682, 273, 394, 2407, 5621, 3639, 987, 4381, 774, 28429, 410, 273, 394, 2407, 5621, 7734, 364, 261, 3198, 7820, 273, 11240, 682, 18, 9838, 5621, 7820, 18, 5332, 2134, 5621, 13, 288, 5411, 11240, 273, 261, 14979, 13, 7820, 18, 4285, 5621, 5411, 19421, 273, 11240, 18, 17994, 7675, 588, 3402, 3098, 5621, 13491, 1605, 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, 2230, 2582, 12, 2582, 3329, 13, 1216, 15509, 7083, 288, 3639, 15509, 1750, 1664, 273, 4506, 5674, 1750, 5621, 3639, 368, 1678, 15509, 3291, 3329, 3639, 333, 18, 5086, 8752, 18, 542, 2582, 12, 5086, 1769, 3639, 1748, 540, 380, 2037, 732, 1410, 4862, 326, 11448, 1245, 6116, 518, 353, 4573, 3241, 540, 380, 15509, 3291, 18, 9010, 2582, 12, 838, 13, 3302, 1404, 3849, 8923, 622, 326, 540, 380, 29844, 7575, 18, 540, 1195, 3639, 7436, 16419, 2582, 273, 333, 18, 5086, 8752, 18, 588, 28531, 2582, 5621, 3639, 1748, 540, 380, 364, 326, 10382, 732, 5260, 8923, 598, 1338, 1245, 10355, 18, 971, 326, 540, 380, 3329, 1914, 3229, 20699, 1338, 326, 1122, 10355, 2 ]
pm.create(group);
try { pm.create(group); } catch (Exception e) { }
private void initSportletGroup(SportletGroup group) { String groupName = group.getName(); if (!existsGroupWithName(groupName)) { pm.create(group); } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/8fe6fa8f3ac1a87d0b74390db316dd51b9a9642e/GridSphereUserManager.java/clean/src/org/gridlab/gridsphere/services/core/user/impl/GridSphereUserManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 55, 655, 1810, 1114, 12, 55, 655, 1810, 1114, 1041, 13, 288, 3639, 514, 11619, 273, 1041, 18, 17994, 5621, 3639, 309, 16051, 1808, 1114, 17557, 12, 1655, 461, 3719, 288, 5411, 775, 288, 7430, 18, 2640, 12, 1655, 1769, 289, 1044, 261, 503, 425, 13, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 55, 655, 1810, 1114, 12, 55, 655, 1810, 1114, 1041, 13, 288, 3639, 514, 11619, 273, 1041, 18, 17994, 5621, 3639, 309, 16051, 1808, 1114, 17557, 12, 1655, 461, 3719, 288, 5411, 775, 288, 7430, 18, 2640, 12, 1655, 1769, 289, 1044, 261, 503, 425, 13, 288, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (paramSampleName != null) { aliquots = searchSampleService.searchAliquotBySampleName(paramSampleName); } else { aliquots = searchSampleService.searchAliquotsByAliquotName( aliquotName, sampleType, sampleSource, sourceSampleId, dateAccessionedBegin, dateAccessionedEnd, sampleSubmitter, storageLocation); }
aliquots = searchSampleService.searchAliquotsByAliquotName( aliquotName, sampleType, sampleSource, sourceSampleId, dateAccessionedBegin, dateAccessionedEnd, sampleSubmitter, storageLocation);
public ActionForward executeTask(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForward forward = null; ActionMessages msgs = new ActionMessages(); HttpSession session = request.getSession(); try { DynaValidatorForm theForm = (DynaValidatorForm) form; // search base on aliquotName if aliquotName is present // otherwise search base sampleName boolean showAliquot = ((String) theForm.get("showAliquot")) .equals("true") ? true : false; String paramSampleName = request.getParameter("sampleName"); String searchName = (String) theForm.get("searchName"); String sampleName=""; String aliquotName=""; if (showAliquot) { aliquotName=searchName; } else { sampleName=searchName; } String sampleType = (String) theForm.get("sampleType"); String sampleSource = (String) theForm.get("sampleSource"); String sourceSampleId = (String) theForm.get("sourceSampleId"); String dateAccessionedBeginStr = (String) theForm .get("dateAccessionedBegin"); String dateAccessionedEndStr = (String) theForm .get("dateAccessionedEnd"); request.setAttribute("showAliquot", showAliquot); Date dateAccessionedBegin = dateAccessionedBeginStr.length() == 0 ? null : StringUtils.convertToDate(dateAccessionedBeginStr, "MM/dd/yyyy"); Date dateAccessionedEnd = dateAccessionedEndStr.length() == 0 ? null : StringUtils.convertToDate(dateAccessionedEndStr, "MM/dd/yyyy"); String sampleSubmitter = (String) theForm.get("sampleSubmitter"); StorageLocation storageLocation = (StorageLocation) theForm .get("storageLocation"); // pass the parameters to the searchSampleService SearchSampleService searchSampleService = new SearchSampleService(); List<SampleBean> samples = null; List<AliquotBean> aliquots = null; if (showAliquot) { if (aliquotName.equals("all")) { aliquotName = ""; } if (paramSampleName != null) { aliquots = searchSampleService.searchAliquotBySampleName(paramSampleName); } else { aliquots = searchSampleService.searchAliquotsByAliquotName( aliquotName, sampleType, sampleSource, sourceSampleId, dateAccessionedBegin, dateAccessionedEnd, sampleSubmitter, storageLocation); } } else if (sampleName.length() >= 0) { if (sampleName.equals("all")) { sampleName = ""; } samples = searchSampleService.searchSamplesBySampleName( sampleName, sampleType, sampleSource, sourceSampleId, dateAccessionedBegin, dateAccessionedEnd, sampleSubmitter, storageLocation); } else { samples = searchSampleService.searchSamples(sampleType, sampleSource, sourceSampleId, dateAccessionedBegin, dateAccessionedEnd, sampleSubmitter, storageLocation); } if (!showAliquot && (samples == null || samples.isEmpty()) || showAliquot && (aliquots == null || aliquots.isEmpty())) { ActionMessage msg = new ActionMessage( "message.searchSample.noResult"); msgs.add("message", msg); saveMessages(request, msgs); forward = mapping.getInputForward(); } else { if (!showAliquot) { session.setAttribute("samples", samples); } else { session.setAttribute("aliquots", aliquots); } forward = mapping.findForward("success"); } } catch (Exception e) { ActionMessage error = new ActionMessage("error.searchSample"); msgs.add("error", error); saveMessages(request, msgs); logger.error("Caught exception searching sample container data", e); forward = mapping.getInputForward(); } return forward; }
46992 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46992/eaf4740fcb16a9a11c6ff258fdc392de113899fb/SearchSampleAction.java/clean/src/gov/nih/nci/calab/ui/search/SearchSampleAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 1836, 2174, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 1082, 202, 2940, 18572, 590, 16, 12446, 766, 13, 1082, 202, 15069, 1185, 288, 202, 202, 1803, 8514, 5104, 273, 446, 31, 202, 202, 1803, 5058, 8733, 273, 394, 4382, 5058, 5621, 202, 202, 2940, 2157, 1339, 273, 590, 18, 588, 2157, 5621, 202, 202, 698, 288, 1082, 202, 10419, 69, 5126, 1204, 326, 1204, 273, 261, 10419, 69, 5126, 1204, 13, 646, 31, 1082, 202, 759, 1623, 1026, 603, 15033, 9270, 461, 309, 15033, 9270, 461, 353, 3430, 1082, 202, 759, 3541, 1623, 1026, 3296, 461, 1082, 202, 6494, 2405, 37, 549, 9270, 273, 14015, 780, 13, 326, 1204, 18, 588, 2932, 4500, 37, 549, 9270, 6, 3719, 6862, 202, 18, 14963, 2932, 3767, 7923, 692, 638, 294, 629, 31, 1082, 202, 780, 579, 8504, 461, 273, 590, 18, 588, 1662, 2932, 6358, 461, 8863, 1082, 202, 780, 1623, 461, 273, 261, 780, 13, 326, 1204, 18, 588, 2932, 3072, 461, 8863, 1082, 202, 780, 3296, 461, 1546, 14432, 1082, 202, 780, 15033, 9270, 461, 1546, 14432, 1082, 202, 430, 261, 4500, 37, 549, 9270, 13, 288, 9506, 202, 18083, 9270, 461, 33, 3072, 461, 31, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 6358, 461, 33, 3072, 461, 31, 1082, 202, 97, 25083, 202, 780, 3296, 559, 273, 261, 780, 13, 326, 1204, 18, 588, 2932, 6358, 559, 8863, 1082, 202, 780, 3296, 1830, 273, 261, 780, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 1836, 2174, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 1082, 202, 2940, 18572, 590, 16, 12446, 766, 13, 1082, 202, 15069, 1185, 288, 202, 202, 1803, 8514, 5104, 273, 446, 31, 202, 202, 1803, 5058, 8733, 273, 394, 4382, 5058, 5621, 202, 202, 2940, 2157, 1339, 273, 590, 18, 588, 2157, 5621, 202, 202, 698, 288, 1082, 202, 10419, 69, 5126, 1204, 326, 1204, 273, 261, 10419, 69, 5126, 1204, 13, 646, 31, 1082, 202, 759, 1623, 1026, 603, 15033, 9270, 461, 309, 15033, 9270, 461, 353, 3430, 1082, 202, 759, 3541, 1623, 1026, 3296, 461, 1082, 202, 6494, 2405, 37, 549, 9270, 273, 14015, 780, 13, 326, 1204, 18, 588, 2932, 2 ]
MBMessageServiceUtil.subscribeMessage(topicId, messageId);
MBMessageServiceUtil.subscribeMessage(messageId);
protected void subscribeMessage(ActionRequest req) throws Exception { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); MBMessageServiceUtil.subscribeMessage(topicId, messageId); }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/d6b02fdb73be07a1fc7332713e89293b3822dfb8/EditMessageAction.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/action/EditMessageAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 9129, 1079, 12, 1803, 691, 1111, 13, 1216, 1185, 288, 202, 202, 780, 3958, 548, 273, 3014, 1304, 18, 588, 780, 12, 3658, 16, 315, 10476, 548, 8863, 202, 202, 780, 19090, 273, 3014, 1304, 18, 588, 780, 12, 3658, 16, 315, 2150, 548, 8863, 202, 202, 7969, 1079, 1179, 1304, 18, 9174, 1079, 12, 10476, 548, 16, 19090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 9129, 1079, 12, 1803, 691, 1111, 13, 1216, 1185, 288, 202, 202, 780, 3958, 548, 273, 3014, 1304, 18, 588, 780, 12, 3658, 16, 315, 10476, 548, 8863, 202, 202, 780, 19090, 273, 3014, 1304, 18, 588, 780, 12, 3658, 16, 315, 2150, 548, 8863, 202, 202, 7969, 1079, 1179, 1304, 18, 9174, 1079, 12, 10476, 548, 16, 19090, 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 ]
protected Map getResourcesToAdd( File file ) throws IOException { if ( !file.exists() || doUpdate == false ) { return getFiles(); } ZipFile zipFile = new ZipFile( file ); Map result = new HashMap(); for ( Iterator iter = getFiles().keySet().iterator(); iter.hasNext(); ) { String fileName = (String) iter.next(); if ( zipFile.getEntry( fileName ) == null ) { result.put( fileName, getFiles().get( fileName ) ); } } return result; }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/AbstractZipArchiver.java/buggy/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1635, 14590, 13786, 12, 1387, 585, 262, 1216, 1860, 565, 288, 3639, 309, 261, 401, 768, 18, 1808, 1435, 747, 741, 1891, 422, 629, 262, 3639, 288, 5411, 327, 18262, 5621, 3639, 289, 3639, 18364, 19450, 273, 394, 18364, 12, 585, 11272, 7734, 1635, 563, 273, 394, 4317, 5621, 3639, 364, 261, 4498, 1400, 273, 18262, 7675, 856, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 3639, 288, 5411, 514, 3968, 273, 261, 780, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 19450, 18, 588, 1622, 12, 3968, 262, 422, 446, 262, 5411, 288, 7734, 563, 18, 458, 12, 3968, 16, 18262, 7675, 588, 12, 3968, 262, 11272, 5411, 289, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1635, 14590, 13786, 12, 1387, 585, 262, 1216, 1860, 565, 288, 3639, 309, 261, 401, 768, 18, 1808, 1435, 747, 741, 1891, 422, 629, 262, 3639, 288, 5411, 327, 18262, 5621, 3639, 289, 3639, 18364, 19450, 273, 394, 18364, 12, 585, 11272, 7734, 1635, 563, 273, 394, 4317, 5621, 3639, 364, 261, 4498, 1400, 273, 18262, 7675, 856, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 3639, 288, 5411, 514, 3968, 273, 261, 780, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 19450, 18, 588, 1622, 12, 3968, 262, 422, 446, 262, 5411, 288, 7734, 563, 18, 458, 12, 3968, 16, 18262, 7675, 588, 12, 3968, 262, 11272, 5411, 289, 3639, 289, 3639, 327, 563, 2 ]
iy -= (int) lm.getDescent();
public static void paintText(Context c, int lx, int ly, int ix, int iy, InlineTextBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(FontUtil.getFont(c)); Color oldcolor = c.getGraphics().getColor(); c.getGraphics().setColor(c.getCurrentStyle().getColor()); Font cur_font = c.getGraphics().getFont(); LineMetrics lm = c.getTextRenderer().getLineMetrics(c.getGraphics(), cur_font, text); iy -= (int) lm.getDescent(); //draw the line if (text != null && text.length() > 0) { c.getTextRenderer().drawString(c.getGraphics(), text, ix, iy); } //draw any text decoration int stringWidth = (int) Math.ceil(c.getTextRenderer(). getLogicalBounds(c.getGraphics(), c.getGraphics().getFont(), text).getWidth()); // override based on settings String text_decoration = c.getCurrentStyle().getStringProperty(CSSName.TEXT_DECORATION); if (text_decoration != null && text_decoration.equals("underline")) { float down = lm.getUnderlineOffset(); float thick = lm.getUnderlineThickness(); g.fillRect(ix, iy - (int) down, stringWidth, (int) thick); } else if (text_decoration != null && text_decoration.equals("line-through")) { float down = lm.getStrikethroughOffset(); float thick = lm.getStrikethroughThickness(); g.fillRect(ix, iy + (int) down, stringWidth, (int) thick); } else if (text_decoration != null && text_decoration.equals("overline")) { float down = lm.getAscent(); float thick = lm.getUnderlineThickness(); g.fillRect(ix, iy - (int) down, stringWidth, (int) thick); } c.getGraphics().setColor(oldcolor); if (c.debugDrawFontMetrics()) { g.setColor(Color.red); g.drawLine(ix, iy, ix + inline.width, iy); iy += (int) Math.ceil(lm.getDescent()); g.drawLine(ix, iy, ix + inline.width, iy); iy -= (int) Math.ceil(lm.getDescent()); iy -= (int) Math.ceil(lm.getAscent()); g.drawLine(ix, iy, ix + inline.width, iy); } // restore the old font c.getGraphics().setFont(oldfont); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 12574, 1528, 12, 1042, 276, 16, 509, 15855, 16, 509, 18519, 16, 509, 8288, 16, 509, 23466, 16, 16355, 1528, 3514, 6370, 13, 288, 3639, 514, 977, 273, 6370, 18, 588, 1676, 1080, 5621, 3639, 16830, 314, 273, 276, 18, 588, 17558, 5621, 3639, 368, 13362, 3512, 364, 783, 1947, 3639, 10063, 1592, 5776, 273, 276, 18, 588, 17558, 7675, 588, 5711, 5621, 3639, 276, 18, 588, 17558, 7675, 542, 5711, 12, 5711, 1304, 18, 588, 5711, 12, 71, 10019, 3639, 5563, 1592, 3266, 273, 276, 18, 588, 17558, 7675, 588, 2957, 5621, 3639, 276, 18, 588, 17558, 7675, 542, 2957, 12, 71, 18, 588, 3935, 2885, 7675, 588, 2957, 10663, 3639, 10063, 662, 67, 5776, 273, 276, 18, 588, 17558, 7675, 588, 5711, 5621, 3639, 5377, 5653, 14966, 273, 276, 18, 588, 1528, 6747, 7675, 588, 1670, 5653, 12, 71, 18, 588, 17558, 9334, 662, 67, 5776, 16, 977, 1769, 13491, 368, 9446, 326, 980, 3639, 309, 261, 955, 480, 446, 597, 977, 18, 2469, 1435, 405, 374, 13, 288, 5411, 276, 18, 588, 1528, 6747, 7675, 9446, 780, 12, 71, 18, 588, 17558, 9334, 977, 16, 8288, 16, 23466, 1769, 3639, 289, 3639, 368, 9446, 1281, 977, 29217, 3639, 509, 533, 2384, 273, 261, 474, 13, 2361, 18, 311, 330, 12, 71, 18, 588, 1528, 6747, 7675, 7734, 9189, 1706, 5694, 12, 71, 18, 588, 17558, 9334, 13491, 276, 18, 588, 17558, 7675, 588, 5711, 9334, 13491, 977, 2934, 588, 2384, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 1528, 12, 1042, 276, 16, 509, 15855, 16, 509, 18519, 16, 509, 8288, 16, 509, 23466, 16, 16355, 1528, 3514, 6370, 13, 288, 3639, 514, 977, 273, 6370, 18, 588, 1676, 1080, 5621, 3639, 16830, 314, 273, 276, 18, 588, 17558, 5621, 3639, 368, 13362, 3512, 364, 783, 1947, 3639, 10063, 1592, 5776, 273, 276, 18, 588, 17558, 7675, 588, 5711, 5621, 3639, 276, 18, 588, 17558, 7675, 542, 5711, 12, 5711, 1304, 18, 588, 5711, 12, 71, 10019, 3639, 5563, 1592, 3266, 273, 276, 18, 588, 17558, 7675, 588, 2957, 5621, 3639, 276, 18, 588, 17558, 7675, 542, 2957, 12, 71, 18, 588, 3935, 2885, 7675, 588, 2957, 10663, 3639, 10063, 662, 67, 2 ]
_namespacePrefix = lookupPrefix(namespace);
_prefix = lookupPrefix(namespace);
public void parseContents(Parser parser) { final SymbolTable stable = parser.getSymbolTable(); // Get the "name" attribute of the <xsl:element> element String name = getAttribute("name"); if ((name == null) || (name.equals(Constants.EMPTYSTRING))) { final ErrorMsg msg = new ErrorMsg("You can't call an element \"\""); parser.reportError(Constants.WARNING, msg); _ignore = true; // Ignore the element if the QName is invalid return; } // Try to construct a QName and then get the prefix and local part QName qname = parser.getQNameSafe(name); String prefix = qname.getPrefix(); String local = qname.getLocalPart(); // First try to get the namespace URI from the "namespace" attribute String namespace = getAttribute("namespace"); // Then try to get it from the "name" attribute QName prefix if (namespace == null) { // We are supposed to use the default namespace URI if the QName // from the "name" attribute is not prefixed, so check that first if (prefix == null) prefix = Constants.EMPTYSTRING; // Then look up the URI that is in scope for the prefix namespace = lookupNamespace(prefix); // Signal error if the prefix does not map to any namespace URI if (namespace == null) { final ErrorMsg msg = new ErrorMsg(ErrorMsg.NSPUNDEF_ERR,prefix); parser.reportError(Constants.WARNING, msg); parseChildren(parser); _ignore = true; // Ignore the element if prefix is undeclared return; } } // Check if this element belongs in a specific namespace else if (namespace != Constants.EMPTYSTRING) { // Get the namespace requested by the xsl:element _namespace = new AttributeValueTemplate(namespace, parser); // Get the current prefix for that namespace (if any) _namespacePrefix = lookupPrefix(namespace); // Is it the default namespace? if ((_namespacePrefix = prefix) == null) _namespacePrefix = Constants.EMPTYSTRING; // Construct final element QName if (_namespacePrefix == Constants.EMPTYSTRING) name = qname.getLocalPart(); else name = _namespacePrefix+":"+qname.getLocalPart(); } _name = AttributeValue.create(this, name, parser); // Next check that the local part of the QName is legal (no whitespace) if ((_name instanceof SimpleAttributeValue) && (local.indexOf(' ') > -1)) { final String errmsg = "You can't call an element \""+local+"\""; parser.reportError(Constants.WARNING, new ErrorMsg(errmsg)); parseChildren(parser); _ignore = true; // Ignore the element if the local part is invalid return; } // Handle the 'use-attribute-sets' attribute final String useSets = getAttribute("use-attribute-sets"); if (useSets.length() > 0) { setFirstElement(new UseAttributeSets(useSets, parser)); } parseChildren(parser); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/894e8576e7043433f4ffd9df9e214c347f84df6e/XslElement.java/clean/src/org/apache/xalan/xsltc/compiler/XslElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 6323, 12, 2678, 2082, 13, 288, 202, 6385, 8565, 1388, 14114, 273, 2082, 18, 588, 5335, 1388, 5621, 202, 759, 968, 326, 315, 529, 6, 1566, 434, 326, 411, 30903, 30, 2956, 34, 930, 202, 780, 508, 273, 4061, 2932, 529, 8863, 202, 430, 14015, 529, 422, 446, 13, 747, 261, 529, 18, 14963, 12, 2918, 18, 13625, 5804, 20349, 288, 202, 565, 727, 1068, 3332, 1234, 273, 394, 1068, 3332, 2932, 6225, 848, 1404, 745, 392, 930, 1239, 8530, 1769, 202, 565, 2082, 18, 6006, 668, 12, 2918, 18, 9511, 16, 1234, 1769, 202, 565, 389, 6185, 273, 638, 31, 368, 8049, 326, 930, 309, 326, 16723, 353, 2057, 202, 565, 327, 31, 202, 97, 202, 759, 6161, 358, 4872, 279, 16723, 471, 1508, 336, 326, 1633, 471, 1191, 1087, 202, 13688, 225, 12621, 225, 273, 2082, 18, 588, 13688, 9890, 12, 529, 1769, 202, 780, 1633, 273, 12621, 18, 588, 2244, 5621, 202, 780, 1191, 225, 273, 12621, 18, 588, 2042, 1988, 5621, 202, 759, 5783, 775, 358, 336, 326, 1981, 3699, 628, 326, 315, 4937, 6, 1566, 202, 780, 1981, 273, 4061, 2932, 4937, 8863, 202, 759, 9697, 775, 358, 336, 518, 628, 326, 315, 529, 6, 1566, 16723, 1633, 202, 430, 261, 4937, 422, 446, 13, 288, 202, 565, 368, 1660, 854, 18405, 358, 999, 326, 805, 1981, 3699, 309, 326, 16723, 202, 565, 368, 628, 326, 315, 529, 6, 1566, 353, 486, 12829, 16, 1427, 866, 716, 1122, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 6323, 12, 2678, 2082, 13, 288, 202, 6385, 8565, 1388, 14114, 273, 2082, 18, 588, 5335, 1388, 5621, 202, 759, 968, 326, 315, 529, 6, 1566, 434, 326, 411, 30903, 30, 2956, 34, 930, 202, 780, 508, 273, 4061, 2932, 529, 8863, 202, 430, 14015, 529, 422, 446, 13, 747, 261, 529, 18, 14963, 12, 2918, 18, 13625, 5804, 20349, 288, 202, 565, 727, 1068, 3332, 1234, 273, 394, 1068, 3332, 2932, 6225, 848, 1404, 745, 392, 930, 1239, 8530, 1769, 202, 565, 2082, 18, 6006, 668, 12, 2918, 18, 9511, 16, 1234, 1769, 202, 565, 389, 6185, 273, 638, 31, 368, 8049, 326, 930, 309, 326, 16723, 353, 2057, 202, 565, 327, 31, 202, 2 ]
createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
protected void createButtonsForButtonBar(Composite parent) { // create OK and Cancel buttons by default createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b55db1f8df03ebade4e59f55f97c8c3917057362/Dialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 202, 202, 759, 752, 7791, 471, 10347, 9502, 635, 805, 202, 202, 2640, 3616, 12, 1082, 202, 2938, 16, 1082, 202, 734, 3529, 2918, 18, 3141, 67, 734, 16, 1082, 202, 734, 3529, 2918, 18, 3141, 67, 13545, 16, 1082, 202, 3767, 1769, 202, 202, 2640, 3616, 12, 1082, 202, 2938, 16, 1082, 202, 734, 3529, 2918, 18, 25268, 67, 734, 16, 1082, 202, 734, 3529, 2918, 18, 25268, 67, 13545, 16, 1082, 202, 5743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 202, 202, 759, 752, 7791, 471, 10347, 9502, 635, 805, 202, 202, 2640, 3616, 12, 1082, 202, 2938, 16, 1082, 202, 734, 3529, 2918, 18, 3141, 67, 734, 16, 1082, 202, 734, 3529, 2918, 18, 3141, 67, 13545, 16, 1082, 202, 3767, 1769, 202, 202, 2640, 3616, 12, 1082, 202, 2938, 16, 1082, 202, 734, 3529, 2918, 18, 25268, 67, 734, 16, 1082, 202, 734, 3529, 2918, 18, 25268, 67, 13545, 16, 1082, 202, 5743, 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 ]
}
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ElementNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ElementNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 5351, 12, 13688, 569, 13, 225, 288, 565, 309, 261, 529, 480, 446, 597, 508, 18, 14353, 12, 1401, 3719, 1377, 288, 3639, 327, 638, 31, 540, 309, 261, 4937, 480, 446, 597, 1981, 18, 14353, 12, 1401, 3719, 1377, 288, 3639, 327, 638, 31, 540, 327, 2240, 18, 14353, 12, 1401, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 5351, 12, 13688, 569, 13, 225, 288, 565, 309, 261, 529, 480, 446, 597, 508, 18, 14353, 12, 1401, 3719, 1377, 288, 3639, 327, 638, 31, 540, 309, 261, 4937, 480, 446, 597, 1981, 18, 14353, 12, 1401, 3719, 1377, 288, 3639, 327, 638, 31, 540, 327, 2240, 18, 14353, 12, 1401, 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 ]
public void worked(int work) { getInternalMonitor().worked(work); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dbe27565dfaf5a01ee200188f00a3b4c6b654ea2/WorkbenchMonitorProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchMonitorProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 6459, 1252, 329, 12, 474, 1252, 15329, 9506, 202, 588, 3061, 7187, 7675, 1252, 329, 12, 1252, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 6459, 1252, 329, 12, 474, 1252, 15329, 9506, 202, 588, 3061, 7187, 7675, 1252, 329, 12, 1252, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ATNil base_print(ATObject obj) throws XTypeMismatch { IATIO._INSTANCE_.print(obj.meta_print().javaValue);
public ATNil base_print(ATObject[] objs) throws XTypeMismatch { for (int i = 0; i < objs.length; i++) { IATIO._INSTANCE_.print(objs[i].meta_print().javaValue); }
public ATNil base_print(ATObject obj) throws XTypeMismatch { IATIO._INSTANCE_.print(obj.meta_print().javaValue); return NATNil._INSTANCE_; }
53007 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53007/3dba2d4e6fa21f8467a78dfc8eefdab26cf7da10/OBJSystem.java/buggy/src/edu/vub/at/objects/natives/OBJSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14464, 12616, 1026, 67, 1188, 12, 789, 921, 1081, 13, 1216, 1139, 559, 16901, 288, 202, 202, 45, 789, 4294, 6315, 13341, 27799, 1188, 12, 2603, 18, 3901, 67, 1188, 7675, 6290, 620, 1769, 202, 202, 2463, 31395, 12616, 6315, 13341, 67, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14464, 12616, 1026, 67, 1188, 12, 789, 921, 1081, 13, 1216, 1139, 559, 16901, 288, 202, 202, 45, 789, 4294, 6315, 13341, 27799, 1188, 12, 2603, 18, 3901, 67, 1188, 7675, 6290, 620, 1769, 202, 202, 2463, 31395, 12616, 6315, 13341, 67, 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 ]
if (total_log_record_length > currentBuffer.bytes_free && total_log_record_length <= currentBuffer.buffer.length) { switchLogBuffer(); }
public void writeLogRecord( int length, long instant, byte[] data, int data_offset, byte[] optional_data, int optional_data_offset, int optional_data_length) throws StandardException, IOException { int total_log_record_length = length + LOG_RECORD_FIXED_OVERHEAD_SIZE; if (total_log_record_length > currentBuffer.bytes_free && total_log_record_length <= currentBuffer.buffer.length) { // If the whole record will fit in an empty buffer, flush this // one now and put this record into the next one. switchLogBuffer(); } if (total_log_record_length <= currentBuffer.bytes_free) { byte[] b = currentBuffer.buffer; int p = currentBuffer.position; // writeInt(length) b[p++] = (byte) ((length >>> 24) & 0xff); b[p++] = (byte) ((length >>> 16) & 0xff); b[p++] = (byte) ((length >>> 8) & 0xff); b[p++] = (byte) ((length ) & 0xff); // writeLong(instant) b[p++] = (byte) (((int)(instant >>> 56)) & 0xff); b[p++] = (byte) (((int)(instant >>> 48)) & 0xff); b[p++] = (byte) (((int)(instant >>> 40)) & 0xff); b[p++] = (byte) (((int)(instant >>> 32)) & 0xff); b[p++] = (byte) (((int)(instant >>> 24)) & 0xff); b[p++] = (byte) (((int)(instant >>> 16)) & 0xff); b[p++] = (byte) (((int)(instant >>> 8)) & 0xff); b[p++] = (byte) (((int)(instant )) & 0xff); // write(data, data_offset, length - optional_data_length) int transfer_length = (length - optional_data_length); System.arraycopy(data, data_offset, b, p, transfer_length); p += transfer_length; if (optional_data_length != 0) { // write( // optional_data, optional_data_offset, optional_data_length); System.arraycopy( optional_data, optional_data_offset, b, p, optional_data_length); p += optional_data_length; } // writeInt(length) b[p++] = (byte) ((length >>> 24) & 0xff); b[p++] = (byte) ((length >>> 16) & 0xff); b[p++] = (byte) ((length >>> 8) & 0xff); b[p++] = (byte) ((length ) & 0xff); currentBuffer.position = p; currentBuffer.bytes_free -= total_log_record_length; } else { writeInt(length); writeLong(instant); write(data, data_offset, length - optional_data_length); if (optional_data_length != 0) { write( optional_data, optional_data_offset, optional_data_length); } writeInt(length); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d609ee3af0fc89b1e4ddcc8b9ce925734517e712/LogAccessFile.java/clean/java/engine/org/apache/derby/impl/store/raw/log/LogAccessFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 25723, 12, 565, 509, 377, 769, 16, 565, 1525, 565, 5934, 16, 565, 1160, 8526, 225, 501, 16, 565, 509, 377, 501, 67, 3348, 16, 565, 1160, 8526, 225, 3129, 67, 892, 16, 565, 509, 377, 3129, 67, 892, 67, 3348, 16, 565, 509, 377, 3129, 67, 892, 67, 2469, 13, 3639, 1216, 8263, 503, 16, 1860, 377, 288, 3639, 509, 2078, 67, 1330, 67, 3366, 67, 2469, 273, 769, 397, 2018, 67, 22261, 67, 30406, 67, 12959, 12458, 67, 4574, 31, 3639, 309, 261, 4963, 67, 1330, 67, 3366, 67, 2469, 405, 783, 1892, 18, 3890, 67, 9156, 597, 2398, 2078, 67, 1330, 67, 3366, 67, 2469, 1648, 783, 1892, 18, 4106, 18, 2469, 13, 540, 288, 5411, 368, 971, 326, 7339, 1409, 903, 4845, 316, 392, 1008, 1613, 16, 3663, 333, 5411, 368, 1245, 2037, 471, 1378, 333, 1409, 1368, 326, 1024, 1245, 18, 5411, 1620, 1343, 1892, 5621, 3639, 289, 202, 202, 430, 261, 4963, 67, 1330, 67, 3366, 67, 2469, 1648, 783, 1892, 18, 3890, 67, 9156, 13, 3639, 288, 5411, 1160, 8526, 324, 565, 273, 783, 1892, 18, 4106, 31, 5411, 509, 565, 293, 565, 273, 783, 1892, 18, 3276, 31, 5411, 368, 13682, 12, 2469, 13, 5411, 324, 63, 84, 9904, 65, 273, 261, 7229, 13, 14015, 2469, 4080, 4248, 13, 473, 374, 5297, 1769, 2398, 324, 63, 84, 9904, 65, 273, 261, 7229, 13, 14015, 2469, 4080, 2872, 13, 473, 374, 5297, 1769, 2398, 324, 63, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 25723, 12, 565, 509, 377, 769, 16, 565, 1525, 565, 5934, 16, 565, 1160, 8526, 225, 501, 16, 565, 509, 377, 501, 67, 3348, 16, 565, 1160, 8526, 225, 3129, 67, 892, 16, 565, 509, 377, 3129, 67, 892, 67, 3348, 16, 565, 509, 377, 3129, 67, 892, 67, 2469, 13, 3639, 1216, 8263, 503, 16, 1860, 377, 288, 3639, 509, 2078, 67, 1330, 67, 3366, 67, 2469, 273, 769, 397, 2018, 67, 22261, 67, 30406, 67, 12959, 12458, 67, 4574, 31, 3639, 309, 261, 4963, 67, 1330, 67, 3366, 67, 2469, 405, 783, 1892, 18, 3890, 67, 9156, 597, 2398, 2078, 67, 1330, 67, 3366, 67, 2469, 1648, 783, 1892, 18, 4106, 18, 2469, 2 ]
public int insertBlobTrigger(Connection conn, Trigger trigger) throws SQLException, IOException;
int insertBlobTrigger(Connection conn, Trigger trigger) throws SQLException, IOException;
public int insertBlobTrigger(Connection conn, Trigger trigger) throws SQLException, IOException;
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/DriverDelegate.java/clean/src/java/org/quartz/impl/jdbcjobstore/DriverDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 2243, 9405, 6518, 12, 1952, 1487, 16, 11321, 3080, 13, 5411, 1216, 6483, 16, 1860, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 2243, 9405, 6518, 12, 1952, 1487, 16, 11321, 3080, 13, 5411, 1216, 6483, 16, 1860, 31, 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 ]
if ((occurrences & 7) != 0) { currentByte >>= 7 - (occurrences & 7); result.append((char) (currentByte & 0xff)); }
if ((occurrences & 7) != 0) { currentByte >>= 7 - (occurrences & 7); result.append((char) (currentByte & 0xff)); }
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()); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/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 ]
rsvc.info("Resources Loaded From: " + dataSourceName + "/" + tableName); rsvc.info("Resource Loader using columns: " + keyColumn + ", " + templateColumn + " and " + timestampColumn); rsvc.info("Resource Loader Initalized.");
if (log.isInfoEnabled()) { log.info("Resources Loaded From: " + dataSourceName + "/" + tableName); log.info("Resource Loader using columns: " + keyColumn + ", " + templateColumn + " and " + timestampColumn); log.info("Resource Loader Initalized."); }
public void init(ExtendedProperties configuration) { dataSourceName = configuration.getString("resource.datasource"); tableName = configuration.getString("resource.table"); keyColumn = configuration.getString("resource.keycolumn"); templateColumn = configuration.getString("resource.templatecolumn"); timestampColumn = configuration.getString("resource.timestampcolumn"); if (dataSource != null) { rsvc.info("Resources Loaded using dataSource instance with table: " + tableName); rsvc.info("Resource Loader using columns: " + keyColumn + ", " + templateColumn + " and " + timestampColumn); rsvc.info("Resource Loader Initalized."); } else if (dataSourceName != null) { rsvc.info("Resources Loaded From: " + dataSourceName + "/" + tableName); rsvc.info("Resource Loader using columns: " + keyColumn + ", " + templateColumn + " and " + timestampColumn); rsvc.info("Resource Loader Initalized."); } else { rsvc.info("DataSourceResourceLoader not properly initialized. "); } }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/f4adefb79ccda5d9df1f60719e0ede8f167e4089/DataSourceResourceLoader.java/clean/src/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 918, 1208, 12, 11456, 2297, 1664, 13, 377, 288, 540, 10233, 461, 225, 273, 1664, 18, 588, 780, 2932, 3146, 18, 13178, 552, 8863, 540, 4775, 4202, 273, 1664, 18, 588, 780, 2932, 3146, 18, 2121, 8863, 540, 498, 1494, 4202, 273, 1664, 18, 588, 780, 2932, 3146, 18, 856, 2827, 8863, 540, 1542, 1494, 225, 273, 1664, 18, 588, 780, 2932, 3146, 18, 3202, 2827, 8863, 540, 2858, 1494, 273, 1664, 18, 588, 780, 2932, 3146, 18, 5508, 2827, 8863, 540, 309, 261, 892, 1830, 480, 446, 13, 1850, 288, 2398, 3597, 4227, 18, 1376, 2932, 3805, 3176, 2435, 1450, 10233, 791, 598, 1014, 30, 315, 397, 4775, 1769, 2398, 3597, 4227, 18, 1376, 2932, 1420, 13920, 1450, 2168, 30, 315, 397, 498, 1494, 397, 3104, 315, 21821, 397, 1542, 1494, 397, 315, 471, 315, 397, 2858, 1494, 1769, 2398, 3597, 4227, 18, 1376, 2932, 1420, 13920, 4378, 287, 1235, 1199, 1769, 540, 289, 1850, 469, 309, 261, 892, 1830, 461, 480, 446, 13, 1850, 288, 2398, 3597, 4227, 18, 1376, 2932, 3805, 3176, 2435, 6338, 30, 315, 397, 10233, 461, 397, 4016, 397, 4775, 1769, 2398, 3597, 4227, 18, 1376, 2932, 1420, 13920, 1450, 2168, 30, 315, 397, 498, 1494, 397, 3104, 315, 21821, 397, 1542, 1494, 397, 315, 471, 315, 397, 2858, 1494, 1769, 2398, 3597, 4227, 18, 1376, 2932, 1420, 13920, 4378, 287, 1235, 1199, 1769, 5375, 289, 1850, 469, 1850, 288, 5411, 3597, 4227, 18, 1376, 2932, 8597, 1420, 2886, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 918, 1208, 12, 11456, 2297, 1664, 13, 377, 288, 540, 10233, 461, 225, 273, 1664, 18, 588, 780, 2932, 3146, 18, 13178, 552, 8863, 540, 4775, 4202, 273, 1664, 18, 588, 780, 2932, 3146, 18, 2121, 8863, 540, 498, 1494, 4202, 273, 1664, 18, 588, 780, 2932, 3146, 18, 856, 2827, 8863, 540, 1542, 1494, 225, 273, 1664, 18, 588, 780, 2932, 3146, 18, 3202, 2827, 8863, 540, 2858, 1494, 273, 1664, 18, 588, 780, 2932, 3146, 18, 5508, 2827, 8863, 540, 309, 261, 892, 1830, 480, 446, 13, 1850, 288, 2398, 3597, 4227, 18, 1376, 2932, 3805, 3176, 2435, 1450, 10233, 791, 598, 1014, 30, 315, 397, 4775, 1769, 2398, 3597, 4227, 18, 1376, 2932, 1420, 2 ]
Edge<Object> e = g.addEdge(v1, v2);
DefaultEdge e = g.addEdge(v1, v2);
public void testGraphListener() { init(); ListenableGraph<Object,Edge<Object>> g = new ListenableUndirectedGraph<Object, Edge<Object>>(); GraphListener<Object, Edge<Object>> listener = new MyGraphListner(); g.addGraphListener(listener); String v1 = new String("v1"); String v2 = new String("v2"); // test vertex notification g.addVertex(v1); assertEquals(v1, m_lastAddedVertex); assertEquals(null, m_lastRemovedVertex); init(); g.removeVertex(v1); assertEquals(v1, m_lastRemovedVertex); assertEquals(null, m_lastAddedVertex); // test edge notification g.addVertex(v1); g.addVertex(v2); init(); Edge<Object> e = g.addEdge(v1, v2); assertEquals(e, m_lastAddedEdge); assertEquals(null, m_lastRemovedEdge); init(); assertTrue(g.removeEdge(e)); assertEquals(e, m_lastRemovedEdge); assertEquals(null, m_lastAddedEdge); g.removeVertex(v1); g.removeVertex(v2); // // test notification stops when removing listener // g.removeGraphListener(listener); init(); g.addVertex(v1); g.addVertex(v2); e = g.addEdge(v1, v2); g.removeEdge(e); assertEquals(null, m_lastAddedEdge); assertEquals(null, m_lastAddedVertex); assertEquals(null, m_lastRemovedEdge); assertEquals(null, m_lastRemovedVertex); }
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/c3e5aa9fad3b9e0927939b2a916ae5049377758b/ListenableGraphTest.java/buggy/testsrc/org/jgrapht/graph/ListenableGraphTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4137, 2223, 1435, 565, 288, 3639, 1208, 5621, 3639, 987, 7589, 4137, 32, 921, 16, 6098, 32, 921, 9778, 314, 273, 394, 987, 7589, 984, 26830, 4137, 32, 921, 16, 11342, 32, 921, 9778, 5621, 3639, 5601, 2223, 32, 921, 16, 11342, 32, 921, 9778, 2991, 273, 394, 8005, 4137, 682, 1224, 5621, 3639, 314, 18, 1289, 4137, 2223, 12, 12757, 1769, 3639, 514, 331, 21, 273, 394, 514, 2932, 90, 21, 8863, 3639, 514, 331, 22, 273, 394, 514, 2932, 90, 22, 8863, 3639, 368, 1842, 5253, 3851, 3639, 314, 18, 1289, 6475, 12, 90, 21, 1769, 3639, 1815, 8867, 12, 90, 21, 16, 312, 67, 2722, 8602, 6475, 1769, 3639, 1815, 8867, 12, 2011, 16, 312, 67, 2722, 10026, 6475, 1769, 3639, 1208, 5621, 3639, 314, 18, 4479, 6475, 12, 90, 21, 1769, 3639, 1815, 8867, 12, 90, 21, 16, 312, 67, 2722, 10026, 6475, 1769, 3639, 1815, 8867, 12, 2011, 16, 312, 67, 2722, 8602, 6475, 1769, 3639, 368, 1842, 3591, 3851, 3639, 314, 18, 1289, 6475, 12, 90, 21, 1769, 3639, 314, 18, 1289, 6475, 12, 90, 22, 1769, 3639, 1208, 5621, 3639, 2989, 6098, 425, 273, 314, 18, 1289, 6098, 12, 90, 21, 16, 331, 22, 1769, 3639, 1815, 8867, 12, 73, 16, 312, 67, 2722, 8602, 6098, 1769, 3639, 1815, 8867, 12, 2011, 16, 312, 67, 2722, 10026, 6098, 1769, 3639, 1208, 5621, 3639, 1815, 5510, 12, 75, 18, 4479, 6098, 12, 73, 10019, 3639, 1815, 8867, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4137, 2223, 1435, 565, 288, 3639, 1208, 5621, 3639, 987, 7589, 4137, 32, 921, 16, 6098, 32, 921, 9778, 314, 273, 394, 987, 7589, 984, 26830, 4137, 32, 921, 16, 11342, 32, 921, 9778, 5621, 3639, 5601, 2223, 32, 921, 16, 11342, 32, 921, 9778, 2991, 273, 394, 8005, 4137, 682, 1224, 5621, 3639, 314, 18, 1289, 4137, 2223, 12, 12757, 1769, 3639, 514, 331, 21, 273, 394, 514, 2932, 90, 21, 8863, 3639, 514, 331, 22, 273, 394, 514, 2932, 90, 22, 8863, 3639, 368, 1842, 5253, 3851, 3639, 314, 18, 1289, 6475, 12, 90, 21, 1769, 3639, 1815, 8867, 12, 90, 21, 16, 312, 67, 2722, 8602, 6475, 1769, 3639, 1815, 8867, 12, 2 ]
urlText.addListener(SWT.FocusIn, new GenericListener());
urlText.addListener(SWT.FocusIn, new GenericListener());
protected void addUrlText(String url, Composite attributesComposite) {// newLayout(attributesComposite, 1, "URL:", PROPERTY); toolkit.createLabel(attributesComposite, "URL:"); urlText = toolkit.createText(attributesComposite, url); urlText.setFont(TEXT_FONT); GridData urlTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); urlTextData.horizontalSpan = 3; urlTextData.widthHint = 200; urlText.setLayoutData(urlTextData);// urlText.setText(url); urlText.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = urlText.getText(); Attribute a = getBug().getAttribute("URL"); if (!(a.getNewValue().equals(sel))) { a.setNewValue(sel); changeDirtyStatus(true); } } }); urlText.addListener(SWT.FocusIn, new GenericListener()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/dbc174ae73ca89a83ba02de2ee39dee30bf1b142/AbstractBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 1489, 1528, 12, 780, 880, 16, 14728, 1677, 9400, 13, 288, 759, 202, 202, 2704, 3744, 12, 4350, 9400, 16, 404, 16, 315, 1785, 2773, 16, 9759, 1769, 202, 202, 6738, 8691, 18, 2640, 2224, 12, 4350, 9400, 16, 315, 1785, 2773, 1769, 202, 202, 718, 1528, 273, 5226, 8691, 18, 2640, 1528, 12, 4350, 9400, 16, 880, 1769, 202, 202, 718, 1528, 18, 542, 5711, 12, 5151, 67, 25221, 1769, 202, 202, 6313, 751, 880, 1528, 751, 273, 394, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 29818, 1769, 202, 202, 718, 1528, 751, 18, 18396, 6952, 273, 890, 31, 202, 202, 718, 1528, 751, 18, 2819, 7002, 273, 4044, 31, 202, 202, 718, 1528, 18, 542, 3744, 751, 12, 718, 1528, 751, 1769, 759, 202, 202, 718, 1528, 18, 542, 1528, 12, 718, 1769, 202, 202, 718, 1528, 18, 1289, 2223, 12, 55, 8588, 18, 653, 1211, 16, 394, 10652, 1435, 288, 1082, 202, 482, 918, 1640, 1133, 12, 1133, 871, 13, 288, 9506, 202, 780, 357, 273, 880, 1528, 18, 588, 1528, 5621, 9506, 202, 1499, 279, 273, 2882, 637, 7675, 588, 1499, 2932, 1785, 8863, 9506, 202, 430, 16051, 12, 69, 18, 588, 1908, 620, 7675, 14963, 12, 1786, 20349, 288, 6862, 202, 69, 18, 542, 1908, 620, 12, 1786, 1769, 6862, 202, 3427, 10785, 1482, 12, 3767, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 22938, 202, 202, 718, 1528, 18, 1289, 2223, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 1489, 1528, 12, 780, 880, 16, 14728, 1677, 9400, 13, 288, 759, 202, 202, 2704, 3744, 12, 4350, 9400, 16, 404, 16, 315, 1785, 2773, 16, 9759, 1769, 202, 202, 6738, 8691, 18, 2640, 2224, 12, 4350, 9400, 16, 315, 1785, 2773, 1769, 202, 202, 718, 1528, 273, 5226, 8691, 18, 2640, 1528, 12, 4350, 9400, 16, 880, 1769, 202, 202, 718, 1528, 18, 542, 5711, 12, 5151, 67, 25221, 1769, 202, 202, 6313, 751, 880, 1528, 751, 273, 394, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 29818, 1769, 202, 202, 718, 1528, 751, 18, 18396, 6952, 273, 890, 31, 202, 202, 718, 1528, 751, 18, 2819, 7002, 273, 4044, 2 ]
removeItem(items.next());
Item item = items.next(); if (item.isOwningCollection(this)) { Collection[] collections = item.getCollections(); for (int i=0; i< collections.length; i++) { collections[i].removeItem(item); } } else { removeItem(item); }
void delete() throws SQLException, AuthorizeException, IOException { log.info(LogManager.getHeader(ourContext, "delete_collection", "collection_id=" + getID())); // remove from index DSIndexer.unIndexContent(ourContext, this); // Remove from cache ourContext.removeCached(this, getID()); HistoryManager.saveHistory(ourContext, this, HistoryManager.REMOVE, ourContext.getCurrentUser(), ourContext.getExtraLogInfo()); // remove subscriptions - hmm, should this be in Subscription.java? DatabaseManager.updateQuery(ourContext, "DELETE FROM subscription WHERE collection_id= ? ", getID()); // Remove items ItemIterator items = getItems(); while (items.hasNext()) { removeItem(items.next()); } // Delete bitstream logo setLogo(null); // Remove all authorization policies AuthorizeManager.removeAllPolicies(ourContext, this); // Remove any WorkflowItems WorkflowItem[] wfarray = WorkflowItem .findByCollection(ourContext, this); for (int x = 0; x < wfarray.length; x++) { // remove the workflowitem first, then the item Item myItem = wfarray[x].getItem(); wfarray[x].deleteWrapper(); myItem.delete(); } // Remove any WorkspaceItems WorkspaceItem[] wsarray = WorkspaceItem.findByCollection(ourContext, this); for (int x = 0; x < wsarray.length; x++) { wsarray[x].deleteAll(); } // Delete collection row DatabaseManager.delete(ourContext, collectionRow); // Remove any workflow groups - must happen after deleting collection Group g = null; g = getWorkflowGroup(1); if (g != null) { g.delete(); } g = getWorkflowGroup(2); if (g != null) { g.delete(); } g = getWorkflowGroup(3); if (g != null) { g.delete(); } // Remove default administrators group g = getAdministrators(); if (g != null) { g.delete(); } // Remove default submitters group g = getSubmitters(); if (g != null) { g.delete(); } }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/c6e5a20b1595d317953d7da3bd3b3ac3a3f14f3a/Collection.java/buggy/dspace/src/org/dspace/content/Collection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1430, 1435, 1216, 6483, 16, 23859, 503, 16, 1860, 565, 288, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 477, 1042, 16, 315, 3733, 67, 5548, 3113, 7734, 315, 5548, 67, 350, 1546, 397, 14744, 1435, 10019, 3639, 368, 1206, 628, 770, 3639, 8678, 20877, 18, 318, 1016, 1350, 12, 477, 1042, 16, 333, 1769, 3639, 368, 3581, 628, 1247, 3639, 3134, 1042, 18, 4479, 9839, 12, 2211, 16, 14744, 10663, 3639, 16058, 1318, 18, 5688, 5623, 12, 477, 1042, 16, 333, 16, 16058, 1318, 18, 22122, 16, 7734, 3134, 1042, 18, 588, 3935, 1299, 9334, 3134, 1042, 18, 588, 7800, 1343, 966, 10663, 3639, 368, 1206, 11912, 300, 366, 7020, 16, 1410, 333, 506, 316, 12132, 18, 6290, 35, 3639, 5130, 1318, 18, 2725, 1138, 12, 477, 1042, 16, 7734, 315, 6460, 4571, 4915, 4852, 1849, 67, 350, 33, 692, 3104, 1171, 14744, 10663, 3639, 368, 3581, 1516, 3639, 4342, 3198, 1516, 273, 15515, 5621, 3639, 1323, 261, 3319, 18, 5332, 2134, 10756, 3639, 288, 5411, 4342, 761, 273, 1516, 18, 4285, 5621, 225, 309, 261, 1726, 18, 291, 3494, 2093, 2532, 12, 2211, 3719, 288, 282, 2200, 8526, 6980, 273, 761, 18, 588, 15150, 5621, 364, 261, 474, 277, 33, 20, 31, 277, 32, 6980, 18, 2469, 31, 277, 27245, 288, 6980, 63, 77, 8009, 4479, 1180, 12, 1726, 1769, 289, 225, 289, 225, 469, 288, 29178, 12, 1726, 1769, 289, 3639, 289, 3639, 368, 2504, 28640, 19128, 3639, 444, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1430, 1435, 1216, 6483, 16, 23859, 503, 16, 1860, 565, 288, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 477, 1042, 16, 315, 3733, 67, 5548, 3113, 7734, 315, 5548, 67, 350, 1546, 397, 14744, 1435, 10019, 3639, 368, 1206, 628, 770, 3639, 8678, 20877, 18, 318, 1016, 1350, 12, 477, 1042, 16, 333, 1769, 3639, 368, 3581, 628, 1247, 3639, 3134, 1042, 18, 4479, 9839, 12, 2211, 16, 14744, 10663, 3639, 16058, 1318, 18, 5688, 5623, 12, 477, 1042, 16, 333, 16, 16058, 1318, 18, 22122, 16, 7734, 3134, 1042, 18, 588, 3935, 1299, 9334, 3134, 1042, 18, 588, 7800, 1343, 966, 10663, 3639, 368, 1206, 11912, 300, 366, 7020, 16, 1410, 333, 2 ]
ast= null;
ast[0]= null;
private void reconcile(boolean initialReconcile) { CompilationUnit ast= null; try { ICompilationUnit unit= fManager.getWorkingCopy(fEditor.getEditorInput()); if (unit != null) { try { /* fix for missing cancel flag communication */ IProblemRequestorExtension extension= getProblemRequestorExtension(); if (extension != null) { extension.setProgressMonitor(fProgressMonitor); extension.setIsActive(true); } try { boolean isASTNeeded= initialReconcile || JavaPlugin.getDefault().getASTProvider().isActive(unit); // reconcile synchronized (unit) { if (fIsJavaReconcilingListener && isASTNeeded) { ast= unit.reconcile(ASTProvider.AST_LEVEL, true, null, fProgressMonitor); if (ast != null) { // mark as unmodifiable ASTNodes.setFlagsToAST(ast, ASTNode.PROTECT); } } else unit.reconcile(ICompilationUnit.NO_AST, true, null, fProgressMonitor); } } catch (OperationCanceledException ex) { Assert.isTrue(fProgressMonitor == null || fProgressMonitor.isCanceled()); ast= null; } finally { /* fix for missing cancel flag communication */ if (extension != null) { extension.setProgressMonitor(null); extension.setIsActive(false); } } } catch (JavaModelException x) { // swallow exception } } } finally { // Always notify listeners, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=55969 for the final solution try { if (fIsJavaReconcilingListener) { IProgressMonitor pm= fProgressMonitor; if (pm == null) pm= new NullProgressMonitor(); fJavaReconcilingListener.reconciled(ast, !fNotify, pm); } } finally { fNotify= true; } } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/3d9699d6c3751cdc68f2dbec53b119d4674d5e2a/JavaReconcilingStrategy.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaReconcilingStrategy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 27163, 12, 6494, 2172, 426, 11504, 398, 13, 288, 202, 202, 19184, 2802, 3364, 33, 446, 31, 202, 202, 698, 288, 1082, 202, 45, 19184, 2802, 2836, 33, 284, 1318, 18, 588, 14836, 2951, 12, 74, 6946, 18, 588, 6946, 1210, 10663, 1082, 202, 430, 261, 4873, 480, 446, 13, 288, 9506, 202, 698, 288, 6862, 202, 20308, 2917, 364, 3315, 3755, 2982, 18279, 1195, 6862, 202, 45, 13719, 691, 280, 3625, 2710, 33, 3570, 70, 3269, 691, 280, 3625, 5621, 6862, 202, 430, 261, 6447, 480, 446, 13, 288, 25083, 202, 6447, 18, 542, 5491, 7187, 12, 74, 5491, 7187, 1769, 25083, 202, 6447, 18, 542, 2520, 3896, 12, 3767, 1769, 6862, 202, 97, 6862, 202, 698, 288, 25083, 202, 6494, 353, 9053, 11449, 33, 2172, 426, 11504, 398, 747, 5110, 3773, 18, 588, 1868, 7675, 588, 9053, 2249, 7675, 291, 3896, 12, 4873, 1769, 25083, 202, 759, 27163, 25083, 202, 22043, 261, 4873, 13, 288, 6862, 1082, 202, 430, 261, 74, 2520, 5852, 426, 11504, 4973, 2223, 597, 353, 9053, 11449, 13, 288, 6862, 9506, 202, 689, 33, 2836, 18, 266, 11504, 398, 12, 9053, 2249, 18, 9053, 67, 10398, 16, 638, 16, 446, 16, 284, 5491, 7187, 1769, 6862, 9506, 202, 430, 261, 689, 480, 446, 13, 288, 6862, 6862, 202, 759, 2267, 487, 14613, 6862, 6862, 202, 9053, 3205, 18, 542, 5094, 774, 9053, 12, 689, 16, 9183, 907, 18, 3373, 1448, 1268, 1769, 6862, 9506, 202, 97, 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, 1152, 918, 27163, 12, 6494, 2172, 426, 11504, 398, 13, 288, 202, 202, 19184, 2802, 3364, 33, 446, 31, 202, 202, 698, 288, 1082, 202, 45, 19184, 2802, 2836, 33, 284, 1318, 18, 588, 14836, 2951, 12, 74, 6946, 18, 588, 6946, 1210, 10663, 1082, 202, 430, 261, 4873, 480, 446, 13, 288, 9506, 202, 698, 288, 6862, 202, 20308, 2917, 364, 3315, 3755, 2982, 18279, 1195, 6862, 202, 45, 13719, 691, 280, 3625, 2710, 33, 3570, 70, 3269, 691, 280, 3625, 5621, 6862, 202, 430, 261, 6447, 480, 446, 13, 288, 25083, 202, 6447, 18, 542, 5491, 7187, 12, 74, 5491, 7187, 1769, 25083, 202, 6447, 18, 542, 2520, 3896, 12, 3767, 1769, 6862, 202, 97, 2 ]
detachDataSets();
detachAllDataSets(); if (legend != null) legend.removeAllDataSets(); plotCount = 0;
private void regeneratePlots() { if (tm == null) return; detachDataSets(); // find start of data (i.e. lose headers) int columnStart = 1; int rowStart = 0; search : { for (; rowStart < tm.getRowCount(); rowStart++) { for (; columnStart < tm.getColumnCount() ; columnStart++) { Object testValue = tm.getValueAt(rowStart, columnStart); if ((testValue instanceof Float) || (testValue instanceof Double) || (testValue.toString(). equals(DatabaseTableModel.NO_VALUE))) { break search; } } } } plotCount = 0; int numberOfDataPoints = tm.getColumnCount() - columnStart; if (numberOfDataPoints <= 0) return; double[] data = new double[numberOfDataPoints * 2]; if (tm != null) { for (int row = rowStart; row < tm.getRowCount(); row++) { for (int column = columnStart; column < tm.getColumnCount(); column++) { int pointLocation = (column - columnStart) * 2; try { data[pointLocation] = Double.parseDouble( tm.getColumnName(column).toString()); } catch(NumberFormatException e) { data[pointLocation] = column; } Object value = tm.getValueAt(row, column); data[pointLocation + 1] = (value instanceof Number) ? ((Number)value).doubleValue():0; } plot(data, numberOfDataPoints, 1, tm.getValueAt(row, 0).toString()); } } // Make this adjustable later yaxis_left.minimum = 0; yaxis_left.maximum = yaxis_left.maximum + yaxis_left.maximum * 0.1; revalidate(); repaint(); }
7169 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7169/79eee7680d9471f004bd7d9705ac91339e963552/CLinePlotChart.java/clean/uiframework/src/org/cougaar/lib/uiframework/ui/components/CLinePlotChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 20821, 29311, 1435, 565, 288, 3639, 309, 261, 16925, 422, 446, 13, 327, 31, 3639, 10199, 1595, 751, 2785, 5621, 309, 261, 16292, 480, 446, 13, 7241, 18, 4479, 1595, 751, 2785, 5621, 3207, 1380, 273, 374, 31, 3639, 368, 1104, 787, 434, 501, 261, 77, 18, 73, 18, 29612, 1607, 13, 3639, 509, 1057, 1685, 273, 404, 31, 3639, 509, 1027, 1685, 273, 374, 31, 3639, 1623, 294, 288, 5411, 364, 261, 31, 1027, 1685, 411, 6118, 18, 588, 26359, 5621, 1027, 1685, 27245, 5411, 288, 7734, 364, 261, 31, 1057, 1685, 411, 6118, 18, 588, 1494, 1380, 1435, 274, 1057, 1685, 27245, 7734, 288, 10792, 1033, 1842, 620, 273, 6118, 18, 24805, 861, 12, 492, 1685, 16, 1057, 1685, 1769, 10792, 309, 14015, 3813, 620, 1276, 5450, 13, 747, 13491, 261, 3813, 620, 1276, 3698, 13, 747, 13491, 261, 3813, 620, 18, 10492, 7675, 18701, 1606, 12, 4254, 1388, 1488, 18, 3417, 67, 4051, 20349, 10792, 288, 13491, 898, 1623, 31, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 3639, 3207, 1380, 273, 374, 31, 3639, 509, 7922, 751, 5636, 273, 6118, 18, 588, 1494, 1380, 1435, 300, 1057, 1685, 31, 3639, 309, 261, 2696, 951, 751, 5636, 1648, 374, 13, 327, 31, 3639, 1645, 8526, 501, 273, 394, 1645, 63, 2696, 951, 751, 5636, 380, 576, 15533, 3639, 309, 261, 16925, 480, 446, 13, 3639, 288, 5411, 364, 261, 474, 1027, 273, 1027, 1685, 31, 1027, 411, 6118, 18, 588, 26359, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20821, 29311, 1435, 565, 288, 3639, 309, 261, 16925, 422, 446, 13, 327, 31, 3639, 10199, 1595, 751, 2785, 5621, 309, 261, 16292, 480, 446, 13, 7241, 18, 4479, 1595, 751, 2785, 5621, 3207, 1380, 273, 374, 31, 3639, 368, 1104, 787, 434, 501, 261, 77, 18, 73, 18, 29612, 1607, 13, 3639, 509, 1057, 1685, 273, 404, 31, 3639, 509, 1027, 1685, 273, 374, 31, 3639, 1623, 294, 288, 5411, 364, 261, 31, 1027, 1685, 411, 6118, 18, 588, 26359, 5621, 1027, 1685, 27245, 5411, 288, 7734, 364, 261, 31, 1057, 1685, 411, 6118, 18, 588, 1494, 1380, 1435, 274, 1057, 1685, 27245, 7734, 288, 10792, 1033, 1842, 620, 273, 6118, 18, 24805, 861, 12, 2 ]
finder.addBaseDirectory(new File(args[++i]));
baseDir = args[++i];
private void parseArguments(String[] args) throws Exception { FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) { finder.addBaseDirectory(new File(args[++i])); } else if (args[i].equals("--datafile")) { setDataFile( args[++i]); } else if (args[i].equals("--destination")) { setDestination( args[++i]); } else if (args[i].equals("--format")) { setFormat( args[++i]); } else { finder.addSourceFilePath(args[i]); } } if (dataFile == null) dataFile = CoverageDataFileHandler.getDefaultDataFile(); if (destinationDir == null) { System.err.println("Error: destination directory must be set"); System.exit(1); } if (format == null) { System.err.println("Error: format must be set"); System.exit(1); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("format is " + format); LOGGER.debug("dataFile is " + dataFile.getAbsolutePath()); LOGGER.debug("destinationDir is " + destinationDir.getAbsolutePath()); } ProjectData projectData = CoverageDataFileHandler.loadCoverageData(dataFile); if (projectData == null) { System.err.println("Error: Unable to read from data file " + dataFile.getAbsolutePath()); System.exit(1); } if (format.equalsIgnoreCase("html")) { new HTMLReport(projectData, destinationDir, finder); } else if (format.equalsIgnoreCase("xml")) { new XMLReport(projectData, destinationDir, finder); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c26f5a170c752d9d1d5b884dd7eb60b982637269/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1109, 4628, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 202, 812, 8441, 7532, 273, 394, 1387, 8441, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 31722, 6, 3719, 288, 9506, 202, 15356, 18, 1289, 2171, 2853, 12, 2704, 1387, 12, 1968, 63, 9904, 77, 5717, 1769, 1082, 202, 97, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 892, 768, 6, 3719, 288, 9506, 202, 542, 751, 812, 12, 833, 63, 9904, 77, 19226, 1082, 202, 97, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 10590, 6, 3719, 288, 9506, 202, 542, 5683, 12, 833, 63, 9904, 77, 19226, 1082, 202, 97, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 2139, 6, 3719, 288, 9506, 202, 542, 1630, 12, 833, 63, 9904, 77, 19226, 1082, 202, 97, 469, 288, 9506, 202, 15356, 18, 1289, 1830, 5598, 12, 1968, 63, 77, 19226, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 892, 812, 422, 446, 13, 1082, 202, 892, 812, 273, 30856, 751, 28942, 18, 588, 1868, 751, 812, 5621, 202, 202, 430, 261, 10590, 1621, 422, 446, 13, 202, 202, 95, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 668, 30, 2929, 1867, 1297, 506, 444, 8863, 1082, 202, 3163, 18, 8593, 12, 21, 1769, 202, 202, 97, 202, 202, 430, 261, 2139, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 4628, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 202, 812, 8441, 7532, 273, 394, 1387, 8441, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 31722, 6, 3719, 288, 9506, 202, 15356, 18, 1289, 2171, 2853, 12, 2704, 1387, 12, 1968, 63, 9904, 77, 5717, 1769, 1082, 202, 97, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 892, 768, 6, 3719, 288, 9506, 202, 542, 751, 812, 12, 833, 63, 9904, 77, 19226, 1082, 202, 97, 469, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 413, 10590, 6, 3719, 2 ]
return "accessType = " + accessType + ", line = " + line;
return "accessType = " + accessType + ", line = " + node.getLine();
public String toString() { return "accessType = " + accessType + ", line = " + line; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/1a55076414a8d47bb22ffae2ed65d2bd94b5ed05/UselessAssignment.java/buggy/pmd/src/net/sourceforge/pmd/rules/UselessAssignment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 5411, 327, 315, 3860, 559, 273, 315, 397, 2006, 559, 397, 3104, 980, 273, 315, 397, 756, 18, 588, 1670, 5621, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 5411, 327, 315, 3860, 559, 273, 315, 397, 2006, 559, 397, 3104, 980, 273, 315, 397, 756, 18, 588, 1670, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 ]
}); state.pipelineInputs = getConnectedInputs(); state.nameToBottomInputMap = config.getNameToInputMap(); state.started = true; for (Iterator i = config.getProcessorsToStart().iterator(); i.hasNext();) { final Processor processor = (Processor) i.next(); executeChildren(context, new Runnable() { public void run() { try { processor.start(context); } catch (Exception e) { throw ValidationException.wrapException(e, processor.getLocationData()); } } });
state.started = true;
public void start(final PipelineContext context) { // Check that we are not already started State state = (State) getState(context); if (state.started) throw new IllegalStateException("ASTPipeline Processor already started"); // Create config. We have 2 cases: // 1) The config is provided to us as an AST // 2) We need to read the config input final PipelineConfig config = configFromAST != null ? configFromAST : (PipelineConfig) readCacheInputAsObject(context, getInputByName(INPUT_CONFIG), new CacheableInputReader() { public Object read(final PipelineContext context, final ProcessorInput input) { return readPipelineConfig(context, input); } }); // Reset processors executeChildren(context, new Runnable() { public void run() { for (Iterator i = config.getProcessors().iterator(); i.hasNext();) { ((Processor) i.next()).reset(context); } } }); // Save inputs in state for InternalTopOutput state.pipelineInputs = getConnectedInputs(); // Bottom inputs: copy in state state.nameToBottomInputMap = config.getNameToInputMap(); state.started = true; // Run the processors that are not connected to any pipeline output for (Iterator i = config.getProcessorsToStart().iterator(); i.hasNext();) { final Processor processor = (Processor) i.next(); executeChildren(context, new Runnable() { public void run() { try { processor.start(context); } catch (Exception e) { throw ValidationException.wrapException(e, processor.getLocationData()); } } }); } }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/e2d4df756d65e5e560c6707604297966ee6447b3/PipelineProcessor.java/clean/src/java/org/orbeon/oxf/processor/pipeline/PipelineProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 12, 6385, 13671, 1042, 819, 13, 288, 3639, 368, 2073, 716, 732, 854, 486, 1818, 5746, 3639, 3287, 919, 273, 261, 1119, 13, 8997, 12, 2472, 1769, 3639, 309, 261, 2019, 18, 14561, 13, 5411, 604, 394, 5477, 2932, 9053, 8798, 15476, 1818, 5746, 8863, 3639, 368, 1788, 642, 18, 1660, 1240, 576, 6088, 30, 3639, 368, 404, 13, 1021, 642, 353, 2112, 358, 584, 487, 392, 9183, 3639, 368, 576, 13, 1660, 1608, 358, 855, 326, 642, 810, 3639, 727, 13671, 809, 642, 273, 642, 1265, 9053, 480, 446, 692, 642, 1265, 9053, 294, 7734, 261, 8798, 809, 13, 855, 1649, 1210, 1463, 921, 12, 2472, 16, 12353, 5911, 12, 15934, 67, 7203, 3631, 13491, 394, 4379, 429, 1210, 2514, 1435, 288, 18701, 1071, 1033, 855, 12, 6385, 13671, 1042, 819, 16, 727, 15476, 1210, 810, 13, 288, 27573, 327, 855, 8798, 809, 12, 2472, 16, 810, 1769, 18701, 289, 13491, 15549, 3639, 368, 7151, 13399, 3639, 1836, 4212, 12, 2472, 16, 394, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 364, 261, 3198, 277, 273, 642, 18, 588, 18155, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 10792, 14015, 5164, 13, 277, 18, 4285, 1435, 2934, 6208, 12, 2472, 1769, 7734, 289, 5411, 289, 3639, 15549, 3639, 368, 7074, 4540, 316, 919, 364, 3186, 3401, 1447, 3639, 919, 18, 14511, 10059, 273, 336, 8932, 10059, 5621, 3639, 368, 30285, 4540, 30, 1610, 316, 919, 3639, 919, 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, 787, 12, 6385, 13671, 1042, 819, 13, 288, 3639, 368, 2073, 716, 732, 854, 486, 1818, 5746, 3639, 3287, 919, 273, 261, 1119, 13, 8997, 12, 2472, 1769, 3639, 309, 261, 2019, 18, 14561, 13, 5411, 604, 394, 5477, 2932, 9053, 8798, 15476, 1818, 5746, 8863, 3639, 368, 1788, 642, 18, 1660, 1240, 576, 6088, 30, 3639, 368, 404, 13, 1021, 642, 353, 2112, 358, 584, 487, 392, 9183, 3639, 368, 576, 13, 1660, 1608, 358, 855, 326, 642, 810, 3639, 727, 13671, 809, 642, 273, 642, 1265, 9053, 480, 446, 692, 642, 1265, 9053, 294, 7734, 261, 8798, 809, 13, 855, 1649, 1210, 1463, 921, 12, 2472, 16, 12353, 5911, 12, 15934, 67, 7203, 3631, 2 ]
return getObjectInstanciatorURI(className.getName(), templateName);
if(USE_NEW_URL_SCHEME){ return this.getWindowOpenerURI(className) + templateParameter + "=" + getEncryptedClassName(templateName); } else{ return getObjectInstanciatorURI() + "?" + classToInstanciateParameter + "=" + getEncryptedClassName(className) + "&" + templateParameter + "=" + getEncryptedClassName(templateName); }
public String getObjectInstanciatorURI(Class className, String templateName) { return getObjectInstanciatorURI(className.getName(), templateName); }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/692bf79037ef50be5792b167ad679f2186122bdc/IWMainApplication.java/buggy/src/java/com/idega/idegaweb/IWMainApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6455, 382, 541, 8450, 639, 3098, 12, 797, 2658, 16, 514, 15523, 13, 288, 540, 309, 12, 8001, 67, 12917, 67, 1785, 67, 22870, 15329, 327, 333, 18, 588, 3829, 3817, 708, 3098, 12, 12434, 13, 397, 1542, 1662, 397, 9671, 397, 336, 14678, 3834, 12, 3202, 461, 1769, 289, 469, 95, 327, 6455, 382, 541, 8450, 639, 3098, 1435, 397, 13574, 397, 667, 774, 382, 27866, 3840, 1662, 397, 9671, 397, 336, 14678, 3834, 12, 12434, 13, 397, 16347, 397, 1542, 1662, 397, 9671, 397, 336, 14678, 3834, 12, 3202, 461, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6455, 382, 541, 8450, 639, 3098, 12, 797, 2658, 16, 514, 15523, 13, 288, 540, 309, 12, 8001, 67, 12917, 67, 1785, 67, 22870, 15329, 327, 333, 18, 588, 3829, 3817, 708, 3098, 12, 12434, 13, 397, 1542, 1662, 397, 9671, 397, 336, 14678, 3834, 12, 3202, 461, 1769, 289, 469, 95, 327, 6455, 382, 541, 8450, 639, 3098, 1435, 397, 13574, 397, 667, 774, 382, 27866, 3840, 1662, 397, 9671, 397, 336, 14678, 3834, 12, 12434, 13, 397, 16347, 397, 1542, 1662, 397, 9671, 397, 336, 14678, 3834, 12, 3202, 461, 1769, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int lastYlo = height - lastDatum; int nextYlo = height - nextDatum; int yhi = height;
int lastYlo = y + height - lastDatum; int nextYlo = y + height - nextDatum; int yhi = y + height;
public static Icon getIcon( final StyleSet styleSet ) { final int height = 16; final double[][] data = { { 0, 4, 7, 12, 15, 9, 0 }, { 0, 2, 6, 8, 9, 3, 0 } }; final int nSet = data.length; final int nBar = data[ 0 ].length - 2; final int barWidth = nSet * 5; final int xPad = barWidth; return new Icon() { public int getIconHeight() { return height; } public int getIconWidth() { return nBar * barWidth + xPad; } public void paintIcon( Component c, Graphics g, int xoff, int yoff ) { for ( int iset = 0; iset < nSet; iset++ ) { for ( int ibar = 0; ibar < nBar; ibar++ ) { int x = barWidth * ibar; int lastDatum = (int) data[ iset ][ ibar ]; int datum = (int) data[ iset ][ ibar + 1 ]; int nextDatum = (int) data[ iset ][ ibar + 2 ]; int y = height - datum; BarStyle style = (BarStyle) styleSet.getStyle( iset ); int xlo = xPad + ibar * barWidth; int xhi = xlo + barWidth; int ylo = height - datum; int lastYlo = height - lastDatum; int nextYlo = height - nextDatum; int yhi = height; if ( ibar == 0 ) { style.drawEdge( g, xlo, ylo, lastYlo, iset, nSet ); } style.drawBar( g, xlo, xhi, ylo, yhi, iset, nSet ); style.drawEdge( g, xhi, ylo, nextYlo, iset, nSet ); } } } }; }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/e872248073cb65a47b494c646bac54e9e2eb8b5e/BarStyles.java/buggy/topcat/src/main/uk/ac/starlink/topcat/plot/BarStyles.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 16011, 21724, 12, 727, 9767, 694, 2154, 694, 262, 288, 3639, 727, 509, 2072, 273, 2872, 31, 3639, 727, 1645, 63, 6362, 65, 501, 273, 288, 288, 374, 16, 1059, 16, 2371, 16, 2593, 16, 4711, 16, 2468, 16, 374, 19879, 21394, 288, 374, 16, 576, 16, 1666, 16, 225, 1725, 16, 225, 2468, 16, 890, 16, 374, 289, 289, 31, 3639, 727, 509, 290, 694, 273, 501, 18, 2469, 31, 3639, 727, 509, 290, 5190, 273, 501, 63, 374, 308, 18, 2469, 300, 576, 31, 3639, 727, 509, 4653, 2384, 273, 290, 694, 380, 1381, 31, 3639, 727, 509, 619, 14878, 273, 4653, 2384, 31, 3639, 327, 394, 16011, 1435, 288, 5411, 1071, 509, 21724, 2686, 1435, 288, 7734, 327, 2072, 31, 5411, 289, 5411, 1071, 509, 21724, 2384, 1435, 288, 7734, 327, 290, 5190, 380, 4653, 2384, 397, 619, 14878, 31, 5411, 289, 5411, 1071, 918, 12574, 5554, 12, 5435, 276, 16, 16830, 314, 16, 4766, 282, 509, 619, 3674, 16, 509, 677, 3674, 262, 288, 7734, 364, 261, 509, 353, 278, 273, 374, 31, 353, 278, 411, 290, 694, 31, 353, 278, 9904, 262, 288, 10792, 364, 261, 509, 277, 3215, 273, 374, 31, 277, 3215, 411, 290, 5190, 31, 277, 3215, 9904, 262, 288, 13491, 509, 619, 273, 4653, 2384, 380, 277, 3215, 31, 13491, 509, 1142, 18268, 273, 261, 474, 13, 501, 63, 353, 278, 308, 63, 277, 3215, 308, 31, 13491, 509, 12059, 273, 261, 474, 13, 501, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16011, 21724, 12, 727, 9767, 694, 2154, 694, 262, 288, 3639, 727, 509, 2072, 273, 2872, 31, 3639, 727, 1645, 63, 6362, 65, 501, 273, 288, 288, 374, 16, 1059, 16, 2371, 16, 2593, 16, 4711, 16, 2468, 16, 374, 19879, 21394, 288, 374, 16, 576, 16, 1666, 16, 225, 1725, 16, 225, 2468, 16, 890, 16, 374, 289, 289, 31, 3639, 727, 509, 290, 694, 273, 501, 18, 2469, 31, 3639, 727, 509, 290, 5190, 273, 501, 63, 374, 308, 18, 2469, 300, 576, 31, 3639, 727, 509, 4653, 2384, 273, 290, 694, 380, 1381, 31, 3639, 727, 509, 619, 14878, 273, 4653, 2384, 31, 3639, 327, 394, 16011, 1435, 288, 5411, 1071, 509, 21724, 2 ]
buf.append("<input type=\"submit\" name=\"delete_"+b.hashCode()+"\" value=\"Delete\" style=\"float: right; \" />\n"); buf.append("<input type=\"submit\" name=\"edit_"+b.hashCode()+"\" value=\"Edit\" style=\"float: right; \" />\n");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { StringBuffer buf = new StringBuffer(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { ctx.getPageMaker().makeHead(buf, "Add a Bookmark"); buf.append("<form action=\".\" method=\"post\">\n"); buf.append("<div>\n"); buf.append("Please confirm that you wish to add the key:<br />\n"); buf.append("<i>"+request.getParam("newbookmark")+"</i><br />"); buf.append("To your bookmarks, and enter the description that you would prefer:<br />\n"); buf.append("Description:\n"); buf.append("<input type=\"text\" name=\"name\" value=\""+HTMLEncoder.encode(request.getParam("desc"))+"\" style=\"width: 100%; \" />\n"); buf.append("<input type=\"hidden\" name=\"key\" value=\""+HTMLEncoder.encode(request.getParam("newbookmark"))+"\" />\n"); buf.append("<input type=\"submit\" name=\"addbookmark\" value=\"Add Bookmark\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } else if (request.isParameterSet("managebookmarks")) { ctx.getPageMaker().makeHead(buf, "Bookmark Manager"); // existing bookmarks buf.append("<form action=\".\" method=\"post\">\n"); buf.append("<div class=\"infobox\">\n"); buf.append("<h2>My Bookmarks</h2>\n"); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { buf.append("<i>You currently have no bookmarks defined</i>"); } else { buf.append("<ul id=\"bookmarks\">\n"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">"); buf.append(HTMLEncoder.encode(b.getDesc())); buf.append("</a>\n"); buf.append("<input type=\"submit\" name=\"delete_"+b.hashCode()+"\" value=\"Delete\" style=\"float: right; \" />\n"); buf.append("<input type=\"submit\" name=\"edit_"+b.hashCode()+"\" value=\"Edit\" style=\"float: right; \" />\n"); buf.append("</li>\n"); } buf.append("</ul>\n"); } buf.append("<input type=\"hidden\" name=\"managebookmarks\" value=\"yes\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // new bookmark this.makeBookmarkEditForm(buf, MODE_ADD, null, "", "", null); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } ctx.getPageMaker().makeHead(buf, "Freenet FProxy Homepage"); if(node.isTestnetEnabled()) buf.append("<div style=\"color: red; font-size: 200%; \">WARNING: TESTNET MODE ENABLED</div>"); // Alerts node.alerts.toHtml(buf); // Fetch-a-key box buf.append("<br style=\"clear: all; \" />\n"); buf.append("<form action=\"/\" method=\"get\">\n"); buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Fetch a Key</h2>\n"); buf.append("Key: <input type=\"text\" size=\"80\" name=\"key\"/>\n"); buf.append("<input type=\"submit\" value=\"Fetch\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // Bookmarks buf.append("<div class=\"infobox\">\n"); buf.append("<h2>My Bookmarks</h2>"); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { buf.append("<i>You currently have no bookmarks defined</i>"); } else { buf.append("<ul id=\"bookmarks\">\n"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">"); buf.append(HTMLEncoder.encode(b.getDesc())); buf.append("</a></li>\n"); } buf.append("</ul>\n"); } buf.append("<div id=\"bookmarkedit\">\n"); buf.append("<a href=\"?managebookmarks\" class=\"interfacelink\">Edit My Bookmarks</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // Version info buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Version</h2>"); buf.append("Freenet version "+Version.nodeVersion+" build #"+Version.buildNumber()); if(Version.buildNumber() < Version.highestSeenBuild) { buf.append("<br />"); buf.append("<b>A newer version is available! (Build #"+Version.highestSeenBuild+")</b>"); } buf.append("</div>\n"); // Quit Form buf.append("<form method=\"post\" action=\".\">\n"); buf.append("<div class=\"exit\">\n"); buf.append("<input type=\"hidden\" name=\"exit\" value=\"true\" /><input type=\"submit\" value=\"Shut down the node\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // Activity buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Current Activity</h2>\n"); buf.append("<ul id=\"activity\">\n" + "<li>Inserts: "+this.node.getNumInserts()+"</li>\n" + "<li>Requests: "+this.node.getNumRequests()+"</li>\n" + "<li>Transferring Requests: "+this.node.getNumTransferringRequests()+"</li>\n" + "</ul>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/3e9a0e69aa75e1bc4861d7046dee1bbd1997387b/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.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, 288, 202, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 202, 202, 430, 261, 2293, 18, 588, 786, 2932, 2704, 3618, 3355, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 5900, 18, 588, 1964, 12373, 7675, 6540, 1414, 12, 4385, 16, 315, 986, 279, 20258, 3355, 8863, 25083, 202, 4385, 18, 6923, 2932, 32, 687, 1301, 5189, 18, 2412, 707, 5189, 2767, 28219, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 2892, 5333, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 8496, 6932, 716, 1846, 14302, 358, 527, 326, 498, 22292, 2848, 342, 5333, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 77, 2984, 15, 2293, 18, 588, 786, 2932, 2704, 3618, 3355, 7923, 9078, 1757, 77, 4438, 2848, 28505, 1769, 1082, 202, 4385, 18, 6923, 2932, 774, 3433, 13696, 87, 16, 471, 6103, 326, 2477, 716, 1846, 4102, 13256, 22292, 2848, 342, 5333, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 3291, 5581, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 2630, 618, 5189, 955, 2412, 508, 5189, 529, 2412, 460, 13186, 15, 4870, 7204, 18, 3015, 12, 2293, 18, 588, 786, 2932, 5569, 6, 3719, 9078, 2412, 2154, 5189, 2819, 30, 2130, 9, 31, 1239, 342, 5333, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 202, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 202, 202, 430, 261, 2293, 18, 588, 786, 2932, 2704, 3618, 3355, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 5900, 18, 588, 1964, 12373, 7675, 6540, 1414, 12, 4385, 16, 315, 986, 279, 20258, 3355, 8863, 25083, 202, 4385, 18, 6923, 2932, 32, 687, 1301, 5189, 18, 2412, 707, 5189, 2767, 28219, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 2892, 5333, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 8496, 2 ]
text.append("\nTime: " + dateFormat.format(m_time));
public String toString() { StringBuffer text = new StringBuffer(); SimpleDateFormat dateFormat = new SimpleDateFormat("mm 'min' ss 's' SSS 'ms'"); SimpleLinkedList.LinkedListIterator iter = m_results.iterator(); int size = m_results.size(); int i = 0; text.append("\nTertius\n=======\n\n"); while (iter.hasNext()) { Rule current = (Rule) iter.next(); text.append(Utils.doubleToString((double) i + 1, (int) (Math.log(size) / Math.log(10) + 1), 0) + ". "); text.append("/* "); if (m_roc) { text.append(current.rocToString()); } else { text.append(current.valuesToString()); } text.append(" */ "); text.append(current.toString()); text.append("\n"); i++; } text.append("\nNumber of hypotheses considered: " + m_hypotheses); text.append("\nNumber of hypotheses explored: " + m_explored); text.append("\nTime: " + dateFormat.format(m_time)); if (m_status == MEMORY) { text.append("\n\nNot enough memory to continue the search"); } else if (m_status == STOP) { text.append("\n\nSearch interrupted"); } return text.toString(); }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/5a3f3175f4aa9fbc635ff5b9de4f31ecc1f6db31/Tertius.java/clean/trunk/weka/associations/Tertius.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 6674, 977, 273, 394, 6674, 5621, 565, 17005, 16996, 4202, 273, 394, 17005, 2932, 7020, 296, 1154, 11, 5202, 296, 87, 11, 348, 1260, 296, 959, 4970, 1769, 565, 4477, 13174, 682, 18, 13174, 682, 3198, 1400, 273, 312, 67, 4717, 18, 9838, 5621, 565, 509, 963, 273, 312, 67, 4717, 18, 1467, 5621, 565, 509, 277, 273, 374, 31, 565, 977, 18, 6923, 31458, 82, 56, 1051, 8384, 64, 82, 894, 12275, 64, 82, 64, 82, 8863, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 1377, 6781, 783, 273, 261, 2175, 13, 1400, 18, 4285, 5621, 1377, 977, 18, 6923, 12, 1989, 18, 9056, 5808, 12443, 9056, 13, 277, 397, 404, 16, 6862, 4202, 261, 474, 13, 261, 10477, 18, 1330, 12, 1467, 13, 9944, 1377, 342, 2361, 18, 1330, 12, 2163, 13, 397, 404, 3631, 6862, 4202, 374, 13, 1082, 225, 397, 3552, 315, 1769, 1377, 977, 18, 6923, 2932, 20308, 315, 1769, 1377, 309, 261, 81, 67, 303, 71, 13, 288, 202, 955, 18, 6923, 12, 2972, 18, 303, 71, 5808, 10663, 1377, 289, 469, 288, 202, 955, 18, 6923, 12, 2972, 18, 2372, 5808, 10663, 1377, 289, 1377, 977, 18, 6923, 2932, 1195, 315, 1769, 1377, 977, 18, 6923, 12, 2972, 18, 10492, 10663, 1377, 977, 18, 6923, 31458, 82, 8863, 1377, 277, 9904, 31, 565, 289, 377, 977, 18, 6923, 31458, 82, 1854, 434, 28350, 281, 281, 7399, 30, 315, 397, 312, 67, 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, 1071, 514, 1762, 1435, 288, 565, 6674, 977, 273, 394, 6674, 5621, 565, 17005, 16996, 4202, 273, 394, 17005, 2932, 7020, 296, 1154, 11, 5202, 296, 87, 11, 348, 1260, 296, 959, 4970, 1769, 565, 4477, 13174, 682, 18, 13174, 682, 3198, 1400, 273, 312, 67, 4717, 18, 9838, 5621, 565, 509, 963, 273, 312, 67, 4717, 18, 1467, 5621, 565, 509, 277, 273, 374, 31, 565, 977, 18, 6923, 31458, 82, 56, 1051, 8384, 64, 82, 894, 12275, 64, 82, 64, 82, 8863, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 1377, 6781, 783, 273, 261, 2175, 13, 1400, 18, 4285, 5621, 1377, 977, 18, 6923, 12, 1989, 18, 9056, 5808, 12443, 9056, 13, 277, 397, 2 ]
if (!validClass || !validMethod) return;
public void sawOpcode(int seen) { if (!validClass || !validMethod) return; // System.out.println( OPCODE_NAMES[seen] ); switch (state) { case SEEN_NOTHING: if (seen == ALOAD_0) state = SEEN_ALOAD_0; break; case SEEN_ALOAD_0: if (seen == INVOKESPECIAL) System.out.println(getNameConstantOperand()); if ((seen == INVOKESPECIAL) && (getNameConstantOperand().equals(methodName)) && (getMethodSig().equals("()V"))) { if (methodName.equals("setUp")) sawSetUp = true; else if (methodName.equals("tearDown")) sawTearDown = true; } state = SEEN_NOTHING; break; } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/96efe1942465d6945a936d29f80ad9ecdc1022cb/InvalidJUnitTest.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/InvalidJUnitTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 202, 430, 16051, 877, 797, 747, 401, 877, 1305, 13, 1082, 202, 2463, 31, 202, 202, 759, 2332, 18, 659, 18, 8222, 12, 531, 3513, 2712, 67, 16257, 63, 15156, 65, 11272, 202, 202, 9610, 261, 2019, 13, 288, 202, 202, 3593, 3174, 1157, 67, 4400, 44, 1360, 30, 1082, 202, 430, 261, 15156, 422, 432, 7783, 67, 20, 13, 9506, 202, 2019, 273, 3174, 1157, 67, 1013, 51, 1880, 67, 20, 31, 1082, 202, 8820, 31, 202, 202, 3593, 3174, 1157, 67, 1013, 51, 1880, 67, 20, 30, 1082, 202, 430, 261, 15156, 422, 20694, 3991, 10106, 6365, 13, 9506, 202, 3163, 18, 659, 18, 8222, 12, 17994, 6902, 10265, 10663, 1082, 202, 430, 14015, 15156, 422, 20694, 3991, 10106, 6365, 13, 9506, 3639, 597, 261, 17994, 6902, 10265, 7675, 14963, 12, 2039, 461, 3719, 9506, 3639, 597, 261, 588, 1305, 8267, 7675, 14963, 2932, 1435, 58, 6, 20349, 288, 9506, 202, 430, 261, 2039, 461, 18, 14963, 2932, 542, 1211, 6, 3719, 6862, 202, 87, 2219, 694, 1211, 273, 638, 31, 9506, 202, 12107, 309, 261, 2039, 461, 18, 14963, 2932, 736, 297, 4164, 6, 3719, 6862, 202, 87, 2219, 56, 2091, 4164, 273, 638, 31, 1082, 202, 97, 1082, 202, 2019, 273, 3174, 1157, 67, 4400, 44, 1360, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 97, 2, 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, 1, 1, 1, 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, 19821, 22808, 12, 474, 5881, 13, 288, 202, 202, 430, 16051, 877, 797, 747, 401, 877, 1305, 13, 1082, 202, 2463, 31, 202, 202, 759, 2332, 18, 659, 18, 8222, 12, 531, 3513, 2712, 67, 16257, 63, 15156, 65, 11272, 202, 202, 9610, 261, 2019, 13, 288, 202, 202, 3593, 3174, 1157, 67, 4400, 44, 1360, 30, 1082, 202, 430, 261, 15156, 422, 432, 7783, 67, 20, 13, 9506, 202, 2019, 273, 3174, 1157, 67, 1013, 51, 1880, 67, 20, 31, 1082, 202, 8820, 31, 202, 202, 3593, 3174, 1157, 67, 1013, 51, 1880, 67, 20, 30, 1082, 202, 430, 261, 15156, 422, 20694, 3991, 10106, 6365, 13, 9506, 202, 3163, 18, 659, 18, 8222, 2 ]
if(obj == this) {
if (obj == this) {
public boolean equals(Object obj) { if(obj == null) { return false; } if(obj == this) { return true; } if(!(obj instanceof PDFPattern)) { return false; } PDFPattern patt = (PDFPattern)obj; if(patternType != patt.patternType) { return false; } if(paintType != patt.paintType) { return false; } if(tilingType != patt.tilingType) { return false; } if(xStep != patt.xStep) { return false; } if(yStep != patt.yStep) { return false; } if(bBox != null) { if(!bBox.equals(patt.bBox)) { return false; } } else if(patt.bBox != null) { return false; } if(bBox != null) { if(!bBox.equals(patt.bBox)) { return false; } } else if(patt.bBox != null) { return false; } if(xUID != null) { if(!xUID.equals(patt.xUID)) { return false; } } else if(patt.xUID != null) { return false; } if(extGState != null) { if(!extGState.equals(patt.extGState)) { return false; } } else if(patt.extGState != null) { return false; } if(matrix != null) { if(!matrix.equals(patt.matrix)) { return false; } } else if(patt.matrix != null) { return false; } if(resources != null) { if(!resources.equals(patt.resources)) { return false; } } else if(patt.resources != null) { return false; } if(shading != null) { if(!shading.equals(patt.shading)) { return false; } } else if(patt.shading != null) { return false; } if(patternDataStream != null) { if(!patternDataStream.equals(patt.patternDataStream)) { return false; } } else if(patt.patternDataStream != null) { return false; } return true; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/392781f30969e4da0b510da16b96099a320089ba/PDFPattern.java/clean/src/org/apache/fop/pdf/PDFPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 3639, 309, 12, 2603, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 2603, 422, 333, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 5, 12, 2603, 1276, 12667, 3234, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 12667, 3234, 28560, 273, 261, 17508, 3234, 13, 2603, 31, 3639, 309, 12, 4951, 559, 480, 28560, 18, 4951, 559, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 84, 1598, 559, 480, 28560, 18, 84, 1598, 559, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 1025, 310, 559, 480, 28560, 18, 1025, 310, 559, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 92, 4160, 480, 28560, 18, 92, 4160, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 93, 4160, 480, 28560, 18, 93, 4160, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 70, 3514, 480, 446, 13, 288, 5411, 309, 12, 5, 70, 3514, 18, 14963, 12, 84, 4558, 18, 70, 3514, 3719, 288, 7734, 327, 629, 31, 5411, 289, 3639, 289, 469, 309, 12, 84, 4558, 18, 70, 3514, 480, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 70, 3514, 480, 446, 13, 288, 5411, 309, 12, 5, 70, 3514, 18, 14963, 12, 84, 4558, 18, 70, 3514, 3719, 288, 7734, 327, 629, 31, 5411, 289, 3639, 289, 469, 309, 12, 84, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 3639, 309, 12, 2603, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 2603, 422, 333, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 5, 12, 2603, 1276, 12667, 3234, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 12667, 3234, 28560, 273, 261, 17508, 3234, 13, 2603, 31, 3639, 309, 12, 4951, 559, 480, 28560, 18, 4951, 559, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 84, 1598, 559, 480, 28560, 18, 84, 1598, 559, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 1025, 310, 559, 480, 28560, 18, 1025, 310, 559, 13, 288, 5411, 327, 2 ]
private String getId(IConfigurationElement element) { String id = element.getAttribute(IWorkbenchRegistryConstants.ATT_ID); // For sub-menu management -all- items must be id'd so enforce this // here (we could optimize by checking the 'name' of the config // element == "menu" if (id == null || id.length() == 0) id = element.toString(); return id; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7708c9aa128d7f727df6c085dc73634c29372cac/MenuAdditionCacheEntry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2634, 12, 45, 1750, 1046, 930, 13, 288, 202, 202, 780, 612, 273, 930, 18, 588, 1499, 12, 45, 2421, 22144, 4243, 2918, 18, 789, 56, 67, 734, 1769, 9506, 202, 759, 2457, 720, 17, 5414, 11803, 300, 454, 17, 1516, 1297, 506, 612, 14271, 1427, 12980, 333, 202, 202, 759, 2674, 261, 1814, 3377, 10979, 635, 6728, 326, 296, 529, 11, 434, 326, 642, 202, 202, 759, 930, 422, 315, 5414, 6, 202, 202, 430, 261, 350, 422, 446, 747, 612, 18, 2469, 1435, 422, 374, 13, 1082, 202, 350, 273, 930, 18, 10492, 5621, 9506, 202, 2463, 612, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2634, 12, 45, 1750, 1046, 930, 13, 288, 202, 202, 780, 612, 273, 930, 18, 588, 1499, 12, 45, 2421, 22144, 4243, 2918, 18, 789, 56, 67, 734, 1769, 9506, 202, 759, 2457, 720, 17, 5414, 11803, 300, 454, 17, 1516, 1297, 506, 612, 14271, 1427, 12980, 333, 202, 202, 759, 2674, 261, 1814, 3377, 10979, 635, 6728, 326, 296, 529, 11, 434, 326, 642, 202, 202, 759, 930, 422, 315, 5414, 6, 202, 202, 430, 261, 350, 422, 446, 747, 612, 18, 2469, 1435, 422, 374, 13, 1082, 202, 350, 273, 930, 18, 10492, 5621, 9506, 202, 2463, 612, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { /* the most common return to parseContent () ... NOP */ } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer.toHexString (c)); else if (c == '%' && expandPE) { if (peIsError) error ("PE reference within decl in internal subset."); parsePEReference (); return readCh (); } column++; } return c; }
return c; }
private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case INPUT_STREAM: readDataChunk (); while (readBufferLength < 1) { popInput (); if (readBufferLength < 1) { readDataChunk (); } } break; default: popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { /* the most common return to parseContent () ... NOP */ } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer.toHexString (c)); // If we're in the DTD and in a context where PEs get expanded, // do so ... 1/14/2000 errata identify those contexts. There // are also spots in the internal subset where PE refs are fatal // errors, hence yet another flag. else if (c == '%' && expandPE) { if (peIsError) error ("PE reference within decl in internal subset."); parsePEReference (); return readCh (); } column++; } return c; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1149, 855, 782, 1832, 565, 1216, 14366, 16, 1860, 565, 288, 202, 759, 2970, 1525, 487, 1915, 1807, 5083, 316, 326, 202, 759, 855, 1613, 16, 775, 6453, 1898, 501, 202, 759, 261, 1884, 392, 3903, 1522, 13, 578, 1843, 1382, 202, 759, 326, 1522, 2110, 261, 1884, 3344, 2934, 202, 17523, 261, 896, 1892, 1616, 1545, 31404, 1782, 13, 288, 202, 565, 1620, 261, 3168, 559, 13, 288, 202, 565, 648, 12943, 67, 862, 5483, 30, 202, 565, 648, 12943, 67, 13693, 30, 202, 202, 896, 751, 5579, 261, 1769, 202, 202, 17523, 261, 896, 1892, 1782, 411, 404, 13, 288, 1082, 565, 1843, 1210, 261, 1769, 1082, 565, 309, 261, 896, 1892, 1782, 411, 404, 13, 288, 1082, 202, 896, 751, 5579, 261, 1769, 1082, 565, 289, 202, 202, 97, 202, 202, 8820, 31, 202, 565, 805, 30, 202, 202, 5120, 1210, 261, 1769, 202, 202, 8820, 31, 202, 565, 289, 202, 97, 202, 3001, 276, 273, 31404, 306, 896, 1892, 1616, 9904, 15533, 3639, 202, 430, 261, 71, 422, 2337, 82, 6134, 288, 202, 565, 980, 9904, 31, 202, 565, 1057, 273, 374, 31, 202, 97, 469, 288, 202, 565, 309, 261, 71, 422, 2368, 6134, 288, 202, 202, 20308, 326, 4486, 2975, 327, 358, 1109, 1350, 1832, 1372, 423, 3665, 1195, 202, 565, 289, 469, 309, 261, 12443, 71, 411, 374, 92, 713, 3462, 597, 261, 71, 480, 2337, 88, 6134, 597, 261, 71, 480, 2337, 86, 26112, 747, 276, 405, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1149, 855, 782, 1832, 565, 1216, 14366, 16, 1860, 565, 288, 202, 759, 2970, 1525, 487, 1915, 1807, 5083, 316, 326, 202, 759, 855, 1613, 16, 775, 6453, 1898, 501, 202, 759, 261, 1884, 392, 3903, 1522, 13, 578, 1843, 1382, 202, 759, 326, 1522, 2110, 261, 1884, 3344, 2934, 202, 17523, 261, 896, 1892, 1616, 1545, 31404, 1782, 13, 288, 202, 565, 1620, 261, 3168, 559, 13, 288, 202, 565, 648, 12943, 67, 862, 5483, 30, 202, 565, 648, 12943, 67, 13693, 30, 202, 202, 896, 751, 5579, 261, 1769, 202, 202, 17523, 261, 896, 1892, 1782, 411, 404, 13, 288, 1082, 565, 1843, 1210, 261, 1769, 1082, 565, 309, 261, 896, 1892, 1782, 411, 404, 2 ]
openProjectItemActionPerformed(evt);
newProjectItemActionPerformed(evt);
public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/bedb208220cb4195693c8b55751ea1aa39f71359/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 7734, 394, 4109, 1180, 19449, 12, 73, 11734, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 7734, 394, 4109, 1180, 19449, 12, 73, 11734, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (tprov == null) { if (column == 0) { ViewerLabel updateLabel = new ViewerLabel(item .getText(), item.getImage()); if(vprov != null) { buildLabel(updateLabel,element,vprov); } else{ if(lprov != null) { buildLabel(updateLabel,element,lprov); } } if (item.isDisposed()) { unmapElement(element, item); return; } text = updateLabel.getText(); image = updateLabel.getImage(); } } else { text = tprov.getColumnText(element, column); image = tprov.getColumnImage(element, column);
if (item.isDisposed()) { unmapElement(element, item); return;
protected void doUpdateItem(Widget widget, Object element, boolean fullMap) { if (widget instanceof TableItem) { final TableItem item = (TableItem) widget; // remember element we are showing if (fullMap) { associate(element, item); } else { Object data = item.getData(); if (data != null) { unmapElement(data, item); } item.setData(element); mapElement(element, item); } IBaseLabelProvider prov = getLabelProvider(); ITableLabelProvider tprov = null; ILabelProvider lprov = null; IViewerLabelProvider vprov = null; if(prov instanceof ILabelProvider) { lprov = (ILabelProvider) prov; } if (prov instanceof IViewerLabelProvider) { vprov = (IViewerLabelProvider) prov; } if (prov instanceof ITableLabelProvider) { tprov = (ITableLabelProvider) prov; } int columnCount = table.getColumnCount(); TableItem ti = item; getColorAndFontCollector().setFontsAndColors(element); // Also enter loop if no columns added. See 1G9WWGZ: JFUIF:WINNT - // TableViewer with 0 columns does not work for (int column = 0; column < columnCount || column == 0; column++) { // Similar code in TreeViewer.doUpdateItem() String text = "";//$NON-NLS-1$ Image image = null; tableColorAndFont.setFontsAndColors(ti,element,column); if (tprov == null) { if (column == 0) { ViewerLabel updateLabel = new ViewerLabel(item .getText(), item.getImage()); if(vprov != null) { buildLabel(updateLabel,element,vprov); } else{ if(lprov != null) { buildLabel(updateLabel,element,lprov); } } // As it is possible for user code to run the event //loop check here. if (item.isDisposed()) { unmapElement(element, item); return; } text = updateLabel.getText(); image = updateLabel.getImage(); } } else { text = tprov.getColumnText(element, column); image = tprov.getColumnImage(element, column); } //Avoid setting text to null if (text == null) { text = ""; //$NON-NLS-1$ } ti.setText(column, text); if (ti.getImage(column) != image) { ti.setImage(column, image); } } getColorAndFontCollector().applyFontsAndColors(ti); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/72b02dfa9a75652d45af68d329d447e0e8bbe40d/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 1891, 1180, 12, 4609, 3604, 16, 1033, 930, 16, 1250, 1983, 863, 13, 288, 202, 202, 430, 261, 6587, 1276, 3555, 1180, 13, 288, 1082, 202, 6385, 3555, 1180, 761, 273, 261, 1388, 1180, 13, 3604, 31, 1082, 202, 759, 11586, 930, 732, 854, 17253, 1082, 202, 430, 261, 2854, 863, 13, 288, 9506, 202, 11577, 12, 2956, 16, 761, 1769, 1082, 202, 97, 469, 288, 2398, 202, 921, 501, 273, 761, 18, 588, 751, 5621, 2398, 202, 430, 261, 892, 480, 446, 13, 288, 2398, 202, 202, 318, 1458, 1046, 12, 892, 16, 761, 1769, 2398, 202, 97, 9506, 202, 1726, 18, 542, 751, 12, 2956, 1769, 9506, 202, 1458, 1046, 12, 2956, 16, 761, 1769, 1082, 202, 97, 1082, 202, 45, 2171, 2224, 2249, 17197, 273, 11237, 2249, 5621, 1082, 202, 1285, 429, 2224, 2249, 268, 25529, 273, 446, 31, 6862, 202, 45, 2224, 2249, 328, 25529, 273, 446, 31, 1082, 202, 45, 18415, 2224, 2249, 331, 25529, 273, 446, 31, 25083, 202, 430, 12, 25529, 1276, 467, 2224, 2249, 13, 288, 9506, 202, 80, 25529, 273, 261, 45, 2224, 2249, 13, 17197, 31, 1082, 202, 97, 25083, 202, 430, 261, 25529, 1276, 467, 18415, 2224, 2249, 13, 288, 9506, 202, 90, 25529, 273, 261, 45, 18415, 2224, 2249, 13, 17197, 31, 1082, 202, 97, 1875, 202, 430, 261, 25529, 1276, 467, 1388, 2224, 2249, 13, 288, 9506, 202, 88, 25529, 273, 261, 1285, 429, 2224, 2249, 13, 17197, 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, 225, 202, 1117, 918, 741, 1891, 1180, 12, 4609, 3604, 16, 1033, 930, 16, 1250, 1983, 863, 13, 288, 202, 202, 430, 261, 6587, 1276, 3555, 1180, 13, 288, 1082, 202, 6385, 3555, 1180, 761, 273, 261, 1388, 1180, 13, 3604, 31, 1082, 202, 759, 11586, 930, 732, 854, 17253, 1082, 202, 430, 261, 2854, 863, 13, 288, 9506, 202, 11577, 12, 2956, 16, 761, 1769, 1082, 202, 97, 469, 288, 2398, 202, 921, 501, 273, 761, 18, 588, 751, 5621, 2398, 202, 430, 261, 892, 480, 446, 13, 288, 2398, 202, 202, 318, 1458, 1046, 12, 892, 16, 761, 1769, 2398, 202, 97, 9506, 202, 1726, 18, 542, 751, 12, 2956, 1769, 9506, 202, 1458, 1046, 12, 2956, 2 ]
throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:name attribute of element sv:node"));
throw new SAXException(new InvalidSerializedDataException( "missing mandatory sv:name attribute of element sv:node"));
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { // check namespace if (!NS_SV_URI.equals(namespaceURI)) { throw new SAXException(new InvalidSerializedDataException("invalid namespace for element in system view xml document: " + namespaceURI)); } // check element name if (SysViewSAXEventGenerator.NODE_ELEMENT.equals(localName)) { // sv:node element // node name (value of sv:name attribute) String name = atts.getValue(SysViewSAXEventGenerator.PREFIXED_NAME_ATTRIBUTE); if (name == null) { throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:name attribute of element sv:node")); } if (!stack.isEmpty()) { // process current node first ImportState current = (ImportState) stack.peek(); // need to start current node if (!current.started) { processNode(current, true, false); current.started = true; } } // push new ImportState instance onto the stack ImportState state = new ImportState(); try { state.nodeName = QName.fromJCRName(name, nsContext); } catch (IllegalNameException ine) { throw new SAXException(new InvalidSerializedDataException("illegal node name: " + name, ine)); } catch (UnknownPrefixException upe) { throw new SAXException(new InvalidSerializedDataException("illegal node name: " + name, upe)); } stack.push(state); } else if (SysViewSAXEventGenerator.PROPERTY_ELEMENT.equals(localName)) { // sv:property element // reset temp fields currentPropValues.clear(); // property name (value of sv:name attribute) String name = atts.getValue(SysViewSAXEventGenerator.PREFIXED_NAME_ATTRIBUTE); if (name == null) { throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:name attribute of element sv:property")); } try { currentPropName = QName.fromJCRName(name, nsContext); } catch (IllegalNameException ine) { throw new SAXException(new InvalidSerializedDataException("illegal property name: " + name, ine)); } catch (UnknownPrefixException upe) { throw new SAXException(new InvalidSerializedDataException("illegal property name: " + name, upe)); } // property type (sv:type attribute) String type = atts.getValue(SysViewSAXEventGenerator.PREFIXED_TYPE_ATTRIBUTE); if (type == null) { throw new SAXException(new InvalidSerializedDataException("missing mandatory sv:type attribute of element sv:property")); } currentPropType = PropertyType.valueFromName(type); } else if (SysViewSAXEventGenerator.VALUE_ELEMENT.equals(localName)) { // sv:value element // reset temp fields currentPropValue = new BufferedStringValue(); } else { throw new SAXException(new InvalidSerializedDataException("unexpected element found in system view xml document: " + localName)); } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/e89c1f0023710e42d712449aaa565dfacda9b5e2/SysViewImportHandler.java/buggy/src/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 19421, 16, 514, 11927, 16, 11794, 514, 22914, 16, 9055, 15687, 13, 5411, 1216, 14366, 288, 3639, 368, 866, 1981, 3639, 309, 16051, 3156, 67, 23927, 67, 3098, 18, 14963, 12, 4937, 3098, 3719, 288, 5411, 604, 394, 14366, 12, 2704, 1962, 15134, 22480, 2932, 5387, 1981, 364, 930, 316, 2619, 1476, 2025, 1668, 30, 315, 10792, 397, 19421, 10019, 3639, 289, 3639, 368, 866, 930, 508, 3639, 309, 261, 12712, 1767, 55, 2501, 1133, 3908, 18, 8744, 67, 10976, 18, 14963, 12, 3729, 461, 3719, 288, 5411, 368, 5893, 30, 2159, 930, 5411, 368, 756, 508, 261, 1132, 434, 5893, 30, 529, 1566, 13, 5411, 514, 508, 273, 15687, 18, 24805, 12, 12712, 1767, 55, 2501, 1133, 3908, 18, 6307, 2056, 67, 1985, 67, 11616, 1769, 5411, 309, 261, 529, 422, 446, 13, 288, 7734, 604, 394, 14366, 12, 2704, 1962, 15134, 22480, 12, 315, 7337, 11791, 5893, 30, 529, 1566, 434, 930, 5893, 30, 2159, 7923, 1769, 5411, 289, 5411, 309, 16051, 3772, 18, 291, 1921, 10756, 288, 7734, 368, 1207, 783, 756, 1122, 7734, 6164, 1119, 783, 273, 261, 5010, 1119, 13, 2110, 18, 347, 3839, 5621, 7734, 368, 1608, 358, 787, 783, 756, 7734, 309, 16051, 2972, 18, 14561, 13, 288, 10792, 1207, 907, 12, 2972, 16, 638, 16, 629, 1769, 10792, 783, 18, 14561, 273, 638, 31, 7734, 289, 5411, 289, 5411, 368, 1817, 394, 6164, 1119, 791, 10170, 326, 2110, 5411, 6164, 1119, 919, 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, 13591, 12, 780, 19421, 16, 514, 11927, 16, 11794, 514, 22914, 16, 9055, 15687, 13, 5411, 1216, 14366, 288, 3639, 368, 866, 1981, 3639, 309, 16051, 3156, 67, 23927, 67, 3098, 18, 14963, 12, 4937, 3098, 3719, 288, 5411, 604, 394, 14366, 12, 2704, 1962, 15134, 22480, 2932, 5387, 1981, 364, 930, 316, 2619, 1476, 2025, 1668, 30, 315, 10792, 397, 19421, 10019, 3639, 289, 3639, 368, 866, 930, 508, 3639, 309, 261, 12712, 1767, 55, 2501, 1133, 3908, 18, 8744, 67, 10976, 18, 14963, 12, 3729, 461, 3719, 288, 5411, 368, 5893, 30, 2159, 930, 5411, 368, 756, 508, 261, 1132, 434, 5893, 30, 529, 1566, 13, 5411, 514, 508, 273, 15687, 18, 24805, 12, 2 ]
if( destinations.contains(destination) )
if( destinations.contains(destination) ){ System.err.println(brokerService.getBrokerName() + " SPLATYTTTT!!!!");
public Destination addDestination(ConnectionContext context, ActiveMQDestination destination) throws Exception { if( destinations.contains(destination) ) throw new JMSException("Destination already exists: "+destination); Destination answer = null; switch(destination.getDestinationType()) { case ActiveMQDestination.QUEUE_TYPE: answer = queueRegion.addDestination(context, destination); break; case ActiveMQDestination.TOPIC_TYPE: answer = topicRegion.addDestination(context, destination); break; case ActiveMQDestination.TEMP_QUEUE_TYPE: answer = tempQueueRegion.addDestination(context, destination); break; case ActiveMQDestination.TEMP_TOPIC_TYPE: answer = tempTopicRegion.addDestination(context, destination); break; default: throw createUnknownDestinationTypeException(destination); } destinations.add(destination); return answer; }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/a9c49a7f1666068274b0c2c464bdfda7ec8becfc/RegionBroker.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10691, 527, 5683, 12, 1952, 1042, 819, 16, 8857, 9682, 5683, 2929, 13, 1216, 1185, 288, 3639, 309, 12, 20456, 18, 12298, 12, 10590, 13, 262, 95, 2332, 18, 370, 18, 8222, 12, 21722, 1179, 18, 588, 11194, 461, 1435, 397, 315, 28668, 789, 61, 1470, 1470, 25885, 4442, 1769, 5411, 604, 394, 20343, 2932, 5683, 1818, 1704, 30, 13773, 10590, 1769, 7734, 10691, 5803, 273, 446, 31, 3639, 1620, 12, 10590, 18, 588, 5683, 559, 10756, 288, 3639, 648, 8857, 9682, 5683, 18, 19533, 67, 2399, 30, 5411, 5803, 225, 273, 2389, 5165, 18, 1289, 5683, 12, 2472, 16, 2929, 1769, 5411, 898, 31, 3639, 648, 8857, 9682, 5683, 18, 4296, 20385, 67, 2399, 30, 5411, 5803, 273, 3958, 5165, 18, 1289, 5683, 12, 2472, 16, 2929, 1769, 5411, 898, 31, 3639, 648, 8857, 9682, 5683, 18, 10258, 67, 19533, 67, 2399, 30, 5411, 5803, 273, 1906, 3183, 5165, 18, 1289, 5683, 12, 2472, 16, 2929, 1769, 5411, 898, 31, 3639, 648, 8857, 9682, 5683, 18, 10258, 67, 4296, 20385, 67, 2399, 30, 5411, 5803, 273, 1906, 6657, 5165, 18, 1289, 5683, 12, 2472, 16, 2929, 1769, 5411, 898, 31, 3639, 805, 30, 5411, 604, 752, 4874, 5683, 14144, 12, 10590, 1769, 3639, 289, 3639, 20456, 18, 1289, 12, 10590, 1769, 3639, 327, 5803, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10691, 527, 5683, 12, 1952, 1042, 819, 16, 8857, 9682, 5683, 2929, 13, 1216, 1185, 288, 3639, 309, 12, 20456, 18, 12298, 12, 10590, 13, 262, 95, 2332, 18, 370, 18, 8222, 12, 21722, 1179, 18, 588, 11194, 461, 1435, 397, 315, 28668, 789, 61, 1470, 1470, 25885, 4442, 1769, 5411, 604, 394, 20343, 2932, 5683, 1818, 1704, 30, 13773, 10590, 1769, 7734, 10691, 5803, 273, 446, 31, 3639, 1620, 12, 10590, 18, 588, 5683, 559, 10756, 288, 3639, 648, 8857, 9682, 5683, 18, 19533, 67, 2399, 30, 5411, 5803, 225, 273, 2389, 5165, 18, 1289, 5683, 12, 2472, 16, 2929, 1769, 5411, 898, 31, 3639, 648, 8857, 9682, 5683, 18, 4296, 20385, 67, 2399, 30, 5411, 2 ]
private double js_max(Object[] args) {
private double js_max(Object[] args) {
private double js_max(Object[] args) { double result = Double.NEGATIVE_INFINITY; if (args.length == 0) return result; for (int i = 0; i < args.length; i++) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) return d; // if (result < d) result = d; does not work due to -0.0 >= +0.0 result = Math.max(result, d); } return result; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeMath.java/buggy/js/rhino/org/mozilla/javascript/NativeMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 67, 1896, 12, 921, 8526, 833, 13, 288, 540, 1645, 563, 273, 3698, 18, 5407, 22421, 67, 17716, 31, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 5411, 327, 563, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 1645, 302, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 63, 77, 19226, 5411, 309, 261, 72, 480, 302, 13, 327, 302, 31, 5411, 368, 309, 261, 2088, 411, 302, 13, 563, 273, 302, 31, 1552, 486, 1440, 6541, 358, 300, 20, 18, 20, 1545, 397, 20, 18, 20, 5411, 563, 273, 2361, 18, 1896, 12, 2088, 16, 302, 1769, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 67, 1896, 12, 921, 8526, 833, 13, 288, 540, 1645, 563, 273, 3698, 18, 5407, 22421, 67, 17716, 31, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 5411, 327, 563, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 1645, 302, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 63, 77, 19226, 5411, 309, 261, 72, 480, 302, 13, 327, 302, 31, 5411, 368, 309, 261, 2088, 411, 302, 13, 563, 273, 302, 31, 1552, 486, 1440, 6541, 358, 300, 20, 18, 20, 1545, 397, 20, 18, 20, 5411, 563, 273, 2361, 18, 1896, 12, 2088, 16, 302, 1769, 3639, 289, 3639, 327, 563, 2 ]
return null; }
return null; }
public RubyArray m_protected_methods() { // return getRubyClass().m_protected_instance_methods(getRuby().getTrue()); return null; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 312, 67, 1117, 67, 5163, 1435, 288, 202, 202, 759, 327, 4170, 10340, 797, 7675, 81, 67, 1117, 67, 1336, 67, 5163, 12, 588, 54, 10340, 7675, 588, 5510, 10663, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 312, 67, 1117, 67, 5163, 1435, 288, 202, 202, 759, 327, 4170, 10340, 797, 7675, 81, 67, 1117, 67, 1336, 67, 5163, 12, 588, 54, 10340, 7675, 588, 5510, 10663, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!previouslyGeneratedObjectKey(request.objectKey()))
if (!previouslyGeneratedObjectKey(request.objectKey()))
public void _invoke(ServerRequest request) throws WrongAdapter { synchronized(poaDestructionLog) { checkDestructionApparent (); // if the request is for this poa check whether the object // key is generated from him if (request.remainingPOAName() == null) { if (!previouslyGeneratedObjectKey(request.objectKey())) { if (logTrace.test(0)) logTrace.printLog(request, "_invoke: object key not previously generated!, operation: " + request.operation()); throw new WrongAdapter(); } if (isSystemId() && !previouslyGeneratedObjectId(request.objectId()) ) { if (logTrace.test(0)) logTrace.printLog(request.objectId(), "_invoke: oid not previously generated!, operation: " + request.operation()); throw new WrongAdapter(); } } try { // pass the request to the request controller the // operation returns immediately after the request is // queued requestController.queueRequest(request); } catch (ResourceLimitReachedException e) { throw new org.omg.CORBA.TRANSIENT("resource limit reached"); } } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a74dc4ac69615c8e503cb9145c3594f1702d4c75/POA.java/buggy/src/org/jacorb/poa/POA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 389, 14407, 12, 2081, 691, 590, 13, 540, 1216, 24668, 4216, 377, 288, 3639, 3852, 12, 1631, 69, 6305, 313, 4062, 1343, 13, 540, 288, 4766, 565, 866, 6305, 313, 4062, 1294, 2938, 261, 1769, 5411, 368, 309, 326, 590, 353, 364, 333, 8275, 69, 866, 2856, 326, 733, 5411, 368, 498, 353, 4374, 628, 366, 381, 5411, 309, 261, 2293, 18, 17956, 2419, 37, 461, 1435, 422, 446, 13, 2398, 288, 7734, 309, 16051, 11515, 715, 7823, 921, 653, 12, 2293, 18, 1612, 653, 1435, 3719, 1171, 288, 10792, 309, 261, 1330, 3448, 18, 3813, 12, 20, 3719, 540, 202, 1171, 202, 5397, 202, 1330, 3448, 18, 1188, 1343, 12, 2293, 16, 4766, 6647, 4192, 14407, 30, 733, 498, 486, 7243, 4374, 5, 16, 225, 1674, 30, 315, 397, 4766, 6647, 590, 18, 7624, 10663, 15604, 604, 394, 24668, 4216, 5621, 7734, 289, 7734, 309, 261, 291, 3163, 548, 1435, 597, 401, 11515, 715, 7823, 16661, 12, 2293, 18, 1612, 548, 10756, 262, 1171, 288, 10792, 309, 261, 1330, 3448, 18, 3813, 12, 20, 3719, 13491, 613, 3448, 18, 1188, 1343, 12, 2293, 18, 1612, 548, 9334, 4766, 6647, 4192, 14407, 30, 7764, 486, 7243, 4374, 5, 16, 1674, 30, 315, 397, 4766, 6647, 590, 18, 7624, 10663, 15604, 604, 394, 24668, 4216, 5621, 7734, 289, 5411, 289, 5411, 775, 2398, 288, 7734, 368, 225, 1342, 326, 225, 590, 225, 358, 326, 225, 590, 2596, 225, 326, 7734, 368, 1674, 1135, 225, 7636, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 14407, 12, 2081, 691, 590, 13, 540, 1216, 24668, 4216, 377, 288, 3639, 3852, 12, 1631, 69, 6305, 313, 4062, 1343, 13, 540, 288, 4766, 565, 866, 6305, 313, 4062, 1294, 2938, 261, 1769, 5411, 368, 309, 326, 590, 353, 364, 333, 8275, 69, 866, 2856, 326, 733, 5411, 368, 498, 353, 4374, 628, 366, 381, 5411, 309, 261, 2293, 18, 17956, 2419, 37, 461, 1435, 422, 446, 13, 2398, 288, 7734, 309, 16051, 11515, 715, 7823, 921, 653, 12, 2293, 18, 1612, 653, 1435, 3719, 1171, 288, 10792, 309, 261, 1330, 3448, 18, 3813, 12, 20, 3719, 540, 202, 1171, 202, 5397, 202, 1330, 3448, 18, 1188, 1343, 12, 2293, 16, 4766, 6647, 4192, 2 ]
public void initializeAsForward(Message msg, int aScope) { mCompositionPanel.setReferredMessage(msg); MessageExtra mextra = MessageExtraFactory.Get(msg); try { mCompositionPanel.setSubject("[Fwd: " + mextra.simplifiedSubject() + "]"); } catch (MessagingException e) { } // Quote the original text if (aScope == FolderPanel.kQuoted) { mCompositionPanel.QuoteOriginalMessage(); } if (aScope == FolderPanel.kInline) { mCompositionPanel.InlineOriginalMessage(); } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/Composition.java/buggy/grendel/sources/grendel/composition/Composition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4046, 1463, 8514, 12, 1079, 1234, 16, 509, 279, 3876, 13, 288, 565, 312, 28940, 5537, 18, 542, 426, 4193, 1079, 12, 3576, 1769, 565, 2350, 7800, 312, 7763, 273, 2350, 7800, 1733, 18, 967, 12, 3576, 1769, 565, 775, 288, 1377, 312, 28940, 5537, 18, 542, 6638, 2932, 63, 42, 3623, 30, 315, 397, 312, 7763, 18, 9812, 412, 939, 6638, 1435, 397, 9870, 1769, 565, 289, 1044, 261, 23389, 503, 425, 13, 288, 565, 289, 565, 368, 21695, 326, 2282, 977, 565, 309, 261, 69, 3876, 422, 12623, 5537, 18, 79, 15919, 13, 288, 1377, 312, 28940, 5537, 18, 10257, 8176, 1079, 5621, 565, 289, 565, 309, 261, 69, 3876, 422, 12623, 5537, 18, 79, 10870, 13, 288, 1377, 312, 28940, 5537, 18, 10870, 8176, 1079, 5621, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4046, 1463, 8514, 12, 1079, 1234, 16, 509, 279, 3876, 13, 288, 565, 312, 28940, 5537, 18, 542, 426, 4193, 1079, 12, 3576, 1769, 565, 2350, 7800, 312, 7763, 273, 2350, 7800, 1733, 18, 967, 12, 3576, 1769, 565, 775, 288, 1377, 312, 28940, 5537, 18, 542, 6638, 2932, 63, 42, 3623, 30, 315, 397, 312, 7763, 18, 9812, 412, 939, 6638, 1435, 397, 9870, 1769, 565, 289, 1044, 261, 23389, 503, 425, 13, 288, 565, 289, 565, 368, 21695, 326, 2282, 977, 565, 309, 261, 69, 3876, 422, 12623, 5537, 18, 79, 15919, 13, 288, 1377, 312, 28940, 5537, 18, 10257, 8176, 1079, 5621, 565, 289, 565, 309, 261, 69, 3876, 422, 12623, 5537, 18, 2 ]
number = number.replaceAll(" ","");
private void removeUnnecessaryChars() { number = number.replaceAll("\\(0"," "); number = number.replaceAll("\\)",""); number = number.replaceAll(" ",""); }
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/0f06e68d230d998be71208652760529446d257b0/PhoneNumber.java/buggy/jfritz/src/de/moonflower/jfritz/struct/PhoneNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1206, 984, 82, 4128, 7803, 1435, 288, 202, 565, 1300, 273, 1300, 18, 2079, 1595, 2932, 1695, 12, 20, 15937, 315, 1769, 202, 565, 1300, 273, 1300, 18, 2079, 1595, 2932, 1695, 2225, 16, 3660, 1769, 202, 377, 202, 565, 1300, 273, 1300, 18, 2079, 1595, 2932, 3104, 3660, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1206, 984, 82, 4128, 7803, 1435, 288, 202, 565, 1300, 273, 1300, 18, 2079, 1595, 2932, 1695, 12, 20, 15937, 315, 1769, 202, 565, 1300, 273, 1300, 18, 2079, 1595, 2932, 1695, 2225, 16, 3660, 1769, 202, 377, 202, 565, 1300, 273, 1300, 18, 2079, 1595, 2932, 3104, 3660, 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 ]
sessionHandle = new DesignEngine( new DesignConfig( ) ) .newSessionHandle( ULocale.getDefault( ) );
sessionHandle = new DesignEngine( new DesignConfig( ) ).newSessionHandle( ULocale.getDefault( ) );
public SessionHandle getSessionHandle( ) { if ( sessionHandle == null ) { sessionHandle = new DesignEngine( new DesignConfig( ) ) .newSessionHandle( ULocale.getDefault( ) ); } return sessionHandle; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0c3229334ab3352862830f19eec73f8815cb56fb/SessionHandleAdapter.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/SessionHandleAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3877, 3259, 7183, 3259, 12, 262, 202, 95, 202, 202, 430, 261, 1339, 3259, 422, 446, 262, 202, 202, 95, 1082, 202, 3184, 3259, 273, 394, 29703, 4410, 12, 394, 29703, 809, 12, 262, 262, 1082, 202, 18, 2704, 2157, 3259, 12, 29145, 18, 588, 1868, 12, 262, 11272, 202, 202, 97, 202, 202, 2463, 1339, 3259, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3877, 3259, 7183, 3259, 12, 262, 202, 95, 202, 202, 430, 261, 1339, 3259, 422, 446, 262, 202, 202, 95, 1082, 202, 3184, 3259, 273, 394, 29703, 4410, 12, 394, 29703, 809, 12, 262, 262, 1082, 202, 18, 2704, 2157, 3259, 12, 29145, 18, 588, 1868, 12, 262, 11272, 202, 202, 97, 202, 202, 2463, 1339, 3259, 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 ]
private AnAction processActionElement(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: processActionElement(" + element.getName() + ")"); } if (!ACTION_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 || className.length() == 0) { LOG.error("action element should have specified \"class\" attribute"); return null; } // read ID and register loaded action String id = element.getAttributeValue(ID_ATTR_NAME); if (id == null || id.length() == 0) { LOG.error("ID of the action cannot be an empty string"); return null; } if (Boolean.valueOf(element.getAttributeValue(INTERNAL_ATTR_NAME)).booleanValue() && !ApplicationManagerEx.getApplicationEx().isInternal()) { myNotRegisteredInternalActionIds.add(id); return null; } String text = loadTextForElement(element, bundle, id, ACTION_ELEMENT_NAME); if (text == null) { @NonNls String message = "'text' attribute is mandatory (action ID=" + id + ";" + (plugin == null ? "" : " plugin path: "+plugin.getPath()) + ")"; LOG.error(message); return null; } ActionStub stub = new ActionStub(className, id, text, loader); Presentation presentation = stub.getTemplatePresentation(); presentation.setText(text); // description presentation.setDescription(loadDescriptionForElement(element, bundle, id, ACTION_ELEMENT_NAME)); // icon setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); // process all links and key bindings if any for (final Object o : element.getChildren()) { Element e = (Element)o; if (ADD_TO_GROUP_ELEMENT_NAME.equals(e.getName())) { processAddToGroupNode(stub, e); } else if (SHORTCUT_ELEMENT_NAME.equals(e.getName())) { processKeyboardShortcutNode(e, id); } else if (MOUSE_SHORTCUT_ELEMENT_NAME.equals(e.getName())) { processMouseShortcutNode(e, id); } else { LOG.error("unexpected name of element \"" + e.getName() + "\""); return null; } } if (element.getAttributeValue(USE_SHORTCUT_OF_ATTR_NAME) != null) { ((KeymapManagerEx)myKeymapManager).bindShortcuts(element.getAttributeValue(USE_SHORTCUT_OF_ATTR_NAME), id); } // register action registerAction(id, stub, pluginId); return stub; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 979, 1803, 2567, 1803, 1046, 12, 1046, 2956, 16, 6385, 7805, 6714, 16, 3773, 548, 4094, 548, 15329, 6385, 3208, 2910, 33, 3208, 1318, 18, 588, 3208, 5621, 6385, 45, 323, 69, 3773, 3187, 4094, 33, 2910, 18, 588, 3773, 12, 4094, 548, 1769, 36, 3989, 50, 3251, 6385, 780, 455, 3405, 461, 33, 4094, 5, 33, 2011, 35, 4094, 18, 588, 18731, 29907, 13332, 12249, 55, 67, 30245, 31, 18731, 9991, 33, 2011, 31, 430, 12, 455, 3405, 461, 5, 33, 2011, 15329, 9991, 33, 18731, 18, 588, 3405, 12, 455, 3405, 461, 16, 3916, 18, 588, 1868, 9334, 6714, 1769, 97, 430, 12, 4842, 18, 291, 2829, 1526, 10756, 95, 4842, 18, 4148, 2932, 2328, 30, 2567, 1803, 1046, 2932, 15, 2956, 18, 17994, 1435, 9078, 2225, 1769, 97, 430, 12, 5, 12249, 67, 10976, 67, 1985, 18, 14963, 12, 2956, 18, 17994, 1435, 3719, 95, 4842, 18, 1636, 2932, 21248, 529, 792, 2956, 8530, 15, 2956, 18, 17994, 1435, 9078, 8530, 1769, 2463, 2011, 31, 97, 780, 12434, 33, 2956, 18, 588, 14942, 12, 5237, 67, 12043, 67, 1985, 1769, 430, 12, 12434, 631, 2011, 20081, 12434, 18, 2469, 1435, 631, 20, 15329, 4842, 18, 1636, 2932, 1128, 2956, 13139, 76, 6606, 705, 939, 2412, 1106, 2412, 4589, 8863, 2463, 2011, 31, 97, 759, 896, 734, 464, 4861, 4230, 1128, 780, 350, 33, 2956, 18, 588, 14942, 12, 734, 67, 12043, 67, 1985, 1769, 430, 12, 350, 631, 2011, 20081, 350, 18, 2469, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 979, 1803, 2567, 1803, 1046, 12, 1046, 2956, 16, 6385, 7805, 6714, 16, 3773, 548, 4094, 548, 15329, 6385, 3208, 2910, 33, 3208, 1318, 18, 588, 3208, 5621, 6385, 45, 323, 69, 3773, 3187, 4094, 33, 2910, 18, 588, 3773, 12, 4094, 548, 1769, 36, 3989, 50, 3251, 6385, 780, 455, 3405, 461, 33, 4094, 5, 33, 2011, 35, 4094, 18, 588, 18731, 29907, 13332, 12249, 55, 67, 30245, 31, 18731, 9991, 33, 2011, 31, 430, 12, 455, 3405, 461, 5, 33, 2011, 15329, 9991, 33, 18731, 18, 588, 3405, 12, 455, 3405, 461, 16, 3916, 18, 588, 1868, 9334, 6714, 1769, 97, 430, 12, 4842, 18, 291, 2829, 1526, 10756, 95, 4842, 18, 4148, 2932, 2328, 30, 2 ]
if (ok != null) ok.setEnabled(selectedItems.length == 1);
if (ok != null) { ok.setEnabled(selectedItems.length == 1); }
private void updateButtons() { TableItem selectedItems[] = editorsTable.getSelection(); boolean hasDirty = false; for (int i = 0; i < selectedItems.length; i++) { Adapter editor = (Adapter) selectedItems[i].getData(); if (editor.isDirty()) { hasDirty = true; break; } } saveSelected.setEnabled(hasDirty); TableItem allItems[] = editorsTable.getItems(); boolean hasClean = false; for (int i = 0; i < allItems.length; i++) { Adapter editor = (Adapter) allItems[i].getData(); if (!editor.isDirty()) { hasClean = true; break; } } selectClean.setEnabled(hasClean); invertSelection.setEnabled(allItems.length > 0); closeSelected.setEnabled(selectedItems.length > 0); Button ok = getOkButton(); if (ok != null) ok.setEnabled(selectedItems.length == 1); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchEditorsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 14388, 1435, 288, 3639, 3555, 1180, 3170, 3126, 8526, 273, 29431, 1388, 18, 588, 6233, 5621, 3639, 1250, 711, 10785, 273, 629, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3170, 3126, 18, 2469, 31, 277, 27245, 288, 5411, 14238, 4858, 273, 261, 4216, 13, 3170, 3126, 63, 77, 8009, 588, 751, 5621, 5411, 309, 261, 9177, 18, 291, 10785, 10756, 288, 7734, 711, 10785, 273, 638, 31, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 1923, 7416, 18, 542, 1526, 12, 5332, 10785, 1769, 3639, 3555, 1180, 777, 3126, 8526, 273, 29431, 1388, 18, 588, 3126, 5621, 3639, 1250, 711, 7605, 273, 629, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 777, 3126, 18, 2469, 31, 277, 27245, 288, 5411, 14238, 4858, 273, 261, 4216, 13, 777, 3126, 63, 77, 8009, 588, 751, 5621, 5411, 309, 16051, 9177, 18, 291, 10785, 10756, 288, 7734, 711, 7605, 273, 638, 31, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 2027, 7605, 18, 542, 1526, 12, 5332, 7605, 1769, 3639, 9848, 6233, 18, 542, 1526, 12, 454, 3126, 18, 2469, 405, 374, 1769, 3639, 1746, 7416, 18, 542, 1526, 12, 8109, 3126, 18, 2469, 405, 374, 1769, 3639, 12569, 1529, 273, 336, 8809, 3616, 5621, 3639, 309, 261, 601, 480, 446, 13, 5411, 1529, 18, 542, 1526, 12, 8109, 3126, 18, 2469, 422, 404, 1769, 565, 289, 2, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 14388, 1435, 288, 3639, 3555, 1180, 3170, 3126, 8526, 273, 29431, 1388, 18, 588, 6233, 5621, 3639, 1250, 711, 10785, 273, 629, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3170, 3126, 18, 2469, 31, 277, 27245, 288, 5411, 14238, 4858, 273, 261, 4216, 13, 3170, 3126, 63, 77, 8009, 588, 751, 5621, 5411, 309, 261, 9177, 18, 291, 10785, 10756, 288, 7734, 711, 10785, 273, 638, 31, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 1923, 7416, 18, 542, 1526, 12, 5332, 10785, 1769, 3639, 3555, 1180, 777, 3126, 8526, 273, 29431, 1388, 18, 588, 3126, 5621, 3639, 1250, 711, 7605, 273, 629, 31, 3639, 364, 261, 474, 277, 273, 374, 2 ]
stmt.executeUpdate(Insert);
insertStmt.executeUpdate(Insert); }
public Document getUserLayout (IPerson person, UserProfile profile) throws Exception { int userId = person.getID(); int realUserId = userId; ResultSet rs; Connection con = RDBMServices.getConnection(); RDBMServices.setAutoCommit(con, false); // May speed things up, can't hurt try { DocumentImpl doc = new DocumentImpl(); Element root = doc.createElement("layout"); Statement stmt = con.createStatement(); try { long startTime = System.currentTimeMillis(); // eventually, we need to fix template layout implementations so you can just do this: // int layoutId=profile.getLayoutId(); // but for now: String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profile.getProfileId(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId; rs = stmt.executeQuery(subSelectString); try { rs.next(); layoutId = rs.getInt(1); /*if (rs.wasNull()) { layoutId = 0; }*/ } finally { rs.close(); } if (layoutId == 0) { // First time, grab the default layout for this user String sQuery = "SELECT USER_DFLT_USR_ID, USER_DFLT_LAY_ID FROM UP_USER WHERE USER_ID=" + userId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); userId = rs.getInt(1); layoutId = rs.getInt(2); } finally { rs.close(); } // Make sure the next struct id is set in case the user adds a channel sQuery = "SELECT NEXT_STRUCT_ID FROM UP_USER WHERE USER_ID=" + userId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); int nextStructId; rs = stmt.executeQuery(sQuery); try { rs.next(); nextStructId = rs.getInt(1); } finally { rs.close(); } sQuery = "UPDATE UP_USER SET NEXT_STRUCT_ID=" + nextStructId + " WHERE USER_ID=" + realUserId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); /* insert row(s) into up_ss_user_atts */ sQuery = "DELETE FROM UP_SS_USER_ATTS WHERE USER_ID=" + realUserId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); String Insert = "INSERT INTO UP_SS_USER_ATTS (USER_ID, PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL) "+ " SELECT "+realUserId+", USUA.PROFILE_ID, USUA.SS_ID, USUA.SS_TYPE, USUA.STRUCT_ID, USUA.PARAM_NAME, USUA.PARAM_TYPE, USUA.PARAM_VAL "+ " FROM UP_SS_USER_ATTS USUA WHERE USUA.USER_ID="+userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + Insert); stmt.executeUpdate(Insert); RDBMServices.commit(con); // Make sure it appears in the store } int firstStructId = -1; String sQuery = "SELECT INIT_STRUCT_ID FROM UP_USER_LAYOUT WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); firstStructId = rs.getInt(1); } finally { rs.close(); } String sql = "SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE"; if (RDBMServices.supportsOuterJoins) { sql += ",USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL FROM " + RDBMServices.joinQuery.getQuery("layout"); } else { sql += " FROM UP_LAYOUT_STRUCT ULS WHERE "; } sql += " ULS.USER_ID=" + userId + " AND ULS.LAYOUT_ID=" + layoutId + " ORDER BY ULS.STRUCT_ID"; HashMap layoutStructure = new HashMap(); ArrayList chanIds = new ArrayList(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); StringBuffer structParms = new StringBuffer(); rs = stmt.executeQuery(sql); try { int lastStructId = 0; LayoutStructure ls = null; String sepChar = ""; if (rs.next()) { int structId = rs.getInt(1); /*if (rs.wasNull()) { structId = 0; }*/ readLayout: while (true) { if (DEBUG > 1) System.err.println("Found layout structureID " + structId); int nextId = rs.getInt(2); /*if (rs.wasNull()) { nextId = 0; }*/ int childId = rs.getInt(3); /*if (rs.wasNull()) { childId = 0; }*/ int chanId = rs.getInt(4); /*if (rs.wasNull()) { chanId = 0; }*/ ls = new LayoutStructure(structId, nextId, childId, chanId, rs.getString(7),rs.getString(8),rs.getString(9)); layoutStructure.put(new Integer(structId), ls); lastStructId = structId; if (!ls.isChannel()) { ls.addFolderData(rs.getString(5), rs.getString(6)); } else { chanIds.add(new Integer(chanId)); // For later } if (RDBMServices.supportsOuterJoins) { do { String name = rs.getString(10); String value = rs.getString(11); // Oracle JDBC requires us to do this for longs if (name != null) { // may not be there because of the join ls.addParameter(name, value); } if (!rs.next()) { break readLayout; } structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } while (structId == lastStructId); } else { // Do second SELECT later on for structure parameters if (ls.isChannel()) { structParms.append(sepChar + ls.chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } else { break readLayout; } } } // while } } finally { rs.close(); } // We have to retrieve the channel defition after the layout structure // since retrieving the channel data from the DB may interfere with the // layout structure ResultSet (in other words, Oracle is a pain to program for) if (chanIds.size() > 0) { RDBMServices.PreparedStatement pstmtChannel = crsdb.getChannelPstmt(con); try { RDBMServices.PreparedStatement pstmtChannelParm = crsdb.getChannelParmPstmt(con); try { // Pre-prime the channel pump for (int i = 0; i < chanIds.size(); i++) { int chanId = ((Integer) chanIds.get(i)).intValue(); crsdb.getChannel(chanId, true, pstmtChannel, pstmtChannelParm); if (DEBUG > 1) { System.err.println("Precached " + chanId); } } } finally { if (pstmtChannelParm != null) { pstmtChannelParm.close(); } } } finally { pstmtChannel.close(); } chanIds.clear(); } if (!RDBMServices.supportsOuterJoins) { // Pick up structure parameters sql = "SELECT STRUCT_ID, STRUCT_PARM_NM,STRUCT_PARM_VAL FROM UP_LAYOUT_PARAM WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND STRUCT_ID IN (" + structParms.toString() + ") ORDER BY STRUCT_ID"; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); rs = stmt.executeQuery(sql); try { if (rs.next()) { int structId = rs.getInt(1); readParm: while(true) { LayoutStructure ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); int lastStructId = structId; do { ls.addParameter(rs.getString(2), rs.getString(3)); if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); } } } finally { rs.close(); } } if (layoutStructure.size() > 0) { // We have a layout to work with createLayout(layoutStructure, doc, root, firstStructId); layoutStructure.clear(); long stopTime = System.currentTimeMillis(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); doc.appendChild(root); if (DEBUG > 1) { System.err.println("--> created document"); dumpDoc(doc, ""); System.err.println("<--"); } } } finally { stmt.close(); } return doc; } finally { RDBMServices.releaseConnection(con); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/4f267d2f1089d418823d322c5663ce0606d8f83f/RDBMUserLayoutStore.java/buggy/source/org/jasig/portal/RDBMUserLayoutStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 2177, 4029, 3042, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 2863, 10502, 273, 6249, 31, 565, 10842, 3597, 31, 565, 4050, 356, 273, 534, 2290, 49, 5676, 18, 588, 1952, 5621, 565, 534, 2290, 49, 5676, 18, 542, 4965, 5580, 12, 591, 16, 629, 1769, 1850, 368, 16734, 8632, 9198, 731, 16, 848, 1404, 366, 295, 88, 565, 775, 288, 1377, 4319, 2828, 997, 273, 394, 4319, 2828, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 1377, 775, 288, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 368, 18011, 16, 732, 1608, 358, 2917, 1542, 3511, 16164, 1427, 1846, 848, 2537, 741, 333, 30, 3639, 368, 3639, 509, 3511, 548, 33, 5040, 18, 588, 3744, 548, 5621, 3639, 368, 1496, 364, 2037, 30, 3639, 514, 720, 3391, 780, 273, 315, 4803, 25239, 5069, 67, 734, 4571, 7376, 67, 4714, 67, 22462, 4852, 7443, 67, 734, 1546, 397, 6249, 397, 315, 4116, 4629, 3776, 67, 734, 1546, 397, 3042, 18, 588, 4029, 548, 5621, 3639, 1827, 1179, 18, 1336, 7675, 1330, 12, 1343, 1179, 18, 9394, 16, 315, 54, 2290, 49, 1299, 3744, 2257, 2866, 588, 1299, 3744, 13332, 315, 397, 720, 3391, 780, 1769, 3639, 509, 3511, 548, 31, 3639, 3597, 273, 3480, 18, 8837, 1138, 12, 1717, 3391, 780, 1769, 3639, 775, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 2177, 4029, 3042, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 2863, 10502, 273, 6249, 31, 565, 10842, 3597, 31, 565, 4050, 356, 273, 534, 2290, 49, 5676, 18, 588, 1952, 5621, 565, 534, 2290, 49, 5676, 18, 542, 4965, 5580, 12, 591, 16, 629, 1769, 1850, 368, 16734, 8632, 9198, 731, 16, 848, 1404, 366, 295, 88, 565, 775, 288, 1377, 4319, 2828, 997, 273, 394, 4319, 2828, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 1377, 775, 288, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 2 ]
Token xsp; xsp = jj_scanpos; if (jj_3_33()) { jj_scanpos = xsp; if (jj_3R_134()) return true; }
if (jj_scan_token(DOT)) return true; if (jj_3R_73()) return true; if (jj_scan_token(IDENTIFIER)) return true;
final private boolean jj_3R_82() { Token xsp; xsp = jj_scanpos; if (jj_3_33()) { jj_scanpos = xsp; if (jj_3R_134()) return true; } return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/204bebdbecd44fd7e3376db20b9709780ab79771/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 11149, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 67, 3707, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 25213, 10756, 327, 638, 31, 565, 289, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 11149, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 67, 3707, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 25213, 10756, 327, 638, 31, 565, 289, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String[][] chars = {{"\\\\", "\"", "\'", }, {"\\\\\\\\", "\\\\\"", "\\\\\'", }};
String[][] chars = { { "\\\\", "\"", "\'", }, { "\\\\\\\\", "\\\\\"", "\\\\\'", } };
public static String escape( String str ) { String[][] chars = {{"\\\\", "\"", "\'", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ }, {"\\\\\\\\", "\\\\\"", "\\\\\'", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ }}; String result = str; for ( int i = 0; i < chars[0].length; i++ ) { result = result.replaceAll( chars[0][i], chars[1][i] ); } return result; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/65c31b53af468bafee3d7b3a9d5249824989932a/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 4114, 12, 514, 609, 262, 202, 95, 202, 202, 780, 63, 6362, 65, 5230, 273, 10179, 6, 13011, 3113, 7023, 3113, 1548, 11, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 759, 8, 3993, 17, 5106, 17, 23, 8, 202, 202, 5779, 12528, 13011, 13011, 3113, 1548, 13011, 6, 3113, 28040, 10471, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 759, 8, 3993, 17, 5106, 17, 23, 8, 202, 202, 9090, 31, 202, 202, 780, 563, 273, 609, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 5230, 63, 20, 8009, 2469, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 2088, 273, 563, 18, 2079, 1595, 12, 5230, 63, 20, 6362, 77, 6487, 5230, 63, 21, 6362, 77, 65, 11272, 202, 202, 97, 202, 202, 2463, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 4114, 12, 514, 609, 262, 202, 95, 202, 202, 780, 63, 6362, 65, 5230, 273, 10179, 6, 13011, 3113, 7023, 3113, 1548, 11, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 759, 8, 3993, 17, 5106, 17, 23, 8, 202, 202, 5779, 12528, 13011, 13011, 3113, 1548, 13011, 6, 3113, 28040, 10471, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 759, 8, 3993, 17, 5106, 17, 23, 8, 202, 202, 9090, 31, 202, 202, 780, 563, 273, 609, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 5230, 63, 20, 8009, 2469, 31, 277, 9904, 2 ]
if (data != null) result.add(data);
if (data != null) { result.add(data); }
private void internalCollectChecked(List result, Widget widget) { Item[] items = getChildren(widget); for (int i = 0; i < items.length; i++) { Item item = items[i]; if (item instanceof TreeItem && ((TreeItem) item).getChecked()) { Object data = item.getData(); if (data != null) result.add(data); } internalCollectChecked(result, item); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/CheckboxTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2713, 10808, 11454, 12, 682, 563, 16, 11103, 3604, 13, 288, 3639, 4342, 8526, 1516, 273, 10268, 12, 6587, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 5411, 4342, 761, 273, 1516, 63, 77, 15533, 5411, 309, 261, 1726, 1276, 4902, 1180, 597, 14015, 2471, 1180, 13, 761, 2934, 588, 11454, 10756, 288, 7734, 1033, 501, 273, 761, 18, 588, 751, 5621, 7734, 309, 261, 892, 480, 446, 13, 10792, 563, 18, 1289, 12, 892, 1769, 5411, 289, 5411, 2713, 10808, 11454, 12, 2088, 16, 761, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2713, 10808, 11454, 12, 682, 563, 16, 11103, 3604, 13, 288, 3639, 4342, 8526, 1516, 273, 10268, 12, 6587, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 5411, 4342, 761, 273, 1516, 63, 77, 15533, 5411, 309, 261, 1726, 1276, 4902, 1180, 597, 14015, 2471, 1180, 13, 761, 2934, 588, 11454, 10756, 288, 7734, 1033, 501, 273, 761, 18, 588, 751, 5621, 7734, 309, 261, 892, 480, 446, 13, 10792, 563, 18, 1289, 12, 892, 1769, 5411, 289, 5411, 2713, 10808, 11454, 12, 2088, 16, 761, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throws InvalidParameterException { return engine.engineGetParameter(param); }
throws InvalidParameterException { return engineGetParameter(param); }
public final Object getParameter(String param) throws InvalidParameterException { return engine.engineGetParameter(param); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/c133414452f7d3f9607e77a80e3ae003b3b3fb91/Signature.java/clean/libraries/javalib/java/security/Signature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1033, 5575, 12, 780, 579, 13, 1082, 202, 15069, 26669, 288, 202, 202, 2463, 4073, 18, 8944, 967, 1662, 12, 891, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 727, 1033, 5575, 12, 780, 579, 13, 1082, 202, 15069, 26669, 288, 202, 202, 2463, 4073, 18, 8944, 967, 1662, 12, 891, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("connectedAtoms.length: " + connectedAtoms.length);
logger.debug("connectedAtoms.length: " + connectedAtoms.length);
public void mouseReleased(MouseEvent event) { isUndoableChange = false; logger.debug("MouseReleased Event Props: mode=", c2dm.getDrawModeString()); if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger(), ", Click count: " + event.getClickCount()); } if ((event.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int[] screenCoords = {event.getX(), event.getY()}; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; if (c2dm.getDrawMode() == c2dm.SYMBOL) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { if (currentCommonElement.get(atomInRange) == null) { currentCommonElement.put(atomInRange, new Integer(1)); } int oldCommonElement = ((Integer) currentCommonElement.get(atomInRange)).intValue(); String symbol = (String) commonElements.elementAt(oldCommonElement); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } oldCommonElement++; if (oldCommonElement == commonElements.size()) { oldCommonElement = 0; } currentCommonElement.put(atomInRange, new Integer(oldCommonElement)); } } if (c2dm.getDrawMode() == c2dm.ELEMENT) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { String symbol = c2dm.getDrawElement(); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } } if (c2dm.getDrawMode() == c2dm.INCCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() + 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom charge */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.DECCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() - 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.MAPATOMATOM) { logger.debug("Should make new mapping..."); if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; Atom mappedToAtom = getAtomInRange(endX, endY); if (mappedToAtom != null) { int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Atom mappedFromAtom = getAtomInRange(startX, startY); if (mappedFromAtom != null) { Mapping mapping = new Mapping(mappedFromAtom, mappedToAtom); logger.debug("Created mapping: ", mapping); logger.debug(" between ", mappedFromAtom); logger.debug(" and ", mappedToAtom); // ok, now figure out if they are in one reaction Reaction reaction1 = ChemModelManipulator.getRelevantReaction(chemModel, mappedFromAtom); Reaction reaction2 = ChemModelManipulator.getRelevantReaction(chemModel, mappedToAtom); if (reaction1 != null && reaction2 != null && reaction1 == reaction2) { logger.debug("Adding mapping to reaction: ", reaction1.getID()); reaction1.addMapping(mapping); } else { logger.warn("Reactions do not match, or one or both are reactions are null"); } } else { logger.debug("Dragging did not start in atom..."); } } else { logger.debug("Dragging did not end in atom..."); } } else { logger.debug("Not dragged in mapping mode"); } } if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange; Atom newAtom1=null; Atom newAtom2=null; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Bond bondInRange = r2dm.getHighlightedBond(); atomInRange = r2dm.getHighlightedAtom(); if (bondInRange != null) { // increase Bond order double order = bondInRange.getOrder(); if (order >= CDKConstants.BONDORDER_TRIPLE) { bondInRange.setOrder(CDKConstants.BONDORDER_SINGLE); } else { bondInRange.setOrder(order + 1.0); // this is tricky as it depends on the fact that the // constants are unidistant, i.e. {1.0, 2.0, 3.0}. } ; // update atoms Atom[] atoms = bondInRange.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { if (atomInRange != null) { newAtom1 = atomInRange; } else { // create a new molecule newAtom1 = new Atom(c2dm.getDrawElement(), new Point2d(startX, startY)); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.addAtom(newAtom1); // update atoms updateAtom(atomCon, newAtom1); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } if (wasDragged) { if (dragMode == DRAG_DRAWING_PROPOSED_BOND) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); AtomContainer atomCon = null; if (atomInRange != null) { newAtom2 = atomInRange; atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom2); } else { newAtom2 = new Atom(c2dm.getDrawElement(), new Point2d(endX, endY)); atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom1); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); // update atoms updateAtom(atomCon, newAtom2); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } } else if (atomInRange != null) { // add a new atom to the current atom in some random // direction AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); newAtom2 = new Atom(c2dm.getDrawElement(), atomInRange.getPoint2d()); // now create 2D coords for new atom double bondLength = r2dm.getBondLength(); Atom[] connectedAtoms = atomCon.getConnectedAtoms(atomInRange); System.out.println("connectedAtoms.length: " + connectedAtoms.length); AtomContainer placedAtoms = new AtomContainer(); //placedAtoms.addAtom(atomInRange); for (int i = 0; i < connectedAtoms.length; i++) { placedAtoms.addAtom(connectedAtoms[i]); } AtomContainer unplacedAtoms = new AtomContainer(); unplacedAtoms.addAtom(newAtom2); AtomPlacer atomPlacer = new AtomPlacer(); atomPlacer.setMolecule(new Molecule(atomCon)); Point2d center2D = GeometryTools.get2DCenter(placedAtoms); System.out.println("placedAtoms.getAtomCount(): " + placedAtoms.getAtomCount()); System.out.println("unplacedAtoms.getAtomCount(): " + unplacedAtoms.getAtomCount()); if (placedAtoms.getAtomCount() == 1) { Vector2d bondVector = atomPlacer.getNextBondVector(atomInRange, placedAtoms.getAtomAt(0), GeometryTools.get2DCenter(new Molecule(atomCon))); Point2d atomPoint = new Point2d(atomInRange.getPoint2d()); bondVector.normalize(); bondVector.scale(bondLength); atomPoint.add(bondVector); newAtom2.setPoint2d(atomPoint); } else { atomPlacer.distributePartners(atomInRange, placedAtoms, center2D, unplacedAtoms, bondLength); } // now add the new atom atomCon.addAtom(newAtom2); atomCon.addBond(new Bond(atomInRange, newAtom2, 1.0)); // update atoms updateAtom(atomCon, atomInRange); updateAtom(atomCon, newAtom2); } } r2dm.fireChange(); fireChange(); centerAtom(newAtom1); centerAtom(newAtom2); } if (c2dm.getDrawMode() == c2dm.UP_BOND) { Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_UP) { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP_INV); } else if (stereo == CDKConstants.STEREO_BOND_UP_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.DOWN_BOND) { logger.info("Toggling stereo bond down"); Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_DOWN) { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN_INV); } else if (stereo == CDKConstants.STEREO_BOND_DOWN_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { logger.info("User asks to selected atoms"); AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); logger.debug("selected stuff ", selectedPart); } if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { logger.info("User asks to delete an Atom"); AtomContainer container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, highlightedAtom); container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); // update atoms Atom[] atoms = container.getConnectedAtoms(highlightedAtom); if (atoms.length > 0) { AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(atomCon, atoms); } } else if (highlightedBond != null) { logger.info("User asks to delete a Bond"); ChemModelManipulator.removeElectronContainer(chemModel, highlightedBond); // update atoms Atom[] atoms = highlightedBond.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); } else { logger.warn("Cannot deleted if nothing is highlighted"); return; } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { Ring newRing=null; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX; int pointerMarkY; double ringRadius; double angle; double xDiff; double yDiff; double distance1 = 0; double distance2 = 0; Atom firstAtom; Atom secondAtom; Atom spiroAtom; Point2d conAtomsCenter = null; Point2d newPoint1; Point2d newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); AtomContainer sharedAtoms = getHighlighted(); if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) / Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2d(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2d())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2d() - firstAtom.getX2d(); yDiff = secondAtom.getY2d() - firstAtom.getY2d(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond existingBond = atomCon.getBond(firstAtom, secondAtom); Bond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } for(int i=0;i<newRing.getAtomCount();i++){ centerAtom(newRing.getAtomAt(i)); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.LASSO) { // first deselect all atoms r2dm.setSelectedPart(new AtomContainer()); // now select new atoms if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point) lassoPoints.elementAt(0))); int number = lassoPoints.size(); logger.debug("# lasso points: ", number); int[] screenLassoCoords = new int[number * 2]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point) lassoPoints.elementAt(i); screenLassoCoords[i * 2] = currentPoint.x; screenLassoCoords[i * 2 + 1] = currentPoint.y; logger.debug("ScreenLasso.x = ", screenLassoCoords[i * 2]); logger.debug("ScreenLasso.y = ", screenLassoCoords[i * 2 + 1]); } /* * Convert points to world coordinates as they are * in screen coordinates in the vector */ int[] worldCoords = getWorldCoordinates(screenLassoCoords); logger.debug("Returned coords: ", worldCoords.length); logger.debug(" # points: ", number); int[] xPoints = new int[number]; int[] yPoints = new int[number]; for (int i = 0; i < number; i++) { xPoints[i] = worldCoords[i * 2]; yPoints[i] = worldCoords[i * 2 + 1]; logger.debug("WorldCoords.x = ", worldCoords[i * 2]); logger.debug("WorldCoords.y = ", worldCoords[i * 2 + 1]); logger.debug("Polygon.x = ", xPoints[i]); logger.debug("Polygon.y = ", yPoints[i]); } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } else { // one atom clicked or one bond clicked ChemObject chemObj = getChemObjectInRange(mouseX, mouseY); AtomContainer container = new AtomContainer(); if (chemObj instanceof Atom) { container.addAtom((Atom) chemObj); logger.debug("selected one atom in lasso mode"); r2dm.setSelectedPart(container); } else if (chemObj instanceof Bond) { Bond bond = (Bond) chemObj; container.addBond(bond); logger.debug("selected one bond in lasso mode"); Atom[] atoms = bond.getAtoms(); for (int i = 0; i < atoms.length; i++) { container.addAtom(atoms[i]); } r2dm.setSelectedPart(container); } } fireChange(); } if (c2dm.getDrawMode() == c2dm.MOVE) { if (draggingSelected == false) { // then it was dragging nearest Bond or Atom r2dm.setSelectedPart(new AtomContainer()); } } if (wasDragged) { prevDragCoordX = 0; prevDragCoordY = 0; wasDragged = false; } dragMode = DRAG_UNSET; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } if(shiftX!=0 || shiftY!=0){ for(int i=0;i<chemModel.getSetOfMolecules().getMoleculeCount();i++){ Molecule mol=chemModel.getSetOfMolecules().getMolecules()[i]; for(int k=0;k<mol.getAtomCount();k++){ mol.getAtomAt(k).setX2d(mol.getAtomAt(k).getX2d()-shiftX); mol.getAtomAt(k).setY2d(mol.getAtomAt(k).getY2d()-shiftY); } } r2dm.fireChange(); fireChange(); } shiftX=0; shiftY=0; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/2a0e4ca704337f2fb039649c289f2d93c4b7d03d/Controller2D.java/clean/src/org/openscience/cdk/controller/Controller2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 202, 95, 202, 202, 291, 31224, 429, 3043, 273, 629, 31, 202, 202, 4901, 18, 4148, 2932, 9186, 26363, 2587, 1186, 1121, 30, 1965, 1546, 16, 276, 22, 10956, 18, 588, 6493, 2309, 780, 10663, 202, 202, 430, 261, 4901, 18, 291, 2829, 1526, 10756, 202, 202, 95, 1082, 202, 4901, 18, 4148, 2932, 282, 3080, 1546, 397, 871, 18, 291, 13770, 6518, 9334, 6862, 202, 3113, 18417, 1056, 30, 315, 397, 871, 18, 588, 6563, 1380, 10663, 202, 202, 97, 202, 202, 430, 14015, 2575, 18, 588, 11948, 1435, 473, 17013, 1133, 18, 20068, 21, 67, 11704, 13, 480, 374, 13, 202, 202, 95, 1082, 202, 474, 8526, 5518, 13089, 273, 288, 2575, 18, 588, 60, 9334, 871, 18, 588, 61, 17767, 31, 1082, 202, 474, 8526, 7644, 13089, 273, 13876, 6245, 13431, 12, 9252, 13089, 1769, 1082, 202, 474, 7644, 60, 273, 7644, 13089, 63, 20, 15533, 1082, 202, 474, 7644, 61, 273, 7644, 13089, 63, 21, 15533, 1082, 202, 430, 261, 71, 22, 10956, 18, 588, 6493, 2309, 1435, 422, 276, 22, 10956, 18, 22093, 13, 1082, 202, 95, 9506, 202, 3641, 3179, 25277, 273, 436, 22, 10956, 18, 588, 16205, 329, 3641, 5621, 9506, 202, 430, 261, 7466, 25277, 480, 446, 13, 9506, 202, 95, 6862, 202, 430, 261, 2972, 6517, 1046, 18, 588, 12, 7466, 25277, 13, 422, 446, 13, 6862, 202, 95, 25083, 202, 2972, 6517, 1046, 18, 458, 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, 225, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 202, 95, 202, 202, 291, 31224, 429, 3043, 273, 629, 31, 202, 202, 4901, 18, 4148, 2932, 9186, 26363, 2587, 1186, 1121, 30, 1965, 1546, 16, 276, 22, 10956, 18, 588, 6493, 2309, 780, 10663, 202, 202, 430, 261, 4901, 18, 291, 2829, 1526, 10756, 202, 202, 95, 1082, 202, 4901, 18, 4148, 2932, 282, 3080, 1546, 397, 871, 18, 291, 13770, 6518, 9334, 6862, 202, 3113, 18417, 1056, 30, 315, 397, 871, 18, 588, 6563, 1380, 10663, 202, 202, 97, 202, 202, 430, 14015, 2575, 18, 588, 11948, 1435, 473, 17013, 1133, 18, 20068, 21, 67, 11704, 13, 480, 374, 13, 202, 202, 95, 1082, 202, 474, 2 ]
for (Iterator e = gameModeList.iterator(); e.hasNext();)
for ( GameMode gameMode : gameModeList )
public static GameMode getGameModeNamed(final String aString) { for (Iterator e = gameModeList.iterator(); e.hasNext();) { final GameMode gameMode = (GameMode) e.next(); if (gameMode.getName().equalsIgnoreCase(aString)) { return gameMode; } } return null; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/SystemCollections.java/clean/code/src/java/pcgen/core/SystemCollections.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 14121, 2309, 7162, 339, 2309, 7604, 12, 6385, 514, 279, 780, 13, 202, 95, 202, 202, 1884, 261, 3198, 425, 273, 7920, 2309, 682, 18, 9838, 5621, 425, 18, 5332, 2134, 5621, 13, 202, 202, 95, 1082, 202, 6385, 14121, 2309, 7920, 2309, 273, 261, 12496, 2309, 13, 425, 18, 4285, 5621, 1082, 202, 430, 261, 13957, 2309, 18, 17994, 7675, 14963, 5556, 12, 69, 780, 3719, 1082, 202, 95, 9506, 202, 2463, 7920, 2309, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 14121, 2309, 7162, 339, 2309, 7604, 12, 6385, 514, 279, 780, 13, 202, 95, 202, 202, 1884, 261, 3198, 425, 273, 7920, 2309, 682, 18, 9838, 5621, 425, 18, 5332, 2134, 5621, 13, 202, 202, 95, 1082, 202, 6385, 14121, 2309, 7920, 2309, 273, 261, 12496, 2309, 13, 425, 18, 4285, 5621, 1082, 202, 430, 261, 13957, 2309, 18, 17994, 7675, 14963, 5556, 12, 69, 780, 3719, 1082, 202, 95, 9506, 202, 2463, 7920, 2309, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return getResourceBundle(getLocale());
return I18n.getResourceBundle(I18n.getLocale());
public static ResourceBundle getResourceBundle() { return getResourceBundle(getLocale()); }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/I18n.java/clean/src/thaw/core/I18n.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 19198, 5070, 3405, 1435, 288, 202, 202, 2463, 5070, 3405, 12, 588, 3916, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 19198, 5070, 3405, 1435, 288, 202, 202, 2463, 5070, 3405, 12, 588, 3916, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public SelectExpression(int multiplicity, metamodel.Class theClass, Expression condition, RelatedToOperation rto ) { super();
public SelectExpression(int multiplicity, metamodel.Class theClass, Expression condition ) {
public SelectExpression(int multiplicity, metamodel.Class theClass, Expression condition, RelatedToOperation rto ) { super(); this.theClass = theClass; this.multiplicity = multiplicity ; if ( condition != null ) { this.hasCondition = true; this.condition = condition; } else if ( rto != null) { this.hasRelatedTo = true; this.rto = rto; } }
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/cd47dedb459e0ba9a9809c7c198bd64ddf5aa1d2/SelectExpression.java/clean/trunk/src/metamodel/SelectExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6766, 2300, 12, 474, 3309, 20458, 16, 5100, 13474, 18, 797, 326, 797, 16, 5371, 2269, 16, 23892, 774, 2988, 436, 869, 262, 288, 7734, 2240, 5621, 540, 333, 18, 5787, 797, 273, 326, 797, 31, 3639, 333, 18, 7027, 20458, 273, 3309, 20458, 274, 540, 309, 261, 2269, 480, 446, 262, 288, 5411, 333, 18, 5332, 3418, 273, 638, 31, 2398, 333, 18, 4175, 273, 2269, 31, 1850, 289, 469, 309, 261, 436, 869, 480, 446, 13, 288, 5411, 333, 18, 5332, 8017, 774, 273, 638, 31, 2398, 333, 18, 86, 869, 273, 436, 869, 31, 1850, 289, 10792, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6766, 2300, 12, 474, 3309, 20458, 16, 5100, 13474, 18, 797, 326, 797, 16, 5371, 2269, 16, 23892, 774, 2988, 436, 869, 262, 288, 7734, 2240, 5621, 540, 333, 18, 5787, 797, 273, 326, 797, 31, 3639, 333, 18, 7027, 20458, 273, 3309, 20458, 274, 540, 309, 261, 2269, 480, 446, 262, 288, 5411, 333, 18, 5332, 3418, 273, 638, 31, 2398, 333, 18, 4175, 273, 2269, 31, 1850, 289, 469, 309, 261, 436, 869, 480, 446, 13, 288, 5411, 333, 18, 5332, 8017, 774, 273, 638, 31, 2398, 333, 18, 86, 869, 273, 436, 869, 31, 1850, 289, 10792, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]