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 |
|---|---|---|---|---|---|---|
return RubyFixnum.newFixnum(getRuntime(), getLength()); | return getRuntime().newFixnum(getLength()); | public RubyFixnum length() { return RubyFixnum.newFixnum(getRuntime(), getLength()); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArray.java/buggy/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
769,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
588,
1782,
10663,
565,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
8585,
2107,
769,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
588,
1782,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return new InetAddress(addr, hostName, null); | return new InetAddress(addr, hostName); | private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName, null); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/c3781092e9ae21af2bdc3d89635db64ed736fee1/Inet4Address.java/buggy/libraries/javalib/java/net/Inet4Address.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1045,
5729,
1435,
1216,
1033,
1228,
503,
225,
288,
565,
327,
394,
14218,
12,
4793,
16,
19266,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1045,
5729,
1435,
1216,
1033,
1228,
503,
225,
288,
565,
327,
394,
14218,
12,
4793,
16,
19266,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
throw new UnsupportedOperationException("UNIMPLEMENTED"); | initAttributes(); return getAttributeName(i).getPrefix(); | public String getAttributePrefix(int i) { throw new UnsupportedOperationException("UNIMPLEMENTED"); } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/37fa2a8fe6c98a08f475db43f514a9e3f14c2c1e/MarshalResult.java/buggy/v2/src/marshal/org/apache/xmlbeans/impl/marshal/MarshalResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4061,
2244,
12,
474,
277,
13,
565,
288,
3639,
1208,
2498,
5621,
327,
4061,
461,
12,
77,
2934,
588,
2244,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4061,
2244,
12,
474,
277,
13,
565,
288,
3639,
1208,
2498,
5621,
327,
4061,
461,
12,
77,
2934,
588,
2244,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**Read in the flat file*/ fr = new FileReader (dataSource.getAbsolutePath()); br = new BufferedReader(fr); /**loop through each line in the file*/ while ((line = br.readLine()) != null){ lineCount ++; /**empty line skip past it*/ if (line.trim().length() == 0){ continue; } if (!processedFirst && ignoreFirstRecord){ processedFirst = true; continue; } columns = ParserUtils.splitLine(line,delimiter,qualifier); /*for (int i = 0; i < columns.size(); i++){ System.out.println(columns.get(i)); }*/ if (columns.size() > columnCount){ addError("TOO MANY COLUMNS WANTED: "+ columnCount + " GOT: " + columns.size(), lineCount,2); continue; } else if (columns.size() < columnCount){ if (handleShortLines) { while (columns.size() < columnCount) { columns.add(""); } addError("PADDED LINE TO CORRECT NUMBER OF COLUMNS", lineCount,1); } else { addError("TOO FEW COLUMNS WANTED: "+ columnCount + " GOT: " + columns.size(), lineCount,2); continue; } } | InputStreamReader isr = null; BufferedReader br = null; Row row = null; int columnCount = 0; int lineCount = 0; List columns = null; boolean processedFirst = false; try { rows = new ArrayList(); errors = new ArrayList(); | private void doDelimitedFile(File dataSource,String delimiter, String qualifier, boolean ignoreFirstRecord) throws Exception{ String line = null; FileReader fr = null; BufferedReader br = null; Row row = null; int columnCount = 0; int lineCount = 0; Vector columns = null; boolean processedFirst = false; try{ rows = new Vector(); errors = new Vector(); /**make sure that the file we need to read from exists*/ if (dataSource == null || !dataSource.exists()){ throw new FileNotFoundException("DATASOURCE DOES NOT EXIST, OR IS NULL. BAD FILE PATH."); } // get the total column count columnCount = columnMD.size(); /**Read in the flat file*/ fr = new FileReader (dataSource.getAbsolutePath()); br = new BufferedReader(fr); /**loop through each line in the file*/ while ((line = br.readLine()) != null){ lineCount ++; /**empty line skip past it*/ if (line.trim().length() == 0){ continue; } //check to see if the user has elected to skip the first record if (!processedFirst && ignoreFirstRecord){ processedFirst = true; continue; } //column values columns = ParserUtils.splitLine(line,delimiter,qualifier); //DEBUG /*for (int i = 0; i < columns.size(); i++){ System.out.println(columns.get(i)); }*/ //Incorrect record length on line log the error. Line // will not be included in the dataset if (columns.size() > columnCount){ //log the error addError("TOO MANY COLUMNS WANTED: "+ columnCount + " GOT: " + columns.size(), lineCount,2); continue; } else if (columns.size() < columnCount){ if (handleShortLines) { // We can pad this line out while (columns.size() < columnCount) { columns.add(""); } //log a warning addError("PADDED LINE TO CORRECT NUMBER OF COLUMNS", lineCount,1); } else { addError("TOO FEW COLUMNS WANTED: "+ columnCount + " GOT: " + columns.size(), lineCount,2); continue; } } row = new Row(); row.setCols(columns); row.setRowNumber(lineCount); /**add the row to the array*/ rows.add(row); } }finally{ if (fr != null){ fr.close(); } if (br != null){ br.close(); } } } | 8836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8836/73647f36b9ada99ead4f9d0f67e459369342ca74/DataSet.java/buggy/PZFileReader/com/pz/reader/DataSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
23531,
329,
812,
12,
812,
10233,
16,
780,
5654,
16,
514,
12327,
16,
1250,
2305,
3759,
2115,
13,
1216,
1185,
95,
202,
202,
780,
980,
273,
446,
31,
202,
202,
812,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
23531,
329,
812,
12,
812,
10233,
16,
780,
5654,
16,
514,
12327,
16,
1250,
2305,
3759,
2115,
13,
1216,
1185,
95,
202,
202,
780,
980,
273,
446,
31,
202,
202,
812,
2... |
private Query parseMetaBoolean( Element parent, String name, String field, boolean addTerms ) throws QueryGenException { // Term query is the simplest kind. if( name.equals("term") ) { Term term = parseTerm( parent, field, "term", addTerms ); if( isWildcardTerm(term) ) return new LimitedWildcardQuery( term, curCombo.termLimit, curCombo.terms ); else { if( addTerms ) curCombo.terms.put( term ); return new TermQuery( term ); } } // Get field name if specified. field = parseField( parent, field ); // 'all', 'phrase', and 'near' can be viewed as phrase queries with // different slop values. // // 'all' means essentially infinite slop (limited to the actual // chunk overlap at runtime. // 'phrase' means zero slop // 'near' allows specifying the slop (again limited to the actual // chunk overlap at runtime. // if( name.equals("all") || name.equals("phrase") || name.equals("near")) { int slop = name.equals("all") ? Integer.MAX_VALUE : name.equals("phrase") ? 0 : parseIntAttrib( parent, "slop" ); // Since Lucene's PhraseQuery doesn't allow any flexibility in // terms of including arbitrary queries below it, just use the // span logic. // return makeAllQuery( parent, slop, field, addTerms ); } // Range queries are pretty specialized. if( name.equals("range") ) return parseRange( parent, field ); // Old comment: // Lucene's handling of OR queries is screwy... it only seems to // pay attention to the last term. Use a near query instead. // // New comment: // I'm not sure what the old comment means. What I do know is // that we can't get away with using a 'near' query, since it // doesn't work across multiple meta-data fields (all clauses // to a span query must be from the same field.) // // Result: Do not comment in the following code! // //if( name.equals("or") ) // return parseTextBoolean( parent, name, field, addTerms ); // All other cases fall through to here: and, or. Handle the 'not' // sub-clauses along the way. // BooleanQuery bq = new BooleanQuery(); boolean require = name.equals("and"); for( ElementIter iter = new ElementIter(parent); iter.hasNext(); ) { Element el = iter.next(); if( el.getLocalName().equals("not") ) { // Make sure terms used in the 'not' query aren't added to // the term map (since it would be silly to hilight them.) // bq.add( parseQuery(el, field, MODE_META, false), false, true ); } else bq.add( parseBoolean(el, field, MODE_META, addTerms), require, false ); } return bq; } // parseMetaBoolean() | 45239 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45239/f690a0b84b35d2f9fb19c6fc40ec02f5b5360c7a/QueryRequest.java/buggy/WEB-INF/src/org/cdlib/xtf/textEngine/QueryRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2770,
1109,
2781,
5507,
12,
3010,
982,
16,
514,
508,
16,
514,
652,
16,
1377,
1250,
527,
11673,
262,
3639,
1216,
2770,
7642,
503,
565,
288,
3639,
368,
6820,
843,
353,
326,
9330,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2770,
1109,
2781,
5507,
12,
3010,
982,
16,
514,
508,
16,
514,
652,
16,
1377,
1250,
527,
11673,
262,
3639,
1216,
2770,
7642,
503,
565,
288,
3639,
368,
6820,
843,
353,
326,
9330,
39... | ||
vPhaseReport.addElement(r); | addReport(r); | private void resolveThrashAttack( PhysicalResult pr, int lastEntityId ) { final ThrashAttackAction taa = (ThrashAttackAction)pr.aaa; final Entity ae = game.getEntity(taa.getEntityId()); // get damage, ToHitData and roll from the PhysicalResult int hits = pr.damage; final ToHitData toHit = pr.toHit; int roll = pr.roll; final boolean glancing = (game.getOptions().booleanOption("maxtech_glancing_blows") && (roll == toHit.getValue())); // PLEASE NOTE: buildings are *never* the target of a "thrash". final Entity te = game.getEntity(taa.getTargetId()); Report r; if (lastEntityId != taa.getEntityId()) { //who is making the attacks r = new Report(4005); r.subject = ae.getId(); r.addDesc(ae); vPhaseReport.addElement(r); } r = new Report(4110); r.subject = ae.getId(); r.indent(); r.addDesc(te); r.newlines = 0; vPhaseReport.addElement(r); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { r = new Report(4115); r.subject = ae.getId(); r.add(toHit.getDesc()); vPhaseReport.addElement(r); return; } // Thrash attack may hit automatically if ( toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS ) { r = new Report(4120); r.subject = ae.getId(); r.newlines = 0; vPhaseReport.addElement(r); } else { // report the roll r = new Report(4025); r.subject = ae.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; vPhaseReport.addElement(r); // do we hit? if (roll < toHit.getValue()) { //miss r = new Report(4035); r.subject = ae.getId(); vPhaseReport.addElement(r); return; } r = new Report(4125); r.subject = ae.getId(); r.newlines = 0; vPhaseReport.addElement(r); } // Standard damage loop in 5 point clusters. if (glancing) { hits = (int)Math.floor(hits/2.0); } r = new Report(4130); r.subject = ae.getId(); r.add(hits); r.newlines = 0; vPhaseReport.addElement(r); if (glancing) { r = new Report(4030); r.subject = ae.getId(); r.newlines = 0; vPhaseReport.addElement(r); } while ( hits > 0 ) { int damage = Math.min(5, hits); hits -= damage; HitData hit = te.rollHitLocation( toHit.getHitTable(), toHit.getSideTable() ); r = new Report(4135); r.subject = ae.getId(); r.add(te.getLocationAbbr(hit)); r.newlines = 0; vPhaseReport.addElement(r); vPhaseReport.addAll( damageEntity(te, hit, damage)); } Report.addNewline(vPhaseReport); // Thrash attacks cause PSRs. Failed PSRs cause falling damage. // This fall damage applies even though the Thrashing Mek is prone. PilotingRollData rollData = ae.getBasePilotingRoll(); ae.addPilotingModifierForTerrain(rollData); rollData.addModifier( 0, "thrashing at infantry" ); r = new Report(4140); r.subject = ae.getId(); r.addDesc(ae); vPhaseReport.addElement(r); final int diceRoll = Compute.d6(2); r = new Report(2190); r.subject = ae.getId(); r.addDesc(ae); r.add(rollData.getValueAsString()); r.add(rollData.getDesc()); r.add(diceRoll); if (diceRoll < rollData.getValue()) { r.choose(false); vPhaseReport.addElement(r); doEntityFall( ae, rollData ); } else { r.choose(true); vPhaseReport.addElement(r); } } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
1315,
86,
961,
3075,
484,
12,
19712,
1253,
846,
16,
4766,
3639,
509,
1142,
18029,
262,
288,
3639,
727,
935,
86,
961,
3075,
484,
1803,
268,
7598,
273,
261,
1315,
86,
961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
1315,
86,
961,
3075,
484,
12,
19712,
1253,
846,
16,
4766,
3639,
509,
1142,
18029,
262,
288,
3639,
727,
935,
86,
961,
3075,
484,
1803,
268,
7598,
273,
261,
1315,
86,
961... |
public void pushHandle(DesignElementHandle obj) { reportHandles.push(obj); | public void pushHandle( DesignElementHandle obj ) { reportHandles.push( obj ); | public void pushHandle(DesignElementHandle obj) { reportHandles.push(obj); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b900dee3dd264c71eb7ed27f88571d5b40a336c0/ExecutionContext.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1817,
3259,
12,
15478,
1046,
3259,
1081,
13,
288,
202,
202,
6006,
8788,
18,
6206,
12,
2603,
1769,
202,
97,
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,
225,
202,
482,
918,
1817,
3259,
12,
15478,
1046,
3259,
1081,
13,
288,
202,
202,
6006,
8788,
18,
6206,
12,
2603,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
iRender.getLocale( ) ) ); | iRender.getULocale( ) ) ); | private void drawIcon( IPrimitiveRenderer ipr ) throws ChartException { Fill fil = m.getFill( ); if ( !( fil instanceof Image ) ) { logger.log( ILogger.WARNING, Messages.getString( "exception.illegal.icon.palette.type.for.marker", //$NON-NLS-1$ new Object[]{ fil }, iRender.getLocale( ) ) ); return; } Image icon = (Image) fil; if ( bRendering3D ) { final Image3DRenderEvent ire = (Image3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( oSource, Image3DRenderEvent.class ); ire.setLocation3D( lo3d ); ire.setImage( icon ); preCopy = ire.copy( ); dc.addPlane( ire, PrimitiveRenderEvent.FILL ); } else { final ImageRenderEvent ire = (ImageRenderEvent) ( (EventObjectCache) ipr ).getEventObject( oSource, ImageRenderEvent.class ); ire.setLocation( lo ); ire.setImage( icon ); final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( lo.getX( ) - iSize, lo.getY( ) + iSize ); loa[1] = LocationImpl.create( lo.getX( ) + iSize, lo.getY( ) + iSize ); loa[2] = LocationImpl.create( lo.getX( ) + iSize, lo.getY( ) - iSize ); loa[3] = LocationImpl.create( lo.getX( ) - iSize, lo.getY( ) - iSize ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( oSource, PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( paletteEntry ); pre.setOutline( la ); preCopy = pre.copy( ); if ( bDeferred ) { dc.addMarker( ire, PrimitiveRenderEvent.FILL ); } else { ipr.drawImage( ire ); } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae8909f5c697c610266e491d0af9a02eed14e2e4/MarkerRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/MarkerRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3724,
5554,
12,
467,
9840,
6747,
277,
683,
262,
1216,
14804,
503,
202,
95,
202,
202,
8026,
661,
273,
312,
18,
588,
8026,
12,
11272,
202,
202,
430,
261,
401,
12,
661,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
5554,
12,
467,
9840,
6747,
277,
683,
262,
1216,
14804,
503,
202,
95,
202,
202,
8026,
661,
273,
312,
18,
588,
8026,
12,
11272,
202,
202,
430,
261,
401,
12,
661,
1... |
if(scope instanceof NativeCall) { | if (scope instanceof NativeCall) { | String eval(String expr) { Context cx = getCurrentContext(); DebuggableEngine engine = cx.getDebuggableEngine(); if(cx == null) return "undefined"; ContextHelper helper = new ContextHelper(); helper.attach(cx); if(frameIndex >= engine.getFrameCount()) { helper.reset(); return "undefined"; } String resultString; engine.setDebugger(null); cx.setGeneratingDebug(false); cx.setOptimizationLevel(-1); boolean breakNextLine = engine.getBreakNextLine(); engine.setBreakNextLine(false); try { Scriptable scope; scope = engine.getFrame(frameIndex).getVariableObject(); Object result; if(scope instanceof NativeCall) { NativeCall call = (NativeCall)scope; result = NativeGlobal.evalSpecial(cx, call, call.getThisObj(), new Object[]{expr}, "", 1); } else { result = cx.evaluateString(scope, expr, "", 0, null); } if(result == Undefined.instance) { result = ""; } try { resultString = ScriptRuntime.toString(result); } catch(RuntimeException exc) { resultString = result.toString(); } } catch(Exception exc) { resultString = exc.getMessage(); } if(resultString == null) { resultString = "null"; } engine.setDebugger(this); cx.setGeneratingDebug(true); cx.setOptimizationLevel(-1); engine.setBreakNextLine(breakNextLine); helper.reset(); return resultString; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
5302,
12,
780,
3065,
13,
288,
3639,
1772,
9494,
273,
5175,
1042,
5621,
3639,
4015,
8455,
4410,
4073,
273,
9494,
18,
588,
2829,
8455,
4410,
5621,
3639,
309,
12,
71,
92,
422,
446,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
5302,
12,
780,
3065,
13,
288,
3639,
1772,
9494,
273,
5175,
1042,
5621,
3639,
4015,
8455,
4410,
4073,
273,
9494,
18,
588,
2829,
8455,
4410,
5621,
3639,
309,
12,
71,
92,
422,
446,
13... |
private void defineActions( IPageLayout layout ) { // Add "new wizards". layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$ layout.addNewWizardShortcut( NEW_REPORT_ID ); layout.addNewWizardShortcut( NEW_TEMPLATE_ID ); // Add "show views". layout.addShowViewShortcut(IPageLayout.ID_RES_NAV); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(PaletteView.ID); layout.addShowViewShortcut(AttributeView.ID); layout.addShowViewShortcut(DataView.ID); layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET); layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); layout.addPerspectiveShortcut(BIRT_REPORT_PERSPECTIVE); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/136c06dfd2325d1cf0df80f73d301708efa1ae77/ReportPerspective.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ReportPerspective.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4426,
6100,
12,
467,
1964,
3744,
3511,
262,
202,
95,
202,
202,
759,
1436,
315,
2704,
24204,
87,
9654,
202,
202,
6741,
18,
1289,
1908,
27130,
15576,
2932,
3341,
18,
20416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4426,
6100,
12,
467,
1964,
3744,
3511,
262,
202,
95,
202,
202,
759,
1436,
315,
2704,
24204,
87,
9654,
202,
202,
6741,
18,
1289,
1908,
27130,
15576,
2932,
3341,
18,
20416,
... | ||
if ((length = astLengthStack[astLengthPtr--]) != 0) { | if ((length = this.astLengthStack[this.astLengthPtr--]) != 0) { | protected void consumeClassDeclaration() { // ClassDeclaration ::= ClassHeader ClassBody int length; if ((length = astLengthStack[astLengthPtr--]) != 0) { //there are length declarations //dispatch according to the type of the declarations dispatchDeclarationInto(length); } TypeDeclaration typeDecl = (TypeDeclaration) astStack[astPtr]; // mark initializers with local type mark if needed markInitializersWithLocalType(typeDecl); //convert constructor that do not have the type's name into methods boolean hasConstructor = typeDecl.checkConstructors(this); //add the default constructor when needed (interface don't have it) if (!hasConstructor && !typeDecl.isInterface()) { boolean insideFieldInitializer = false; if (diet) { for (int i = nestedType; i > 0; i--){ if (variablesCounter[i] > 0) { insideFieldInitializer = true; break; } } } typeDecl.createsInternalConstructor(!diet || insideFieldInitializer, true); } //always add <clinit> (will be remove at code gen time if empty) if (this.scanner.containsAssertKeyword) { typeDecl.bits |= ASTNode.AddAssertionMASK; } typeDecl.addClinit(); typeDecl.bodyEnd = endStatementPosition; if (length == 0 && !containsComment(typeDecl.bodyStart, typeDecl.bodyEnd)) { typeDecl.bits |= ASTNode.UndocumentedEmptyBlockMASK; } typeDecl.declarationSourceEnd = flushCommentsDefinedPriorTo(endStatementPosition); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
797,
6094,
1435,
288,
202,
759,
1659,
6094,
493,
33,
1659,
1864,
1659,
2250,
202,
474,
769,
31,
202,
430,
14015,
2469,
273,
3364,
1782,
2624,
63,
689,
1782,
5263,
413,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
797,
6094,
1435,
288,
202,
759,
1659,
6094,
493,
33,
1659,
1864,
1659,
2250,
202,
474,
769,
31,
202,
430,
14015,
2469,
273,
3364,
1782,
2624,
63,
689,
1782,
5263,
413,
5717,
... |
dropTable("#t0009"); | dropTable("#t0009"); | public void testPreparedStatement0009() throws Exception { Connection cx = getConnection(); dropTable("#t0009"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0009 " + " (i integer not null, " + " s char(10) not null) "); cx.setAutoCommit(false); PreparedStatement pStmt = cx.prepareStatement( "insert into #t0009 values (?, ?)"); int rowsToAdd = 8; final String theString = "abcdefghijklmnopqrstuvwxyz"; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i)); count += pStmt.executeUpdate(); } assertTrue(count == rowsToAdd); cx.rollback(); stmt = cx.createStatement(); ResultSet rs = stmt.executeQuery("select s, i from #t0009"); assertNotNull(rs); count = 0; while (rs.next()) { count++; assertTrue(rs.getString(1).trim().length() == rs.getInt(2)); } assertTrue(count == 0); cx.commit(); rowsToAdd = 6; count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i)); count += pStmt.executeUpdate(); } assertTrue(count == rowsToAdd); cx.commit(); rs = stmt.executeQuery("select s, i from #t0009"); count = 0; while (rs.next()) { count++; assertTrue(rs.getString(1).trim().length() == rs.getInt(2)); } assertTrue(count == rowsToAdd); cx.commit(); cx.setAutoCommit(true); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/7df6dc0065b654cd4e2b156461e0394d01dd13aa/TimestampTest.java/buggy/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
29325,
3784,
29,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
3784,
29,
8863,
202,
202,
3406,
3480,
273,
949... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
29325,
3784,
29,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
3784,
29,
8863,
202,
202,
3406,
3480,
273,
949... |
case 371: { | case 370: { | public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/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... |
m_usage = ((m_count * m_usage) + currentStatus.getUsage()) / newCount; | m_usage = m_usedMemory * 100 / m_maxMemory; | public void calculateAverage(CmsMemoryStatus currentStatus) { int newCount = m_count + 1; m_maxMemory = ((m_count * m_maxMemory) + currentStatus.getMaxMemory()) / newCount; m_totalMemory = ((m_count * m_totalMemory) + currentStatus.getTotalMemory()) / newCount; m_usedMemory = ((m_count * m_usedMemory) + currentStatus.getUsedMemory()) / newCount; m_freeMemory = ((m_count * m_freeMemory) + currentStatus.getFreeMemory()) / newCount; m_usage = ((m_count * m_usage) + currentStatus.getUsage()) / newCount; m_count = newCount; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/122886f2be7461bd7052c1c126b4471baebcca95/CmsMemoryStatus.java/clean/src/org/opencms/monitor/CmsMemoryStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4604,
17115,
12,
4747,
6031,
1482,
783,
1482,
13,
288,
3639,
509,
394,
1380,
273,
312,
67,
1883,
397,
404,
31,
3639,
312,
67,
1896,
6031,
273,
14015,
81,
67,
1883,
380,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
17115,
12,
4747,
6031,
1482,
783,
1482,
13,
288,
3639,
509,
394,
1380,
273,
312,
67,
1883,
397,
404,
31,
3639,
312,
67,
1896,
6031,
273,
14015,
81,
67,
1883,
380,
312,
... |
labelProvider.dispose(); | labelProvider.dispose(); | public void dispose() { try { synchronized (this) { if (contentProvider != null) contentProvider.dispose(); if (labelProvider != null) labelProvider.dispose(); } } finally { isDisposed = true; } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/377029d74a7de25fc7c2c47d145c9fad2b1088ee/NavigatorContentExtension.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/extensions/NavigatorContentExtension.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
698,
288,
1082,
202,
22043,
261,
2211,
13,
288,
9506,
202,
430,
261,
1745,
2249,
480,
446,
13,
6862,
202,
1745,
2249,
18,
2251,
4150,
5621,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
698,
288,
1082,
202,
22043,
261,
2211,
13,
288,
9506,
202,
430,
261,
1745,
2249,
480,
446,
13,
6862,
202,
1745,
2249,
18,
2251,
4150,
5621,
95... |
public void reportMissedCriteria( Logger logger ) { // if there are no patterns, there is nothing to report. if ( !patterns.isEmpty() ) { List missed = new ArrayList( patterns ); missed.removeAll( patternsTriggered ); if ( !missed.isEmpty() && logger.isWarnEnabled() ) { StringBuffer buffer = new StringBuffer(); buffer.append( "The following patterns were never triggered in this " ); buffer.append( getFilterDescription() ); buffer.append( ':' ); for ( Iterator it = missed.iterator(); it.hasNext(); ) { String pattern = (String) it.next(); buffer.append( "\no \'" ).append( pattern ).append( "\'" ); } buffer.append( "\n" ); logger.warn( buffer.toString() ); } } } | 51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/70d891a8e6f332fc2ed44b13fa0bcdf93310c57f/AssemblyIncludesArtifactFilter.java/buggy/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/filter/AssemblyIncludesArtifactFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2605,
11729,
730,
7231,
12,
4242,
1194,
262,
565,
288,
3639,
368,
309,
1915,
854,
1158,
6884,
16,
1915,
353,
5083,
358,
2605,
18,
3639,
309,
261,
401,
13317,
18,
291,
1921,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2605,
11729,
730,
7231,
12,
4242,
1194,
262,
565,
288,
3639,
368,
309,
1915,
854,
1158,
6884,
16,
1915,
353,
5083,
358,
2605,
18,
3639,
309,
261,
401,
13317,
18,
291,
1921,
1... | ||
synchronized(lock_) { boolean success = (assumedValue == value_); if (success) value_ = newValue; return success; | synchronized (lock_) { boolean success = (assumedValue == value_); if (success) value_ = newValue; return success; } | public boolean commit(char assumedValue, char newValue) { synchronized(lock_) { boolean success = (assumedValue == value_); if (success) value_ = newValue; return success; } } | 4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/SynchronizedChar.java/buggy/src/java/org/logicalcobwebs/concurrent/SynchronizedChar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
3294,
12,
3001,
12034,
620,
16,
1149,
6129,
13,
288,
565,
3852,
12,
739,
67,
13,
288,
1377,
1250,
2216,
273,
261,
428,
379,
329,
620,
422,
460,
67,
1769,
1377,
309,
261,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
3294,
12,
3001,
12034,
620,
16,
1149,
6129,
13,
288,
565,
3852,
12,
739,
67,
13,
288,
1377,
1250,
2216,
273,
261,
428,
379,
329,
620,
422,
460,
67,
1769,
1377,
309,
261,
4... |
mc.writeContentTo(nouts, lines); | writeMessageContentTo(mc.getMessage(),nouts,lines); | private void doTOP(String command,String argument,String argument1) { String responseString = null; if (state == TRANSACTION) { int num = 0; int lines = 0; try { num = Integer.parseInt(argument); lines = Integer.parseInt(argument1); } catch (NumberFormatException nfe) { responseString = ERR_RESPONSE + " Usage: TOP [mail number] [Line number]"; writeLoggedFlushedResponse(responseString); return; } try { MailImpl mc = (MailImpl) userMailbox.get(num); if (mc != DELETED) { responseString = OK_RESPONSE + " Message follows"; writeLoggedFlushedResponse(responseString); for (Enumeration e = mc.getMessage().getAllHeaderLines(); e.hasMoreElements(); ) { out.println(e.nextElement()); } out.println(); OutputStream nouts = new ExtraDotOutputStream(outs); nouts = new BytesWrittenResetOutputStream(nouts, theWatchdog, theConfigData.getResetLength()); mc.writeContentTo(nouts, lines); nouts.flush(); out.println("."); out.flush(); } else { StringBuffer responseBuffer = new StringBuffer(64) .append(ERR_RESPONSE) .append(" Message (") .append(num) .append(") already deleted."); responseString = responseBuffer.toString(); writeLoggedFlushedResponse(responseString); } } catch (IOException ioe) { responseString = ERR_RESPONSE + " Error while retrieving message."; writeLoggedFlushedResponse(responseString); } catch (MessagingException me) { responseString = ERR_RESPONSE + " Error while retrieving message."; writeLoggedFlushedResponse(responseString); } catch (IndexOutOfBoundsException iob) { StringBuffer exceptionBuffer = new StringBuffer(64) .append(ERR_RESPONSE) .append(" Message (") .append(num) .append(") does not exist."); responseString = exceptionBuffer.toString(); writeLoggedFlushedResponse(responseString); } } else { responseString = ERR_RESPONSE; writeLoggedFlushedResponse(responseString); } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/93232ad3cbaee7d391371bf0c0c1ad3b7005f479/POP3Handler.java/buggy/trunk/src/java/org/apache/james/pop3server/POP3Handler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
10462,
12,
780,
1296,
16,
780,
1237,
16,
780,
1237,
21,
13,
288,
3639,
514,
766,
780,
273,
446,
31,
3639,
309,
261,
2019,
422,
24896,
13,
288,
5411,
509,
818,
273,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
10462,
12,
780,
1296,
16,
780,
1237,
16,
780,
1237,
21,
13,
288,
3639,
514,
766,
780,
273,
446,
31,
3639,
309,
261,
2019,
422,
24896,
13,
288,
5411,
509,
818,
273,
374... |
{ | public void setPopupVisible( boolean isVisible ) { super.setPopupVisible( isVisible ); if ( isVisible ) return; if ( this == outfitSelect ) { Object outfit = getSelectedItem(); if ( outfit != null && !(outfit instanceof String) ) { RequestThread.postRequest( new EquipmentRequest( (SpecialOutfit) outfit ) ); KoLmafia.enableDisplay(); } setSelectedItem( null ); return; } else if ( this == familiarSelect ) { equip.actionConfirmed(); return; } for ( int i = 0; i < equipment.length; ++i ) if ( this == equipment[i] ) { pieces[i] = (AdventureResult) getSelectedItem(); if ( KoLCharacter.getEquipment(i).equals( pieces[i] ) ) pieces[i] = null; } ensureValidSelections(); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/6716036a1775fad6ac0f3920c7a8aae0674b4241/GearChangeFrame.java/buggy/src/net/sourceforge/kolmafia/GearChangeFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
444,
13770,
6207,
12,
1250,
20453,
262,
202,
202,
95,
1082,
202,
9565,
18,
542,
13770,
6207,
12,
20453,
11272,
1082,
202,
430,
261,
20453,
262,
9506,
202,
2463,
31,
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,
3196,
202,
482,
918,
444,
13770,
6207,
12,
1250,
20453,
262,
202,
202,
95,
1082,
202,
9565,
18,
542,
13770,
6207,
12,
20453,
11272,
1082,
202,
430,
261,
20453,
262,
9506,
202,
2463,
31,
1082,
... | |
CompletionProposalCollector collector; if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES)) { collector= new ExperimentalResultCollector(unit); } else { collector= new CompletionProposalCollector(unit); } | CompletionProposalCollector collector= createCollector(unit); | private List internalComputeCompletionProposals(int offset, JavaContentAssistInvocationContext context, IProgressMonitor monitor) { ICompilationUnit unit= context.computeCompilationUnit(); if (unit == null) return Collections.EMPTY_LIST; ITextViewer viewer= context.getViewer(); CompletionProposalCollector collector; if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES)) { collector= new ExperimentalResultCollector(unit); } else { collector= new CompletionProposalCollector(unit); } context.setCollector(collector); try { Point selection= viewer.getSelectedRange(); if (selection.y > 0) collector.setReplacementLength(selection.y); unit.codeComplete(offset, collector); } catch (JavaModelException x) { Shell shell= viewer.getTextWidget().getShell(); if (x.isDoesNotExist() && !unit.getJavaProject().isOnClasspath(unit)) MessageDialog.openInformation(shell, JavaTextMessages.CompletionProcessor_error_notOnBuildPath_title, JavaTextMessages.CompletionProcessor_error_notOnBuildPath_message); else ErrorDialog.openError(shell, JavaTextMessages.CompletionProcessor_error_accessing_title, JavaTextMessages.CompletionProcessor_error_accessing_message, x.getStatus()); } ICompletionProposal[] javaProposals= collector.getJavaCompletionProposals(); int contextInformationOffset= guessContextInformationPosition(context); if (contextInformationOffset != offset) { for (int i= 0; i < javaProposals.length; i++) { if (javaProposals[i] instanceof JavaMethodCompletionProposal) { JavaMethodCompletionProposal jmcp= (JavaMethodCompletionProposal) javaProposals[i]; jmcp.setContextInformationPosition(contextInformationOffset); } } } List proposals= new ArrayList(Arrays.asList(javaProposals)); return proposals; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/5bf80e2f51330b82217ce9b9a01e470170bf1744/JavaCompletionProposalComputer.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposalComputer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
2713,
7018,
11238,
626,
22536,
12,
474,
1384,
16,
5110,
1350,
2610,
376,
9267,
1042,
819,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
45,
19184,
2802,
2836,
33,
819,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
2713,
7018,
11238,
626,
22536,
12,
474,
1384,
16,
5110,
1350,
2610,
376,
9267,
1042,
819,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
45,
19184,
2802,
2836,
33,
819,
1... |
layout.numColumns = 1; | public Control createContents(Composite parent) { WorkbenchHelp.setHelp( getControl(), IHelpContextIds.FONT_PREFERENCE_PAGE); parent.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (appliedDialogFont != null) appliedDialogFont.dispose(); } }); Font defaultFont = parent.getFont(); Composite mainColumn = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; layout.makeColumnsEqualWidth = true; mainColumn.setFont(defaultFont); mainColumn.setLayout(layout); createFontList(mainColumn); Composite previewColumn = new Composite(mainColumn, SWT.NULL); layout = new GridLayout(); layout.numColumns = 1; layout.marginHeight = 0; layout.marginWidth = 0; previewColumn.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; previewColumn.setLayoutData(data); previewColumn.setFont(defaultFont); createPreviewControl(previewColumn); createValueControl(previewColumn); Composite buttonColumn = new Composite(previewColumn, SWT.NULL); layout = new GridLayout(); layout.numColumns = 3; layout.marginHeight = 0; layout.marginWidth = 0; buttonColumn.setLayout(layout); data = new GridData(GridData.HORIZONTAL_ALIGN_END); buttonColumn.setLayoutData(data); buttonColumn.setFont(defaultFont); createUseDefaultsControl(buttonColumn); createChangeControl(buttonColumn); createResetControl(buttonColumn); createNoteControl(previewColumn); createDescriptionControl(parent); return mainColumn; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c3215d23c99197165e72b0ab6b8bb81fa0fbba83/FontPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
1082,
202,
588,
3367,
9334,
1082,
202,
45,
6696,
1042,
2673,
18,
25221,
67,
3670,
1083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
1082,
202,
588,
3367,
9334,
1082,
202,
45,
6696,
1042,
2673,
18,
25221,
67,
3670,
1083... | |
totalLoop: for( int i = 0; i < 2; ++i ) { if( useIncludePaths ) { Iterator iter = scannerData.getIncludePathNames().iterator(); | Reader inclusionReader = null; File includeFile = null; | protected void handleInclusion(String fileName, boolean useIncludePaths, int beginOffset, int startLine, int nameOffset, int nameLine, int endOffset, int endLine ) throws ScannerException { FileReader inclusionReader = null; String newPath = null; totalLoop: for( int i = 0; i < 2; ++i ) { if( useIncludePaths ) // search include paths for this file { // iterate through the include paths Iterator iter = scannerData.getIncludePathNames().iterator(); while (iter.hasNext()) { String path = (String)iter.next(); File pathFile = new File(path); //TODO assert pathFile.isDirectory(); StringBuffer buffer = new StringBuffer( pathFile.getPath() ); buffer.append( File.separatorChar ); buffer.append( fileName ); newPath = buffer.toString(); //TODO remove ".." and "." segments File includeFile = new File(newPath); if (includeFile.exists() && includeFile.isFile()) { try { inclusionReader = new FileReader(includeFile); break totalLoop; } catch (FileNotFoundException fnf) { continue; } } } if (inclusionReader == null ) handleProblem( IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND, fileName, beginOffset, false, true ); } else // local inclusion { String currentFilename = scannerData.getContextStack().getCurrentContext().getFilename(); File currentIncludeFile = new File( currentFilename ); String parentDirectory = currentIncludeFile.getParentFile().getAbsolutePath(); currentIncludeFile = null; StringBuffer buffer = new StringBuffer( parentDirectory ); buffer.append( File.separatorChar ); buffer.append( fileName ); newPath = buffer.toString(); //TODO remove ".." and "." segments File includeFile = new File( newPath ); if (includeFile.exists() && includeFile.isFile()) { try { inclusionReader = new FileReader(includeFile); break totalLoop; } catch (FileNotFoundException fnf) { useIncludePaths = true; continue totalLoop; } } else { useIncludePaths = true; continue totalLoop; } } } if (inclusionReader != null) { IASTInclusion inclusion = null; try { inclusion = scannerData.getASTFactory().createInclusion( fileName, newPath, !useIncludePaths, beginOffset, startLine, nameOffset, nameOffset + fileName.length(), nameLine, endOffset, endLine); } catch (Exception e) { /* do nothing */ } try { scannerData.getContextStack().updateContext(inclusionReader, newPath, ScannerContext.ContextKind.INCLUSION, inclusion, scannerData.getClientRequestor() ); } catch (ContextException e1) { handleProblem( e1.getId(), fileName, beginOffset, false, true ); } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f28275b6699628e73ae3c70233ff0e01fd351f7e/Scanner.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
382,
15335,
12,
780,
3968,
16,
1250,
999,
8752,
4466,
16,
509,
2376,
2335,
16,
509,
24636,
16,
509,
508,
2335,
16,
509,
508,
1670,
16,
509,
25507,
16,
509,
31763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
382,
15335,
12,
780,
3968,
16,
1250,
999,
8752,
4466,
16,
509,
2376,
2335,
16,
509,
24636,
16,
509,
508,
2335,
16,
509,
508,
1670,
16,
509,
25507,
16,
509,
31763,
... |
if (config.getFrom2p3px() && (config.getTimezonesFilename() != null)) { TimeZonesParser tzp = new TimeZonesParser( new FileInputStream(config.getTimezonesFilename()), config.getDebug()); Collection tzis = tzp.getTimeZones(); Iterator it = tzis.iterator(); while (it.hasNext()) { TimeZonesParser.TimeZoneInfo tzi = (TimeZonesParser.TimeZoneInfo)it.next(); tzcache.saveTimeZone(tzi.tzid, tzi.timezone); timezones++; } } | public CalTimezones getTzcache() throws Throwable { if (tzcache != null) { return tzcache; } if (syspars.getTzid() == null) { throw new Exception("syspars.tzid not initialised"); } tzcache = new TimezonesImpl(config.getDebug(), getPublicUser(), rintf); tzcache.setDefaultTimeZoneId(syspars.getTzid()); if (config.getFrom2p3px() && (config.getTimezonesFilename() != null)) { // Populate from a file TimeZonesParser tzp = new TimeZonesParser( new FileInputStream(config.getTimezonesFilename()), config.getDebug()); Collection tzis = tzp.getTimeZones(); Iterator it = tzis.iterator(); while (it.hasNext()) { TimeZonesParser.TimeZoneInfo tzi = (TimeZonesParser.TimeZoneInfo)it.next(); tzcache.saveTimeZone(tzi.tzid, tzi.timezone); timezones++; } } return tzcache; } | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/b5246bb35b4751c471a9a6d223d18be8c0d0a4f4/RestoreGlobals.java/clean/calendar3/dumprestore/src/org/bedework/dumprestore/restore/RestoreGlobals.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3596,
950,
14203,
3181,
94,
2493,
1435,
1216,
4206,
288,
565,
309,
261,
12994,
2493,
480,
446,
13,
288,
1377,
327,
6016,
2493,
31,
565,
289,
565,
309,
261,
9499,
8954,
18,
588,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3596,
950,
14203,
3181,
94,
2493,
1435,
1216,
4206,
288,
565,
309,
261,
12994,
2493,
480,
446,
13,
288,
1377,
327,
6016,
2493,
31,
565,
289,
565,
309,
261,
9499,
8954,
18,
588,
56... | |
log.debug("auId: " + auId); | public CachedUrlSet findCachedUrlSet(PollSpec spec) { log.debug("findCachedUrlSet("+spec+")"); log.debug(this.toString()); String pluginId = spec.getPluginId(); log.debug("pluginId: " + pluginId); Plugin plugin = getPlugin(pluginId); log.debug("plugin: " + plugin); if (plugin == null) return null; String auId = spec.getAUId(); log.debug("auId: " + auId); ArchivalUnit au = plugin.getAU(auId); log.debug("au: " + au); if (au == null) return null; String url = spec.getUrl(); CachedUrlSet cus; if (AuUrl.isAuUrl(url)) { cus = au.getAUCachedUrlSet(); } else { cus = au.makeCachedUrlSet(url, spec.getLwrBound(), spec.getUprBound()); } log.debug("ret cus = " + cus); return cus; } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/a5c3bcce64f40e7c3634f3e334a1e2bfcf8fba0b/PluginManager.java/buggy/src/org/lockss/plugin/PluginManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15771,
1489,
694,
1104,
9839,
1489,
694,
12,
19085,
1990,
857,
13,
288,
565,
613,
18,
4148,
2932,
4720,
9839,
1489,
694,
2932,
15,
2793,
9078,
2225,
1769,
565,
613,
18,
4148,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15771,
1489,
694,
1104,
9839,
1489,
694,
12,
19085,
1990,
857,
13,
288,
565,
613,
18,
4148,
2932,
4720,
9839,
1489,
694,
2932,
15,
2793,
9078,
2225,
1769,
565,
613,
18,
4148,
12,
... | |
runMessagesRemoved((MessageCountEvent)actionEvent.getSource()); } | runMessagesAdded((MessageCountEvent)actionEvent.getSource()); } | public void actionPerformed(java.awt.event.ActionEvent actionEvent) { runMessagesRemoved((MessageCountEvent)actionEvent.getSource()); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/df401949e48839e35c1856b44a238b14d606b9a2/FolderInfo.java/buggy/net/suberic/pooka/FolderInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
1301,
1133,
13,
288,
202,
565,
1086,
5058,
10026,
12443,
1079,
1380,
1133,
13,
1128,
1133,
18,
588,
1830,
10663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
1301,
1133,
13,
288,
202,
565,
1086,
5058,
10026,
12443,
1079,
1380,
1133,
13,
1128,
1133,
18,
588,
1830,
10663,
... |
String new_node_host = topologyService.getParentForChild(TopologyReaderService.HOST, TopologyReaderService.NODE, node); | String new_node_host = entry.getHost(); | public void run() { // Loop over all Agents, seeing if the Host has changed, Set matches = null; try { matches = topologyService.getAllEntries(null, null, null, null, null); } catch (Exception ex) { // Node hasn't finished initializing yet return; } if (matches == null) return; Iterator itr = matches.iterator(); while (itr.hasNext()) { TopologyEntry entry = (TopologyEntry) itr.next(); // See if the Node has moved String node = entry.getNode(); String old_node_host = (String) node_hosts.get(node); String new_node_host = topologyService.getParentForChild(TopologyReaderService.HOST, TopologyReaderService.NODE, node); if (old_node_host == null || !old_node_host.equals(new_node_host)) { // node has moved. Object[] params = { node }; Class cls = org.cougaar.core.qos.rss.NodeDS.class; RSS.instance().deleteScope(cls, params);// System.err.println("===== Deleted Node " +node+// " scope"); node_hosts.put(node, new_node_host); } String agent = entry.getAgent(); // System.out.print("Agent " +agent); // Should we restrict this to ACTIVE Agents? if (entry.getStatus() != TopologyEntry.ACTIVE) continue; String new_host = entry.getHost(); String host = (String) agent_hosts.get(agent); // System.out.println(" Old host: " +host+ // " New host: " +new_host); if (host == null || !host.equals(new_host)) { // Agent has moved to a new host. Delete the // old DataScope. Object[] params = { agent }; Class cls = org.cougaar.core.qos.rss.AgentDS.class; RSS.instance().deleteScope(cls, params);// System.err.println("===== Deleted Agent " +agent+// " scope"); agent_hosts.put(agent, new_host); if (Debug.isDebugEnabled(loggingService,RMS)) loggingService.debug("===== New host " +new_host+ " for agent " +agent); // We still need to update these sysconds, since // they're not subscribed to an Agent formula (if // they were, the rest of this would be // unnecessary). They're subscribed to a Host // formula. ArrayList agentListeners = (ArrayList) listeners.get(agent); if (agentListeners == null) continue; Iterator litr = agentListeners.iterator(); while (litr.hasNext()) { AgentHostUpdaterListener listener = (AgentHostUpdaterListener) litr.next(); listener.newHost(new_host); } } } } | 7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/5abbdea7e1792124e21c39f15635f13b497e9084/SyscondFactory.java/clean/quo/src/org/cougaar/lib/mquo/SyscondFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
565,
368,
9720,
1879,
777,
5495,
4877,
16,
2621,
310,
309,
326,
4893,
711,
3550,
16,
202,
565,
1000,
1885,
273,
446,
31,
202,
565,
775,
288,
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,
482,
918,
1086,
1435,
288,
202,
565,
368,
9720,
1879,
777,
5495,
4877,
16,
2621,
310,
309,
326,
4893,
711,
3550,
16,
202,
565,
1000,
1885,
273,
446,
31,
202,
565,
775,
288,
202,
... |
private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception { // ------------------------------------------------------------------ // Get the attributes of the type // ------------------------------------------------------------------ String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT ); String blockSet = complexTypeDecl.getAttribute( SchemaSymbols.ATT_BLOCK ); String finalSet = complexTypeDecl.getAttribute( SchemaSymbols.ATT_FINAL ); String typeId = complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID ); String typeName = complexTypeDecl.getAttribute(SchemaSymbols.ATT_NAME); String mixed = complexTypeDecl.getAttribute(SchemaSymbols.ATT_MIXED); boolean isNamedType = false; if ( DEBUGGING ) System.out.println("traversing complex Type : " + typeName); // ------------------------------------------------------------------ // Generate a type name, if one wasn't specified // ------------------------------------------------------------------ if (typeName.equals("")) { // gensym a unique name //typeName = "http://www.apache.org/xml/xerces/internalType"+fTypeCount++; typeName = "#"+fAnonTypeCount++; } else { fCurrentTypeNameStack.push(typeName); isNamedType = true; } int typeNameIndex = fStringPool.addSymbol(typeName); // ------------------------------------------------------------------ // Check if the type has already been registered // ------------------------------------------------------------------ if (isTopLevel(complexTypeDecl)) { String fullName = fTargetNSURIString+","+typeName; ComplexTypeInfo temp = (ComplexTypeInfo) fComplexTypeRegistry.get(fullName); if (temp != null ) { return fStringPool.addSymbol(fullName); } } int scopeDefined = fScopeCount++; int previousScope = fCurrentScope; fCurrentScope = scopeDefined; Element child = null; ComplexTypeInfo typeInfo = new ComplexTypeInfo(); try { // ------------------------------------------------------------------ // First, handle any ANNOTATION declaration and get next child // ------------------------------------------------------------------ child = checkContent(complexTypeDecl,XUtil.getFirstChildElement(complexTypeDecl), true); // ------------------------------------------------------------------ // Process the content of the complex type declaration // ------------------------------------------------------------------ if (child==null) { // // EMPTY complexType with complexContent // processComplexContent(typeNameIndex, child, typeInfo, null, false); } else { String childName = child.getLocalName(); int index = -2; if (childName.equals(SchemaSymbols.ELT_SIMPLECONTENT)) { // // SIMPLE CONTENT element // traverseSimpleContentDecl(typeNameIndex, child, typeInfo); if (XUtil.getNextSiblingElement(child) != null) throw new ComplexTypeRecoverableError( "Invalid child following the simpleContent child in the complexType"); } else if (childName.equals(SchemaSymbols.ELT_COMPLEXCONTENT)) { // // COMPLEX CONTENT element // traverseComplexContentDecl(typeNameIndex, child, typeInfo, mixed.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false); if (XUtil.getNextSiblingElement(child) != null) throw new ComplexTypeRecoverableError( "Invalid child following the complexContent child in the complexType"); } else { // // We must have .... // GROUP, ALL, SEQUENCE or CHOICE, followed by optional attributes // Note that it's possible that only attributes are specified. // processComplexContent(typeNameIndex, child, typeInfo, null, mixed.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false); } } } catch (ComplexTypeRecoverableError e) { String message = e.getMessage(); handleComplexTypeError(message,typeNameIndex,typeInfo); } // ------------------------------------------------------------------ // Finish the setup of the typeInfo and register the type // ------------------------------------------------------------------ typeInfo.scopeDefined = scopeDefined; typeInfo.blockSet = parseBlockSet(blockSet); typeInfo.finalSet = parseFinalSet(finalSet); typeInfo.isAbstract = isAbstract.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false ; if (!typeName.startsWith("#")) { typeName = fTargetNSURIString + "," + typeName; } typeInfo.typeName = new String(typeName); if ( DEBUGGING ) System.out.println(">>>add complex Type to Registry: " + typeName + " baseDTValidator=" + typeInfo.baseDataTypeValidator + " baseCTInfo=" + typeInfo.baseComplexTypeInfo + " derivedBy=" + typeInfo.derivedBy + " contentType=" + typeInfo.contentType + " contentSpecHandle=" + typeInfo.contentSpecHandle + " datatypeValidator=" + typeInfo.datatypeValidator); fComplexTypeRegistry.put(typeName,typeInfo); // ------------------------------------------------------------------ // Before exiting, restore the scope, mainly for nested anonymous types // ------------------------------------------------------------------ fCurrentScope = previousScope; if (isNamedType) { fCurrentTypeNameStack.pop(); checkRecursingComplexType(); } //set template element's typeInfo fSchemaGrammar.setElementComplexTypeInfo(typeInfo.templateElementIndex, typeInfo); typeNameIndex = fStringPool.addSymbol(typeName); return typeNameIndex; } // end traverseComplexTypeDecl | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1f8f76d5e237e732d351582742ba7a1ba30c7278/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
474,
2033,
2476,
12795,
559,
3456,
12,
1046,
14259,
559,
3456,
13,
15069,
503,
95,
759,
5802,
413,
759,
967,
5787,
4350,
792,
451,
5872,
759,
5802,
413,
780,
291,
7469,
33,
14259,
559,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
474,
2033,
2476,
12795,
559,
3456,
12,
1046,
14259,
559,
3456,
13,
15069,
503,
95,
759,
5802,
413,
759,
967,
5787,
4350,
792,
451,
5872,
759,
5802,
413,
780,
291,
7469,
33,
14259,
559,
... | ||
public void setString(int parameterIndex, String x) throws SQLException { // if the passed string is null, then set this column to null if(x==null) set(parameterIndex,"null"); else { StringBuffer b = new StringBuffer(); int i; b.append('\''); for (i = 0 ; i < x.length() ; ++i) { char c = x.charAt(i); if (c == '\\' || c == '\'') b.append((char)'\\'); b.append(c); } b.append('\''); set(parameterIndex, b.toString()); } } | 46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/8439a83d84fb159a790ed2b6d14d4151b9890857/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
14600,
12,
474,
25412,
16,
514,
619,
13,
1216,
6483,
202,
95,
202,
225,
368,
309,
326,
2275,
533,
353,
446,
16,
1508,
444,
333,
1057,
358,
446,
202,
225,
309,
12,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14600,
12,
474,
25412,
16,
514,
619,
13,
1216,
6483,
202,
95,
202,
225,
368,
309,
326,
2275,
533,
353,
446,
16,
1508,
444,
333,
1057,
358,
446,
202,
225,
309,
12,
92,
... | ||
public boolean next() throws IOException { return scorer.next(); } | public boolean next() throws IOException { do { if (! scorer.next()) { return false; } } while (! bitset.get(scorer.doc())); /* When skipTo() is allowed on scorer it should be used here * in combination with bitset.nextSetBit(...) * See the while loop in skipTo() below. */ return true; } | public boolean next() throws IOException { return scorer.next(); } | 50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/d07f7eea12d6ab5068b07dd884d8202460beaef4/FilteredQuery.java/clean/src/java/org/apache/lucene/search/FilteredQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
1250,
1024,
1435,
1216,
1860,
288,
327,
888,
8922,
18,
4285,
5621,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
1250,
1024,
1435,
1216,
1860,
288,
327,
888,
8922,
18,
4285,
5621,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return new Token.UnionToken(Token.CONCAT); | return new Token.ConcatToken(tok1, tok2); | static Token.UnionToken createConcat() { if (COUNTTOKENS) Token.tokens ++; return new Token.UnionToken(Token.CONCAT); // *** It is not a bug. } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/70b7b24feecf18d8ac4f51eb39acdd929dea5021/Token.java/buggy/src/org/apache/xerces/impl/xpath/regex/Token.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3155,
18,
14325,
1345,
752,
15113,
1435,
288,
3639,
309,
261,
3865,
2124,
23187,
55,
13,
225,
3155,
18,
7860,
965,
31,
3639,
327,
394,
3155,
18,
15113,
1345,
12,
17692,
21,
16,
946... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3155,
18,
14325,
1345,
752,
15113,
1435,
288,
3639,
309,
261,
3865,
2124,
23187,
55,
13,
225,
3155,
18,
7860,
965,
31,
3639,
327,
394,
3155,
18,
15113,
1345,
12,
17692,
21,
16,
946... |
getRevisionObject(revision), "/" }); | getRevisionObject(revision), "" }); | public void openRoot(long revision) throws SVNException { myCurrentPath = "/"; myConnection.write("(w((n)s))", new Object[] { "open-root", getRevisionObject(revision), "/" }); } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/d2f7dbed382632fa9a750c00be8b5bd1ce22f7f6/SVNCommitEditor.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNCommitEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2375,
12,
5748,
6350,
13,
1216,
29537,
50,
503,
288,
3639,
3399,
3935,
743,
273,
4016,
31,
3639,
3399,
1952,
18,
2626,
2932,
12,
91,
12443,
82,
13,
87,
30743,
16,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
2375,
12,
5748,
6350,
13,
1216,
29537,
50,
503,
288,
3639,
3399,
3935,
743,
273,
4016,
31,
3639,
3399,
1952,
18,
2626,
2932,
12,
91,
12443,
82,
13,
87,
30743,
16,
394,
... |
if (!display.readAndDispatch()) display.sleep(); | if (!display.readAndDispatch()) { display.sleep(); } | public void block() { if (display == Display.getCurrent()) { while (continueEventDispatching) { // Run the event loop. Handle any uncaught exceptions caused // by UI events. try { if (!display.readAndDispatch()) display.sleep(); } // ThreadDeath is a normal error when the thread is dying. We must // propagate it in order for it to properly terminate. catch (ThreadDeath e) { throw (e); } // For all other exceptions, log the problem. catch (Throwable e) { System.err.println("Unhandled event loop exception during blocked modal context."); //$NON-NLS-1$ e.printStackTrace(); } } } else { try { join(); } catch (InterruptedException e) { throwable = e; } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ModalContext.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1203,
1435,
288,
5411,
309,
261,
5417,
422,
9311,
18,
588,
3935,
10756,
288,
7734,
1323,
261,
17143,
1133,
5325,
310,
13,
288,
1171,
202,
759,
1939,
326,
871,
2798,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1203,
1435,
288,
5411,
309,
261,
5417,
422,
9311,
18,
588,
3935,
10756,
288,
7734,
1323,
261,
17143,
1133,
5325,
310,
13,
288,
1171,
202,
759,
1939,
326,
871,
2798,
18,
225,
... |
System.err.println("Usage: <crawldb> <segment>"); | System.err.println("Usage: CrawlDb <crawldb> <segment>"); | public static void main(String[] args) throws Exception { CrawlDb crawlDb = new CrawlDb(NutchConfiguration.create()); if (args.length < 2) { System.err.println("Usage: <crawldb> <segment>"); return; } crawlDb.update(new Path(args[0]), new Path(args[1])); } | 50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/8af52fb55aa87ebe363f60b7929fb0723c368483/CrawlDb.java/buggy/src/java/org/apache/nutch/crawl/CrawlDb.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
385,
15161,
4331,
23182,
4331,
273,
394,
385,
15161,
4331,
12,
50,
322,
343,
1750,
18,
2640,
10663,
3639,
309,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
385,
15161,
4331,
23182,
4331,
273,
394,
385,
15161,
4331,
12,
50,
322,
343,
1750,
18,
2640,
10663,
3639,
309,
261,
1... |
private void buttonPauseActionPerformed(java.awt.event.ActionEvent evt) { | private void buttonPauseActionPerformed(java.awt.event.ActionEvent evt) { | private void buttonPauseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonPauseActionPerformed tableModel.setEnabled(isBusy); tableCode.setEnabled(isBusy); if (isBusy) { setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); updateActionButtons(); labelStatus.setText("Paused."); buttonPause.setText("Continue"); } else { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); buttonGen.setEnabled(false); buttonImp.setEnabled(false); buttonRenMod.setEnabled(false); buttonRenCod.setEnabled(false); labelStatus.setText("Running..."); buttonPause.setText("Pause"); } buttonPause.requestFocus(); isBusy = !isBusy; }//GEN-LAST:event_buttonPauseActionPerformed | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/SynchronizeDialog.java/buggy/modules/java_rte/src/org/argouml/language/java/ui/SynchronizeDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3568,
19205,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
5391,
19205,
19449,
3639,
1014,
1488,
18,
542,
1526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3568,
19205,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
5391,
19205,
19449,
3639,
1014,
1488,
18,
542,
1526,
... |
public void containerCreated(final ContainerEvent e) { | public void containerCreated(ContainerEvent e) { | public void containerCreated(final ContainerEvent e) { fail(NAME + " [CONTAINER CREATED EVENT WAS FIRED]"); } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/f88a7e6e85dd504c11c5b58ca96fca298ab490cf/DeleteTest.java/buggy/client-model/src/test/java/com/thinkparity/model/parity/model/container/DeleteTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1478,
6119,
12,
2170,
1133,
425,
13,
288,
5411,
2321,
12,
1985,
397,
315,
306,
21395,
21397,
9964,
678,
3033,
4011,
5879,
4279,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1478,
6119,
12,
2170,
1133,
425,
13,
288,
5411,
2321,
12,
1985,
397,
315,
306,
21395,
21397,
9964,
678,
3033,
4011,
5879,
4279,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100... |
break _loop790; | break _loop791; | public final void formstate(AST _t) throws RecognitionException { AST formstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST __t788 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { _loop790: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop790; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HEADER: { AST __t792 = _t; AST tmp1296_AST_in = (AST)_t; match(_t,HEADER); _t = _t.getFirstChild(); { int _cnt794=0; _loop794: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt794>=1 ) { break _loop794; } else {throw new NoViableAltException(_t);} } _cnt794++; } while (true); } _t = __t792; _t = _t.getNextSibling(); break; } case BACKGROUND: { AST __t795 = _t; AST tmp1297_AST_in = (AST)_t; match(_t,BACKGROUND); _t = _t.getFirstChild(); { int _cnt797=0; _loop797: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt797>=1 ) { break _loop797; } else {throw new NoViableAltException(_t);} } _cnt797++; } while (true); } _t = __t795; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t799 = _t; AST tmp1298_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop801: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop801; } } while (true); } _t = __t799; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t788; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
646,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
646,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
646,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
646,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
public List getAncestorList() { ArrayList list = new ArrayList(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if(!p.isSingleton()) { list.add(p.getNonIncludedClass()); } } return list; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
336,
15637,
682,
1435,
288,
3639,
2407,
666,
273,
394,
2407,
5621,
7734,
364,
261,
54,
10340,
3120,
293,
273,
333,
31,
293,
480,
446,
31,
293,
273,
293,
18,
588,
8051,
797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
336,
15637,
682,
1435,
288,
3639,
2407,
666,
273,
394,
2407,
5621,
7734,
364,
261,
54,
10340,
3120,
293,
273,
333,
31,
293,
480,
446,
31,
293,
273,
293,
18,
588,
8051,
797,
... | ||
fixnumClass.defineMethod("to_f", IndexedCallback.create(M_TO_F, 0)); fixnumClass.defineMethod("to_s", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("to_str", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("<<", IndexedCallback.create(M_OP_LSHIFT, 1)); fixnumClass.defineMethod(">>", IndexedCallback.create(M_OP_RSHIFT, 1)); fixnumClass.defineMethod("+", IndexedCallback.create(M_OP_PLUS, 1)); fixnumClass.defineMethod("-", IndexedCallback.create(M_OP_MINUS, 1)); fixnumClass.defineMethod("*", IndexedCallback.create(M_OP_MUL, 1)); fixnumClass.defineMethod("/", IndexedCallback.create(M_OP_DIV, 1)); fixnumClass.defineMethod("%", IndexedCallback.create(M_OP_MOD, 1)); fixnumClass.defineMethod("**", IndexedCallback.create(M_OP_POW, 1)); fixnumClass.defineMethod("==", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("eql?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("equal?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("<=>", IndexedCallback.create(M_OP_CMP, 1)); fixnumClass.defineMethod(">", IndexedCallback.create(M_OP_GT, 1)); fixnumClass.defineMethod(">=", IndexedCallback.create(M_OP_GE, 1)); fixnumClass.defineMethod("<", IndexedCallback.create(M_OP_LT, 1)); fixnumClass.defineMethod("<=", IndexedCallback.create(M_OP_LE, 1)); fixnumClass.defineMethod("&", IndexedCallback.create(M_OP_AND, 1)); | public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFixnum.class, "induced_from", IRubyObject.class)); fixnumClass.defineMethod("to_f", IndexedCallback.create(M_TO_F, 0)); fixnumClass.defineMethod("to_s", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("to_str", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("<<", IndexedCallback.create(M_OP_LSHIFT, 1)); fixnumClass.defineMethod(">>", IndexedCallback.create(M_OP_RSHIFT, 1)); fixnumClass.defineMethod("+", IndexedCallback.create(M_OP_PLUS, 1)); fixnumClass.defineMethod("-", IndexedCallback.create(M_OP_MINUS, 1)); fixnumClass.defineMethod("*", IndexedCallback.create(M_OP_MUL, 1)); fixnumClass.defineMethod("/", IndexedCallback.create(M_OP_DIV, 1)); fixnumClass.defineMethod("%", IndexedCallback.create(M_OP_MOD, 1)); fixnumClass.defineMethod("**", IndexedCallback.create(M_OP_POW, 1)); fixnumClass.defineMethod("==", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("eql?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("equal?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("<=>", IndexedCallback.create(M_OP_CMP, 1)); fixnumClass.defineMethod(">", IndexedCallback.create(M_OP_GT, 1)); fixnumClass.defineMethod(">=", IndexedCallback.create(M_OP_GE, 1)); fixnumClass.defineMethod("<", IndexedCallback.create(M_OP_LT, 1)); fixnumClass.defineMethod("<=", IndexedCallback.create(M_OP_LE, 1)); fixnumClass.defineMethod("&", IndexedCallback.create(M_OP_AND, 1)); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("size", IndexedCallback.create(M_SIZE, 0)); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); fixnumClass.defineMethod("hash", IndexedCallback.create(M_HASH, 0)); fixnumClass.defineMethod("id2name", IndexedCallback.create(M_ID2NAME, 0)); fixnumClass.defineMethod("~", IndexedCallback.create(M_INVERT, 0)); fixnumClass.defineMethod("id", IndexedCallback.create(M_ID, 0)); return fixnumClass; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/5f6bd2ce57ff6ed96fea5760d028882d8af6113c/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
22155,
18,
11255,
797,
2932,
8585,
2107,
3113,
22155,
18,
588,
4818,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
22155,
18,
11255,
797,
2932,
8585,
2107,
3113,
22155,
18,
588,
4818,
76... | |
Node result = new Node(Token.NEW, Node.newString(Token.NAME, "Object")); Node list = new Node(Token.INIT_LIST, result); for (Node cursor = ((Node) obj).getFirstChild(); cursor != null;) { Node n = cursor; cursor = cursor.getNext(); int op = (n.getType() == Token.NAME) ? Token.SETPROP : Token.SETELEM; Node next = cursor; cursor = cursor.getNext(); Node addelem = new Node(op, new Node(Token.USE_STACK), n, next); list.addChildToBack(addelem); | int size = elems.size() / 2; Node object = new Node(Token.OBJECTLIT); Object[] properties; if (size == 0) { properties = ScriptRuntime.emptyArgs; } else { properties = new Object[size]; for (int i = 0; i != size; ++i) { properties[i] = elems.get(2 * i); Node value = (Node)elems.get(2 * i + 1); object.addChildToBack(value); } | Object createObjectLiteral(Object obj) { Node result = new Node(Token.NEW, Node.newString(Token.NAME, "Object")); Node list = new Node(Token.INIT_LIST, result); for (Node cursor = ((Node) obj).getFirstChild(); cursor != null;) { Node n = cursor; cursor = cursor.getNext(); int op = (n.getType() == Token.NAME) ? Token.SETPROP : Token.SETELEM; // Move cursor before next.next can be altered in new Node Node next = cursor; cursor = cursor.getNext(); Node addelem = new Node(op, new Node(Token.USE_STACK), n, next); list.addChildToBack(addelem); } return list; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/37be8f9cfb362f40c2f19056693cb9e21cb13bcb/IRFactory.java/buggy/js/rhino/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
17109,
6177,
12,
921,
1081,
13,
565,
288,
3639,
2029,
563,
273,
394,
2029,
12,
1345,
18,
12917,
16,
1171,
9079,
2029,
18,
2704,
780,
12,
1345,
18,
1985,
16,
315,
921,
7923,
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,
377,
1033,
17109,
6177,
12,
921,
1081,
13,
565,
288,
3639,
2029,
563,
273,
394,
2029,
12,
1345,
18,
12917,
16,
1171,
9079,
2029,
18,
2704,
780,
12,
1345,
18,
1985,
16,
315,
921,
7923,
1769,
... |
handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); | handleProblem( scope, IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); | protected ExpressionResult getExpressionResultType( Kind kind, IASTExpression lhs, IASTExpression rhs, IASTExpression thirdExpression, IASTTypeId typeId, String literal, ISymbol symbol) throws ASTSemanticException{ ExpressionResult result = null; TypeInfo info = new TypeInfo(); if( literal != null && !literal.equals("") ){ //$NON-NLS-1$ info.setDefault( literal ); } // types that resolve to void if ((kind == IASTExpression.Kind.PRIMARY_EMPTY) || (kind == IASTExpression.Kind.THROWEXPRESSION) || (kind == IASTExpression.Kind.POSTFIX_DOT_DESTRUCTOR) || (kind == IASTExpression.Kind.POSTFIX_ARROW_DESTRUCTOR) || (kind == IASTExpression.Kind.DELETE_CASTEXPRESSION) || (kind == IASTExpression.Kind.DELETE_VECTORCASTEXPRESSION) ){ info.setType(TypeInfo.t_void); result = new ExpressionResult(info); return result; } // types that resolve to int if ((kind == IASTExpression.Kind.PRIMARY_INTEGER_LITERAL) || (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT) ){ info.setType(TypeInfo.t_int); result = new ExpressionResult(info); return result; } // size of is always unsigned int if ((kind == IASTExpression.Kind.UNARY_SIZEOF_TYPEID) || (kind == IASTExpression.Kind.UNARY_SIZEOF_UNARYEXPRESSION) ){ info.setType(TypeInfo.t_int); info.setBit(true, TypeInfo.isUnsigned); result = new ExpressionResult(info); return result; } // types that resolve to char if( (kind == IASTExpression.Kind.PRIMARY_CHAR_LITERAL) || (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR)){ info.setType(TypeInfo.t_char); // check that this is really only one literal if(literal.length() > 1){ // this is a string info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); } result = new ExpressionResult(info); return result; } // types that resolve to string if (kind == IASTExpression.Kind.PRIMARY_STRING_LITERAL){ info.setType(TypeInfo.t_char); info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); result = new ExpressionResult(info); return result; } // types that resolve to float if( (kind == IASTExpression.Kind.PRIMARY_FLOAT_LITERAL) || (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT)){ info.setType(TypeInfo.t_float); result = new ExpressionResult(info); return result; } // types that resolve to double if( kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE){ info.setType(TypeInfo.t_double); result = new ExpressionResult(info); return result; } // types that resolve to wchar if(kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART){ info.setType(TypeInfo.t_wchar_t); result = new ExpressionResult(info); return result; } // types that resolve to bool if( (kind == IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL) || (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL) || (kind == IASTExpression.Kind.RELATIONAL_GREATERTHAN) || (kind == IASTExpression.Kind.RELATIONAL_GREATERTHANEQUALTO) || (kind == IASTExpression.Kind.RELATIONAL_LESSTHAN) || (kind == IASTExpression.Kind.RELATIONAL_LESSTHANEQUALTO) || (kind == IASTExpression.Kind.EQUALITY_EQUALS) || (kind == IASTExpression.Kind.EQUALITY_NOTEQUALS) || (kind == IASTExpression.Kind.LOGICALANDEXPRESSION) || (kind == IASTExpression.Kind.LOGICALOREXPRESSION) ) { info.setType(TypeInfo.t_bool); result = new ExpressionResult(info); return result; } // short added to a type if (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT ){ info = addToInfo((ASTExpression)lhs, true, TypeInfo.isShort); result = new ExpressionResult(info); return result; } // long added to a type if (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG ){ info = addToInfo((ASTExpression)lhs, true, TypeInfo.isLong); result = new ExpressionResult(info); return result; } // signed added to a type if (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED ){ info = addToInfo((ASTExpression)lhs, false, TypeInfo.isUnsigned); result = new ExpressionResult(info); return result; } // unsigned added to a type if (kind == IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED ){ info = addToInfo((ASTExpression)lhs, true, TypeInfo.isUnsigned); result = new ExpressionResult(info); return result; } // Id expressions resolve to t_type, symbol already looked up if( kind == IASTExpression.Kind.ID_EXPRESSION ) { info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); result = new ExpressionResult(info); if (symbol == null) result.setFailedToDereference(true); return result; } // an ampersand implies a pointer operation of type reference if (kind == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ ASTExpression left =(ASTExpression)lhs; if(left == null) handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); info = left.getResultType().getResult(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.addressof ); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // a star implies a pointer operation of type pointer if (kind == IASTExpression.Kind.UNARY_STAR_CASTEXPRESSION){ ASTExpression left =(ASTExpression)lhs; if(left == null) handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); info = left.getResultType().getResult(); if ((info != null)&& (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.indirection ); }else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // subscript if (kind == IASTExpression.Kind.POSTFIX_SUBSCRIPT){ ASTExpression left =(ASTExpression)lhs; if(left == null) handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); info = left.getResultType().getResult(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.subscript ); }else { handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); } result = new ExpressionResult(info); return result; } // the dot and the arrow resolves to the type of the member if ((kind == IASTExpression.Kind.POSTFIX_DOT_IDEXPRESSION) || (kind == IASTExpression.Kind.POSTFIX_ARROW_IDEXPRESSION) || (kind == IASTExpression.Kind.POSTFIX_DOT_TEMPL_IDEXPRESS) || (kind == IASTExpression.Kind.POSTFIX_ARROW_TEMPL_IDEXP) ){ if(symbol != null){ info = new TypeInfo(symbol.getTypeInfo()); } result = new ExpressionResult(info); return result; } // the dot* and the arrow* are the same as dot/arrow + unary star if ((kind == IASTExpression.Kind.PM_DOTSTAR) || (kind == IASTExpression.Kind.PM_ARROWSTAR) ){ ASTExpression right =(ASTExpression)rhs; if (right == null) handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); info = right.getResultType().getResult(); if ((info != null) && (symbol != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.indirection ); info.setTypeSymbol(symbol); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // this if (kind == IASTExpression.Kind.PRIMARY_THIS){ if(symbol != null) { info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // conditional if (kind == IASTExpression.Kind.CONDITIONALEXPRESSION){ ASTExpression right = (ASTExpression)rhs; ASTExpression third = (ASTExpression)thirdExpression; if((right != null ) && (third != null)){ TypeInfo rightType =right.getResultType().getResult(); TypeInfo thirdType =third.getResultType().getResult(); if((rightType != null) && (thirdType != null)){ info = conditionalExpressionConversions(rightType, thirdType); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // new if( ( kind == IASTExpression.Kind.NEW_TYPEID ) || ( kind == IASTExpression.Kind.NEW_NEWTYPEID ) ) { try { info = typeId.getTypeSymbol().getTypeInfo(); info.addPtrOperator( new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); } catch (ASTNotImplementedException e) { // will never happen } result = new ExpressionResult(info); return result; } // types that use the usual arithmetic conversions if((kind == IASTExpression.Kind.MULTIPLICATIVE_MULTIPLY) || (kind == IASTExpression.Kind.MULTIPLICATIVE_DIVIDE) || (kind == IASTExpression.Kind.MULTIPLICATIVE_MODULUS) || (kind == IASTExpression.Kind.ADDITIVE_PLUS) || (kind == IASTExpression.Kind.ADDITIVE_MINUS) || (kind == IASTExpression.Kind.ANDEXPRESSION) || (kind == IASTExpression.Kind.EXCLUSIVEOREXPRESSION) || (kind == IASTExpression.Kind.INCLUSIVEOREXPRESSION) ){ ASTExpression left = (ASTExpression)lhs; ASTExpression right = (ASTExpression)rhs; if((left != null ) && (right != null)){ TypeInfo leftType =left.getResultType().getResult(); TypeInfo rightType =right.getResultType().getResult(); info = usualArithmeticConversions(leftType, rightType); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // types that resolve to LHS types if ((kind == IASTExpression.Kind.PRIMARY_BRACKETED_EXPRESSION) || (kind == IASTExpression.Kind.POSTFIX_INCREMENT) || (kind == IASTExpression.Kind.POSTFIX_DECREMENT) || (kind == IASTExpression.Kind.POSTFIX_TYPEID_EXPRESSION) || (kind == IASTExpression.Kind.UNARY_INCREMENT) || (kind == IASTExpression.Kind.UNARY_DECREMENT) || (kind == IASTExpression.Kind.UNARY_PLUS_CASTEXPRESSION) || (kind == IASTExpression.Kind.UNARY_MINUS_CASTEXPRESSION) || (kind == IASTExpression.Kind.UNARY_NOT_CASTEXPRESSION) || (kind == IASTExpression.Kind.UNARY_TILDE_CASTEXPRESSION) || (kind == IASTExpression.Kind.SHIFT_LEFT) || (kind == IASTExpression.Kind.SHIFT_RIGHT) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_NORMAL) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_PLUS) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MINUS) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MULT) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_DIV) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MOD) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_LSHIFT) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_RSHIFT) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_AND) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_OR) || (kind == IASTExpression.Kind.ASSIGNMENTEXPRESSION_XOR) ){ ASTExpression left = (ASTExpression)lhs; if(left != null){ info =left.getResultType().getResult(); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; } // the cast changes the types to the type looked up in typeId = symbol if(( kind == IASTExpression.Kind.CASTEXPRESSION ) || ( kind == IASTExpression.Kind.POSTFIX_DYNAMIC_CAST ) || ( kind == IASTExpression.Kind.POSTFIX_STATIC_CAST ) || ( kind == IASTExpression.Kind.POSTFIX_REINTERPRET_CAST ) || ( kind == IASTExpression.Kind.POSTFIX_CONST_CAST ) ){ try{ info = new TypeInfo(typeId.getTypeSymbol().getTypeInfo()); }catch (ASTNotImplementedException e) { // will never happen } result = new ExpressionResult(info); return result; } // a list collects all types of left and right hand sides if(kind == IASTExpression.Kind.EXPRESSIONLIST){ result = new ExpressionResultList(); if(lhs != null){ TypeInfo leftType = ((ASTExpression)lhs).getResultType().getResult(); result.setResult(leftType); } if(rhs != null){ TypeInfo rightType = ((ASTExpression)rhs).getResultType().getResult(); result.setResult(rightType); } return result; } // a function call type is the return type of the function if(kind == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ if(symbol != null){ IParameterizedSymbol psymbol = (IParameterizedSymbol) symbol; ISymbol returnTypeSymbol = psymbol.getReturnType(); if(returnTypeSymbol != null){ info.setType(returnTypeSymbol.getType()); info.setTypeSymbol(returnTypeSymbol); }else { // this is call to a constructor } } result = new ExpressionResult(info); if(symbol == null) result.setFailedToDereference(true); return result; } // typeid if( kind == IASTExpression.Kind.POSTFIX_TYPEID_TYPEID ) { try { info = typeId.getTypeSymbol().getTypeInfo(); } catch (ASTNotImplementedException e) { // will not ever happen from within CompleteParseASTFactory } result = new ExpressionResult(info); return result; } // typename if ( ( kind == IASTExpression.Kind.POSTFIX_TYPENAME_IDENTIFIER ) || ( kind == IASTExpression.Kind.POSTFIX_TYPENAME_TEMPLATEID ) ) { if(symbol != null){ info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); } else handleProblem( IProblem.SEMANTIC_MALFORMED_EXPRESSION, null ); result = new ExpressionResult(info); return result; }// assert false : this; return null; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/024eca49581fcf338305dc1610be52c9bbb44581/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
5371,
1253,
16183,
1253,
559,
12,
1082,
202,
5677,
3846,
16,
467,
9053,
2300,
8499,
16,
1082,
202,
45,
9053,
2300,
7711,
16,
1082,
202,
45,
9053,
2300,
12126,
2300,
16,
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,
1117,
5371,
1253,
16183,
1253,
559,
12,
1082,
202,
5677,
3846,
16,
467,
9053,
2300,
8499,
16,
1082,
202,
45,
9053,
2300,
7711,
16,
1082,
202,
45,
9053,
2300,
12126,
2300,
16,
1082,
... |
if (interestingElement instanceof IMember && !interesting.getDegreeOfInterest().isPredicted()) { | if (interestingElement instanceof IMember && !interesting.getDegreeOfInterest().isPropagated()) { | private IJavaSearchScope createJavaSearchScope(IJavaElement element, int degreeOfSeparation) { List<IMylarContextNode> landmarks = MylarPlugin.getContextManager().getActiveLandmarks(); List<IMylarContextNode> interestingElements = MylarPlugin.getContextManager().getActiveContext().getInteresting(); Set<IJavaElement> searchElements = new HashSet<IJavaElement>(); int includeMask = IJavaSearchScope.SOURCES; if (degreeOfSeparation == 1) { for (IMylarContextNode landmark : landmarks) { IMylarStructureBridge sbridge = MylarPlugin.getDefault().getStructureBridge(landmark.getStructureKind()); Object o = sbridge.getObjectForHandle(landmark.getElementHandle()); if(o instanceof IJavaElement){ IJavaElement landmarkElement = (IJavaElement)o; if(landmarkElement.exists()){ if (landmarkElement instanceof IMember && !landmark.getDegreeOfInterest().isPredicted()) { searchElements.add(((IMember)landmarkElement).getCompilationUnit()); } else if (landmarkElement instanceof ICompilationUnit) { searchElements.add(landmarkElement); } } } } } else if (degreeOfSeparation == 2) { for (IMylarContextNode interesting : interestingElements) { IMylarStructureBridge sbridge = MylarPlugin.getDefault().getStructureBridge(interesting.getStructureKind()); Object o = sbridge.getObjectForHandle(interesting.getElementHandle()); if(o instanceof IJavaElement){ IJavaElement interestingElement = (IJavaElement)o; if(interestingElement.exists()){ if (interestingElement instanceof IMember && !interesting.getDegreeOfInterest().isPredicted()) { searchElements.add(((IMember)interestingElement).getCompilationUnit()); } else if (interestingElement instanceof ICompilationUnit) { searchElements.add(interestingElement); } } } } } else if (degreeOfSeparation == 3 || degreeOfSeparation == 4) { for (IMylarContextNode interesting : interestingElements) { IMylarStructureBridge sbridge = MylarPlugin.getDefault().getStructureBridge(interesting.getStructureKind()); Object o = sbridge.getObjectForHandle(interesting.getElementHandle()); IProject project = sbridge.getProjectForObject(o);// TODO what to do when the element is not a java element, how determine if a javaProject? if(project != null && JavaProject.hasJavaNature(project) && project.exists()){ IJavaProject javaProject = JavaCore.create(project);//((IJavaElement)o).getJavaProject(); if (javaProject != null && javaProject.exists()) searchElements.add(javaProject); } } if (degreeOfSeparation == 4) { includeMask = IJavaSearchScope.SOURCES | IJavaSearchScope.APPLICATION_LIBRARIES | IJavaSearchScope.SYSTEM_LIBRARIES; } } else if (degreeOfSeparation == 5) { return SearchEngine.createWorkspaceScope(); } if (searchElements.size() == 0) { return null; } else { IJavaElement[] elements = new IJavaElement[searchElements.size()]; int j = 0; for (IJavaElement searchElement : searchElements) { elements[j] = searchElement; j++; } return SearchEngine.createJavaSearchScope(elements, includeMask); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/445fedc3ab7cc6dffda95f99364a2472c883e28c/AbstractJavaRelationshipProvider.java/buggy/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/search/AbstractJavaRelationshipProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
5852,
2979,
3876,
752,
5852,
2979,
3876,
12,
45,
5852,
1046,
930,
16,
509,
10782,
951,
5097,
4302,
13,
288,
3639,
987,
32,
3445,
93,
7901,
1042,
907,
34,
19193,
17439,
273,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
5852,
2979,
3876,
752,
5852,
2979,
3876,
12,
45,
5852,
1046,
930,
16,
509,
10782,
951,
5097,
4302,
13,
288,
3639,
987,
32,
3445,
93,
7901,
1042,
907,
34,
19193,
17439,
273,
8... |
public void stop() { //System.out.println(); //System.out.println("PdeRuntime.stop()"); // check for null in case stop is called during compilation if (applet != null) { applet.stop(); //if (window != null) window.hide(); // above avoids NullPointerExceptions // but still threading is too complex, and so // some boogers are being left behind applet = null; //window = null; } else if (process != null) { // running externally //System.out.println("killing external process"); try { //System.out.println("writing to stop process"); processOutput.write('s'); //System.out.println("written"); processOutput.flush(); //System.out.println("flushing"); } catch (IOException e) { //System.err.println("error stopping external applet"); //e.printStackTrace(); close(); } //System.out.println("out"); } } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/e5ddce227179b3b4a2274fa37451b833b05e99c7/PdeRuntime.java/clean/app/PdeRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5681,
1435,
95,
759,
3163,
18,
659,
18,
8222,
5621,
759,
3163,
18,
659,
18,
8222,
2932,
52,
323,
5576,
18,
5681,
1435,
8863,
759,
1893,
1884,
2011,
267,
6349,
395,
556,
291,
771,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5681,
1435,
95,
759,
3163,
18,
659,
18,
8222,
5621,
759,
3163,
18,
659,
18,
8222,
2932,
52,
323,
5576,
18,
5681,
1435,
8863,
759,
1893,
1884,
2011,
267,
6349,
395,
556,
291,
771,... | ||
public org.quickfix.field.QuoteRespID getQuoteRespID() throws FieldNotFound { org.quickfix.field.QuoteRespID value = new org.quickfix.field.QuoteRespID(); | public quickfix.field.QuoteRespID getQuoteRespID() throws FieldNotFound { quickfix.field.QuoteRespID value = new quickfix.field.QuoteRespID(); | public org.quickfix.field.QuoteRespID getQuoteRespID() throws FieldNotFound { org.quickfix.field.QuoteRespID value = new org.quickfix.field.QuoteRespID(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusReport.java/clean/src/java/src/quickfix/fix44/QuoteStatusReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
9732,
734,
336,
10257,
9732,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
9732,
734,
460,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
9732,
734,
336,
10257,
9732,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10257,
9732,
734,
460,
273,
394,
... |
if (newMod == rQFileLastMod) { if (log.isDebugEnabled()) { log.debug("Not re-reading unmodified " + RecipeComponent.RECIPE_QUERY_FILE); | if (availQueries == null || newMod != rQFileLastMod) { availQueries = new HashSet(); rQFileLastMod = 0l; DBProperties dbp = null; try { dbp = DBProperties.readQueryFile(PDbBase.QUERY_FILE); } catch (IOException ioe) { if (log.isDebugEnabled()) { log.debug("Couldn't read " + PDbBase.QUERY_FILE); } | private static Set getAvailableQueries() { Logger log = CSMART.createLogger("org.cougaar.tools.csmart.recipe.RecipeQueryProperty"); Set returnQ = new HashSet(); // list to return // Read PopDB for recipe queries exactly once if (popDBQueries == null) { try { popDBQueries = new HashSet(); // Get the base queries for (Iterator i = DBProperties.readQueryFile(PDbBase.QUERY_FILE).keySet().iterator(); i.hasNext(); ) { String s = i.next().toString(); if (s.startsWith("recipeQuery")) popDBQueries.add(new StringRange(s)); } } catch (IOException ioe) { if(log.isErrorEnabled()) { log.error("Exception", ioe); } popDBQueries = Collections.EMPTY_SET; } } // The returned list includes at least those from popDB returnQ.addAll(popDBQueries); // Get the last modified date of the recipeQueries file. // If it's the same now as it was before, dont re-read File rqfile = ConfigFinder.getInstance().locateFile(RecipeComponent.RECIPE_QUERY_FILE); long newMod = 0l; if (rqfile != null) { try { newMod = rqfile.lastModified(); } catch (SecurityException se) { } } // If file wasnt modified, use what we have if (newMod == rQFileLastMod) { if (log.isDebugEnabled()) { log.debug("Not re-reading unmodified " + RecipeComponent.RECIPE_QUERY_FILE); } if (recipeQQueries != null) returnQ.addAll(recipeQQueries); return returnQ; } // If we get here, we're going to re-parse the recipeQueries.q file if (recipeQQueries == null) recipeQQueries = new HashSet(); else recipeQQueries.clear(); // (Re-)read recipeQueries.q, allowing user to edit the query names there try { // FIXME: Note that cause DBProperties is caching, // Old query names will remain, // until we have a real reRead method in DBProperties // Must reRead -- calling addQueryFile effectively handles adding additional // queries, but not removing (renaming) queries // Alternatively, have a reRead method in DBProperties DBProperties dbp = DBProperties.readQueryFile(RecipeComponent.RECIPE_QUERY_FILE); dbp.addQueryFile(RecipeComponent.RECIPE_QUERY_FILE); // Only reset lastmod timestamp after succesfully reparsing rQFileLastMod = newMod; for (Iterator i = dbp.keySet().iterator(); i.hasNext(); ) { String s = i.next().toString(); if (s.startsWith("recipeQuery")) { // Add only if not already present if (! recipeQQueries.contains(new StringRange(s))) recipeQQueries.add(new StringRange(s)); } } } catch (FileNotFoundException e) { // this is normal if a user has no separate recipe query file. if (log.isDebugEnabled()) { log.debug("No " + RecipeComponent.RECIPE_QUERY_FILE + " to parse."); } } catch (IOException ioe) { if(log.isErrorEnabled()) { log.error("Exception", ioe); } } returnQ.addAll(recipeQQueries); return returnQ; } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/0abfdf69cb3dec84e6fe4050cd6ecd593422fa01/RecipeQueryProperty.java/clean/csmart/src/org/cougaar/tools/csmart/recipe/RecipeQueryProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1000,
15796,
9592,
1435,
288,
565,
4242,
613,
273,
6761,
49,
4928,
18,
2640,
3328,
2932,
3341,
18,
2894,
637,
69,
297,
18,
6642,
18,
2143,
81,
485,
18,
3927,
3151,
18,
5650,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1000,
15796,
9592,
1435,
288,
565,
4242,
613,
273,
6761,
49,
4928,
18,
2640,
3328,
2932,
3341,
18,
2894,
637,
69,
297,
18,
6642,
18,
2143,
81,
485,
18,
3927,
3151,
18,
5650,
... |
synchronized(window) { try { window.wait(); } catch(final InterruptedException ix) { throw new BrowserException("", ix); } | synchronized (window) { try { window.wait(); } catch (final InterruptedException ix) { throw new BrowserException("", ix); } | private void openWindow(final String title, final Avatar avatar) { window = new ProfileManagerWindow(); window.addWindowListener(new WindowAdapter() { public void windowClosed(final WindowEvent e) { synchronized(window) { window.notifyAll(); } } }); try { SwingUtilities.invokeAndWait(new Runnable() { public void run() { window.open(title, avatar); } }); } catch(final InterruptedException ix) { throw new BrowserException("", ix); } catch(final InvocationTargetException itx) { throw new BrowserException("", itx); } synchronized(window) { try { window.wait(); } catch(final InterruptedException ix) { throw new BrowserException("", ix); } } } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b48d5f12cfbd55a079090b6bb3853ec3e1ca1f28/ProfileManager.java/clean/local/browser/src/main/java/com/thinkparity/ophelia/browser/profile/ProfileManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1696,
3829,
12,
6385,
514,
2077,
16,
727,
8789,
8761,
16910,
13,
288,
3639,
2742,
273,
394,
11357,
1318,
3829,
5621,
3639,
2742,
18,
1289,
3829,
2223,
12,
2704,
6076,
4216,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
3829,
12,
6385,
514,
2077,
16,
727,
8789,
8761,
16910,
13,
288,
3639,
2742,
273,
394,
11357,
1318,
3829,
5621,
3639,
2742,
18,
1289,
3829,
2223,
12,
2704,
6076,
4216,
143... |
int SW_WIDTH = 1 << LG_STACKWORD_WIDTH; | private void restoreValuesFromOptSaveVolatile(byte[] stack, int osrFPoff, OSR_TempRegisters registers, int regmap, VM_CompiledMethod cm) { VM_OptCompiledMethod tsfromCM = (VM_OptCompiledMethod)cm; int nvArea = osrFPoff + tsfromCM.getUnsignedNonVolatileOffset(); // stack word width in bytes. int SW_WIDTH = 1 << LG_STACKWORD_WIDTH; WordArray gprs = registers.gprs; double[] fprs = registers.fprs; // temporarialy hold ct, xer, ctr register int cr = 0; int xer = 0; int ctr = 0; // enter critical section // precall methods potientially causing dynamic compilation int firstGPR = tsfromCM.getFirstNonVolatileGPR(); VM.disableGC(); // recover volatile GPRs. int lastVoffset = nvArea; for (int i=LAST_SCRATCH_GPR; i >= FIRST_VOLATILE_GPR; i--) { lastVoffset -= SW_WIDTH; gprs.set(i, VM_Magic.objectAsAddress(stack).add(lastVoffset).loadWord()); } // recover nonvolatile GPRs if (firstGPR != -1) { for (int i=firstGPR; i<=LAST_NONVOLATILE_GPR; i++) { gprs.set(i, VM_Magic.objectAsAddress(stack).add(nvArea).loadWord()); nvArea += SW_WIDTH; } } // recover CR, XER, and CTR cr = VM_Magic.getIntAtOffset(stack, nvArea); nvArea += SW_WIDTH; xer = VM_Magic.getIntAtOffset(stack, nvArea); nvArea += SW_WIDTH; ctr = VM_Magic.getIntAtOffset(stack, nvArea); nvArea += SW_WIDTH; /* // it should be aligned ready // it may have a padding before FPRs. int offset = nvArea - osrFPoff; offset = (offset + SW_WIDTH) & ~SW_WIDTH; nvArea = osrFPoff + offset; */ // recover all volatile FPRs for (int i=FIRST_SCRATCH_FPR; i <= LAST_VOLATILE_FPR; i++) { long lbits = VM_Magic.getLongAtOffset(stack, nvArea); fprs[i] = VM_Magic.longBitsAsDouble(lbits); nvArea += 2*SW_WIDTH; } // convert addresses in registers to references for (int i=1; i<NUM_GPRS; i++) { if (OSR_EncodedOSRMap.registerIsSet(regmap, i)) { registers.objs[i] = VM_Magic.addressAsObject(registers.gprs.get(i).toAddress()); } } VM.enableGC(); registers.cr = cr; registers.xer = xer; registers.ctr = ctr; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/5a52d97607a6c66ba42db666fc0f8b7bbcc685b9/OSR_OptExecStateExtractor.java/buggy/rvm/src/vm/arch/powerPC/executionState/OSR_OptExecStateExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
5217,
1972,
1265,
6179,
4755,
17431,
20295,
12,
7229,
8526,
2110,
16,
4766,
7734,
509,
1140,
86,
30246,
3674,
16,
4766,
7734,
5932,
54,
67,
7185,
10277,
10285,
16,
4766,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5217,
1972,
1265,
6179,
4755,
17431,
20295,
12,
7229,
8526,
2110,
16,
4766,
7734,
509,
1140,
86,
30246,
3674,
16,
4766,
7734,
5932,
54,
67,
7185,
10277,
10285,
16,
4766,
7734,
... | |
0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, | 0, 75, 273, 423, 75, 659, 659, 659, 422, 0, 0, 667, 0, 86, 473, 422, 0, 0, 279, 92, 131, 75, 667, 667, 83, 131, 131, 131, 131, 91, 0, 0, 0, 92, 0, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 0, 0, 0, 280, 0, 0, 0, 0, 208, 0, 0, 677, 0, 0, 0, 0, 473, 84, 0, 95, 0, 0, 0, 473, 0, 0, 0, 0, 473, 0, 704, 0, 708, 791, 581, 0, 0, 91, 0, 0, 0, 0, 581, 0, 86, 0, 0, 473, 0, 0, 0, 84, 91, 91, 91, 79, 92, 0, 85, 476, 0, 0, 84, 0, 92, 0, 92, 92, 95, 84, 0, 208, 0, 0, 0, 0, 0, 0, 719, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 726, 742, 0, 0, 729, 0, 91, 91, 730, 0, 278, 0, 0, 476, 0, 0, 92, 278, 0, 613, 476, 0, 473, 0, 34, 472, 412, 91, 0, 0, 0, 92, 92, 92, 0, 0, 412, 659, 79, 0, 0, 85, 34, 0, 476, 0, 81, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 80, 0, 0, 0, | private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 814, 190, 190, 591, 601, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 782, 552, 234, 234, 216, 283, 284, 190, 253, 617, 274, 356, 249, 461, 732, 652, 265, 466, 492, 109, 109, 551, 300, 442, 281, 291, 275, 435, 337, 109, 362, 492, 337, 442, 190, 660, 661, 422, 62, 588, 221, 215, 218, 617, 423, 424, 783, 217, 786, 492, 469, 387, 382, 217, 606, 353, 244, 441, 60, 362, 362, 248, 393, 342, 394, 362, 109, 444, 253, 285, 79, 79, 110, 110, 353, 69, 79, 210, 210, 210, 492, 492, 225, 210, 210, 354, 492, 210, 235, 235, 455, 247, 235, 455, 210, 69, 492, 70, 309, 363, 221, 442, 455, 656, 247, 109, 649, 216, 492, 71, 338, 470, 387, 535, 338, 79, 210, 210, 253, 279, 360, 210, 269, 492, 361, 216, 61, 324, 230, 492, 492, 326, 327, 261, 657, 447, 782, 366, 308, 492, 262, 579, 264, 394, 89, 492, 492, 363, 363, 456, 457, 458, 456, 457, 460, 598, 217, 492, 279, 230, 40, 456, 457, 462, 260, 261, 492, 564, 356, 392, 455, 291, 492, 210, 217, 79, 684, 438, 87, 440, 190, 391, 856, 64, 234, 234, 284, 308, 653, 492, 716, 40, 89, 89, 217, 256, 691, 234, 67, 234, 234, 441, 264, 64, 239, 369, 239, 420, 65, 237, 771, 237, 237, 55, 492, 492, 356, 356, 67, 335, 240, 439, 240, 240, 487, 273, 87, 87, 65, 456, 457, 465, 265, 295, 307, 308, 242, 345, 492, 243, 391, 391, 391, 387, 363, 402, 346, 221, 343, 297, 441, 492, 762, 397, 398, 344, 487, 766, 481, 278, 481, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 81, 623, 0, 0, 0, 0, 78, 0, 270, 78, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 0, 78, 0, 644, 790, 0, 616, 0, 84, 644, 163, 0, 0, 163, 163, 163, 0, 0, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 95, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 678, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 508, 509, 473, 0, 510, 0, 0, 0, 0, 0, 0, 160, 473, 161, 162, 472, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 309, 473, 175, 176, 473, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 322, 323, 473, 473, 0, 86, 95, 473, 0, 95, 95, 95, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 96, 0, 0, 309, 0, 0, 0, 0, 314, 315, 0, 412, 0, 473, 0, 473, 0, 0, 412, 322, 323, 0, 0, 95, 0, 0, 0, 0, 95, 95, 95, 95, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 473, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 96, 0, 0, 96, 96, 96, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 476, 96, 0, 476, 0, 0, 96, 96, 96, 96, 0, 0, 0, 0, 0, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 513, 514, 274, 0, 515, 0, 0, 0, 0, 0, 0, 160, 274, 161, 162, 476, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 175, 176, 274, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 274, 274, 0, 0, 0, 274, 520, 509, 0, 0, 521, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 274, 0, 274, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 608, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 274, 334, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 324, 477, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 547, 514, 477, 477, 548, 0, 0, 477, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 477, 0, 477, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 478, 186, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 478, 169, 0, 478, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 478, 478, 0, 175, 176, 478, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 0, 0, 0, 478, 0, 478, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 655, 0, 0, 0, 478, 334, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 324, 350, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 602, 509, 350, 350, 603, 0, 0, 350, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 492, 186, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 604, 514, 0, 0, 605, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 492, 169, 0, 492, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 175, 176, 492, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 645, 509, 0, 0, 646, 0, 0, 0, 492, 0, 492, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647, 514, 0, 0, 648, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 278, 167, 168, 278, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 857, 509, 0, 0, 858, 0, 0, 0, 278, 0, 278, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 286, 170, 171, 172, 173, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 859, 514, 0, 0, 860, 0, 286, 0, 0, 286, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 286, 286, 169, 0, 0, 286, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 286, 186, 286, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 0, 251, 251, 251, 286, 251, 286, 251, 286, 251, 286, 286, 286, 286, 286, 286, 286, 251, 286, 472, 251, 251, 251, 251, 251, 251, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 76, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 472, 0, 84, 0, 472, 309, 310, 311, 312, 313, 314, 315, 0, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 309, 333, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 322, 323, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 0, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 86, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... |
for (int i = 0; i < sibs.length; i++) { iter = children.iterator(); int noSibs = 0; while (iter.hasNext()) { Runner child = (Runner) iter.next(); User user = child.getUser(); if (user != null && sibs[i] != null && sibs[i].contains(user)) { ++noSibs; } } if (noSibs > numberOfSiblings) { numberOfSiblings = noSibs; | Collection values = childCounter.values(); if (values != null && !values.isEmpty()) { Iterator viter = values.iterator(); Integer val = (Integer) viter.next(); numberOfSiblings = val.intValue(); while (viter.hasNext()) { val = (Integer) viter.next(); numberOfSiblings = Math.max(numberOfSiblings, val.intValue()); | public int getNumberOfSiblings(Collection children) throws RemoteException { int numberOfSiblings = 0; Collection[] sibs = new ArrayList[children.size()]; Iterator iter = children.iterator(); int counter = 0; // Making sure I check all the children, since not all may be siblings while (iter.hasNext()) { Runner child = (Runner) iter.next(); try { User user = child.getUser(); if (user != null) { Collection siblings = getFamilyLogic().getSiblingsFor(user); if (!siblings.contains(user)) { siblings.add(user); } sibs[counter] = siblings; } } catch (NoSiblingFound e) { e.printStackTrace(); } ++counter; } for (int i = 0; i < sibs.length; i++) { iter = children.iterator(); int noSibs = 0; while (iter.hasNext()) { Runner child = (Runner) iter.next(); User user = child.getUser(); if (user != null && sibs[i] != null && sibs[i].contains(user)) { ++noSibs; } } if (noSibs > numberOfSiblings) { numberOfSiblings = noSibs; } } return numberOfSiblings; } | 14024 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14024/96772c5a5f0d6eef4a74b7fe4507e4b9ff79c127/RunBusinessBean.java/clean/src/java/is/idega/idegaweb/marathon/business/RunBusinessBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14981,
31555,
12,
2532,
2325,
13,
1216,
18361,
288,
202,
202,
474,
7922,
31555,
273,
374,
31,
9506,
202,
2532,
8526,
12092,
87,
273,
394,
2407,
63,
5906,
18,
1467,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
14981,
31555,
12,
2532,
2325,
13,
1216,
18361,
288,
202,
202,
474,
7922,
31555,
273,
374,
31,
9506,
202,
2532,
8526,
12092,
87,
273,
394,
2407,
63,
5906,
18,
1467,
1435,
... |
source.sendAsync(toSend); | source.sendAsync(toSend, null); | private void finish() { Message toSend = null; synchronized(this) { // REDFLAG do not use synch(this) for any other purpose! if(!canCommit) return; if(!prb.allReceived()) return; try { CHKBlock block = new CHKBlock(prb.getBlock(), headers, key); node.store(block); } catch (CHKVerifyException e) { Logger.error(this, "Verify failed in InsertHandler: "+e+" - headers: "+HexUtil.bytesToHex(headers), e); toSend = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_VERIFY_FAILED); } } if(toSend != null) { try { source.sendAsync(toSend); } catch (NotConnectedException e) { // :( Logger.minor(this, "Lost connection in "+this+" when sending FNPDataInsertRejected"); } } else { // Succeeded! Yay! Message msg = DMT.createFNPInsertReply(uid); try { source.send(msg); } catch (NotConnectedException e) { // Ugh Logger.normal(this, "Finished InsertHandler but can't tell original node!: "+e); } } } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/f48ad5c9057903788f63aaa8ccd26e567faf4317/InsertHandler.java/buggy/src/freenet/node/InsertHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4076,
1435,
288,
3639,
2350,
358,
3826,
273,
446,
31,
3639,
3852,
12,
2211,
13,
288,
368,
14411,
9651,
741,
486,
999,
272,
2515,
12,
2211,
13,
364,
1281,
1308,
13115,
5,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4076,
1435,
288,
3639,
2350,
358,
3826,
273,
446,
31,
3639,
3852,
12,
2211,
13,
288,
368,
14411,
9651,
741,
486,
999,
272,
2515,
12,
2211,
13,
364,
1281,
1308,
13115,
5,
5411... |
String[] excludes = (String[]) getDefaultExcludes().toArray( EMPTY_STRING_ARRAY ); warArchiver.addDirectory( new File( webappDirectory ), null, excludes ); | warArchiver.addDirectory( webappDirectory, getIncludes(), getExcludes() ); | private void performPackaging( File warFile ) throws IOException, ArchiverException, ManifestException, DependencyResolutionRequiredException { if ( "inplace".equals( mode ) ) { generateInPlaceWebapp(); } else { generateExplodedWebapp(); if ( !"exploded".equals( mode ) ) { //generate war file getLog().info( "Generating war " + warFile.getAbsolutePath() ); MavenArchiver archiver = new MavenArchiver(); WarArchiver warArchiver = new WarArchiver(); archiver.setArchiver( warArchiver ); archiver.setOutputFile( warFile ); String[] excludes = (String[]) getDefaultExcludes().toArray( EMPTY_STRING_ARRAY ); warArchiver.addDirectory( new File( webappDirectory ), null, excludes ); warArchiver.setWebxml( new File( webappDirectory, "WEB-INF/web.xml" ) ); // create archive archiver.createArchive( project, archive ); project.getArtifact().setFile( warFile ); } } } | 7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/1b086e4ccadda2805cdf19f67be2daf1471e1a02/WarMojo.java/clean/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3073,
4420,
5755,
12,
1387,
21983,
812,
262,
3639,
1216,
1860,
16,
16959,
1667,
503,
16,
15443,
503,
16,
11993,
11098,
29780,
565,
288,
3639,
309,
261,
315,
267,
964,
9654,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
4420,
5755,
12,
1387,
21983,
812,
262,
3639,
1216,
1860,
16,
16959,
1667,
503,
16,
15443,
503,
16,
11993,
11098,
29780,
565,
288,
3639,
309,
261,
315,
267,
964,
9654,
149... |
UmlModelEventPump.getPump().removeModelEventListener(this, (MBase) state.getEntry()); | UmlModelEventPump.getPump() .removeModelEventListener(this, (MBase) state.getEntry()); | protected void updateListeners(Object newOwner) { super.updateListeners(newOwner); if (newOwner != null) { // register for events from all internal transitions MState state = (MState) newOwner; Iterator it = state.getInternalTransitions().iterator(); while (it.hasNext()) { UmlModelEventPump.getPump().addModelEventListener(this, (MBase) it.next()); } // register for the doactivity etc. if (state.getDoActivity() != null) { UmlModelEventPump.getPump().addModelEventListener(this, (MBase) state.getDoActivity()); } if (state.getEntry() != null) { UmlModelEventPump.getPump().addModelEventListener(this, (MBase) state.getEntry()); } if (state.getExit() != null) { UmlModelEventPump.getPump().addModelEventListener(this, (MBase) state.getExit()); } } else { // lets remove all registrations // since this is called BEFORE the owner is changed (I hope nobody is going to change that...) // the owner is the oldOwner MState state = (MState) getOwner(); if (state != null) { Iterator it = state.getInternalTransitions().iterator(); while (it.hasNext()) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase) it.next()); } if (state.getDoActivity() != null) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase) state.getDoActivity()); } if (state.getEntry() != null) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase) state.getEntry()); } if (state.getExit() != null) { UmlModelEventPump.getPump().removeModelEventListener(this, (MBase) state.getExit()); } } } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/FigState.java/buggy/src_new/org/argouml/uml/diagram/state/ui/FigState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
5583,
12,
921,
394,
5541,
13,
288,
3639,
2240,
18,
2725,
5583,
12,
2704,
5541,
1769,
3639,
309,
261,
2704,
5541,
480,
446,
13,
288,
5411,
368,
1744,
364,
2641,
628,
777... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
5583,
12,
921,
394,
5541,
13,
288,
3639,
2240,
18,
2725,
5583,
12,
2704,
5541,
1769,
3639,
309,
261,
2704,
5541,
480,
446,
13,
288,
5411,
368,
1744,
364,
2641,
628,
777... |
Map options = DefaultCodeFormatterConstants.getDefaultSettings(); | Map options = DefaultCodeFormatterConstants.getEclipse21Settings(); | public void test416() { Map options = DefaultCodeFormatterConstants.getDefaultSettings(); DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); preferences.blank_lines_between_type_declarations = 1; DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test416", "A.java", CodeFormatter.K_COMPILATION_UNIT);//$NON-NLS-1$ //$NON-NLS-2$ } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/18d1b818e2c1363e3c9436625e46da37b9994fdc/FormatterRegressionTests.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
24,
2313,
1435,
288,
202,
202,
863,
702,
273,
2989,
1085,
5074,
2918,
18,
588,
1868,
2628,
5621,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
24,
2313,
1435,
288,
202,
202,
863,
702,
273,
2989,
1085,
5074,
2918,
18,
588,
1868,
2628,
5621,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
... |
mywin.add(seqno, msg, (Vector)senders.clone()); | senders.addElement(sender1); senders.addElement(sender2); senders.addElement(sender3); | public void testRemove() { AckMcastSenderWindow mywin=new AckMcastSenderWindow(new MyCommand(), new long[]{1000,2000,3000}); Address sender1=new IpAddress("127.0.0.1", 10000); Address sender2=new IpAddress("127.0.0.1", 10001); Address sender3=new IpAddress("127.0.0.1", 10002); Vector senders=new Vector(); Message msg=new Message(); long seqno=322649; senders.addElement(sender1); senders.addElement(sender2); senders.addElement(sender3); mywin.add(seqno, msg, (Vector)senders.clone()); // clone() for the fun of it... mywin.ack(seqno, sender1); mywin.ack(seqno, sender2); System.out.println("entry is " + mywin.printDetails(seqno)); assertTrue(mywin.getNumberOfResponsesExpected(seqno) == 3); assertTrue(mywin.getNumberOfResponsesReceived(seqno) == 2); mywin.waitUntilAllAcksReceived(4000); mywin.suspect(sender3); assertTrue(mywin.size() == 0); // because suspect() removed that entry } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/d87286058cfcbdd88699897608edd017b16ae389/AckMcastSenderWindowTest.java/clean/tests/junit/org/jgroups/tests/AckMcastSenderWindowTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3288,
1435,
288,
202,
11931,
49,
4155,
12021,
3829,
3399,
8082,
33,
2704,
22322,
49,
4155,
12021,
3829,
12,
2704,
8005,
2189,
9334,
394,
1525,
63,
7073,
18088,
16,
17172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3288,
1435,
288,
202,
11931,
49,
4155,
12021,
3829,
3399,
8082,
33,
2704,
22322,
49,
4155,
12021,
3829,
12,
2704,
8005,
2189,
9334,
394,
1525,
63,
7073,
18088,
16,
17172,
... |
result.append(xmlDataBlock.getProcessedDataValue("navCurrent", this, userObject)); } else { result.append(xmlDataBlock.getProcessedDataValue("navEntry", this, userObject)); } depth--; if (depth>=0) { if (navLink[i].endsWith("/")) { 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(buildNavTree(cms,xmlDataBlock,userObject,all,requestedUri,currentFolder,servletPath,level,depth)); } } } result.append(xmlDataBlock.getProcessedDataValue("navTreeEnd", this, userObject)); | result.append(template.getProcessedDataValue("navcurrent", this, userObject)); } else { result.append(template.getProcessedDataValue("naventry", this, userObject)); } depth--; if (depthIsNull || (depthIsNull==false && depth>=0)) { if (navLink[i].endsWith("/")) { 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(buildNavTree(cms,template,userObject,all,requestedUri,currentFolder,servletPath,level,depth,depthIsNull)); } } } result.append(template.getProcessedDataValue("navend", this, userObject)); | protected String buildNavTree(CmsObject cms, CmsXmlTemplateFile xmlDataBlock, Object userObject, Vector resources, String requestedUri, String currentFolder, String servletPath,int level,int depth) throws CmsException { 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. String link=""; if (navLink[i].endsWith("/")) { String navIndex=cms.readProperty(navLink[i],C_PROPERTY_NAVINDEX); if (navIndex==null || (navIndex!=null && navIndex.equals(""))) { navIndex=C_NAVINDEX; } try { cms.readFile(navLink[i] + navIndex); link=navLink[i] + navIndex; xmlDataBlock.setData("navLink", servletPath + navLink[i] + navIndex ); } catch (CmsException e) { link=requestedUri; xmlDataBlock.setData("navLink", servletPath + requestedUri ); } } else { try { cms.readFile(navLink[i]); link=navLink[i]; xmlDataBlock.setData("navLink", servletPath + navLink[i] ); } catch (CmsException e) { link=requestedUri; xmlDataBlock.setData("navLink", servletPath + requestedUri ); } } // Check if nav is current nav //if (navLink[i].equals(currentFolder) || navLink[i].equals(requestedUri)) { if (link.equals(requestedUri)) { result.append(xmlDataBlock.getProcessedDataValue("navCurrent", this, userObject)); } else { result.append(xmlDataBlock.getProcessedDataValue("navEntry", this, userObject)); } // choose only folders. depth--; if (depth>=0) { if (navLink[i].endsWith("/")) { 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(buildNavTree(cms,xmlDataBlock,userObject,all,requestedUri,currentFolder,servletPath,level,depth)); } } } 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,
2471,
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,
8100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2471,
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,
8100... |
String sElement = strtok.nextToken( ).trim( ); if ( sElement.startsWith( "H" ) ) { StringTokenizer strStockTokenizer = new StringTokenizer( sElement ); sbNewRepresentation.append( strStockTokenizer.nextToken( ) .trim( ) .substring( 1 ) ); } else { sbNewRepresentation.append( sElement ); } sbNewRepresentation.append( "," ); | OrthogonalSampleData osd = (OrthogonalSampleData) osdList.get( i ); osd.setDataSetRepresentation( ChartUIUtil.getConvertedSampleDataRepresentation( (AxisType) axisTypes.get( i ), osd.getDataSetRepresentation( ) ) ); vNewOrthogonalSampleData.add( osd ); | private String getConvertedOrthogonalSampleDataRepresentation( String sOldRepresentation ) { StringTokenizer strtok = new StringTokenizer( sOldRepresentation, "," ); //$NON-NLS-1$ StringBuffer sbNewRepresentation = new StringBuffer( "" ); //$NON-NLS-1$ while ( strtok.hasMoreTokens( ) ) { String sElement = strtok.nextToken( ).trim( ); if ( sElement.startsWith( "H" ) ) //$NON-NLS-1$ // Orthogonal sample data is for // a stock chart (Orthogonal // sample data CANNOT // be text { StringTokenizer strStockTokenizer = new StringTokenizer( sElement ); sbNewRepresentation.append( strStockTokenizer.nextToken( ) .trim( ) .substring( 1 ) ); } else { sbNewRepresentation.append( sElement ); } sbNewRepresentation.append( "," ); //$NON-NLS-1$ } return sbNewRepresentation.toString( ).substring( 0, sbNewRepresentation.length( ) - 1 ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/51342f37efb819d66eb6bfa56ebaba4fb7f4fa8b/AreaChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
336,
22063,
1162,
451,
28396,
8504,
751,
13742,
12,
1082,
202,
780,
272,
7617,
13742,
262,
202,
95,
202,
202,
780,
10524,
609,
17692,
273,
394,
16370,
12,
272,
7617,
13742... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
336,
22063,
1162,
451,
28396,
8504,
751,
13742,
12,
1082,
202,
780,
272,
7617,
13742,
262,
202,
95,
202,
202,
780,
10524,
609,
17692,
273,
394,
16370,
12,
272,
7617,
13742... |
fw.write("typedef struct __" + current.getIdent() + " {\n"); for (int j = 0; j < current.getFields().length; j++) { fw.write("\t" + current.getFields()[j].getType() + " " + current.getFields()[j].getVariable().getIdent() + ";\n"); } fw.write("} " + current.getIdent() + ";\n"); | fw.write(at.dms.kjc.common.CommonUtils.structToTypedef(current,true)); fw.write("\n"); | private void createStructureDefs(SIRStructure[] structs, FileWriter fw) throws Exception { fw.write("#ifndef __STRUCTS_H\n"); fw.write("#define __STRUCTS_H\n"); for (int i = 0; i < structs.length; i++) { SIRStructure current = structs[i]; fw.write("typedef struct __" + current.getIdent() + " {\n"); for (int j = 0; j < current.getFields().length; j++) { fw.write("\t" + current.getFields()[j].getType() + " " + current.getFields()[j].getVariable().getIdent() + ";\n"); } fw.write("} " + current.getIdent() + ";\n"); //write the defs for the push/pop functions if (!KjcOptions.standalone && passedTypes.contains(current)) { fw.write("inline void push" + current.getIdent() + "(" + current.getIdent() + "*);\n"); fw.write("inline " + current.getIdent() + " pop" + current.getIdent() + "();\n"); fw.write("inline void " + CommonConstants.structReceiveMethodPrefix + current.getIdent() + "(" + current.getIdent() + "*);\n\n"); } } /* RMR { moved typedef outside of loop */ // FIXME put in kluge for 'bit' We do not have bit handling so // bit is defined here as 'unsigned char' // Further kluge: until can figure out how to get cluster to expand // from unsigned byte to integer we just use integer! // fw.write("typedef unsigned char bit;\n"); fw.write("typedef int bit;\n"); /* } RMR */ fw.write("#ifndef round\n#define round(x) (floor((x)+0.5))\n#endif\n"); fw.write("#endif // __STRUCTS_H\n"); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/ce4c19fb48e5d8b4c121dd47738cd6d9fcc38f29/StructureIncludeFile.java/clean/streams/src/at/dms/kjc/common/StructureIncludeFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
6999,
14554,
12,
2320,
54,
6999,
8526,
8179,
16,
4766,
1377,
24639,
7600,
13,
1216,
1185,
565,
288,
3639,
7600,
18,
2626,
2932,
7,
430,
82,
536,
1001,
13915,
55,
67,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
6999,
14554,
12,
2320,
54,
6999,
8526,
8179,
16,
4766,
1377,
24639,
7600,
13,
1216,
1185,
565,
288,
3639,
7600,
18,
2626,
2932,
7,
430,
82,
536,
1001,
13915,
55,
67,
44,... |
RGB[] out = imageData.getRGBs(); | RGB[] out = imageData.getRGBs(); PaletteData palette = src.palette; if (palette.isDirect) { | final protected void drawImage(ImageData src, int ox, int oy) { RGB[] out = imageData.getRGBs(); PaletteData palette = src.palette; if (palette.isDirect) { ImageData mask = src.getTransparencyMask(); for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { if (mask.getPixel(x, y) != 0) { int xx = x + ox; int yy = y + oy; if (xx >= 0 && xx < imageData.width && yy >= 0 && yy < imageData.height) { int pixel = src.getPixel(x, y); int r = pixel & palette.redMask; /* JM: Changed operators from >> to >>> to shift sign bit right */ r = (palette.redShift < 0) ? r >>> -palette.redShift : r << palette.redShift; int g = pixel & palette.greenMask; g = (palette.greenShift < 0) ? g >>> -palette.greenShift : g << palette.greenShift; int b = pixel & palette.blueMask; b = (palette.blueShift < 0) ? b >>> -palette.blueShift : b << palette.blueShift; pixel = alloc(out, r, g, b); imageData.setPixel(xx, yy, pixel); } } } } return; } // map maps src pixel values to dest pixel values int map[] = new int[256]; for (int i = 0; i < map.length; i++) { map[i] = -1; } /* JM: added code to test if the image is an icon */ if (src.getTransparencyType() == SWT.TRANSPARENCY_MASK) { ImageData mask = src.getTransparencyMask(); for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { if (mask.getPixel(x, y) != 0) { int xx = x + ox; int yy = y + oy; if (xx >= 0 && xx < imageData.width && yy >= 0 && yy < imageData.height) { int pixel = src.getPixel(x, y); int newPixel = map[pixel]; if (newPixel < 0) { RGB c = palette.getRGB(pixel); map[pixel] = newPixel = alloc(out, c.red, c.green, c.blue); } imageData.setPixel(xx, yy, newPixel); } } } } return; } int maskPixel = src.transparentPixel; for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { int pixel = src.getPixel(x, y); if (maskPixel < 0 || pixel != maskPixel) { int xx = x + ox; int yy = y + oy; if (xx >= 0 && xx < imageData.width && yy >= 0 && yy < imageData.height) { int newPixel = map[pixel]; if (newPixel < 0) { RGB c = palette.getRGB(pixel); map[pixel] = newPixel = alloc(out, c.red, c.green, c.blue); } imageData.setPixel(xx, yy, newPixel); } } } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e3dd797feef0e8d8e6d4e9d98c04b37c34c84ac0/CompositeImageDescriptor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/CompositeImageDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
4750,
918,
25783,
12,
2040,
751,
1705,
16,
509,
6965,
16,
509,
27563,
13,
288,
3639,
11510,
8526,
596,
273,
26229,
18,
588,
11343,
87,
5621,
225,
453,
8786,
751,
12127,
273,
1705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
4750,
918,
25783,
12,
2040,
751,
1705,
16,
509,
6965,
16,
509,
27563,
13,
288,
3639,
11510,
8526,
596,
273,
26229,
18,
588,
11343,
87,
5621,
225,
453,
8786,
751,
12127,
273,
1705,
... |
if (testSuite != null) doRunTest(testSuite, false); | if (testSuite != null) { doRunTest(testSuite); } | synchronized protected void runTest(final Test testSuite) { if (fRunner != null) { fTestResult.stop(); } else { reset(); if (testSuite != null) doRunTest(testSuite, false); } } | 48762 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48762/bfc94ee739d62127c7477300b26127bd560765a1/TestRunner.java/buggy/junit/swingui/TestRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
4750,
918,
1086,
4709,
12,
6385,
7766,
1842,
13587,
13,
288,
202,
202,
430,
261,
74,
9709,
480,
446,
13,
288,
1082,
202,
74,
4709,
1253,
18,
5681,
5621,
202,
202,
97,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22043,
4750,
918,
1086,
4709,
12,
6385,
7766,
1842,
13587,
13,
288,
202,
202,
430,
261,
74,
9709,
480,
446,
13,
288,
1082,
202,
74,
4709,
1253,
18,
5681,
5621,
202,
202,
97,
469,
... |
conn1.close(); | public Object execute() throws Exception { if (retainReference) { commands.add(this); } conn1 = cf.createConnection(); conn1.setClientID("test1"); conn1.start(); conn2 = cf.createConnection(); conn2.setClientID("test2"); conn2.start(); conn1.close(); String arrays[] = new String[2]; arrays[0] = ((JBossConnection)conn1).getRemotingClientSessionId(); arrays[1] = ((JBossConnection)conn2).getRemotingClientSessionId(); // Return the remoting client session id for the connection return arrays; } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/dff120e385345da0c0aa5dc35fdc5d56fc451599/CreateTwoClientOnServerCommand.java/clean/tests/src/org/jboss/test/messaging/jms/crash/CreateTwoClientOnServerCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1033,
1836,
1435,
1216,
1185,
282,
288,
1377,
309,
261,
1349,
530,
2404,
13,
1377,
288,
540,
4364,
18,
1289,
12,
2211,
1769,
1377,
289,
5411,
1487,
21,
273,
6080,
18,
2640,
1952,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1033,
1836,
1435,
1216,
1185,
282,
288,
1377,
309,
261,
1349,
530,
2404,
13,
1377,
288,
540,
4364,
18,
1289,
12,
2211,
1769,
1377,
289,
5411,
1487,
21,
273,
6080,
18,
2640,
1952,
... | |
assembleComponents( dependencies, container.getComponentDescriptorMap( role ), container ); | assembleComponents( role, component, dependencies, container.getComponentDescriptorMap( role ), container ); | private void assignRequirmentToField( final Field field, PlexusContainer container, final String role, Object component ) throws CompositionException { try { if ( field.getType().isArray() ) { Map dependencies = container.lookupMap( role ); final Object[] array = (Object[]) Array.newInstance( field.getType(), dependencies.size() ); assembleComponents( dependencies, container.getComponentDescriptorMap( role ), container ); field.set( component, dependencies.entrySet().toArray( array ) ); } else if ( Map.class.isAssignableFrom( field.getType() ) ) { Map dependencies = container.lookupMap( role ); assembleComponents( dependencies, container.getComponentDescriptorMap( role ), container ); field.set( component, dependencies ); } else if ( List.class.isAssignableFrom( field.getType() ) ) { Map dependencies = container.lookupMap( role ); assembleComponents( dependencies, container.getComponentDescriptorMap( role ), container ); field.set( component, container.lookupList( role ) ); } else if ( Set.class.isAssignableFrom( field.getType() ) ) { Map dependencies = container.lookupMap( role ); assembleComponents( dependencies, container.getComponentDescriptorMap( role ), container ); field.set( component, dependencies.entrySet() ); } else //"ordinary" field { Object dependency = container.lookup( role ); // simple recursion assembleComponent( dependency, container.getComponentDescriptor( role ), container ); field.set( component, dependency ); } } catch ( Exception e ) { throw new CompositionException( "Composition failed: " + e.getMessage() ); } } | 55908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55908/d7461986f40461ff07b360b62b0d96b803e31cab/DefaultComponentComposer.java/clean/plexus-container-default.old/src/java/org/codehaus/plexus/component/composition/DefaultComponentComposer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2683,
426,
372,
481,
475,
774,
974,
12,
727,
2286,
652,
16,
4766,
1850,
453,
4149,
407,
2170,
1478,
16,
4766,
1850,
727,
514,
2478,
16,
4766,
1850,
1033,
1794,
262,
3639,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2683,
426,
372,
481,
475,
774,
974,
12,
727,
2286,
652,
16,
4766,
1850,
453,
4149,
407,
2170,
1478,
16,
4766,
1850,
727,
514,
2478,
16,
4766,
1850,
1033,
1794,
262,
3639,
121... |
else if (obj instanceof String || lit.type instanceof ArrayType) | else if (obj == null || obj instanceof String || lit.type instanceof ArrayType) | public void writeObject(Object obj) throws IOException { Literal lit = comp.findLiteral(obj); if ((lit.flags & (Literal.WRITTEN|Literal.WRITING)) != 0) { // It is referenced more than once, so we we need a Field // to save the value. if (lit.field == null && ! (obj instanceof String)) lit.assign (comp); if ((lit.flags & Literal.WRITTEN) == 0) lit.flags |= Literal.CYCLIC; } else { lit.flags |= Literal.WRITING; int oldStack = stackPointer; if (obj instanceof gnu.kawa.util.FString && ((gnu.kawa.util.FString) obj).length() < 65535) { // Optimization. push(obj.toString(), Type.string_type); } else if (obj instanceof Externalizable) { ((Externalizable) obj).writeExternal(this); } else if (obj instanceof Object[]) { Object[] arr = (Object[]) obj; for (int i = 0; i < arr.length; i++) { writeObject(arr[i]); } } else if (obj instanceof String || lit.type instanceof ArrayType) { // nothing to do } else error(obj.getClass().getName()+" does not implement Externalizable"); int nargs = stackPointer - oldStack; if (nargs == 0) { lit.argValues = gnu.mapping.Values.noArgs; lit.argTypes = Type.typeArray0; } else { lit.argValues = new Object[nargs]; lit.argTypes = new Type[nargs]; System.arraycopy(valueStack, oldStack, lit.argValues, 0, nargs); System.arraycopy(typeStack, oldStack, lit.argTypes, 0, nargs); stackPointer = oldStack; } lit.flags |= Literal.WRITTEN; } push(lit, lit.type); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/281dc67930b34cfa61a410373d1305ce0d5cd526/LitTable.java/clean/gnu/expr/LitTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16306,
12,
921,
1081,
13,
1216,
1860,
225,
288,
565,
14392,
16297,
273,
1161,
18,
4720,
6177,
12,
2603,
1769,
565,
309,
14015,
24235,
18,
7133,
473,
261,
6177,
18,
7181,
30972,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16306,
12,
921,
1081,
13,
1216,
1860,
225,
288,
565,
14392,
16297,
273,
1161,
18,
4720,
6177,
12,
2603,
1769,
565,
309,
14015,
24235,
18,
7133,
473,
261,
6177,
18,
7181,
30972,... |
AST __t645 = _t; | AST __t649 = _t; | public final void compilestate(AST _t) throws RecognitionException { AST compilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t605 = _t; AST tmp352_AST_in = (AST)_t; match(_t,COMPILE); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop654: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRSPACE: { AST __t607 = _t; AST tmp353_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t609 = _t; AST tmp354_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t609; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t607; _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp355_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case SAVE: { AST __t610 = _t; AST tmp356_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t612 = _t; AST tmp357_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t612; _t = _t.getNextSibling(); break; } case 3: case INTO: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t614 = _t; AST tmp358_AST_in = (AST)_t; match(_t,INTO); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t614; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t610; _t = _t.getNextSibling(); break; } case LISTING: { AST __t615 = _t; AST tmp359_AST_in = (AST)_t; match(_t,LISTING); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop619: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST __t617 = _t; AST tmp360_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t617; _t = _t.getNextSibling(); break; } case PAGEWIDTH: { AST __t618 = _t; AST tmp361_AST_in = (AST)_t; match(_t,PAGEWIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t618; _t = _t.getNextSibling(); break; } default: { break _loop619; } } } while (true); } _t = __t615; _t = _t.getNextSibling(); break; } case XCODE: { AST __t620 = _t; AST tmp362_AST_in = (AST)_t; match(_t,XCODE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t620; _t = _t.getNextSibling(); break; } case XREF: { AST __t621 = _t; AST tmp363_AST_in = (AST)_t; match(_t,XREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t621; _t = _t.getNextSibling(); break; } case STRINGXREF: { AST __t623 = _t; AST tmp364_AST_in = (AST)_t; match(_t,STRINGXREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t623; _t = _t.getNextSibling(); break; } case STREAMIO: { AST __t625 = _t; AST tmp365_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t627 = _t; AST tmp366_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t627; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t625; _t = _t.getNextSibling(); break; } case MINSIZE: { AST __t628 = _t; AST tmp367_AST_in = (AST)_t; match(_t,MINSIZE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t630 = _t; AST tmp368_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t630; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t628; _t = _t.getNextSibling(); break; } case LANGUAGES: { AST __t631 = _t; AST tmp369_AST_in = (AST)_t; match(_t,LANGUAGES); _t = _t.getFirstChild(); AST tmp370_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: case TYPELESS_TOKEN: { compile_lang(_t); _t = _retTree; { _loop634: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp371_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); compile_lang(_t); _t = _retTree; } else { break _loop634; } } while (true); } break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp372_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t631; _t = _t.getNextSibling(); break; } case TEXTSEGGROW: { AST __t635 = _t; AST tmp373_AST_in = (AST)_t; match(_t,TEXTSEGGROW); _t = _t.getFirstChild(); AST __t636 = _t; AST tmp374_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t636; _t = _t.getNextSibling(); _t = __t635; _t = _t.getNextSibling(); break; } case DEBUGLIST: { AST __t637 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DEBUGLIST); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t637; _t = _t.getNextSibling(); break; } case DEFAULTNOXLATE: { AST __t638 = _t; AST tmp376_AST_in = (AST)_t; match(_t,DEFAULTNOXLATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t640 = _t; AST tmp377_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t640; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t638; _t = _t.getNextSibling(); break; } case GENERATEMD5: { AST __t641 = _t; AST tmp378_AST_in = (AST)_t; match(_t,GENERATEMD5); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t643 = _t; AST tmp379_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t643; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t641; _t = _t.getNextSibling(); break; } case PREPROCESS: { AST __t644 = _t; AST tmp380_AST_in = (AST)_t; match(_t,PREPROCESS); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t644; _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST __t645 = _t; AST tmp381_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t647 = _t; AST tmp382_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t647; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t645; _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST __t648 = _t; AST tmp383_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t650 = _t; AST tmp384_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t650; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t648; _t = _t.getNextSibling(); break; } case V6FRAME: { AST __t651 = _t; AST tmp385_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t653 = _t; AST tmp386_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t653; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t651; _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp387_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop654; } } } while (true); } state_end(_t); _t = _retTree; _t = __t605; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
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,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
} else { | } else { | protected void handleOutput(String line) { if (newProject != null) { newProject.demuxOutput(line, false); } else { super.handleOutput(line); } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/3c7ae9e72597eae42af15839f7d0b3ea87cfdb30/Ant.java/clean/src/main/org/apache/tools/ant/taskdefs/Ant.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1447,
12,
780,
980,
13,
288,
3639,
309,
261,
2704,
4109,
480,
446,
13,
288,
5411,
394,
4109,
18,
19117,
2616,
1447,
12,
1369,
16,
629,
1769,
3639,
289,
3639,
469,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1447,
12,
780,
980,
13,
288,
3639,
309,
261,
2704,
4109,
480,
446,
13,
288,
5411,
394,
4109,
18,
19117,
2616,
1447,
12,
1369,
16,
629,
1769,
3639,
289,
3639,
469,
288,
... |
if (methodArgs == null) { methodArgs = new Object[0]; } | protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (methodArgs == null) { methodArgs = new Object[0]; } if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1)); System.arraycopy(methodArgs, 0, newMethodArgs, 0, args.length - 1); newMethodArgs[args.length - 1] = restArray; methodArgs = newMethodArgs; } if (staticMethod) { Object[] newMethodArgs = new Object[methodArgs.length + 1]; System.arraycopy(methodArgs, 0, newMethodArgs, 1, methodArgs.length); newMethodArgs[0] = ruby; methodArgs = newMethodArgs; } try { return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs); } catch (IllegalAccessException iaExcptn) { throw new RuntimeException("IllegalAccessException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } catch (IllegalArgumentException iaExcptn) { throw new RuntimeException("IllegalArgumentException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } catch (InvocationTargetException itExcptn) { throw new RuntimeException("InvocationTargetException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
19817,
921,
27632,
12,
54,
10340,
921,
10665,
16,
1033,
8526,
707,
2615,
16,
19817,
22155,
13,
288,
3639,
309,
261,
2039,
2615,
422,
446,
13,
288,
5411,
707,
2615,
273,
394,
1033,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
921,
27632,
12,
54,
10340,
921,
10665,
16,
1033,
8526,
707,
2615,
16,
19817,
22155,
13,
288,
3639,
309,
261,
2039,
2615,
422,
446,
13,
288,
5411,
707,
2615,
273,
394,
1033,
... | |
DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponent = (SocietyComponent) node.getUserObject(); if (newName.equals(societyComponent.getSocietyName())) | if (newName.equals(originalName)) | public void renameSociety() { String newName = getUniqueName("New society name", "Society Name Not Unique", societyNames); if (newName == null) return; DefaultMutableTreeNode node = getSelectedNode(); SocietyComponent societyComponent = (SocietyComponent) node.getUserObject(); if (newName.equals(societyComponent.getSocietyName())) return; societyNames.remove(societyComponent.getSocietyName()); societyNames.add(newName); societyComponent.setName(newName); model.nodeChanged(node); } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/a671d5282cffbfc9f602a99846223fb2a25d1c23/Organizer.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
6472,
55,
1882,
14369,
1435,
288,
565,
514,
13253,
273,
16076,
461,
2932,
1908,
272,
1882,
14369,
508,
3113,
4766,
282,
315,
55,
1882,
14369,
1770,
2288,
14584,
3113,
4766,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
6472,
55,
1882,
14369,
1435,
288,
565,
514,
13253,
273,
16076,
461,
2932,
1908,
272,
1882,
14369,
508,
3113,
4766,
282,
315,
55,
1882,
14369,
1770,
2288,
14584,
3113,
4766,
282,
... |
maxAscent = Math.max(maxAscent, cellLayout_flow.maxAscent); maxDescent = Math.max(maxDescent, cellLayout_flow.maxDescent); currentLine.clear(); currentLine.addAll(cellLayout_flow.currentLine); | setMaxAscent(Math.max(maxAscent, cellLayout_flow.maxAscent)); setMaxDescent(Math.max(maxDescent, cellLayout_flow.maxDescent)); CellLayout_Flow.this.getCurrentLine().clear(); CellLayout_Flow.this.getCurrentLine().addAll(cellLayout_flow.getCurrentLine()); | public void doLayout() { for (EditorCell cell : editorCells) { //if no flow if (NOFLOW.equals(cell.getLayoutConstraint())) { if (!currentLine.isEmpty()) { nextLine(); } maxAscent = 0; maxDescent = 0; cell.relayout(); cell.moveTo(x, y); y += cell.getHeight(); maxRightX = Math.max(maxRightX, cell.getX() + cell.getWidth()); } else //if flow layout if (getFlowLayout(cell) != null) { CellLayout_Flow cellLayout_flow = getFlowLayout(cell); cellLayout_flow.maxAscent = maxAscent; cellLayout_flow.maxDescent = maxDescent; cellLayout_flow.setWStart(x - editorCells.getX()); cellLayout_flow.currentLine.clear(); cellLayout_flow.currentLine.addAll(currentLine); cell.setX(editorCells.getX()); cell.setY(y); cell.relayout(); maxRightX = Math.max(maxRightX, cell.getX() + cell.getWidth()); maxAscent = Math.max(maxAscent, cellLayout_flow.maxAscent); maxDescent = Math.max(maxDescent, cellLayout_flow.maxDescent); currentLine.clear(); currentLine.addAll(cellLayout_flow.currentLine); if(cellLayout_flow.myRowCount >= 2) { x = cell.getX() + cellLayout_flow.myWEnd; y = cell.getY() + cell.getHeight() - cellLayout_flow.maxAscent - cellLayout_flow.maxDescent; myRowCount += cellLayout_flow.myRowCount - 1; } else { x += cell.getWidth(); } } else //if end-of-line if (cell.getWidth() + x >= getMaxX()) { nextLine(); maxAscent = 0; maxDescent = 0; addCell(cell); } else {//default addCell(cell); } } editorCells.setHeight((y + maxAscent + maxDescent) - editorCells.getY()); if (!currentLine.isEmpty()) nextLine(); editorCells.setWidth(maxRightX - editorCells.getX()); myWEnd = x - editorCells.getX(); myHEnd = y - editorCells.getY(); } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/bd969c547714a977317cf01a85bd5a22081ce0ba/CellLayout_Flow.java/buggy/source/jetbrains/mps/nodeEditor/CellLayout_Flow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3744,
1435,
288,
1377,
364,
261,
6946,
4020,
2484,
294,
4858,
10505,
13,
288,
3639,
368,
430,
1158,
4693,
3639,
309,
261,
3417,
17430,
18,
14963,
12,
3855,
18,
588,
3744,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3744,
1435,
288,
1377,
364,
261,
6946,
4020,
2484,
294,
4858,
10505,
13,
288,
3639,
368,
430,
1158,
4693,
3639,
309,
261,
3417,
17430,
18,
14963,
12,
3855,
18,
588,
3744,
... |
ProductPrice pPrice = ((com.idega.block.trade.stockroom.data.ProductPriceHome) com.idega.data.IDOLookup.getHomeLegacy(ProductPrice.class)).createLegacy(); | ProductPrice pPrice = ((com.idega.block.trade.stockroom.data.ProductPriceHome) com.idega.data.IDOLookup.getHome(ProductPrice.class)).create(); | public boolean setPrice(Product product, String price, String currencyId) throws RemoteException { if (price == null) { return false; } else { try { ProductPrice pPri = getStockroomBusiness().getPrice(product); int oldP = 0; int pCurrId = -1; if (pPri != null) { oldP = (int) pPri.getPrice(); pCurrId = pPri.getID(); } int newP = Integer.parseInt(price); if (oldP != newP || Integer.parseInt(currencyId) != pCurrId) { ProductPrice pPrice = ((com.idega.block.trade.stockroom.data.ProductPriceHome) com.idega.data.IDOLookup.getHomeLegacy(ProductPrice.class)).createLegacy(); pPrice.setIsValid(true); pPrice.setPrice(Float.parseFloat(price)); pPrice.setPriceType(com.idega.block.trade.stockroom.data.ProductPriceBMPBean.PRICETYPE_PRICE); pPrice.setProductId(product.getID()); pPrice.setPriceDate(IWTimestamp.getTimestampRightNow()); pPrice.setCurrencyId(Integer.parseInt(currencyId)); pPrice.insert(); return true; } else { return true; } } catch (Exception e) { return false; } } } | 56192 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56192/ba1705ed7e33fd19c8894bbacb0fdd38c4e12d1a/ProductEditorBusiness.java/clean/src/java/com/idega/block/trade/stockroom/business/ProductEditorBusiness.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
444,
5147,
12,
4133,
3017,
16,
514,
6205,
16,
514,
5462,
548,
13,
1216,
18361,
288,
202,
202,
430,
261,
8694,
422,
446,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
444,
5147,
12,
4133,
3017,
16,
514,
6205,
16,
514,
5462,
548,
13,
1216,
18361,
288,
202,
202,
430,
261,
8694,
422,
446,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97... |
suite.addTest(new TestCopy("testCopySingleResource")); suite.addTest(new TestCopy("testCopyFolderNoSiblings")); | suite.addTest(new TestCopy("testCopySingleResourceAsNew")); suite.addTest(new TestCopy("testCopyFolderAsNew")); | public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new TestCopy("testCopySingleResource")); suite.addTest(new TestCopy("testCopyFolderNoSiblings")); TestSetup wrapper = new TestSetup(suite) { protected void setUp() { setupOpenCms("simpletest", "/sites/default/"); } protected void tearDown() { removeOpenCms(); } }; return wrapper; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/68aedaa3c01c741c9805c6fede5b6e13b059cef4/TestCopy.java/clean/test/org/opencms/file/TestCopy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
7734,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
7734,
11371,
18,
1289,
4709,
12,
2704,
7766,
2951,
2932,
3813,
2951,
5281,
1420,
7923,
1769,
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,
1071,
760,
7766,
11371,
1435,
288,
7734,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
7734,
11371,
18,
1289,
4709,
12,
2704,
7766,
2951,
2932,
3813,
2951,
5281,
1420,
7923,
1769,
3639,
... |
postReplaceChild(this.optionalInitializer, initializer, INITIALIZER_PROPERTY); | postReplaceChild(oldChild, initializer, INITIALIZER_PROPERTY); | public void setInitializer(Expression initializer) { preReplaceChild(this.optionalInitializer, initializer, INITIALIZER_PROPERTY); this.optionalInitializer = initializer; postReplaceChild(this.optionalInitializer, initializer, INITIALIZER_PROPERTY); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/38b81cceafabaca157320ce2793e74f4a9686fd7/VariableDeclarationFragment.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationFragment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
14729,
12,
2300,
12562,
13,
288,
202,
202,
1484,
5729,
1763,
12,
2211,
18,
10444,
14729,
16,
12562,
16,
12584,
15154,
654,
67,
9900,
1769,
202,
202,
2211,
18,
10444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14729,
12,
2300,
12562,
13,
288,
202,
202,
1484,
5729,
1763,
12,
2211,
18,
10444,
14729,
16,
12562,
16,
12584,
15154,
654,
67,
9900,
1769,
202,
202,
2211,
18,
10444,
... |
public org.quickfix.field.UnderlyingFactor getUnderlyingFactor() throws FieldNotFound { org.quickfix.field.UnderlyingFactor value = new org.quickfix.field.UnderlyingFactor(); | public quickfix.field.UnderlyingFactor getUnderlyingFactor() throws FieldNotFound { quickfix.field.UnderlyingFactor value = new quickfix.field.UnderlyingFactor(); | public org.quickfix.field.UnderlyingFactor getUnderlyingFactor() throws FieldNotFound { org.quickfix.field.UnderlyingFactor value = new org.quickfix.field.UnderlyingFactor(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix44/DontKnowTrade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
10833,
765,
6291,
6837,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
460,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
10833,
765,
6291,
6837,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
460,
273,
394... |
UsersTabelData result = null; | TableUsers result = null; | UsersTabelData[] sproc_getallusers() { String sql = "select user_id,login_name,login_password,first_name,last_name,title,company,address,city,zip,country,county_council,email,external,last_page,archive_mode,lang_id,user_type,active,create_date from users ORDER BY last_name"; Object[] paramValues = null; ResultProcessor resultProcessor = new ResultProcessor() { Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { UsersTabelData result = null; int userId = rs.getInt( "user_id" ); String loginName = rs.getString("login_name"); String password = rs.getString("login_password"); String firstName = rs.getString("first_name"); String lastName = rs.getString("last_name"); String title = rs.getString("title"); String company = rs.getString("company"); String address = rs.getString("address"); String city = rs.getString("city"); String zip = rs.getString("zip"); String country = rs.getString("country"); String county_council = rs.getString("county_council"); String emailAddress = rs.getString("email"); int external = rs.getInt("external"); int lastPage = rs.getInt("last_page"); int archiveMode = rs.getInt("archive_mode"); int langId = rs.getInt("lang_id"); int userType = rs.getInt("user_type"); int active = rs.getInt("active"); Timestamp createDate = rs.getTimestamp("create_date"); result = new UsersTabelData( userId, loginName, password, firstName, lastName, title, company, address, city, zip, country, county_council, emailAddress, external, lastPage, archiveMode, langId, userType, active, createDate ); return result; } }; ArrayList result = executeQuery( sql, paramValues, resultProcessor ); return (UsersTabelData[])result.toArray(new UsersTabelData[result.size()]); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/3fc3bc09331f7cdecb059666292dc3b0a386d278/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
12109,
56,
873,
751,
8526,
272,
9381,
67,
588,
454,
5577,
1435,
288,
3639,
514,
1847,
273,
315,
4025,
729,
67,
350,
16,
5819,
67,
529,
16,
5819,
67,
3664,
16,
3645,
67,
529,
16,
2722,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12109,
56,
873,
751,
8526,
272,
9381,
67,
588,
454,
5577,
1435,
288,
3639,
514,
1847,
273,
315,
4025,
729,
67,
350,
16,
5819,
67,
529,
16,
5819,
67,
3664,
16,
3645,
67,
529,
16,
2722,... |
hide (); | setVisibleNative (b); | public void setVisible (boolean b) { if (b) show (); else hide (); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/977c1d7a19f86a598e5fa0da86c3cb2bae54c581/GtkComponentPeer.java/clean/libraries/javalib/gnu/java/awt/peer/gtk/GtkComponentPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16697,
261,
6494,
324,
13,
225,
288,
565,
309,
261,
70,
13,
1377,
2405,
261,
1769,
565,
469,
1377,
16697,
9220,
261,
70,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16697,
261,
6494,
324,
13,
225,
288,
565,
309,
261,
70,
13,
1377,
2405,
261,
1769,
565,
469,
1377,
16697,
9220,
261,
70,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
public FSDirectory(File dir) throws IOException { | public FSDirectory(File dir, Configuration conf) throws IOException { | public FSDirectory(File dir) throws IOException { File fullimage = new File(dir, "image"); if (! fullimage.exists()) { throw new IOException("NameNode not formatted: " + dir); } File edits = new File(dir, "edits"); if (loadFSImage(fullimage, edits)) { saveFSImage(fullimage, edits); } synchronized (this) { this.ready = true; this.notifyAll(); this.editlog = new DataOutputStream(new FileOutputStream(edits)); } } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSDirectory.java/buggy/src/java/org/apache/hadoop/dfs/FSDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9247,
2853,
12,
812,
1577,
16,
4659,
2195,
13,
1216,
1860,
288,
3639,
1387,
1983,
2730,
273,
394,
1387,
12,
1214,
16,
315,
2730,
8863,
3639,
309,
16051,
1983,
2730,
18,
1808,
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,
9247,
2853,
12,
812,
1577,
16,
4659,
2195,
13,
1216,
1860,
288,
3639,
1387,
1983,
2730,
273,
394,
1387,
12,
1214,
16,
315,
2730,
8863,
3639,
309,
16051,
1983,
2730,
18,
1808,
10756,... |
} catch (SocketException e) { | } catch (Exception e) { | private Node(Config config, RandomSource random) throws NodeInitException { // Easy stuff arkPutter = new MyARKInserter(); startupTime = System.currentTimeMillis(); throttleWindow = new ThrottleWindowManager(2.0); alerts = new UserAlertManager(); recentlyCompletedIDs = new LRUQueue(); this.config = config; this.random = random; cachedPubKeys = new LRUHashtable(); lm = new LocationManager(random); try { localhostAddress = InetAddress.getByName("127.0.0.1"); } catch (UnknownHostException e3) { // Does not do a reverse lookup, so this is impossible throw new Error(e3); } ipDetector = new IPAddressDetector(10*1000, this); requestSenders = new HashMap(); transferringRequestSenders = new HashMap(); insertSenders = new HashMap(); runningUIDs = new HashSet(); ps = new PacketSender(this); // FIXME maybe these should persist? They need to be private though, so after the node/peers split. (bug 51). decrementAtMax = random.nextDouble() <= DECREMENT_AT_MAX_PROB; decrementAtMin = random.nextDouble() <= DECREMENT_AT_MIN_PROB; bootID = random.nextLong(); throttledPacketSendAverage = new TimeDecayingRunningAverage(1, 60000 /* should be significantly longer than a typical transfer */, 0, Long.MAX_VALUE); // Setup node-specific configuration SubConfig nodeConfig = new SubConfig("node", config); // IP address override nodeConfig.register("ipAddressOverride", "", 0, true, "IP address override", "IP address override (not usually needed)", new StringCallback() { public String get() { if(overrideIPAddress == null) return ""; else return overrideIPAddress.toString(); } public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } FreenetInetAddress addr; try { addr = new FreenetInetAddress(val, false); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); } }); String ipOverrideString = nodeConfig.getString("ipAddressOverride"); if(ipOverrideString.length() == 0) overrideIPAddress = null; else { try { overrideIPAddress = new FreenetInetAddress(ipOverrideString, false); } catch (UnknownHostException e) { String msg = "Unknown host: "+ipOverrideString+" in config: "+e.getMessage(); Logger.error(this, msg); System.err.println(msg+" but starting up anyway with no IP override"); overrideIPAddress = null; } } // Determine the port number nodeConfig.register("listenPort", -1 /* means random */, 1, true, "FNP port number (UDP)", "UDP port for node-to-node communications (Freenet Node Protocol)", new IntCallback() { public int get() { return portNumber; } public void set(int val) throws InvalidConfigValueException { // FIXME implement on the fly listenPort changing // Note that this sort of thing should be the exception rather than the rule!!!! String msg = "Switching listenPort on the fly not yet supported!"; Logger.error(this, msg); throw new InvalidConfigValueException(msg); } }); int port=-1; try{ port=nodeConfig.getInt("listenPort"); }catch (Exception e){ Logger.error(this, "Caught "+e, e); System.err.println(e); e.printStackTrace(); port=-1; } UdpSocketManager u = null; if(port > 65535) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Impossible port number: "+port); } else if(port == -1) { // Pick a random port for(int i=0;i<200000;i++) { int portNo = 1024 + random.nextInt(65535-1024); try { u = new UdpSocketManager(portNo); port = u.getPortNumber(); break; } catch (SocketException e) { Logger.normal(this, "Could not use port: "+portNo+": "+e, e); System.err.println("Could not use port: "+portNo+": "+e); e.printStackTrace(); continue; } } if(u == null) throw new NodeInitException(EXIT_NO_AVAILABLE_UDP_PORTS, "Could not find an available UDP port number for FNP (none specified)"); } else { try { u = new UdpSocketManager(port); } catch (SocketException e) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Could not bind to port: "+port+" (node already running?)"); } } usm = u; System.out.println("Port number: "+port); portNumber = port; Logger.normal(Node.class, "Creating node..."); // Bandwidth limit // FIXME These should not be static !!!! Need a context object for BT for bwlimiting. // See bug 77 nodeConfig.register("outputBandwidthLimit", "15K", 3, false, "Output bandwidth limit", "Hard output bandwidth limit (bytes/sec); the node should almost never exceed this", new IntCallback() { public int get() { return BlockTransmitter.getHardBandwidthLimit(); } public void set(int val) throws InvalidConfigValueException { BlockTransmitter.setHardBandwidthLimit(val); } }); int obwLimit = nodeConfig.getInt("outputBandwidthLimit"); BlockTransmitter.setHardBandwidthLimit(obwLimit); // FIXME add an averaging/long-term/soft bandwidth limit. (bug 76) // There is already untested support for this in BlockTransmitter. // No long-term limit for now. BlockTransmitter.setSoftBandwidthLimit(0, 0); // SwapRequestInterval nodeConfig.register("swapRequestSendInterval", 2000, 4, true, "Swap request send interval (ms)", "Interval between swap attempting to send swap requests in milliseconds. Leave this alone!", new IntCallback() { public int get() { return swapInterval.fixedInterval; } public void set(int val) throws InvalidConfigValueException { swapInterval.set(val); } }); swapInterval = new StaticSwapRequestInterval(nodeConfig.getInt("swapRequestSendInterval")); // Testnet. // Cannot be enabled/disabled on the fly. // If enabled, forces certain other config options. if((testnetHandler = TestnetHandler.maybeCreate(this, config)) != null) { String msg = "WARNING: ENABLING TESTNET CODE! This WILL seriously jeopardize your anonymity!"; Logger.error(this, msg); System.err.println(msg); testnetEnabled = true; if(logConfigHandler.getFileLoggerHook() == null) { System.err.println("Forcing logging enabled (essential for testnet)"); logConfigHandler.forceEnableLogging(); } int x = Logger.globalGetThreshold(); if(!(x == Logger.MINOR || x == Logger.DEBUG)) { System.err.println("Forcing log threshold to MINOR for testnet, was "+x); Logger.globalSetThreshold(Logger.MINOR); } if(logConfigHandler.getMaxZippedLogFiles() < TESTNET_MIN_MAX_ZIPPED_LOGFILES) { System.err.println("Forcing max zipped logfiles space to 256MB for testnet"); try { logConfigHandler.setMaxZippedLogFiles(TESTNET_MIN_MAX_ZIPPED_LOGFILES_STRING); } catch (InvalidConfigValueException e) { throw new Error("Impossible: "+e); } } } else { String s = "Testnet mode DISABLED. You may have some level of anonymity. :)\n"+ "Note that while we no longer have explicit back-doors enabled, this version of Freenet is still a very early alpha, and may well have numerous bugs and design flaws.\n"+ "In particular: YOU ARE WIDE OPEN TO YOUR IMMEDIATE DARKNET PEERS! They can eavesdrop on your requests with relatively little difficulty at present (correlation attacks etc)."; Logger.normal(this, s); System.err.println(s); testnetEnabled = false; FileLoggerHook flh = logConfigHandler.getFileLoggerHook(); if(flh != null) flh.deleteAllOldLogFiles(); } if(wasTestnet != testnetEnabled) { Logger.error(this, "Switched from testnet mode to non-testnet mode or vice versa! Regenerating pubkey, privkey, and deleting logs."); this.myCryptoGroup = Global.DSAgroupBigA; this.myPrivKey = new DSAPrivateKey(myCryptoGroup, random); this.myPubKey = new DSAPublicKey(myCryptoGroup, myPrivKey); } // Directory for node-related files other than store nodeConfig.register("nodeDir", ".", 6, true, "Node directory", "Name of directory to put node-related files e.g. peers list in", new StringCallback() { public String get() { return nodeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(nodeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving node directory on the fly not supported at present"); } }); nodeDir = new File(nodeConfig.getString("nodeDir")); if(!((nodeDir.exists() && nodeDir.isDirectory()) || (nodeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_BAD_NODE_DIR, msg); } // After we have set up testnet and IP address, load the node file try { // FIXME should take file directly? readNodeFile(new File(nodeDir, "node-"+portNumber).getPath(), random); } catch (IOException e) { try { readNodeFile(new File("node-"+portNumber+".bak").getPath(), random); } catch (IOException e1) { initNodeFileSettings(random); } } // Then read the peers peers = new PeerManager(this, new File(nodeDir, "peers-"+portNumber).getPath()); peers.writePeers(); peers.checkEmpty(); nodePinger = new NodePinger(this); usm.setDispatcher(dispatcher=new NodeDispatcher(this)); usm.setLowLevelFilter(packetMangler = new FNPPacketMangler(this)); // Temp files nodeConfig.register("tempDir", new File(nodeDir, "temp-"+portNumber).toString(), 6, true, "Temp files directory", "Name of directory to put temporary files in", new StringCallback() { public String get() { return tempDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(tempDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving temp directory on the fly not supported at present"); } }); tempDir = new File(nodeConfig.getString("tempDir")); if(!((tempDir.exists() && tempDir.isDirectory()) || (tempDir.mkdir()))) { String msg = "Could not find or create temporary directory"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } try { tempFilenameGenerator = new FilenameGenerator(random, true, tempDir, "temp-"); } catch (IOException e) { String msg = "Could not find or create temporary directory (filename generator)"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } tempBucketFactory = new PaddedEphemerallyEncryptedBucketFactory(new TempBucketFactory(tempFilenameGenerator), random, 1024); // Persistent temp files nodeConfig.register("persistentTempDir", new File(nodeDir, "persistent-temp-"+portNumber).toString(), 7, true, "Persistent temp files directory", "Name of directory to put persistent temp files in", new StringCallback() { public String get() { return persistentTempBucketFactory.getDir().toString(); } public void set(String val) throws InvalidConfigValueException { if(!get().equals(val)) return; // FIXME throw new InvalidConfigValueException("Moving persistent temp directory on the fly not supported at present"); } }); try { persistentTempBucketFactory = new PersistentTempBucketFactory(new File(nodeConfig.getString("persistentTempDir")), "freenet-temp-", random); } catch (IOException e2) { String msg = "Could not find or create persistent temporary directory"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } // Datastore nodeConfig.register("storeSize", "1G", 8, false, "Store size in bytes", "Store size in bytes", new LongCallback() { public long get() { return maxStoreKeys * sizePerKey; } public void set(long storeSize) throws InvalidConfigValueException { if(storeSize < 0 || storeSize < (32 * 1024 * 1024)) throw new InvalidConfigValueException("Invalid store size"); long newMaxStoreKeys = storeSize / sizePerKey; if(newMaxStoreKeys == maxStoreKeys) return; // Update each datastore maxStoreKeys = newMaxStoreKeys; chkDatastore.setMaxKeys(maxStoreKeys); sskDatastore.setMaxKeys(maxStoreKeys); pubKeyDatastore.setMaxKeys(maxStoreKeys); } }); long storeSize = nodeConfig.getLong("storeSize"); if(/*storeSize < 0 || */storeSize < (32 * 1024 * 1024)) { // totally arbitrary minimum! throw new NodeInitException(EXIT_INVALID_STORE_SIZE, "Invalid store size"); } maxStoreKeys = storeSize / sizePerKey; nodeConfig.register("storeDir", ".", 9, true, "Store directory", "Name of directory to put store files in", new StringCallback() { public String get() { return storeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(storeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving datastore on the fly not supported at present"); } }); storeDir = new File(nodeConfig.getString("storeDir")); if(!((storeDir.exists() && storeDir.isDirectory()) || (storeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_STORE_OTHER, msg); } try { chkDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"store-"+portNumber, maxStoreKeys, 32768, CHKBlock.TOTAL_HEADERS_LENGTH); sskDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"sskstore-"+portNumber, maxStoreKeys, 1024, SSKBlock.TOTAL_HEADERS_LENGTH); pubKeyDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"pubkeystore-"+portNumber, maxStoreKeys, DSAPublicKey.PADDED_SIZE, 0); } catch (FileNotFoundException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_FILE_NOT_FOUND, msg); } catch (IOException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_IOEXCEPTION, msg); } catch (Exception e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_OTHER, msg); } // Downloads directory nodeConfig.register("downloadsDir", "downloads", 10, false, "Default download directory", "The directory to save downloaded files into by default", new StringCallback() { public String get() { return downloadDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(downloadDir.equals(new File(val))) return; File f = new File(val); if(!((f.exists() && f.isDirectory()) || (f.mkdir()))) { throw new InvalidConfigValueException("Could not find or create directory"); } downloadDir = new File(val); } }); String val = nodeConfig.getString("downloadsDir"); downloadDir = new File(val); if(!((downloadDir.exists() && downloadDir.isDirectory()) || (downloadDir.mkdir()))) { throw new NodeInitException(EXIT_BAD_DOWNLOADS_DIR, "Could not find or create default downloads directory"); } // Name nodeConfig.register("name", myName, 11, false, "Node name for darknet", "Node name; you may want to set this to something descriptive if running on darknet e.g. Fred Blogg's Node; it is visible to any connecting node", new NodeNameCallback(this)); nodeNameUserAlert = new MeaningfulNodeNameUserAlert(); myName = nodeConfig.getString("name"); nodeConfig.finishedInitialization(); writeNodeFile(); // FIXME make all the below arbitrary constants configurable! archiveManager = new ArchiveManager(MAX_ARCHIVE_HANDLERS, MAX_CACHED_ARCHIVE_DATA, MAX_ARCHIVE_SIZE, MAX_ARCHIVED_FILE_SIZE, MAX_CACHED_ELEMENTS, random, tempFilenameGenerator); chkRequestThrottle = new MyRequestThrottle(throttleWindow, 5000, "CHK Request"); chkRequestStarter = new RequestStarter(this, chkRequestThrottle, "CHK Request starter ("+portNumber+")"); chkFetchScheduler = new ClientRequestScheduler(false, false, random, chkRequestStarter, this); chkRequestStarter.setScheduler(chkFetchScheduler); chkRequestStarter.start(); //insertThrottle = new ChainedRequestThrottle(10000, 2.0F, requestThrottle); // FIXME reenable the above chkInsertThrottle = new MyRequestThrottle(throttleWindow, 10000, "CHK Insert"); chkInsertStarter = new RequestStarter(this, chkInsertThrottle, "CHK Insert starter ("+portNumber+")"); chkPutScheduler = new ClientRequestScheduler(true, false, random, chkInsertStarter, this); chkInsertStarter.setScheduler(chkPutScheduler); chkInsertStarter.start(); sskRequestThrottle = new MyRequestThrottle(throttleWindow, 5000, "SSK Request"); sskRequestStarter = new RequestStarter(this, sskRequestThrottle, "SSK Request starter ("+portNumber+")"); sskFetchScheduler = new ClientRequestScheduler(false, true, random, sskRequestStarter, this); sskRequestStarter.setScheduler(sskFetchScheduler); sskRequestStarter.start(); //insertThrottle = new ChainedRequestThrottle(10000, 2.0F, requestThrottle); // FIXME reenable the above sskInsertThrottle = new MyRequestThrottle(throttleWindow, 10000, "SSK Insert"); sskInsertStarter = new RequestStarter(this, sskInsertThrottle, "SSK Insert starter ("+portNumber+")"); sskPutScheduler = new ClientRequestScheduler(true, true, random, sskInsertStarter, this); sskInsertStarter.setScheduler(sskPutScheduler); sskInsertStarter.start(); uskManager = new USKManager(this); // And finally, Initialize the plugin manager pluginManager = new PluginManager(this); FetcherContext ctx = makeClient((short)0).getFetcherContext(); ctx.allowSplitfiles = false; ctx.dontEnterImplicitArchives = true; ctx.maxArchiveRestarts = 0; ctx.maxMetadataSize = 256; ctx.maxNonSplitfileRetries = 10; ctx.maxOutputLength = 4096; ctx.maxRecursionLevel = 2; ctx.maxTempLength = 4096; this.arkFetcherContext = ctx; } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/a2140f6a34d967d0c7ae7bce5ad9faffbec7de3c/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
12,
809,
642,
16,
8072,
1830,
2744,
13,
1216,
2029,
2570,
503,
288,
377,
202,
377,
202,
759,
29442,
10769,
377,
202,
1313,
6426,
387,
273,
394,
8005,
9584,
382,
550,
387,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
12,
809,
642,
16,
8072,
1830,
2744,
13,
1216,
2029,
2570,
503,
288,
377,
202,
377,
202,
759,
29442,
10769,
377,
202,
1313,
6426,
387,
273,
394,
8005,
9584,
382,
550,
387,
56... |
popup=(TreeAgentPopupMenu)agentTree.getPopupMenu(typeNode); | popup = (TreeAgentPopupMenu)agentTree.getPopupMenu(typeNode); if(popup == null) return false; | private boolean setPopup(MouseEvent e){ AgentTree.Node current; String typeNode; TreeSelectionModel model; int selRow = tree.getRowForLocation(e.getX(), e.getY()); TreePath selPath = tree.getPathForLocation(e.getX(), e.getY()); if(selRow != -1) { if(!tree.isRowSelected(selRow)) { model=tree.getSelectionModel(); model.setSelectionPath(selPath); } current=(AgentTree.Node)selPath.getLastPathComponent(); typeNode=current.getType(); if(!typeNode.equals("")){ popup=(TreeAgentPopupMenu)agentTree.getPopupMenu(typeNode); popup.setSelectedAgent(current.getName()); } return true; } else return false; } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/7588a8b4eb6f5fb104027abe5fc932c1e4d6be6b/PopUpMouser.java/buggy/src/jade/tools/introspector/gui/PopUpMouser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
444,
13770,
12,
9186,
1133,
425,
15329,
565,
8669,
2471,
18,
907,
783,
31,
565,
514,
618,
907,
31,
565,
4902,
6233,
1488,
938,
31,
565,
509,
357,
1999,
273,
2151,
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,
282,
3238,
1250,
444,
13770,
12,
9186,
1133,
425,
15329,
565,
8669,
2471,
18,
907,
783,
31,
565,
514,
618,
907,
31,
565,
4902,
6233,
1488,
938,
31,
565,
509,
357,
1999,
273,
2151,
18,
588,
... |
if(treePath.equals(getTreePathFromItem((Item) candidate), getComparer())) { | if (treePath.equals(getTreePathFromItem((Item) candidate), getComparer())) { | protected Widget internalGetWidgetToSelect(Object elementOrTreePath) { if(elementOrTreePath instanceof TreePath) { TreePath treePath = (TreePath) elementOrTreePath; if(treePath.getSegmentCount()==0) { return null; } Widget[] candidates = findItems(treePath.getLastSegment()); for (int i = 0; i < candidates.length; i++) { Widget candidate = candidates[i]; if(!(candidate instanceof Item)) { continue; } if(treePath.equals(getTreePathFromItem((Item) candidate), getComparer())) { return candidate; } } return null; } return findItem(elementOrTreePath); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7dea322b00f8363f209617dc36ba0b47497db00d/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
11103,
2713,
967,
4609,
774,
3391,
12,
921,
930,
1162,
2471,
743,
13,
288,
202,
202,
430,
12,
2956,
1162,
2471,
743,
1276,
4902,
743,
13,
288,
1082,
202,
2471,
743,
2151,
743... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11103,
2713,
967,
4609,
774,
3391,
12,
921,
930,
1162,
2471,
743,
13,
288,
202,
202,
430,
12,
2956,
1162,
2471,
743,
1276,
4902,
743,
13,
288,
1082,
202,
2471,
743,
2151,
743... |
public boolean satisfiedBy(PsiElement element){ if(!(element instanceof PsiExpressionStatement)){ return false; } final PsiExpressionStatement statement = (PsiExpressionStatement) element; final PsiExpression expression = statement.getExpression(); final PsiElement parent = expression.getParent(); if(!(parent instanceof PsiExpressionStatement)) { return false; } final PsiType type = expression.getType(); if(!PsiType.BOOLEAN.equals(type)) { return false; } final PsiClass containingClass = PsiTreeUtil.getParentOfType(expression, PsiClass.class); if(!isTest(containingClass)) { return false; } final PsiMethod containingMethod = PsiTreeUtil.getParentOfType(expression, PsiMethod.class); return isTestMethod(containingMethod); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/3837c95856454e21e9059f3aa91174a1e2c65526/CreateAssertPredicate.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/junit/CreateAssertPredicate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1075,
29510,
270,
21501,
858,
12,
52,
7722,
1046,
2956,
15329,
430,
12,
5,
12,
2956,
1336,
792,
52,
7722,
2300,
3406,
3719,
95,
2463,
5743,
31,
97,
6385,
52,
7722,
2300,
3406,
11516,
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,
1071,
1075,
29510,
270,
21501,
858,
12,
52,
7722,
1046,
2956,
15329,
430,
12,
5,
12,
2956,
1336,
792,
52,
7722,
2300,
3406,
3719,
95,
2463,
5743,
31,
97,
6385,
52,
7722,
2300,
3406,
11516,
2... | ||
IFolderLayout bottomRight = _layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); | IFolderLayout bottomRight = _layout.createFolder("bottom", IPageLayout.RIGHT, 0.70f, editorArea); | public void createInitialLayout(IPageLayout _layout) { String editorArea = _layout.getEditorArea(); IFolderLayout topLeft = _layout.createFolder("left", IPageLayout.LEFT, 0.25f, editorArea); topLeft.addView(IPageLayout.ID_OUTLINE); topLeft.addView("org.eclipse.jdt.ui.PackageExplorer"); IFolderLayout bottomRight = _layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); bottomRight.addView(IPageLayout.ID_PROP_SHEET); } | 2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/d39ae6aad0341c8bf84f634fb6d078b5ba63e8f8/EOModelerPerspectiveFactory.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/EOModelerPerspectiveFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
4435,
3744,
12,
45,
1964,
3744,
389,
6741,
13,
288,
565,
514,
4858,
5484,
273,
389,
6741,
18,
588,
6946,
5484,
5621,
565,
467,
3899,
3744,
1760,
3910,
273,
389,
6741,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
4435,
3744,
12,
45,
1964,
3744,
389,
6741,
13,
288,
565,
514,
4858,
5484,
273,
389,
6741,
18,
588,
6946,
5484,
5621,
565,
467,
3899,
3744,
1760,
3910,
273,
389,
6741,
18... |
throw new SQLException("Not yet implemented"); | return false; | public boolean othersDeletesAreVisible(int type) throws SQLException { throw new SQLException("Not yet implemented"); } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/4ed4d2830688bf8ef87ffbffb557ef4cac165aa6/FBDatabaseMetaData.java/clean/src/org/firebirdsql/jdbc/FBDatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
10654,
7551,
4704,
6207,
12,
474,
618,
13,
1216,
6483,
288,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
377,
1071,
1250,
10654,
7551,
4704,
6207,
12,
474,
618,
13,
1216,
6483,
288,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1 || pc2", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1 || pc2", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1 || pc2 ", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2 || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2 || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2 || pc1 ", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); | assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc1", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc1", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc2", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc1 || pc2", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc1 || pc2", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc1 || pc2 ", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc2 || pc1", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc2 || pc1", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo("execution(void test.expression.Target.modifiers1()) || pc2 || pc1 ", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo("pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo("pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo("pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); | public void testPointcutReference() throws Exception { s_namespace.addExpressionInfo("pc1", new ExpressionInfo( "execution(void test.expression.Target.modifiers2())", NAMESPACE)); s_namespace.addExpressionInfo("pc2", new ExpressionInfo( "execution(void test.expression.Target.modifiers3())", NAMESPACE)); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1 || pc2", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1 || pc2", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc1 || pc2 ", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2 || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2 || pc1", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) || pc2 || pc1 ", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, null))); assertTrue(new ExpressionInfo( "pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, null))); assertTrue(new ExpressionInfo( "pc1 || pc2 || execution(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, null))); assertTrue(new ExpressionInfo( "(execution(void test.expression.Target.modifiers1()) || pc1 || pc2) AND within(test.expression.Target)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, s_declaringType))); assertTrue(new ExpressionInfo( "(execution(void test.expression.Target.modifiers1()) || pc1 || pc2) AND within(test.expression.Target)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, s_declaringType))); assertTrue(new ExpressionInfo( "(execution(void test.expression.Target.modifiers1()) || pc1 || pc2) AND within(test.expression.Target)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, s_declaringType))); assertTrue(new ExpressionInfo( "within(test.expression.Target) && (pc1 || pc2 || execution(void test.expression.Target.modifiers1()))", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers1, s_declaringType))); assertTrue(new ExpressionInfo( "within(test.expression.Target) && (pc2 || pc1 || execution(void test.expression.Target.modifiers1()))", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers2, s_declaringType))); assertTrue(new ExpressionInfo( "within(test.expression.Target) && (pc1 || execution(void test.expression.Target.modifiers1()) || pc2)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, modifiers3, s_declaringType))); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/35bb5086b5fd1f4fa035f3a6bbfdf7b6709824cb/ExpressionTest.java/buggy/aspectwerkz3/src/test/test/expression/ExpressionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2148,
5150,
2404,
1435,
1216,
1185,
288,
3639,
272,
67,
4937,
18,
1289,
2300,
966,
2932,
2436,
21,
3113,
394,
5371,
966,
12,
5411,
315,
16414,
12,
6459,
1842,
18,
8692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2148,
5150,
2404,
1435,
1216,
1185,
288,
3639,
272,
67,
4937,
18,
1289,
2300,
966,
2932,
2436,
21,
3113,
394,
5371,
966,
12,
5411,
315,
16414,
12,
6459,
1842,
18,
8692,
... |
String property = System.getProperty(PROP_VM); if (property == null) { MessageDialog .openError( window.getShell(), IDEWorkbenchMessages.OpenWorkspaceAction_errorTitle, NLS.bind(IDEWorkbenchMessages.OpenWorkspaceAction_errorMessage, PROP_VM)); return null; } | String property = System.getProperty(PROP_VM); if (property == null) { MessageDialog .openError( window.getShell(), IDEWorkbenchMessages.OpenWorkspaceAction_errorTitle, NLS .bind( IDEWorkbenchMessages.OpenWorkspaceAction_errorMessage, PROP_VM)); return null; } | private String buildCommandLine(String workspace) { String property = System.getProperty(PROP_VM); if (property == null) { MessageDialog .openError( window.getShell(), IDEWorkbenchMessages.OpenWorkspaceAction_errorTitle, NLS.bind(IDEWorkbenchMessages.OpenWorkspaceAction_errorMessage, PROP_VM)); return null; } StringBuffer result = new StringBuffer(512); result.append(property); result.append(NEW_LINE); // append the vmargs and commands. Assume that these already end in \n String vmargs = System.getProperty(PROP_VMARGS); if (vmargs != null) { result.append(vmargs); } // append the rest of the args, replacing or adding -data as required property = System.getProperty(PROP_COMMANDS); if (property == null) { result.append(CMD_DATA); result.append(NEW_LINE); result.append(workspace); result.append(NEW_LINE); } else { // find the index of the arg to replace its value int cmd_data_pos = property.lastIndexOf(CMD_DATA); if (cmd_data_pos != -1) { cmd_data_pos += CMD_DATA.length() + 1; result.append(property.substring(0, cmd_data_pos)); result.append(workspace); result.append(property.substring(property.indexOf('\n', cmd_data_pos))); } else { result.append(CMD_DATA); result.append(NEW_LINE); result.append(workspace); result.append(NEW_LINE); result.append(property); } } // put the vmargs back at the very end (the eclipse.commands property // already contains the -vm arg) if (vmargs != null) { result.append(CMD_VMARGS); result.append(NEW_LINE); result.append(vmargs); } return result.toString(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4c330e67056f9376502c63a5ba3e642e01d4d826/OpenWorkspaceAction.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenWorkspaceAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1361,
21391,
12,
780,
6003,
13,
288,
3639,
514,
1272,
273,
2332,
18,
588,
1396,
12,
15811,
67,
7397,
1769,
3639,
309,
261,
4468,
422,
446,
13,
288,
5411,
2350,
6353,
10792,
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,
3238,
514,
1361,
21391,
12,
780,
6003,
13,
288,
3639,
514,
1272,
273,
2332,
18,
588,
1396,
12,
15811,
67,
7397,
1769,
3639,
309,
261,
4468,
422,
446,
13,
288,
5411,
2350,
6353,
10792,
2... |
public TokenMgrError(String message, int reason) { super(message); errorCode = reason; | public TokenMgrError() { | public TokenMgrError(String message, int reason) { super(message); errorCode = reason; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/01ac829cf7ae29319b3a7b2aa1463f4ce4c192ed/TokenMgrError.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/template/TokenMgrError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3155,
9455,
668,
12,
780,
883,
16,
509,
3971,
13,
288,
1377,
2240,
12,
2150,
1769,
1377,
12079,
273,
3971,
31,
282,
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,
565,
1071,
3155,
9455,
668,
12,
780,
883,
16,
509,
3971,
13,
288,
1377,
2240,
12,
2150,
1769,
1377,
12079,
273,
3971,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
displayTabbedPane.getModel().addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateResponse(_selected); _selected = displayTabbedPane.getSelectedIndex(); if (_selected >= 0) { updatePanel(_selected); } } }); | public ResponsePanel() { initComponents(); _messagePanel = new MessagePanel(); parsedPanel.remove(messagePanelPlaceHolder); java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; parsedPanel.add(_messagePanel, gridBagConstraints); _beanShellPanel = new BeanShellPanel(); displayTabbedPane.add("Bean Script", _beanShellPanel); displayTabbedPane.add("Raw", rawPanel); _upToDate = new boolean[displayTabbedPane.getTabCount()]; invalidatePanels(); displayTabbedPane.getModel().addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateResponse(_selected); _selected = displayTabbedPane.getSelectedIndex(); if (_selected >= 0) { updatePanel(_selected); } } }); setEditable(_editable); } | 31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/029ab1b8a5d470638288022d20ed218cc4802040/ResponsePanel.java/buggy/src/org/owasp/webscarab/ui/swing/ResponsePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2306,
5537,
1435,
288,
3639,
1208,
7171,
5621,
3639,
389,
2150,
5537,
273,
394,
2350,
5537,
5621,
7734,
2707,
5537,
18,
4479,
12,
2150,
5537,
6029,
6064,
1769,
3639,
2252,
18,
2219,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2306,
5537,
1435,
288,
3639,
1208,
7171,
5621,
3639,
389,
2150,
5537,
273,
394,
2350,
5537,
5621,
7734,
2707,
5537,
18,
4479,
12,
2150,
5537,
6029,
6064,
1769,
3639,
2252,
18,
2219,
... | |
printType(((MibValueSymbol) sym).getType(), ""); | printType(((MibValueSymbol) sym).getType(), "", smiVersion); | private void printSymbol(MibSymbol sym) { printComment(sym.getComment()); if (sym instanceof MibTypeSymbol) { os.print(sym.getName()); os.print(" ::= "); printType(((MibTypeSymbol) sym).getType(), ""); } else if (sym instanceof MibValueSymbol) { os.print(sym.getName()); os.print(" "); printType(((MibValueSymbol) sym).getType(), ""); os.println(); os.print(" ::= "); printValue(((MibValueSymbol) sym).getValue()); } else { os.print("-- "); os.print(sym.getName()); os.print(" MACRO ... not printed"); } os.println(); os.println(); } | 48557 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48557/5fbfded11460d18b8c6def8234ad564a8b2a50e4/MibWriter.java/buggy/src/java/net/percederberg/mibble/MibWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
5335,
12,
49,
495,
5335,
5382,
13,
288,
3639,
1172,
4469,
12,
8117,
18,
588,
4469,
10663,
3639,
309,
261,
8117,
1276,
490,
495,
559,
5335,
13,
288,
5411,
1140,
18,
1188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
5335,
12,
49,
495,
5335,
5382,
13,
288,
3639,
1172,
4469,
12,
8117,
18,
588,
4469,
10663,
3639,
309,
261,
8117,
1276,
490,
495,
559,
5335,
13,
288,
5411,
1140,
18,
1188... |
handleSoftSpan(); | if(context.inRule != null) handleRule(context.inRule,true); handleNoWordBreak(); | public LineContext markTokens(LineContext prevContext, TokenHandler tokenHandler, Segment line, String noWordSep) { //{{{ Set up some instance variables // this is to avoid having to pass around lots and lots of // parameters. this.tokenHandler = tokenHandler; this.line = line; lastOffset = line.offset; lineLength = line.count + line.offset; context = new LineContext(); if(prevContext == null) context.rules = getMainRuleSet(); else { context.parent = prevContext.parent; context.inRule = prevContext.inRule; context.rules = prevContext.rules; } keywords = context.rules.getKeywords(); escaped = false; //}}} //{{{ Main parser loop ParserRule rule; int terminateChar = context.rules.getTerminateChar(); boolean terminated = false;main_loop: for(pos = line.offset; pos < lineLength; pos++) { //{{{ check if we have to stop parsing if(terminateChar >= 0 && pos >= terminateChar && !terminated) { terminated = true; context = new LineContext(ParserRuleSet .getStandardRuleSet(context.rules .getDefault()),context); keywords = context.rules.getKeywords(); } //}}} //{{{ check for end of delegate if(context.parent != null) { rule = context.parent.inRule; if(rule != null && rule.end != null) { if(checkDelegateEnd()) continue main_loop; } } //}}} //{{{ check every rule char ch = line.array[pos]; rule = context.rules.getRules(ch); while(rule != null) { // stop checking rules if there was a match if (handleRule(rule,false)) continue main_loop; rule = rule.next; } //}}} //{{{ check if current character is a word separator if(Character.isWhitespace(ch)) { handleSoftSpan(); if(keywords != null) markKeyword(false); if(lastOffset != pos) { tokenHandler.handleToken( context.rules.getDefault(), lastOffset - line.offset, pos - lastOffset, context); } tokenHandler.handleToken( (ch == '\t' ? Token.TAB : Token.WHITESPACE),pos - line.offset,1, context); lastOffset = pos + 1; escaped = false; } else { String noWordSep2 = (keywords == null ? "" : keywords.getNonAlphaNumericChars()); if(!Character.isLetterOrDigit(ch) && noWordSep.indexOf(ch) == -1 && noWordSep2.indexOf(ch) == -1) { // if this returns true then the escape // rule was handled, otherwise clear the // flag if(!handleSoftSpan()) escaped = false; markKeyword(true); tokenHandler.handleToken( context.rules.getDefault(), lastOffset - line.offset,1, context); lastOffset = pos + 1; } else { // a character which is not a word // separator... nor did it match any // rule. so \ has no effect escaped = false; } } //}}} } //}}} //{{{ Mark all remaining characters pos = lineLength; handleSoftSpan(); markKeyword(true); if(context.parent != null) { rule = context.parent.inRule; if((rule != null && (context.parent.inRule.action & ParserRule.NO_LINE_BREAK) == ParserRule.NO_LINE_BREAK) || terminated) { context = context.parent; keywords = context.rules.getKeywords(); context.inRule = null; } } //}}} tokenHandler.handleToken(Token.END,pos - line.offset,0,context); return context.intern(); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/597dd931f120fbce7be5c9a42cf8511e356746d6/TokenMarker.java/clean/org/gjt/sp/jedit/syntax/TokenMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5377,
1042,
2267,
5157,
12,
1670,
1042,
2807,
1042,
16,
202,
202,
1345,
1503,
1147,
1503,
16,
10807,
980,
16,
202,
202,
780,
1158,
3944,
5097,
13,
202,
95,
202,
202,
759,
1218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5377,
1042,
2267,
5157,
12,
1670,
1042,
2807,
1042,
16,
202,
202,
1345,
1503,
1147,
1503,
16,
10807,
980,
16,
202,
202,
780,
1158,
3944,
5097,
13,
202,
95,
202,
202,
759,
1218... |
public final FigureEnumeration figures() { | public FigureEnumeration figures() { | public final FigureEnumeration figures() { return new FigureEnumerator(CollectionsFactory.current().createList(fFigures)); } | 5626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5626/fd6141583eb286d7a0c6fb88b32b06eb519af75e/CompositeFigure.java/clean/jhotdraw6/src/org/jhotdraw/standard/CompositeFigure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
18818,
21847,
4291,
1823,
1435,
288,
202,
202,
2463,
394,
18818,
3572,
7385,
12,
15150,
1733,
18,
2972,
7675,
2640,
682,
12,
74,
42,
360,
1823,
10019,
202,
97,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
18818,
21847,
4291,
1823,
1435,
288,
202,
202,
2463,
394,
18818,
3572,
7385,
12,
15150,
1733,
18,
2972,
7675,
2640,
682,
12,
74,
42,
360,
1823,
10019,
202,
97,
2,
-100,
-... |
public IIntroPart showIntro(IWorkbenchWindow preferredWindow, boolean standby) { if (preferredWindow == null) preferredWindow = this.workbench.getActiveWorkbenchWindow(); if (preferredWindow == null) return null; if (getViewIntroAdapterPart() == null) { createIntro((WorkbenchWindow) preferredWindow); } else { try { ViewIntroAdapterPart viewPart = getViewIntroAdapterPart(); WorkbenchPage page = (WorkbenchPage) viewPart.getSite().getPage(); WorkbenchWindow window = (WorkbenchWindow) page.getWorkbenchWindow(); if (!window.equals(preferredWindow)) { window.getShell().setActive(); } page.showView(IIntroConstants.INTRO_VIEW_ID);// IPerspectiveDescriptor [] perspDescriptors = page.getOpenedPerspectives();// for (int i = 0; i < perspDescriptors.length; i++) {// IPerspectiveDescriptor descriptor = perspDescriptors[i];// if (page.findPerspective(descriptor).containsView(viewPart)) {// if (!page.getPerspective().equals(descriptor)) {// page.setPerspective(descriptor);// }// break;// }// }// // page.getWorkbenchWindow().getShell().setActive();// page.showView(IIntroConstants.INTRO_VIEW_ID); } catch (PartInitException e) { WorkbenchPlugin.log("Could not open intro", new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, IStatus.ERROR, "Could not open intro", e)); //$NON-NLS-1$ //$NON-NLS-2$ } } setIntroStandby(introPart, standby); return introPart; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/61343cd0cefae2733c7beb408959dd1dc24c644b/WorkbenchIntroManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchIntroManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1702,
303,
1988,
2405,
1702,
303,
12,
45,
2421,
22144,
3829,
9119,
3829,
16,
1250,
12842,
1637,
13,
288,
202,
565,
309,
261,
23616,
3829,
422,
446,
13,
202,
3639,
9119,
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,
482,
467,
1702,
303,
1988,
2405,
1702,
303,
12,
45,
2421,
22144,
3829,
9119,
3829,
16,
1250,
12842,
1637,
13,
288,
202,
565,
309,
261,
23616,
3829,
422,
446,
13,
202,
3639,
9119,
3... | ||
throws FenixServiceException { return getInstance().getSystemInfoDelegate(userView); } | throws FenixServiceException { return getInstance().getSystemInfoDelegate(userView); } | public static SystemInfo getSystemInfo(IUserView userView) throws FenixServiceException { return getInstance().getSystemInfoDelegate(userView); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/41478a0f273e4a7dad9aa5e703a4a479120c3af2/ServiceManagerServiceFactory.java/buggy/src/framework/factory/ServiceManagerServiceFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
2332,
966,
12996,
966,
12,
45,
1299,
1767,
729,
1767,
13,
1082,
202,
15069,
478,
275,
697,
15133,
202,
95,
202,
202,
2463,
3694,
7675,
588,
3163,
966,
9586,
12,
1355,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
760,
2332,
966,
12996,
966,
12,
45,
1299,
1767,
729,
1767,
13,
1082,
202,
15069,
478,
275,
697,
15133,
202,
95,
202,
202,
2463,
3694,
7675,
588,
3163,
966,
9586,
12,
1355,
176... |
logln("==test_05: CertPathBuilderException=="); | public void testCertPathBuilderException05() { logln("==test_05: CertPathBuilderException=="); CertPathBuilderException tE = new CertPathBuilderException(tCause); assertTrue(errNotExc, tE instanceof CertPathBuilderException); if (tE.getMessage() != null) { String toS = tCause.toString(); String getM = tE.getMessage(); assertTrue("getMessage() should contain ".concat(toS), (getM .indexOf(toS) != -1)); } assertNotNull("getCause() must not return null", tE.getCause()); assertEquals("getCause() must return ".concat(tCause.toString()), tE .getCause(), tCause); try { throw tE; } catch (Exception e) { assertTrue(createErr(tE, e), tE.equals(e)); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/a9fd98c8fca0593ca0da8ba774c48808f903f221/CertPathBuilderExceptionTest.java/clean/modules/security2/test/common/unit/java/security/cert/CertPathBuilderExceptionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5461,
743,
1263,
503,
6260,
1435,
288,
2868,
11921,
743,
1263,
503,
268,
41,
273,
394,
11921,
743,
1263,
503,
12,
88,
10683,
1769,
3639,
1815,
5510,
12,
370,
1248,
29924,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5461,
743,
1263,
503,
6260,
1435,
288,
2868,
11921,
743,
1263,
503,
268,
41,
273,
394,
11921,
743,
1263,
503,
12,
88,
10683,
1769,
3639,
1815,
5510,
12,
370,
1248,
29924,... | |
public RubyString inspect() { final String regex = pattern.pattern(); final int length = regex.length(); StringBuffer sb = new StringBuffer(length + 2); sb.append('/'); for (int i = 0; i < length; i++) { char c = regex.charAt(i); if (RubyString.isAlnum(c)) { sb.append(c); } else if (c == '/') { sb.append('\\').append(c); } else if (RubyString.isPrint(c)) { sb.append(c); } else if (c == '\n') { sb.append('\\').append('n'); } else if (c == '\r') { sb.append('\\').append('r'); } else if (c == '\t') { sb.append('\\').append('t'); } else if (c == '\f') { sb.append('\\').append('f'); } else if (c == '\u000B') { sb.append('\\').append('v'); } else if (c == '\u0007') { sb.append('\\').append('a'); } else if (c == '\u001B') { sb.append('\\').append('e'); } else { sb.append(new PrintfFormat("\\%.3o").sprintf(c)); } } sb.append('/'); if ((pattern.flags() & Pattern.CASE_INSENSITIVE) > 0) { sb.append('i'); } if ((pattern.flags() & Pattern.DOTALL) > 0) { sb.append('m'); } if ((pattern.flags() & Pattern.COMMENTS) > 0) { sb.append('x'); } return RubyString.newString(getRuntime(), sb.toString()); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/de4c49d21f91fafaad36890ce5108ebf5c0404e8/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
5334,
1435,
288,
3639,
727,
514,
3936,
273,
1936,
18,
4951,
5621,
202,
202,
6385,
509,
769,
273,
3936,
18,
2469,
5621,
3639,
6674,
2393,
273,
394,
6674,
12,
2469,
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,
1071,
19817,
780,
5334,
1435,
288,
3639,
727,
514,
3936,
273,
1936,
18,
4951,
5621,
202,
202,
6385,
509,
769,
273,
3936,
18,
2469,
5621,
3639,
6674,
2393,
273,
394,
6674,
12,
2469,
397,
... | ||
final String aString = (String) it.next(); | final String aString = it.next(); | SortedSet getAutoWeaponProfs(final List aFeatList) { SortedSet results = new TreeSet(); final Race aRace = getRace(); ListKey weaponProfBonusKey = ListKey.SELECTED_WEAPON_PROF_BONUS; // // Add race-grantedweapon proficiencies // if (aRace != null) { results = addWeaponProfsLists(aRace.getWeaponProfAutos(), results, aFeatList, true); for (Iterator it = aRace.getSafeListFor(weaponProfBonusKey).iterator(); it.hasNext();) { final String aString = (String) it.next(); results.add(aString); addWeaponProfToList(aFeatList, aString, true); } aRace.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } // // Add template-granted weapon proficiencies // for (Iterator e = getTemplateList().iterator(); e.hasNext();) { final PCTemplate aTemplate = (PCTemplate) e.next(); results = addWeaponProfsLists(aTemplate.getWeaponProfAutos(), results, aFeatList, true); for (Iterator it = aTemplate.getSafeListFor(weaponProfBonusKey).iterator(); it.hasNext();) { final String aString = (String) it.next(); results.add(aString); addWeaponProfToList(aFeatList, aString, true); } aTemplate.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } // // Add class-granted weapon proficiencies // for (Iterator e = classList.iterator(); e.hasNext();) { final PCClass aClass = (PCClass) e.next(); results = addWeaponProfsLists(aClass.getWeaponProfAutos(), results, aFeatList, true); for (Iterator it = aClass.getSafeListFor(weaponProfBonusKey).iterator(); it.hasNext();) { final String aString = (String) it.next(); results.add(aString); addWeaponProfToList(aFeatList, aString, true); } aClass.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } // // Add feat-granted weapon proficiencies // setAggregateFeatsStable(false); for (Iterator e = aggregateFeatList().iterator(); e.hasNext();) { final Ability aFeat = (Ability) e.next(); results = addWeaponProfsLists(aFeat.getWeaponProfAutos(), results, aFeatList, true); List staticProfList = new ArrayList(); staticProfList.addAll(aFeat.getSafeListFor(weaponProfBonusKey)); for (Iterator wpnProfIter = staticProfList.iterator(); wpnProfIter.hasNext();) { final String aString = (String) wpnProfIter.next(); results.add(aString); addWeaponProfToList(aFeatList, aString, true); } aFeat.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } // // Add skill-granted weapon proficiencies // for (Iterator e = getSkillList().iterator(); e.hasNext();) { final Skill aSkill = (Skill) e.next(); results = addWeaponProfsLists(aSkill.getWeaponProfAutos(), results, aFeatList, true); aSkill.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } // // Add equipment-granted weapon proficiencies // for (Iterator e = equipmentList.iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if (eq.isEquipped()) { results = addWeaponProfsLists(eq.getWeaponProfAutos(), results, aFeatList, true); eq.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); List aList = eq.getEqModifierList(true); if (!aList.isEmpty()) { for (Iterator e2 = aList.iterator(); e2.hasNext();) { final EquipmentModifier eqMod = (EquipmentModifier) e2.next(); results = addWeaponProfsLists(eqMod.getWeaponProfAutos(), results, aFeatList, true); } } aList = eq.getEqModifierList(false); if (!aList.isEmpty()) { for (Iterator e2 = aList.iterator(); e2.hasNext();) { final EquipmentModifier eqMod = (EquipmentModifier) e2.next(); results = addWeaponProfsLists(eqMod.getWeaponProfAutos(), results, aFeatList, true); } } } } // // Add deity-granted weapon proficiencies // if (deity != null) { results = addWeaponProfsLists(deity.getWeaponProfAutos(), results, aFeatList, true); deity.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } // // Add domain-granted weapon proficiencies // for (Iterator e = characterDomainList.iterator(); e.hasNext();) { final CharacterDomain aCD = (CharacterDomain) e.next(); final Domain aDomain = aCD.getDomain(); if (aDomain != null) { results = addWeaponProfsLists(aDomain.getWeaponProfAutos(), results, aFeatList, true); for (Iterator it = aDomain.getSafeListFor(weaponProfBonusKey).iterator(); it.hasNext();) { final String aString = (String) it.next(); results.add(aString); addWeaponProfToList(aFeatList, aString, true); } aDomain.addAutoTagsToList("WEAPONPROF", (TreeSet) results, this, true); } } // // Parse though aggregate feat list, looking for any feats that grant weapon proficiencies // //addFeatProfs(getStableAggregateFeatList(), aFeatList, results); //addFeatProfs(getStableAutomaticFeatList(), aFeatList, results); weaponProfList.clear(); // TheForken weaponProfList.addAll(results); return results; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
11739,
694,
26707,
3218,
28629,
626,
2556,
12,
6385,
987,
279,
11667,
682,
13,
202,
95,
202,
202,
11739,
694,
1686,
273,
394,
19461,
5621,
202,
202,
6385,
534,
623,
279,
54,
623,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
11739,
694,
26707,
3218,
28629,
626,
2556,
12,
6385,
987,
279,
11667,
682,
13,
202,
95,
202,
202,
11739,
694,
1686,
273,
394,
19461,
5621,
202,
202,
6385,
534,
623,
279,
54,
623,
2... |
int rlen = mlength - this_count; Object[] rargs = new Object[rlen + (takesContext ? 1 : 0)]; | Object[] rargs = new Object[paramCount + (takesContext ? 1 : 0)]; | public int matchN (Object[] args, CallContext ctx) { int nargs = args.length; boolean takesVarArgs = takesVarArgs(); int mlength = minArgs() + (takesVarArgs ? 1 : 0); int fixArgs = takesVarArgs ? mlength - 1 : mlength; if (takesVarArgs) { if (nargs < fixArgs) return NO_MATCH_TOO_FEW_ARGS|fixArgs; } else { if (nargs != mlength) if (nargs < mlength) return NO_MATCH_TOO_FEW_ARGS|fixArgs; else return NO_MATCH_TOO_MANY_ARGS|fixArgs; } int arg_count = argTypes.length; Type elementType = null; Object[] restArray = null; int this_count = getStaticFlag() ? 0 : 1; boolean takesContext = takesContext(); int rlen = mlength - this_count; Object[] rargs = new Object[rlen + (takesContext ? 1 : 0)]; if (takesContext) rargs[rlen] = ctx; Object thisValue; if (takesVarArgs) { Type restType = argTypes[arg_count-1]; if (restType == Compilation.scmListType) { // FIXME rargs[rlen-1] = gnu.lists.LList.makeList(args, fixArgs); nargs = fixArgs; } else { ArrayType restArrayType = (ArrayType) restType; elementType = restArrayType.getComponentType(); Class elementClass = elementType.getReflectClass(); restArray = (Object[]) java.lang.reflect.Array.newInstance(elementClass, nargs-fixArgs); rargs[rlen-1] = restArray; } } if (this_count != 0) { try { thisValue = method.getDeclaringClass().coerceFromObject(args[0]); } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|1; } } else thisValue = null; for (int i = this_count; i < nargs; i++) { try { Object arg = args[i]; Type type = i < fixArgs ? argTypes[i-this_count] : elementType; if (type != Type.pointer_type) arg = type.coerceFromObject(arg); if (i < fixArgs) rargs[i-this_count] = arg; else restArray[i - fixArgs] = arg; } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|(i+1); } } ctx.value1 = thisValue; ctx.values = rargs; ctx.proc = this; return 0; } | 37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
845,
50,
261,
921,
8526,
833,
16,
3049,
1042,
1103,
13,
225,
288,
565,
509,
14440,
273,
833,
18,
2469,
31,
565,
1250,
5530,
1537,
2615,
273,
5530,
1537,
2615,
5621,
565,
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,
282,
1071,
509,
845,
50,
261,
921,
8526,
833,
16,
3049,
1042,
1103,
13,
225,
288,
565,
509,
14440,
273,
833,
18,
2469,
31,
565,
1250,
5530,
1537,
2615,
273,
5530,
1537,
2615,
5621,
565,
509,... |
wFieldsComp = new Composite(wTabFolder, SWT.NONE); | wFieldsComp = new ScrolledComposite(wTabFolder, SWT.V_SCROLL | SWT.H_SCROLL ); | private void addFieldsTabs() { // Fields tab... // wFieldsTab = new CTabItem(wTabFolder, SWT.NONE); wFieldsTab.setText(Messages.getString("TextFileInputDialog.FieldsTab.TabTitle")); FormLayout fieldsLayout = new FormLayout (); fieldsLayout.marginWidth = Const.FORM_MARGIN; fieldsLayout.marginHeight = Const.FORM_MARGIN; wFieldsComp = new Composite(wTabFolder, SWT.NONE); wFieldsComp.setLayout(fieldsLayout); props.setLook(wFieldsComp); wGet=new Button(wFieldsComp, SWT.PUSH); wGet.setText(Messages.getString("System.Button.GetFields")); fdGet=new FormData(); fdGet.left=new FormAttachment(50, 0); fdGet.bottom =new FormAttachment(100, 0); wGet.setLayoutData(fdGet); final int FieldsRows=input.getInputFields().length; // Prepare a list of possible formats... String formats[] = Const.getConversionFormats(); ColumnInfo[] colinf=new ColumnInfo[] { new ColumnInfo(Messages.getString("TextFileInputDialog.NameColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.TypeColumn.Column"), ColumnInfo.COLUMN_TYPE_CCOMBO, Value.getTypes(), true ), new ColumnInfo(Messages.getString("TextFileInputDialog.FormatColumn.Column"), ColumnInfo.COLUMN_TYPE_CCOMBO, formats), new ColumnInfo(Messages.getString("TextFileInputDialog.PositionColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.LengthColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.PrecisionColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.CurrencyColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.DecimalColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.GroupColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.NullIfColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.IfNullColumn.Column"), ColumnInfo.COLUMN_TYPE_TEXT, false), new ColumnInfo(Messages.getString("TextFileInputDialog.TrimTypeColumn.Column"), ColumnInfo.COLUMN_TYPE_CCOMBO, TextFileInputMeta.trimTypeDesc, true ), new ColumnInfo(Messages.getString("TextFileInputDialog.RepeatColumn.Column"), ColumnInfo.COLUMN_TYPE_CCOMBO, new String[] { Messages.getString("System.Combo.Yes"), Messages.getString("System.Combo.No") }, true ) }; colinf[12].setToolTip(Messages.getString("TextFileInputDialog.RepeatColumn.Tooltip")); wFields=new TableView(wFieldsComp, SWT.FULL_SELECTION | SWT.MULTI, colinf, FieldsRows, lsMod, props ); fdFields=new FormData(); fdFields.left = new FormAttachment(0, 0); fdFields.top = new FormAttachment(0, 0); fdFields.right = new FormAttachment(100, 0); fdFields.bottom= new FormAttachment(wGet, -margin); wFields.setLayoutData(fdFields); fdFieldsComp=new FormData(); fdFieldsComp.left = new FormAttachment(0, 0); fdFieldsComp.top = new FormAttachment(0, 0); fdFieldsComp.right = new FormAttachment(100, 0); fdFieldsComp.bottom= new FormAttachment(100, 0); wFieldsComp.setLayoutData(fdFieldsComp); wFieldsComp.layout(); wFieldsTab.setControl(wFieldsComp); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9f03cd8758e113027d1d788a5d3c177b8c4e6b82/TextFileInputDialog.java/clean/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
2314,
17348,
1435,
565,
288,
3639,
368,
7190,
3246,
2777,
3639,
368,
3639,
341,
2314,
5661,
273,
394,
385,
5661,
1180,
12,
91,
5661,
3899,
16,
348,
8588,
18,
9826,
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,
377,
3238,
918,
527,
2314,
17348,
1435,
565,
288,
3639,
368,
7190,
3246,
2777,
3639,
368,
3639,
341,
2314,
5661,
273,
394,
385,
5661,
1180,
12,
91,
5661,
3899,
16,
348,
8588,
18,
9826,
1769,
... |
public org.quickfix.field.CustOrderCapacity getCustOrderCapacity() throws FieldNotFound { org.quickfix.field.CustOrderCapacity value = new org.quickfix.field.CustOrderCapacity(); | public quickfix.field.CustOrderCapacity getCustOrderCapacity() throws FieldNotFound { quickfix.field.CustOrderCapacity value = new quickfix.field.CustOrderCapacity(); | public org.quickfix.field.CustOrderCapacity getCustOrderCapacity() throws FieldNotFound { org.quickfix.field.CustOrderCapacity value = new org.quickfix.field.CustOrderCapacity(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix43/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
641,
2448,
7437,
1927,
641,
2448,
7437,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
641,
2448,
7437,
460,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
641,
2448,
7437,
1927,
641,
2448,
7437,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
641,
2448,
7437,
460,
273... |
public ChangePerformer(GameData data) | public ChangePerformer(GameData data) | public ChangePerformer(GameData data) { m_data = data; } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/ChangePerformer.java/buggy/src/games/strategy/engine/data/ChangePerformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7576,
4990,
264,
12,
12496,
751,
501,
13,
225,
202,
95,
202,
202,
81,
67,
892,
273,
501,
31,
565,
289,
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,
377,
1071,
7576,
4990,
264,
12,
12496,
751,
501,
13,
225,
202,
95,
202,
202,
81,
67,
892,
273,
501,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this.targetTableSchema = targetTableSchema; this.targetTableName = targetTableName; | public ExpressionAddColumns(final String dsSchemaName, final String dsTableName, final Schema sourceTableSchema, final String sourceTableName, final Schema targetTableSchema, final String targetTableName, final List sourceTableColumns, final List expressionColumns, final boolean useGroupBy) { super(dsSchemaName, dsTableName); this.sourceTableSchema = sourceTableSchema; this.sourceTableName = sourceTableName; this.targetTableSchema = targetTableSchema; this.targetTableName = targetTableName; this.sourceTableColumns = sourceTableColumns; this.expressionColumns = expressionColumns; this.useGroupBy = useGroupBy; } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/697fc52b912bb5a1524113edc0e15bf091f78336/MartConstructorAction.java/buggy/src/java/org/biomart/builder/model/MartConstructorAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
5371,
986,
3380,
12,
6385,
514,
3780,
3078,
461,
16,
9506,
202,
6385,
514,
3780,
7147,
16,
727,
4611,
1084,
1388,
3078,
16,
9506,
202,
6385,
514,
1084,
7147,
16,
727,
4611,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
5371,
986,
3380,
12,
6385,
514,
3780,
3078,
461,
16,
9506,
202,
6385,
514,
3780,
7147,
16,
727,
4611,
1084,
1388,
3078,
16,
9506,
202,
6385,
514,
1084,
7147,
16,
727,
4611,
1... | |
getLogger().info( "Ignoring available plugin update: " + artifact.getVersion() + " as it requires Maven version " + requiredVersion ); pluginValid = false; | version = artifactVersion; | private String resolveMetaVersion( String groupId, String artifactId, List remoteRepositories, ArtifactRepository localRepository, String metaVersionId ) throws PluginVersionResolutionException { Artifact artifact = artifactFactory.createProjectArtifact( groupId, artifactId, metaVersionId ); String version = null; try { ResolutionGroup resolutionGroup = artifactMetadataSource.retrieve( artifact, localRepository, remoteRepositories ); // switching this out with the actual resolved artifact instance, since the MMSource re-creates the pom // artifact. artifact = resolutionGroup.getPomArtifact(); // make sure this artifact was actually resolved to a file in the repo... if ( artifact.getFile() != null ) { MavenProject project = mavenProjectBuilder.buildFromRepository( artifact, remoteRepositories, localRepository, false ); boolean pluginValid = true; // if we don't have the required Maven version, then ignore an update if ( project.getPrerequisites() != null && project.getPrerequisites().getMaven() != null ) { DefaultArtifactVersion requiredVersion = new DefaultArtifactVersion( project.getPrerequisites().getMaven() ); if ( runtimeInformation.getApplicationVersion().compareTo( requiredVersion ) < 0 ) { getLogger().info( "Ignoring available plugin update: " + artifact.getVersion() + " as it requires Maven version " + requiredVersion ); pluginValid = false; } } String artifactVersion = artifact.getVersion(); if ( pluginValid && !metaVersionId.equals( artifactVersion ) ) { version = artifactVersion; } } } catch ( ArtifactMetadataRetrievalException e ) { getLogger().debug( "Failed to resolve " + metaVersionId + " version", e ); } catch ( ProjectBuildingException e ) { throw new PluginVersionResolutionException( groupId, artifactId, "Unable to build resolve plugin project information", e ); } catch ( IOException e ) { throw new PluginVersionResolutionException( groupId, artifactId, "Unable to determine Maven version for comparison", e ); } return version; } | 48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/f685d8605d2680e70b1ff2895947d2d11787e3c9/DefaultPluginVersionManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2245,
2781,
1444,
12,
514,
6612,
16,
514,
25496,
16,
987,
2632,
18429,
16,
4766,
4202,
14022,
3305,
1191,
3305,
16,
514,
2191,
28039,
262,
3639,
1216,
6258,
1444,
11098,
503,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2245,
2781,
1444,
12,
514,
6612,
16,
514,
25496,
16,
987,
2632,
18429,
16,
4766,
4202,
14022,
3305,
1191,
3305,
16,
514,
2191,
28039,
262,
3639,
1216,
6258,
1444,
11098,
503,
5... |
private final SReference[] readActions(final String primaryId, final IConfigurationElement[] elements, final List warningsToLog, final LegacyLocationInfo locationInfo, final Expression visibleWhenExpression, final String viewId) { final Collection references = new ArrayList(elements.length); for (int i = 0; i < elements.length; i++) { final IConfigurationElement element = elements[i]; /* * We might need the identifier to generate the command, so we'll * read it out now. */ final String id = readRequired(element, ATT_ID, warningsToLog, "Actions require an id"); //$NON-NLS-1$ if (id == null) { continue; } // Try to break out the command part of the action. final ParameterizedCommand command = convertActionToCommand( element, primaryId, id, warningsToLog); if (command == null) { continue; } convertActionToHandler(element, id, command, visibleWhenExpression, viewId, warningsToLog); // TODO Read the helpContextId attribute // TODO Read the overrideActionId attribute convertActionToBinding(element, command); final String imageStyle = convertActionToImages(element, command); convertActionToItem(element, warningsToLog, command, imageStyle, locationInfo, visibleWhenExpression); references.add(new SReference(SReference.TYPE_ITEM, id)); } return (SReference[]) references.toArray(new SReference[references .size()]); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3ca7c40c18919c1553e9644320fb719c40358a1a/LegacyActionPersistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
348,
2404,
8526,
855,
6100,
12,
6385,
514,
3354,
548,
16,
1082,
202,
6385,
467,
1750,
1046,
8526,
2186,
16,
727,
987,
5599,
774,
1343,
16,
1082,
202,
6385,
22781,
2735,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
348,
2404,
8526,
855,
6100,
12,
6385,
514,
3354,
548,
16,
1082,
202,
6385,
467,
1750,
1046,
8526,
2186,
16,
727,
987,
5599,
774,
1343,
16,
1082,
202,
6385,
22781,
2735,
... | ||
protected Key engineTranslateKey(Key key) throws InvalidKeyException { if ((key instanceof DSSPublicKey) || (key instanceof DSSPrivateKey)) return key; if (key instanceof DSAPublicKey) { DSAPublicKey dsaKey = (DSAPublicKey) key; BigInteger p = dsaKey.getParams().getP(); BigInteger q = dsaKey.getParams().getQ(); BigInteger g = dsaKey.getParams().getG(); BigInteger y = dsaKey.getY(); return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); } if (key instanceof DSAPrivateKey) { DSAPrivateKey dsaKey = (DSAPrivateKey) key; BigInteger p = dsaKey.getParams().getP(); BigInteger q = dsaKey.getParams().getQ(); BigInteger g = dsaKey.getParams().getG(); BigInteger x = dsaKey.getX(); return new DSSPrivateKey(Registry.PKCS8_ENCODING_ID, p, q, g, x); } throw new InvalidKeyException("Wrong key type"); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/jce/sig/DSSKeyFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
653,
8944,
12818,
653,
12,
653,
856,
13,
15069,
1941,
21914,
95,
430,
12443,
856,
1336,
792,
40,
1260,
9632,
14047,
96,
12,
856,
1336,
792,
40,
1260,
10824,
3719,
2463,
856,
31,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
653,
8944,
12818,
653,
12,
653,
856,
13,
15069,
1941,
21914,
95,
430,
12443,
856,
1336,
792,
40,
1260,
9632,
14047,
96,
12,
856,
1336,
792,
40,
1260,
10824,
3719,
2463,
856,
31,
430,
1... | ||
public void setUI(MenuItemUI ui) { | public void setUI(MenuItemUI ui) { | public void setUI(MenuItemUI ui) { super.setUI(ui); // TODO } // setUI() | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5370,
12,
12958,
5370,
5915,
13,
288,
202,
202,
9565,
18,
542,
5370,
12,
4881,
1769,
202,
202,
759,
2660,
202,
97,
368,
444,
5370,
1435,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5370,
12,
12958,
5370,
5915,
13,
288,
202,
202,
9565,
18,
542,
5370,
12,
4881,
1769,
202,
202,
759,
2660,
202,
97,
368,
444,
5370,
1435,
2,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.