rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
ev.getMessage().pushInt(ev.getMessage().popInt()+1);
if (!(ev instanceof UpdateEvent)) { ev.getMessage().pushInt(ev.getMessage().popInt()+1); }
private void storeUnconfirmed(Peer peer, SendableEvent ev) { // updates peer counter ev.getMessage().pushInt(ev.getMessage().popInt()+1); peer.unconfirmed_msgs.addLast(ev); }
47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/48f1bf072e6b08cbfb87a9ce9a6d10de431198e6/NakFifoMulticastSession.java/buggy/trunk/appia/src/org/continuent/appia/protocols/nakfifo/multicast/NakFifoMulticastSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1707, 984, 21606, 12, 6813, 4261, 16, 2479, 429, 1133, 2113, 13, 288, 565, 368, 4533, 4261, 3895, 282, 309, 16051, 12, 14965, 1276, 2315, 1133, 3719, 288, 225, 2113, 18, 24906,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1707, 984, 21606, 12, 6813, 4261, 16, 2479, 429, 1133, 2113, 13, 288, 565, 368, 4533, 4261, 3895, 282, 309, 16051, 12, 14965, 1276, 2315, 1133, 3719, 288, 225, 2113, 18, 24906,...
myTree.getModel().addTreeModelListener(new TreeModelListener() {
final TreeModel treeModel = myTree.getModel(); final TreeModelListener treeModelListener = new TreeModelListener() {
public BreakpointPanel(BreakpointPropertiesPanel propertiesPanel, final BreakpointPanelAction[] actions, String breakpointCategory, String displayName, String helpId) { myPropertiesPanel = propertiesPanel; myActions = actions; myBreakpointCategory = breakpointCategory; myDisplayName = displayName; myHelpID = helpId; myTable = new BreakpointTable(); myTree = new BreakpointTree(); myTablePlace.setLayout(new CardLayout()); myTablePlace.add(ScrollPaneFactory.createScrollPane(myTable), TABLE_VIEW); myTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { updateCurrentBreakpointPropertiesPanel(); } }); myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { updateCurrentBreakpointPropertiesPanel(); } }); myTable.getModel().addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { if (e.getType() == TableModelEvent.UPDATE) { updateCurrentBreakpointPropertiesPanel(); } } }); myTree.getModel().addTreeModelListener(new TreeModelListener() { public void treeNodesChanged(TreeModelEvent e) { } public void treeNodesInserted(TreeModelEvent e) { } public void treeNodesRemoved(TreeModelEvent e) { } public void treeStructureChanged(TreeModelEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() { ensureSelectionExists(); updateButtons(); } }); } }); myPropertiesPanelPlace.setLayout(new CardLayout()); final JPanel stubPanel = new JPanel(); stubPanel.setMinimumSize(myPropertiesPanel.getPanel().getMinimumSize()); myPropertiesPanelPlace.add(stubPanel, PROPERTIES_STUB); myPropertiesPanelPlace.add(myPropertiesPanel.getPanel(), PROPERTIES_DATA); myBreakPointsPanel.setBorder(IdeBorderFactory.createEmptyBorder(6, 6, 0, 6)); myButtonsPanel.setLayout(new GridBagLayout()); for (int idx = 0; idx < actions.length; idx++) { final BreakpointPanelAction action = actions[idx]; action.setPanel(this); final AbstractButton button = action.isStateAction()? new JCheckBox(action.getName()) : new JButton(action.getName()); action.setButton(button); button.addActionListener(action); final double weighty = (idx == actions.length - 1) ? 1.0 : 0.0; myButtonsPanel.add(button, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, weighty, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 2, 2, 2), 0, 0)); } myTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { updateButtons(); } }); myTable.getModel().addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { myEventDispatcher.getMulticaster().breakpointsChanged(); } }); myTablePlace.add(ScrollPaneFactory.createScrollPane(myTree), TREE_VIEW); updateCurrentBreakpointPropertiesPanel(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/9216a2d40fc88ed8cfd52eb569b99031cb108e4c/BreakpointPanel.java/clean/source/com/intellij/debugger/ui/breakpoints/BreakpointPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 17030, 1153, 5537, 12, 20552, 2297, 5537, 1790, 5537, 16, 727, 17030, 1153, 5537, 1803, 8526, 4209, 16, 514, 18820, 4457, 16, 514, 16218, 16, 514, 2809, 548, 13, 288, 565, 3399, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17030, 1153, 5537, 12, 20552, 2297, 5537, 1790, 5537, 16, 727, 17030, 1153, 5537, 1803, 8526, 4209, 16, 514, 18820, 4457, 16, 514, 16218, 16, 514, 2809, 548, 13, 288, 565, 3399, 229...
}
} c_encoding = conf.getString("defaultContentEncoding", "ISO-8859-1"); /* try { if (!java.nio.charset.Charset.isSupported(c_encoding)) { c_encoding = "ISO-8859-1"; } } catch (Exception e) { c_encoding = "ISO-8859-1"; } */
public OpenCms(Configurations conf) throws Exception { CmsObject cms = null; // Save the configuration setConfiguration(conf); // invoke the ResourceBroker via the initalizer try { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] logging started"); String jdkinfo = System.getProperty("java.vm.name") + " "; jdkinfo += System.getProperty("java.vm.version") + " "; jdkinfo += System.getProperty("java.vm.info") + " "; jdkinfo += System.getProperty("java.vm.vendor") + " "; A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] JDK Info: " + jdkinfo); String osinfo = System.getProperty("os.name") + " "; osinfo += System.getProperty("os.version") + " "; osinfo += System.getProperty("os.arch") + " "; A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] OS Info: " + osinfo); A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] file.encoding: " + System.getProperty("file.encoding")); } if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] creating first cms-object"); } cms = new CmsObject(); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] initializing the main resource-broker"); } m_sessionFailover = conf.getBoolean("sessionfailover.enabled", false); // init the rb via the manager with the configuration // and init the cms-object with the rb. c_rb = CmsRbManager.init(conf); printCopyrightInformation(cms); // initalize the Hashtable with all available mimetypes if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] read mime types"); } m_mt = c_rb.readMimeTypes(null, null); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] found " + m_mt.size() + " mime-type entrys"); } // Check, if the HTTP streaming should be enabled m_streaming = conf.getBoolean("httpstreaming.enabled", true); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] HTTP streaming " + (m_streaming?"en":"dis") + "abled. "); } // if the System property opencms.disableScheduler is set to true, don't start scheduling if(!new Boolean(System.getProperty("opencms.disableScheduler")).booleanValue()) { // now initialise the OpenCms scheduler to launch cronjobs m_table = new CmsCronTable(c_rb.readCronTable(null, null)); m_scheduler = new CmsCronScheduler(this, m_table); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] initializing CmsCronScheduler... DONE"); } } else { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCmsServlet] CmsCronScheduler is disabled!"); } } } catch(Exception e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] " + e.getMessage()); } throw e; } // try to initialize the launchers. try { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] initialize launchers..."); } m_launcherManager = new CmsLauncherManager(this); } catch(Exception e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] " + e.getMessage()); } } // get the password validating class c_passwordValidatingClass = conf.getString("passwordvalidatingclass", "com.opencms.util.PasswordValidtation"); // Check, if the element cache should be enabled m_enableElementCache = conf.getBoolean("elementcache.enabled", false); if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] element cache " + (m_enableElementCache?"en":"dis") + "abled. "); } if(m_enableElementCache) { try { c_elementCache = new CmsElementCache(conf.getInteger("elementcache.uri", 10000), conf.getInteger("elementcache.elements", 50000), conf.getInteger("elementcache.variants", 100)); }catch(Exception e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] " + e.getMessage()); } } c_variantDeps = new Hashtable(); c_elementCache.getElementLocator().setExternDependencies(c_variantDeps); } // now for the link replacement rules there are up to three rulesets for export online and offline try{ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] initializing link replace rules."); } String[] staticUrlPrefix = new String[4]; staticUrlPrefix[0]=Utils.replace(conf.getString(C_URL_PREFIX_EXPORT, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); staticUrlPrefix[1]=Utils.replace(conf.getString(C_URL_PREFIX_HTTP, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); staticUrlPrefix[2]=Utils.replace(conf.getString(C_URL_PREFIX_HTTPS, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); staticUrlPrefix[3]=Utils.replace(conf.getString(C_URL_PREFIX_SERVERNAME, ""), C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); c_exportProperties.setUrlPrefixArray(staticUrlPrefix); // to get the right rulesets we need the default value for the export property String exportDefault = conf.getString("staticexport.default.export", "true"); c_exportProperties.setExportDefaultValue(exportDefault); String export = conf.getString("linkrules."+exportDefault+".export"); String[] linkRulesExport; if(export != null && !"".equals(export)){ linkRulesExport = conf.getStringArray("ruleset."+export); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesExport.length; i++) { linkRulesExport[i] = Utils.replace(linkRulesExport[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesExport[i] = Utils.replace(linkRulesExport[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesExport(linkRulesExport); } String online = conf.getString("linkrules."+exportDefault+".online"); String[] linkRulesOnline; if(online != null && !"".equals(online)){ linkRulesOnline = conf.getStringArray("ruleset."+online); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesOnline.length; i++) { linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesOnline[i] = Utils.replace(linkRulesOnline[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesOnline(linkRulesOnline); } String offline = conf.getString("linkrules."+exportDefault+".offline"); String[] linkRulesOffline; if(offline != null && !"".equals(offline)){ linkRulesOffline = conf.getStringArray("ruleset."+offline); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesOffline.length; i++) { linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesOffline[i] = Utils.replace(linkRulesOffline[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesOffline(linkRulesOffline); } String extern = conf.getString("linkrules."+exportDefault+".extern"); String[] linkRulesExtern; if(extern != null && !"".equals(extern)){ linkRulesExtern = conf.getStringArray("ruleset."+extern); // now replace ${WEB_APP_NAME} with the correct name of the webapplication and replace the other variables for(int i = 0; i < linkRulesExtern.length; i++) { linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], C_WEB_APP_REPLACE_KEY, CmsBase.getWebAppName()); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_EXPORT+"}", staticUrlPrefix[0]); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_HTTP+"}", staticUrlPrefix[1]); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_HTTPS+"}", staticUrlPrefix[2]); linkRulesExtern[i] = Utils.replace(linkRulesExtern[i], "${"+C_URL_PREFIX_SERVERNAME+"}", staticUrlPrefix[3]); } c_exportProperties.setLinkRulesExtern(linkRulesExtern); } c_exportProperties.setStartRule(null); // temporary out of order: conf.getString("exportfirstrule"); Vector staticExportStart=new Vector(); staticExportStart.add("/"); c_exportProperties.setStartPoints(staticExportStart); // at last the target for the export c_exportProperties.setExportPath( com.opencms.boot.CmsBase.getAbsoluteWebPath(CmsBase.getAbsoluteWebPath(conf.getString(C_STATICEXPORT_PATH)))); // should the links in static export be relative? c_exportProperties.setExportRelativeLinks(conf.getBoolean("relativelinks_in_export", false)); // is the static export enabled? String activCheck = conf.getString("staticexport.enabled", "false"); c_exportProperties.setStaticExportEnabledValue(activCheck); if("true".equalsIgnoreCase(activCheck)){ c_exportProperties.setStaticExportEnabled(true); }else{ c_exportProperties.setStaticExportEnabled(false); } if(c_exportProperties.isStaticExportEnabled()){ // we have to generate the dynamic rulessets createDynamicLinkRules(); }else{ if("false_ssl".equalsIgnoreCase(activCheck)){ // no static esport, but we need the dynamic rules for setting the protokoll to https c_exportProperties.setLinkRulesOffline(new String[]{"s#^#" + staticUrlPrefix[1] + "#"}); c_exportProperties.setLinkRulesOnline(new String[]{"*dynamicRules*", "s#^#" + staticUrlPrefix[1] + "#"}); // and we have to change the standart export prefix to stay in opencms c_exportProperties.getUrlPrefixArray()[0] = staticUrlPrefix[1]; // if we need them we should create them createDynamicLinkRules(); }else{ // no static export. We need online and offline rules to stay in OpenCms. // we generate them with the url_prefix_http so the user can still configure // the servletpath. c_exportProperties.setLinkRulesOffline(new String[]{"s#^#" + staticUrlPrefix[1] + "#"}); c_exportProperties.setLinkRulesOnline(new String[]{"s#^#" + staticUrlPrefix[1] + "#"}); } } }catch(Exception e){ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[OpenCms] Exception initializing link rules: " + e.toString()); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/5c27bc595df503fc5e3629ec92d99ba38b58a0e9/OpenCms.java/buggy/src/com/opencms/core/OpenCms.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10319, 12, 9698, 2195, 13, 1216, 1185, 288, 3639, 14371, 6166, 273, 446, 31, 3639, 368, 7074, 326, 1664, 3639, 444, 1750, 12, 3923, 1769, 7734, 368, 4356, 326, 2591, 11194, 3970, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10319, 12, 9698, 2195, 13, 1216, 1185, 288, 3639, 14371, 6166, 273, 446, 31, 3639, 368, 7074, 326, 1664, 3639, 444, 1750, 12, 3923, 1769, 7734, 368, 4356, 326, 2591, 11194, 3970, 32...
public int[] finish() {
public int[] finish() throws VM_PragmaInterruptible {
public int[] finish() { if ((gcMapInformation != null) && (lastGCMapEntry < gcMapInformation.length - 1)) { resizeMapInformation(lastGCMapEntry + 1); } return gcMapInformation; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a259eee8ff750bfcf6596f83ad8ce6c1bcc7286d/VM_OptGCMap.java/clean/rvm/src/vm/compilers/optimizing/vmInterface/services/VM_OptGCMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8526, 4076, 1435, 1216, 8251, 67, 2050, 9454, 14126, 1523, 288, 565, 309, 14015, 13241, 863, 5369, 480, 446, 13, 597, 225, 202, 12, 2722, 15396, 863, 1622, 411, 8859, 863, 5369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 8526, 4076, 1435, 1216, 8251, 67, 2050, 9454, 14126, 1523, 288, 565, 309, 14015, 13241, 863, 5369, 480, 446, 13, 597, 225, 202, 12, 2722, 15396, 863, 1622, 411, 8859, 863, 5369...
public XSCMValidator getContentModel(XSComplexTypeDecl typeDecl) { // for complex type with empty or simple content, // there is no content model validator short contentType = typeDecl.getContentType(); if (contentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE || contentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) { return null; } XSParticleDecl particle = (XSParticleDecl)typeDecl.getParticle(); // if the content is element only or mixed, but no particle // is defined, return the empty content model if (particle == null) return fEmptyCM; // if the content model contains "all" model group, // we create an "all" content model, otherwise a DFA content model XSCMValidator cmValidator = null; if (particle.fType == XSParticleDecl.PARTICLE_MODELGROUP && ((XSModelGroupImpl)particle.fValue).fCompositor == XSModelGroupImpl.MODELGROUP_ALL) { cmValidator = createAllCM(particle); } else { cmValidator = createDFACM(particle); } // if the validator returned is null, it means there is nothing in // the content model, so we return the empty content model. if (cmValidator == null) cmValidator = fEmptyCM; return cmValidator; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/e65c5ac35572e7128402faf30f4127f7dfae653b/CMBuilder.java/clean/src/org/apache/xerces/impl/xs/models/CMBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 2312, 49, 5126, 5154, 1488, 12, 60, 55, 12795, 559, 3456, 618, 3456, 13, 288, 3639, 368, 364, 7233, 618, 598, 1008, 578, 4143, 913, 16, 3639, 368, 1915, 353, 1158, 913, 938,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1139, 2312, 49, 5126, 5154, 1488, 12, 60, 55, 12795, 559, 3456, 618, 3456, 13, 288, 3639, 368, 364, 7233, 618, 598, 1008, 578, 4143, 913, 16, 3639, 368, 1915, 353, 1158, 913, 938,...
sb.append(" not found in ").append((win == null? "sent" : "received")).append(" msgs. ");
sb.append(" not found in ").append((amISender? "sent" : "received")).append(" msgs. ");
void handleXmitReq(Address xmit_requester, long first_seqno, long last_seqno, Address original_sender) { Message m, tmp; LinkedList list; long size=0, marker=first_seqno, len; NakReceiverWindow win=null; if(log.isTraceEnabled()) { StringBuffer sb=new StringBuffer(); sb.append(local_addr).append(": received xmit request from ").append(xmit_requester).append(" for "); sb.append(original_sender).append(" [").append(first_seqno).append(" - ").append(last_seqno).append("]"); log.trace(sb.toString()); } if(first_seqno > last_seqno) { if(log.isErrorEnabled()) log.error("first_seqno (" + first_seqno + ") > last_seqno (" + last_seqno + "): not able to retransmit"); return; } if(!local_addr.equals(original_sender)) { // retransmit from received messages table win=(NakReceiverWindow)received_msgs.get(original_sender); } else { // retransmit from sent messages table } list=new LinkedList(); for(long i=first_seqno; i <= last_seqno; i++) { if(win != null) m=win.get(i); else m=(Message)sent_msgs.get(new Long(i)); // no need to synchronize if(m == null) { if(log.isErrorEnabled()) { StringBuffer sb=new StringBuffer(); sb.append("(requester=").append(xmit_requester).append(", local_addr=").append(this.local_addr); sb.append(") message ").append(original_sender).append("::").append(i); sb.append(" not found in ").append((win == null? "sent" : "received")).append(" msgs. "); if(win != null) { sb.append("Received messages: ").append(win.toString()); } else { sb.append("Sent messages: ").append(printSentMsgs()); } log.error(sb.toString()); } continue; } len=m.size(); size+=len; if(size > max_xmit_size && list.size() > 0) { // changed from >= to > (yaron-r, bug #943709) // yaronr: added &&listSize()>0 since protocols between FRAG and NAKACK add headers, and message exceeds size. // size has reached max_xmit_size. go ahead and send message (excluding the current message) if(log.isTraceEnabled()) log.trace("xmitting msgs [" + marker + '-' + (i - 1) + "] to " + xmit_requester); sendXmitRsp(xmit_requester, (LinkedList)list.clone(), marker, i - 1); marker=i; list.clear(); // fixed Dec 15 2003 (bela, patch from Joel Dice (dicej)), see explanantion under // bug report #854887 size=len; } if(Global.copy) { tmp=m.copy(); } else { tmp=m; } tmp.setDest(xmit_requester); tmp.setSrc(local_addr); list.add(tmp); } if(list.size() > 0) { if(log.isTraceEnabled()) log.trace("xmitting msgs [" + marker + '-' + last_seqno + "] to " + xmit_requester); sendXmitRsp(xmit_requester, (LinkedList)list.clone(), marker, last_seqno); list.clear(); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/b85e2de5b1f645881680c96fb57e604eb54bd500/NAKACK.java/clean/src/org/jgroups/protocols/pbcast/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 60, 1938, 6113, 12, 1887, 619, 1938, 67, 26192, 16, 1525, 1122, 67, 5436, 2135, 16, 1525, 1142, 67, 5436, 2135, 16, 5267, 2282, 67, 15330, 13, 288, 3639, 2350, 312, 16, 1853,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 60, 1938, 6113, 12, 1887, 619, 1938, 67, 26192, 16, 1525, 1122, 67, 5436, 2135, 16, 1525, 1142, 67, 5436, 2135, 16, 5267, 2282, 67, 15330, 13, 288, 3639, 2350, 312, 16, 1853,...
"org.eclipse.ui.tests.menus.enabledWorld", null, null,
"org.eclipse.ui.tests.menus.updateWorld", null, null,
public void addMenuContribution() { IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); MenuDataCacheEntry cache = new MenuDataCacheEntry(menuService, "menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions"); ItemData item = new ItemData("org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null, null); cache.add(item); MenuData submenu = new MenuData("org.eclipse.ui.tests.menus.menuX21", null, "Menu X21", null, null); cache.add(submenu); item = new ItemData("org.eclipse.ui.tests.menus.itemX22", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X22", null, null); submenu.add(item); item = new ItemData("org.eclipse.ui.tests.menus.itemX23", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X23", null, null); submenu.add(item); item = new ItemData("org.eclipse.ui.tests.menus.itemX24", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X24", null, null); cache.add(item); menuService.addCacheForURI(cache); cache = new MenuDataCacheEntry(menuService, "toolbar:org.eclipse.ui.tests.api.MenuTestHarness"); item = new ItemData("org.eclipse.ui.tests.menus.itemX25", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X25", null, null); cache.add(item); WidgetData widget = new WidgetData( "org.eclipse.ui.tests.menus.itemX26", null) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.menus.WidgetData#createWidget() */ public AbstractWorkbenchWidget createWidget() { return new TextWidget(); } }; cache.add(widget); menuService.addCacheForURI(cache); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/eb25ee5d930a4b5ff226192cb94888744934b0a1/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 4599, 442, 4027, 1435, 288, 202, 202, 3445, 2104, 1179, 3824, 1179, 273, 261, 3445, 2104, 1179, 13, 11810, 5370, 18, 588, 2421, 22144, 1435, 9506, 202, 18, 588, 1179, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 4599, 442, 4027, 1435, 288, 202, 202, 3445, 2104, 1179, 3824, 1179, 273, 261, 3445, 2104, 1179, 13, 11810, 5370, 18, 588, 2421, 22144, 1435, 9506, 202, 18, 588, 1179, 12, ...
leafparser, am.ispolymorphic, am.ismappable);
leafparser, am == null? false : am.ispolymorphic, am == null? false : am.ismappable);
public void startElement(String tagname, AttributeList attrlist) throws SAXException { try { // an element has started, and we must start to construct an object to put // it in. // The object on top of the ParseContext stack represents the parent object // of this object. ParseContext beingparsed = getSaxingObject(); if (beingparsed.isleaf) { throw new SAXParseException("Received open tag " + tagname + " for leaf tag " + beingparsed.parentsetter.tagname, locator); } SAXAccessMethodHash tagmethods = beingparsed.ma.tagmethods; // Firstly we will look into its AccessMethodHash to see if the tagname we // have just seen // has been registered by the class of the parent object. SAXAccessMethod am = tagmethods.get(tagname); Class newobjclass = null; // for some reason, idiot compiler cannot // analyse that this is set if (am == null) { // if we failed to find a registered method for this tag name try { // attempt to look up the class name now so that the forthcoming // if statement can be nicely ordered if (tagname.indexOf(':') == -1 && tagname.indexOf('.') != -1) newobjclass = Class.forName(tagname); } catch (Exception e) { } // exception simply indicates that the tag name is not a class if (tagmethods.get("*") != null && newobjclass != null) { // if the parent is polymorphic, and class name lookup succeeded, do // nothing. // Note, this is REALLY blank! newobjtype will be set in the try // above. } else if (beingparsed.object instanceof GenericSAX) { // but the parent is generic newobjclass = GenericSAXImpl.class; // Child of generic will always be // generic. } else { // the parent is not generic throw new SAXParseException("Unexpected tag '" + tagname + "' found while parsing child of" + (beingparsed.object == null ? " null object" : " object of " + beingparsed.object.getClass()), locator); } } // end if no registered method else { String typeattrname = Constants.TYPE_ATTRIBUTE_NAME; // QQQQQ genericise this somehow. String typeattrvalue = attrlist.getValue(typeattrname); if (am.ispolymorphic && typeattrvalue != null) { newobjclass = mappingcontext.classnamemanager .findClazz(typeattrvalue); if (newobjclass == null) { newobjclass = ClassGetter.forName(typeattrvalue); } if (newobjclass == null) { throw new SAXParseException("Polymorphic tag " + tagname + " has \"type\" attribute with value " + typeattrvalue + " which cannot be resolved to a class ", locator); } } else { newobjclass = am.clazz; } } if (Logger.passDebugLevel(Logger.DEBUG_EXTRA_INFO)) { Logger.println("ELEMENT CLASS determined to be " + newobjclass); } // if the parent is DeSAXalizable and we can find a unique non-null object // already present at this position, use it rather than creating a new // one. // do not do this for leaves, since they will be replaced anyway, and in // any // case the existing object represents the leaf's class. Object oldobj = null; // enumerations and non-getters are out - we could never write to them. // if it is a leaf type it is out, UNLESS it is a multiple in which case // it // is denumerable. It is ALSO out if it is "exact" since the class author // presumably has provided a precise "add" method he wants us to use. if (am.canGet() && !am.isenumonly && (am.ismultiple || !leafparser.isLeafType(am.clazz)) && !am.isexactsetter) { oldobj = am.getChildObject(beingparsed.object); if (oldobj != null) { // Logger.println("Acquired old object " + oldobj + " from parent " // + beingparsed.object + " of class " + am.clazz, // Logger.DEBUG_EXTRA_INFO); } } pushObject(newobjclass, oldobj, am); ParseContext newcontext = getSaxingObject(); if (am.ismappable) { newcontext.mapkey = attrlist.getValue(Constants.KEY_ATTRIBUTE_NAME); newcontext.objectpeer = am.getChildObject(beingparsed.object); } if (!newcontext.isleaf) { tryBlastAttrs(attrlist, newcontext.ma.attrmethods, newcontext.object, leafparser, am.ispolymorphic, am.ismappable); } } catch (Exception e) { if (e instanceof SAXParseException) { throw ((SAXParseException) e); } else { throw UniversalRuntimeException.accumulate(e, "Error parsing at " + renderLocator(locator)); } } }
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/ff2e2ceb7507fb479b347ad1125c24936c492bcd/SAXalizer.java/buggy/rsf-core/ponderutilcore/src/uk/org/ponder/saxalizer/SAXalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13591, 12, 780, 25586, 16, 3601, 682, 1604, 1098, 13, 1377, 1216, 14366, 288, 565, 775, 288, 1377, 368, 392, 930, 711, 5746, 16, 471, 732, 1297, 787, 358, 4872, 392, 733, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13591, 12, 780, 25586, 16, 3601, 682, 1604, 1098, 13, 1377, 1216, 14366, 288, 565, 775, 288, 1377, 368, 392, 930, 711, 5746, 16, 471, 732, 1297, 787, 358, 4872, 392, 733, 358...
{
{
public Element find2(String name) { LinkNode temp = curr; curr = head; while (curr !=null) { if (curr.getElement().getAttribute("name").equals(name)) { Element found = curr.getElement(); curr = temp; return found; } this.getNext(); } curr = temp; return null; }
660 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/660/406c3b5506279f8f62251239c2d4c9d797e9e91c/LinkedList.java/buggy/ui/java-gui/LinkedList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3010, 1104, 22, 12, 780, 508, 13, 202, 95, 202, 202, 2098, 907, 1906, 273, 4306, 31, 202, 202, 17016, 273, 910, 31, 202, 202, 17523, 261, 17016, 480, 2011, 13, 202, 202, 95,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 1104, 22, 12, 780, 508, 13, 202, 95, 202, 202, 2098, 907, 1906, 273, 4306, 31, 202, 202, 17016, 273, 910, 31, 202, 202, 17523, 261, 17016, 480, 2011, 13, 202, 202, 95,...
processModules( archiver, assembly.getModules(), assembly.isIncludeBaseDirectory() );
processModules( archiver, assembly.getModuleSets(), assembly.isIncludeBaseDirectory() );
protected File createArchive( Archiver archiver, Assembly assembly, String filename ) throws ArchiverException, IOException, MojoExecutionException, MojoFailureException, XmlPullParserException, RepositoryAssemblyException, InvalidRepositoryException { processRepositories( archiver, assembly.getRepositories(), assembly.isIncludeBaseDirectory() ); processDependencySets( archiver, assembly.getDependencySets(), assembly.isIncludeBaseDirectory() ); processModules( archiver, assembly.getModules(), assembly.isIncludeBaseDirectory() ); processFileSets( archiver, assembly.getFileSets(), assembly.isIncludeBaseDirectory() ); processFileList( archiver, assembly.getFiles(), assembly.isIncludeBaseDirectory() ); componentsXmlFilter.addToArchive( archiver ); File destFile = new File( outputDirectory, filename ); if ( archiver instanceof JarArchiver ) { // TODO: I'd really prefer to rewrite MavenArchiver as either a separate manifest creation utility (and to // create an include pom.properties etc into another archiver), or an implementation of an archiver // (the first is preferable). MavenArchiver mavenArchiver = new MavenArchiver(); if ( archive != null ) { try { Manifest manifest = null; File manifestFile = archive.getManifestFile(); if ( manifestFile != null ) { try { manifest = new Manifest( new FileReader( manifestFile ) ); } catch ( FileNotFoundException e ) { throw new MojoFailureException( "Manifest not found: " + e.getMessage() ); } catch ( IOException e ) { throw new MojoExecutionException( "Error processing manifest: " + e.getMessage(), e ); } } else { manifest = mavenArchiver.getManifest( project, archive.getManifest() ); } if ( manifest != null ) { JarArchiver jarArchiver = (JarArchiver) archiver; jarArchiver.addConfiguredManifest( manifest ); } } catch ( ManifestException e ) { throw new MojoExecutionException( "Error creating manifest: " + e.getMessage(), e ); } catch ( DependencyResolutionRequiredException e ) { throw new MojoExecutionException( "Dependencies were not resolved: " + e.getMessage(), e ); } } } archiver.setDestFile( destFile ); archiver.createArchive(); return destFile; }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/49d0fb39446408686654104fcf34901fb830796a/AbstractAssemblyMojo.java/buggy/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/AbstractAssemblyMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 752, 7465, 12, 16959, 1667, 6637, 1667, 16, 2970, 11534, 19931, 16, 514, 1544, 262, 3639, 1216, 16959, 1667, 503, 16, 1860, 16, 18780, 16, 15931, 14389, 16, 5714, 9629, 25746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 752, 7465, 12, 16959, 1667, 6637, 1667, 16, 2970, 11534, 19931, 16, 514, 1544, 262, 3639, 1216, 16959, 1667, 503, 16, 1860, 16, 18780, 16, 15931, 14389, 16, 5714, 9629, 25746, ...
option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain"+extras, "Click here");
option.addChild("a", "href", basePath + key.toString() + "?type=text/plain"+extras, "Click here");
public static void handleDownload(ToadletContext context, Bucket data, BucketFactory bucketFactory, String mimeType, String requestedMimeType, String forceString, boolean forceDownload, String basePath, FreenetURI key, String extras, String referrer) throws ToadletContextClosedException, IOException { if(requestedMimeType != null) { if(mimeType == null || !requestedMimeType.equals(mimeType)) { if(extras == null) extras = ""; extras = extras + "&type=" + requestedMimeType; } mimeType = requestedMimeType; } long now = System.currentTimeMillis(); boolean force = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } try { if((!force) && (!forceDownload)) { FilterOutput fo = ContentFilter.filter(data, bucketFactory, mimeType, new URI(basePath + URLEncoder.encode(key.toString(false))), null); data = fo.data; mimeType = fo.type; if(horribleEvilHack(data) && !(mimeType.startsWith("application/rss+xml"))) { HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content (RSS)"); HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-alert"); infobox.addChild("div", "class", "infobox-header", "RSS feed may be dangerous"); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "Freenet has detected that the file you are trying to fetch might be RSS. "+ "RSS cannot be properly filtered by Freenet, and may contain web-bugs (inline images etc which may "+ "expose your IP address to a malicious site author and therefore break your anonymity). "+ "Firefox 2.0 and Internet Explorer 7.0 will open the file as RSS even though its content type is \""+HTMLEncoder.encode(mimeType)+"\"."); infoboxContent.addChild("p", "Your options are:"); HTMLNode optionList = infoboxContent.addChild("ul"); HTMLNode option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain&force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("%", " to open the file as plain text (this <b>may be dangerous</b> if you are running IE7 or FF2)."); // FIXME: is this safe? See bug #131 option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload"+extras, "Click here"); option.addChild("%", " to try to force your browser to download the file to disk (<b>this may also be dangerous if you run Firefox 2.0.0 (2.0.1 should fix this)</b>)."); if(!mimeType.startsWith("text/plain")) { option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("#", " to open the file as " + mimeType); option.addChild("%", " (<b>this may also be dangerous</b>)."); } option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=application/xml+rss&force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("%", " to open the file as RSS (<b>this is dangerous if the site author is malicious</b>)."); if(referrer != null) { option = optionList.addChild("li"); option.addChild("a", "href", referrer, "Click here"); option.addChild("#", " to go back to the referring page."); } option = optionList.addChild("li"); option.addChild("a", "href", "/", "Click here"); option.addChild("#", " to go to the FProxy home page."); byte[] pageBytes = pageNode.generate().getBytes(); context.sendReplyHeaders(200, "OK", new MultiValueTable(), "text/html; charset=utf-8", pageBytes.length); context.writeData(pageBytes); return; } } if (forceDownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment; filename=\"" + key.getPreferredFilename() + '"'); context.sendReplyHeaders(200, "OK", headers, "application/x-msdownload", data.size()); context.writeData(data); } else { // Send the data, intact context.sendReplyHeaders(200, "OK", new MultiValueTable(), mimeType, data.size()); context.writeData(data); } } catch (URISyntaxException use1) { /* shouldn't happen */ use1.printStackTrace(); Logger.error(FProxyToadlet.class, "could not create URI", use1); } catch (UnsafeContentTypeException e) { HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content"); HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-alert"); infobox.addChild("div", "class", "infobox-header", e.getRawTitle()); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild(e.getHTMLExplanation()); infoboxContent.addChild("p", "Your options are:"); HTMLNode optionList = infoboxContent.addChild("ul"); HTMLNode option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain"+extras, "Click here"); option.addChild("#", " to open the file as plain text (this should not be dangerous but it may be garbled)."); // FIXME: is this safe? See bug #131 option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload"+extras, "Click here"); option.addChild("#", " to force your browser to download the file to disk."); option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("#", " to open the file as " + mimeType + '.'); if(referrer != null) { option = optionList.addChild("li"); option.addChild("a", "href", referrer, "Click here"); option.addChild("#", " to go back to the referring page."); } option = optionList.addChild("li"); option.addChild("a", "href", "/", "Click here"); option.addChild("#", " to go to the FProxy home page."); byte[] pageBytes = pageNode.generate().getBytes(); context.sendReplyHeaders(200, "OK", new MultiValueTable(), "text/html; charset=utf-8", pageBytes.length); context.writeData(pageBytes); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/1c876261ab73159d57a26624667ec7bf7acd15b8/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
public void goBack() throws Exception { root.history.goPrevious(); view.setDocument(root.history.getCurrentDocument(), url.toString());
public void goBack() { String uri = manager.getBack(); view.setDocument(uri);
public void goBack() throws Exception { root.history.goPrevious(); view.setDocument(root.history.getCurrentDocument(), url.toString()); updateButtons(); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserPanel.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1960, 2711, 1435, 5411, 1216, 1185, 288, 3639, 1365, 18, 8189, 18, 3240, 8351, 5621, 3639, 1476, 18, 542, 2519, 12, 3085, 18, 8189, 18, 588, 3935, 2519, 9334, 880, 18, 10492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1960, 2711, 1435, 5411, 1216, 1185, 288, 3639, 1365, 18, 8189, 18, 3240, 8351, 5621, 3639, 1476, 18, 542, 2519, 12, 3085, 18, 8189, 18, 588, 3935, 2519, 9334, 880, 18, 10492, ...
history.save(memento);
if (history != null) history.save(memento);
protected void storeDialog(IDialogSettings settings) { settings.put(SHOW_STATUS_LINE, toggleStatusLineAction.isChecked()); XMLMemento memento = XMLMemento.createWriteRoot(HISTORY_SETTINGS); history.save(memento); StringWriter writer = new StringWriter(); try { memento.save(writer); settings.put(HISTORY_SETTINGS, writer.getBuffer().toString()); } catch (IOException e) { // Simply don't store the settings WorkbenchPlugin.log(e); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1663bf19893c50fb6c66f6e2fee4bc87c54134c3/FilteredItemsSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1707, 6353, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 16677, 67, 8608, 67, 5997, 16, 10486, 1482, 1670, 1803, 18, 291, 11454, 10663, 202, 202, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 6353, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 16677, 67, 8608, 67, 5997, 16, 10486, 1482, 1670, 1803, 18, 291, 11454, 10663, 202, 202, 420...
setBinaryStream(((Blob) value).getBinaryStream());
if (value instanceof FBBlob) setBlob((FBBlob)value); else setBinaryStream(((Blob) value).getBinaryStream(), (int)((Blob)value).length());
void setObject(Object value) throws SQLException { /* throw (SQLException)createException( OBJECT_CONVERSION_ERROR).fillInStackTrace(); */ if (value == null) { setNull(true); return; } if (value instanceof InputStream) { setBinaryStream((InputStream) value); } else if (value instanceof BigDecimal) { setBigDecimal((BigDecimal) value); } else if (value instanceof Blob) { setBinaryStream(((Blob) value).getBinaryStream()); } else if (value instanceof Boolean) { setBoolean(((Boolean) value).booleanValue()); } else if (value instanceof Byte) { setByte(((Byte) value).byteValue()); } else if (value instanceof byte[]) { setBytes((byte[]) value); } else if (value instanceof Date) { setDate((Date) value); } else if (value instanceof Double) { setDouble(((Double) value).doubleValue()); } else if (value instanceof Float) { setFloat(((Float) value).floatValue()); } else if (value instanceof Integer) { setInteger(((Integer) value).intValue()); } else if (value instanceof Long) { setLong(((Long) value).longValue()); } else if (value instanceof Short) { setShort(((Short) value).shortValue()); } else if (value instanceof String) { setString((String) value); } else if (value instanceof Time) { setTime((Time) value); } else if (value instanceof Timestamp) { setTimestamp((Timestamp) value); } else { throw (SQLException) createException( OBJECT_CONVERSION_ERROR).fillInStackTrace(); } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/0e421973c2ccc32dad59dc9dfb8faebabd131d31/FBField.java/buggy/src/org/firebirdsql/jdbc/FBField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 20530, 12, 921, 460, 13, 1216, 6483, 288, 3639, 1748, 3639, 604, 261, 23116, 13, 2640, 503, 12, 5411, 12166, 67, 2248, 5757, 67, 3589, 2934, 5935, 382, 6332, 5621, 3639, 1195, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20530, 12, 921, 460, 13, 1216, 6483, 288, 3639, 1748, 3639, 604, 261, 23116, 13, 2640, 503, 12, 5411, 12166, 67, 2248, 5757, 67, 3589, 2934, 5935, 382, 6332, 5621, 3639, 1195, 3639, ...
boolean isDocument = false;
boolean isDocument = false;
public boolean isDocument(Publication publication, String url) throws DocumentBuildException { boolean isDocument = false; String publicationURI = url.substring(("/" + publication.getId()).length()); if (publicationURI.startsWith("/")) { publicationURI = publicationURI.substring(1); int slashIndex = publicationURI.indexOf("/"); if (slashIndex > -1) { String documentUri = publicationURI.substring(slashIndex); if (documentUri.startsWith("/")) { isDocument = true; } } } return isDocument; }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/ce03aa06b18685f3d94e53f500bcc2daa50b1059/DefaultDocumentBuilder.java/buggy/src/java/org/apache/lenya/cms/publication/DefaultDocumentBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 2519, 12, 4782, 367, 20574, 16, 514, 880, 13, 1216, 4319, 3116, 503, 288, 3639, 1250, 353, 2519, 273, 629, 31, 3639, 514, 20574, 3098, 273, 880, 18, 28023, 12, 2932, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 2519, 12, 4782, 367, 20574, 16, 514, 880, 13, 1216, 4319, 3116, 503, 288, 3639, 1250, 353, 2519, 273, 629, 31, 3639, 514, 20574, 3098, 273, 880, 18, 28023, 12, 2932, 48...
public org.quickfix.field.ContractSettlMonth getContractSettlMonth() throws FieldNotFound { org.quickfix.field.ContractSettlMonth value = new org.quickfix.field.ContractSettlMonth();
public quickfix.field.ContractSettlMonth getContractSettlMonth() throws FieldNotFound { quickfix.field.ContractSettlMonth value = new quickfix.field.ContractSettlMonth();
public org.quickfix.field.ContractSettlMonth getContractSettlMonth() throws FieldNotFound { org.quickfix.field.ContractSettlMonth value = new org.quickfix.field.ContractSettlMonth(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, 336, 8924, 694, 6172, 5445, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, 336, 8924, 694, 6172, 5445, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 694, 6172, 5445, ...
if (document != null) { JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); IDocumentPartitioner partitioner= tools.createDocumentPartitioner(); document.setDocumentPartitioner(partitioner); partitioner.connect(document); }
initializeDocument(document);
protected IDocument createDocument(Object element) throws CoreException { IDocument document= super.createDocument(element); if (document != null) { JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools(); IDocumentPartitioner partitioner= tools.createDocumentPartitioner(); document.setDocumentPartitioner(partitioner); partitioner.connect(document); } return document; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4ef95e667e1de12964fc8631fca3272081c17097/CompilationUnitDocumentProvider.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1599, 504, 650, 27569, 12, 921, 930, 13, 1216, 30015, 288, 202, 202, 734, 504, 650, 1668, 33, 2240, 18, 2640, 2519, 12, 2956, 1769, 202, 202, 430, 261, 5457, 480, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1599, 504, 650, 27569, 12, 921, 930, 13, 1216, 30015, 288, 202, 202, 734, 504, 650, 1668, 33, 2240, 18, 2640, 2519, 12, 2956, 1769, 202, 202, 430, 261, 5457, 480, 446, 13, ...
refreshBottomArea( ); DataDefinitionTextManager.getInstance( ).refreshAll( );
public void run( ) { Query query = ( (Query) ( (SeriesDefinition) ChartUIUtil.getBaseSeriesDefinitions( getChartModel( ) ) .get( 0 ) ).getDesignTimeSeries( ) .getDataDefinition( ) .get( 0 ) ); manageColorAndQuery( query ); refreshBottomArea( ); // Refresh all data definition text DataDefinitionTextManager.getInstance( ).refreshAll( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ee7f46f4c99fefba65a0acb1d1f4be2f89a57d3c/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 12, 262, 202, 202, 95, 1082, 202, 1138, 843, 273, 261, 261, 1138, 13, 261, 261, 6485, 1852, 13, 14804, 5370, 1304, 18, 588, 2171, 6485, 7130, 12, 336, 7984, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 12, 262, 202, 202, 95, 1082, 202, 1138, 843, 273, 261, 261, 1138, 13, 261, 261, 6485, 1852, 13, 14804, 5370, 1304, 18, 588, 2171, 6485, 7130, 12, 336, 7984, 1488, ...
} else if (i == 2) {
} else if (i == 2) {
public void initializeFields() { PhoneType[] phoneTypes = null; try { phoneTypes = (PhoneType[]) com.idega.core.contact.data.PhoneTypeBMPBean.getStaticInstance(PhoneType.class).findAll(); } catch (SQLException ex) { ex.printStackTrace(); } if (phoneTypes != null) { if (phoneTypes.length > 0) { IWContext iwc = IWContext.getInstance(); IWResourceBundle iwrb = getResourceBundle(iwc); for (int i = 0; i < phoneTypes.length; i++) { String n = phoneTypes[i].getName(); if (n != null) { String l = iwrb.getLocalizedString("grp_phone_" + n,n); phoneTypes[i].setName(l); } } } } homePhoneField = new TextInput(homePhoneFieldName); homePhoneField.setLength(24); workPhoneField = new TextInput(workPhoneFieldName); workPhoneField.setLength(24); mobilePhoneField = new TextInput(mobilePhoneFieldName); mobilePhoneField.setLength(24); faxPhoneField = new TextInput(faxPhoneFieldName); faxPhoneField.setLength(24); homepageField = new TextInput(homepageFieldName); homepageField.setLength(24); homePhoneMenu = new DropdownMenu(phoneTypes, homePhoneMenuName); workPhoneMenu = new DropdownMenu(phoneTypes, workPhoneMenuName); mobilePhoneMenu = new DropdownMenu(phoneTypes, mobilePhoneMenuName); faxPhoneMenu = new DropdownMenu(phoneTypes, faxPhoneMenuName); for (int i = 0; i < phoneTypes.length; i++) { if (i == 0) { homePhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } else if (i == 1) { workPhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } else if (i == 2) { mobilePhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } else if (i == 3) { faxPhoneMenu.setSelectedElement(Integer.toString(phoneTypes[i].getID())); } } emailField = new TextInput(emailFieldName); emailField.setLength(24); }
57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/3d3a9f8444e1b2e2c1c4c7d5e71a685e7f0aa419/GroupOfficeContactTab.java/buggy/src/java/is/idega/idegaweb/member/presentation/GroupOfficeContactTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 2314, 1435, 288, 202, 202, 9451, 559, 8526, 7353, 2016, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 10540, 2016, 273, 261, 9451, 559, 63, 5717, 532, 18, 831, 15833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 2314, 1435, 288, 202, 202, 9451, 559, 8526, 7353, 2016, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 10540, 2016, 273, 261, 9451, 559, 63, 5717, 532, 18, 831, 15833...
public void showError(String pErrorMessage, String pTitle) { final String errorMessage = pErrorMessage; final String title = pTitle; Runnable runMe = new Runnable() { public void run() { JOptionPane.showMessageDialog(PreviewContentPanel.this, errorMessage, title, JOptionPane.ERROR_MESSAGE); } }; if (! SwingUtilities.isEventDispatchThread()) { try { SwingUtilities.invokeAndWait(runMe); } catch (Exception e) { } } else { runMe.run(); } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/PreviewContentPanel.java/buggy/src/net/suberic/pooka/gui/PreviewContentPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2405, 668, 12, 780, 293, 14935, 16, 514, 293, 4247, 13, 288, 565, 727, 514, 9324, 273, 293, 14935, 31, 565, 727, 514, 2077, 273, 293, 4247, 31, 3639, 10254, 1086, 4667, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 668, 12, 780, 293, 14935, 16, 514, 293, 4247, 13, 288, 565, 727, 514, 9324, 273, 293, 14935, 31, 565, 727, 514, 2077, 273, 293, 4247, 31, 3639, 10254, 1086, 4667, 273, ...
} else if (absUpVector.y < absUpVector.z) { absUpVector.y = 1.0f; absUpVector.x = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; }
} else if (absUpVector.y < absUpVector.z) { absUpVector.y = 1.0f; absUpVector.x = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; }
public void updateRotationMatrix() { if (oldEmit.equals(worldEmit)) return; float upDotEmit = upVector.dot(worldEmit); if (((double) FastMath.abs(upDotEmit)) > 1.0d - FastMath.DBL_EPSILON) { absUpVector.x = upVector.x <= 0.0f ? -upVector.x : upVector.x; absUpVector.y = upVector.y <= 0.0f ? -upVector.y : upVector.y; absUpVector.z = upVector.z <= 0.0f ? -upVector.z : upVector.z; if (absUpVector.x < absUpVector.y) { if (absUpVector.x < absUpVector.z) { absUpVector.x = 1.0f; absUpVector.y = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; } } else if (absUpVector.y < absUpVector.z) { absUpVector.y = 1.0f; absUpVector.x = absUpVector.z = 0.0f; } else { absUpVector.z = 1.0f; absUpVector.x = absUpVector.y = 0.0f; } absUpVector.subtract(upVector, abUpMinUp); absUpVector.subtract(worldEmit, upXemit); float f4 = 2.0f / abUpMinUp.dot(abUpMinUp); float f6 = 2.0f / upXemit.dot(upXemit); float f8 = f4 * f6 * abUpMinUp.dot(upXemit); float af1[] = { abUpMinUp.x, abUpMinUp.y, abUpMinUp.z }; float af2[] = { upXemit.x, upXemit.y, upXemit.z }; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { matData[i][j] = (-f4 * af1[i] * af1[j] - f6 * af2[i] * af2[j]) + f8 * af2[i] * af1[j]; } matData[i][i]++; } } else { upVector.cross(worldEmit, upXemit); float f2 = 1.0f / (1.0f + upDotEmit); float f5 = f2 * upXemit.x; float f7 = f2 * upXemit.z; float f9 = f5 * upXemit.y; float f10 = f5 * upXemit.z; float f11 = f7 * upXemit.y; matData[0][0] = upDotEmit + f5 * upXemit.x; matData[0][1] = f9 - upXemit.z; matData[0][2] = f10 + upXemit.y; matData[1][0] = f9 + upXemit.z; matData[1][1] = upDotEmit + f2 * upXemit.y * upXemit.y; matData[1][2] = f11 - upXemit.x; matData[2][0] = f10 - upXemit.y; matData[2][1] = f11 + upXemit.x; matData[2][2] = upDotEmit + f7 * upXemit.z; } rotMatrix.set(matData); oldEmit.set(worldEmit); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/1ab8bb9043a0f2de6664e88a56dd1c779ede45fc/ParticleManager.java/buggy/src/com/jmex/effects/ParticleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 14032, 4635, 1435, 288, 3639, 309, 261, 1673, 17982, 18, 14963, 12, 18179, 17982, 3719, 5411, 327, 31, 3639, 1431, 731, 10412, 17982, 273, 731, 5018, 18, 9811, 12, 18179, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 14032, 4635, 1435, 288, 3639, 309, 261, 1673, 17982, 18, 14963, 12, 18179, 17982, 3719, 5411, 327, 31, 3639, 1431, 731, 10412, 17982, 273, 731, 5018, 18, 9811, 12, 18179, ...
ITypeInfo[] elementsFound= findClassElementsInProject(); if(foundInList(getNewClassName(), getContainerPath(linkedResourceGroupForHeader), elementsFound)){
ITypeInfo[] elementsFound = findClassElementsInProject(); QualifiedTypeName typeName = new QualifiedTypeName(getNewClassName()); if (foundInList(elementsFound, typeName)) {
protected IStatus classNameChanged() { StatusInfo status= new StatusInfo(); String className= getNewClassName(); // must not be empty if (className.length() == 0) { status.setError(NewWizardMessages.getString("NewClassWizardPage.error.EnterClassName")); //$NON-NLS-1$ return status; } if (className.indexOf("::") != -1) { //$NON-NLS-1$ status.setError(NewWizardMessages.getString("NewClassWizardPage.error.QualifiedName")); //$NON-NLS-1$ return status; } IStatus val= CConventions.validateClassName(className); if (val.getSeverity() == IStatus.ERROR) { status.setError(NewWizardMessages.getFormattedString("NewClassWizardPage.error.InvalidClassName", val.getMessage())); //$NON-NLS-1$ return status; } else if (val.getSeverity() == IStatus.WARNING) { status.setWarning(NewWizardMessages.getFormattedString("NewClassWizardPage.warning.ClassNameDiscouraged", val.getMessage())); //$NON-NLS-1$ // continue checking } // must not exist ITypeInfo[] elementsFound= findClassElementsInProject(); if(foundInList(getNewClassName(), getContainerPath(linkedResourceGroupForHeader), elementsFound)){ status.setWarning(NewWizardMessages.getString("NewClassWizardPage.error.ClassNameExists")); //$NON-NLS-1$ } return status; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4e8200ae9323c0c926edcaa99231065f59f88763/NewClassWizardPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 2658, 5033, 1435, 288, 202, 202, 1482, 966, 1267, 33, 394, 2685, 966, 5621, 202, 202, 780, 2658, 33, 12654, 3834, 5621, 202, 202, 759, 1297, 486, 506, 1008, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 2658, 5033, 1435, 288, 202, 202, 1482, 966, 1267, 33, 394, 2685, 966, 5621, 202, 202, 780, 2658, 33, 12654, 3834, 5621, 202, 202, 759, 1297, 486, 506, 1008, 202, 2...
public org.quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { org.quickfix.field.UnderlyingRedemptionDate value = new org.quickfix.field.UnderlyingRedemptionDate();
public quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { quickfix.field.UnderlyingRedemptionDate value = new quickfix.field.UnderlyingRedemptionDate();
public org.quickfix.field.UnderlyingRedemptionDate getUnderlyingRedemptionDate() throws FieldNotFound { org.quickfix.field.UnderlyingRedemptionDate value = new org.quickfix.field.UnderlyingRedemptionDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 19117, 375, 1626, 10833, 765, 6291, 426, 19117, 375, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 19117, 375, 1626, 10833, 765, 6291, 426, 19117, 375, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18...
public void createControl( Composite parent ) { container = new Composite(parent , SWT.NONE); GridLayout layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 0; container.setLayout( layout ); title = new TabbedPropertyTitle( container, FormWidgetFactory.getInstance( ) ); title.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Composite viewerContainer = new Composite(container , SWT.NONE); layout = new GridLayout(); layout.marginWidth = 10; layout.marginHeight = 3; viewerContainer.setLayout( layout ); viewerContainer.setLayoutData( new GridData( GridData.FILL_BOTH ) ); viewer = new TreeViewer( viewerContainer, SWT.FULL_SELECTION ); tableTree = viewer.getTree( ); tableTree.setLayoutData( new GridData( GridData.FILL_BOTH ) ); tableTree.setHeaderVisible( true ); tableTree.setLinesVisible( true ); // configure the columns addColumns( ); contentProvider = new ReportPropertySheetContentProvider( ); viewer.setContentProvider( contentProvider ); labelProvider = new ReportPropertySheetLabelProvider( ); viewer.setLabelProvider( labelProvider ); viewer.setColumnProperties( new String[]{ COLUMN_TITLE_PROPERTY, COLUMN_TITLE_VALUE } ); AlphabeticallyViewSorter sorter = new AlphabeticallyViewSorter( ); sorter.setAscending( true ); viewer.setSorter( sorter ); hookControl( ); // create a new table tree editor tableTreeEditor = new TreeEditor( tableTree ); // create the editor listener createEditorListener( ); handleGlobalAction( ); // suport the mediator SessionHandleAdapter.getInstance( ).getMediator( ).addColleague( this ); expandToDefaultLevel( ); FormWidgetFactory.getInstance( ).paintFormStyle( parent ); FormWidgetFactory.getInstance( ).adapt( parent ); IWorkbenchPage page = getSite( ).getPage( ); handleSelectionChanged( page.getSelection( )); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4a02c746af9cd43e31a2b882cd63c484ba236fc1/ReportPropertySheetPage.java/clean/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/views/property/ReportPropertySheetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 3782, 273, 394, 14728, 12, 2938, 269, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 3782, 273, 394, 14728, 12, 2938, 269, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621...
private void handleMousePressed(Point p)
private void handleMousePressed(Point p, int clickCount)
private void handleMousePressed(Point p) { Iterator i = listROI.iterator(); ROIShape roi; Shape s; while (i.hasNext()) { roi = (ROIShape) (i.next()); s = roi.getShape(); if (s.contains(p)) { currentROI = roi; currentShape = s; Rectangle r = s.getBounds(); xControl = r.x; yControl = r.y; view.setIndexSelected(roi.getIndex()); } } }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvasMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvasMng.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 9186, 24624, 12, 2148, 293, 16, 509, 4682, 1380, 13, 565, 288, 3639, 4498, 277, 273, 666, 1457, 45, 18, 9838, 5621, 3639, 6525, 45, 8500, 25017, 31, 3639, 12383, 272, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 9186, 24624, 12, 2148, 293, 16, 509, 4682, 1380, 13, 565, 288, 3639, 4498, 277, 273, 666, 1457, 45, 18, 9838, 5621, 3639, 6525, 45, 8500, 25017, 31, 3639, 12383, 272, 3...
public void test2() throws Exception { List<FruitShell> fsList = doFirstPart("fruit2.xml"); assertNotNull(fsList); assertEquals(2, fsList.size()); FruitShell fs0 = fsList.get(0); assertNotNull(fs0); assertEquals("fs0", fs0.getName()); Fruit fruit0 = fs0.fruitFactory.buildFruit(); assertTrue(fruit0 instanceof Fruit); assertEquals("blue", fruit0.getName()); FruitShell fs1 = fsList.get(1); assertNotNull(fs1); assertEquals("fs1", fs1.getName()); Fruit fruit1 = fs1.fruitFactory.buildFruit(); assertTrue(fruit1 instanceof WeightytFruit); assertEquals("orange", fruit1.getName()); assertEquals(1.2, ((WeightytFruit) fruit1).getWeight()); }
47463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47463/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/buggy/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 22, 1435, 1216, 1185, 288, 565, 987, 32, 7167, 14945, 13220, 34, 2662, 682, 273, 741, 3759, 1988, 2932, 4840, 14945, 22, 18, 2902, 8863, 565, 25395, 12, 2556, 682, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 22, 1435, 1216, 1185, 288, 565, 987, 32, 7167, 14945, 13220, 34, 2662, 682, 273, 741, 3759, 1988, 2932, 4840, 14945, 22, 18, 2902, 8863, 565, 25395, 12, 2556, 682, 1769, ...
void stopPropagation(boolean state) { this.stopPropagation = state;
public void stopPropagation() { this.stopPropagation = true;
void stopPropagation(boolean state) { this.stopPropagation = state; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/627e6cd1c12277b018c3ff91e86c873731a52b59/AbstractEvent.java/buggy/sources/org/apache/batik/dom/events/AbstractEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 20459, 12, 6494, 919, 13, 288, 202, 2211, 18, 5681, 14225, 273, 919, 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...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 20459, 12, 6494, 919, 13, 288, 202, 2211, 18, 5681, 14225, 273, 919, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
}
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultProps.containsKey("width") || !defaultProps.containsKey("height")) // set the initialize size this.setSize(screen.getPreferredSize()); else { this.setSize(Integer.parseInt((String)defaultProps.get("width")), Integer.parseInt((String)defaultProps.get("height")) ); } addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { /** @todo check for popup trigger on linux * */// if (e.isPopupTrigger()) { // using SwingUtilities because popuptrigger does not work on linux if (SwingUtilities.isRightMouseButton(e)) { doPopup(e); } } public void mouseReleased(MouseEvent e) {// System.out.println("Mouse Released"); } public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { screen.moveCursor(e); repaint(); getFocusForMe(); } } }); addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent e) { processVTKeyTyped(e); } public void keyPressed(KeyEvent ke) { processVTKeyPressed(ke); } public void keyReleased(KeyEvent e) { processVTKeyReleased(e); } }); keyMap = new KeyMapper(); keyMap.init(); /** * this is taken out right now look at the method for description */// initKeyBindings(); macros = new Macronizer(); macros.init(); keyPad.addActionListener(this); if (getStringProperty("keypad").equals("Yes")) keyPad.setVisible(true); else keyPad.setVisible(false); // Warning do not change the the order of the adding of keypad and // the screen. This will cause resizing problems because it will // resize the screen first and during the resize we need to calculate // the bouding area based on the height of the keyPad. // See resizeMe() and getDrawingBounds() this.add(keyPad,BorderLayout.SOUTH); this.add(s,BorderLayout.CENTER); setRubberBand(new TNRubberBand(this)); this.requestFocus(); jumpEvent = new SessionJumpEvent(this); }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/650986e6eb0fece971661bdcea0d1a0d40676ae7/Gui5250.java/clean/src/org/tn5250j/Gui5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20515, 2570, 1435, 1216, 1185, 225, 288, 1377, 333, 18, 542, 3744, 12, 8815, 3744, 21, 1769, 759, 1377, 333, 18, 542, 3817, 14886, 12, 5743, 1769, 1377, 444, 5265, 17947, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20515, 2570, 1435, 1216, 1185, 225, 288, 1377, 333, 18, 542, 3744, 12, 8815, 3744, 21, 1769, 759, 1377, 333, 18, 542, 3817, 14886, 12, 5743, 1769, 1377, 444, 5265, 17947, 12, ...
return isResolvedStatus(getAttribute(ATTR_STATUS).getValue());
Attribute status = getAttribute(ATTR_STATUS); return status != null && isResolvedStatus(getAttribute(ATTR_STATUS).getValue());
public boolean isResolved() { return isResolvedStatus(getAttribute(ATTR_STATUS).getValue()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/062e1efc08ff9110c1a8eb70d27bdf23193b179f/BugReport.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 12793, 1435, 288, 202, 202, 2463, 353, 12793, 1482, 12, 588, 1499, 12, 12043, 67, 8608, 2934, 24805, 10663, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 12793, 1435, 288, 202, 202, 2463, 353, 12793, 1482, 12, 588, 1499, 12, 12043, 67, 8608, 2934, 24805, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100...
PropertySheetFactory.instance().makeSheet(elt, start_color);
PropertySheetFactory.instance().makeSheet(getContext(), elt, start_color);
public void valueChanged(TreeSelectionEvent evt) { // Get the selected node. DefaultMutableTreeNode node = (DefaultMutableTreeNode)mElementTree.getLastSelectedPathComponent(); if(null == node) { emptyPropertySheet(); return; } // Get the value of the UserObject attached to the node. Object value = node.getUserObject(); if (value == null || !(value instanceof ConfigElement)) { System.out.println("Selecting a node that is not a ConfigElement"); emptyPropertySheet(); // Empty the help information getHelpPane().setText(""); return; } Color start_color = UIManager.getColor("Tree.selectionBackground"); if ( null == start_color ) { start_color = new Color(160, 160, 180); System.out.println("Could not get the color " + "'Tree.selectionBackground' from the " + "UIManager."); } // Create a new PropertySheet for the given ConfigElement. ConfigElement elt = (ConfigElement)value; if (null != mElementPropSheet) { mElementPropSheet.finalize(); } ConfigDefinition def = elt.getDefinition(); mElementTypeLabel.setText(def.getName() + " <" + def.getToken() + ">"); mElementPropSheet = PropertySheetFactory.instance().makeSheet(elt, start_color); mElementPropSheetScrollPane.getViewport().removeAll(); mElementPropSheetScrollPane.getViewport().add(mElementPropSheet, null); // Display the help information about the selected configuration element. getHelpPane().setText(elt.getDefinition().getHelp()); }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/1927f1b650bf98254028c2adf8417da657bdfa00/ConfigContextEditor.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/ConfigContextEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 460, 5033, 12, 2471, 6233, 1133, 6324, 13, 5411, 288, 9079, 368, 968, 326, 3170, 756, 18, 9079, 2989, 19536, 12513, 756, 273, 5375, 261, 1868, 19536, 12513, 13, 81, 1046, 2471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 460, 5033, 12, 2471, 6233, 1133, 6324, 13, 5411, 288, 9079, 368, 968, 326, 3170, 756, 18, 9079, 2989, 19536, 12513, 756, 273, 5375, 261, 1868, 19536, 12513, 13, 81, 1046, 2471...
init(rawSql_,
init(rawSql_,
public Procedure( String rawSql_, String sqlProcedureName_, ParameterListItem[] parameterList_, Tds tds_) throws SQLException { init(rawSql_, sqlProcedureName_, parameterList_, tds_); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/94e0726b04f349bc8a5ee29394cce902177ab087/Procedure.java/clean/src/main/net/sourceforge/jtds/jdbc/Procedure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 26639, 12, 1377, 514, 2868, 1831, 5101, 67, 16, 1377, 514, 2868, 1847, 17213, 461, 67, 16, 1377, 5498, 13575, 8526, 1569, 682, 67, 16, 1377, 399, 2377, 1171, 268, 2377, 67, 13, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 26639, 12, 1377, 514, 2868, 1831, 5101, 67, 16, 1377, 514, 2868, 1847, 17213, 461, 67, 16, 1377, 5498, 13575, 8526, 1569, 682, 67, 16, 1377, 399, 2377, 1171, 268, 2377, 67, 13, 13...
assertEquals( v.getName(), "x");
assertEquals( v.getName(), "x");
public void testMultipleDeclaratorsVariable() throws Exception { Iterator declarations = parse( "class A { }; A x, y, z;").getDeclarations(); IASTClassSpecifier classA = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)declarations.next()).getTypeSpecifier(); IASTVariable v = (IASTVariable)declarations.next(); assertEquals( v.getName(), "x"); assertEquals( ((IASTSimpleTypeSpecifier)v.getAbstractDeclaration().getTypeSpecifier()).getTypeSpecifier(), classA ); assertEquals( callback.getReferences().size(), 3 ); Iterator i = callback.getReferences().iterator(); while( i.hasNext() ) assertEquals( ((IASTReference)i.next()).getReferencedElement(), classA ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8438, 3456, 297, 3062, 3092, 1435, 1216, 1185, 202, 95, 202, 202, 3198, 12312, 273, 1109, 12, 315, 1106, 432, 288, 289, 31, 432, 619, 16, 677, 16, 998, 4868, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8438, 3456, 297, 3062, 3092, 1435, 1216, 1185, 202, 95, 202, 202, 3198, 12312, 273, 1109, 12, 315, 1106, 432, 288, 289, 31, 432, 619, 16, 677, 16, 998, 4868, 2934, ...
public static Long createLong(String val) { return Long.valueOf(val);
public static Long createLong(String str) { if (str == null) { return null; } return Long.valueOf(str);
public static Long createLong(String val) { return Long.valueOf(val); }
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/af6aba957f4dc4d19d5f295172b4ddc941ca1681/NumberUtils.java/buggy/src/java/org/apache/commons/lang/math/NumberUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3407, 752, 3708, 12, 780, 1244, 13, 288, 3639, 327, 3407, 18, 1132, 951, 12, 1125, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3407, 752, 3708, 12, 780, 1244, 13, 288, 3639, 327, 3407, 18, 1132, 951, 12, 1125, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ( "local-repo".equals( repo.getKey() ) )
for ( Iterator repos = config.getRepositories().iterator(); repos.hasNext(); )
public void testLoadValidMavenProxyConfiguration() throws ValidationException, IOException { File confFile = new File( "src/test/conf/maven-proxy-complete.conf" ); config.loadMavenProxyConfiguration( confFile ); assertTrue( config.getRepositoryCachePath().endsWith( "target" ) ); assertEquals( "Count repositories", 4, config.getRepositories().size() ); for ( Iterator repos = config.getRepositories().iterator(); repos.hasNext(); ) { ProxyRepository repo = (ProxyRepository) repos.next(); if ( "local-repo".equals( repo.getKey() ) ) { assertEquals( "file:///./src/test/remote-repo1", repo.getUrl() ); } else if ( "www-ibiblio-org".equals( repo.getKey() ) ) { assertEquals( "http://www.ibiblio.org/maven2", repo.getUrl() ); } else if ( "dist-codehaus-org".equals( repo.getKey() ) ) { assertEquals( "http://dist.codehaus.org", repo.getUrl() ); } else if ( "private-example-com".equals( repo.getKey() ) ) { assertEquals( "http://private.example.com/internal", repo.getUrl() ); } } }
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/20dc1f7654b459eb30e524fbfdc5cf2b0e1a1a29/ProxyConfigurationTest.java/buggy/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/ProxyConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2563, 1556, 49, 7638, 3886, 1750, 1435, 3639, 1216, 15614, 16, 1860, 565, 288, 3639, 1387, 2195, 812, 273, 394, 1387, 12, 315, 4816, 19, 3813, 19, 3923, 19, 81, 7638, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2563, 1556, 49, 7638, 3886, 1750, 1435, 3639, 1216, 15614, 16, 1860, 565, 288, 3639, 1387, 2195, 812, 273, 394, 1387, 12, 315, 4816, 19, 3813, 19, 3923, 19, 81, 7638, 1...
this.maxTempLength = maxTempLength;
this.maxTempLength = ctx.maxTempLength;
public SplitFetcher(Metadata metadata, long maxTempLength, ArchiveContext archiveContext, FetcherContext ctx) throws MetadataParseException { actx = archiveContext; fctx = ctx; overrideLength = metadata.dataLength; this.maxTempLength = maxTempLength; splitfileType = metadata.getSplitfileType(); splitfileDataBlocks = metadata.getSplitfileDataKeys(); splitfileCheckBlocks = metadata.getSplitfileCheckKeys(); splitUseLengths = metadata.splitUseLengths; if(splitfileType == Metadata.SPLITFILE_NONREDUNDANT) { // Don't need to do much - just fetch everything and piece it together. blocksPerSegment = -1; checkBlocksPerSegment = -1; segmentCount = 1; } else if(splitfileType == Metadata.SPLITFILE_ONION_STANDARD) { blocksPerSegment = 128; checkBlocksPerSegment = 64; segmentCount = (splitfileDataBlocks.length / blocksPerSegment) + (splitfileDataBlocks.length % blocksPerSegment == 0 ? 0 : 1); // Onion, 128/192. // Will be segmented. } else throw new MetadataParseException("Unknown splitfile format: "+splitfileType); segments = new Segment[segmentCount]; // initially null on all entries if(segmentCount == 1) { segments[0] = new Segment(splitfileType, splitfileDataBlocks, splitfileCheckBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths); } else { int dataBlocksPtr = 0; int checkBlocksPtr = 0; for(int i=0;i<segments.length;i++) { // Create a segment. Give it its keys. int copyDataBlocks = Math.min(splitfileDataBlocks.length - dataBlocksPtr, blocksPerSegment); int copyCheckBlocks = Math.min(splitfileCheckBlocks.length - checkBlocksPtr, checkBlocksPerSegment); FreenetURI[] dataBlocks = new FreenetURI[copyDataBlocks]; FreenetURI[] checkBlocks = new FreenetURI[copyCheckBlocks]; if(copyDataBlocks > 0) System.arraycopy(splitfileDataBlocks, dataBlocksPtr, dataBlocks, 0, copyDataBlocks); if(copyCheckBlocks > 0) System.arraycopy(splitfileCheckBlocks, checkBlocksPtr, checkBlocks, 0, copyCheckBlocks); dataBlocksPtr += copyDataBlocks; checkBlocksPtr += copyCheckBlocks; segments[i] = new Segment(splitfileType, dataBlocks, checkBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths); } } unstartedSegments = segments; unstartedSegmentsCount = segments.length; }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/6409afdcb2a1c16496544e23537bea624c517930/SplitFetcher.java/clean/src/freenet/client/SplitFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5385, 16855, 12, 2277, 1982, 16, 1525, 943, 7185, 1782, 16, 13124, 1042, 5052, 1042, 16, 8065, 264, 1042, 1103, 13, 1216, 6912, 13047, 288, 202, 202, 621, 92, 273, 5052, 1042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5385, 16855, 12, 2277, 1982, 16, 1525, 943, 7185, 1782, 16, 13124, 1042, 5052, 1042, 16, 8065, 264, 1042, 1103, 13, 1216, 6912, 13047, 288, 202, 202, 621, 92, 273, 5052, 1042, ...
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) {
public ISourcePosition getPosition(ISourcePosition startPosition, boolean inclusive) {
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startOffset = lastPosition.getEndOffset(); } else { startLine = startPosition.getEndLine(); startOffset = startPosition.getEndOffset(); } return new SourcePosition(filename, startLine, endLine, startOffset, source.getOffset()); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b1293eda8454686e846e2a9837b348e2983bb423/SourcePositionFactory.java/clean/src/org/jruby/lexer/yacc/SourcePositionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1830, 2555, 14441, 12, 45, 1830, 2555, 23549, 16, 1250, 13562, 13, 288, 377, 202, 474, 24636, 31, 377, 202, 474, 18245, 31, 377, 202, 474, 31763, 273, 1084, 18, 588, 1670, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1830, 2555, 14441, 12, 45, 1830, 2555, 23549, 16, 1250, 13562, 13, 288, 377, 202, 474, 24636, 31, 377, 202, 474, 18245, 31, 377, 202, 474, 31763, 273, 1084, 18, 588, 1670, 56...
if ((!needsDataCopy && !emittingPrimitiveArrayCritical) || (needsDataCopy && emittingPrimitiveArrayCritical)) { continue; }
protected void emitBodyVariablePostCallCleanup(PrintWriter writer) { // Release primitive arrays and temporary UTF8 strings if necessary for (int i = 0; i < binding.getNumArguments(); i++) { JavaType javaArgType = binding.getJavaArgumentType(i); if (javaArgType.isJNIEnv() || binding.isArgumentThisPointer(i)) { continue; } if (javaArgType.isArray()) { String convName = pointerConversionArgumentName(i); // Release array if (EMIT_NULL_CHECKS) { writer.print(" if ("); writer.print(binding.getArgumentName(i)); writer.println(" != NULL) {"); } // clean up the case where the array elements are of a type that needed // a data copy operation to convert from the java memory model to the // C memory model (e.g., int[][], String[], etc) // // FIXME: should factor out this whole block of code into a separate // method for clarity and maintenance purposes Class subArrayElementJavaType = javaArgType.getJavaClass().getComponentType(); boolean needsDataCopy = subArrayElementJavaType.isArray() || subArrayElementJavaType == java.lang.String.class; if (needsDataCopy) { Type cArgType = binding.getCArgumentType(i); String cArgTypeName = cArgType.getName(); if (cArgType.toString().indexOf("const") == -1) { // FIXME: handle any cleanup from treatment of non-const args, // assuming they were treated differently in // emitBodyVariablePreCallSetup() (see the similar section in that // method for details). throw new RuntimeException( "Cannot clean up copied data for ptr-to-ptr arg type \"" + cArgType + "\": support for cleaning up non-const ptr-to-ptr types not implemented."); } writer.println(" /* Clean up " + convName + "_copy */"); String arrayLenName = "_arrayLen" + convName; // free each element PointerType cArgPtrType = cArgType.asPointer(); if (cArgPtrType == null) { throw new RuntimeException( "Could not copy data for type \"" + cArgType + "\"; currently only pointer types supported."); } PointerType cArgElementType = cArgPtrType.getTargetType().asPointer(); // process each element in the array writer.println(" for (_copyIndex = 0; _copyIndex < " + arrayLenName +"; ++_copyIndex) {"); // get each array element writer.println(" /* free each element of " +convName +"_copy */"); String subArrayElementJNITypeString = jniType(subArrayElementJavaType); writer.print(" _tmpObj = ("); writer.print(subArrayElementJNITypeString); writer.print(") (*env)->GetObjectArrayElement(env, "); writer.print(binding.getArgumentName(i)); writer.println(", _copyIndex);"); if (subArrayElementJNITypeString == "jstring") { writer.print(" (*env)->ReleaseStringUTFChars(env, "); writer.print("(jstring) _tmpObj"); writer.print(", "); writer.print(convName+"_copy[_copyIndex]"); writer.println(");"); } else { // FIXME: free up stuff here if (true) throw new RuntimeException( "Cannot yet handle type \"" + cArgType.getName() + "\"; need to add support for cleaning up copied ptr-to-ptr-to-primitiveType subarrays"); } writer.println(" }"); // free the main array writer.print(" free("); writer.print(convName+"_copy"); writer.println(");"); writer.println(); } // end of cleaning up copied data writer.print(" (*env)->ReleasePrimitiveArrayCritical(env, "); writer.print(binding.getArgumentName(i)); writer.print(", "); writer.print(convName); writer.println(", JNI_ABORT);"); if (EMIT_NULL_CHECKS) { writer.println(" }"); } } else if (javaArgType.isString()) { if (EMIT_NULL_CHECKS) { writer.print(" if ("); writer.print(binding.getArgumentName(i)); writer.println(" != NULL) {"); } writer.print(" (*env)->ReleaseStringUTFChars(env, "); writer.print(binding.getArgumentName(i)); writer.print(", _UTF8"); writer.print(binding.getArgumentName(i)); writer.println(");"); if (EMIT_NULL_CHECKS) { writer.println(" }"); } } else if (javaArgType.isArrayOfCompoundTypeWrappers()) { // FIXME throw new RuntimeException("Outgoing arrays of StructAccessors not yet implemented"); } } }
47702 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47702/9512c9fa62ece3960472b6ab2cd6ce5244da8501/CMethodBindingEmitter.java/buggy/src/net/java/games/gluegen/CMethodBindingEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 14015, 5, 20600, 751, 2951, 597, 401, 18356, 1787, 9840, 1076, 30286, 13, 747, 261, 20600, 751, 2951, 225, 597, 3626, 1787, 9840, 1076, 30286, 3719, 288, 1324, 31, 289, 225, 309, 14015, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 14015, 5, 20600, 751, 2951, 597, 401, 18356, 1787, 9840, 1076, 30286, 13, 747, 261, 20600, 751, 2951, 225, 597, 3626, 1787, 9840, 1076, 30286, 3719, 288, 1324, 31, 289, 225, 309, 14015, 5...
monitorWrap.beginTask("", finalEditors.size()); Iterator enum = finalEditors.iterator(); while (enum.hasNext()) { IEditorPart part = (IEditorPart) enum.next(); part.doSave(new SubProgressMonitor(monitorWrap, 1)); if (monitorWrap.isCanceled()) break; }
String editorID = ref.getId(); EditorDescriptor desc = null; if (editorID != null) { IEditorRegistry reg = WorkbenchPlugin.getDefault().getEditorRegistry(); desc = (EditorDescriptor) reg.findEditor(editorID); } if (desc == null) { WorkbenchPlugin.log("Unable to restore editor - no editor descriptor for id: " + editorID); result[0] = unableToCreateEditor(ref, null); return; } try { String workbookID = ref.getMemento().getString(IWorkbenchConstants.TAG_WORKBOOK); editorPresentation.setActiveEditorWorkbookFromID(workbookID); openInternalEditor(ref, desc, editorInput, false); ref.getPane().createChildControl(); } catch (PartInitException e) { WorkbenchPlugin.log("Exception creating editor: " + e.getMessage()); result[0] = unableToCreateEditor(ref, e); } }
public void run(IProgressMonitor monitor) {// try { // @issue reference to workspace to run runnable IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor);// ResourcesPlugin.getWorkspace().run(workspaceOp, monitorWrap);//--------- This code was in the IWorkspaceRunnable above monitorWrap.beginTask("", finalEditors.size()); //$NON-NLS-1$ Iterator enum = finalEditors.iterator(); while (enum.hasNext()) { IEditorPart part = (IEditorPart) enum.next(); part.doSave(new SubProgressMonitor(monitorWrap, 1)); if (monitorWrap.isCanceled()) break; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/17aa81cc73d60228cd30d63ff1128126ea3c026a/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 6862, 202, 45, 5491, 7187, 6438, 2964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 6862, 202, 45, 5491, 7187, 6438, 2964, ...
float start = cb.getInputStart(); float end = cb.getInputEnd(); if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart()));
cb.setInputStart(new Float(sf.getInputStart()));
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); StatsFactory sf = new StatsFactory(); int w = 0; List<Channel> channels = pixels.getChannels(); for (Channel channel : channels) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Without it, we have to assume that the order in // which the channel bindings was created matches up with the order // of the channels linked to the pixels set. ChannelBinding cb = cbs.get(w); double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax(); //Test sf.computeLocationStats(pixels, buf, planeDef, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb.setNoiseReduction(Boolean.TRUE); float start = cb.getInputStart(); float end = cb.getInputEnd(); //TODO: find a better way. if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart())); cb.setInputEnd(new Float(sf.getInputEnd())); w++; } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/ceec9c92013d03d7fbe03409fa65e37949152a57/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3671, 2735, 4195, 12, 18079, 8948, 16, 4766, 2398, 987, 32, 2909, 5250, 34, 276, 2038, 16, 4766, 2398, 3008, 8806, 3262, 11017, 3262, 16, 26070, 1892, 1681, 13, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3671, 2735, 4195, 12, 18079, 8948, 16, 4766, 2398, 987, 32, 2909, 5250, 34, 276, 2038, 16, 4766, 2398, 3008, 8806, 3262, 11017, 3262, 16, 26070, 1892, 1681, 13, 565, 288, ...
protected static void appendMethod_getJdoComplex(DeploymentInfo di, StringBuffer source){ newLine(source); newLine(source);tab(source,1); // public Complex getJdoComplex(Object primaryKey){ source.append("public Complex getJdoComplex(Object primaryKey){"); if(di.getPrimaryKeyField()==null){// key is complex // CustomerPK key = (CustomerPK)primaryKey; newLine(source); tab(source,2); source.append(di.getPrimaryKeyClass().getName()); source.append(" key = ("); source.append(di.getPrimaryKeyClass().getName()); source.append(")primaryKey;"); // Object args = new Object[2]; newLine(source); tab(source, 2); // only fields that are shared between the key and bean are considered primary key fields java.lang.reflect.Field [] keyFields = di.getPrimaryKeyClass().getFields(); java.lang.reflect.Field [] beanFields = di.getBeanClass().getFields(); java.util.Vector commonFields = new java.util.Vector(); for(int i = 0; i < keyFields.length; i++){ java.lang.reflect.Field keyField = keyFields[i]; for(int x = 0; x < beanFields.length; x++){ java.lang.reflect.Field beanField = beanFields[x]; if(keyField.getClass()== beanField.getClass() && keyField.getName().equals(beanField.getName())){ commonFields.add(keyField); } } } source.append("Object [] args = new Object["); source.append(commonFields.size()); source.append("];"); // args[1] = new java.util.Integer(key.id); // args[2] = key.date; for(int i = 0; i < commonFields.size(); i++){ newLine(source); tab(source,2); source.append("args["); source.append(i); source.append("] = "); boolean wrappered = applyWrapper(source, (java.lang.reflect.Field)commonFields.elementAt(i)); source.append("key."+((java.lang.reflect.Field)commonFields.elementAt(i)).getName()); if(wrappered)source.append(")"); source.append(';'); } // return new Complex(args.length, args); newLine(source); tab(source, 2); source.append("return new Complex(args.length, args);"); }else{ // make complex for simply key newLine(source); tab(source, 2); source.append("return new Complex(primaryKey);"); } // } newLine(source);tab(source,1); source.append('}'); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/3672264daeda35528fc1545391d5f3b38764b0ff/KeyGeneratorFactory.java/buggy/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/KeyGeneratorFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 714, 1305, 67, 588, 46, 2896, 12795, 12, 6733, 966, 4314, 16, 6674, 1084, 15329, 3639, 8093, 12, 3168, 1769, 3639, 8093, 12, 3168, 1769, 7032, 12, 3168, 16, 21, 1769, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 714, 1305, 67, 588, 46, 2896, 12795, 12, 6733, 966, 4314, 16, 6674, 1084, 15329, 3639, 8093, 12, 3168, 1769, 3639, 8093, 12, 3168, 1769, 7032, 12, 3168, 16, 21, 1769, 77...
public void widgetSelected(SelectionEvent e) { boolean isTcp = fTCPButton.getSelection(); fHostPort.setEnabled(isTcp); fHostText.setEnabled(isTcp); updateLaunchConfigurationDialog(); }
public void widgetSelected( SelectionEvent evt ) { handleGDBButtonSelected(); updateLaunchConfigurationDialog(); }
public void widgetSelected(SelectionEvent e) { boolean isTcp = fTCPButton.getSelection(); fHostPort.setEnabled(isTcp); fHostText.setEnabled(isTcp); updateLaunchConfigurationDialog(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8a0a4cb7100a63323faab9f3204cd0747864dfa6/GDBServerDebuggerPage.java/buggy/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 6494, 353, 27591, 273, 284, 13891, 3616, 18, 588, 6233, 5621, 9506, 202, 74, 16688, 18, 542, 1526, 12, 291, 27591, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 6494, 353, 27591, 273, 284, 13891, 3616, 18, 588, 6233, 5621, 9506, 202, 74, 16688, 18, 542, 1526, 12, 291, 27591, 1...
System.setProperty("org.mule.disable.server.connections", "true");
System.setProperty(MuleProperties.DISABLE_SERVER_CONNECTIONS, "true");
public void setUp() throws Exception { System.setProperty("org.mule.disable.server.connections", "false"); if(MuleManager.isInstanciated()) MuleManager.getInstance().dispose(); MuleXmlConfigurationBuilder builder = new MuleXmlConfigurationBuilder(); builder.configure("test-client-mule-config-remote-http.xml"); System.setProperty("org.mule.disable.server.connections", "true"); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/cee4ebadb530002b617eed215bdd6b399f29760e/MuleClientRemotingHttpTestCase.java/clean/mule-extras/client/src/test/java/org/mule/extras/client/MuleClientRemotingHttpTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 1216, 1185, 565, 288, 3639, 2332, 18, 542, 1396, 2932, 3341, 18, 81, 725, 18, 8394, 18, 3567, 18, 13313, 3113, 315, 5743, 8863, 3639, 309, 12, 49, 725, 1318, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 1216, 1185, 565, 288, 3639, 2332, 18, 542, 1396, 2932, 3341, 18, 81, 725, 18, 8394, 18, 3567, 18, 13313, 3113, 315, 5743, 8863, 3639, 309, 12, 49, 725, 1318, 18,...
out.println (ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + "=" + ast);
out.println (ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + "=" + ast);
private void sendnetscapeReadinessParameters(PlanServiceContext psc, PrintStream out) { Iterator itSet, itDOs; int ii, jj, kk; HashMap sendData = getAssetAV3s (psc); if (sendData == null) { sendData = getRollUpData(psc); if (sendData == null) { out.println (ReadinessAssessorPspUtil.NUMMAINTAINED + "=0"); return; } } Set maintainedItems = sendData.keySet(); out.println (ReadinessAssessorPspUtil.NUMMAINTAINED + "=" + maintainedItems.size()); for (itSet = maintainedItems.iterator(), ii=1; itSet.hasNext(); ii ++ ) {// MaintainedItem maint = (MaintainedItem) itSet.next(); String maint = (String) itSet.next();// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getItemIdentification() + "'>");// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getTypeIdentification() + "'>");// System.out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + " VALUE='" + maint.getNomenclature() + "'>"); out.println (ReadinessAssessorPspUtil.MAITAINEDCLASSNAME + ii + "=" + maint); HashMap itemBuckets = (HashMap) sendData.get(maint); Set directObjects = itemBuckets.keySet(); out.println (ReadinessAssessorPspUtil.NUMDIRECTOBJS + ii + "=" + directObjects.size()); for (itDOs = directObjects.iterator(), jj=1; itDOs.hasNext(); jj ++) {// Asset ast = (Asset) itDOs.next(); String ast = (String) itDOs.next(); out.println (ReadinessAssessorPspUtil.ASSETNAMEPARAM + ii + "_" + jj + "=" + ast); ArrayList arList = (ArrayList) itemBuckets.get(ast); out.println (ReadinessAssessorPspUtil.NUMASPECTITEMS + ii + "_" + jj + "=" + arList.size()); for (kk = 0; kk < arList.size(); kk ++) { AspectValue[] avs = (AspectValue[]) arList.get(kk); // right now we just pass the readiness value and the end time out.println (ReadinessAssessorPspUtil.READINESSPARAM + ii + "_" + jj + "_" + (kk + 1) + "=" + avs[2].getValue()); out.println (ReadinessAssessorPspUtil.ATDATEPARAM + ii + "_" + jj + "_" + (kk + 1) + "=" + toYYYYMMDD (avs[1].longValue()));// out.println ("<PARAM NAME=" + ReadinessAssessorPspUtil.ATDATEPARAM + ii + "_" + jj + "_" + (kk + 1) + " VALUE='" + (avs[1].longValue() / 1000) + "'>" ); } } } // Create the parameter for the number of book titles in the inventory// out.println("<PARAM NAME=columns VALUE='" + overviewList.size() + "'>"); }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/66cbbfcc24b4b0ed473ee80cfd37d73e7e78f870/PSP_ReadinessAssessor.java/clean/glm/src/org/cougaar/domain/mlm/ui/readiness/PSP_ReadinessAssessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1366, 2758, 12476, 1994, 6336, 2402, 12, 5365, 1179, 1042, 293, 1017, 16, 21677, 596, 13, 202, 95, 565, 4498, 518, 694, 16, 518, 3191, 87, 31, 565, 509, 6072, 16, 10684,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 2758, 12476, 1994, 6336, 2402, 12, 5365, 1179, 1042, 293, 1017, 16, 21677, 596, 13, 202, 95, 565, 4498, 518, 694, 16, 518, 3191, 87, 31, 565, 509, 6072, 16, 10684,...
public void run() {
public void run(Event event) {
public void run() { if (activeEditor != null) { activeEditor.performCut(); return; } if (cutAction != null) { cutAction.run(); return; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/46b0e2037bdbaada2694fe129d030344fb248c8d/CellEditorActionHandler.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/part/CellEditorActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 430, 261, 3535, 6946, 480, 446, 13, 288, 9506, 202, 3535, 6946, 18, 16092, 15812, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 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, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 430, 261, 3535, 6946, 480, 446, 13, 288, 9506, 202, 3535, 6946, 18, 16092, 15812, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 2...
return this;
removeToken(destCurs); XmlCursor srcCurs = newValue.newCursor(); if (srcCurs.currentTokenType().isStartdoc()) { srcCurs.toFirstContentToken(); } moveSrcToDest(srcCurs, destCurs, false); if (!destCurs.toPrevSibling()) { destCurs.toPrevToken(); } destCurs.setBookmark(new XScriptAnnotation(destCurs)); destCurs.toEndToken(); destCurs.toNextToken(); srcCurs.dispose();
XML replace(long index, Object xml) { XMLList xlChildToReplace = (XMLList)child(index); if (xlChildToReplace.length() > 0) { // One exists an that index XML childToReplace = (XML)xlChildToReplace.item(0); insertChildAfter(childToReplace, xml); removeChild(index); } return this; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/00faaf6ab861a6de03237a069177c81877d5f73d/XML.java/buggy/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3167, 1453, 12, 5748, 770, 16, 1033, 2025, 13, 565, 288, 3639, 3167, 682, 15643, 1763, 774, 5729, 273, 261, 4201, 682, 13, 3624, 12, 1615, 1769, 3639, 309, 261, 18402, 1763, 774, 5729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3167, 1453, 12, 5748, 770, 16, 1033, 2025, 13, 565, 288, 3639, 3167, 682, 15643, 1763, 774, 5729, 273, 261, 4201, 682, 13, 3624, 12, 1615, 1769, 3639, 309, 261, 18402, 1763, 774, 5729, ...
log.debug("Value for JXPathFilter is not set : true by default");
if (logger.isDebugEnabled()) { logger.debug("Value for JXPathFilter is not set : true by default"); }
public boolean accept(Object obj) { if (obj == null) return false; if (expression == null) { log.warn("Expression for JXPathFilter is not set"); return false; } if (value == null) { log.debug("Value for JXPathFilter is not set : true by default"); value = Boolean.TRUE.toString(); } boolean res = false; try { Object o = null; if(obj instanceof String) { Document doc=DocumentHelper.parseText((String)obj); o =doc.valueOf(expression); } else { JXPathContext context = JXPathContext.newContext(obj); o =context.getValue(expression); } log.debug("JXPathFilter Expression result='" + o + "' - Expected value='" + value + "'"); if(o!=null) res = value.equals(o.toString()); else { res=false; log.warn("JXPathFilter Expression result is null (" + expression + ")"); } } catch (Exception e) { log.warn("JXPathFilter cannot evaluate expression (" + expression + ") :" + e.getMessage(), e); } log.debug("JXPathFilter accept object : " + res); return res; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/17eba43612aad5f5e74f27cd5b4bc714405b28ee/JXPathFilter.java/buggy/mule/src/java/org/mule/routing/filters/xml/JXPathFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2791, 12, 921, 1081, 13, 288, 202, 202, 430, 261, 2603, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 430, 261, 8692, 422, 446, 13, 288, 1082, 202, 1330, 18, 8935,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2791, 12, 921, 1081, 13, 288, 202, 202, 430, 261, 2603, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 430, 261, 8692, 422, 446, 13, 288, 1082, 202, 1330, 18, 8935,...
public RuleDescr rule() throws RecognitionException { RuleDescr rule; Token loc=null; Token any=null; String ruleName = null; rule = null; String consequence = ""; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:344:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? 'end' opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:344:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? 'end' opt_eol { following.push(FOLLOW_opt_eol_in_rule549); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_rule555); following.push(FOLLOW_word_in_rule559); ruleName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_rule561); opt_eol(); following.pop(); rule = new RuleDescr( ruleName, null ); rule.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:350:17: ( rule_attributes[rule] )? int alt16=2; switch ( input.LA(1) ) { case 30: case 32: alt16=1; break; case EOL: case 15: case 22: case 33: case 34: case 35: case 36: case 37: case 38: alt16=1; break; case 29: alt16=1; break; case 31: alt16=1; break; case 27: alt16=1; break; default: NoViableAltException nvae = new NoViableAltException("350:17: ( rule_attributes[rule] )?", 16, 0, input); throw nvae; } switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:350:25: rule_attributes[rule] { following.push(FOLLOW_rule_attributes_in_rule572); rule_attributes(rule); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_rule582); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:17: ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? int alt23=2; int LA23_0 = input.LA(1); if ( LA23_0==EOL||LA23_0==15||LA23_0==29||LA23_0==31 ) { alt23=1; } else if ( LA23_0==27 ) { alt23=1; } else { NoViableAltException nvae = new NoViableAltException("353:17: ( (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . )* )? )?", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? int alt19=2; int LA19_0 = input.LA(1); if ( LA19_0==29 ) { alt19=1; } else if ( LA19_0==EOL||LA19_0==15||LA19_0==27||LA19_0==31 ) { alt19=2; } else { NoViableAltException nvae = new NoViableAltException("353:18: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,29,FOLLOW_29_in_rule591); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:36: ( ':' )? int alt17=2; int LA17_0 = input.LA(1); if ( LA17_0==30 ) { int LA17_1 = input.LA(2); if ( !( expander != null ) ) { alt17=1; } else if ( expander != null ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("353:36: ( \':\' )?", 17, 1, input); throw nvae; } } else if ( (LA17_0>=EOL && LA17_0<=29)||(LA17_0>=31 && LA17_0<=56) ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("353:36: ( \':\' )?", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:36: ':' { match(input,30,FOLLOW_30_in_rule593); } break; } following.push(FOLLOW_opt_eol_in_rule596); opt_eol(); following.pop(); AndDescr lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt18=2; switch ( input.LA(1) ) { case 21: int LA18_1 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 1, input); throw nvae; } break; case EOL: int LA18_2 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 2, input); throw nvae; } break; case 15: int LA18_3 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 3, input); throw nvae; } break; case 31: int LA18_4 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 4, input); throw nvae; } break; case 27: int LA18_5 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 5, input); throw nvae; } break; case 53: int LA18_6 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 6, input); throw nvae; } break; case 54: int LA18_7 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 7, input); throw nvae; } break; case 55: int LA18_8 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 8, input); throw nvae; } break; case ID: int LA18_9 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 9, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 56: alt18=1; break; default: NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 0, input); throw nvae; } switch (alt18) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:359:33: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "rule", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_rule614); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:360:35: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_rule623); normal_lhs_block(lhs); following.pop(); } break; } } break; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:17: ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? int alt22=2; int LA22_0 = input.LA(1); if ( LA22_0==EOL||LA22_0==15||LA22_0==31 ) { alt22=1; } else if ( LA22_0==27 ) { alt22=2; } else { NoViableAltException nvae = new NoViableAltException("364:17: ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . )* )?", 22, 0, input); throw nvae; } switch (alt22) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:19: opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* { following.push(FOLLOW_opt_eol_in_rule646); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,31,FOLLOW_31_in_rule650); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:38: ( ':' )? int alt20=2; int LA20_0 = input.LA(1); if ( LA20_0==30 ) { alt20=1; } else if ( (LA20_0>=EOL && LA20_0<=29)||(LA20_0>=31 && LA20_0<=56) ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("364:38: ( \':\' )?", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:38: ':' { match(input,30,FOLLOW_30_in_rule652); } break; } following.push(FOLLOW_opt_eol_in_rule656); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:365:17: ( options {greedy=false; } : any= . )* loop21: do { int alt21=2; int LA21_0 = input.LA(1); if ( LA21_0==27 ) { alt21=2; } else if ( (LA21_0>=EOL && LA21_0<=26)||(LA21_0>=28 && LA21_0<=56) ) { alt21=1; } switch (alt21) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:365:44: any= . { any=(Token)input.LT(1); matchAny(input); consequence = consequence + " " + any.getText(); } break; default : break loop21; } } while (true); if ( expander != null ) { String expanded = runThenExpander( consequence, loc.getLine() ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } } break; } } break; } match(input,27,FOLLOW_27_in_rule695); following.push(FOLLOW_opt_eol_in_rule697); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
" 7 getstatic java/lang/System.out Ljava/io/PrintStream; [21]\n" +
" 7 getstatic java.lang.System.out : java.io.PrintStream [21]\n" +
public void test023() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " int i = 6;\n" + " if (i\n" + " > 0) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; String expectedOutput = " // Method descriptor #15 ([Ljava/lang/String;)V\n" + " // Stack: 2, Locals: 2\n" + " public static void main(String[] args);\n" + " 0 bipush 6\n" + " 2 istore_1 [i]\n" + " 3 iload_1 [i]\n" + " 4 ifle 14\n" + " 7 getstatic java/lang/System.out Ljava/io/PrintStream; [21]\n" + " 10 iload_1 [i]\n" + " 11 invokevirtual java/io/PrintStream.println(I)V [27]\n" + " 14 return\n" + " Line numbers:\n" + " [pc: 0, line: 3]\n" + " [pc: 3, line: 4]\n" + " [pc: 7, line: 6]\n" + " [pc: 14, line: 8]\n" + " Local variable table:\n" + " [pc: 0, pc: 15] local: args index: 0 type: [Ljava/lang/String;\n" + " [pc: 3, pc: 15] local: i index: 1 type: I\n"; checkClassFile("A", source, expectedOutput); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e9ca95978aca2a442bfecfb8ac281f372092486a/ClassFileReaderTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3103, 23, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3103, 23, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1...
if (jj_3R_15()) jj_scanpos = xsp;
if (jj_3R_17()) jj_scanpos = xsp;
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_16()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 26, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 26, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684, ...
ExpiryStrategy expiryStrategy = new ExpiryStrategy(timeOut, precision);
ExpiryStrategy expiryStrategy = new ExpiryStrategy(TIME_OUT, PRECISION);
public final void init(Properties properties) throws IllegalStateException, Throwable { // Check and set state synchronized (_stateLock) { if (_state != UNINITIALIZED) { throw new IllegalStateException("This API is not uninitialized anymore."); } _state = INITIALIZING; } // Store the settings if (properties == null) { _initSettings = new Properties(); } else { _initSettings = (Properties) properties.clone(); } _initSettingsReader = new PropertiesPropertyReader(_initSettings); // TODO: Check if this API is session-based at all // XXX: Allow configuration of session ID type ? _sessionIDType = new BasicSessionID(this); _sessionIDGenerator = _sessionIDType.getGenerator(); // TODO: Configure time-out and precision using init settings // XXX: Configure time-out and precision at runtime ? final long timeOut = 30L * 1000L; // 30 seconds final long precision = 2L * 1000L; // 2 seconds ExpiryStrategy expiryStrategy = new ExpiryStrategy(timeOut, precision); // TODO: Configure initial queue size and max queue wait time using init // settings final int initialQueueSize = 89; final long maxQueueWaitTime = 15000L; // 15 seconds _sessionsByID = new ExpiryFolder(expiryStrategy, initialQueueSize, maxQueueWaitTime); // Let the subclass perform initialization boolean succeeded = false; try { initImpl(properties); succeeded = true; // Set the state } finally { synchronized (_stateLock) { if (!succeeded) { _state = UNINITIALIZED; } else { _state = INITIALIZED; } } } // XXX: Initialize all instances here somewhere ? }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/b5b8691691060376957e26909fc0de88b5a802fb/API.java/buggy/src/java-server-framework/org/xins/server/API.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 727, 918, 1208, 12, 2297, 1790, 13, 282, 1216, 5477, 16, 4206, 288, 1377, 368, 2073, 471, 444, 919, 1377, 3852, 261, 67, 2019, 2531, 13, 288, 540, 309, 261, 67, 2019, 480, 5019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 727, 918, 1208, 12, 2297, 1790, 13, 282, 1216, 5477, 16, 4206, 288, 1377, 368, 2073, 471, 444, 919, 1377, 3852, 261, 67, 2019, 2531, 13, 288, 540, 309, 261, 67, 2019, 480, 5019, ...
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1681); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:17: (fb= ID opt_eol ':' opt_eol )? int alt49=2; alt49 = dfa49.predict(input); switch (alt49) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1689); following.push(FOLLOW_opt_eol_in_constraint1691); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1693); following.push(FOLLOW_opt_eol_in_constraint1695); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1705); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1715); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt51=2; int LA51_0 = input.LA(1); if ( (LA51_0>=40 && LA51_0<=47) ) { alt51=1; } else if ( LA51_0==EOL||LA51_0==15||(LA51_0>=22 && LA51_0<=23) ) { alt51=2; } else { NoViableAltException nvae = new NoViableAltException("692:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1723); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1795); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt50=4; switch ( input.LA(1) ) { case ID: int LA50_1 = input.LA(2); if ( LA50_1==49 ) { alt50=2; } else if ( LA50_1==EOL||LA50_1==15||(LA50_1>=22 && LA50_1<=23) ) { alt50=1; } else { NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 48: alt50=3; break; case 21: alt50=4; break; default: NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1813); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:709:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1838); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1870); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:722:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1890); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1923); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31,...
new Integer(numW), new Integer(numT), omePixel, new Boolean(!little), dimOrder, null);
new Integer(numW), new Integer(numT), new Integer(pixelType), new Boolean(!little), dimOrder, null);
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); // read in the image header data header = new byte[1024]; in.read(header); int endian = DataTools.bytesToShort(header, 96, 2, true); little = endian == LITTLE_ENDIAN; numImages = DataTools.bytesToInt(header, 8, 4, little); int extSize = DataTools.bytesToInt(header, 92, 4, little); extHeader = new byte[extSize]; in.read(extHeader); width = DataTools.bytesToInt(header, 0, 4, little); height = DataTools.bytesToInt(header, 4, 4, little); Integer xSize = new Integer(width); Integer ySize = new Integer(height); metadata.put("ImageWidth", xSize); metadata.put("ImageHeight", ySize); metadata.put("NumberOfImages", new Integer(DataTools.bytesToInt(header, 8, 4, little))); int pixelType = DataTools.bytesToInt(header, 12, 4, little); String pixel; String omePixel; switch (pixelType) { case 0: pixel = "8 bit unsigned integer"; omePixel = "Uint8"; bytesPerPixel = 1; break; case 1: pixel = "16 bit signed integer"; omePixel = "int16"; bytesPerPixel = 2; break; case 2: pixel = "32 bit floating point"; omePixel = "float"; bytesPerPixel = 4; break; case 3: pixel = "32 bit complex"; omePixel = "Uint32"; bytesPerPixel = 4; break; case 4: pixel = "64 bit complex"; omePixel = "float"; bytesPerPixel = 8; break; case 6: pixel = "16 bit unsigned integer"; omePixel = "Uint16"; bytesPerPixel = 2; break; default: pixel = "unknown"; omePixel = "Uint8"; bytesPerPixel = 1; } metadata.put("PixelType", pixel); metadata.put("Sub-image starting point (X)", new Integer( DataTools.bytesToInt(header, 16, 4, little))); metadata.put("Sub-image starting point (Y)", new Integer( DataTools.bytesToInt(header, 20, 4, little))); metadata.put("Sub-image starting point (Z)", new Integer( DataTools.bytesToInt(header, 24, 4, little))); metadata.put("Pixel sampling size (X)", new Integer( DataTools.bytesToInt(header, 28, 4, little))); metadata.put("Pixel sampling size (Y)", new Integer( DataTools.bytesToInt(header, 32, 4, little))); metadata.put("Pixel sampling size (Z)", new Integer( DataTools.bytesToInt(header, 36, 4, little))); metadata.put("X element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 40, 4, little)))); metadata.put("Y element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 44, 4, little)))); metadata.put("Z element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 48, 4, little)))); metadata.put("X axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 52, 4, little)))); metadata.put("Y axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 56, 4, little)))); metadata.put("Z axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 60, 4, little)))); metadata.put("Column axis sequence", new Integer( DataTools.bytesToInt(header, 64, 4, little))); metadata.put("Row axis sequence", new Integer( DataTools.bytesToInt(header, 68, 4, little))); metadata.put("Section axis sequence", new Integer( DataTools.bytesToInt(header, 72, 4, little))); Float wave1Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 76, 4, little))); metadata.put("Wavelength 1 min. intensity", wave1Min); Float wave1Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 80, 4, little))); metadata.put("Wavelength 1 max. intensity", wave1Max); metadata.put("Wavelength 1 mean intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 84, 4, little)))); metadata.put("Space group number", new Integer( DataTools.bytesToInt(header, 88, 4, little))); metadata.put("Number of Sub-resolution sets", new Integer( DataTools.bytesToInt(header, 132, 2, little))); metadata.put("Z axis reduction quotient", new Integer( DataTools.bytesToInt(header, 134, 2, little))); Float wave2Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 136, 4, little))); metadata.put("Wavelength 2 min. intensity", wave2Min); Float wave2Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 140, 4, little))); metadata.put("Wavelength 2 max. intensity", wave2Max); Float wave3Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 144, 4, little))); metadata.put("Wavelength 3 min. intensity", wave3Min); Float wave3Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 148, 4, little))); metadata.put("Wavelength 3 max. intensity", wave3Max); Float wave4Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 152, 4, little))); metadata.put("Wavelength 4 min. intensity", wave4Min); Float wave4Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 156, 4, little))); metadata.put("Wavelength 4 max. intensity", wave4Max); int type = DataTools.bytesToShort(header, 160, 2, little); String imageType; switch (type) { case 0: imageType = "normal"; break; case 1: imageType = "Tilt-series"; break; case 2: imageType = "Stereo tilt-series"; break; case 3: imageType = "Averaged images"; break; case 4: imageType = "Averaged stereo pairs"; break; default: imageType = "unknown"; } metadata.put("Image Type", imageType); metadata.put("Lens ID Number", new Integer(DataTools.bytesToShort( header, 162, 2, little))); Float wave5Min = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 172, 4, little))); metadata.put("Wavelength 5 min. intensity", wave5Min); Float wave5Max = new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 176, 4, little))); metadata.put("Wavelength 5 max. intensity", wave5Max); numT = DataTools.bytesToShort(header, 180, 2, little); metadata.put("Number of timepoints", new Integer(numT)); int sequence = DataTools.bytesToInt(header, 182, 4, little); String imageSequence; String dimOrder; switch (sequence) { case 0: imageSequence = "ZTW"; dimOrder = "XYZTC"; break; case 1: imageSequence = "WZT"; dimOrder = "XYCZT"; break; case 2: imageSequence = "ZWT"; dimOrder = "XYZCT"; break; default: imageSequence = "unknown"; dimOrder = "XYZTC"; } metadata.put("Image sequence", imageSequence); metadata.put("X axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 184, 4, little)))); metadata.put("Y axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 188, 4, little)))); metadata.put("Z axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 192, 4, little)))); numW = DataTools.bytesToShort(header, 196, 2, little); metadata.put("Number of wavelengths", new Integer(numW)); numZ = numImages / (numW * numT); metadata.put("Number of focal planes", new Integer(numZ)); metadata.put("Wavelength 1 (in nm)", new Integer(DataTools.bytesToShort( header, 198, 2, little))); metadata.put("Wavelength 2 (in nm)", new Integer(DataTools.bytesToShort( header, 200, 2, little))); metadata.put("Wavelength 3 (in nm)", new Integer(DataTools.bytesToShort( header, 202, 2, little))); metadata.put("Wavelength 4 (in nm)", new Integer(DataTools.bytesToShort( header, 204, 2, little))); metadata.put("Wavelength 5 (in nm)", new Integer(DataTools.bytesToShort( header, 206, 2, little))); metadata.put("X origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 208, 4, little)))); metadata.put("Y origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 212, 4, little)))); metadata.put("Z origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 216, 4, little)))); order = dimOrder; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); String title; for (int i=1; i<=10; i++) { // Make sure that "null" characters are stripped out title = new String(header, 224 + 80*(i-1), 80).replaceAll("\0", ""); metadata.put("Title " + i, title); } sizeX[0] = width; sizeY[0] = height; sizeZ[0] = numZ; sizeC[0] = numW; sizeT[0] = numT; currentOrder[0] = order; // ----- The Extended Header data handler begins here ------ numIntsPerSection = DataTools.bytesToInt(header, 128, 2, little); numFloatsPerSection = DataTools.bytesToInt(header, 130, 2, little); setOffsetInfo(sequence, numZ, numW, numT); extHdrFields = new DVExtHdrFields[numZ][numW][numT]; store.setPixels(new Integer(width), new Integer(height), new Integer(numZ), new Integer(numW), new Integer(numT), omePixel, new Boolean(!little), dimOrder, null); store.setDimensions( (Float) metadata.get("X element length (in um)"), (Float) metadata.get("Y element length (in um)"), (Float) metadata.get("Z element length (in um)"), null, null, null); String description = (String) metadata.get("Title 1"); description = description.length() == 0? null : description; store.setImage(id, null, description, null); // Run through every timeslice, for each wavelength, for each z section // and fill in the Extended Header information array for that image for (int z = 0; z < numZ; z++) { for (int t = 0; t < numT; t++) { for (int w = 0; w < numW; w++) { extHdrFields[z][w][t] = new DVExtHdrFields(getTotalOffset(z, w, t), numIntsPerSection, extHeader, little); store.setPlaneInfo(z, w, t, new Float(extHdrFields[z][w][t].getTimeStampSeconds()), new Float(extHdrFields[z][w][t].getExpTime()), null); } } } for (int w=0; w<numW; w++) { store.setLogicalChannel(w, "happypuppy", new Float(extHdrFields[0][w][0].getNdFilter()), (Integer) metadata.get("Wavelength " + (w+1) + " (in nm)"), new Integer((int) extHdrFields[0][w][0].getExFilter()), "Monochrome", "Wide-field", null); } store.setStageLabel("ome", new Float(extHdrFields[0][0][0].getStageXCoord()), new Float(extHdrFields[0][0][0].getStageYCoord()), new Float(extHdrFields[0][0][0].getStageZCoord()), null); if (numW > 0) { store.setChannelGlobalMinMax(0, new Double(wave1Min.floatValue()), new Double(wave1Max.floatValue()), null); } if (numW > 1) { store.setChannelGlobalMinMax(1, new Double(wave2Min.floatValue()), new Double(wave2Max.floatValue()), null); } if (numW > 2) { store.setChannelGlobalMinMax(2, new Double(wave3Min.floatValue()), new Double(wave3Max.floatValue()), null); } if (numW > 3) { store.setChannelGlobalMinMax(3, new Double(wave4Min.floatValue()), new Double(wave4Max.floatValue()), null); } if (numW > 4) { store.setChannelGlobalMinMax(4, new Double(wave5Min.floatValue()), new Double(wave5Max.floatValue()), null); } store.setDefaultDisplaySettings(null); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/f900d398818eefec3108ce2138214e42901a0aa0/DeltavisionReader.java/clean/loci/formats/in/DeltavisionReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 368, 855, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 368, 855, 31...
break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue()));
exception = args[0].callMethod("exception"); } else { if (!args[0].respondsTo("exception")) { throw runtime.newTypeError("exception class/object expected");
public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); IRuby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; RaiseException re = null; switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables().get("$!"); if (defaultException.isNil()) { re = new RaiseException(runtime, runtime.getClass("RuntimeError"), "", false); } else { re = new RaiseException((RubyException) defaultException); } break; case 1 : if (args[0] instanceof RubyException) { re = new RaiseException((RubyException) args[0]); } else if (args[0] instanceof RubyClass) { re = new RaiseException(RubyException.newInstance(args[0], new IRubyObject[0])); } else { re = new RaiseException(RubyException.newInstance(runtime.getClass("RuntimeError"), args)); } break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue())); } break; case 3: if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; excptn = new RubyException(runtime, ((RubyClass)args[0]), string.getValue()); excptn.set_backtrace(args[2]); re = new RaiseException(excptn); } break; default : re = runtime.newArgumentError("wrong number of arguments"); } // Insert exception to be raised into global var and current thread runtime.getGlobalVariables().set("$!", re.getException()); throw re; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/db72794764bda58903c87df9b567f1f843bea69c/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 1002, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 368, 9852, 225, 4582, 648, 316, 22155, 3639, 368, 10665, 18, 1893, 1379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 1002, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 368, 9852, 225, 4582, 648, 316, 22155, 3639, 368, 10665, 18, 1893, 1379, ...
ManagedReferenceImpl<?> ref = context.findReference(object);
ManagedReferenceImpl ref = context.findReference(object);
public void markForUpdate(ManagedObject object) { try { if (object == null) { throw new NullPointerException("The object must not be null"); } else if (!(object instanceof Serializable)) { throw new IllegalArgumentException( "The object must be serializable"); } Context context = getContext(); ManagedReferenceImpl<?> ref = context.findReference(object); if (ref != null) { ref.markForUpdate(); } logger.log( Level.FINEST, "markForUpdate object:{0} returns", object); } catch (RuntimeException e) { logger.logThrow( Level.FINEST, "markForUpdate object:{0} throws", e, object); throw e; } }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/468fd904132fe7f543e7cd90eed49c63132c4835/DataServiceImpl.java/clean/src/server/j2se/com/sun/sgs/impl/service/data/DataServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2267, 28431, 12, 10055, 921, 733, 13, 288, 202, 698, 288, 202, 565, 309, 261, 1612, 422, 446, 13, 288, 202, 202, 12849, 394, 10108, 2932, 1986, 733, 1297, 486, 506, 446, 8863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2267, 28431, 12, 10055, 921, 733, 13, 288, 202, 698, 288, 202, 565, 309, 261, 1612, 422, 446, 13, 288, 202, 202, 12849, 394, 10108, 2932, 1986, 733, 1297, 486, 506, 446, 8863...
settings.put(TAG_WORKING_SET, workingSet.getName());
settings.putString(TAG_WORKING_SET, workingSet.getName());
protected void saveFilterSettings(IDialogSettings settings) { settings.put(TAG_ENABLED, enabled); settings.put(TAG_ON_RESOURCE, onResource); String markerTypeIds = ""; //$NON-NLS-1$ List includedTypes = new ArrayList(); addAllSubTypes(includedTypes); for (int i = 0; i < includedTypes.size(); i++) { MarkerType markerType = (MarkerType) includedTypes.get(i); markerTypeIds += markerType.getId() + TAG_TYPES_DELIMITER; if (selectedTypes.contains(markerType)) { markerTypeIds += SELECTED_TRUE + TAG_TYPES_DELIMITER; } else { markerTypeIds += SELECTED_FALSE + TAG_TYPES_DELIMITER; } } settings.put(TAG_SELECTION_STATUS, markerTypeIds); if (workingSet != null) settings.put(TAG_WORKING_SET, workingSet.getName()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/09a4c864bb83fb62a685d497a2df9ce5451376bd/MarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1923, 1586, 2628, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 7927, 67, 13560, 16, 3696, 1769, 202, 202, 4272, 18, 458, 12, 7927, 67, 673, 67, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 1586, 2628, 12, 734, 3529, 2628, 1947, 13, 288, 202, 202, 4272, 18, 458, 12, 7927, 67, 13560, 16, 3696, 1769, 202, 202, 4272, 18, 458, 12, 7927, 67, 673, 67, 113...
throw new UnsupportedOperationException("Dimensions of a Table can't be calculated. See the FAQ.");
throw new UnsupportedOperationException("Dimensions of a Table can't be calculated. See the FAQ.");
public float top() { throw new UnsupportedOperationException("Dimensions of a Table can't be calculated. See the FAQ."); }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/a0af9c5b3d998f470766ca142d2707e69eeb09ad/Table.java/buggy/src/com/lowagie/text/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 1760, 1435, 288, 202, 12849, 394, 13172, 2932, 10796, 434, 279, 3555, 848, 1404, 506, 8894, 18, 2164, 326, 15064, 53, 1199, 1769, 565, 289, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 1760, 1435, 288, 202, 12849, 394, 13172, 2932, 10796, 434, 279, 3555, 848, 1404, 506, 8894, 18, 2164, 326, 15064, 53, 1199, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -1...
if (name == SchemaNames.COMPLEXTYPE) {
if (name == SchemaNames.COMPLEX_TYPE) {
public void startElement(String name, AttributeList atts) throws SAXException { if (skipAll) return; String rawName = name; //-- handle namespaces processNamespaces(atts); String namespace = null; int idx = name.indexOf(':'); if (idx >= 0 ) { String prefix = name.substring(0,idx); name = name.substring(idx+1); namespace = (String)namespaces.get(prefix); } else namespace = defaultNS; //-- backward compatibility, we'll need to //-- remove this at some point if ((!foundSchemaDef) && (idx < 0)) { if (defaultNS == null) { defaultNS = XSD_NAMESPACE; namespace = XSD_NAMESPACE; System.out.println("No namespace declaration has been " + "found for " + name); System.out.print(" * assuming default namespace of "); System.out.println(XSD_NAMESPACE); } } //-- end of backward compatibility //-- check namespace if (!XSD_NAMESPACE.equals(namespace)) { throw new SAXException(rawName + " has not been declared in the XML Schema namespace"); } //-- Do delagation if necessary if (unmarshaller != null) { unmarshaller.startElement(name, atts); ++depth; return; } //-- use VM internal String of name name = name.intern(); if (name == SchemaNames.SCHEMA) { if (foundSchemaDef) illegalElement(name); foundSchemaDef = true; init(atts); return; } //-- <type> if (name == SchemaNames.COMPLEXTYPE) { unmarshaller = new ComplextypeUnmarshaller(_schema, atts, _resolver); } //-- <element> else if (name == SchemaNames.ELEMENT) { unmarshaller = new ElementUnmarshaller(_schema, atts, _resolver); } //-- <simpletype> else if (name == SchemaNames.SIMPLETYPE) { unmarshaller = new SimpletypeUnmarshaller(_schema, atts, _resolver); } else { //-- we should throw a new Exception here //-- but since we don't support everything //-- yet, simply add an UnknownDef object System.out.print(name); System.out.print(" elements are either currently unsupported "); System.out.println("or not valid schema elements."); unmarshaller = new UnknownUnmarshaller(name); } unmarshaller.setDocumentLocator(getDocumentLocator()); } //-- startElement
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/645016a08156f47432a267a68c15e02eb64e52a4/SchemaUnmarshaller.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/reader/SchemaUnmarshaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 508, 16, 3601, 682, 15687, 13, 3639, 1216, 14366, 565, 288, 7734, 309, 261, 7457, 1595, 13, 327, 31, 7734, 514, 1831, 461, 273, 508, 31, 7734, 368, 413, 1640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 16, 3601, 682, 15687, 13, 3639, 1216, 14366, 565, 288, 7734, 309, 261, 7457, 1595, 13, 327, 31, 7734, 514, 1831, 461, 273, 508, 31, 7734, 368, 413, 1640,...
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/b1293eda8454686e846e2a9837b348e2983bb423/Colon3Node.java/clean/src/org/jruby/ast/Colon3Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue());
List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue());
public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue()); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 6862, 202, 682, 4833, 273, 261, 682, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 6862, 202, 2966, 2171,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 6862, 202, 682, 4833, 273, 261, 682, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 6862, 202, 2966, 2171,...
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp, int daysLater, int monthsLater) { Calendar tempCal = Calendar.getInstance(); tempCal.setTime(new java.util.Date(stamp.getTime())); tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), 1, 0, 0, 0); tempCal.add(Calendar.DAY_OF_MONTH, daysLater); tempCal.add(Calendar.MONTH, monthsLater); java.sql.Timestamp retStamp = new java.sql.Timestamp(tempCal.getTime().getTime()); retStamp.setNanos(0); return retStamp;
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp) { return getMonthStart(stamp, 0, 0);
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp, int daysLater, int monthsLater) { Calendar tempCal = Calendar.getInstance(); tempCal.setTime(new java.util.Date(stamp.getTime())); tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), 1, 0, 0, 0); tempCal.add(Calendar.DAY_OF_MONTH, daysLater); tempCal.add(Calendar.MONTH, monthsLater); java.sql.Timestamp retStamp = new java.sql.Timestamp(tempCal.getTime().getTime()); retStamp.setNanos(0); return retStamp; }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/07e943f1ef268e9980fb09761e307d3ec5b92005/UtilDateTime.java/buggy/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2252, 18, 4669, 18, 4921, 19627, 1685, 12, 6290, 18, 4669, 18, 4921, 14429, 16, 509, 4681, 20607, 16, 509, 8846, 20607, 13, 288, 3639, 5542, 1906, 3005, 273, 5542, 18, 588, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 4921, 19627, 1685, 12, 6290, 18, 4669, 18, 4921, 14429, 16, 509, 4681, 20607, 16, 509, 8846, 20607, 13, 288, 3639, 5542, 1906, 3005, 273, 5542, 18, 588, 1...
if ( url == null ) return getFileDirectory( filePath );
public static URL getDirectory( String filePath ) { URL url = null; try { url = new URL( convertFileNameToURLString( filePath ) ); } catch ( MalformedURLException e ) { } // follows the file protocol if ( url == null ) return getFileDirectory( filePath ); if ( FILE_SCHEMA.equalsIgnoreCase( url.getProtocol( ) ) ) return getFileDirectory( url.getPath( ) ); // rather then the file protocol return getNetDirectory( url ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/22165bd0e5b8e6eae1e5acbdf5a7377ab1882684/URIUtil.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1976, 19831, 12, 514, 4612, 262, 202, 95, 202, 202, 1785, 880, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 718, 273, 394, 1976, 12, 1765, 4771, 774, 1785, 780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1976, 19831, 12, 514, 4612, 262, 202, 95, 202, 202, 1785, 880, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 718, 273, 394, 1976, 12, 1765, 4771, 774, 1785, 780...
log().debug("Setting attribute: "+this+".["+inst+"] = '"+val+"'");
log().info("Setting attribute: "+this+".["+inst+"] = '"+val+"'");
public void storeResult(CollectionSet collectionSet, SNMPCollectorEntry entry, SnmpObjId base, SnmpInstId inst, SnmpValue val) { log().debug("Setting attribute: "+this+".["+inst+"] = '"+val+"'"); CollectionResource resource = null; if(this.getAlias().equals("ifAlias")) { resource = m_resourceType.findAliasedResource(inst, val.toString()); } else { resource = m_resourceType.findResource(inst); } if (resource == null) { collectionSet.notifyIfNotFound(this, base, inst, val); } else { resource.setAttributeValue(this, val); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/598c2fc286eabd1d4244fd55331652deb2abc7ff/AttributeType.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/collectd/AttributeType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 1253, 12, 2532, 694, 1849, 694, 16, 14204, 4566, 7134, 1622, 1241, 16, 18961, 1291, 2675, 548, 1026, 16, 18961, 1291, 10773, 548, 1804, 16, 18961, 1291, 620, 1244, 13, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 1253, 12, 2532, 694, 1849, 694, 16, 14204, 4566, 7134, 1622, 1241, 16, 18961, 1291, 2675, 548, 1026, 16, 18961, 1291, 10773, 548, 1804, 16, 18961, 1291, 620, 1244, 13, 28...
public ObjectStreamField (String name, Class type)
ObjectStreamField (Field field)
public ObjectStreamField (String name, Class type) { this (name, type, false); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectStreamField.java/buggy/libjava/java/io/ObjectStreamField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 1228, 974, 261, 974, 652, 13, 225, 288, 565, 333, 261, 529, 16, 618, 16, 629, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 1228, 974, 261, 974, 652, 13, 225, 288, 565, 333, 261, 529, 16, 618, 16, 629, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
" WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));
" WHERE " + IN_THIS_MAILBOX_AND + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));
public static void resolveSharedIndex(Mailbox mbox, PendingDelete info) throws ServiceException { if (info.sharedIndex == null || info.sharedIndex.isEmpty()) return; Connection conn = mbox.getOperationConnection(); PreparedStatement stmt = null; ResultSet rs = null; try { stmt = conn.prepareStatement("SELECT index_id FROM " + getMailItemTableName(mbox) + " WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex)); int attr = 1; if (DebugConfig.enableMailboxGroup) stmt.setInt(attr++, mbox.getId()); for (int id : info.sharedIndex) stmt.setInt(attr++, id); rs = stmt.executeQuery(); while (rs.next()) info.sharedIndex.remove(rs.getInt(1)); info.indexIds.addAll(info.sharedIndex); info.sharedIndex.clear(); } catch (SQLException e) { throw ServiceException.FAILURE("resolving shared index entries: " + info.rootId, e); } finally { DbPool.closeResults(rs); DbPool.closeStatement(stmt); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/11456441310e0540258d44573fd6f6a3306616ea/DbMailItem.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2245, 7887, 1016, 12, 30239, 312, 2147, 16, 16034, 2613, 1123, 13, 1216, 16489, 288, 3639, 309, 261, 1376, 18, 11574, 1016, 422, 446, 747, 1123, 18, 11574, 1016, 18, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2245, 7887, 1016, 12, 30239, 312, 2147, 16, 16034, 2613, 1123, 13, 1216, 16489, 288, 3639, 309, 261, 1376, 18, 11574, 1016, 422, 446, 747, 1123, 18, 11574, 1016, 18, 291, ...
argcls[i] = name.getClass();
argcls[i] = name.getClass();
public int callMember(String appletID, String name, StringBuffer value, java.util.List args) { Object [] objs = getObjectField(appletID, name); if(objs == null) return JError; try { Main.debug("callMember: " + name); Object obj; Class c = objs[0].getClass(); String type; Class [] argcls = new Class[args.size()]; for (int i = 0; i < args.size(); i++) argcls[i] = name.getClass(); // String for now Method m = findMethod(c, (String) objs[1], argcls); Object [] argobj = new Object[args.size()]; for (int i = 0; i < args.size(); i++) argobj[i] = args.get(i); //for now Object retval = m.invoke(objs[0], argobj); if (retval == null) return JVoid; // void return getTypedValue(retval, value); } catch (Exception e) { Main.debug("callMember throwed exception: " + e.toString()); e.printStackTrace(); } return JError; }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/78f14736dea83c836b3fc5b8a0e71bc6bce07272/KJASAppletContext.java/clean/khtml/java/org/kde/kjas/server/KJASAppletContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 745, 4419, 12, 780, 21853, 734, 16, 514, 508, 16, 6674, 460, 16, 2252, 18, 1367, 18, 682, 833, 13, 565, 288, 3639, 1033, 5378, 12721, 273, 6455, 974, 12, 438, 1469, 734, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 745, 4419, 12, 780, 21853, 734, 16, 514, 508, 16, 6674, 460, 16, 2252, 18, 1367, 18, 682, 833, 13, 565, 288, 3639, 1033, 5378, 12721, 273, 6455, 974, 12, 438, 1469, 734, 16...
if(logMINOR) Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+")");
if(logMINOR) Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+ ')');
public void findOldLogFiles() { int slashIndex = baseFilename.lastIndexOf(File.separatorChar); File dir; String prefix; if(slashIndex == -1) { dir = new File(System.getProperty("user.dir")); prefix = baseFilename.toLowerCase(); } else { dir = new File(baseFilename.substring(0, slashIndex)); prefix = baseFilename.substring(slashIndex+1).toLowerCase(); } File[] files = dir.listFiles(); if(files == null) return; java.util.Arrays.sort(files); long lastStartTime = -1; File oldFile = null; previousFile.delete(); latestFile.renameTo(previousFile); boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); for(int i=0;i<files.length;i++) { File f = files[i]; String name = f.getName(); if(name.toLowerCase().startsWith(prefix)) { if(name.equals(previousFile.getName()) || name.equals(latestFile.getName())) { continue; } if(!name.endsWith(".log.gz")) { if(logMINOR) Logger.minor(this, "Does not end in .log.gz: "+name); f.delete(); continue; } else { name = name.substring(0, name.length()-".log.gz".length()); } name = name.substring(prefix.length()); if((name.length() == 0) || (name.charAt(0) != '-')) { if(logMINOR) Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+")"); f.delete(); continue; } else name = name.substring(1); String[] tokens = name.split("-"); int[] nums = new int[tokens.length]; for(int j=0;j<tokens.length;j++) { try { nums[j] = Integer.parseInt(tokens[j]); } catch (NumberFormatException e) { Logger.normal(this, "Could not parse: "+tokens[j]+" into number from "+name); // Broken f.delete(); continue; } } // First field: version if(nums[0] != Version.buildNumber()) { if(logMINOR) Logger.minor(this, "Deleting old log from build "+nums[0]+", current="+Version.buildNumber()); // Logs that old are useless f.delete(); continue; } GregorianCalendar gc = new GregorianCalendar(); if(nums.length > 1) gc.set(Calendar.YEAR, nums[1]); if(nums.length > 2) gc.set(Calendar.MONTH, nums[2]-1); if(nums.length > 3) gc.set(Calendar.DAY_OF_MONTH, nums[3]); if(nums.length > 4) gc.set(Calendar.HOUR_OF_DAY, nums[4]); if(nums.length > 5) gc.set(Calendar.MINUTE, nums[5]); gc.set(Calendar.SECOND, 0); gc.set(Calendar.MILLISECOND, 0); long startTime = gc.getTimeInMillis(); if(oldFile != null) { long l = oldFile.length(); OldLogFile olf = new OldLogFile(oldFile, lastStartTime, startTime, l); synchronized(logFiles) { logFiles.addLast(olf); } synchronized(trimOldLogFilesLock) { oldLogFilesDiskSpaceUsage += l; } } lastStartTime = startTime; oldFile = f; } else { // Nothing to do with us Logger.normal(this, "Unknown file: "+name+" in the log directory"); } } if(oldFile != null) { long l = oldFile.length(); OldLogFile olf = new OldLogFile(oldFile, lastStartTime, System.currentTimeMillis(), l); synchronized(logFiles) { logFiles.addLast(olf); } synchronized(trimOldLogFilesLock) { oldLogFilesDiskSpaceUsage += l; } } trimOldLogFiles(); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FileLoggerHook.java/buggy/src/freenet/support/FileLoggerHook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1104, 7617, 1343, 2697, 1435, 288, 202, 202, 474, 9026, 1016, 273, 1026, 5359, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 202, 202, 812, 1577, 31, 202, 202, 780, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 7617, 1343, 2697, 1435, 288, 202, 202, 474, 9026, 1016, 273, 1026, 5359, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 202, 202, 812, 1577, 31, 202, 202, 780, 16...
c.setLayout( layout );
c.setLayout( layout );
SForm createTemplateExample() { SForm c = new SForm(); try { java.net.URL templateURL = getClass().getResource("/wingset/TemplateExample.thtml"); if( templateURL == null ){ c.add(new SLabel("Sorry, can't find TemplateExample.thtml. Are you using a JAR-File?")); return c; } // you can of course directly give files here. STemplateLayout layout = new STemplateLayout( templateURL ); c.setLayout( layout ); } catch ( java.io.IOException except ) { except.printStackTrace(); } c.add(new SLabel ((new java.util.Date()).toString()), "theLabel"); c.add(new SButton ("Button"), "TESTBUTTON"); c.add(new STextField (), "NAME"); c.add(new STextField (), "VORNAME"); c.add(new TreeExample(), "BAUM"); return c; }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/ebd6930dd9efb2a999e05f9084a09053efc0db36/TemplateExample.java/clean/wings/demo/wingset/TemplateExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 348, 1204, 752, 2283, 10908, 1435, 288, 3639, 348, 1204, 276, 273, 394, 348, 1204, 5621, 3639, 775, 288, 5411, 2252, 18, 2758, 18, 1785, 1542, 1785, 273, 2900, 7675, 588, 1420, 2932, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 348, 1204, 752, 2283, 10908, 1435, 288, 3639, 348, 1204, 276, 273, 394, 348, 1204, 5621, 3639, 775, 288, 5411, 2252, 18, 2758, 18, 1785, 1542, 1785, 273, 2900, 7675, 588, 1420, 2932, 19, ...
return name;
return name;
public java.lang.String getName() { return name;}
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/4c34db578b77ba3c1f4c891c4e5bc40fe5d7a231/EntityGroupImpl.java/clean/source/org/jasig/portal/groups/EntityGroupImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2252, 18, 4936, 18, 780, 1723, 1435, 288, 202, 2463, 508, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2252, 18, 4936, 18, 780, 1723, 1435, 288, 202, 2463, 508, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
ClassLoader loader = getAntFile().getClassLoader().getClassloader();
URL[] urls = ClassEntry.EMPTY_URL_ARRAY;
private void loadClass(final String classname) { ClassLoader loader = getAntFile().getClassLoader().getClassloader(); final String classpath = getClassPath(); if (classpath != null) { try { final URL[] urls; if (classpath.indexOf(':') < 0) { urls = new URL[]{new URL("file://" + classpath)}; } else { final List<URL> urlList = new ArrayList<URL>(); for (String url : classpath.split(":")) { urlList.add(new URL("file://" + url)); } urls = urlList.toArray(new URL[urlList.size()]); } loader = new URLClassLoader(urls, loader); } catch (MalformedURLException e) { // ignore } } Class clazz; try { if (loader == null) { clazz = Class.forName(classname); } else { clazz = loader.loadClass(classname); } } catch (Exception e) { clazz = null; } final String name = getDefinedName(); final String uri = getUri(); final AntTypeId id = (uri == null) ? new AntTypeId(name) : new AntTypeId(name, uri); if (clazz == null) { myNewDefinition = null; } else { myNewDefinition = (AntTypeDefinitionImpl)AntFileImpl.createTypeDefinition(id, clazz, Task.class.isAssignableFrom(clazz)); } if (myNewDefinition != null) { myNewDefinition.setDefiningElement(this); final AntStructuredElement parent = getAntParent(); if (parent != null) { parent.registerCustomType(myNewDefinition); } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/ceb24b80c5261dedf3a8aa851dd19772f3bdd70c/AntTypeDefImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntTypeDefImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 16038, 12, 6385, 514, 7479, 13, 288, 565, 1976, 8526, 6903, 273, 1659, 1622, 18, 13625, 67, 1785, 67, 8552, 31, 565, 727, 514, 10006, 273, 2900, 743, 5621, 565, 309, 261, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 16038, 12, 6385, 514, 7479, 13, 288, 565, 1976, 8526, 6903, 273, 1659, 1622, 18, 13625, 67, 1785, 67, 8552, 31, 565, 727, 514, 10006, 273, 2900, 743, 5621, 565, 309, 261, 263...
this.registerVariant(variant);
registerVariant(variant);
private void initVariantsInFieldScope() { {// completion in initializer final CompletionVariant variant = new CompletionVariant(new AfterElementFilter(new TextFilter("="))); variant.includeScopeClass(PsiVariable.class, false); variant.addCompletionFilterOnElement(new OrFilter( new ClassFilter(PsiVariable.class, false), new ExcludeDeclaredFilter(new ClassFilter(PsiVariable.class)) )); this.registerVariant(variant); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3314476891c70f6e28a00beba3f4835933188dec/JavaCompletionData.java/clean/codeInsight/impl/com/intellij/codeInsight/completion/JavaCompletionData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 21165, 382, 974, 3876, 1435, 288, 565, 288, 759, 8364, 316, 12562, 1377, 727, 20735, 9356, 5437, 273, 394, 20735, 9356, 12, 2704, 7360, 1046, 1586, 12, 2704, 3867, 1586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 21165, 382, 974, 3876, 1435, 288, 565, 288, 759, 8364, 316, 12562, 1377, 727, 20735, 9356, 5437, 273, 394, 20735, 9356, 12, 2704, 7360, 1046, 1586, 12, 2704, 3867, 1586, ...
if (jj_3R_21()) return true;
if (jj_3R_23()) return true;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 2499, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 2499, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4033, 10756, 10684...
return "default";
return "attack";
public static String getLongCombatOptionName( String action ) { if ( action == null || action.length() == 0 ) return "default"; if ( action.equals( "custom" ) || action.equals( "delevel" ) || action.equals( "default" ) || action.startsWith( "abort" ) || action.startsWith( "attack" ) || action.startsWith( "run" ) ) return action; else if ( action.startsWith( "item" ) ) return "item " + ((String) TradeableItemDatabase.getMatchingNames( action.substring(4).trim() ).get(0)).toLowerCase(); else if ( action.startsWith( "skill" ) ) { String potentialSkill = KoLmafiaCLI.getCombatSkillName( action.substring(5).trim() ).toLowerCase(); if ( potentialSkill != null ) return "skill " + potentialSkill; } // Well, it's either a standard skill, or it's an item, // or it's something you need to lookup in the tables. String potentialSkill = KoLmafiaCLI.getCombatSkillName( action ); if ( potentialSkill != null ) return "skill " + potentialSkill.toLowerCase(); int itemID = action.equals( "" ) ? -1 : KoLmafiaCLI.getFirstMatchingItemID( TradeableItemDatabase.getMatchingNames( action ) ); if ( itemID != -1 ) return "item " + TradeableItemDatabase.getItemName( itemID ).toLowerCase(); return "attack"; }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/a650e856112055897821459dd0ced956ce3edc51/CombatSettings.java/buggy/src/net/sourceforge/kolmafia/CombatSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 11105, 11328, 270, 1895, 461, 12, 514, 1301, 262, 202, 95, 202, 202, 430, 261, 1301, 422, 446, 747, 1301, 18, 2469, 1435, 422, 374, 262, 1082, 202, 2463, 315, 1886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 11105, 11328, 270, 1895, 461, 12, 514, 1301, 262, 202, 95, 202, 202, 430, 261, 1301, 422, 446, 747, 1301, 18, 2469, 1435, 422, 374, 262, 1082, 202, 2463, 315, 1886, ...
public void copyFile(CmsRequestContext context, String source, String destination, boolean lockCopy, boolean copyAsLink, int copyMode) throws CmsException { String destinationFileName = null; String destinationFolderName = null; CmsResource newResource = null; Map newResourceProps = null; if (destination.endsWith("/")) { copyFolder(context, source, destination, lockCopy, copyAsLink, false); return; } // validate the destination path/filename validFilename(destination.replace('/', 'a')); // extract the destination folder and filename destinationFolderName = destination.substring(0, destination.lastIndexOf("/") + 1); destinationFileName = destination.substring(destination.lastIndexOf("/") + 1, destination.length()); // read the source file and destination parent folder CmsFile sourceFile = readFile(context, source, false); CmsFolder destinationFolder = readFolder(context, destinationFolderName); // check the link mode to see if this resource has to be copied as a link. // only check this if the override flag "copyAsLink" is not set. if (!copyAsLink) { // if we have the copy mode "copy as link, set the override flag to true if (copyMode==I_CmsConstants.C_COPY_AS_LINK) { copyAsLink=true; } // if the mode is "preservre links", we have to check the link counter if (copyMode==I_CmsConstants.C_COPY_PRESERVE_LINK) { if (sourceFile.getLinkCount()>1) { copyAsLink=true; } } } // checks, if the type is valid, i.e. the user can copy files of this type // we can't utilize the access guard to do this, since it needs a resource to check if (!isAdmin(context) && (sourceFile.getType() == CmsResourceTypeXMLTemplate.C_RESOURCE_TYPE_ID || sourceFile.getType() == CmsResourceTypeJsp.C_RESOURCE_TYPE_ID)) { throw new CmsSecurityException("[" + this.getClass().getName() + "] copyFile() " + source, CmsSecurityException.C_SECURITY_NO_PERMISSIONS); } // check if the user has read access to the source file and write access to the destination folder checkPermissions(context, sourceFile, I_CmsConstants.C_READ_ACCESS); checkPermissions(context, destinationFolder, I_CmsConstants.C_WRITE_ACCESS); // read the source properties newResourceProps = readProperties(context, source, null, false); if (copyAsLink) { // create a copy of the source file in the destination parent folder newResource = createVfsLink(context, destination, source, newResourceProps, false); } else { // create a new resource in the destination folder // check the resource flags int flags = sourceFile.getFlags(); if (sourceFile.isLabeled()) { // reset "labeled" link flag flags &= ~I_CmsConstants.C_RESOURCEFLAG_LABELLINK; } // create the file newResource = m_vfsDriver.createFile(context.currentUser(), context.currentProject(), destinationFileName, flags, destinationFolder.getId(), sourceFile.getContents(), getResourceType(sourceFile.getType())); // copy the properties writeProperties(context, destination, newResourceProps); // copy the access control entries ListIterator aceList = m_userDriver.getAccessControlEntries(context.currentProject(), sourceFile.getResourceAceId(), false).listIterator(); while (aceList.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry) aceList.next(); m_userDriver.createAccessControlEntry(context.currentProject(), newResource.getResourceAceId(), ace.getPrincipal(), ace.getPermissions().getAllowedPermissions(), ace.getPermissions().getDeniedPermissions(), ace.getFlags()); } m_vfsDriver.updateResourceState(context.currentProject(),newResource,C_UPDATE_ALL); touch(context,destination,sourceFile.getDateLastModified(),sourceFile.getUserLastModified()); if (lockCopy) { lockResource(context, destination); } } clearAccessControlListCache(); m_accessCache.clear(); clearResourceCache(); List modifiedResources = (List) new ArrayList(); modifiedResources.add(sourceFile); modifiedResources.add(newResource); modifiedResources.add(destinationFolder); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCES_MODIFIED, Collections.singletonMap("resources", modifiedResources))); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/e32e986189f4d8353adaddc338780dc5f8a073fc/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26955, 12, 4747, 21426, 819, 16, 514, 1084, 16, 514, 2929, 16, 1250, 2176, 2951, 16, 1250, 1610, 1463, 2098, 16, 509, 1610, 2309, 13, 1216, 11228, 288, 3639, 514, 2929, 4771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26955, 12, 4747, 21426, 819, 16, 514, 1084, 16, 514, 2929, 16, 1250, 2176, 2951, 16, 1250, 1610, 1463, 2098, 16, 509, 1610, 2309, 13, 1216, 11228, 288, 3639, 514, 2929, 4771, ...
CustomAttributesNode caNode = new CustomAttributesNode(cloneEle);
caNode = new CustomAttributesNode(cloneEle); r.exec("import org.openmicroscopy.xml.CustomAttributesNode"); r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node");
public void setupTabs() { //make sure all old gui stuff is tossed when this called twice. //also clear our TablePanel lists tabPanelList = new Vector(); panelList = new Vector(); panelsWithID = new Vector(); addItems = new Vector(); tabPane.removeAll(); try {thisOmeNode = new OMENode();} catch(Exception e) {e.printStackTrace();} //use the list acquired from Template.xml to form the initial tabs Element[] tabList = tParse.getTabs(); for(int i = 0;i< tabList.length;i++) { String thisName = tabList[i].getAttribute("Name"); if(thisName.length() == 0) thisName = tabList[i].getAttribute("XMLName"); //make a TabPanel Object that represents the panel //that displays data for a node TabPanel tPanel = new TabPanel(tabList[i]); OMEXMLNode n = null; String unknownName = tabList[i].getAttribute("XMLName"); try { //reflect api gets around large switch statements ReflectedUniverse r = new ReflectedUniverse(); if (unknownName.equals("Project") || unknownName.equals("Feature") || unknownName.equals("CustomAttributes") || unknownName.equals("Dataset") || unknownName.equals("Image")) { r.exec("import org.openmicroscopy.xml." + unknownName + "Node"); r.setVar("parent", thisOmeNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } else { r.exec("import org.openmicroscopy.xml.CustomAttributesNode"); r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node"); Element currentCA = DOMUtil.getChildElement("CustomAttributes", thisOmeNode.getDOMElement()); if (currentCA != null) { CustomAttributesNode caNode = new CustomAttributesNode(currentCA); r.setVar("parent", caNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } else { Element cloneEle = DOMUtil.createChild(thisOmeNode.getDOMElement(),"CustomAttributes"); CustomAttributesNode caNode = new CustomAttributesNode(cloneEle); r.setVar("parent", caNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } } } catch (Exception exc) { System.out.println(exc.toString()); } tPanel.oNode = n; //set the field oNode in TabPanel to reflect the structure of the xml //document being formed //do all the good stuff to flesh out the TabPanel's gui with the tables //and assorted stuff renderTab(tPanel); //set up a scrollpane to hold the TabPanel in case it's too large to fit JScrollPane scrollPane = new JScrollPane(tPanel); scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); String desc = tabList[i].getAttribute("Description"); if (desc.length() == 0) tabPane.addTab(thisName, null, scrollPane, null); else tabPane.addTab(thisName, null, scrollPane, desc); int keyNumber = getKey(i+1); if(keyNumber !=0 ) tabPane.setMnemonicAt(i, keyNumber); } //Makes sure that the external references do not mirror the internal ones //since there should be no intersection between the two sets for (int j = 0;j<panelsWithID.size();j++) { TablePanel tempTP = (TablePanel) panelsWithID.get(j); String tryID = "(External) " + tempTP.id; if(addItems.indexOf(tryID) >= 0) addItems.remove(tryID); } //this part sets up the refTable's comboBox editor to have choices //corresponding to every TablePanel that has a valid ID attribute for (int i = 0;i<panelList.size();i++) { TablePanel p = (TablePanel) panelList.get(i); p.setEditor(); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/a60dbd5cd0a0533936e40182c2bc013406b191b7/MetadataPane.java/buggy/loci/ome/notebook/MetadataPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3875, 17348, 1435, 288, 565, 368, 6540, 3071, 777, 1592, 13238, 10769, 353, 358, 87, 730, 1347, 333, 2566, 13605, 18, 565, 368, 31144, 2424, 3134, 3555, 5537, 6035, 565, 3246, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 17348, 1435, 288, 565, 368, 6540, 3071, 777, 1592, 13238, 10769, 353, 358, 87, 730, 1347, 333, 2566, 13605, 18, 565, 368, 31144, 2424, 3134, 3555, 5537, 6035, 565, 3246, ...
ReportScriptExecutor.handleAfterCloseDoc( reportDesign, executionContext );
protected void closeReportDocument( ) { ReportDesignHandle reportDesign = executionContext.getDesign( ); ReportScriptExecutor.handleBeforeCloseDoc( reportDesign, executionContext ); reportDoc.close( ); ReportScriptExecutor.handleAfterCloseDoc( reportDesign, executionContext ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c0422a1db84842d1e332663c3d4c7e2a8109aca8/RenderTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1746, 4820, 2519, 12, 262, 202, 95, 202, 202, 4820, 15478, 3259, 2605, 15478, 273, 30521, 18, 588, 15478, 12, 11272, 202, 202, 4820, 3651, 6325, 18, 4110, 4649, 4605, 1759...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 4820, 2519, 12, 262, 202, 95, 202, 202, 4820, 15478, 3259, 2605, 15478, 273, 30521, 18, 588, 15478, 12, 11272, 202, 202, 4820, 3651, 6325, 18, 4110, 4649, 4605, 1759...
public void testPreviousMemberAfterModuleMember() {
public final void testPreviousMemberAfterModuleMember() {
public void testPreviousMemberAfterModuleMember() { assertPreviousMemberCorrect(EMPTY_CLASS_IN_MODULE, 8, "Blue"); }
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/615094576784f8eacf0891411a5b25d98778892b/TestRubyParser.java/clean/src/org/jedit/ruby/test/TestRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 8351, 4419, 4436, 3120, 4419, 1435, 288, 3639, 1815, 8351, 4419, 16147, 12, 13625, 67, 5237, 67, 706, 67, 12194, 16, 1725, 16, 315, 27986, 8863, 565, 289, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 8351, 4419, 4436, 3120, 4419, 1435, 288, 3639, 1815, 8351, 4419, 16147, 12, 13625, 67, 5237, 67, 706, 67, 12194, 16, 1725, 16, 315, 27986, 8863, 565, 289, 2, -100, ...
while( la(offset).isA(Token.NEWLINE) ) {
while( la(offset).isA(Types.NEWLINE) ) {
public boolean atEnd( boolean ignoringWhitespace ) { try { int offset = 1; if( ignoringWhitespace ) { try { while( la(offset).isA(Token.NEWLINE) ) { offset++; } } catch( Exception e ) {} } if( la(offset) == null ) { return true; } } catch( Exception e ) {} return false; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/64e65829fa69dec52d9653087f9d6e65e59b9028/AbstractTokenStream.java/clean/src/main/org/codehaus/groovy/syntax/AbstractTokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 622, 1638, 12, 1250, 14398, 9431, 262, 288, 3639, 775, 288, 5411, 509, 1384, 273, 404, 31, 5411, 309, 12, 14398, 9431, 262, 288, 7734, 775, 288, 10792, 1323, 12, 7125, 12, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 622, 1638, 12, 1250, 14398, 9431, 262, 288, 3639, 775, 288, 5411, 509, 1384, 273, 404, 31, 5411, 309, 12, 14398, 9431, 262, 288, 7734, 775, 288, 10792, 1323, 12, 7125, 12, 3...
_t = __t147;
_t = __t148;
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST numericExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST plus = null; org.exist.xquery.parser.XQueryAST minus = null; org.exist.xquery.parser.XQueryAST uminus = null; org.exist.xquery.parser.XQueryAST uplus = null; org.exist.xquery.parser.XQueryAST div = null; org.exist.xquery.parser.XQueryAST idiv = null; org.exist.xquery.parser.XQueryAST mod = null; org.exist.xquery.parser.XQueryAST mult = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t142 = _t; plus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t142; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); op.setASTNode(plus); path.addPath(op); step= op; break; } case MINUS: { AST __t143 = _t; minus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t143; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); op.setASTNode(minus); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t144 = _t; uminus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t144; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.setASTNode(uminus); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t145 = _t; uplus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t145; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.setASTNode(uplus); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t146 = _t; div = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t146; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); op.setASTNode(div); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t147 = _t; idiv = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t147; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); op.setASTNode(idiv); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t148 = _t; mod = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); op.setASTNode(mod); path.addPath(op); step= op; break; } case STAR: { AST __t149 = _t; mult = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); op.setASTNode(mult); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
return (i != null) ? i.shortValue() : (-1);
if (i != null) return i.shortValue(); try { return Short.parseShort(s); } catch (Exception e) { return (-1); }
static short classValue(String s) { Short i = (Short) classes.get(s.toUpperCase()); return (i != null) ? i.shortValue() : (-1);}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/8a9755345c9c34f1168b16166d8283223ef1777e/dns.java/clean/org/xbill/DNS/dns.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3025, 667, 620, 12, 780, 272, 13, 288, 202, 4897, 277, 273, 261, 4897, 13, 3318, 18, 588, 12, 87, 18, 869, 8915, 10663, 202, 2463, 261, 77, 480, 446, 13, 692, 277, 18, 6620, 620, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 3025, 667, 620, 12, 780, 272, 13, 288, 202, 4897, 277, 273, 261, 4897, 13, 3318, 18, 588, 12, 87, 18, 869, 8915, 10663, 202, 2463, 261, 77, 480, 446, 13, 692, 277, 18, 6620, 620, 14...
for(int i = 0 ; i < selectedRows.length;i++) { FCPTransferQuery query = (FCPTransferQuery)queries.get(selectedRows[i]); if(query == null) continue; if(e.getSource() == removeItem) { query.stop(core.getQueueManager()); core.getQueueManager().remove(query); tableModel.removeQuery(query); } if(e.getSource() == cancelItem) { query.stop(core.getQueueManager()); } if(e.getSource() == delayItem) { if(query.isRunning() && !query.isFinished()) { query.pause(core.getQueueManager()); core.getQueueManager().moveFromRunningToPendingQueue(query); } } if(e.getSource() == forceRestartItem) { query.stop(core.getQueueManager()); if(query.getMaxAttempt() >= 0) query.setAttempt(0); query.start(core.getQueueManager()); } if(e.getSource() == copyKeysItem) { if(query.getFileKey() != null && !query.getFileKey().equals("")) keys = keys + query.getFileKey() + "\n"; } if(e.getSource() == downloadItem && dir != null) { query.saveFileTo(dir.getPath()); } } /* for i in selectedRows */ if(e.getSource() == copyKeysItem) { StringSelection st = new StringSelection(keys); Clipboard cp = tk.getSystemClipboard(); cp.setContents(st, this); }
Thread action = new Thread(new ActionReplier(e, queries)); action.start();
public void actionPerformed(ActionEvent e) { Toolkit tk = Toolkit.getDefaultToolkit(); String keys = ""; File dir = null; if(e.getSource() == downloadItem) { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle(I18n.getMessage("thaw.common.downloadLocally")); fileChooser.setDirectoryOnly(true); fileChooser.setDialogType(JFileChooser.SAVE_DIALOG); dir = fileChooser.askOneFile(); } for(int i = 0 ; i < selectedRows.length;i++) { FCPTransferQuery query = (FCPTransferQuery)queries.get(selectedRows[i]); if(query == null) continue; if(e.getSource() == removeItem) { query.stop(core.getQueueManager()); core.getQueueManager().remove(query); tableModel.removeQuery(query); } if(e.getSource() == cancelItem) { query.stop(core.getQueueManager()); } if(e.getSource() == delayItem) { if(query.isRunning() && !query.isFinished()) { query.pause(core.getQueueManager()); core.getQueueManager().moveFromRunningToPendingQueue(query); } } if(e.getSource() == forceRestartItem) { query.stop(core.getQueueManager()); if(query.getMaxAttempt() >= 0) query.setAttempt(0); query.start(core.getQueueManager()); } if(e.getSource() == copyKeysItem) { if(query.getFileKey() != null && !query.getFileKey().equals("")) keys = keys + query.getFileKey() + "\n"; } if(e.getSource() == downloadItem && dir != null) { query.saveFileTo(dir.getPath()); } } /* for i in selectedRows */ if(e.getSource() == copyKeysItem) { StringSelection st = new StringSelection(keys); Clipboard cp = tk.getSystemClipboard(); cp.setContents(st, this); } }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/a466f4a11cc5e69663bebf2d5f14aa3b26ff73b6/QueuePanel.java/clean/src/thaw/plugins/queueWatcher/QueuePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 6364, 8691, 13030, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 5621, 202, 202, 780, 1311, 273, 1408, 31, 202, 202, 812, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 6364, 8691, 13030, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 5621, 202, 202, 780, 1311, 273, 1408, 31, 202, 202, 812, 15...
/* if (field == null) System.err.println("Unknown field: " + className + "." + fieldName); */
private void handleLoad(FieldInstruction obj) { consumeStack(obj); Type type = obj.getType(getCPG()); if (type.getSignature().equals(STRING_SIGNATURE)) { try { String className = obj.getClassName(getCPG()); String fieldName = obj.getName(getCPG()); Field field = edu.umd.cs.daveho.ba.Lookup.findField(className, fieldName);/* if (field == null) System.err.println("Unknown field: " + className + "." + fieldName);*/ if (field != null) { // If the field is final, we'll assume that the String value // is static. if (field.isFinal()) pushValue(staticStringTypeInstance); else pushValue(type); return; } } catch (ClassNotFoundException ex) { lookupFailureCallback.reportMissingClass(ex); } } pushValue(type); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/e65bb5a3d8daebc2d098ab03f10aab577289c426/FindRefComparison.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1640, 2563, 12, 974, 11983, 1081, 13, 288, 1082, 202, 21224, 2624, 12, 2603, 1769, 1082, 202, 559, 618, 273, 1081, 18, 588, 559, 12, 588, 4258, 43, 10663, 1082, 202, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1640, 2563, 12, 974, 11983, 1081, 13, 288, 1082, 202, 21224, 2624, 12, 2603, 1769, 1082, 202, 559, 618, 273, 1081, 18, 588, 559, 12, 588, 4258, 43, 10663, 1082, 202, 43...
String[] current_permissions = imcref.sqlProcedure( "GetUserPermissionSet " + meta_id + ", " + user.getUserId() ); int user_set_id = Integer.parseInt( current_permissions[0] ); int user_perm_set = Integer.parseInt( current_permissions[1] ); int currentdoc_perms = Integer.parseInt( current_permissions[2] );
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader( "Host" ); IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterface( req ); String start_url = imcref.getStartUrl(); String servlet_url = Utility.getDomainPref( "servlet_url", host ); imcode.server.user.UserDomainObject user; // Check if user logged on if( (user = Check.userLoggedOn( req, res, start_url )) == null ) { return; } int meta_id = Integer.parseInt( req.getParameter( "meta_id" ) ); int set_id = Integer.parseInt( req.getParameter( "set_id" ) ); res.setContentType( "text/html" ); Writer out = res.getWriter(); if( !imcref.checkDocAdminRights( meta_id, user, 4 ) ) { // Checking to see if user may edit this String output = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if( output != null ) { out.write( output ); } return; } String[] perms = req.getParameterValues( "permissions" ); String[] perms_ex = req.getParameterValues( "permissions_ex" ); int permissions = 0; String newstr = ""; // Check if this is the permissions for new documents, or for this one. if( req.getParameter( "new" ) != null ) { newstr = "New"; } if( req.getParameter( "ok" ) != null ) { // User pressed ok. // Here i fetch the current users set-id and the document-permissions for this document (Whether set-id 1 is more privileged than set-id 2.) String[] current_permissions = imcref.sqlProcedure( "GetUserPermissionSet " + meta_id + ", " + user.getUserId() ); int user_set_id = Integer.parseInt( current_permissions[0] ); int user_perm_set = Integer.parseInt( current_permissions[1] ); int currentdoc_perms = Integer.parseInt( current_permissions[2] ); // I'll make a hashmap to store the users extended permissions in. // The hashmap will map permission_ids to hashsets containing permission_data. HashMap perm_ex_data_map = new HashMap(); // Get an array containing perm_id, perm_data, perm_id, perm_data, and so on. String[] user_permission_data = imcref.sqlProcedure( "GetUserPermissionSetEx " + meta_id + ", " + user.getUserId() ); for( int i = 0; i < user_permission_data.length; i += 2 ) { // Check if the map contains a set for this permission_id HashSet temp_set = (HashSet)perm_ex_data_map.get( user_permission_data[i] ); if( temp_set == null ) { // If not, add it. temp_set = new HashSet(); perm_ex_data_map.put( user_permission_data[i], temp_set ); } // put the permission_data in the set. temp_set.add( user_permission_data[i + 1] ); } // Delete all extended permissions for this permissionset. imcref.sqlUpdateProcedure( "Delete" + newstr + "DocPermissionSetEx " + meta_id + "," + set_id ); // Read checkboxes and OR the values into an int, which is stored in the db. for( int i = 0; perms != null && i < perms.length; ++i ) { int perm = Integer.parseInt( perms[i] ); if( user_set_id == 0 // If current user has full rights, || (user_set_id == 1 // or has set-id 1 && set_id == 2 // and is changing set-id 2 && (user_perm_set & perm) != 0 // and the user has this permission himself && (currentdoc_perms & 1) != 0// and set-id 1 is more privleged than set-id 2 for this document. (Bit 0) ) ) { permissions |= perm; } } imcref.sqlUpdateProcedure( "Set" + newstr + "DocPermissionSet " + meta_id + "," + set_id + "," + permissions ); // Read the select-lists for the new extended permissions, and store the values in the db. for( int i = 0; perms_ex != null && i < perms_ex.length; ++i ) { // We have an array of all extended permissions, // in the form permission_value. I.e. 8_1, 524288_5, and so on. String perm_ex_str = perms_ex[i]; int us_index = perm_ex_str.indexOf( "_" ); // Get the permission... String perm_str = perm_ex_str.substring( 0, us_index ); // ...and the value for the permission. String value_str = perm_ex_str.substring( us_index + 1 ); int perm = Integer.parseInt( perm_str ); int value = Integer.parseInt( value_str ); HashSet temp_set = null; if( user_set_id == 0 // If current user has full rights, || (user_set_id == 1 // or has set-id 1 && set_id == 2 // and is changing set-id 2 // And the user has this particular extended permission. // Get the hashset for the permission_id from the map, and check if it contains the value. && ((temp_set = (HashSet)perm_ex_data_map.get( perm_str )) != null ? temp_set.contains( value_str ) : false) && (currentdoc_perms & 1) != 0// and set-id 1 is more privleged than set-id 2 for this document. (Bit 0) ) ) { imcref.sqlUpdateProcedure( "Set" + newstr + "DocPermissionSetEx " + meta_id + "," + set_id + "," + perm + "," + value ); } } } user.put( "flags", new Integer( 4 ) ); String output = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if( output != null ) { out.write( output ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/8a7363878045cb2ba3378fbfa016c5cfcbe37a1a/SavePermissions.java/clean/servlets/SavePermissions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 1479, 273, 1111, 18, 588, 1864, 12, 315, 2594, 6, 11272, 3639, 6246, 39, 18348, 709, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 1479, 273, 1111, 18, 588, 1864, 12, 315, 2594, 6, 11272, 3639, 6246, 39, 18348, 709, 71...
edge(this, p, q);
edge(this, p, q, FlowGraph.EDGE_KEY_OTHER);
public void edge(Term p, Term q) { edge(this, p, q); }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/6b451d89c6b7f26e1faab51969d8a5f36f4e377e/CFGBuilder.java/buggy/src/polyglot/visit/CFGBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3591, 12, 4065, 293, 16, 6820, 1043, 13, 288, 1377, 3591, 12, 2211, 16, 293, 16, 1043, 16, 9473, 4137, 18, 27732, 67, 3297, 67, 23940, 1769, 565, 289, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3591, 12, 4065, 293, 16, 6820, 1043, 13, 288, 1377, 3591, 12, 2211, 16, 293, 16, 1043, 16, 9473, 4137, 18, 27732, 67, 3297, 67, 23940, 1769, 565, 289, 2, -100, -100, -100, ...
public TimeInput(){ this("timeinput"); }
public TimeInput() { this("timeinput"); }
public TimeInput(){ this("timeinput");}
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/890a3a73f35d6bd9e81389413213c32d77f01b9d/TimeInput.java/buggy/src/java/com/idega/presentation/ui/TimeInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2647, 1210, 1435, 95, 202, 2211, 2932, 957, 2630, 8863, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2647, 1210, 1435, 95, 202, 2211, 2932, 957, 2630, 8863, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public int getLevelImpl() { // if inside a method call's params, this could be part of // an expression, so get the previous line's start if (getParent() instanceof MethodCallHandler) { MethodCallHandler container = ((MethodCallHandler) getParent()) .findContainingMethodCall(this); if (container != null) { if (areOnSameLine(container.getMainAst(), getMainAst())) { return container.getLevel(); } else { return container.getLevel() + getIndentCheck().getIndentationAmount(); } } // if we get here, we are the child of the left hand side (name // side) of a method call with no "containing" call, use // the first non-method callparent ExpressionHandler p = getParent(); while (p instanceof MethodCallHandler) { p = p.getParent(); } return p.suggestedChildLevel(this); } // if our expression isn't first on the line, just use the start // of the line LineSet lines = new LineSet(); findSubtreeLines(lines, (DetailAST) getMainAst().getFirstChild(), true); int firstCol = lines.firstLineCol(); int lineStart = getLineStart(getFirstAst(getMainAst())); if (lineStart != firstCol) { return lineStart; } else { return super.getLevelImpl(); } }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/a4d63db21d57ab53aff8a467f89df3867518ab91/MethodCallHandler.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/MethodCallHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 17236, 2828, 1435, 565, 288, 3639, 368, 309, 4832, 279, 707, 745, 1807, 859, 16, 333, 3377, 506, 1087, 434, 540, 368, 392, 2652, 16, 1427, 336, 326, 2416, 980, 1807, 787, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 17236, 2828, 1435, 565, 288, 3639, 368, 309, 4832, 279, 707, 745, 1807, 859, 16, 333, 3377, 506, 1087, 434, 540, 368, 392, 2652, 16, 1427, 336, 326, 2416, 980, 1807, 787, 363...
getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2;
for(int k=0; k<2; k++) { vtxIndexArr[k] = indexCoord[i]; getVertexData(indexCoord[i++], pnts[k]); }
boolean intersect(PickShape pickShape, PickInfo.IntersectionInfo iInfo, int flags, Point3d iPnt) { Point3d pnts[] = new Point3d[2]; double sdist[] = new double[1]; double minDist = Double.MAX_VALUE; double x = 0, y = 0, z = 0; int count = 0; int minICount = 0; int i = ((vertexFormat & GeometryArray.BY_REFERENCE) == 0 ? initialVertexIndex : initialCoordIndex); pnts[0] = new Point3d(); pnts[1] = new Point3d(); switch (pickShape.getPickType()) { case PickShape.PICKRAY: PickRay pickRay= (PickRay) pickShape; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectLineAndRay(pnts[0], pnts[1], pickRay.origin, pickRay.direction, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKSEGMENT: PickSegment pickSegment = (PickSegment) pickShape; Vector3d dir = new Vector3d(pickSegment.end.x - pickSegment.start.x, pickSegment.end.y - pickSegment.start.y, pickSegment.end.z - pickSegment.start.z); while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectLineAndRay(pnts[0], pnts[1], pickSegment.start, dir, sdist, iPnt) && (sdist[0] <= 1.0)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKBOUNDINGBOX: BoundingBox bbox = (BoundingBox) ((PickBounds) pickShape).bounds; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectBoundingBox(pnts, bbox, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKBOUNDINGSPHERE: BoundingSphere bsphere = (BoundingSphere) ((PickBounds) pickShape).bounds; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectBoundingSphere(pnts, bsphere, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKBOUNDINGPOLYTOPE: BoundingPolytope bpolytope = (BoundingPolytope) ((PickBounds) pickShape).bounds; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectBoundingPolytope(pnts, bpolytope, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKCYLINDER: PickCylinder pickCylinder= (PickCylinder) pickShape; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectCylinder(pnts, pickCylinder, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKCONE: PickCone pickCone= (PickCone) pickShape; while (i < validVertexCount) { getVertexData(indexCoord[i++], pnts[0]); getVertexData(indexCoord[i++], pnts[1]); count += 2; if (intersectCone(pnts, pickCone, sdist, iPnt)) { if (flags == 0) { return true; } if (sdist[0] < minDist) { minDist = sdist[0]; minICount = count; x = iPnt.x; y = iPnt.y; z = iPnt.z; } } } break; case PickShape.PICKPOINT: // Should not happen since API already check for this throw new IllegalArgumentException(J3dI18N.getString("IndexedLineArrayRetained0")); default: throw new RuntimeException ("PickShape not supported for intersection"); } if (minDist < Double.MAX_VALUE) { assert(minICount >=2); int[] vertexIndices = iInfo.getVertexIndices(); if (vertexIndices == null) { vertexIndices = new int[2]; iInfo.setVertexIndices(vertexIndices); } vertexIndices[0] = minICount - 2; vertexIndices[1] = minICount - 1; iPnt.x = x; iPnt.y = y; iPnt.z = z; return true; } return false; }
8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/4ec3ff600b963c703688876ac5b7f5f22e76f3e2/IndexedLineArrayRetained.java/buggy/src/classes/share/javax/media/j3d/IndexedLineArrayRetained.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 9136, 12, 17968, 8500, 6002, 8500, 16, 23038, 966, 18, 23634, 966, 277, 966, 16, 225, 509, 2943, 16, 4686, 23, 72, 277, 52, 496, 13, 288, 3639, 4686, 23, 72, 293, 27932, 8526, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 9136, 12, 17968, 8500, 6002, 8500, 16, 23038, 966, 18, 23634, 966, 277, 966, 16, 225, 509, 2943, 16, 4686, 23, 72, 277, 52, 496, 13, 288, 3639, 4686, 23, 72, 293, 27932, 8526, 2...
context ); System.out.println("continue processing"); } catch ( Exception e ) {
context ); System.out.println( "continue processing" ); } catch ( Exception e ) {
private Rule getContinueProcessing() throws IntrospectionException, InvalidRuleException { final Rule rule = new Rule( "continueProcessng" ); // ----------- // context : Context( state == Context.CHECK_DONE ) // ----------- Column contextColumn = new Column( 0, contextType, "context" ); contextColumn.addConstraint( getLiteralConstraint( contextColumn, "state", new Integer( Context.CHECK_DONE ), this.integerEqualEvaluator ) ); rule.addPattern( contextColumn ); final Declaration contextDeclaration = rule.getDeclaration( "context" ); // ------------ // context.setName( Context.ASSIGN_SEATS ); // ------------ Consequence consequence = new Consequence() { public void invoke(Activation activation) throws ConsequenceException { try { Rule rule = activation.getRule(); Tuple tuple = activation.getTuple(); KnowledgeHelper drools = new DefaultKnowledgeHelper( rule, tuple ); Context context = (Context) tuple.get( contextDeclaration ); context.setState( Context.ASSIGN_SEATS ); drools.modifyObject( tuple.getFactHandleForDeclaration( contextDeclaration ), context ); System.out.println("continue processing"); } catch ( Exception e ) { throw new ConsequenceException( e ); } } }; rule.setConsequence( consequence ); return rule; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/afb42145aeb0d228a638628582631975db4bb473/MannersTest.java/clean/drools-core/src/test/java/org/drools/examples/manners/MannersTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6781, 336, 12378, 7798, 1435, 1216, 3094, 26362, 503, 16, 21821, 1962, 2175, 503, 288, 3639, 727, 6781, 1720, 273, 394, 6781, 12, 315, 17143, 2227, 3368, 6, 11272, 3639, 368, 300, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6781, 336, 12378, 7798, 1435, 1216, 3094, 26362, 503, 16, 21821, 1962, 2175, 503, 288, 3639, 727, 6781, 1720, 273, 394, 6781, 12, 315, 17143, 2227, 3368, 6, 11272, 3639, 368, 300, 1...
void insertData(CharacterData node, int index, String insert) { //node.setNodeValue( // node.getNodeValue().substring(0,index) // +insert+node.getNodeValue().substring(index)); fInsertNode = node; node.insertData( index, insert); fInsertNode = null; //informInsertedText(node, index, insert.length()); }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/743bceae33ff6174a8458ccb866c0c7203cc8859/RangeImpl.java/clean/src/org/apache/xerces/dom/RangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 918, 2243, 751, 12, 7069, 751, 756, 16, 509, 770, 16, 514, 2243, 13, 288, 225, 368, 2159, 18, 542, 907, 620, 12, 225, 368, 756, 18, 588, 907, 620, 7675, 28023, 12, 20, 16, 1615, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2243, 751, 12, 7069, 751, 756, 16, 509, 770, 16, 514, 2243, 13, 288, 225, 368, 2159, 18, 542, 907, 620, 12, 225, 368, 756, 18, 588, 907, 620, 7675, 28023, 12, 20, 16, 1615, 13,...
public void run() { I_CmsReport report = getReport(); try { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_DELETE_THREAD_STARTED_0)); } Iterator j = m_moduleNames.iterator(); while (j.hasNext()) { String moduleName = (String)j.next(); moduleName = moduleName.replace('\\', '/'); CmsProject project = null; Locale userLocale = getCms().getRequestContext().getLocale(); // create a Project to delete the module. project = getCms().createProject(Messages.get().key( userLocale, Messages.GUI_DELETE_MODULE_PROJECT_NAME_0, null), Messages.get().key(userLocale, Messages.GUI_DELETE_MODULE_PROJECT_DESC_1, new Object[] {moduleName}), OpenCms.getDefaultUsers() .getGroupAdministrators(), OpenCms.getDefaultUsers().getGroupAdministrators(), I_CmsConstants.C_PROJECT_TYPE_TEMPORARY); getCms().getRequestContext().setCurrentProject(project); report.print( Messages.get().container(Messages.RPT_DELETE_MODULE_BEGIN_0), I_CmsReport.C_FORMAT_HEADLINE); report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_HTML_ITAG_1, moduleName), I_CmsReport.C_FORMAT_HEADLINE); // copy the resources to the project List projectFiles = OpenCms.getModuleManager().getModule(moduleName).getResources(); for (int i = 0; i < projectFiles.size(); i++) { try { getCms().copyResourceToProject((String)projectFiles.get(i)); } catch (CmsException e) { // may happen if the resource has already been deleted LOG.error(Messages.get().key(Messages.LOG_MOVE_RESOURCE_FAILED_1, projectFiles.get(i)), e); report.println(e); } } // now delete the module OpenCms.getModuleManager().deleteModule(getCms(), moduleName, m_replaceMode, report); report.println( Messages.get().container(Messages.RPT_PUBLISH_PROJECT_BEGIN_0), I_CmsReport.C_FORMAT_HEADLINE); // now unlock and publish the project getCms().unlockProject(project.getId()); getCms().publishProject(report); report.println( Messages.get().container(Messages.RPT_PUBLISH_PROJECT_END_0), I_CmsReport.C_FORMAT_HEADLINE); report.println( Messages.get().container(Messages.RPT_DELETE_MODULE_END_0), I_CmsReport.C_FORMAT_HEADLINE); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_DELETE_THREAD_FINISHED_0)); } } } catch (Exception e) { report.println(e); LOG.error(Messages.get().key(Messages.LOG_MODULE_DELETE_FAILED_1, m_moduleNames), e); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8e5ec1587622bcff5ef3c95201cc74d091b0a04c/CmsModuleDeleteThread.java/clean/src/org/opencms/workplace/threads/CmsModuleDeleteThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 467, 67, 25702, 2605, 273, 22452, 5621, 3639, 775, 288, 5411, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 7734, 2018, 18, 4148, 12, 5058, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 467, 67, 25702, 2605, 273, 22452, 5621, 3639, 775, 288, 5411, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 7734, 2018, 18, 4148, 12, 5058, 18, 588, ...
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID();
public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradingSessionStatus.java/clean/src/java/src/quickfix/fix42/TradingSessionStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, ...
* src.getFilter().getPopInt();
* Util.getItemsProduced(src);
private double getStaticCost(StaticStreamGraph ssg, HashSet usedTiles) { // the tiles used by THIS SSG for routing // this set is filled with tiles that are not assigned but // have been used to route items previously by this SSG HashSet routers = new HashSet(); // allt tiles used for this SSG, add it to used tiles at the end, if // legal HashSet tiles = new HashSet(); //reset the intermediate tiles list intermediateTiles = new HashSet(); Iterator nodes = ssg.getFlatNodes().iterator(); double cost = 0.0; // calculate the communication cost for each node that is assign a tile // in // the ssg while (nodes.hasNext()) { FlatNode src = (FlatNode) nodes.next(); if (!assignToAComputeNode(src)) continue; ComputeNode srcNode = getComputeNode(src); assert srcNode != null; // add the src tile to the list of tiles used by this SSG if (srcNode.isTile()) tiles.add(srcNode); // make sure we have not previously tried to route through this tile // in a previous SSG if (srcNode.isTile() && usedTiles.contains(srcNode)) { // System.out.println(srcNode); // return -1.0; cost += ILLEGAL_WEIGHT; } // get all the dests for this node that are assigned tiles Iterator dsts = getDownStream(src).iterator(); while (dsts.hasNext()) { FlatNode dst = (FlatNode) dsts.next(); if (!assignToAComputeNode(dst)) continue; ComputeNode dstNode = getComputeNode(dst); assert dstNode != null; // add the dst tile to the list of tiles used by this SSG if (dstNode.isTile()) tiles.add(dstNode); // make sure we have not previously (in another SSG) tried to // route // thru the tile assigned to the dst if (dstNode.isTile() && usedTiles.contains(dstNode)) { // System.out.println(dstNode); cost += ILLEGAL_WEIGHT; // return -1.0; } ComputeNode[] route = (ComputeNode[]) router.getRoute(ssg, srcNode, dstNode).toArray(new ComputeNode[0]); // check if we cannot find a route from src to dst that does not // go // thru another ssg if (route.length == 0) { // System.out.println("Cannot find route from src to dst // within SSG " + // src + "(" + srcNode + ") -> " + dst + "(" + dstNode + // ")"); cost += ILLEGAL_WEIGHT; // return -1.0; } // find the cost of the route, penalize routes that go thru // tiles assigned to filters or joiners, reward routes that go // thru // non-assigned tiles double numAssigned = 0.0; for (int i = 1; i < route.length - 1; i++) { assert route[i].isTile(); //add this intermediate hop tile to the list of intermediate tiles intermediateTiles.add(route[i]); // make sure that this route does not pass thru any tiles // assigned to other SSGs // otherwise we have a illegal layout!!!! if (usedTiles.contains(route[i])) { cost += ILLEGAL_WEIGHT; // return -1.0; } // add this tile to the set of tiles used by this SSG tiles.add(route[i]); /* * if (getNode((RawTile)route[i]) != null) //assigned tile * numAssigned += ASSIGNED_WEIGHT * (1.0 / * workEstimates.getEstimate(getNode((RawTile)route[i]))); * else { */ // router tile, only penalize it if we have routed through // it before if (routers.contains(route[i]) || (getNode((RawTile) route[i]) != null)) numAssigned += ROUTER_WEIGHT; else // now it is a router tile routers.add(route[i]); /* } */ } int hops = route.length - 2; // the number of items sent over this channel for one execution // of entire // SSG, from src to dest int items = 0; // now calculate the number of items sent per firing of SSG // if we are sending thru a splitter we have to be careful // because not // all the data that the src produces goes to the dest if (src.edges[0].isSplitter()) { // if the dest is a filter, then just calculate the number // of items // the dest filter receives if (dst.isFilter()) items = ssg.getMult(dst, false) * dst.getFilter().getPopInt(); else { // this is a joiner assert dst.isJoiner(); // the percentage of items that go to this dest double rate = 1.0; // we are sending to a joiner thru a splitter, this will // only happen // for a feedback loop, the feedback path is always way // 0 thru the joiner if (dst.inputs > 1) rate = ((double) dst.incomingWeights[0]) / ((double) dst.getTotalIncomingWeights()); // now calculate the rate at which the splitter sends to // the joiner rate = rate * (((double) src.edges[0].weights[0]) / ((double) src.edges[0] .getTotalOutgoingWeights())); // now calculate the number of items sent to this dest // by this filter items = (int) rate * ssg.getMult(dst, false) * src.getFilter().getPopInt(); } } else { // sending without intermediate splitter // get the number of items sent int push = 0; if (src.isFilter()) push = src.getFilter().getPushInt(); else // joiner push = 1; items = ssg.getMult(src, false) * push; } items *= Util.getTypeSize(Util.getOutputType(src)); // calculate communication cost of this node and add it to the // cost sum // what we really want to do here is add to the latency the work // estimation sum of all the routes that this route crosses... // um, yeah cost += ((items * hops) + (/* items */numAssigned)); } } SpaceDynamicBackend.addAll(usedTiles, tiles); return cost; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/ca95d063513374d7acc8beaff007baf2099bb26c/Layout.java/buggy/streams/src/at/dms/kjc/spacedynamic/Layout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 23414, 8018, 12, 5788, 1228, 4137, 272, 1055, 16, 6847, 1399, 27669, 13, 288, 3639, 368, 326, 12568, 1399, 635, 20676, 12867, 43, 364, 7502, 3639, 368, 333, 444, 353, 6300, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 23414, 8018, 12, 5788, 1228, 4137, 272, 1055, 16, 6847, 1399, 27669, 13, 288, 3639, 368, 326, 12568, 1399, 635, 20676, 12867, 43, 364, 7502, 3639, 368, 333, 444, 353, 6300, 59...
VM.assert(isPageAligned(address) && isPageMultiple(size));
VM._assert(isPageAligned(address) && isPageMultiple(size));
public static boolean msync(VM_Address address, int size, int flags) { if (VM.VerifyAssertions) VM.assert(isPageAligned(address) && isPageMultiple(size)); VM_BootRecord bootRecord = VM_BootRecord.the_boot_record; return VM.sysCall3(bootRecord.sysMSyncIP, address.toInt(), size, flags) == 0; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f852e312fd5d6396bdeff809dda7a5e06d3d3bed/VM_Memory.java/buggy/rvm/src/vm/runtime/VM_Memory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 4086, 1209, 12, 7397, 67, 1887, 1758, 16, 509, 963, 16, 509, 2943, 13, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 1377, 8251, 6315, 11231, 12, 291, 1964, 28495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 4086, 1209, 12, 7397, 67, 1887, 1758, 16, 509, 963, 16, 509, 2943, 13, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 1377, 8251, 6315, 11231, 12, 291, 1964, 28495...
encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
private static void encodeDoubleBigEndian(StringBuffer result, double d) { encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2017, 5265, 9901, 7583, 12, 780, 1892, 563, 16, 1645, 302, 13, 288, 202, 565, 2017, 3708, 9901, 7583, 12, 2088, 16, 3698, 18, 9056, 30220, 6495, 12, 72, 10019, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2017, 5265, 9901, 7583, 12, 780, 1892, 563, 16, 1645, 302, 13, 288, 202, 565, 2017, 3708, 9901, 7583, 12, 2088, 16, 3698, 18, 9056, 30220, 6495, 12, 72, 10019, 225,...
Expr Expression = (Expr) getRhsSym(6); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } case 530: { TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); Object Valueopt = (Object) getRhsSym(3); Object Unsafeopt = (Object) getRhsSym(4); Expr distr = (Expr) getRhsSym(6); Expr initializer = (Expr) getRhsSym(8); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } case 531: { TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); Object Valueopt = (Object) getRhsSym(3); Object Unsafeopt = (Object) getRhsSym(4);
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 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, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 54...
advancePhase();
return true;
private void setupMove() { // If there are no legal moves, move on. if (highlightMobileCritters() < 1) { advancePhase(); } else { map.setupMoveMenu(); Player player = getActivePlayer(); if (player.getOption(Options.autoBattleMove)) { player.aiBattleMove(); } } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/543d46c48561719e348608f3b5a38fdb268872cc/Battle.java/clean/Colossus/Battle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 7607, 1435, 565, 288, 3639, 368, 971, 1915, 854, 1158, 19286, 13934, 16, 3635, 603, 18, 3639, 309, 261, 15978, 19584, 39, 583, 5432, 1435, 411, 404, 13, 3639, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 7607, 1435, 565, 288, 3639, 368, 971, 1915, 854, 1158, 19286, 13934, 16, 3635, 603, 18, 3639, 309, 261, 15978, 19584, 39, 583, 5432, 1435, 411, 404, 13, 3639, 288, 5411, ...
if (e.isDirty()) return true;
if (e.isDirty()) { return true; }
public boolean isDirty() { for (int i = 0; i < innerEditors.length; i++) { IEditorPart e = innerEditors[i]; if (e.isDirty()) return true; } return false; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/MultiEditor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 25206, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3443, 4666, 1383, 18, 2469, 31, 277, 27245, 288, 5411, 467, 6946, 1988, 425, 273, 3443, 4666, 1383, 63, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25206, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3443, 4666, 1383, 18, 2469, 31, 277, 27245, 288, 5411, 467, 6946, 1988, 425, 273, 3443, 4666, 1383, 63, 7...
monitor.beginTask("", finalEditors.size());
monitorWrap.beginTask("", finalEditors.size());
public void run(IProgressMonitor monitor) {// try { // @issue reference to workspace to run runnable/* IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor); ResourcesPlugin.getWorkspace().run(workspaceOp, monitorWrap);*///--------- This code was in the IWorkspaceRunnable above monitor.beginTask("", finalEditors.size()); //$NON-NLS-1$ Iterator enum = finalEditors.iterator(); while (enum.hasNext()) { IEditorPart part = (IEditorPart) enum.next(); part.doSave(new SubProgressMonitor(monitor, 1)); if (monitor.isCanceled()) break; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/992fc4d46fd179609e0f556b4c6affa612b7ed50/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 20308, 6862, 202, 45, 5491, 7187, 6438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 20308, 6862, 202, 45, 5491, 7187, 6438, ...
if (debug) System.out.println("---------------getFileList ");
private List getFileList(CancelTask cancelTask) { if (debug) System.out.println("---------------getFileList "); ArrayList fileList = new ArrayList(); for (int i = 0; i < scanList.size(); i++) { Directory d = (Directory) scanList.get(i); crawlDirectory(d.dirName, d.suffix, d.dateFormatMark, d.enhance, fileList, cancelTask); if ((cancelTask != null) && cancelTask.isCancel()) return null; } Collections.sort(fileList, new Comparator() { public int compare(Object o1, Object o2) { MyFile mf1 = (MyFile) o1; MyFile mf2 = (MyFile) o2; if (isDate) return mf1.dateCoord.compareTo(mf2.dateCoord); else return mf1.file.getName().compareTo(mf2.file.getName()); } }); return fileList; }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/b0404daf12e2383fdcab31178ed65cf88b9c105e/Aggregation.java/buggy/cdm/src/main/java/ucar/nc2/ncml/Aggregation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 987, 6034, 682, 12, 6691, 2174, 3755, 2174, 13, 288, 4202, 2407, 18645, 273, 394, 2407, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4135, 682, 18, 1467, 5621, 277, 2724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 987, 6034, 682, 12, 6691, 2174, 3755, 2174, 13, 288, 4202, 2407, 18645, 273, 394, 2407, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4135, 682, 18, 1467, 5621, 277, 2724...
balancing = new BalanceThread(this); Thread t = new Thread(balancing); t.start();
xr = new XmlReader(url); navigator = new Navigator(graph, xr); Balancer balancing = new Balancer(this); navigator.navigateFirst(startNodeName); Thread navigateThread = new Thread(navigator); Thread balanceThread = new Thread(balancing); balanceThread.start(); navigateThread.start();
public void start() { xr = new XmlReader(url); graph.setXmlReader(xr); xr.getNodeData(startNodeName,graph); graph.navigateTo(Graph.centerNode); bi = new BufferedImage( Config.windowwidth, Config.windowheight, BufferedImage.TYPE_INT_RGB); bg = (Graphics2D) bi.getGraphics(); bg.setClip( Config.viewstartx, Config.viewstarty, Config.viewwidth, Config.viewheight); balancing = new BalanceThread(this); Thread t = new Thread(balancing); t.start(); //CanvaxVertex.setanimator(a); }
1796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1796/de9e2c4a8f697872a5f47e00d06399692e38e1fb/Can3d.java/clean/tiki/lib/wiki3d/Can3d.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 288, 202, 202, 92, 86, 273, 394, 5714, 2514, 12, 718, 1769, 202, 202, 4660, 18, 542, 4432, 2514, 12, 92, 86, 1769, 202, 202, 92, 86, 18, 588, 23911, 12, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 1435, 288, 202, 202, 92, 86, 273, 394, 5714, 2514, 12, 718, 1769, 202, 202, 4660, 18, 542, 4432, 2514, 12, 92, 86, 1769, 202, 202, 92, 86, 18, 588, 23911, 12, 19...
public boolean isPassed() {
public boolean isPassed(){
public boolean isPassed() { return passed; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/VariablePassedAsArgumentVisitor.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/VariablePassedAsArgumentVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22530, 1435, 95, 3639, 327, 2275, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22530, 1435, 95, 3639, 327, 2275, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...