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
if (!validateLabel(label))
if (!validateLabel(label)) {
public PerspectiveDescriptor createPerspective(String label, PerspectiveDescriptor originalDescriptor) { // Sanity check to avoid invalid or duplicate labels. if (!validateLabel(label)) return null; if (findPerspectiveWithLabel(label) != null) return null; // Calculate ID. String id = label.replace(' ', '_'); id = id.trim(); // Create descriptor. PerspectiveDescriptor desc = new PerspectiveDescriptor(id, label, originalDescriptor); add(desc); return desc; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 453, 414, 16772, 3187, 752, 14781, 16772, 12, 780, 1433, 16, 1082, 202, 14781, 16772, 3187, 2282, 3187, 13, 288, 202, 202, 759, 23123, 866, 358, 4543, 2057, 578, 6751, 3249, 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, 225, 202, 482, 453, 414, 16772, 3187, 752, 14781, 16772, 12, 780, 1433, 16, 1082, 202, 14781, 16772, 3187, 2282, 3187, 13, 288, 202, 202, 759, 23123, 866, 358, 4543, 2057, 578, 6751, 3249, 18,...
String cmsfolder=(String)(((Hashtable)userObject).get("cmsfolder"));
protected String buildNavFold(CmsObject cms, CmsXmlTemplateFile xmlDataBlock, Object userObject, Vector resources, String requestedUri, String currentFolder, String servletPath,int level) throws CmsException { String cmsfolder=(String)(((Hashtable)userObject).get("cmsfolder")); StringBuffer result = new StringBuffer(); int size = resources.size(); String navLink[] = new String[size]; String navText[] = new String[size]; float navPos[] = new float[size]; int max=extractNav(cms,resources,navLink,navText,navPos); if (max>0) { result.append(xmlDataBlock.getProcessedDataValue("navTreeStart", this, userObject)); for(int i=0; i<max; i++) { xmlDataBlock.setData("navText", navText[i]); xmlDataBlock.setData("count", new Integer(i+1).toString()); xmlDataBlock.setData("level", new Integer(extractLevel(cms,navLink[i])-(level+1)).toString()); // this if condition is necessary because of url parameter, // if there is no filename then the parameters are ignored, so I // can't use e.g. ?cmsframe=body. if (navLink[i].endsWith("/")) { String cmsfold="?cmsfolder="+ Encoder.escape(navLink[i]); String navIndex=cms.readProperty(navLink[i],C_PROPERTY_NAVINDEX); if (navIndex==null) { navIndex=C_NAVINDEX; } try { cms.readFile(navLink[i] + navIndex); xmlDataBlock.setData("navLink", servletPath + navLink[i] + navIndex + cmsfold); } catch (CmsException e) { xmlDataBlock.setData("navLink", servletPath + requestedUri ); } } else { try { cms.readFile(navLink[i]); xmlDataBlock.setData("navLink", servletPath + navLink[i] ); } catch (CmsException e) { xmlDataBlock.setData("navLink", servletPath + requestedUri ); } } // Check if nav is current nav if (navLink[i].equals(currentFolder) || navLink[i].equals(requestedUri)) { result.append(xmlDataBlock.getProcessedDataValue("navCurrent", this, userObject)); } else { result.append(xmlDataBlock.getProcessedDataValue("navEntry", this, userObject)); } // if the folder was clicked if (cmsfolder!=null && (!cmsfolder.equals("")) && (cmsfolder.indexOf(navLink[i])!=-1)) { Vector all=cms.getSubFolders(navLink[i]); Vector files=cms.getFilesInFolder(navLink[i]); all.ensureCapacity(all.size() + files.size()); Enumeration e = files.elements(); while (e.hasMoreElements()) { all.addElement(e.nextElement()); } result.append(buildNavFold(cms,xmlDataBlock,userObject,all,requestedUri,currentFolder,servletPath,level)); } } result.append(xmlDataBlock.getProcessedDataValue("navTreeEnd", this, userObject)); } return result.toString(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e830ba5cf98ad761b43337a5f53977c1a7689de2/CmsXmlNav.java/buggy/src/com/opencms/defaults/CmsXmlNav.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1361, 12599, 15592, 12, 4747, 921, 6166, 16, 16084, 2283, 812, 2025, 751, 1768, 16, 1033, 729, 921, 16, 5589, 2703, 16, 514, 3764, 3006, 16, 514, 783, 3899, 16, 514, 810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1361, 12599, 15592, 12, 4747, 921, 6166, 16, 16084, 2283, 812, 2025, 751, 1768, 16, 1033, 729, 921, 16, 5589, 2703, 16, 514, 3764, 3006, 16, 514, 783, 3899, 16, 514, 810...
protected void doDSPost(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String button = UIUtil.getSubmitButton(request, "submit"); if (button.equals("submit_add")) { // add an EPerson, then jump user to edit page EPerson e = EPerson.create(context); // create clever name and do update before continuing e.setEmail("newuser"+e.getID()); e.update(); //showEPeople(context, request, response); request.setAttribute("eperson", e); JSPManager.showJSP(request, response, "/admin/eperson-edit.jsp"); context.complete(); } else if (button.equals("submit_edit")) { // edit an eperson EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); request.setAttribute("eperson", e); JSPManager.showJSP(request, response, "/admin/eperson-edit.jsp"); context.complete(); } else if (button.equals("submit_save")) { // Update the metadata for an e-person EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); // see if the user changed the email - if so, make sure // the new email is unique String oldEmail = e.getEmail(); String newEmail = request.getParameter("email").trim(); if( !newEmail.equals( oldEmail ) ) { // change, now see if it's unique if( EPerson.findByEmail( context, newEmail ) == null ) { // it's unique - proceed! e.setEmail( newEmail ); e.setFirstName(request.getParameter("firstname").equals("") ? null : request.getParameter("firstname")); e.setLastName(request.getParameter("lastname").equals("") ? null : request.getParameter("lastname")); // FIXME: More data-driven? e.setMetadata("phone", request.getParameter("phone").equals("") ? null : request.getParameter("phone")); e.setCanLogIn(request.getParameter("can_log_in") != null && request.getParameter("can_log_in").equals("true")); e.setRequireCertificate( request.getParameter("require_certificate") != null && request.getParameter("require_certificate").equals("true")); e.update(); showMain(context, request, response); context.complete(); } else { // not unique - send error message & let try again request.setAttribute("eperson", e); request.setAttribute("error_message", "That EMail is in use by another EPerson. Emails must be unique."); JSPManager.showJSP(request, response, "/admin/eperson-edit.jsp"); context.complete(); } } } else if (button.equals("submit_delete")) { // Start delete process - go through verification step EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); request.setAttribute("eperson", e); JSPManager.showJSP(request, response, "/admin/eperson-confirm-delete.jsp"); } else if (button.equals("submit_confirm_delete")) { // User confirms deletion of type EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); e.delete(); showMain(context, request, response); context.complete(); } else if (button.equals("submit_browse")) { // user wants to browse String pageRequest = request.getParameter("page_request"); int pageIndex = UIUtil.getIntParameter(request, "page_index"); String sortby = request.getParameter("sortby"); int sortField = EPerson.EMAIL; // default int pageSize = 50; if (sortby == null) { } else if (sortby.equals("lastname")) { sortField = EPerson.LASTNAME; } else if (sortby.equals("id")) { sortField = EPerson.ID; } if (pageIndex == -1) { pageIndex = 0; // default page is 0 } // get back "next" and "previous" messages // can also insert numbers here if (pageRequest != null) { if (pageRequest.equals("next")) { pageIndex++; } else { pageIndex--; } } EPerson[] epeople = EPerson.findAll(context, sortField); int pageCount = ((epeople.length-1)/pageSize)+1; request.setAttribute("epeople", epeople ); request.setAttribute("page_size", new Integer(pageSize )); request.setAttribute("page_count", new Integer(pageCount)); request.setAttribute("page_index", new Integer(pageIndex)); JSPManager.showJSP(request, response, "/admin/eperson-browse.jsp"); } else { // Cancel etc. pressed - show list again showMain(context, request, response); } }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/17bfff55651a6ca573f417ccc16fe4feb8e889e9/EPersonAdminServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/admin/EPersonAdminServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 40, 3118, 669, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 514, 3568, 273, 6484,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 40, 3118, 669, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 514, 3568, 273, 6484,...
return new ASTUsingDirective( scope, duple.toString(), startingOffset, startingLine, endingOffset, endingLine, duple.getFilename() );
return new ASTUsingDirective( scope, duple.toString(), startingOffset, startingLine, endingOffset, endingLine, duple.getFilename(), duple.getStartOffset(), duple.getEndOffset(), duple.getLineNumber() );
public IASTUsingDirective createUsingDirective(IASTScope scope, ITokenDuple duple, int startingOffset, int startingLine, int endingOffset, int endingLine) { return new ASTUsingDirective( scope, duple.toString(), startingOffset, startingLine, endingOffset, endingLine, duple.getFilename() ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/9ac724d2edcb3085225e8e4e3281e34bca88c97d/QuickParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/QuickParseASTFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 9053, 7736, 13307, 752, 7736, 13307, 12, 45, 9053, 3876, 2146, 16, 467, 1345, 40, 2268, 302, 2268, 16, 509, 5023, 2335, 16, 509, 5023, 1670, 16, 509, 11463, 2335, 16, 509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 9053, 7736, 13307, 752, 7736, 13307, 12, 45, 9053, 3876, 2146, 16, 467, 1345, 40, 2268, 302, 2268, 16, 509, 5023, 2335, 16, 509, 5023, 1670, 16, 509, 11463, 2335, 16, 509...
public void mBOOL() throws RecognitionException { try { ruleNestingLevel++; int _type = BOOL; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1326:4: ( ( 'true' | 'false' ) ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1326:4: ( 'true' | 'false' ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1326:4: ( 'true' | 'false' ) int alt15=2; int LA15_0 = input.LA(1); if ( (LA15_0=='t') ) { alt15=1; } else if ( (LA15_0=='f') ) { alt15=2; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1326:4: ( 'true' | 'false' )", 15, 0, input); throw nvae; } switch (alt15) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1326:5: 'true' { match("true"); if (failed) return ; } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1326:12: 'false' { match("false"); if (failed) return ; } break; } } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 19040, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 9784, 1741, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 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, 377, 1071, 918, 312, 19040, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 9784, 1741, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621...
void lostTaskTracker(String trackerName) {
void lostTaskTracker(String trackerName, String hostname) {
void lostTaskTracker(String trackerName) { LOG.info("Lost tracker '" + trackerName + "'"); TreeSet lostTasks = (TreeSet) trackerToTaskMap.get(trackerName); trackerToTaskMap.remove(trackerName); if (lostTasks != null) { for (Iterator it = lostTasks.iterator(); it.hasNext(); ) { String taskId = (String) it.next(); TaskInProgress tip = (TaskInProgress) taskidToTIPMap.get(taskId); // Tell the job to fail the relevant task JobInProgress job = tip.getJob(); job.failedTask(tip, taskId, trackerName); } } }
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/50de9d51b6043b8802f1ca8befb218affb724fab/JobTracker.java/clean/src/java/org/apache/hadoop/mapred/JobTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 13557, 2174, 8135, 12, 780, 9745, 461, 16, 514, 5199, 13, 288, 3639, 2018, 18, 1376, 2932, 19024, 9745, 2119, 397, 9745, 461, 397, 5862, 1769, 3639, 19461, 13557, 6685, 273, 261, 247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13557, 2174, 8135, 12, 780, 9745, 461, 16, 514, 5199, 13, 288, 3639, 2018, 18, 1376, 2932, 19024, 9745, 2119, 397, 9745, 461, 397, 5862, 1769, 3639, 19461, 13557, 6685, 273, 261, 247...
public void setProjectChanged() {
public void setProjectChanged(boolean changed) {
public FileGroupingState _makeFlatFileGroupingState() { return new FileGroupingState(){ public File getBuildDirectory(){ return null; } public boolean isProjectActive(){ return false; } public boolean isInProjectPath(OpenDefinitionsDocument doc){ return false; } public File getProjectFile() { return null; } public void setBuildDirectory(File f) { //Do nothing } public File[] getProjectFiles() { return null; } public boolean isProjectFile(File f) { return false; } public boolean isProjectChanged() { return false; } public void setProjectChanged() { //Do nothing } }; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/297ab8f541fdccc79367d02c322b7113ca0c7fca/DefaultGlobalModel.java/buggy/drjava/src/edu/rice/cs/drjava/model/DefaultGlobalModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1387, 21014, 1119, 389, 6540, 16384, 812, 21014, 1119, 1435, 288, 565, 327, 394, 1387, 21014, 1119, 1435, 95, 1377, 1071, 1387, 21122, 2853, 1435, 95, 3639, 327, 446, 31, 1377, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 21014, 1119, 389, 6540, 16384, 812, 21014, 1119, 1435, 288, 565, 327, 394, 1387, 21014, 1119, 1435, 95, 1377, 1071, 1387, 21122, 2853, 1435, 95, 3639, 327, 446, 31, 1377, 289, ...
JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true);
JPanel bar = new JPanel();
private JPanel buildToolBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.add(cancelButton); bar.add(saveButton); return UIUtilities.buildComponentPanelRight(bar); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/3b273af3a5320ab0a054540f14a3c299ff01de69/ImgSaverPreviewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaverPreviewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 1361, 6364, 5190, 1435, 565, 288, 3639, 804, 6364, 5190, 4653, 273, 394, 804, 6364, 5190, 5621, 3639, 4653, 18, 542, 4723, 429, 12, 5743, 1769, 3639, 4653, 18, 542, 4984, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24048, 1361, 6364, 5190, 1435, 565, 288, 3639, 804, 6364, 5190, 4653, 273, 394, 804, 6364, 5190, 5621, 3639, 4653, 18, 542, 4723, 429, 12, 5743, 1769, 3639, 4653, 18, 542, 4984, 218...
props.put( n, v );
if( "jkHome".equals( n ) ) { setJkHome( v ); } else { props.put( n, v ); }
public void setProperty( String n, String v ) { props.put( n, v ); }
10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/e47db653f172ca87f95ebe47ee063a57731debe3/JkMain.java/buggy/java/org/apache/jk/server/JkMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7486, 12, 514, 290, 16, 514, 331, 262, 288, 3639, 309, 12, 315, 26921, 8684, 9654, 14963, 12, 290, 262, 262, 288, 444, 46, 79, 8684, 12, 331, 11272, 289, 469, 288, 3458, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7486, 12, 514, 290, 16, 514, 331, 262, 288, 3639, 309, 12, 315, 26921, 8684, 9654, 14963, 12, 290, 262, 262, 288, 444, 46, 79, 8684, 12, 331, 11272, 289, 469, 288, 3458, 18...
tempFile = File.createTempFile(prefix, suffix);
file = File.createTempFile(prefix, suffix);
public synchronized void sfDeploy() throws SmartFrogException, RemoteException { super.sfDeploy(); String prefix = sfResolve(ATTR_PREFIX, "", true); if(prefix.length()==0) { throw new SmartFrogException(ERROR_PREFIX_EMPTY,this); } String suffix = sfResolve(ATTR_SUFFIX, (String) null, false); String dir; dir=FileSystem.lookupAbsolutePath(this,ATTR_DIRECTORY,null,null,false,null); String text = sfResolve(ATTR_TEXT, (String) null, false); if (sfLog().isDebugEnabled()){ sfLog().debug("Creating temp file in dir ["+dir+"], prefix="+prefix +", suffix="+suffix+", text="+text); } File tempFile; try { if (dir == null) { tempFile = File.createTempFile(prefix, suffix); } else { File directory = new File(dir); directory.mkdirs(); tempFile = File.createTempFile(prefix, suffix, directory); } } catch (IOException e) { throw SmartFrogException.forward(e); } //Create File content if needed if (text!=null) { String encoding = null; encoding = sfResolve(ATTR_TEXT_ENCODING, (String)null, true); Writer wout = null; try { OutputStream fout; fout = new FileOutputStream(getFile()); wout = new OutputStreamWriter(fout, encoding); wout.write(text); wout.flush(); wout.close(); } catch (IOException ioe) { if (wout!=null) { try { wout.close(); } catch (IOException ignored) { //ignore this } } throw SmartFrogException.forward("When trying to write to "+ getFile(),ioe); } } //bind to the temp file bind(tempFile); sfReplaceAttribute(FileUsingComponent.ATTR_FILENAME, tempFile.toString()); }
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/112507e56b6b43d363ff3e314a2983b00b18d2cf/TempFileImpl.java/clean/core/smartfrog/src/org/smartfrog/services/filesystem/TempFileImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 9033, 10015, 1435, 1216, 19656, 42, 303, 75, 503, 16, 18361, 288, 3639, 2240, 18, 21668, 10015, 5621, 3639, 514, 1633, 273, 9033, 8460, 12, 12043, 67, 6307, 16, 23453, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 9033, 10015, 1435, 1216, 19656, 42, 303, 75, 503, 16, 18361, 288, 3639, 2240, 18, 21668, 10015, 5621, 3639, 514, 1633, 273, 9033, 8460, 12, 12043, 67, 6307, 16, 23453, 63...
if (categoryAbbrev != null) outputStream.print(categoryAbbrev);
if (categoryAbbrev == null) categoryAbbrev = OTHER_CATEGORY_ABBREV; outputStream.print(categoryAbbrev);
protected void printBug(BugInstance bugInstance) { switch (bugInstance.getPriority()) { case Detector.EXP_PRIORITY: outputStream.print("E "); break; case Detector.LOW_PRIORITY: outputStream.print("L "); break; case Detector.NORMAL_PRIORITY: outputStream.print("M "); break; case Detector.HIGH_PRIORITY: outputStream.print("H "); break; } BugPattern pattern = bugInstance.getBugPattern(); if (pattern != null) { String categoryAbbrev = categoryMap.get(pattern.getCategory()); if (categoryAbbrev != null) outputStream.print(categoryAbbrev); } if (useLongBugCodes) { outputStream.print(bugInstance.getType()); outputStream.print(" "); } SourceLineAnnotation line = bugInstance.getPrimarySourceLineAnnotation(); if (line == null) outputStream.println(bugInstance.getMessage()); else outputStream.println(bugInstance.getMessage() + " " + line.toString()); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b9e9e50bf107c802e67ebec6cabda4b1c7099078/TextUIBugReporter.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/TextUIBugReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 19865, 12, 19865, 1442, 7934, 1442, 13, 288, 202, 202, 9610, 261, 925, 1442, 18, 588, 8183, 10756, 288, 202, 202, 3593, 22198, 18, 16109, 67, 19804, 30, 1082, 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, 225, 202, 1117, 918, 1172, 19865, 12, 19865, 1442, 7934, 1442, 13, 288, 202, 202, 9610, 261, 925, 1442, 18, 588, 8183, 10756, 288, 202, 202, 3593, 22198, 18, 16109, 67, 19804, 30, 1082, 202, ...
User cUser = UserDirectoryService.getCurrentUser();
private void sendSiteRequest(SessionState state, String request, int requestListSize, List requestFields) { boolean sendEmailToRequestee = false; StringBuffer buf = new StringBuffer(); // get the request email from configuration String requestEmail = ServerConfigurationService.getString("setup.request", null); if (requestEmail == null) { M_log.warn(this + " - no 'setup.request' in configuration"); } else { String noEmailInIdAccountName = ServerConfigurationService.getString("noEmailInIdAccountName", ""); SiteInfo siteInfo = (SiteInfo)state.getAttribute(STATE_SITE_INFO); Site site = getStateSite(state); String id = site.getId(); String title = site.getTitle(); Time time = TimeService.newTime(); String local_time = time.toStringLocalTime(); String local_date = time.toStringLocalDate(); Term term = null; boolean termExist = false; if (state.getAttribute(STATE_TERM_SELECTED) != null) { termExist = true; term = (Term) state.getAttribute(STATE_TERM_SELECTED); } String productionSiteName = ServerConfigurationService.getServerName(); String from = NULL_STRING; String to = NULL_STRING; String headerTo = NULL_STRING; String replyTo = NULL_STRING; String message_subject = NULL_STRING; String content = NULL_STRING; String sessionUserName = UserDirectoryService.getCurrentUser().getDisplayName(); String sessionUserId = StringUtil.trimToZero(SessionManager.getCurrentSessionUserId()); String additional = NULL_STRING; if (request.equals("new")) { additional = siteInfo.getAdditional(); } else { additional = (String)state.getAttribute(FORM_ADDITIONAL); } boolean isFutureTerm = false; if (state.getAttribute(STATE_FUTURE_TERM_SELECTED) != null && ((Boolean) state.getAttribute(STATE_FUTURE_TERM_SELECTED)).booleanValue()) { isFutureTerm = true; } // message subject if (termExist) { message_subject = rb.getString("java.sitereqfrom")+" " + sessionUserName + " " + rb.getString("java.for") + " " + term.getId(); } else { message_subject = rb.getString("java.official")+" " + sessionUserName; } // there is no offical instructor for future term sites String requestId = (String) state.getAttribute(STATE_SITE_QUEST_UNIQNAME); if (!isFutureTerm) { //To site quest account - the instructor of record's if (requestId != null) { try { User instructor = UserDirectoryService.getUser(requestId); from = requestEmail; to = instructor.getEmail(); headerTo = instructor.getEmail(); replyTo = requestEmail; buf.append(rb.getString("java.hello")+" \n\n"); buf.append(rb.getString("java.receiv")+" " + sessionUserName + ", "); buf.append(rb.getString("java.who")+"\n"); if (termExist) { buf.append(term.getTerm() + " " + term.getYear() + "\n"); } // what are the required fields shown in the UI List requiredFields = CourseManagementService.getCourseIdRequiredFields(); for (int i = 0; i < requestListSize; i++) { List requiredFieldList = (List) requestFields.get(i); for (int j = 0; j < requiredFieldList.size(); j++) { String requiredField = (String) requiredFields.get(j); buf.append(requiredField +"\t" + requiredFieldList.get(j) + "\n"); } } buf.append("\n\n"+rb.getString("java.according")+" " + sessionUserName + " "+rb.getString("java.record")); buf.append(" " + rb.getString("java.canyou")+" " + sessionUserName + " "+ rb.getString("java.assoc")+"\n\n"); buf.append(rb.getString("java.respond")+" " + sessionUserName + rb.getString("java.appoint")+"\n\n"); buf.append(rb.getString("java.thanks")+"\n"); buf.append(productionSiteName + " "+rb.getString("java.support")); content = buf.toString(); // send the email EmailService.send(from, to, message_subject, content, headerTo, replyTo, null); // email has been sent successfully sendEmailToRequestee = true; } catch (UserNotDefinedException ee) { } // try } } //To Support from = UserDirectoryService.getCurrentUser().getEmail(); to = requestEmail; headerTo = requestEmail; replyTo = UserDirectoryService.getCurrentUser().getEmail(); buf.setLength(0); buf.append(rb.getString("java.to")+"\t\t" + productionSiteName + " "+rb.getString("java.supp")+"\n"); buf.append("\n"+rb.getString("java.from")+"\t" + sessionUserName + "\n"); if (request.equals("new")) { buf.append(rb.getString("java.subj")+"\t"+rb.getString("java.sitereq")+"\n"); } else { buf.append(rb.getString("java.subj")+"\t"+rb.getString("java.sitechreq")+"\n"); } buf.append(rb.getString("java.date")+"\t" + local_date + " " + local_time + "\n\n"); if (request.equals("new")) { buf.append(rb.getString("java.approval") + " " + productionSiteName + " "+rb.getString("java.coursesite")+" "); } else { buf.append(rb.getString("java.approval2")+" " + productionSiteName + " "+rb.getString("java.coursesite")+" "); } if (termExist) { buf.append(term.getTerm() + " " + term.getYear()); } if (requestListSize >1) { buf.append(" "+rb.getString("java.forthese")+" " + requestListSize + " "+rb.getString("java.sections")+"\n\n"); } else { buf.append(" "+rb.getString("java.forthis")+"\n\n"); } //what are the required fields shown in the UI List requiredFields = CourseManagementService.getCourseIdRequiredFields(); for (int i = 0; i < requestListSize; i++) { List requiredFieldList = (List) requestFields.get(i); for (int j = 0; j < requiredFieldList.size(); j++) { String requiredField = (String) requiredFields.get(j); buf.append(requiredField +"\t" + requiredFieldList.get(j) + "\n"); } } buf.append(rb.getString("java.name")+"\t" + sessionUserName + " (" + noEmailInIdAccountName + " " + sessionUserName + ")\n"); buf.append(rb.getString("java.email")+"\t" + replyTo + "\n\n"); buf.append(rb.getString("java.sitetitle")+"\t" + title + "\n"); buf.append(rb.getString("java.siteid")+"\t" + id + "\n"); buf.append(rb.getString("java.siteinstr")+"\n" + additional + "\n\n"); if (!isFutureTerm) { if (sendEmailToRequestee) { buf.append(rb.getString("java.authoriz")+" " + requestId + " "+rb.getString("java.asreq")); } else { buf.append(rb.getString("java.thesiteemail")+" " + requestId + " "+rb.getString("java.asreq")); } } content = buf.toString(); EmailService.send(from, to, message_subject, content, headerTo, replyTo, null); //To the Instructor User curUser = UserDirectoryService.getCurrentUser(); from = requestEmail; to = curUser.getEmail(); headerTo = to; replyTo = to; buf.setLength(0); buf.append(rb.getString("java.isbeing")+" "); buf.append(rb.getString("java.meantime")+"\n\n"); buf.append(rb.getString("java.copy")+"\n\n"); buf.append(content); buf.append("\n"+rb.getString("java.wish")+" " + requestEmail); content = buf.toString(); EmailService.send(from, to, message_subject, content, headerTo, replyTo, null); state.setAttribute(REQUEST_SENT, new Boolean(true)); } // if } // sendSiteRequest
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/c056181efb440533c058b7fd915da25fb81424b9/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1299, 276, 1299, 273, 2177, 2853, 1179, 18, 588, 3935, 1299, 5621, 918, 1299, 276, 1299, 273, 2177, 2853, 1179, 18, 588, 3935, 1299, 5621, 1366, 4956, 691, 12, 2157, 1119, 1299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1299, 276, 1299, 273, 2177, 2853, 1179, 18, 588, 3935, 1299, 5621, 918, 1299, 276, 1299, 273, 2177, 2853, 1179, 18, 588, 3935, 1299, 5621, 1366, 4956, 691, 12, 2157, 1119, 1299...
public BigInteger pow(int exponent)
private BigInteger pow(BigInteger y)
public BigInteger pow(int exponent) { if (exponent <= 0) { if (exponent == 0) return ONE; else throw new ArithmeticException("negative exponent"); } if (isZero()) return this; int plen = words == null ? 1 : ival; // Length of pow2. int blen = ((bitLength() * exponent) >> 5) + 2 * plen; boolean negative = isNegative() && (exponent & 1) != 0; int[] pow2 = new int [blen]; int[] rwords = new int [blen]; int[] work = new int [blen]; getAbsolute(pow2); // pow2 = abs(this); int rlen = 1; rwords[0] = 1; // rwords = 1; for (;;) // for (i = 0; ; i++) { // pow2 == this**(2**i) // prod = this**(sum(j=0..i-1, (exponent>>j)&1)) if ((exponent & 1) != 0) { // r *= pow2 MPN.mul(work, pow2, plen, rwords, rlen); int[] temp = work; work = rwords; rwords = temp; rlen += plen; while (rwords[rlen - 1] == 0) rlen--; } exponent >>= 1; if (exponent == 0) break; // pow2 *= pow2; MPN.mul(work, pow2, plen, pow2, plen); int[] temp = work; work = pow2; pow2 = temp; // swap to avoid a copy plen *= 2; while (pow2[plen - 1] == 0) plen--; } if (rwords[rlen - 1] < 0) rlen++; if (negative) negate(rwords, rwords, rlen); return BigInteger.make(rwords, rlen); }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/4e141f35458b612b492f1f4dd6fb28d4924e7828/BigInteger.java/buggy/libjava/java/math/BigInteger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 10246, 7602, 12, 24198, 677, 13, 225, 288, 565, 309, 261, 24045, 1648, 374, 13, 1377, 288, 202, 430, 261, 24045, 422, 374, 13, 202, 225, 327, 15623, 31, 202, 12107, 202, 225, 604,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10246, 7602, 12, 24198, 677, 13, 225, 288, 565, 309, 261, 24045, 1648, 374, 13, 1377, 288, 202, 430, 261, 24045, 422, 374, 13, 202, 225, 327, 15623, 31, 202, 12107, 202, 225, 604,...
setModified(true);
public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1684, 1626, 12, 1626, 752, 1626, 13, 288, 202, 202, 430, 261, 12443, 2640, 1626, 422, 446, 13, 597, 261, 67, 2640, 1626, 480, 446, 3719, 747, 9506, 202, 12443, 2640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 1684, 1626, 12, 1626, 752, 1626, 13, 288, 202, 202, 430, 261, 12443, 2640, 1626, 422, 446, 13, 597, 261, 67, 2640, 1626, 480, 446, 3719, 747, 9506, 202, 12443, 2640,...
hc = ObjectUtil.hashCode(hc, searchResult); hc = ObjectUtil.hashCode(hc, score); hc = ObjectUtil.hashCode(hc, pValue); hc = ObjectUtil.hashCode(hc, eValue); hc = ObjectUtil.hashCode(hc, sequenceID); hc = ObjectUtil.hashCode(hc, subHits);
hc = ObjectUtil.hashCode(hc, searchResult); hc = ObjectUtil.hashCode(hc, score); hc = ObjectUtil.hashCode(hc, pValue); hc = ObjectUtil.hashCode(hc, eValue); hc = ObjectUtil.hashCode(hc, sequenceID); hc = ObjectUtil.hashCode(hc, subHits);
public int hashCode() { // if this class is a direct sub-class of Object: int hc = 0; // only take into account fields of this class (not of super-class): hc = ObjectUtil.hashCode(hc, searchResult); hc = ObjectUtil.hashCode(hc, score); hc = ObjectUtil.hashCode(hc, pValue); hc = ObjectUtil.hashCode(hc, eValue); hc = ObjectUtil.hashCode(hc, sequenceID); hc = ObjectUtil.hashCode(hc, subHits); return hc; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/1e53e34b25e9b009c50460af0986e9449f82ece1/SimpleSeqSimilaritySearchHit.java/buggy/src/org/biojava/bio/search/SimpleSeqSimilaritySearchHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 13374, 1435, 288, 565, 368, 309, 333, 667, 353, 279, 2657, 720, 17, 1106, 434, 1033, 30, 565, 509, 11684, 273, 374, 31, 565, 368, 1338, 4862, 1368, 2236, 1466, 434, 333, 667,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13374, 1435, 288, 565, 368, 309, 333, 667, 353, 279, 2657, 720, 17, 1106, 434, 1033, 30, 565, 509, 11684, 273, 374, 31, 565, 368, 1338, 4862, 1368, 2236, 1466, 434, 333, 667,...
return getValue().compareTo(bigIntValue(other)); }
return getValue().compareTo(bigIntValue(other)); }
protected int compareValue(RubyNumeric other) { if (other instanceof RubyFloat) { double otherVal = other.getDoubleValue(); double thisVal = getDoubleValue(); return thisVal > otherVal ? 1 : thisVal < otherVal ? -1 : 0; } return getValue().compareTo(bigIntValue(other)); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyBignum.java/buggy/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 3400, 620, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 4723, 13, 288, 5411, 1645, 1308, 3053, 273, 1308, 18, 588, 5265, 620, 5621, 5411, 1645, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 3400, 620, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 4723, 13, 288, 5411, 1645, 1308, 3053, 273, 1308, 18, 588, 5265, 620, 5621, 5411, 1645, 333, ...
Scope oldScope = (Scope)getScope().getTop();
Scope oldScope = (Scope) getScope().getTop();
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(); RubyFrame frame = new RubyFrame(tmpBlock.frame); // block.frame; frame.setPrev(getRubyFrame()); setRubyFrame(frame); CRefNode oldCRef = getCRef(); setCRef(getRubyFrame().getCbase()); Scope oldScope = (Scope)getScope().getTop(); getScope().setTop(tmpBlock.scope); // getScope().push(tmpBlock.scope); // block.pop(); block = block.prev; if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { setDynamicVars(new RubyVarmap(null, null, tmpBlock.dynamicVars)); } else { setDynamicVars(block.dynamicVars); } setRubyClass((klass != null) ? klass : tmpBlock.klass); if (klass == null) { self = tmpBlock.self; } Node node = tmpBlock.body; if (tmpBlock.var != null) { // try { if (tmpBlock.var == Node.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() != 0) { throw new RubyArgumentException(this, "wrong # of arguments (" + ((RubyArray) value).getLength() + " for 0)"); } } else { if (!(tmpBlock.var instanceof MAsgnNode)) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } ((AssignableNode) tmpBlock.var).assign(this, self, value, acheck); } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray) value).getLength() == 1) { value = ((RubyArray) value).entry(0); } } iter.push(tmpBlock.iter); try { while (true) { try { if (node == null) { return getNil(); } else if (node instanceof ExecutableNode) { if (value == null) { value = RubyArray.newArray(this, 0); } return ((ExecutableNode) node).execute(value, new RubyObject[] { node.getTValue(), self }, this); } else { return node.eval(this, self); } } catch (RedoException rExcptn) { } } //break; } catch (NextException nExcptn) { return getNil(); /* } catch (BreakException bExcptn) { throw bExcptn;*/ } catch (ReturnException rExcptn) { // break; return rExcptn.getReturnValue(); /* catch (BreakException bExcptn) { // +++ throw new ReturnException(getNil()); // ---*/ } finally { iter.pop(); popClass(); RubyVarmap.pop(this); block.setTmp(tmpBlock); setRubyFrame(getRubyFrame().getPrev()); setCRef(oldCRef); // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); getScope().setTop(oldScope); } }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/Ruby.java/clean/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 309, 16051, 291, 1768, 6083, 10756, 288, 5411, 604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 309, 16051, 291, 1768, 6083, 10756, 288, 5411, 604, ...
return "";
return "";
private String getHrefString() { if (this.href == null) { return ""; } return " href=\"" + this.href.toString() + "\""; }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/101977ad06aad488b3652f70bcee7359487e87db/Anchor.java/buggy/displaytag/src/main/java/org/displaytag/util/Anchor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7628, 1734, 780, 1435, 565, 288, 3639, 309, 261, 2211, 18, 7547, 422, 446, 13, 3639, 288, 5411, 327, 1408, 31, 3639, 289, 3639, 327, 315, 3897, 13186, 397, 333, 18, 7547, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7628, 1734, 780, 1435, 565, 288, 3639, 309, 261, 2211, 18, 7547, 422, 446, 13, 3639, 288, 5411, 327, 1408, 31, 3639, 289, 3639, 327, 315, 3897, 13186, 397, 333, 18, 7547, 18,...
return isbn;
return isbn;
public Integer getIsbn() { return isbn; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f2ed60b5417a9a7d4bcf5fcf0cdc3f70cc3c9b8f/BookBean.java/buggy/src/net/sourceforge/fenixedu/dataTransferObject/research/result/publication/BookBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2144, 14279, 13392, 1435, 288, 3639, 327, 24205, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2144, 14279, 13392, 1435, 288, 3639, 327, 24205, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (typeSignature.length() < 1) {
if (typeSignature.length < 1) {
public static int getTypeSignatureKind(String typeSignature) { // need a minimum 1 char if (typeSignature.length() < 1) { throw new IllegalArgumentException(); } char c = typeSignature.charAt(0); switch (c) { case C_ARRAY : return ARRAY_TYPE_SIGNATURE; case C_RESOLVED : case C_UNRESOLVED : return CLASS_TYPE_SIGNATURE; case C_TYPE_VARIABLE : return TYPE_VARIABLE_SIGNATURE; case C_BOOLEAN : case C_BYTE : case C_CHAR : case C_DOUBLE : case C_FLOAT : case C_INT : case C_LONG : case C_SHORT : case C_VOID : return BASE_TYPE_SIGNATURE; default : throw new IllegalArgumentException(); }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/15e62f7752b5ba1cd51b3fafb5a3b0c9d1ba5891/Signature.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Signature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 509, 3130, 5374, 5677, 12, 780, 618, 5374, 13, 288, 202, 759, 1608, 279, 5224, 404, 1149, 202, 430, 261, 723, 5374, 18, 2469, 1435, 411, 404, 13, 288, 202, 202, 12849, 394, 2754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 509, 3130, 5374, 5677, 12, 780, 618, 5374, 13, 288, 202, 759, 1608, 279, 5224, 404, 1149, 202, 430, 261, 723, 5374, 18, 2469, 1435, 411, 404, 13, 288, 202, 202, 12849, 394, 2754, ...
for (int i = 0; i < arity; i++) { if (i > 0) writer.print(", ");
for (int i = 1; i <= arity; i++) { if (i > 1) writer.print(", ");
public void printVParams() { for (int i = 0; i < arity; i++) { if (i > 0) writer.print(", "); writer.print("_").print(i).print(": T").print(i); } }
10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/32782e0e28c9d2538b2e597e986a78c22960fc32/MetaTuple.java/clean/sources/meta/scala/MetaTuple.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1172, 58, 1370, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 19353, 31, 277, 27245, 288, 5411, 309, 261, 77, 405, 374, 13, 2633, 18, 1188, 2932, 16, 315, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 58, 1370, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 19353, 31, 277, 27245, 288, 5411, 309, 261, 77, 405, 374, 13, 2633, 18, 1188, 2932, 16, 315, 17...
out.write((int) buf.length); out.write(buf);
if (buf.length > 0) { out.write((int) buf.length); out.write(buf); } else { out.write((int) 1); out.write((byte) 0); }
static void writeTds5Param(RequestStream out, String charset, ParamInfo pi) throws IOException, SQLException { switch (pi.tdsType) { case SYBVARCHAR: if (pi.value == null) { out.write((byte) 0); } else { byte buf[] = pi.getBytes(charset); if (buf.length == 0) { buf = new byte[1]; buf[0] = ' '; } if (buf.length > 255) { throw new SQLException( Messages.get("error.generic.truncmbcs"), "HY000"); } out.write((byte) buf.length); out.write(buf); } break; case SYBVARBINARY: if (pi.value == null) { out.write((byte) 0); } else { byte buf[] = pi.getBytes(charset); out.write((byte) buf.length); out.write(buf); } break; case XSYBCHAR: if (pi.value == null) { out.write((byte) 0); } else { byte buf[] = pi.getBytes(charset); if (buf.length == 0) { buf = new byte[1]; buf[0] = ' '; } out.write((int) buf.length); out.write(buf); } break; case SYBLONGBINARY: if (pi.value == null) { out.write((int) 0); } else { if (pi.sqlType.startsWith("univarchar")){ String tmp = pi.getString(charset); out.write((int)tmp.length() * 2); out.write(tmp.toCharArray(), 0, tmp.length()); } else { byte buf[] = pi.getBytes(charset); out.write((int) buf.length); out.write(buf); } } break; case SYBINTN: if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) 4); out.write(((Number) pi.value).intValue()); } break; case SYBFLTN: if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) 8); out.write(((Number) pi.value).doubleValue()); } break; case SYBDATETIMN: putDateTimeValue(out, pi.value); break; case SYBDATEN: if (pi.value == null) { out.write((byte)0); } else { synchronized (cal) { out.write((byte) 4); cal.setTime((java.util.Date) pi.value); int daysSince1900 = calendarToSybDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH)); out.write((int) daysSince1900); } } break; case SYBTIMEN: if (pi.value == null) { out.write((byte)0); } else { synchronized (cal) { out.write((byte) 4); int time = calendarToSybTime(cal, pi.value); cal.setTime((java.util.Date) pi.value); out.write((int) time); } } break; case SYBBIT: if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) (((Boolean) pi.value).booleanValue() ? 1 : 0)); } break; case SYBNUMERIC: case SYBDECIMAL: BigDecimal value = null; if (pi.value != null) { if (pi.value instanceof Long) { // Long to BigDecimal conversion is buggy. It's actually // long to double to BigDecimal. value = new BigDecimal(pi.value.toString()); } else { value = (BigDecimal) pi.value; } } out.write(value); break; default: throw new IllegalStateException( "Unsupported output TDS type " + Integer.toHexString(pi.tdsType)); } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/2f1fefd2c51a632b432cc7be26cc8ec087a63c02/TdsData.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 1045, 56, 2377, 25, 786, 12, 691, 1228, 596, 16, 1171, 9079, 514, 4856, 16, 1171, 9079, 3014, 966, 4790, 13, 565, 1216, 1860, 16, 6483, 288, 3639, 1620, 261, 7259, 18, 88, 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, 760, 918, 1045, 56, 2377, 25, 786, 12, 691, 1228, 596, 16, 1171, 9079, 514, 4856, 16, 1171, 9079, 3014, 966, 4790, 13, 565, 1216, 1860, 16, 6483, 288, 3639, 1620, 261, 7259, 18, 88, 2...
} IBuilder builder = toolChain.getBuilder(); if (builder != null) { if (forCurrentMbsVersion) { element = ((Builder)builder).getCurrentMbsVersionConversionElement(); } else { element = ((Builder)builder).getPreviousMbsVersionConversionElement(); } if (element != null) { if ( invokeConverter(builder, element) == null ) { buildInfo.getManagedProject().setValid(false); return false;
IBuilder builder = toolChain.getBuilder(); if (builder != null) { if (forCurrentMbsVersion) { element = ((Builder) builder) .getCurrentMbsVersionConversionElement(); } else { element = ((Builder) builder) .getPreviousMbsVersionConversionElement();
private static boolean checkForMigrationSupport(ManagedBuildInfo buildInfo, boolean forCurrentMbsVersion) { IConfigurationElement element = null; // Get the managed project from buildInfo IManagedProject managedProject = buildInfo.getManagedProject(); // walk through the hierarchy of the project and // call the converters if available for each configuration IConfiguration[] configs = managedProject.getConfigurations(); for (int i = 0; i < configs.length; i++) { IConfiguration configuration = configs[i]; IToolChain toolChain = configuration.getToolChain(); if (forCurrentMbsVersion) { element = ((ToolChain)toolChain).getCurrentMbsVersionConversionElement(); } else { element = ((ToolChain)toolChain).getPreviousMbsVersionConversionElement(); } if (element != null) { // If there is a converter element for toolChain, invoke it // toolChain converter should take care of invoking converters of it's children if ( invokeConverter(toolChain, element) == null ) { buildInfo.getManagedProject().setValid(false); return false; } } else { // If there are no converters for toolChain, walk through it's children ITool[] tools = toolChain.getTools(); for (int j = 0; j < tools.length; j++) { ITool tool = tools[j]; if (forCurrentMbsVersion) { element = ((Tool)tool).getCurrentMbsVersionConversionElement(); } else { element = ((Tool)tool).getPreviousMbsVersionConversionElement(); } if (element != null) { if ( invokeConverter(tool, element) == null ) { buildInfo.getManagedProject().setValid(false); return false; } } } IBuilder builder = toolChain.getBuilder(); if (builder != null) { if (forCurrentMbsVersion) { element = ((Builder)builder).getCurrentMbsVersionConversionElement(); } else { element = ((Builder)builder).getPreviousMbsVersionConversionElement(); } if (element != null) { if ( invokeConverter(builder, element) == null ) { buildInfo.getManagedProject().setValid(false); return false; } } } } // walk through each resource configuration and look if there are any converters // available. If so, invoke them. IResourceConfiguration [] resourceConfigs = configuration.getResourceConfigurations(); if ( ( resourceConfigs != null) && ( resourceConfigs.length > 0)) { for (int j = 0; j < resourceConfigs.length; j++) { IResourceConfiguration resConfig = resourceConfigs[j]; ITool [] resTools = resConfig.getTools(); for (int k = 0; k < resTools.length; k++) { ITool resTool = resTools[k]; if (forCurrentMbsVersion) { element = ((Tool)resTool).getCurrentMbsVersionConversionElement(); } else { element = ((Tool)resTool).getPreviousMbsVersionConversionElement(); } if (element != null) { if ( invokeConverter(resTool, element) == null ) { buildInfo.getManagedProject().setValid(false); return false; } } } } } // end of if } // If control comes here, it means either there is no converter element // or converters are invoked successfully return true; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e2ab8aa66bc9088cb3702adfb1981078a8f4bbf2/ManagedBuildManager.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 13855, 10224, 6289, 12, 10055, 3116, 966, 1361, 966, 16, 1082, 202, 6494, 364, 3935, 49, 2038, 1444, 13, 288, 9506, 202, 45, 1750, 1046, 930, 273, 446, 31, 202, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1250, 13855, 10224, 6289, 12, 10055, 3116, 966, 1361, 966, 16, 1082, 202, 6494, 364, 3935, 49, 2038, 1444, 13, 288, 9506, 202, 45, 1750, 1046, 930, 273, 446, 31, 202, 20...
AST __t1272 = _t; AST tmp1702_AST_in = (AST)_t;
AST __t1257 = _t; AST tmp1714_AST_in = (AST)_t;
public final void droptablestate(AST _t) throws RecognitionException { AST droptablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1272 = _t; AST tmp1702_AST_in = (AST)_t; match(_t,DROP); _t = _t.getFirstChild(); AST tmp1703_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); tbl(_t,CQ.SCHEMATABLESYMBOL); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1272; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 31473, 337, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 31473, 337, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 31473, 337, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 31473, 337, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 85...
return minValue; }
return minValue; }
public Comparable getMinValue() { return minValue; }
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/91bf32c7ef327c04baa2d9f1dbd47505403a717e/ConstrainedProperty.java/clean/grails/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 13633, 9555, 620, 1435, 288, 1082, 202, 2463, 20533, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 13633, 9555, 620, 1435, 288, 1082, 202, 2463, 20533, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
data = sourceData;
data = finalData;
static public ClientCHKBlock encode(byte[] sourceData, boolean asMetadata, boolean dontCompress, short alreadyCompressedCodec, int sourceLength) throws CHKEncodeException { byte[] data; byte[] header; ClientCHK key; short compressionAlgorithm = -1; // Try to compress it - even if it fits into the block, // because compressing it improves its entropy. boolean compressed = false; if(sourceData.length > MAX_LENGTH_BEFORE_COMPRESSION) throw new CHKEncodeException("Too big"); if(!dontCompress) { byte[] cbuf = null; if(alreadyCompressedCodec >= 0) { compressionAlgorithm = alreadyCompressedCodec; cbuf = sourceData; } else { if (sourceData.length > NodeCHK.BLOCK_SIZE) { // Determine the best algorithm Bucket bucket = new ArrayBucket(sourceData); bucket.setReadOnly(); for (int i = 0; i < Compressor.countCompressAlgorithms(); i++) { Compressor comp = Compressor .getCompressionAlgorithmByDifficulty(i); ArrayBucket compressedData; try { compressedData = (ArrayBucket) comp.compress( bucket, new ArrayBucketFactory()); } catch (IOException e) { throw new Error(e); } if (compressedData.size() <= MAX_COMPRESSED_DATA_LENGTH) { compressionAlgorithm = comp .codecNumberForMetadata(); sourceLength = sourceData.length; try { cbuf = BucketTools.toByteArray(compressedData); // FIXME provide a method in ArrayBucket } catch (IOException e) { throw new Error(e); } break; } } } } if(cbuf != null) { // Use it int compressedLength = cbuf.length; sourceData = new byte[compressedLength+3]; System.arraycopy(cbuf, 0, sourceData, 3, compressedLength); sourceData[0] = (byte) ((sourceLength >> 16) & 0xff); sourceData[1] = (byte) ((sourceLength >> 8) & 0xff); sourceData[2] = (byte) ((sourceLength) & 0xff); compressed = true; } } if(sourceData.length > NodeCHK.BLOCK_SIZE) { throw new CHKEncodeException("Too big"); } MessageDigest md160; try { md160 = MessageDigest.getInstance("SHA-1"); } catch (NoSuchAlgorithmException e2) { // FIXME: log properly? Not much we can do... But we could log a // more user-friendly message... throw new Error(e2); } MessageDigest md256; try { md256 = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e1) { // FIXME: log this properly? throw new Error(e1); } // First pad it if(sourceData.length != 32768) { // Hash the data if(sourceData.length != 0) md256.update(sourceData); byte[] digest = md256.digest(); // Turn digest into a seed array for the MT int[] seed = new int[8]; // 32/4=8 for(int i=0;i<8;i++) { int x = digest[i*4] & 0xff; x = (x << 8) + (digest[i*4+1] & 0xff); x = (x << 8) + (digest[i*4+2] & 0xff); x = (x << 8) + (digest[i*4+3] & 0xff); seed[i] = x; } MersenneTwister mt = new MersenneTwister(seed); data = new byte[32768]; System.arraycopy(sourceData, 0, data, 0, sourceData.length); byte[] randomBytes = new byte[32768-sourceData.length]; mt.nextBytes(randomBytes); System.arraycopy(randomBytes, 0, data, sourceData.length, 32768-sourceData.length); } else { data = sourceData; } // Now make the header byte[] encKey = md256.digest(data); md256.reset(); // IV = E(H(crypto key)) byte[] plainIV = md256.digest(encKey); header = new byte[plainIV.length+2+2]; header[0] = (byte)(CHKBlock.HASH_SHA1 >> 8); header[1] = (byte)(CHKBlock.HASH_SHA1 & 0xff); System.arraycopy(plainIV, 0, header, 2, plainIV.length); header[plainIV.length+2] = (byte)(sourceData.length >> 8); header[plainIV.length+3] = (byte)(sourceData.length & 0xff); // GRRR, java 1.4 does not have any symmetric crypto // despite exposing asymmetric and hashes! // Now encrypt the header, then the data, using the same PCFB instance BlockCipher cipher; try { cipher = new Rijndael(256, 256); } catch (UnsupportedCipherException e) { // FIXME - log this properly throw new Error(e); } cipher.initialize(encKey); PCFBMode pcfb = new PCFBMode(cipher); pcfb.blockEncipher(header, 2, header.length-2); pcfb.blockEncipher(data, 0, data.length); // Now calculate the final hash md160.update(header); byte[] finalHash = md160.digest(data); // Now convert it into a ClientCHK key = new ClientCHK(finalHash, encKey, asMetadata, ClientCHK.ALGO_AES_PCFB_256, compressionAlgorithm); try { return new ClientCHKBlock(data, header, key, false); } catch (CHKVerifyException e3) { //WTF? throw new Error(e3); } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/ee392a27cc3ce11b12a2fdda4a2f78861262883f/ClientCHKBlock.java/clean/src/freenet/keys/ClientCHKBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 2445, 1792, 47, 1768, 2017, 12, 7229, 8526, 1084, 751, 16, 1250, 487, 2277, 16, 1250, 14046, 16552, 16, 3025, 1818, 16841, 11008, 16, 509, 27406, 13, 1216, 6469, 47, 5509, 503,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1071, 2445, 1792, 47, 1768, 2017, 12, 7229, 8526, 1084, 751, 16, 1250, 487, 2277, 16, 1250, 14046, 16552, 16, 3025, 1818, 16841, 11008, 16, 509, 27406, 13, 1216, 6469, 47, 5509, 503,...
final URL url = new URL(new URL(base), systemId); systemId = url.toString(); input = new InputSource(systemId);
final URL url = new URL(new URL(currLoadedDoc), docToLoad); docToLoad = url.toString(); input = new InputSource(docToLoad);
public void parseContents(final Parser parser) { final Stylesheet context = parser.getCurrentStylesheet(); try { String systemId = getAttribute("href"); if (context.checkForLoop(systemId)) { final int errno = ErrorMsg.CIRCULAR_INC; final ErrorMsg msg = new ErrorMsg(errno, systemId, this); parser.reportError(Constants.FATAL, msg); return; } final String base = context.getSystemId(); SourceLoader loader = context.getSourceLoader(); InputSource input = null; if (loader != null) { final XSLTC xsltc = parser.getXSLTC(); input = loader.loadSource(base, systemId, xsltc); } else { final URL url = new URL(new URL(base), systemId); systemId = url.toString(); input = new InputSource(systemId); } final SyntaxTreeNode root = parser.parse(input); if (root == null) return; final Stylesheet _included = parser.makeStylesheet(root); if (_included == null) return; _included.setSourceLoader(loader); _included.setSystemId(systemId); _included.setParentStylesheet(context); // An included stylesheet gets the same import precedence // as the stylesheet that included it. final int precedence = context.getImportPrecedence(); _included.setImportPrecedence(precedence); parser.setCurrentStylesheet(_included); _included.parseContents(parser); final Enumeration elements = _included.elements(); final Stylesheet topStylesheet = parser.getTopLevelStylesheet(); while (elements.hasMoreElements()) { final Object element = elements.nextElement(); if (element instanceof TopLevelElement) { topStylesheet.addElement((TopLevelElement)element); } } } catch (Exception e) { e.printStackTrace(); } finally { parser.setCurrentStylesheet(context); } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/719e993d33fe3e56276bbbc1b136da4bfc1f71fb/Include.java/buggy/src/org/apache/xalan/xsltc/compiler/Include.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 6323, 12, 6385, 6783, 2082, 13, 288, 202, 6385, 29483, 2963, 819, 273, 2082, 18, 588, 3935, 24656, 5621, 202, 698, 288, 202, 565, 514, 30083, 273, 4061, 2932, 7547, 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, 1109, 6323, 12, 6385, 6783, 2082, 13, 288, 202, 6385, 29483, 2963, 819, 273, 2082, 18, 588, 3935, 24656, 5621, 202, 698, 288, 202, 565, 514, 30083, 273, 4061, 2932, 7547, 8863,...
public Object run(BpelDAOConnection conn) throws Exception {
public Boolean run(BpelDAOConnection conn) throws Exception {
public Object run(BpelDAOConnection conn) throws Exception { ProcessDAO old = conn.getProcess(pid); if (old != null) { __log.debug("Found ProcessDAO for " + pid + " with GUID " + old.getGuid()); if (oprocess.guid != null) if (!old.getGuid().equals(oprocess.guid)) { // TODO: Versioning will need to handle this differently. String errmsg = "ProcessDAO GUID " + old.getGuid() + " does not match " + oprocess.guid + "; replacing."; __log.warn(errmsg); old.delete(); } else return null; return null; } ProcessDAO newDao = conn.createProcess(pid, oprocess.getQName(), oprocess.guid); for (String correlator : oprocess.getCorrelators()) { newDao.addCorrelator(correlator); } return null; }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/52191e5eb3ba743fa248e1082e99fa68cc1ef2d2/BpelServerImpl.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 3411, 1086, 12, 38, 84, 292, 18485, 1952, 1487, 13, 1216, 1185, 288, 10792, 4389, 18485, 1592, 273, 1487, 18, 588, 2227, 12, 6610, 1769, 10792, 309, 261, 1673, 480, 446, 13, 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, 1171, 1071, 3411, 1086, 12, 38, 84, 292, 18485, 1952, 1487, 13, 1216, 1185, 288, 10792, 4389, 18485, 1592, 273, 1487, 18, 588, 2227, 12, 6610, 1769, 10792, 309, 261, 1673, 480, 446, 13, 288, ...
final GlobalSearchScope projectScope = GlobalSearchScope.allScope(myManager.getProject()); final VirtualFile classRoot = projectFileIndex.getClassRootForFile(vFile); final GlobalSearchScope scope = new GlobalSearchScope() { public int compare(VirtualFile file1, VirtualFile file2) { final VirtualFile classRootForFile1 = projectFileIndex.getClassRootForFile(file1); final VirtualFile classRootForFile2 = projectFileIndex.getClassRootForFile(file2); if (classRootForFile1 != classRootForFile2) { if (classRootForFile1 == classRoot) return 1; if (classRootForFile2 == classRoot) return -1; } return projectScope.compare(file1, file2); } public boolean contains(VirtualFile file) { return projectScope.contains(file); } public boolean isSearchInLibraries() { return true; } public boolean isSearchInModuleContent(Module aModule) { return false; } }; return scope; /*
public GlobalSearchScope getResolveScope(PsiElement element) { VirtualFile vFile; if (element instanceof PsiDirectory) { vFile = ((PsiDirectory)element).getVirtualFile(); } else { final PsiFile contextFile = ResolveUtil.getContextFile(element); if (contextFile == null || contextFile instanceof XmlFile) { return GlobalSearchScope.allScope(myManager.getProject()); } vFile = contextFile.getVirtualFile(); if (vFile == null) { PsiFile originalFile = contextFile.getOriginalFile(); if (originalFile != null) { vFile = originalFile.getVirtualFile(); } } } if (vFile == null) { return GlobalSearchScope.allScope(myManager.getProject()); } final ProjectFileIndex projectFileIndex = myProjectRootManager.getFileIndex(); Module module = projectFileIndex.getModuleForFile(vFile); if (module != null) { boolean includeTests = projectFileIndex.isInTestSourceContent(vFile) || !projectFileIndex.isContentJavaSourceFile(vFile); return GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module, includeTests); } else { // resolve references in libraries first in current library, then in project scope final GlobalSearchScope projectScope = GlobalSearchScope.allScope(myManager.getProject()); final VirtualFile classRoot = projectFileIndex.getClassRootForFile(vFile); final GlobalSearchScope scope = new GlobalSearchScope() { public int compare(VirtualFile file1, VirtualFile file2) { final VirtualFile classRootForFile1 = projectFileIndex.getClassRootForFile(file1); final VirtualFile classRootForFile2 = projectFileIndex.getClassRootForFile(file2); if (classRootForFile1 != classRootForFile2) { if (classRootForFile1 == classRoot) return 1; if (classRootForFile2 == classRoot) return -1; } return projectScope.compare(file1, file2); } public boolean contains(VirtualFile file) { return projectScope.contains(file); } public boolean isSearchInLibraries() { return true; } public boolean isSearchInModuleContent(Module aModule) { return false; } }; return scope; /* OrderEntry[] orderEntries = projectFileIndex.getOrderEntriesForFile(vFile); if (orderEntries.length == 0) return GlobalSearchScope.allScope(myManager.getProject()); Module ownerModule = orderEntries[0].getOwnerModule(); return GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(ownerModule); */ } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/d88b0d6e4538f617f5b687d2c93ed46f9f15ff35/FileManagerImpl.java/clean/source/com/intellij/psi/impl/file/impl/FileManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8510, 2979, 3876, 336, 8460, 3876, 12, 52, 7722, 1046, 930, 13, 288, 565, 7269, 812, 331, 812, 31, 565, 309, 261, 2956, 1276, 453, 7722, 2853, 13, 288, 1377, 331, 812, 273, 14015,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8510, 2979, 3876, 336, 8460, 3876, 12, 52, 7722, 1046, 930, 13, 288, 565, 7269, 812, 331, 812, 31, 565, 309, 261, 2956, 1276, 453, 7722, 2853, 13, 288, 1377, 331, 812, 273, 14015,...
doc.documentSaved(); _saveAction.setEnabled(false); _revertAction.setEnabled(true); updateFileTitle(); _currentDefPane.requestFocusInWindow(); try { File f = doc.getFile(); if (! _model.isProjectFile(f)) _recentFileManager.updateOpenFiles(f); } catch (IllegalStateException ise) { throw new UnexpectedException(ise); } catch (FileMovedException fme) { File f = fme.getFile(); if (! _model.isProjectFile(f)) _recentFileManager.updateOpenFiles(f); } if (inDebugMode()) _updateDebugStatus();
Utilities.invokeLater(new Runnable() { public void run() { doc.documentSaved(); _saveAction.setEnabled(false); _revertAction.setEnabled(true); updateFileTitle(); _currentDefPane.requestFocusInWindow(); try { File f = doc.getFile(); if (! _model.isProjectFile(f)) _recentFileManager.updateOpenFiles(f); } catch (IllegalStateException ise) { throw new UnexpectedException(ise); } catch (FileMovedException fme) { File f = fme.getFile(); if (! _model.isProjectFile(f)) _recentFileManager.updateOpenFiles(f); } if (inDebugMode()) _updateDebugStatus(); } });
public void fileSaved(OpenDefinitionsDocument doc) {// new ScrollableDialog(null, "fileSaved called in ModelListener", "", "").show(); doc.documentSaved(); // used to update the document cache _saveAction.setEnabled(false); _revertAction.setEnabled(true); updateFileTitle(); _currentDefPane.requestFocusInWindow(); try { File f = doc.getFile(); if (! _model.isProjectFile(f)) _recentFileManager.updateOpenFiles(f); } catch (IllegalStateException ise) { throw new UnexpectedException(ise); } // Impossible because saved => has a file catch (FileMovedException fme) { File f = fme.getFile(); // Recover, show it in the list anyway if (! _model.isProjectFile(f)) _recentFileManager.updateOpenFiles(f); } // Check class file sync status, in case file was renamed if (inDebugMode()) _updateDebugStatus(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/d1ffac675273323f7a1b9777462d16896d09a1af/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 585, 16776, 12, 3678, 7130, 2519, 997, 13, 288, 759, 1377, 394, 23134, 429, 6353, 12, 2011, 16, 315, 768, 16776, 2566, 316, 3164, 2223, 3113, 23453, 1408, 2934, 4500, 5621, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 585, 16776, 12, 3678, 7130, 2519, 997, 13, 288, 759, 1377, 394, 23134, 429, 6353, 12, 2011, 16, 315, 768, 16776, 2566, 316, 3164, 2223, 3113, 23453, 1408, 2934, 4500, 5621, 137...
private void dataBufferAppend (char c) { if (dataBufferPos >= dataBuffer.length) dataBuffer = (char[]) extendArray (dataBuffer, dataBuffer.length, dataBufferPos); dataBuffer [dataBufferPos++] = c; }
private void dataBufferAppend(char c) { if (dataBufferPos >= dataBuffer.length) { dataBuffer = (char[]) extendArray(dataBuffer, dataBuffer.length, dataBufferPos); } dataBuffer[dataBufferPos++] = c; }
private void dataBufferAppend (char c) { // Expand buffer if necessary. if (dataBufferPos >= dataBuffer.length) dataBuffer = (char[]) extendArray (dataBuffer, dataBuffer.length, dataBufferPos); dataBuffer [dataBufferPos++] = c; }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 501, 1892, 5736, 261, 3001, 276, 13, 565, 288, 202, 759, 16429, 1613, 309, 4573, 18, 202, 430, 261, 892, 1892, 1616, 1545, 501, 1892, 18, 2469, 13, 202, 565, 501, 1892, 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, 377, 3238, 918, 501, 1892, 5736, 261, 3001, 276, 13, 565, 288, 202, 759, 16429, 1613, 309, 4573, 18, 202, 430, 261, 892, 1892, 1616, 1545, 501, 1892, 18, 2469, 13, 202, 565, 501, 1892, 273, ...
runTest( "identifier and", new int[]{ IDENTIFIER, AND, EOF } );
runTest( "identifier and", new int[]{ TokenTypes.IDENTIFIER, TokenTypes.AND, TokenTypes.EOF } );
public void testOperatorAnd() { runTest( "identifier and", new int[]{ IDENTIFIER, AND, EOF } ); }
5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/97414bf23bf62ff0ca98fd125e1e114268b99245/XPathLexerTokenTest.java/clean/src/java/test/org/jaxen/saxpath/base/XPathLexerTokenTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5592, 1876, 1435, 565, 288, 3639, 1086, 4709, 12, 315, 5644, 471, 3113, 394, 509, 63, 7073, 3155, 2016, 18, 16606, 16, 3155, 2016, 18, 4307, 16, 3155, 2016, 18, 12706, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5592, 1876, 1435, 565, 288, 3639, 1086, 4709, 12, 315, 5644, 471, 3113, 394, 509, 63, 7073, 3155, 2016, 18, 16606, 16, 3155, 2016, 18, 4307, 16, 3155, 2016, 18, 12706, ...
setValue(newStr);
setValue(new StringBuffer(newStr));
public IRubyObject tr_bang(IRubyObject search, IRubyObject replace) { String newStr = tr(search, replace, false); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 433, 67, 70, 539, 12, 7937, 10340, 921, 1623, 16, 15908, 10340, 921, 1453, 13, 288, 202, 202, 780, 394, 1585, 273, 433, 12, 3072, 16, 1453, 16, 629, 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, 225, 202, 482, 15908, 10340, 921, 433, 67, 70, 539, 12, 7937, 10340, 921, 1623, 16, 15908, 10340, 921, 1453, 13, 288, 202, 202, 780, 394, 1585, 273, 433, 12, 3072, 16, 1453, 16, 629, 1769, ...
}
}
private IStatus proceedWithOperation(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo, String message, boolean undoing) { // if the operation cannot tell us about its modified elements, there's // nothing we can do. if (!(operation instanceof IAdvancedUndoableOperation)) return Status.OK_STATUS; // see if the operation is still valid. Some advanced model operations // cannot compute their validity in canUndo() or canRedo() and true // validity cannot be determined until it is time to perform the // operation. IStatus status; try { if (undoing) status = ((IAdvancedUndoableOperation) operation) .computeUndoableStatus(getProgressMonitor()); else status = ((IAdvancedUndoableOperation) operation) .computeRedoableStatus(getProgressMonitor()); } catch (OperationCanceledException e) { status = Status.CANCEL_STATUS; } catch (ExecutionException e) { status = IOperationHistory.OPERATION_INVALID_STATUS; reportException(e); } if (status.getSeverity() == IStatus.ERROR) { // report failure to the user. reportErrorStatus(status); } if (!status.isOK()) { // inform listeners of the change in status of the operation since // it was previously // believed to be valid. We rely here on the ability of an // implementer of IAdvancedUndoableOperation // to correctly answer canUndo() and canRedo() once the undoable and // redoable status have // been computed. history.operationChanged(operation); return status; } // Obtain the operation's affected objects. Object[] modifiedElements = ((IAdvancedUndoableOperation) operation) .getAffectedObjects(); // Since the operation participates in describing its affected objects, // we assume for the rest of this method that an inability to // determine a match implies that a non-local operation is occurring. // This is a conservative assumption that provides more user prompting. boolean local; if (modifiedElements == null) { // The operation could not determine which elements are affected. // Consider the operation non-local. local = false; } else { // The operation answered some array of affected objects. Consider // the operation local until a non-match is found. Note that an empty // array of affected objects is considered a local change. local = true; for (int i = 0; i < modifiedElements.length; i++) { Object modifiedElement = modifiedElements[i]; if (!elementsContains(modifiedElement)) { // the modified element is not known by the editor local = false; // one last try - try to adapt the modified element if a preferred // comparison class has been provided. if (affectedObjectsClass != null && modifiedElement instanceof IAdaptable) { if (elementsContains(((IAdaptable) modifiedElement) .getAdapter(affectedObjectsClass))) { local = true; } } // if the element did not match the affected objects, no need to check any others. if (!local) break; } } } if (local) return Status.OK_STATUS; // Now we know the operation affects more than just our element, so warn // the user. boolean proceed = MessageDialog.openQuestion(part.getSite().getShell(), part.getEditorInput().getName(), message); if (proceed) return Status.OK_STATUS; return Status.CANCEL_STATUS; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d74a8cac12d331987ec843867ae9025700534a94/NonLocalUndoUserApprover.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/NonLocalUndoUserApprover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 1482, 11247, 1190, 2988, 12, 45, 31224, 429, 2988, 1674, 16, 1082, 202, 45, 2988, 5623, 4927, 16, 467, 13716, 429, 5915, 966, 16, 514, 883, 16, 1082, 202, 6494, 15436, 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, 225, 202, 1152, 467, 1482, 11247, 1190, 2988, 12, 45, 31224, 429, 2988, 1674, 16, 1082, 202, 45, 2988, 5623, 4927, 16, 467, 13716, 429, 5915, 966, 16, 514, 883, 16, 1082, 202, 6494, 15436, 3...
if (this.request == null)
if (this.request == null) {
public void setRequest(HttpServletRequest request) { this.request = request; if (this.request == null) setSession(null); else setSession(this.request.getSession()); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/ef68ef66f0feb3bc08bb217fe9abcd99045ef301/ConfigHelper.java/clean/src/share/org/apache/struts/config/ConfigHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12475, 12, 2940, 18572, 590, 13, 288, 3639, 333, 18, 2293, 273, 590, 31, 3639, 309, 261, 2211, 18, 2293, 422, 446, 13, 288, 5411, 25486, 12, 2011, 1769, 3639, 469, 5411, 2548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12475, 12, 2940, 18572, 590, 13, 288, 3639, 333, 18, 2293, 273, 590, 31, 3639, 309, 261, 2211, 18, 2293, 422, 446, 13, 288, 5411, 25486, 12, 2011, 1769, 3639, 469, 5411, 2548...
if (obj==null) throw new NullPointerException();
private int get32Bits(Object obj) { if (isStatic()) { return VM_Statics.getSlotContentsAsInt(offset >>> LOG_BYTES_IN_INT); } else { if (obj==null) throw new NullPointerException(); return VM_Magic.getIntAtOffset(obj, offset); } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/73161e4dae0f3ded1857fa907d0bcad371a5c509/VM_Field.java/clean/rvm/src/vm/classLoader/VM_Field.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 336, 1578, 6495, 12, 921, 1081, 13, 288, 565, 309, 261, 291, 5788, 10756, 288, 1377, 327, 8251, 67, 5000, 2102, 18, 588, 8764, 6323, 31720, 12, 3348, 4080, 2018, 67, 13718, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 336, 1578, 6495, 12, 921, 1081, 13, 288, 565, 309, 261, 291, 5788, 10756, 288, 1377, 327, 8251, 67, 5000, 2102, 18, 588, 8764, 6323, 31720, 12, 3348, 4080, 2018, 67, 13718, 6...
public void startInclusion(CodeReader reader, int offset, int endOffset);
public void startInclusion(CodeReader reader, int offset, int endOffset, int nameOffset, int nameEndoffset, char[] name, boolean systemInclude);
public void startInclusion(CodeReader reader, int offset, int endOffset);
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/df871fe06bd1191491f65b19014fc27782320263/IScannerPreprocessorLog.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/IScannerPreprocessorLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 382, 15335, 12, 1085, 2514, 2949, 16, 509, 1384, 16, 509, 25507, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 382, 15335, 12, 1085, 2514, 2949, 16, 509, 1384, 16, 509, 25507, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
classFile.startMethod("exec",
cfw.startMethod("exec",
private void generateExecute(Context cx) { classFile.startMethod("exec", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); final byte ALOAD_CONTEXT = ByteCode.ALOAD_1; final byte ALOAD_SCOPE = ByteCode.ALOAD_2; String slashName = generatedClassName.replace('.', '/'); // to begin a script, call the initScript method addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ALOAD_SCOPE); addByteCode(ALOAD_CONTEXT); addVirtualInvoke(slashName, "initScript", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ALOAD_CONTEXT); addByteCode(ALOAD_SCOPE); addByteCode(ByteCode.DUP); addByteCode(ByteCode.ACONST_NULL); addVirtualInvoke(slashName, "call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Ljava/lang/Object;"); addByteCode(ByteCode.ARETURN); // 3 = this + context + scope classFile.stopMethod((short)3, null); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 5289, 12, 1042, 9494, 13, 565, 288, 3639, 6080, 91, 18, 1937, 1305, 2932, 4177, 3113, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 4868, 17311, 397, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 5289, 12, 1042, 9494, 13, 565, 288, 3639, 6080, 91, 18, 1937, 1305, 2932, 4177, 3113, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 4868, 17311, 397, 6, ...
public void handleFiles(List files) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.newDocument(); Element overviewRoot = Util.addChildElement(doc, "overview-frame", null); Iterator iter = files.iterator(); while (iter.hasNext()) { File file = (File) iter.next(); if (!file.exists() || !file.canRead()) { continue; } Document xmlDoc = handleFile(file); if (xmlDoc != null) { String shortname = Util.getElementValue( xmlDoc.getDocumentElement(), "body/taglib/shortname"); Util.addChildElement(overviewRoot, "shortname", shortname); File reportHtml = new File(destdir, shortname + "-report.html"); Source xml = new DOMSource(xmlDoc); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibreport/taglib-report.xsl")); Result out = new StreamResult(reportHtml); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); } } Source xml = new DOMSource(overviewRoot); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibreport/index.xsl")); Result out = new StreamResult(new File(destdir, "index.html")); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibreport/overview-frame.xsl")); out = new StreamResult(new File(destdir, "overview-frame.html")); t = tf.newTransformer(xsl); t.transform(xml, out); Util.copyFile( "/resources/taglibreport/stylesheet.css", new File(destdir, "stylesheet.css")); Util.copyFile( "/resources/taglibreport/xbPositionableElement.js", new File(destdir, "xbPositionableElement.js")); } catch (Exception e) { e.printStackTrace(); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibReport.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 4110, 2697, 12, 682, 2354, 15329, 202, 202, 698, 95, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 1442, 5621, 1082, 202, 2519, 1263, 1966, 33, 1966, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 4110, 2697, 12, 682, 2354, 15329, 202, 202, 698, 95, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 1442, 5621, 1082, 202, 2519, 1263, 1966, 33, 1966, 74, ...
if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
if ((SAXDriver.FEATURE + "validation").equals(featureId)) { if (active) { throw new SAXNotSupportedException("already parsing"); } if (state) { forceValidating(); } isValidating = state; } else { aelfred2.setFeature(featureId, state); } }
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlReader.java/clean/libjava/gnu/xml/aelfred2/XmlReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 28669, 261, 780, 2572, 548, 16, 1250, 919, 13, 565, 1216, 10168, 1248, 5650, 9367, 503, 16, 10168, 25482, 565, 288, 202, 6494, 460, 273, 17961, 261, 7238, 548, 1769, 202, 430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28669, 261, 780, 2572, 548, 16, 1250, 919, 13, 565, 1216, 10168, 1248, 5650, 9367, 503, 16, 10168, 25482, 565, 288, 202, 6494, 460, 273, 17961, 261, 7238, 548, 1769, 202, 430, ...
public Object evaluate(CodeContainer code) { return evaluate(code, null, new Object[0]);
public Object evaluate(Variable module) { return load(null, module);
public Object evaluate(CodeContainer code) { return evaluate(code, null, new Object[0]); }
55146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55146/701880c0290454195da336898d87d9bb07d20843/Evaluator.java/buggy/sources/scala/tools/scalai/Evaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5956, 12, 1085, 2170, 981, 13, 288, 3639, 327, 5956, 12, 710, 16, 446, 16, 394, 1033, 63, 20, 19226, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 5956, 12, 1085, 2170, 981, 13, 288, 3639, 327, 5956, 12, 710, 16, 446, 16, 394, 1033, 63, 20, 19226, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
initScriptFunction(cx, "", itsData.argNames, itsData.argCount);
initScriptFunction(itsData.languageVersion, "", itsData.argNames, itsData.argCount);
InterpretedScript(Context cx, InterpreterData theData) { itsData = theData; initScriptFunction(cx, "", itsData.argNames, itsData.argCount); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/37375e32cf16d65268effed2bfea1cc25d1c3dcf/InterpretedScript.java/clean/js/rhino/src/org/mozilla/javascript/InterpretedScript.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 5294, 15089, 329, 3651, 12, 1042, 9494, 16, 5294, 11599, 751, 326, 751, 13, 565, 288, 3639, 2097, 751, 273, 326, 751, 31, 3639, 1208, 3651, 2083, 12, 1282, 751, 18, 4923, 1444, 16, 2345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 5294, 15089, 329, 3651, 12, 1042, 9494, 16, 5294, 11599, 751, 326, 751, 13, 565, 288, 3639, 2097, 751, 273, 326, 751, 31, 3639, 1208, 3651, 2083, 12, 1282, 751, 18, 4923, 1444, 16, 2345...
String result = null;
public String submitReportToRepository() throws BugzillaException, LoginException, PossibleBugzillaFailureException { BufferedOutputStream out = null; BufferedReader in = null; try { // connect to the bugzilla server URLConnection cntx = BugzillaPlugin.getUrlConnection(postUrl, proxySettings); if (cntx == null || !(cntx instanceof HttpURLConnection)) return null; HttpURLConnection postConnection = (HttpURLConnection) cntx; // set the connection method postConnection.setRequestMethod(METHOD_POST); String contentTypeString = POST_CONTENT_TYPE; if (charset != null) { contentTypeString += ";charset=" + charset; } postConnection.setRequestProperty(REQUEST_PROPERTY_CONTENT_TYPE, contentTypeString); // get the url for the update with all of the changed values // Used to debug posted report //System.err.println(">>> "+getPostBody()); byte[] body = getPostBody().getBytes(); postConnection.setRequestProperty(REQUEST_PROPERTY_CONTENT_LENGTH, String.valueOf(body.length)); // allow outgoing streams and open a stream to post to postConnection.setDoOutput(true); out = new BufferedOutputStream(postConnection.getOutputStream()); // write the data and close the stream out.write(body); out.flush(); int responseCode = postConnection.getResponseCode(); if (responseCode != HttpURLConnection.HTTP_OK && responseCode != HttpURLConnection.HTTP_CREATED) { throw new BugzillaException("Server returned HTTP error: " + responseCode + " - " + postConnection.getResponseMessage()); } // open a stream to receive response from bugzilla in = new BufferedReader(new InputStreamReader(postConnection.getInputStream())); String result = null; String aString = in.readLine(); // Used to debug reponse from bugzilla server // while (aString != null) { // System.err.println(aString); // aString = in.readLine(); // } boolean possibleFailure = true; error = ""; while (aString != null) { error += aString == null ? "" : aString + "\n"; // check if we have run into an error if (result == null && (aString.toLowerCase().indexOf("check e-mail") != -1 || aString.toLowerCase().indexOf( "error") != -1)) { throw new LoginException("Bugzilla login problem."); } else if (aString.indexOf("Invalid Username Or Password") != -1) { throw new LoginException("Invalid Username or Password."); } else if (aString.toLowerCase().matches(".*bug\\s+processed.*") // TODO: // make // this // configurable || aString.toLowerCase().matches(".*defect\\s+processed.*")) { possibleFailure = false; } // // get the bug number if it is required if (prefix != null && prefix2 != null && postfix != null && postfix2 != null && result == null) { int startIndex = -1; int startIndexPrefix = aString.toLowerCase().indexOf(prefix.toLowerCase()); int startIndexPrefix2 = aString.toLowerCase().indexOf(prefix2.toLowerCase()); if (startIndexPrefix != -1 || startIndexPrefix2 != -1) { if (startIndexPrefix != -1) { startIndex = startIndexPrefix + prefix.length(); } else { startIndex = startIndexPrefix2 + prefix2.length(); } int stopIndex = aString.toLowerCase().indexOf(postfix.toLowerCase(), startIndex); if (stopIndex == -1) stopIndex = aString.toLowerCase().indexOf(postfix2.toLowerCase(), startIndex); if (stopIndex > -1) { result = (aString.substring(startIndex, stopIndex)).trim(); possibleFailure = false; } } } aString = in.readLine(); } if ((result == null || result.compareTo("") == 0) && (prefix != null && prefix2 == null && postfix != null && postfix2 != null)) { throw new PossibleBugzillaFailureException("Could not find bug number for new bug."); } else if (possibleFailure) { throw new PossibleBugzillaFailureException( "Bug report may not have been submitted. Bugzilla message was: "); } // set the error to null if we dont think that there was one error = null; // return the bug number return result; } catch (IOException e) { throw new BugzillaException("An exception occurred while submitting the bug: " + e.getMessage(), e); } catch (KeyManagementException e) { throw new BugzillaException("Could not POST form. Communications error: " + e.getMessage(), e); } catch (NoSuchAlgorithmException e) { throw new BugzillaException("Could not POST form. Communications error: " + e.getMessage(), e); } finally { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, BugzillaPlugin.PLUGIN_ID, IStatus.ERROR, "Problem posting the bug", e)); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/20a0f58b54df2a45c03b2642a8eeca6861335dd1/BugzillaReportSubmitForm.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 4879, 4820, 774, 3305, 1435, 1216, 16907, 15990, 503, 16, 11744, 503, 16, 25433, 19865, 15990, 14389, 288, 202, 202, 17947, 4632, 596, 273, 446, 31, 202, 202, 17947, 2514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 4879, 4820, 774, 3305, 1435, 1216, 16907, 15990, 503, 16, 11744, 503, 16, 25433, 19865, 15990, 14389, 288, 202, 202, 17947, 4632, 596, 273, 446, 31, 202, 202, 17947, 2514, ...
toolItem.setImage(WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE) .createImage());
toolItem.setText("");
public void update(IPerspectiveDescriptor newDesc) { perspective = newDesc; if (toolItem != null && !toolItem.isDisposed()) { ImageDescriptor imageDescriptor = perspective.getImageDescriptor(); if (imageDescriptor != null) { toolItem.setImage(imageDescriptor.createImage()); } else { toolItem.setImage(WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE) .createImage()); } toolItem.setToolTipText(WorkbenchMessages.format( "PerspectiveBarContributionItem.toolTip", //$NON-NLS-1$ new Object[] { perspective.getLabel() })); } update(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0b575d3fd8a606ede9fefedd40c7d4e72d4f2a84/PerspectiveBarContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveBarContributionItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 2579, 414, 16772, 3187, 394, 4217, 13, 288, 3639, 26651, 273, 394, 4217, 31, 3639, 309, 261, 6738, 1180, 480, 446, 597, 401, 6738, 1180, 18, 291, 1669, 7423, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2579, 414, 16772, 3187, 394, 4217, 13, 288, 3639, 26651, 273, 394, 4217, 31, 3639, 309, 261, 6738, 1180, 480, 446, 597, 401, 6738, 1180, 18, 291, 1669, 7423, 10756, ...
void remove(int value, boolean removeAll) { for (int i = 0; i < length; i++) if (array[i] == value) { array[i--] = array[length-- - 1]; if (!removeAll) break; } }
void remove(int value) { remove(value, true); }
void remove(int value, boolean removeAll) { for (int i = 0; i < length; i++) if (array[i] == value) { array[i--] = array[length-- - 1]; if (!removeAll) break; } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/01a5cb4329018dc20efb1840e9c0d94331c1f444/MailItem.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/MailItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 1206, 12, 474, 460, 16, 1250, 12787, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 7734, 309, 261, 1126, 63, 77, 65, 422, 460, 13, 288, 10792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 1206, 12, 474, 460, 16, 1250, 12787, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 7734, 309, 261, 1126, 63, 77, 65, 422, 460, 13, 288, 10792, ...
throw getRuntime().newNameError("uninitialized constant " + name.asSymbol());
throw getRuntime().newNameError("uninitialized constant " + name.asSymbol(), name.asSymbol());
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant " + name.asSymbol()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1866, 67, 7337, 12, 7937, 10340, 921, 508, 13, 288, 3639, 1748, 1351, 13227, 5381, 1195, 3639, 309, 261, 2211, 480, 18814, 7675, 588, 921, 10756, 288, 5411, 604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1866, 67, 7337, 12, 7937, 10340, 921, 508, 13, 288, 3639, 1748, 1351, 13227, 5381, 1195, 3639, 309, 261, 2211, 480, 18814, 7675, 588, 921, 10756, 288, 5411, 604, ...
throws SAXException { Log.logln(LOG_PROGRESS || SHOW_START_END, "endElement uri\t" + uri + "\tlocalName " + localName + "\tqName " + qName); try { pop(qName); } catch (RuntimeException e) { e.printStackTrace(); throw e; } }
throws SAXException { Log.logln(LOG_PROGRESS || SHOW_START_END, "endElement uri\t" + uri + "\tlocalName " + localName + "\tqName " + qName); try { pop(qName); } catch (RuntimeException e) { e.printStackTrace(); throw e; } }
public void endElement(String uri, String localName, String qName) throws SAXException { Log.logln(LOG_PROGRESS || SHOW_START_END, "endElement uri\t" + uri + "\tlocalName " + localName + "\tqName " + qName); try { pop(qName); } catch (RuntimeException e) { e.printStackTrace(); throw e; } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/4716264464632750d34da5032a0718e1d756a967/CLDRFile.java/buggy/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 5411, 1216, 14366, 288, 377, 1082, 202, 1343, 18, 1330, 2370, 12, 4842, 67, 24022, 747, 27954, 67, 7570, 67, 4415, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 5411, 1216, 14366, 288, 377, 1082, 202, 1343, 18, 1330, 2370, 12, 4842, 67, 24022, 747, 27954, 67, 7570, 67, 4415, 1...
f = f.resolve();
f = resolve(f);
public void visitLPUTSTATIC(jq_StaticField f) { super.visitLPUTSTATIC(f); f = f.resolve(); vm.putstatic_L(f, state.pop_L()); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d12f1e1bc9744829efc71c43906f1f511c2f07d2/Interpreter.java/clean/joeq_native/joeq/Interpreter/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 48, 4762, 22741, 12, 78, 85, 67, 5788, 974, 284, 13, 288, 5411, 2240, 18, 11658, 48, 4762, 22741, 12, 74, 1769, 5411, 284, 273, 2245, 12, 74, 1769, 5411, 4268, 18, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 48, 4762, 22741, 12, 78, 85, 67, 5788, 974, 284, 13, 288, 5411, 2240, 18, 11658, 48, 4762, 22741, 12, 74, 1769, 5411, 284, 273, 2245, 12, 74, 1769, 5411, 4268, 18, 45...
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) {
public void setModuleExecution(ModuleExecution moduleExecution) {
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/CategoryGroup.java/clean/components/common/src/org/openmicroscopy/omero/model/CategoryGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3120, 3210, 12, 3120, 3210, 1605, 3210, 13, 288, 3639, 333, 18, 2978, 3210, 273, 1605, 3210, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3120, 3210, 12, 3120, 3210, 1605, 3210, 13, 288, 3639, 333, 18, 2978, 3210, 273, 1605, 3210, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else { animate.addActionListener(this); frameRate.addChangeListener(new FrameRateListener()); }
animate.addActionListener(this); frameRate.addChangeListener(new FrameRateListener());
void addPanel() { depth2 = stackSize/(depth*(hasTrans ? 2 : 1)); if (!hasTP && numFiles > 1) { if (hasZ) { sliceSel1 = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, depth+1); sliceSel2 = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, depth2+1); } else { sliceSel1 = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, depth2+1); sliceSel2 = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, depth+1); } } else { sliceSel1 = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, depth+1); sliceSel2 = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, depth2+1); } sliceSel1.addAdjustmentListener(this); sliceSel2.addAdjustmentListener(this); int blockIncrement = depth/10; if (blockIncrement < 1) blockIncrement = 1; sliceSel1.setUnitIncrement(1); sliceSel1.setBlockIncrement(blockIncrement*10); blockIncrement = depth2/10; if (blockIncrement<1) blockIncrement = 1; sliceSel2.setUnitIncrement(1); sliceSel2.setBlockIncrement(blockIncrement); // CTR 11 Feb 2005 add(sliceSel1); add(sliceSel2); Panel bottom = new Panel() { public Dimension getPreferredSize() { // panel is always the same width as the image canvas Dimension d = super.getPreferredSize(); d.width = ic.getWidth()<500?500:ic.getWidth(); return d; } }; GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); bottom.setLayout(gridbag); label1 = new JLabel(lab3D); label2 = new JLabel(lab4D); JCheckBox channel2 = new JCheckBox("Transmitted"); channel2.setBackground(Color.white); if (!hasTrans) channel2.setEnabled(false); else channel2.addItemListener(this); JButton animate = new JButton("Animate"); SpinnerModel model = new SpinnerNumberModel(10, 1, 99, 1); frameRate = new JSpinner(model); if ((!hasTP && depth == 1) || (hasTP && depth2 == 1) || numFiles == 1) { animate.setEnabled(false); frameRate.setEnabled(false); } else { animate.addActionListener(this); frameRate.addChangeListener(new FrameRateListener()); } if (!hasTP && hasZ) { if (numFiles > 1) { sliceSel1.setEnabled(false); } else { sliceSel2.setEnabled(false); } } else if (!hasTP && depth == 1) sliceSel2.setEnabled(false); c.gridx = 0; c.gridy = 0; c.fill = GridBagConstraints.NONE; c.weightx = 0.0; c.ipadx = 30; c.anchor = GridBagConstraints.LINE_START; gridbag.setConstraints(label1, c); c.gridy = 2; gridbag.setConstraints(label2, c); c.anchor = GridBagConstraints.CENTER; c.gridx = 1; c.gridy = 0; c.gridwidth = 5; c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 1.0; gridbag.setConstraints(sliceSel1, c); c.gridy = 2; gridbag.setConstraints(sliceSel2, c); c.gridx = 6; c.gridy = 0; c.fill = GridBagConstraints.NONE; c.weightx = 0.0; c.insets = new Insets(0, 5, 0, 0); c.anchor = GridBagConstraints.LINE_END; c.gridwidth = 2; // end row gridbag.setConstraints(channel2, c); c.fill = GridBagConstraints.NONE; c.weightx = 0.0; c.gridheight = 1; c.gridx = 6; c.gridy = 3; c.gridwidth = GridBagConstraints.REMAINDER; //end row c.insets = new Insets(3, 5, 3, 0); gridbag.setConstraints(animate, c); // next row c.gridx = 7; c.gridy = 2; c.gridwidth = 1; c.fill = GridBagConstraints.REMAINDER; c.weightx = 0.0; bottom.add(new JLabel("fps"), c); c.gridx = 6; c.gridy = 2; c.ipadx = 20; //c.gridwidth = GridBagConstraints.REMAINDER; // end row gridbag.setConstraints(frameRate, c); bottom.add(frameRate); // add the XML button c.gridx = 5; c.gridy = 3; c.insets = new Insets(3, 30, 3, 5); xmlButton = new JButton("OME-XML"); xmlButton.addActionListener(this); xmlButton.setActionCommand("xml"); gridbag.setConstraints(xmlButton, c); c.gridx = 0; c.gridy = 3; c.gridwidth = 2; c.insets = new Insets(0, 0, 0, 0); JButton swapAxesButton = new JButton("Swap Axes"); swapAxesButton.addActionListener(this); swapAxesButton.setActionCommand("swap"); gridbag.setConstraints(swapAxesButton, c); bottom.add(label1); bottom.add(sliceSel1); bottom.add(channel2); bottom.add(label2); bottom.add(sliceSel2); bottom.add(animate); bottom.add(xmlButton); bottom.add(swapAxesButton); bottom.setLocation(-100,bottom.getLocation().y); add(bottom); pack(); setLayout(new FlowLayout()); setVisible(true); int previousSlice = imp.getCurrentSlice(); imp.setSlice(hasTrans ? depth+1 : 1); WindowManager.addWindow(this); try { extraData.put(new Integer(imp.getID()), d); } catch (NullPointerException n) { } if (previousSlice > 1 && previousSlice <= imp.getStackSize()) { imp.setSlice(previousSlice); } repaint(); }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/b5ef98852ba8417cbe1025293f096a0307c0ea24/LociDataBrowser.java/clean/loci/browser/LociDataBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 5537, 1435, 288, 1377, 3598, 22, 273, 2110, 1225, 19, 12, 5979, 21556, 5332, 1429, 692, 576, 294, 404, 10019, 1377, 309, 16051, 5332, 11130, 597, 818, 2697, 405, 404, 13, 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, 918, 527, 5537, 1435, 288, 1377, 3598, 22, 273, 2110, 1225, 19, 12, 5979, 21556, 5332, 1429, 692, 576, 294, 404, 10019, 1377, 309, 16051, 5332, 11130, 597, 818, 2697, 405, 404, 13, 288, ...
updateBuildActions(ResourcesPlugin.getWorkspace().isAutoBuilding());
updateBuildActions();
public void makeAndPopulateActions(IWorkbenchConfigurer windowConfigurer, IActionBarConfigurer actionBarConfigurer) { makeActions(windowConfigurer, actionBarConfigurer); populateMenuBar(actionBarConfigurer); populateCoolBar(actionBarConfigurer); updateBuildActions(ResourcesPlugin.getWorkspace().isAutoBuilding()); populateStatusLine(actionBarConfigurer); hookListeners(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cf6dbe88c16d566306439f0a3a20accff5b1cafb/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1221, 1876, 19097, 6100, 12, 45, 2421, 22144, 809, 11278, 2742, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 1221, 6100, 12, 5668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 1876, 19097, 6100, 12, 45, 2421, 22144, 809, 11278, 2742, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 1221, 6100, 12, 5668, ...
if (fBufferOffset + fBufferLength == fDocument.getLength())
int end= fBufferOffset + fBufferLength; if (end == fDocument.getLength() || end == fRangeOffset + fRangeLength)
public final int read() { if (fOffset == fBufferLength) { if (fBufferOffset + fBufferLength == fDocument.getLength()) return EOF; else { updateBuffer(fBufferOffset + fBufferLength); fOffset= 0; } } return fBuffer[fOffset++]; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b99f8f7b29a481f6e67088449d65461b15cb87bb/BufferedDocumentScanner.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/BufferedDocumentScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 509, 855, 1435, 288, 202, 202, 430, 261, 74, 2335, 422, 284, 1892, 1782, 13, 288, 1082, 202, 430, 261, 74, 1892, 2335, 397, 284, 1892, 1782, 422, 284, 2519, 18, 588, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 855, 1435, 288, 202, 202, 430, 261, 74, 2335, 422, 284, 1892, 1782, 13, 288, 1082, 202, 430, 261, 74, 1892, 2335, 397, 284, 1892, 1782, 422, 284, 2519, 18, 588, 17...
private UserQuery storeOrUpdateQueryWithoutTransaction(String name, QueryHelper queryHelper, boolean isPrivate, boolean overwriteQuery, IWUserContext iwuc) throws IDOStoreException, IOException, CreateException, SQLException, FinderException { Group group = getCorrespondingGroup(iwuc); // get user query, get xml data XMLData data = null; UserQuery userQuery = queryHelper.getUserQuery(); if (userQuery !=null && overwriteQuery) { name = modifyNameIfNameAlreadyExistsIgnoreUserQuery(userQuery,name, group); // case: query is modified and should be overwritten data = XMLData.getInstanceForFile(userQuery.getSource()); // update user query and data // store old name before updating String oldName = userQuery.getName(); updateQueryData(name, userQuery, data, queryHelper, group, isPrivate); // do we have to create a new query sequence? if (!oldName.equals(name)) { createQuerySequence(name, userQuery, queryHelper); } } else { // case: brand new query name = modifyNameIfNameAlreadyExists(name, group); userQuery = getUserQueryHome().create(); // store to be sure that the primary key is set ! data = XMLData.getInstanceWithoutExistingFile(); // update user query and data updateQueryData(name, userQuery, data, queryHelper, group, isPrivate); createQuerySequence(name, userQuery, queryHelper); } return userQuery; }
57644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57644/726d5e6858cf8bab2f102dac52b49bdeffe58d8b/QueryServiceBean.java/clean/src/java/com/idega/block/dataquery/business/QueryServiceBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1299, 1138, 2233, 10466, 1138, 8073, 3342, 12, 780, 529, 16, 1138, 2276, 2271, 2276, 16, 6494, 291, 6014, 16, 6494, 19274, 1138, 16, 45, 59, 1299, 1042, 22315, 5286, 13, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1299, 1138, 2233, 10466, 1138, 8073, 3342, 12, 780, 529, 16, 1138, 2276, 2271, 2276, 16, 6494, 291, 6014, 16, 6494, 19274, 1138, 16, 45, 59, 1299, 1042, 22315, 5286, 13, 1082, ...
sJdbcPassword = jdbcProps.getProperty("jdbcPassword");
jdbcDriverProps.put("user", sJdbcUser); jdbcDriverProps.put("password", jdbcProps.getProperty("jdbcPassword")); jdbcDriver = (java.sql.Driver)Class.forName(sJdbcDriver).newInstance();
protected static void loadProps () throws Exception { if (!bPropsLoaded) { InputStream inStream = RDBMServices.class.getResourceAsStream("/properties/rdbm.properties"); Properties jdbcProps = new Properties(); jdbcProps.load(inStream); sJdbcDriver = jdbcProps.getProperty("jdbcDriver"); sJdbcUrl = jdbcProps.getProperty("jdbcUrl"); sJdbcUser = jdbcProps.getProperty("jdbcUser"); sJdbcPassword = jdbcProps.getProperty("jdbcPassword"); bPropsLoaded = true; } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/ad4a5592d326824a0ba31757ac3e4a3936db617f/RDBMServices.java/clean/source/org/jasig/portal/RDBMServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 760, 918, 1262, 5047, 1832, 1216, 1185, 288, 1377, 309, 16051, 70, 5047, 8835, 13, 288, 3639, 5037, 28987, 273, 534, 2290, 49, 5676, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 4738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1262, 5047, 1832, 1216, 1185, 288, 1377, 309, 16051, 70, 5047, 8835, 13, 288, 3639, 5037, 28987, 273, 534, 2290, 49, 5676, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 4738, ...
Evaluator push();
Evaluator push(Member[] members);
Evaluator push();
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/04e646f31dd5b7942980cee630c94f49bdab0e26/Evaluator.java/buggy/src/main/mondrian/olap/Evaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 31956, 1817, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 31956, 1817, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private void setTOS(ValueNumberFrame vnaFrame, Location location, DefinitelyNullSet fact, boolean isNull) throws DataflowAnalysisException { ValueNumber valueNumber = vnaFrame.getTopValue(); fact.set(valueNumber.getNumber(), isNull); if (isNull) { fact.setAssignedNullLocation(valueNumber.getNumber(), compactLocationNumbering.getNumber(location)); } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f47b52a2bea78a8ae70ad37e4db61531a5cdf2d8/DefinitelyNullSetAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/npe2/DefinitelyNullSetAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 542, 4296, 55, 12, 620, 1854, 3219, 90, 6582, 3219, 16, 2735, 3562, 16, 6443, 25818, 2041, 694, 3493, 16, 6494, 291, 2041, 13, 1082, 202, 15069, 751, 2426, 9418, 503, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 542, 4296, 55, 12, 620, 1854, 3219, 90, 6582, 3219, 16, 2735, 3562, 16, 6443, 25818, 2041, 694, 3493, 16, 6494, 291, 2041, 13, 1082, 202, 15069, 751, 2426, 9418, 503, 9...
this.labelTitle.setText(Messages.getString("ConfirmationPanel.Title"));
this.labelTitle.setText(DeepaMehtaMessages.getString("SetupWizard.ConfirmationPanel.Title"));
private JPanel getPanelTitle() { if (this.panelTitle == null) { this.labelTitle = new JLabel(); this.panelTitle = new JPanel(); this.labelTitle.setText(Messages.getString("ConfirmationPanel.Title")); //$NON-NLS-1$ this.labelTitle.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 18)); this.panelTitle.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); this.panelTitle.add(this.labelTitle, null); } return this.panelTitle; }
13653 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13653/71da0c3787b04338fa24ead224d064913638ddab/ConfirmationPanel.java/clean/trunk/develop/src/de/deepamehta/launchpad/setup/wizard/ConfirmationPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 24048, 1689, 30427, 4247, 1435, 288, 202, 202, 430, 261, 2211, 18, 13916, 4247, 422, 446, 13, 288, 1082, 202, 2211, 18, 1925, 4247, 273, 394, 21403, 5621, 1082, 202, 2211, 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, 225, 202, 1152, 24048, 1689, 30427, 4247, 1435, 288, 202, 202, 430, 261, 2211, 18, 13916, 4247, 422, 446, 13, 288, 1082, 202, 2211, 18, 1925, 4247, 273, 394, 21403, 5621, 1082, 202, 2211, 18, ...
shutdown(); throw iex;
if (iex.getMessage().startsWith("No space left on device")) { throw new DiskOutOfSpaceException("No space left on device"); } else { shutdown(); throw iex; }
private void writeBlock(DataInputStream in) throws IOException { // // Read in the header // DataOutputStream reply = new DataOutputStream(new BufferedOutputStream(s.getOutputStream())); try { boolean shouldReportBlock = in.readBoolean(); Block b = new Block(); b.readFields(in); int numTargets = in.readInt(); if (numTargets <= 0) { throw new IOException("Mislabelled incoming datastream."); } DatanodeInfo targets[] = new DatanodeInfo[numTargets]; for (int i = 0; i < targets.length; i++) { DatanodeInfo tmp = new DatanodeInfo(); tmp.readFields(in); targets[i] = tmp; } byte encodingType = (byte) in.read(); long len = in.readLong(); // // Make sure curTarget is equal to this machine // DatanodeInfo curTarget = targets[0]; // // Track all the places we've successfully written the block // Vector mirrors = new Vector(); // // Open local disk out // DataOutputStream out = new DataOutputStream(new BufferedOutputStream(data.writeToBlock(b))); InetSocketAddress mirrorTarget = null; String mirrorNode = null; try { // // Open network conn to backup machine, if // appropriate // DataInputStream in2 = null; DataOutputStream out2 = null; if (targets.length > 1) { // Connect to backup machine mirrorNode = targets[1].getName(); mirrorTarget = createSocketAddr(mirrorNode); try { Socket s2 = new Socket(); s2.connect(mirrorTarget, READ_TIMEOUT); s2.setSoTimeout(READ_TIMEOUT); out2 = new DataOutputStream(new BufferedOutputStream(s2.getOutputStream())); in2 = new DataInputStream(new BufferedInputStream(s2.getInputStream())); // Write connection header out2.write(OP_WRITE_BLOCK); out2.writeBoolean(shouldReportBlock); b.write(out2); out2.writeInt(targets.length - 1); for (int i = 1; i < targets.length; i++) { targets[i].write(out2); } out2.write(encodingType); out2.writeLong(len); myMetrics.replicatedBlocks(1); } catch (IOException ie) { if (out2 != null) { LOG.info("Exception connecting to mirror " + mirrorNode + "\n" + StringUtils.stringifyException(ie)); try { out2.close(); in2.close(); } catch (IOException out2close) { } finally { out2 = null; in2 = null; } } } } // // Process incoming data, copy to disk and // maybe to network. // boolean anotherChunk = len != 0; byte buf[] = new byte[BUFFER_SIZE]; while (anotherChunk) { while (len > 0) { int bytesRead = in.read(buf, 0, (int)Math.min(buf.length, len)); if (bytesRead < 0) { throw new EOFException("EOF reading from "+s.toString()); } if (bytesRead > 0) { try { out.write(buf, 0, bytesRead); myMetrics.wroteBytes(bytesRead); } catch (IOException iex) { shutdown(); throw iex; } if (out2 != null) { try { out2.write(buf, 0, bytesRead); } catch (IOException out2e) { LOG.info("Exception writing to mirror " + mirrorNode + "\n" + StringUtils.stringifyException(out2e)); // // If stream-copy fails, continue // writing to disk. We shouldn't // interrupt client write. // try { out2.close(); in2.close(); } catch (IOException out2close) { } finally { out2 = null; in2 = null; } } } len -= bytesRead; } } if (encodingType == RUNLENGTH_ENCODING) { anotherChunk = false; } else if (encodingType == CHUNKED_ENCODING) { len = in.readLong(); if (out2 != null) { try { out2.writeLong(len); } catch (IOException ie) { LOG.info("Exception writing to mirror " + mirrorNode + "\n" + StringUtils.stringifyException(ie)); try { out2.close(); in2.close(); } catch (IOException ie2) { // NOTHING } finally { out2 = null; in2 = null; } } } if (len == 0) { anotherChunk = false; } } } if (out2 != null) { try { out2.flush(); long complete = in2.readLong(); if (complete != WRITE_COMPLETE) { LOG.info("Conflicting value for WRITE_COMPLETE: " + complete); } LocatedBlock newLB = new LocatedBlock(); newLB.readFields(in2); in2.close(); out2.close(); DatanodeInfo mirrorsSoFar[] = newLB.getLocations(); for (int k = 0; k < mirrorsSoFar.length; k++) { mirrors.add(mirrorsSoFar[k]); } } catch (IOException ie) { LOG.info("Exception writing to mirror " + mirrorNode + "\n" + StringUtils.stringifyException(ie)); try { out2.close(); in2.close(); } catch (IOException ie2) { // NOTHING } finally { out2 = null; in2 = null; } } } if (out2 == null) { LOG.info("Received block " + b + " from " + s.getInetAddress()); } else { LOG.info("Received block " + b + " from " + s.getInetAddress() + " and mirrored to " + mirrorTarget); } } finally { try { out.close(); } catch (IOException iex) { shutdown(); throw iex; } } data.finalizeBlock(b); myMetrics.wroteBlocks(1); // // Tell the namenode that we've received this block // in full, if we've been asked to. This is done // during NameNode-directed block transfers, but not // client writes. // if (shouldReportBlock) { synchronized (receivedBlockList) { receivedBlockList.add(b); receivedBlockList.notifyAll(); } } // // Tell client job is done, and reply with // the new LocatedBlock. // reply.writeLong(WRITE_COMPLETE); mirrors.add(curTarget); LocatedBlock newLB = new LocatedBlock(b, (DatanodeInfo[]) mirrors.toArray(new DatanodeInfo[mirrors.size()])); newLB.write(reply); } finally { reply.close(); } }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/67354d9a280bcc27ce256ba07c03704fc231475c/DataNode.java/buggy/src/java/org/apache/hadoop/dfs/DataNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1045, 1768, 12, 751, 4348, 316, 13, 1216, 1860, 288, 1850, 368, 1850, 368, 2720, 316, 326, 1446, 1850, 368, 1850, 28680, 4332, 273, 2398, 394, 28680, 12, 2704, 28649, 12, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1045, 1768, 12, 751, 4348, 316, 13, 1216, 1860, 288, 1850, 368, 1850, 368, 2720, 316, 326, 1446, 1850, 368, 1850, 28680, 4332, 273, 2398, 394, 28680, 12, 2704, 28649, 12, 87, ...
println(" DECLARE @reftable nvarchar(60), @constraintname nvarchar(60)"); println(" DECLARE refcursor CURSOR FOR"); println(" select reftables.name tablename, cons.name constraintname"); println(" from sysobjects tables,"); println(" sysobjects reftables,"); println(" sysobjects cons,"); println(" sysreferences ref"); println(" where tables.id = ref.rkeyid"); println(" and cons.id = ref.constid"); println(" and reftables.id = ref.fkeyid"); print(" and tables.name = ");
println(" DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)"); println(" DECLARE refcursor CURSOR FOR"); println(" SELECT object_name(objs.parent_obj) tablename, objs.name constraintname"); println(" FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid"); print(" WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = ");
public void dropTable(Table table) throws IOException { String tableName = getTableName(table); writeQuotationOnStatement(); print("IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = "); printAlwaysSingleQuotedIdentifier(tableName); println(")"); println("BEGIN"); println(" DECLARE @reftable nvarchar(60), @constraintname nvarchar(60)"); println(" DECLARE refcursor CURSOR FOR"); println(" select reftables.name tablename, cons.name constraintname"); println(" from sysobjects tables,"); println(" sysobjects reftables,"); println(" sysobjects cons,"); println(" sysreferences ref"); println(" where tables.id = ref.rkeyid"); println(" and cons.id = ref.constid"); println(" and reftables.id = ref.fkeyid"); print(" and tables.name = "); printAlwaysSingleQuotedIdentifier(tableName); println(" OPEN refcursor"); println(" FETCH NEXT from refcursor into @reftable, @constraintname"); println(" while @@FETCH_STATUS = 0"); println(" BEGIN"); println(" exec ('alter table '+@reftable+' drop constraint '+@constraintname)"); println(" FETCH NEXT from refcursor into @reftable, @constraintname"); println(" END"); println(" CLOSE refcursor"); println(" DEALLOCATE refcursor"); print(" DROP TABLE "); printlnIdentifier(tableName); print("END"); printEndOfStatement(); }
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/a487371df6ee484b45085187e4180a8b8e845725/MSSqlBuilder.java/clean/src/java/org/apache/ddlutils/platform/mssql/MSSqlBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3640, 1388, 12, 1388, 1014, 13, 1216, 1860, 565, 288, 3639, 514, 4775, 273, 11996, 12, 2121, 1769, 3639, 1045, 7678, 367, 1398, 3406, 5621, 3639, 1172, 2932, 5501, 20476, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3640, 1388, 12, 1388, 1014, 13, 1216, 1860, 565, 288, 3639, 514, 4775, 273, 11996, 12, 2121, 1769, 3639, 1045, 7678, 367, 1398, 3406, 5621, 3639, 1172, 2932, 5501, 20476, 261, ...
public String getContent() { try { InputStream in = getInputStream(); byte[] byteBuffer = new byte[in.available()]; in.read(byteBuffer); in.close(); return new String(byteBuffer); } catch (Exception ignore) { return "";
public String getContent(String encoding) throws IOException { InputStream in = getInputStream(); int size = (int) file.length(); byte[] buf = new byte[size]; int read = 0; while (read < size) { int r = in.read(buf, read, size - read); if (r == -1) break; read += r;
public String getContent() { try { InputStream in = getInputStream(); byte[] byteBuffer = new byte[in.available()]; in.read(byteBuffer); in.close(); return new String(byteBuffer); } catch (Exception ignore) { return ""; } }
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/1336e51ba065f1f5d4d790656b30ec798ec3ce31/FileResource.java/clean/src/helma/framework/repository/FileResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5154, 1435, 288, 3639, 775, 288, 5411, 5037, 316, 273, 14424, 5621, 5411, 1160, 8526, 21734, 273, 394, 1160, 63, 267, 18, 5699, 1435, 15533, 5411, 316, 18, 896, 12, 7229, 1892,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5154, 1435, 288, 3639, 775, 288, 5411, 5037, 316, 273, 14424, 5621, 5411, 1160, 8526, 21734, 273, 394, 1160, 63, 267, 18, 5699, 1435, 15533, 5411, 316, 18, 896, 12, 7229, 1892,...
break; case STARTCDATA:
} else if (STARTCDATA.equals(type)) {
public void outputBuffer() throws SAXException { // for speed purposes, we don't allow contentHandler to be null if(contentHandler!=null) { Enumeration args = eventArguments.elements (); ThreeString ths; CharBlock cd; TwoString ts; FourString fs; SAXParseException e; for (Enumeration types = eventTypes.elements (); types.hasMoreElements ();) { int type = ((Integer)types.nextElement ()).intValue (); switch (type) { // ContentHandler events case STARTDOCUMENT: contentHandler.startDocument (); break; case ENDDOCUMENT: contentHandler.endDocument (); break; case STARTPREFIXMAPPING: ts=(TwoString) args.nextElement(); contentHandler.startPrefixMapping(ts.first,ts.second); break; case ENDPREFIXMAPPING: contentHandler.endPrefixMapping((String)args.nextElement()); break; case STARTELEMENT: StartElementData sed = (StartElementData) args.nextElement (); contentHandler.startElement (sed.getURI(), sed.getLocalName(), sed.getQName(),sed.getAtts()); break; case ENDELEMENT: ths = (ThreeString) args.nextElement (); contentHandler.endElement (ths.first,ths.second,ths.third); break; case CHARACTERS: cd = (CharBlock) args.nextElement (); contentHandler.characters (cd.getCh(), cd.getStart(), cd.getLength()); break; case IGNORABLEWHITESPACE: cd = (CharBlock) args.nextElement (); contentHandler.ignorableWhitespace (cd.getCh(), cd.getStart(), cd.getLength()); break; case PROCESSINGINSTRUCTION: ts=(TwoString) args.nextElement(); contentHandler.processingInstruction (ts.first,ts.second); break; // DTDHandler events case NOTATIONDECL: if(dtdHandler!=null) { ths=(ThreeString) args.nextElement(); dtdHandler.notationDecl(ths.first,ths.second,ths.third); } break; case UNPARSEDENTITYDECL: if(dtdHandler!=null) { fs=(FourString) args.nextElement(); dtdHandler.unparsedEntityDecl(fs.first,fs.second,fs.third,fs.fourth); } break; // ErrorHandler events case WARNING: if(errorHandler!=null) { e=(SAXParseException) args.nextElement(); errorHandler.warning(e); } break; case ERROR: if(errorHandler!=null) { e=(SAXParseException) args.nextElement(); errorHandler.error(e); } break; case FATALERROR: if(errorHandler!=null) { e=(SAXParseException) args.nextElement(); errorHandler.fatalError(e); } break; // LexicalHandler events case STARTDTD: if(lexicalHandler!=null) { ths=(ThreeString) args.nextElement(); lexicalHandler.startDTD(ths.first,ths.second,ths.third); } break; case ENDDTD: if(lexicalHandler!=null) { lexicalHandler.endDTD(); } break; case STARTENTITY: if(lexicalHandler!=null) { String n=(String) args.nextElement(); lexicalHandler.startEntity(n); } break; case ENDENTITY: if(lexicalHandler!=null) { String n=(String) args.nextElement(); lexicalHandler.endEntity(n); } break; case STARTCDATA: if(lexicalHandler!=null) { lexicalHandler.startCDATA(); } break; case ENDCDATA: if(lexicalHandler!=null) { lexicalHandler.endCDATA(); } break; case COMMENT: if(lexicalHandler!=null) { CharBlock ccd = (CharBlock) args.nextElement (); lexicalHandler.comment (ccd.getCh(), ccd.getStart(), ccd.getLength()); } break; } } } else { // Logger.log (Logger.ERROR, "SAX2BufferImpl:stopBuffering() : trying to ouput buffer to a null ContentHandler."); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/5bd8136256b7a06c2a8f66363fbe38b5e9e9f206/SAX2BufferImpl.java/buggy/source/org/jasig/portal/utils/SAX2BufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 876, 1892, 1435, 1216, 14366, 288, 3639, 368, 364, 8632, 13694, 16, 732, 2727, 1404, 1699, 913, 1503, 358, 506, 446, 3639, 309, 12, 1745, 1503, 5, 33, 2011, 13, 288, 5411, 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, 377, 1071, 918, 876, 1892, 1435, 1216, 14366, 288, 3639, 368, 364, 8632, 13694, 16, 732, 2727, 1404, 1699, 913, 1503, 358, 506, 446, 3639, 309, 12, 1745, 1503, 5, 33, 2011, 13, 288, 5411, 13...
if (b1 == 0x3C && b1 == 0x00 && b2 == 0x3F && b3 == 0x00) {
if (b0 == 0x3C && b1 == 0x00 && b2 == 0x3F && b3 == 0x00) {
protected String getEncodingName(byte[] b4, int count) { if (count < 2) { return "UTF-8"; } // UTF-16, with BOM int b0 = b4[0] & 0xFF; int b1 = b4[1] & 0xFF; if (b0 == 0xFE && b1 == 0xFF) { // UTF-16, big-endian return "UTF-16"; } if (b0 == 0xFF && b1 == 0xFE) { // UTF-16, little-endian return "UTF-16"; } // default to UTF-8 if we don't have enough bytes to make a // good determination of the encoding if (count < 3) { return "UTF-8"; } // UTF-8 with a BOM int b2 = b4[2] & 0xFF; if (b0 == 0xEF && b1 == 0xBB && b2 == 0xBF) { return "UTF-8"; } // default to UTF-8 if we don't have enough bytes to make a // good determination of the encoding if (count < 4) { return "UTF-8"; } // other encodings int b3 = b4[3] & 0xFF; if (b0 == 0x00 && b1 == 0x00 && b2 == 0x00 && b3 == 0x3C) { // UCS-4, big endian (1234) // REVISIT: What should this be? return "UCS-4"; } if (b0 == 0x3C && b1 == 0x00 && b2 == 0x00 && b3 == 0x00) { // UCS-4, little endian (4321) // REVISIT: What should this be? return "UCS-4"; } if (b0 == 0x00 && b1 == 0x00 && b2 == 0x3C && b3 == 0x00) { // UCS-4, unusual octet order (2143) // REVISIT: What should this be? return "UCS-4"; } if (b0 == 0x00 && b1 == 0x3C && b2 == 0x00 && b3 == 0x00) { // UCS-4, unusual octect order (3412) // REVISIT: What should this be? return "UCS-4"; } if (b1 == 0x00 && b1 == 0x3C && b2 == 0x00 && b3 == 0x3F) { // UTF-16, big-endian, no BOM // REVISIT: What should this be? return "UCS-4"; } if (b1 == 0x3C && b1 == 0x00 && b2 == 0x3F && b3 == 0x00) { // UTF-16, little-endian, no BOM return "UCS-4"; } if (b1 == 0x4C && b1 == 0x6F && b2 == 0xA7 && b3 == 0x94) { // EBCDIC return "EBCDIC"; } // default encoding return "UTF-8"; } // getEncodingName(byte[],int):String
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/790f245881c057a7863cee8a66a5056617ca8297/XMLEntityManager.java/buggy/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 29505, 461, 12, 7229, 8526, 324, 24, 16, 509, 1056, 13, 288, 3639, 309, 261, 1883, 411, 576, 13, 288, 5411, 327, 315, 5159, 17, 28, 14432, 3639, 289, 3639, 368, 6380, 17, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 29505, 461, 12, 7229, 8526, 324, 24, 16, 509, 1056, 13, 288, 3639, 309, 261, 1883, 411, 576, 13, 288, 5411, 327, 315, 5159, 17, 28, 14432, 3639, 289, 3639, 368, 6380, 17, 2...
Text categoryText = new Text(categoryString); categoryText.setFontStyle(_categoryStyle);
private void getCollectionView(BoxEntity box, BoxCategory[] categories, Table boxTable, IWContext iwc) { int row = 1; Image image = Table.getTransparentCell(iwc); image.setHeight(_boxSpacing); for (int a = 0; a < categories.length; a++) { String categoryString = BoxBusiness.getLocalizedString(categories[a], _iLocaleID); if (categoryString == null) { categoryString = "$language$"; } Text categoryText = new Text(categoryString); categoryText.setFontStyle(_categoryStyle); Table table = new Table(); table.setWidth("100%"); table.setCellspacing(0); table.setCellpadding(1); table.add(categoryText, 1, 1); int linkRow = 2; int column = 1; if (_showHeaders) { Text nameHeader = new Text(_iwrb.getLocalizedString("link_name", "Name")); if (_headerStyle != null) nameHeader.setStyleAttribute(_headerStyle); table.add(nameHeader, column++, linkRow); if (_showFileSize) { Text fileSizeHeader = new Text(_iwrb.getLocalizedString("link_file_size", "File size")); if (_headerStyle != null) fileSizeHeader.setStyleAttribute(_headerStyle); table.setWidth(column++, linkRow, 12); table.add(fileSizeHeader, column++, linkRow); if (_showMimeType) { Text mimetypeHeader = new Text(_iwrb.getLocalizedString("link_mimetype", "Mimetype")); if (_headerStyle != null) mimetypeHeader.setStyleAttribute(_headerStyle); table.setWidth(column++, linkRow, 12); table.add(mimetypeHeader, column, linkRow); } } linkRow++; } BoxLink[] links = null; System.out.println("Getting links in getCollectionView()"); System.out.println("_showOnlyBelongingToUser = " + _showOnlyBelongingToUser); if (_showCollection) { links = BoxFinder.getLinksInCategory(categories[a]); } else { if (_showOnlyBelongingToUser) links = BoxFinder.getLinksInBoxByUser(box, categories[a], iwc.getUserId()); else links = BoxFinder.getLinksInBox(box, categories[a]); } if (links != null) { List collection = Arrays.asList(links); if (iSortAlphabetically) { Collections.sort(collection, new BoxComparator(iwc.getCurrentLocale())); } Iterator iter = collection.iterator(); while (iter.hasNext()) { BoxLink boxLink = (BoxLink) iter.next(); column = 1; Link link = getLink(boxLink); if (link != null) { table.add(link, column++, linkRow); if (_showFileSize) { ICFile file = boxLink.getFile(); double size = 0; try { size = (double) file.getFileSize().intValue() / (double) 1024; } catch (Exception e) { size = 0; } DecimalFormat format = new DecimalFormat("0.0 KB"); Text fileSize = new Text(format.format(size)); fileSize.setStyle(_name); table.setWidth(column++, linkRow, 12); table.setAlignment(column, linkRow, Table.HORIZONTAL_ALIGN_RIGHT); table.add(fileSize, column++, linkRow); if (_showMimeType) { String mimeType = null; try { mimeType = file.getMimeType(); mimeType = mimeType.replace('\\', '_'); mimeType = mimeType.replace('/', '_'); mimeType = mimeType.replace(':', '_'); mimeType = mimeType.replace('*', '_'); mimeType = mimeType.replace('?', '_'); mimeType = mimeType.replace('<', '_'); mimeType = mimeType.replace('>', '_'); mimeType = mimeType.replace('|', '_'); mimeType = mimeType.replace('\"', '_'); } catch (Exception e) { mimeType = null; } if (mimeType != null) { Image mime = _iwb.getImage(_DEFAULT_ICON_PREFIX+mimeType+_DEFAULT_ICON_SUFFIX); table.setWidth(column++, linkRow, 12); table.add(mime, column++, linkRow); } } } if (_isAdmin) { table.setWidth(column++, linkRow, 5); table.add(getEditLink(boxLink.getID()), column, linkRow); table.add(getDeleteLink(boxLink.getID()), column, linkRow); } linkRow++; } } if (_isAdmin) { table.add(getAddLink(categories[a].getID()), 1, linkRow); } } boxTable.add(table, 1, row); row++; boxTable.add(image, 1, row); row++; } }
13829 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13829/eb0f84346a12ce3c7d0c6bfef55efe1ccb70e2f1/Box.java/buggy/src/java/com/idega/block/boxoffice/presentation/Box.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 12075, 1767, 12, 3514, 1943, 3919, 16, 8549, 4457, 8526, 6477, 16, 3555, 3919, 1388, 16, 467, 59, 1042, 25522, 71, 13, 288, 202, 202, 474, 1027, 273, 404, 31, 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, 225, 202, 1152, 918, 12075, 1767, 12, 3514, 1943, 3919, 16, 8549, 4457, 8526, 6477, 16, 3555, 3919, 1388, 16, 467, 59, 1042, 25522, 71, 13, 288, 202, 202, 474, 1027, 273, 404, 31, 202, 202, ...
AST tmp969_AST_in = (AST)_t;
AST tmp968_AST_in = (AST)_t;
public final void definequerystate(AST _t) throws RecognitionException { AST definequerystate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1189 = _t; AST tmp965_AST_in = (AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case PRIVATE: case PUBLIC: case QUERY: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case QUERY: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp966_AST_in = (AST)_t; match(_t,QUERY); _t = _t.getNextSibling(); AST tmp967_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp968_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); AST tmp969_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: case FIELDS: { record_fields(_t); _t = _retTree; break; } case EOF: case PERIOD: case CACHE: case RCODEINFORMATION: case SCROLLING: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1195: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp970_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp971_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: case FIELDS: { record_fields(_t); _t = _retTree; break; } case EOF: case PERIOD: case CACHE: case RCODEINFORMATION: case SCROLLING: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1195; } } while (true); } { _loop1198: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CACHE: { AST __t1197 = _t; AST tmp972_AST_in = (AST)_t; match(_t,CACHE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1197; _t = _t.getNextSibling(); break; } case SCROLLING: { AST tmp973_AST_in = (AST)_t; match(_t,SCROLLING); _t = _t.getNextSibling(); break; } case RCODEINFORMATION: { AST tmp974_AST_in = (AST)_t; match(_t,RCODEINFORMATION); _t = _t.getNextSibling(); break; } default: { break _loop1198; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1189; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 2271, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 2271, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 2271, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 2271, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
cabFile.lastModified())
cabFile.lastModified()) {
protected boolean isUpToDate(Vector files) { boolean upToDate = true; for (int i=0; i<files.size() && upToDate; i++) { String file = files.elementAt(i).toString(); if (new File(baseDir,file).lastModified() > cabFile.lastModified()) upToDate = false; } return upToDate; }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/7a4e9ca2278d5e22a3492abb964312150d0286b9/Cab.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/Cab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 353, 1211, 31264, 12, 5018, 1390, 13, 565, 288, 3639, 1250, 731, 31264, 273, 638, 31, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2354, 18, 1467, 1435, 597, 731, 31264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 353, 1211, 31264, 12, 5018, 1390, 13, 565, 288, 3639, 1250, 731, 31264, 273, 638, 31, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2354, 18, 1467, 1435, 597, 731, 31264, ...
final AsmCodeGenerator codeGenerator = new AsmCodeGenerator(rootContainer, loader);
final AsmCodeGenerator codeGenerator = new AsmCodeGenerator(rootContainer, loader, new PsiNestedFormLoader(module));
public FileProcessingCompiler.ProcessingItem[] process(final CompileContext context, final FileProcessingCompiler.ProcessingItem[] items) { final ArrayList<FileProcessingCompiler.ProcessingItem> compiledItems = new ArrayList<FileProcessingCompiler.ProcessingItem>(); ApplicationManager.getApplication().runReadAction(new Runnable() { public void run() { context.getProgressIndicator().setText(UIDesignerBundle.message("progress.compiling.ui.forms")); final HashMap<Module, ArrayList<MyInstrumentationItem>> module2itemsList = sortByModules(items); int formsProcessed = 0; for (final Module module : module2itemsList.keySet()) { final String classPath = ProjectRootsTraversing.collectRoots(module, ProjectRootsTraversing.FULL_CLASSPATH_RECURSIVE).getPathsString(); final ClassLoader loader = createClassLoader(classPath); if (GuiDesignerConfiguration.getInstance(myProject).COPY_FORMS_RUNTIME_TO_OUTPUT) { final String moduleOutputPath = CompilerPaths.getModuleOutputPath(module, false); try { if (moduleOutputPath != null) { CopyResourcesUtil.copyFormsRuntime(moduleOutputPath, false); } final String testsOutputPath = CompilerPaths.getModuleOutputPath(module, true); if (testsOutputPath != null && !testsOutputPath.equals(moduleOutputPath)) { CopyResourcesUtil.copyFormsRuntime(testsOutputPath, false); } } catch (IOException e) { addError( context, UIDesignerBundle.message("error.cannot.copy.gui.designer.form.runtime", module.getName(), e.toString()), null ); } } final ArrayList<MyInstrumentationItem> list = module2itemsList.get(module); for (final MyInstrumentationItem item : list) { context.getProgressIndicator().setFraction((double)(++formsProcessed) / ((double)items.length)); final VirtualFile formFile = item.getFormFile(); final Document doc = FileDocumentManager.getInstance().getDocument(formFile); final LwRootContainer rootContainer; try { rootContainer = Utils.getRootContainer(doc.getText(), new CompiledClassPropertiesProvider(loader)); } catch (Exception e) { addError(context, UIDesignerBundle.message("error.cannot.process.form.file", e), formFile); continue; } final File classFile = VfsUtil.virtualToIoFile(item.getFile()); LOG.assertTrue(classFile.exists(), classFile.getPath()); final AsmCodeGenerator codeGenerator = new AsmCodeGenerator(rootContainer, loader); codeGenerator.patchFile(classFile); final String[] errors = codeGenerator.getErrors(); final String[] warnings = codeGenerator.getWarnings(); for (String warning : warnings) { addWarning(context, warning, formFile); } for (String error : errors) { addError(context, error, formFile); } if (errors.length == 0) { compiledItems.add(item); } } } } }); return compiledItems.toArray(new FileProcessingCompiler.ProcessingItem[compiledItems.size()]); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0a8c7f6f897798de90c99991927c43760777d651/Form2ByteCodeCompiler.java/clean/ui-designer/impl/com/intellij/uiDesigner/make/Form2ByteCodeCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1387, 7798, 9213, 18, 7798, 1180, 8526, 1207, 12, 6385, 16143, 1042, 819, 16, 4766, 7682, 727, 1387, 7798, 9213, 18, 7798, 1180, 8526, 1516, 13, 288, 565, 727, 2407, 32, 812, 7798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 7798, 9213, 18, 7798, 1180, 8526, 1207, 12, 6385, 16143, 1042, 819, 16, 4766, 7682, 727, 1387, 7798, 9213, 18, 7798, 1180, 8526, 1516, 13, 288, 565, 727, 2407, 32, 812, 7798, ...
if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){ fileName = file.getLocation( ).toOSString( ); InputStream is = new FileInputStream(fileName); ModuleHandle model = SessionHandleAdapter.getInstance( ).init( fileName,is ); model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) ); model.save(); is.close( ); }
private void doFinish( IPath containerName, String fileName, InputStream stream, String cheatSheetId, boolean showCheatSheet, IProgressMonitor monitor ) throws CoreException { // create a sample file monitor.beginTask( CREATING + fileName, 2 ); IResource resource = (IContainer) ResourcesPlugin.getWorkspace( ) .getRoot( ) .findMember( containerName ); IContainer container = null; if ( resource == null || !resource.exists( ) || !( resource instanceof IContainer ) ) { // create folder if not exist IFolder folder = createFolderHandle( containerName ); UIUtil.createFolder( folder, monitor ); container = folder; } else { container = (IContainer) resource; } final IFile file = container.getFile( new Path( fileName ) ); final String cheatId = cheatSheetId; final boolean showCheat = showCheatSheet; try { if ( file.exists( ) ) { file.setContents( stream, true, true, monitor ); } else { file.create( stream, true, monitor ); } stream.close( ); if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){ fileName = file.getLocation( ).toOSString( ); InputStream is = new FileInputStream(fileName); ModuleHandle model = SessionHandleAdapter.getInstance( ).init( fileName,is ); model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) ); model.save(); is.close( ); } } catch ( Exception e ) { } monitor.worked( 1 ); monitor.setTaskName( OPENING_FILE_FOR_EDITING ); getShell( ).getDisplay( ).asyncExec( new Runnable( ) { public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IDE.openEditor( page, file, true ); //setReportSettings( ( (IDEReportEditor) editorPart ).getModel( ) ); //editorPart.doSave( null ); BasicNewProjectResourceWizard.updatePerspective( configElement ); if ( showCheat && !cheatId.equals( "" ) ) //$NON-NLS-1$ { OpenCheatSheetAction action = null; // Temporary remark the choice page for that feature is // not supported in R1 // if ( choicePage.isCustom( ) ) // { // action = new OpenCheatSheetAction( file.getName( ), // file.getName( ), // new URL( cheatId ) ); //$NON-NLS-1$ // } // else // { action = new OpenCheatSheetAction( cheatId ); // } action.run( ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } } } ); monitor.worked( 1 ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/546229f93352dd11d3a374ba60974b1f75027225/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 11641, 12, 467, 743, 20408, 16, 514, 3968, 16, 1082, 202, 4348, 1407, 16, 514, 19315, 270, 8229, 548, 16, 1250, 2405, 39, 580, 270, 8229, 16, 1082, 202, 45, 5491, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 11641, 12, 467, 743, 20408, 16, 514, 3968, 16, 1082, 202, 4348, 1407, 16, 514, 19315, 270, 8229, 548, 16, 1250, 2405, 39, 580, 270, 8229, 16, 1082, 202, 45, 5491, ...
return 110; }
return 110; }
public int getVersionOfFirstRelease(){ return 110; }
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/ae5daeb6a447edf40a1be7e63cdb678c4d2bbaa1/NumForNodesWithChar.java/clean/Source/mesquite/trees/NumForNodesWithChar/NumForNodesWithChar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 482, 509, 8343, 951, 3759, 7391, 1435, 95, 377, 202, 202, 2463, 20168, 31, 4202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 482, 509, 8343, 951, 3759, 7391, 1435, 95, 377, 202, 202, 2463, 20168, 31, 4202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
System.out.println(indent+"Field "+field+" Parent nodes: "+inEdges);
System.out.println(indent+"Field "+field.getName().toString()+" Parent nodes: "+inEdges);
static void printAllInclusionEdges(HashSet visited, MethodSummary.Node pnode, MethodSummary.Node node, String indent, boolean all, jq_Field f, boolean verbose) throws IOException { if (verbose) System.out.print(indent+"Node: "+node); if (pnode != null) { Quad q = (Quad)apa.edgesToQuads.get(Default.pair(pnode, node)); if (q != null) if (verbose) System.out.print(" from instruction "+q); } if (visited.contains(node)) { if (verbose) System.out.println(" <duplicate>, skipping."); return; } visited.add(node); if (verbose) System.out.println(); if (node instanceof MethodSummary.OutsideNode) { MethodSummary.OutsideNode onode = (MethodSummary.OutsideNode)node; while (onode.skip != null) { if (verbose) System.out.println(indent+onode+" equivalent to "+onode.skip); onode = onode.skip; } if (onode instanceof MethodSummary.FieldNode) { MethodSummary.FieldNode fnode = (MethodSummary.FieldNode)onode; jq_Field field = fnode.f; Set inEdges = fnode.getAccessPathPredecessors(); System.out.println(indent+"Field "+field+" Parent nodes: "+inEdges); System.out.print(indent+"Type 'w' to find matching writes to parent nodes, 'u' to go up: "); String s = in.readLine(); if (s.equalsIgnoreCase("u")) { for (Iterator it3 = inEdges.iterator(); it3.hasNext(); ) { MethodSummary.Node node4 = (MethodSummary.Node)it3.next(); printAllInclusionEdges(visited, null, node4, indent+"<", all, field, true); } } else if (s.equalsIgnoreCase("w")) { for (Iterator it3 = inEdges.iterator(); it3.hasNext(); ) { MethodSummary.Node node4 = (MethodSummary.Node)it3.next(); printAllInclusionEdges(visited, null, node4, indent+"<", all, field, false); } } } Set outEdges = (Set)apa.nodeToInclusionEdges.get(onode); if (outEdges != null) { boolean yes = all || !verbose; if (!yes) { System.out.print(indent+outEdges.size()+" out edges, print them? ('y' for yes, 'a' for all) "); String s = in.readLine(); if (s.equalsIgnoreCase("y")) yes = true; else if (s.equalsIgnoreCase("a")) all = yes = true; } if (yes) { for (Iterator it3 = outEdges.iterator(); it3.hasNext(); ) { MethodSummary.Node node2 = (MethodSummary.Node)it3.next(); printAllInclusionEdges(visited, onode, node2, indent+" ", all, null, verbose); } } } } else { Set s = node.getNonEscapingEdges(f); if (s.size() > 0) { boolean yes = all; System.out.println(indent+s.size()+" write edges match field "+((f==null)?"[]":f.getName().toString())); for (Iterator i=s.iterator(); i.hasNext(); ) { MethodSummary.Node node2 = (MethodSummary.Node)i.next(); Quad quad = node.getSourceQuad(f, node2); if (quad != null) System.out.println(indent+"From instruction: "+quad); printAllInclusionEdges(visited, null, node2, indent+">", all, null, verbose); } } } }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/b56367ecb88c2c6de9aaea3bde8aeed3587edcaf/PointerExplorer.java/clean/joeq_core/joeq/Compiler/Quad/PointerExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 1172, 1595, 382, 15335, 10697, 12, 13482, 9711, 16, 2985, 4733, 18, 907, 293, 2159, 16, 2985, 4733, 18, 907, 756, 16, 514, 3504, 16, 1250, 777, 16, 20656, 67, 974, 284, 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, 760, 918, 1172, 1595, 382, 15335, 10697, 12, 13482, 9711, 16, 2985, 4733, 18, 907, 293, 2159, 16, 2985, 4733, 18, 907, 756, 16, 514, 3504, 16, 1250, 777, 16, 20656, 67, 974, 284, 16, ...
String oid = request.getParameter("oid"); Integer idInternal = Integer.valueOf(oid);
String oid = request.getParameter("oid"); Integer idInternal = Integer.valueOf(oid);
public ActionForward deleteIncompatibility(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String oid = request.getParameter("oid"); Integer idInternal = Integer.valueOf(oid); Vigilant vigilant = (Vigilant) RootDomainObject .readDomainObjectByOID(Vigilant.class, idInternal); Object[] args = { vigilant }; executeService(request, "RemoveIncompatiblePerson", args); putIncompatibilitiesInRequest(request); return mapping.findForward("incompatibilities"); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/bf038d353ac7538e5827d426ae8c0c090973ac6b/VigilantGroupManagement.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/vigilancy/VigilantGroupManagement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1430, 382, 27303, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 3639, 514, 7764, 273, 590, 18, 588, 1662, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1430, 382, 27303, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 3639, 514, 7764, 273, 590, 18, 588, 1662, 2932, ...
return TypeUtil.getDeclaringType(res);
return TypeUtil.getDeclaringClass(res);
private ICElement getDefiningType(ITypeHierarchy hierarchy, IMethodDeclaration method) throws CModelException { ICElement declaringType= TypeUtil.getDeclaringType(method); if ((method.getVisibility() == ASTAccessVisibility.PRIVATE) || method.isStatic() || method.isConstructor() || method.isDestructor()) { return null; } ICElement res= TypeUtil.findMethodDeclarationInHierarchy(hierarchy, declaringType, method.getElementName(), method.getParameterTypes(), false, false); if (res == null || method.equals(res)) { return null; } return TypeUtil.getDeclaringType(res); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cd51bbd5f74702b10da18821cacea42e20722fe5/HierarchyViewerSorter.java/clean/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/typehierarchy/HierarchyViewerSorter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 26899, 1046, 336, 6443, 310, 559, 12, 45, 559, 12074, 9360, 16, 467, 1305, 6094, 707, 13, 1216, 385, 1488, 503, 288, 202, 202, 2871, 1046, 20845, 559, 33, 1412, 1304, 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, 225, 202, 1152, 26899, 1046, 336, 6443, 310, 559, 12, 45, 559, 12074, 9360, 16, 467, 1305, 6094, 707, 13, 1216, 385, 1488, 503, 288, 202, 202, 2871, 1046, 20845, 559, 33, 1412, 1304, 18, 588...
void setStyle (HSSFCellStyle style) {
void setStyle(HSSFCellStyle style) {
void setStyle (HSSFCellStyle style) { if (style != null) { _cell.setCellStyle(style); } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/32307c8ad72f13555999cfde179d9a18f0487694/Cell.java/clean/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Cell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 18995, 12, 44, 1260, 42, 4020, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 480, 446, 13, 288, 5411, 389, 3855, 18, 542, 4020, 2885, 12, 4060, 1769, 3639, 289, 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, 1, 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, 18995, 12, 44, 1260, 42, 4020, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 480, 446, 13, 288, 5411, 389, 3855, 18, 542, 4020, 2885, 12, 4060, 1769, 3639, 289, 565, 289, 2, -100, -...
return startTime.before(endTime) ? ((timeOnly.after(startTime) || timeOnly.equals(startTime)) && (timeOnly .before(endTime) || timeOnly.equals(endTime))) : ((timeOnly.after(startTime) || timeOnly .equals(startTime)) || (timeOnly.before(endTime) || timeOnly.equals(endTime)));
return startTime.before(endTime) ? ((timeOnly.after(startTime) || timeOnly.equals(startTime)) && (timeOnly .before(endTime) || timeOnly.equals(endTime))) : ((timeOnly.after(startTime) || timeOnly.equals(startTime)) || (timeOnly .before(endTime) || timeOnly.equals(endTime)));
private boolean isDailySessionTime(Calendar timestamp) { Calendar timeOnly = getTimeOnly(timestamp, calendar1); return startTime.before(endTime) ? ((timeOnly.after(startTime) || timeOnly.equals(startTime)) && (timeOnly .before(endTime) || timeOnly.equals(endTime))) : ((timeOnly.after(startTime) || timeOnly .equals(startTime)) || (timeOnly.before(endTime) || timeOnly.equals(endTime))); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/1767d639ccd72514f6c22f90185d2090cac4fcd4/SessionSchedule.java/clean/src/quickfix/SessionSchedule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 40, 12857, 2157, 950, 12, 7335, 2858, 13, 288, 3639, 5542, 813, 3386, 273, 6135, 3386, 12, 5508, 16, 5686, 21, 1769, 3639, 327, 8657, 18, 5771, 12, 409, 950, 13, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 40, 12857, 2157, 950, 12, 7335, 2858, 13, 288, 3639, 5542, 813, 3386, 273, 6135, 3386, 12, 5508, 16, 5686, 21, 1769, 3639, 327, 8657, 18, 5771, 12, 409, 950, 13, 692, ...
MarkerType type = MarkerTypesModel.getInstance().getType(rootTypes[i]);
MarkerType type = MarkerTypesModel.getInstance().getType( rootTypes[i]);
MarkerFilter(String filterName, String[] rootTypes) { name = filterName; for (int i = 0; i < rootTypes.length; i++) { MarkerType type = MarkerTypesModel.getInstance().getType(rootTypes[i]); if (!this.rootTypes.contains(type)) { this.rootTypes.add(type); } } resetState(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0645148767f084e4b686984a56e3496706cce525/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, 7078, 1586, 12, 780, 25469, 16, 514, 8526, 1365, 2016, 13, 288, 202, 202, 529, 273, 25469, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1365, 2016, 18, 2469, 31, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7078, 1586, 12, 780, 25469, 16, 514, 8526, 1365, 2016, 13, 288, 202, 202, 529, 273, 25469, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1365, 2016, 18, 2469, 31, 27...
public void delProfilePermissions(long id_profile) throws KettleDatabaseException
public synchronized void delProfilePermissions(long id_profile) throws KettleDatabaseException
public void delProfilePermissions(long id_profile) throws KettleDatabaseException { String sql = "DELETE FROM R_PROFILE_PERMISSION WHERE ID_PROFILE = " + id_profile; database.execStatement(sql); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9a23bf7234591fe690816bbf6320414c2ad3eaae/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1464, 4029, 6521, 12, 5748, 612, 67, 5040, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 780, 1847, 273, 315, 6460, 4571, 534, 67, 22462, 67, 23330, 4852, 1599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1464, 4029, 6521, 12, 5748, 612, 67, 5040, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 780, 1847, 273, 315, 6460, 4571, 534, 67, 22462, 67, 23330, 4852, 1599...
elfac = IsotopeFactory.getInstance();
elfac = IsotopeFactory.getInstance(atomContainer.getBuilder());
public DescriptorValue calculate(AtomContainer atomContainer) throws CDKException { int valence = 0; int atomicNumber = 0; int hcount = 0; int atomValue = 0; double val0 = 0; double val1 = 0; ArrayList chiAtom = new ArrayList(2); double chi1v = 0; double chi1vC = 0; Atom[] atoms = null; Atom[] neighatoms = null; Element element = null; IsotopeFactory elfac = null; String symbol = null; org.openscience.cdk.interfaces.Bond[] bonds = atomContainer.getBonds(); for (int b = 0; b < bonds.length; b++) { atoms = bonds[b].getAtoms(); if ((!atoms[0].getSymbol().equals("H")) && (!atoms[1].getSymbol().equals("H"))) { val0 = 0; val1 = 0; chiAtom.clear(); for (int a = 0; a < atoms.length; a++) { symbol = atoms[a].getSymbol(); try { elfac = IsotopeFactory.getInstance(); } catch (Exception exc) { logger.debug(exc); throw new CDKException("Problem instantiating IsotopeFactory: " + exc.toString(), exc); } try { element = elfac.getElement(symbol); } catch (Exception exc) { logger.debug(exc); throw new CDKException("Problem getting isotope " + symbol + " from ElementFactory: " + exc.toString(), exc); } atomicNumber = element.getAtomicNumber(); valence = ((Integer)valences.get(symbol)).intValue(); hcount = 0; atomValue = 0; neighatoms = atomContainer.getConnectedAtoms(atoms[a]); for (int n = 0; n < neighatoms.length; n++) { if (neighatoms[n].getSymbol().equals("H")) { hcount += 1; } } hcount += atoms[a].getHydrogenCount(); atomValue = (valence - hcount) / (atomicNumber - valence - 1); //if(atomValue > 0) { chiAtom.add(new Double(atomValue)); //System.out.println(symbol+"= atomvalue: "+atomValue+",val: "+valence); //} } val0 = ( (Double)chiAtom.get(0) ).doubleValue(); val1 = ( (Double)chiAtom.get(1) ).doubleValue(); if(val0 > 0 && val1 >0) { if((atoms[0].getSymbol().equals("C")) && (atoms[1].getSymbol().equals("C"))) { chi1vC += 1/(Math.sqrt(val0 * val1)); } } } } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(chi1vC)); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/99fe3519d35ad1fd276844ab16fa237c545a01fc/ValenceCarbonConnectivityOrderOneDescriptor.java/clean/src/org/openscience/cdk/qsar/ValenceCarbonConnectivityOrderOneDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12823, 620, 4604, 12, 3641, 2170, 22487, 13, 1216, 24570, 288, 202, 202, 474, 1244, 802, 273, 374, 31, 202, 202, 474, 7960, 1854, 273, 374, 31, 202, 202, 474, 366, 1883, 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, 225, 202, 482, 12823, 620, 4604, 12, 3641, 2170, 22487, 13, 1216, 24570, 288, 202, 202, 474, 1244, 802, 273, 374, 31, 202, 202, 474, 7960, 1854, 273, 374, 31, 202, 202, 474, 366, 1883, 273, ...
if (aString.endsWith(")") && (Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString) == null)) { final String featKey = aString.substring(0, aString.indexOf('(') - 1); final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, featKey); if (anAbility != null) {
if (aString.endsWith(")") && (Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString) == null)) { final String featKey = aString.substring(0, aString .indexOf('(') - 1); final Ability anAbility = Globals.getAbilityKeyed( Constants.FEAT_CATEGORY, featKey); if (anAbility != null) {
public void setRace(final Race aRace) { final Race oldRace = getRace(); final boolean raceIsNull = (oldRace == null); // needed because race is set to null later final boolean firstLevel = getTotalClassLevels()==1; // remove current race attributes if (!raceIsNull) { oldRace.getSpellSupport().clearCharacterSpells(); if (PlayerCharacterUtilities.canReassignRacialFeats()) { final StringTokenizer aTok = new StringTokenizer(oldRace.getFeatList(this), Constants.PIPE); while (aTok.hasMoreTokens()) { final String aString = aTok.nextToken(); if (aString.endsWith(")") && (Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString) == null)) { final String featKey = aString.substring(0, aString.indexOf('(') - 1); final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, featKey); if (anAbility != null) { AbilityUtilities.modFeat(this, null, aString, true, false);// setFeats(feats - anAbility.getCost(this)); adjustFeats(-anAbility.getCost(this)); } } else { final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString); if (anAbility != null) { final String featKey = anAbility.getKeyName(); if ((hasRealFeat(anAbility) || hasFeatAutomatic(featKey))) { AbilityUtilities.modFeat(this, null, aString, true, false);// setFeats(feats - anAbility.getCost(this)); adjustFeats(-anAbility.getCost(this)); } } else { ShowMessageDelegate.showMessageDialog("Removing unknown feat: " + aString, Constants.s_APPNAME, MessageType.INFORMATION); } } } } languages.removeAll(oldRace.getSafeListFor(ListKey.AUTO_LANGUAGES)); cachedWeaponProfs = null; if (stringChar.hasCharacteristic(StringKey.RACIAL_FAVORED_CLASS)) { favoredClasses.remove(stringChar.getCharacteristic(StringKey.RACIAL_FAVORED_CLASS)); } removeNaturalWeapons(race); for (String s : race.templatesAdded()) { removeTemplate(getTemplateKeyed(s)); } if ((race.getMonsterClass(this) != null) && (race.getMonsterClassLevels(this) != 0)) { final PCClass mclass = Globals.getClassKeyed(race.getMonsterClass(this)); if (mclass != null) { incrementClassLevel(race.getMonsterClassLevels(this) * -1, mclass, true); } } } // add new race attributes race = null; if (aRace != null) { race = (Race) aRace.clone(); } if (race != null) { race.activateBonuses(this); if (!isImporting()) { Globals.getBioSet().randomize("AGE.HT.WT", this); } // Get existing classes final List<PCClass> existingClasses = new ArrayList<PCClass>(classList); classList.clear(); // // Remove all saved monster level information // for (int i = getLevelInfoSize() - 1; i >= 0; --i) { final String classKeyName = getLevelInfoClassKeyName(i); final PCClass aClass = Globals.getClassKeyed(classKeyName); if ((aClass == null) || aClass.isMonster()) { removeLevelInfo(i); } } final List<PCLevelInfo> existingLevelInfo = new ArrayList<PCLevelInfo>(pcLevelInfo); pcLevelInfo.clear(); // Make sure monster classes are added first if (!isImporting() && (race.getMonsterClass(this) != null) && (race.getMonsterClassLevels(this) != 0)) { final PCClass mclass = Globals.getClassKeyed(race.getMonsterClass(this)); if (mclass != null) { incrementClassLevel(race.getMonsterClassLevels(this), mclass, true); } } pcLevelInfo.addAll(existingLevelInfo); // // If user has chosen a class before choosing a race, // we need to tweak the number of skill points and feats // if (!isImporting() && existingClasses.size()!=0) { int totalLevels = this.getTotalLevels();// final Integer zero = Integer.valueOf(0); for ( PCClass pcClass : existingClasses ) { // // Don't add monster classes back in. This will possibly mess up feats earned by level // ?Possibly convert to mclass if not null? // if (!pcClass.isMonster()) { classList.add(pcClass); final int cLevels = pcClass.getLevel(); //aClass.setLevel(0); pcClass.setSkillPool(0); int cMod = 0; for (int j = 0; j < cLevels; ++j) { cMod += pcClass.recalcSkillPointMod(this, ++totalLevels); } pcClass.setSkillPool(cMod); } } } addNaturalWeapons(race.getNaturalWeapons()); if (PlayerCharacterUtilities.canReassignRacialFeats()) { final StringTokenizer aTok = new StringTokenizer(getRace().getFeatList(this), Constants.PIPE); while (aTok.hasMoreTokens()) { final String aString = aTok.nextToken(); if (aString.endsWith(")") && (Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString) == null)) { // we want the first instance of it, in case of Weapon Focus(Longbow (Composite)) final String featKey = aString.substring(0, aString.indexOf('(') - 1); final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, featKey); if (anAbility != null) {// setFeats(feats + anAbility.getCost(this)); adjustFeats(anAbility.getCost(this)); AbilityUtilities.modFeat(this, null, aString, true, true); } } else { final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString); if (anAbility != null) { final String featKey = anAbility.getKeyName(); if ((!this.hasRealFeat(anAbility) && !this.hasFeatAutomatic(featKey))) {// setFeats(feats + anAbility.getCost(this)); adjustFeats(anAbility.getCost(this)); //modFeat(featName, true, featName.endsWith("Proficiency")); AbilityUtilities.modFeat(this, null, aString, true, true); } } else { ShowMessageDelegate.showMessageDialog("Adding unknown feat: " + aString, Constants.s_APPNAME, MessageType.INFORMATION); } } } } getAutoLanguages(); getRacialFavoredClasses(); race.getTemplates(isImporting(), this); // gets and adds templates race.chooseLanguageAutos(isImporting(), this); }// TODO - Change this back// setAggregateAbilitiesStable(null, false); setAggregateFeatsStable(false); setAutomaticFeatsStable(false); setVirtualFeatsStable(false); if (!isImporting()) { getSpellList(); race.globalChecks(this); adjustMoveRates(); calcActiveBonuses(); } setDirty(true); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 54, 623, 12, 6385, 534, 623, 279, 54, 623, 13, 202, 95, 202, 202, 6385, 534, 623, 1592, 54, 623, 273, 4170, 623, 5621, 202, 202, 6385, 1250, 17996, 2520, 2041, 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, 225, 202, 482, 918, 444, 54, 623, 12, 6385, 534, 623, 279, 54, 623, 13, 202, 95, 202, 202, 6385, 534, 623, 1592, 54, 623, 273, 4170, 623, 5621, 202, 202, 6385, 1250, 17996, 2520, 2041, 273...
if (!needInterface(ifaceSym)) {
if (!needInterface(ifaceSym))
protected Symbol getClassSym(Symbol ifaceSym) { assert !hasClassSuffix(ifaceSym.name) : ifaceSym.name; if (!needInterface(ifaceSym)) { return ifaceSym; } else { if (!ifaceToClass.containsKey(ifaceSym)) { Symbol classSym; Name ifaceName = ifaceSym.enclClass().fullName(); classSym = global.definitions.getClass(className(ifaceName)); if (ifaceSym.isPrimaryConstructor()) classSym = classSym.constructor(); assert classSym != Symbol.NONE : ifaceSym; ifaceToClass.put(ifaceSym, classSym); classToInterface.put(classSym, ifaceSym); } return (Symbol)ifaceToClass.get(ifaceSym); } }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/9523dad59863f61037acc6bf89359b9f3ad95489/AddInterfaces.java/buggy/sources/scalac/transformer/AddInterfaces.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 8565, 2900, 11901, 12, 5335, 9751, 11901, 13, 288, 3639, 1815, 401, 5332, 797, 5791, 12, 31479, 11901, 18, 529, 13, 294, 9751, 11901, 18, 529, 31, 3639, 309, 16051, 14891, 1358, 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, 4750, 8565, 2900, 11901, 12, 5335, 9751, 11901, 13, 288, 3639, 1815, 401, 5332, 797, 5791, 12, 31479, 11901, 18, 529, 13, 294, 9751, 11901, 18, 529, 31, 3639, 309, 16051, 14891, 1358, 12,...
logger.debug(reflectedClass.getName(), " #fields: " + fields.length);
private DefaultMutableTreeNode getTree(ChemObject object) { DefaultMutableTreeNode node = new ChemObjectTreeNode(object); Class reflectedClass = object.getClass(); // get all fields in this ChemObject Field[] fields = getFields(reflectedClass); // logger.debug(reflectedClass.getName() + " #fields: " + fields.length); for (int i=0; i<fields.length; i++) { Field f = fields[i]; f.setAccessible(true); // logger.debug("Field name: " + f.getName()); // logger.debug("Field type: " + f.getType().getName()); try { // get an instance of the object in the field Object fieldObject = f.get(object); if (fieldObject != null) { // logger.debug("Field value: " + fieldObject.getClass().getName()); if (fieldObject instanceof ChemObject) { // yes, found a ChemObject! // logger.debug("Recursing into this object"); node.add(getTree((ChemObject)fieldObject)); } else if (fieldObject instanceof ChemObject[]) { // yes, found a Array! // logger.debug("Recursing into this Array"); // determine what kind of Array ChemObject[] objects = (ChemObject[])fieldObject; int count = objects.length; // Because the count above gives the array length and not the number // of not null objects the array, some intelligence must be added if (object instanceof AtomContainer) { if (objects[0] instanceof Atom) { count = ((AtomContainer)object).getAtomCount(); } else if (objects[0] instanceof Bond) { count = ((AtomContainer)object).getBondCount(); } } // now start actual looping over child objects for (int j=0; j<objects.length; j++) { if (objects[j] != null) { node.add(getTree(objects[j])); } } } } else { //logger.debug("Field value: null"); } } catch (Exception e) { logger.error(e.toString()); } } return node; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/a087356949ddf5adf7b02ebd8111b72c53eab132/ChemObjectTree.java/buggy/src/org/openscience/cdk/applications/swing/ChemObjectTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1194, 18, 4148, 12, 1734, 1582, 329, 797, 18, 17994, 9334, 315, 468, 2821, 30, 315, 397, 1466, 18, 2469, 1769, 1194, 18, 4148, 12, 1734, 1582, 329, 797, 18, 17994, 9334, 315, 468, 2821, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1194, 18, 4148, 12, 1734, 1582, 329, 797, 18, 17994, 9334, 315, 468, 2821, 30, 315, 397, 1466, 18, 2469, 1769, 1194, 18, 4148, 12, 1734, 1582, 329, 797, 18, 17994, 9334, 315, 468, 2821, 30, ...
outputMap.put(pt.getScuflPort().getName().toLowerCase(),pt);
outputMap.put(pt.getScuflPort().getName().toLowerCase(),pt); }
public uk.ac.soton.itinnovation.mygrid.workflow.enactor.core.eventservice.TaskStateMessage doTask() { try{ TalismanProcessor theProcessor = (TalismanProcessor)proc; // Get a map of the inputs, for each entry in the map the key is the // name of the port that the input came in on, the value is the value // of the input (obviously) Map inputMap = new HashMap(); // Parents are all PortTasks (I think?) GraphNode[] inputs = getParents(); for (int i = 0; i < inputs.length; i++) { PortTask pt = (PortTask)inputs[i]; Part p = pt.getData(); Element e = (Element)p.getValue(); inputMap.put(p.getName(),e.getFirstChild().getNodeValue()); } // Get a map of the output ports, keys are port names, values are // PortTask instances, used when we have named output and need to // set the port values. Map outputMap = new HashMap(); GraphNode[] outputs = getChildren(); for (int i = 0; i < outputs.length; i++) { PortTask pt = (PortTask)outputs[i]; logger.debug("Found an output port task, registering it with name : "+pt.getScuflPort().getName().toLowerCase()); // convert all port names to lower case, eases matching later on outputMap.put(pt.getScuflPort().getName().toLowerCase(),pt); } // Get the parameters for this invocation Map talismanInputMap = theProcessor.getInputMappings(); Map talismanOutputMap = theProcessor.getOutputMappings(); String definitionURL = theProcessor.getTalismanDefinitionURL(); String triggerName = theProcessor.getTriggerName(); // Create a new Talisman session etc. // Should use a singleton one of these here! Can't at the moment // because there's no way of cleaning up sessions, if we don't use // the singleton they'll be collected like any other object. TeaTray teaTray = new TeaTray(); URL url = new URL(definitionURL); String sessionID = teaTray.createSession(url); // Iterate over the talismanInputMap.... for (Iterator i = talismanInputMap.keySet().iterator(); i.hasNext(); ) { // portName is the name of one of the ports on this processor String portName = (String)i.next(); // talismanName is the specifier for a field in the talisman session String talismanName = (String)talismanInputMap.get(portName); // portValue is the string value of the port, and it had better be // a string or there will be much bitching! String portValue = (String)inputMap.get(portName.toLowerCase()); // Set the value in the talisman session logger.debug("Setting value : "+talismanName+" to "+portValue); teaTray.setStringValue(sessionID, talismanName, portValue); } // Invoke the trigger teaTray.invokeTrigger(sessionID, triggerName); // Iterate over the talismanOutputMap.... for (Iterator i = talismanOutputMap.keySet().iterator(); i.hasNext(); ) { // portName is the name of the port the value should be sent to String portName = (String)i.next(); // talismanName is the name of the field the value should be read from String talismanName = (String)talismanOutputMap.get(portName); // talismanValue is the contents of the field defined in talismanName String talismanValue = teaTray.getStringValue(sessionID, talismanName); logger.debug("Creating output - portName = "+portName+", fieldName = "+talismanName); // Write the value to the port, is this the right way to do it? PortTask pt = (PortTask)outputMap.get(portName.toLowerCase()); // If the port task wasn't found in the map, then the output isn't bound // to anything and therefore we shouldn't try to write the data out. if (pt != null) { logger.debug("Port task found : "+pt.toString()); Part outputPart = new Part(-1, portName, "string", talismanValue); pt.setData(outputPart); } } // Done? I think so anyway. // Success return new TaskStateMessage(getParentFlow().getID(), getID(), TaskStateMessage.COMPLETE, "Task finished successfully"); } catch(Exception ex) { logger.error("Error invoking talisman for task " +getID() ,ex); return new TaskStateMessage(getParentFlow().getID(),getID(),TaskStateMessage.FAILED,"Task " + getID() + " failed due to problem invoking talisman"); } }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/5f66d59db512d117e74cdf377b296e482887701a/TalismanTask.java/buggy/trunk/taverna1.0/src/uk/ac/soton/itinnovation/taverna/enactor/entities/TalismanTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27178, 18, 1077, 18, 87, 352, 265, 18, 305, 267, 82, 1527, 367, 18, 81, 4338, 1691, 18, 13815, 18, 275, 3362, 18, 3644, 18, 2575, 3278, 18, 2174, 1119, 1079, 741, 2174, 1435, 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, 27178, 18, 1077, 18, 87, 352, 265, 18, 305, 267, 82, 1527, 367, 18, 81, 4338, 1691, 18, 13815, 18, 275, 3362, 18, 3644, 18, 2575, 3278, 18, 2174, 1119, 1079, 741, 2174, 1435, 28...
BrowserControlFactory.setAppData(args[0]);
BrowserControlFactory.setAppData("nonnative", args[0]);
public static void main(String [] args){ System.out.println("doing asserts"); Assert.setEnabled(true); Log.setApplicationName("BrowserControlFactory"); Log.setApplicationVersion("0.0"); Log.setApplicationVersionDate("$Id: BrowserControlFactory.java,v 1.4 2001/05/29 18:34:19 ashuk%eng.sun.com Exp $"); BrowserControlCanvas canvas = null; BrowserControl control = null; try { BrowserControlFactory.setAppData(args[0]); control = BrowserControlFactory.newBrowserControl(); Assert.assert_it(control != null); canvas = (BrowserControlCanvas) control.queryInterface("webclient.BrowserControlCanvas"); Assert.assert_it(canvas != null); } catch (Exception e) { System.out.println(e.getMessage()); }}
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/66014df74dc65067759144c17bf072521de6a32c/BrowserControlFactory.java/clean/java/webclient/classes_spec/org/mozilla/webclient/BrowserControlFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 2774, 12, 780, 5378, 833, 15329, 565, 2332, 18, 659, 18, 8222, 2932, 2896, 310, 26124, 8863, 565, 5452, 18, 542, 1526, 12, 3767, 1769, 565, 1827, 18, 542, 3208, 461, 2932, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 2774, 12, 780, 5378, 833, 15329, 565, 2332, 18, 659, 18, 8222, 2932, 2896, 310, 26124, 8863, 565, 5452, 18, 542, 1526, 12, 3767, 1769, 565, 1827, 18, 542, 3208, 461, 2932, 91...
progressListener = l;
progressListener = l;
public void setProgressListener(ProgressListener l) { progressListener = l; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/e52ac744cd6cb7bf0ce3a82e6530680ed5180cbc/AWTRenderer.java/clean/src/org/apache/fop/render/awt/AWTRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5491, 2223, 12, 5491, 2223, 328, 13, 288, 565, 4007, 2223, 273, 328, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5491, 2223, 12, 5491, 2223, 328, 13, 288, 565, 4007, 2223, 273, 328, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void close() throws IOException { out = 0; in = 0; closed = true; synchronized(this) { finished = true; this.notifyAll(); } }
public synchronized void close() throws IOException { closed = true; notifyAll(); }
public void close() throws IOException { out = 0; in = 0; closed = true; synchronized(this) { finished = true; this.notifyAll(); }}
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/af503bb72418d994f4439910bc3989d556fcdbd5/PipedInputStream.java/buggy/libraries/javalib/java/io/PipedInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1746, 1435, 1216, 1860, 288, 202, 659, 273, 374, 31, 202, 267, 273, 374, 31, 202, 12204, 273, 638, 31, 202, 22043, 12, 2211, 13, 202, 95, 202, 202, 13527, 273, 638, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1746, 1435, 1216, 1860, 288, 202, 659, 273, 374, 31, 202, 267, 273, 374, 31, 202, 12204, 273, 638, 31, 202, 22043, 12, 2211, 13, 202, 95, 202, 202, 13527, 273, 638, 31, 202, 202...
int changeRow = Integer.parseInt(rst.nextToken()); String thisRow = (String) rows.get(changeRow-1); consoleWriteLn("** Skriv om rad " + changeRow + ":"); consoleWriteLn(changeRow + ": " + thisRow); rows.set(changeRow-1, crtReadLine(changeRow + ": ")); consoleWriteLn("");
if (rst.hasMoreTokens()) { int changeRow = Integer.parseInt(rst.nextToken()); String thisRow = (String) rows.get(changeRow-1); consoleWriteLn("** Skriv om rad " + changeRow + ":"); consoleWriteLn(changeRow + ": " + thisRow); rows.set(changeRow-1, crtReadLine(changeRow + ": ")); consoleWriteLn(""); } else { consoleWriteLn("** Du mste ange ett radnummer."); }
Text editText(Text t) throws IOException { String subject = bytesToString(t.getSubject()); int[] rcpts = t.getRecipients(); for (int i=0; i < rcpts.length; i++) { consoleWriteLn("Mottagare: " + confNoToName(rcpts[i])); } int[] ccRcpts = t.getCcRecipients(); for (int i=0; i < ccRcpts.length; i++) { consoleWriteLn("Extra kopiemottagare: " + confNoToName(ccRcpts[i])); } if (subject.length() == 0) { subject = crtReadLine("rende: "); } else { consoleWriteLn("rende: " + subject); } consoleWriteLn("--- skriv \"!?\" p tom rad fr hjlp ----------------------------------"); if (subject == null) return null; int rowCount = 1; int currentRow = 1; List rows = t.getBodyList(); if (rows.size() > 0) { for (int i=0; i < rows.size(); i++) { consoleWriteLn((i+1) + ": " + rows.get(i)); } consoleWriteLn(""); } String row = crtReadLine(rows.size()+1 + ": "); while (row != null && !row.equals(".")) { if (row.startsWith("!")) { StringTokenizer rst = new StringTokenizer(row); String icmd = rst.nextToken(); if (icmd.startsWith("!f")) { String confs = rst.nextToken("").substring(1); int newConf = parseNameArgs(confs, true, true); if (newConf > 0) { consoleWriteLn("** Byter mottagare till " + confNoToName(newConf)); t.addCcRecipients(t.getRecipients()); t.clearRecipients(); t.addRecipient(newConf); } } else if (icmd.startsWith("!am")) { String confs = rst.nextToken("").substring(1); int newConf = parseNameArgs(confs, true, true); if (newConf > 0) { consoleWriteLn("** Adderar " + confNoToName(newConf) + " som mottagare"); t.addRecipient(newConf); } } else if (icmd.startsWith("!sk")) { String confs = rst.nextToken("").substring(1); int newConf = parseNameArgs(confs, true, true); if (newConf > 0) { consoleWriteLn("** Subtraherar " + confNoToName(newConf) + " frn kopiemottagarlista"); t.removeCcRecipient(newConf); } } else if (icmd.startsWith("!sm")) { String confs = rst.nextToken("").substring(1); int newConf = parseNameArgs(confs, true, true); if (newConf > 0) { consoleWriteLn("** Subtraherar " + confNoToName(newConf) + " frn mottagarlista"); t.removeRecipient(newConf); } } else if (icmd.startsWith("!ak")) { String confs = rst.nextToken("").substring(1); int newConf = parseNameArgs(confs, true, true); if (newConf > 0) { consoleWriteLn("** Adderar " + confNoToName(newConf) + " som kopiemottagare"); t.addCcRecipient(newConf); } } else if (icmd.startsWith("!r")) { int changeRow = Integer.parseInt(rst.nextToken()); String thisRow = (String) rows.get(changeRow-1); consoleWriteLn("** Skriv om rad " + changeRow + ":"); consoleWriteLn(changeRow + ": " + thisRow); rows.set(changeRow-1, crtReadLine(changeRow + ": ")); consoleWriteLn(""); } else if (icmd.startsWith("!rr")) { if (rst.hasMoreTokens()) { int delRow = Integer.parseInt(rst.nextToken()); String theRow = (String) rows.get(delRow-1); consoleWriteLn("** Ta bort rad " + delRow); consoleWriteLn(delRow + ": " + theRow); if (crtReadLine("Vill du ta bort denna rad? (j/N) ").equals("j")) { rows.remove(delRow-1); } } else { consoleWriteLn("** Du mste ange ett radnummer."); } consoleWriteLn(""); } else if (icmd.startsWith("!")) { if (rst.hasMoreElements()) { subject = rst.nextToken("").substring(1); consoleWriteLn("** ndrade rende till: " + subject); } else { consoleWriteLn("** ndra rende:"); subject = crtReadLine("rende: "); } } else if (icmd.startsWith("!v")) { consoleWriteLn("** Hela texten:"); for (int i=0; i < rows.size(); i++) { consoleWriteLn((i+1) + ": " + rows.get(i)); } consoleWriteLn(""); } else if (icmd.startsWith("!q")) { return null; } else if (icmd.startsWith("!?")) { consoleWriteLn("** Kommandon i editorlge:"); consoleWriteLn(" !f <mte> Flytta texten till <mte>"); consoleWriteLn(" !am <mte> Addera <mte> som mottagare"); consoleWriteLn(" !ak <mte> Addera <mte> som kopiemottagare"); consoleWriteLn(" !rr <radnr.> Radera <radnr.>"); consoleWriteLn(" !sm <mte> Subtrahera <mte> frn mottagarlista"); consoleWriteLn(" !sk <mte> Subtrahera <mte> frn kopiemottagarlista"); consoleWriteLn(" !v Visa hela texten"); consoleWriteLn(" !q Avsluta utan att spara"); consoleWriteLn(" !r <radnr.> Skriv om rad <radnr.>"); consoleWriteLn(" ! ndra rende"); consoleWriteLn(" . Spara och avsluta"); } else { consoleWriteLn("** Oknt editorkommando"); } } else { if (row.length() > 73) { consoleWriteLn("** Varning: rad " + (rows.size()+1) + " r ver 73 tecken lng."); } rows.add(row); rowCount++; } row = crtReadLine(rows.size()+1 + ": "); } StringBuffer textb = new StringBuffer(); Iterator i = rows.iterator(); while (i.hasNext()) { textb.append(i.next().toString() + "\n"); } t.setContents((subject + "\n" + textb.toString().trim()).getBytes(Session.serverEncoding)); return t; }
3721 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3721/6b691be982e35d50cab64e35b14bd50b89edf526/Test2.java/buggy/nu/dll/app/test/Test2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3867, 3874, 1528, 12, 1528, 268, 13, 565, 1216, 1860, 288, 202, 780, 3221, 273, 1731, 5808, 12, 88, 18, 588, 6638, 10663, 202, 474, 8526, 4519, 1092, 273, 268, 18, 588, 22740, 5621, 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, 3867, 3874, 1528, 12, 1528, 268, 13, 565, 1216, 1860, 288, 202, 780, 3221, 273, 1731, 5808, 12, 88, 18, 588, 6638, 10663, 202, 474, 8526, 4519, 1092, 273, 268, 18, 588, 22740, 5621, 202...
LOG.debug("Entering nullPropertyValue [target="+target+", property="+property+"]");
LOG.debug("Entering nullPropertyValue [context="+context+", target="+target+", property="+property+"]");
public Object nullPropertyValue(Map context, Object target, Object property) { LOG.debug("Entering nullPropertyValue [target="+target+", property="+property+"]"); boolean c = OgnlContextState.isCreatingNullObjects(context); if (!c) { return null; } if ((target == null) || (property == null)) { return null; } try { String propName = property.toString(); Object realTarget = OgnlUtil.getRealTarget(propName, context, target); Class clazz = null; if (realTarget != null) { PropertyDescriptor pd = OgnlRuntime.getPropertyDescriptor(realTarget.getClass(), propName); if (pd == null) { return null; } clazz = pd.getPropertyType(); } if (clazz == null) { // can't do much here! return null; } Object param = createObject(clazz, realTarget, propName, context); Ognl.setValue(propName, context, realTarget, param); return param; } catch (Exception e) { LOG.error("Could not create and/or set value back on to object", e); } return null; }
16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/155d35a22b3a788136bd5f5fb6eb91a4a0d0d7e9/InstantiatingNullHandler.java/clean/src/java/com/opensymphony/xwork/util/InstantiatingNullHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 446, 16107, 12, 863, 819, 16, 1033, 1018, 16, 1033, 1272, 13, 288, 377, 202, 4842, 18, 4148, 2932, 10237, 310, 446, 16107, 306, 2472, 1546, 15, 2472, 15, 3113, 1018, 1546, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 446, 16107, 12, 863, 819, 16, 1033, 1018, 16, 1033, 1272, 13, 288, 377, 202, 4842, 18, 4148, 2932, 10237, 310, 446, 16107, 306, 2472, 1546, 15, 2472, 15, 3113, 1018, 1546, 1...
addPropValue( content, repeat ); addPropValue( content, attach ); addPropValue( content, x ); addPropValue( content, y ); content.append( ';' );
private static void buildBackground( StringBuffer content, IStyle style, HTMLReportEmitter emitter ) { buildProperty( content, HTMLTags.ATTR_COLOR, style.getColor( ) ); //$NON-NLS-1$ String color = style.getBackgroundColor( ); String image = style.getBackgroundImage( ); String repeat = style.getBackgroundRepeat( ); String attach = style.getBackgroundAttachment( ); String x = style.getBackgroundPositionX( ); String y = style.getBackgroundPositionY( ); if ( color == null && image == null && !"none".equalsIgnoreCase( image ) //$NON-NLS-1$ && repeat == null && attach == null && x == null && y == null ) { return; } content.append( " background:" ); //$NON-NLS-1$ addPropValue( content, color ); if(!"none".equalsIgnoreCase( image ) ) //$NON-NLS-1$ { if ( image!=null ) { image = HTMLBaseEmitter.handleStyleImage(image, emitter); } if(image!=null && image.length()>0) { addURLValue( content, image ); } } addPropValue( content, repeat ); addPropValue( content, attach ); addPropValue( content, x ); addPropValue( content, y ); content.append( ';' ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/26e720886eb20318d2dd7875ea22a8e430dd3bf6/AttributeBuilder.java/clean/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/AttributeBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1361, 8199, 12, 6674, 913, 16, 1082, 202, 45, 2885, 2154, 16, 3982, 4820, 13476, 11520, 262, 202, 95, 202, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1361, 8199, 12, 6674, 913, 16, 1082, 202, 45, 2885, 2154, 16, 3982, 4820, 13476, 11520, 262, 202, 95, 202, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, ...
return fAugmentations.get(key);
return fAugmentationsContainer.getItem(key);
public Object getItem(String key){ return fAugmentations.get(key); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/319986a3e4c201ba350fabc02f1de2891c2708b6/AugmentationsImpl.java/buggy/src/org/apache/xerces/util/AugmentationsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8143, 12, 780, 498, 15329, 3639, 327, 284, 37, 14870, 1012, 2170, 18, 588, 1180, 12, 856, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 8143, 12, 780, 498, 15329, 3639, 327, 284, 37, 14870, 1012, 2170, 18, 588, 1180, 12, 856, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
field.setInitString(init.toString()); jClass.addField(field);
field.setInitString(init.toString()); jClass.addField(field);
void processEnumerationAsNewObject(final SimpleType simpleType, final FactoryState state) { Enumeration enumeration = simpleType.getFacets("enumeration"); //-- select naming for types and instances boolean useValuesAsName = true; useValuesAsName = selectNamingScheme(enumeration, useValuesAsName); enumeration = simpleType.getFacets("enumeration"); JClass jClass = state.jClass; String className = jClass.getLocalName(); jClass.addImport("java.util.Hashtable"); JField field = null; JField fHash = new JField(SGTypes.createHashtable(_config.useJava50()), "_memberTable"); fHash.setInitString("init()"); fHash.getModifiers().setStatic(true); JSourceCode jsc = null; //-- modify constructor JConstructor constructor = jClass.getConstructor(0); constructor.getModifiers().makePrivate(); constructor.addParameter(new JParameter(JType.INT, "type")); constructor.addParameter(new JParameter(SGTypes.String, "value")); jsc = constructor.getSourceCode(); jsc.add("this.type = type;"); jsc.add("this.stringValue = value;"); //-- #valueOf method createValueOfMethod(jClass, className); //-- #enumerate method createEnumerateMethod(jClass, className); //-- #toString method createToStringMethod(jClass, className); //-- #init method JMethod mInit = createInitMethod(jClass); //-- #readResolve method createReadResolveMethod(jClass); //-- Loop through "enumeration" facets int count = 0; while (enumeration.hasMoreElements()) { Facet facet = (Facet) enumeration.nextElement(); String value = facet.getValue(); String typeName = null; String objName = null; if (useValuesAsName) { objName = translateEnumValueToIdentifier(value); } else { objName = "VALUE_" + count; } //-- create typeName //-- Note: this could cause name conflicts typeName = objName + "_TYPE"; //-- Inheritence/Duplicate name cleanup boolean addInitializerCode = true; if (jClass.getField(objName) != null) { //-- either inheritence, duplicate name, or error. //-- if inheritence or duplicate name, always take //-- the later definition. Do same if error, for now. jClass.removeField(objName); jClass.removeField(typeName); addInitializerCode = false; } //-- handle int type field = new JField(JType.INT, typeName); field.setComment("The " + value + " type"); JModifiers modifiers = field.getModifiers(); modifiers.setFinal(true); modifiers.setStatic(true); modifiers.makePublic(); field.setInitString(Integer.toString(count)); jClass.addField(field); //-- handle Class type field = new JField(jClass, objName); field.setComment("The instance of the " + value + " type"); modifiers = field.getModifiers(); modifiers.setFinal(true); modifiers.setStatic(true); modifiers.makePublic(); StringBuffer init = new StringBuffer(); init.append("new "); init.append(className); init.append("("); init.append(typeName); init.append(", \""); init.append(escapeValue(value)); init.append("\")"); field.setInitString(init.toString()); jClass.addField(field); //-- initializer method if (addInitializerCode) { jsc = mInit.getSourceCode(); jsc.add("members.put(\""); jsc.append(escapeValue(value)); if (_caseInsensitive) { jsc.append("\".toLowerCase(), "); } else { jsc.append("\", "); } jsc.append(objName); jsc.append(");"); } ++count; } //-- finish init method mInit.getSourceCode().add("return members;"); //-- add memberTable to the class, we can only add this after all the types, //-- or we'll create source code that will generate null pointer exceptions, //-- because calling init() will try to add null values to the hashtable. jClass.addField(fHash); //-- add internal type field = new JField(JType.INT, "type"); field.setInitString("-1"); jClass.addField(field); //-- add internal stringValue field = new JField(SGTypes.String, "stringValue"); field.setInitString("null"); jClass.addField(field); createGetTypeMethod(jClass, className); } //-- processEnumerationAsNewObject
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/2f6ea37c53da29c8f134289d7765734040129cc3/EnumerationFactory.java/buggy/castor/trunk/src/main/java/org/exolab/castor/builder/EnumerationFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 21847, 1463, 1908, 921, 12, 6385, 4477, 559, 4143, 559, 16, 727, 7822, 1119, 919, 13, 288, 3639, 13864, 16836, 273, 4143, 559, 18, 588, 6645, 2413, 2932, 7924, 7067, 8863, 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, 1207, 21847, 1463, 1908, 921, 12, 6385, 4477, 559, 4143, 559, 16, 727, 7822, 1119, 919, 13, 288, 3639, 13864, 16836, 273, 4143, 559, 18, 588, 6645, 2413, 2932, 7924, 7067, 8863, 3639...
command.setCommandId(getNextCommandId());
if (command.getCommandId() == 0) { command.setCommandId(getNextCommandId()); }
public FutureResponse asyncRequest(Command command) throws IOException { command.setCommandId(getNextCommandId()); command.setResponseRequired(true); FutureResponse future = new FutureResponse(); requestMap.put(new Integer(command.getCommandId()), future); next.oneway(command); return future; }
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/72b382d0bd120ea500b56c53a9ed7a6b0fb07331/ResponseCorrelator.java/clean/activemq-core/src/main/java/org/apache/activemq/transport/ResponseCorrelator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9108, 1064, 4326, 691, 12, 2189, 1296, 13, 1216, 1860, 288, 540, 309, 261, 3076, 18, 588, 2189, 548, 1435, 422, 374, 13, 288, 1296, 18, 542, 2189, 548, 12, 588, 2134, 2189, 548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9108, 1064, 4326, 691, 12, 2189, 1296, 13, 1216, 1860, 288, 540, 309, 261, 3076, 18, 588, 2189, 548, 1435, 422, 374, 13, 288, 1296, 18, 542, 2189, 548, 12, 588, 2134, 2189, 548, ...
super(position);
super(position, NodeTypes.DEFSNODE);
public DefsNode(ISourcePosition position, Node receiverNode, String name, Node argsNode, ScopeNode bodyNode) { super(position); this.receiverNode = receiverNode; this.name = name.intern(); this.argsNode = argsNode; this.bodyNode = bodyNode; }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/6e15491217631472c05c6928672f9c7064a978b3/DefsNode.java/buggy/src/org/jruby/ast/DefsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1505, 2556, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 5971, 907, 16, 514, 508, 16, 2029, 833, 907, 16, 5468, 907, 1417, 907, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 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, 1505, 2556, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 5971, 907, 16, 514, 508, 16, 2029, 833, 907, 16, 5468, 907, 1417, 907, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 16...
CompilationUnitDeclaration compilationUnitDeclaration =CodeSnippetParsingUtil.parseCompilationUnit(source.toCharArray(), this.options);
CompilationUnitDeclaration compilationUnitDeclaration = this.codeSnippetParsingUtil.parseCompilationUnit(source.toCharArray(), this.options, true);
private TextEdit formatCompilationUnit(String source, int indentationLevel, String lineSeparator, int offset, int length) { CompilationUnitDeclaration compilationUnitDeclaration =CodeSnippetParsingUtil.parseCompilationUnit(source.toCharArray(), this.options); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter = new CodeFormatterVisitor(this.preferences, options, offset, length); return this.newCodeFormatter.format(source, compilationUnitDeclaration); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/55eb63b50ad4a934502bfb435a017ff21ebaf8d8/DefaultCodeFormatter.java/buggy/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3867, 4666, 740, 19184, 2802, 12, 780, 1084, 16, 509, 12018, 2355, 16, 514, 31053, 16, 509, 1384, 16, 509, 769, 13, 288, 202, 202, 19184, 2802, 6094, 8916, 2802, 6094, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3867, 4666, 740, 19184, 2802, 12, 780, 1084, 16, 509, 12018, 2355, 16, 514, 31053, 16, 509, 1384, 16, 509, 769, 13, 288, 202, 202, 19184, 2802, 6094, 8916, 2802, 6094, 273, 1...
return getField(column).getTypeName();
return getField(column).getPGType();
public String getColumnTypeName(int column) throws SQLException { return getField(column).getTypeName(); }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/76a6da8a1b01e23091da65f5e167d67f5274d740/ResultSetMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 6716, 7947, 12, 474, 1057, 13, 1216, 6483, 225, 288, 565, 327, 5031, 12, 2827, 2934, 588, 18679, 559, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 6716, 7947, 12, 474, 1057, 13, 1216, 6483, 225, 288, 565, 327, 5031, 12, 2827, 2934, 588, 18679, 559, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Collection propertyNames = registry.getRegisteredProperties();
Collection<String> propertyNames = registry.getRegisteredProperties();
private void dumpComponentAsGDL(PrintStream out, String name) { out.println("node: {title: \"" + name + "\" color: " + getColor(name) + "}"); Symbol symbol = symbolTable.get(name); Registry registry = symbol.getRegistry(); Collection propertyNames = registry.getRegisteredProperties(); PropertySheet properties = symbol.getPropertySheet(); for (Iterator i = propertyNames.iterator(); i.hasNext();) { String propName = (String) i.next(); PropertyType type = registry.lookup(propName); try { Object val = properties.getRaw(propName); if (val != null) { if (type == PropertyType.COMPONENT) { out.println("edge: {source: \"" + name + "\" target: \"" + val + "\"}"); } else if (type == PropertyType.COMPONENT_LIST) { List list = (List) val; for (Iterator j = list.iterator(); j.hasNext();) { Object dest = j.next(); out.println("edge: {source: \"" + name + "\" target: \"" + dest + "\"}"); } } } } catch (PropertyException e) { // nothing to do , its up to you } } }
8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/b7df0fb908231f812bb7c5876ed27d105ced7c2b/ConfigurationManager.java/buggy/src/sphinx4/edu/cmu/sphinx/util/props/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4657, 1841, 1463, 43, 8914, 12, 5108, 1228, 596, 16, 514, 508, 13, 288, 3639, 596, 18, 8222, 2932, 2159, 30, 288, 2649, 30, 11843, 397, 508, 397, 7023, 2036, 30, 315, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 1841, 1463, 43, 8914, 12, 5108, 1228, 596, 16, 514, 508, 13, 288, 3639, 596, 18, 8222, 2932, 2159, 30, 288, 2649, 30, 11843, 397, 508, 397, 7023, 2036, 30, 315, 397, ...
if (jj_scan_token(EXTENDS)) return true; if (jj_3R_172()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_316()) { jj_scanpos = xsp; break; } }
if (jj_3R_195()) return true;
final private boolean jj_3R_157() { if (jj_scan_token(EXTENDS)) return true; if (jj_3R_172()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_316()) { jj_scanpos = xsp; break; } } return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 27985, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4142, 1157, 3948, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 54, 67, 27985, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4142, 1157, 3948, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67,...
desc.setDemux(myDispatcher);
desc.setContainer(this);
private void initDF() { System.out.print("Starting Default DF... "); defaultDF = new df(); // Subscribe as a listener for the AMS agent defaultDF.addCommListener(this); // Insert DF into local agents table localAgents.put("df", defaultDF); AgentDescriptor desc = new AgentDescriptor(); desc.setDemux(myDispatcher); platformAgents.put("df", desc); System.out.println("DF OK"); }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/b3c47bde84f6882585b3d94c8b02ad8aec7de8cb/AgentPlatformImpl.java/clean/src/jade/core/AgentPlatformImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 4577, 1435, 288, 565, 2332, 18, 659, 18, 1188, 2932, 11715, 2989, 463, 42, 2777, 315, 1769, 565, 805, 4577, 273, 394, 3013, 5621, 565, 368, 18014, 487, 279, 2991, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4577, 1435, 288, 565, 2332, 18, 659, 18, 1188, 2932, 11715, 2989, 463, 42, 2777, 315, 1769, 565, 805, 4577, 273, 394, 3013, 5621, 565, 368, 18014, 487, 279, 2991, 364, ...
if (score > bestScore) { bestTree = tree; bestScore = score; } } if (counter > 0 && counter % stepSize == 0) { System.out.print("*"); System.out.flush(); } counter ++; } } catch (Importer.ImportException e) { System.err.println("Error Parsing Input Tree: " + e.getMessage()); return null; } System.out.println(); System.out.println(); System.out.println("Best Sum Clade Support: " + bestScore);
if (score > bestScore) { bestTree = tree; bestScore = score; } } if (counter > 0 && counter % stepSize == 0) { System.out.print("*"); System.out.flush(); } counter ++; } } catch (Importer.ImportException e) { System.err.println("Error Parsing Input Tree: " + e.getMessage()); return null; } System.out.println(); System.out.println(); System.out.println("Best Sum Clade Support: " + bestScore);
private Tree summarizeTrees(int burnin, CladeSystem cladeSystem, String inputFileName) throws IOException { Tree bestTree = null; double bestScore = 0.0; System.out.println("Analyzing " + totalTreesUsed + " trees..."); System.out.println("0 25 50 75 100"); System.out.println("|--------------|--------------|--------------|--------------|"); int stepSize = totalTrees / 60; int counter = 0; TreeImporter importer = new NexusImporter(new FileReader(inputFileName)); try { while (importer.hasTree()) { Tree tree = importer.importNextTree(); if (counter >= burnin) { double score = scoreTree(tree, cladeSystem);// System.out.println(score); if (score > bestScore) { bestTree = tree; bestScore = score; } } if (counter > 0 && counter % stepSize == 0) { System.out.print("*"); System.out.flush(); } counter ++; } } catch (Importer.ImportException e) { System.err.println("Error Parsing Input Tree: " + e.getMessage()); return null; } System.out.println(); System.out.println(); System.out.println("Best Sum Clade Support: " + bestScore); return bestTree; }
49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/77b1ece5c4a9000c1b01251fdcf1239b7c2eb443/TreeAnnotator.java/buggy/trunk/src/dr/app/tools/TreeAnnotator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4902, 28712, 26590, 12, 474, 18305, 267, 16, 3905, 2486, 3163, 927, 2486, 3163, 16, 514, 810, 4771, 13, 1216, 1860, 288, 3639, 4902, 3796, 2471, 273, 446, 31, 3639, 1645, 3796, 7295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 28712, 26590, 12, 474, 18305, 267, 16, 3905, 2486, 3163, 927, 2486, 3163, 16, 514, 810, 4771, 13, 1216, 1860, 288, 3639, 4902, 3796, 2471, 273, 446, 31, 3639, 1645, 3796, 7295...
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 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...
throw new MojoExecutionException( Messages.getString( "EclipsePlugin.notadir", outputDir ) );
throw new MojoExecutionException( Messages.getString( "EclipsePlugin.notadir", outputDir ) );
public void execute() throws MojoExecutionException { if ( executedProject == null ) { // backwards compat with alpha-2 only executedProject = project; } assertNotEmpty( executedProject.getGroupId(), "groupId" ); //$NON-NLS-1$ assertNotEmpty( executedProject.getArtifactId(), "artifactId" ); //$NON-NLS-1$ // defaults // @todo how set List values in @default-value?? if ( projectnatures == null ) { projectnatures = new ArrayList(); projectnatures.add( "org.eclipse.jdt.core.javanature" ); } if ( buildcommands == null ) { buildcommands = new ArrayList(); buildcommands.add( "org.eclipse.jdt.core.javabuilder" ); } if ( classpathContainers == null ) { classpathContainers = new ArrayList(); } // end defaults if ( executedProject.getFile() == null || !executedProject.getFile().exists() ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.missingpom" ) ); //$NON-NLS-1$ } if ( "pom".equals( executedProject.getPackaging() ) && outputDir == null ) //$NON-NLS-1$ { getLog().info( Messages.getString( "EclipsePlugin.pompackaging" ) ); //$NON-NLS-1$ return; } if ( outputDir == null ) { outputDir = executedProject.getFile().getParentFile(); } else if ( !outputDir.equals( executedProject.getFile().getParentFile() ) ) { if ( !outputDir.isDirectory() ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.notadir", outputDir ) ); //$NON-NLS-1$ } outputDir = new File( outputDir, executedProject.getArtifactId() ); if ( !outputDir.isDirectory() && !outputDir.mkdir() ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.cantcreatedir", outputDir ) ); //$NON-NLS-1$ } } // ready to start write(); }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/e3899c9cbcad8544a3c599e5c393373e7ee8694f/EclipsePlugin.java/buggy/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 7120, 4109, 422, 446, 262, 3639, 288, 5411, 368, 12727, 4796, 598, 4190, 17, 22, 1338, 5411, 7120, 4109, 273, 1984, 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, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 7120, 4109, 422, 446, 262, 3639, 288, 5411, 368, 12727, 4796, 598, 4190, 17, 22, 1338, 5411, 7120, 4109, 273, 1984, 31,...
super(why);
super();
public FifoQueueClosedException(String why) { super(why); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/b3612967cb053036bdb295ee74cb2e369c6ca18d/FifoQueueClosedException.java/buggy/src/core/org/opennms/core/queue/FifoQueueClosedException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 20299, 3183, 7395, 503, 12, 780, 11598, 13, 202, 95, 202, 202, 9565, 12, 3350, 93, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 478, 20299, 3183, 7395, 503, 12, 780, 11598, 13, 202, 95, 202, 202, 9565, 12, 3350, 93, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType());
IMylarStructureBridge bridge = ContextCorePlugin.getDefault().getStructureBridge(element.getContentType());
public void interestChanged(List<IMylarElement> elements) { for (IMylarElement element : elements) { IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType()); try { if (bridge.isDocument(element.getHandleIdentifier())) { IResource resource = MylarIdePlugin.getDefault().getResourceForElement(element, false); if (resource != null && resource.exists()) { for (MylarActiveChangeSet activeContextChangeSet : getActiveChangeSets()) { if (!activeContextChangeSet.contains(resource)) { if (element.getInterest().isInteresting()) { activeContextChangeSet.add(new IResource[] { resource }); } } } if (shouldRemove(element)) { for (ActiveChangeSetManager collector : collectors) { ChangeSet[] sets = collector.getSets(); for (int i = 0; i < sets.length; i++) { if (sets[i] instanceof MylarActiveChangeSet) { sets[i].remove(resource); } } } }// if (shouldRemove(element)) {// ChangeSet[] sets = collector.getSets();// for (int i = 0; i < sets.length; i++) {// if (sets[i] instanceof MylarActiveChangeSet) {// sets[i].remove(resource);// }// }// } } } } catch (Exception e) { MylarStatusHandler.fail(e, "could not manipulate change set resources", false); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/MylarChangeSetManager.java/clean/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/team/MylarChangeSetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16513, 5033, 12, 682, 32, 3445, 93, 7901, 1046, 34, 2186, 13, 288, 202, 202, 1884, 261, 3445, 93, 7901, 1046, 930, 294, 2186, 13, 288, 1082, 202, 3445, 93, 7901, 6999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16513, 5033, 12, 682, 32, 3445, 93, 7901, 1046, 34, 2186, 13, 288, 202, 202, 1884, 261, 3445, 93, 7901, 1046, 930, 294, 2186, 13, 288, 1082, 202, 3445, 93, 7901, 6999, ...