rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
sequence
attention_mask
sequence
labels
sequence
Thread.sleep( 100 );
Thread.sleep( 1000 );
public void testOverWriteSnap() throws MojoExecutionException, InterruptedException, IOException { Set artifacts = new HashSet(); Artifact snap = stubFactory.getSnapshotArtifact(); snap.getFile().setLastModified( System.currentTimeMillis() - 2000 ); artifacts.add( snap ); mojo.project.setArtifacts( artifacts ); mojo.project.setDependencyArtifacts( artifacts ); mojo.overWriteReleases = false; mojo.overWriteSnapshots = true; mojo.overWriteIfNewer = false; mojo.execute(); File copiedFile = new File( mojo.outputDirectory, DependencyUtil.getFormattedFileName( snap, false ) ); Thread.sleep( 100 ); long time = System.currentTimeMillis(); copiedFile.setLastModified( time ); Thread.sleep( 100 ); mojo.execute(); assertTrue( time < copiedFile.lastModified() ); }
57869 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57869/d213408ec880bc163b07fd51e19ed11d2e00278a/TestCopyDependenciesMojo.java/clean/src/test/java/org/apache/maven/plugin/dependency/TestCopyDependenciesMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4851, 3067, 24063, 1435, 3639, 1216, 18780, 16, 7558, 16, 1860, 565, 288, 3639, 1000, 16259, 273, 394, 6847, 5621, 3639, 14022, 10915, 273, 7168, 1733, 18, 588, 4568, 7581, 5621, 3639, 10915, 18, 29925, 7675, 542, 14747, 12, 2332, 18, 2972, 28512, 1435, 300, 16291, 11272, 3639, 16259, 18, 1289, 12, 10915, 11272, 3639, 312, 10007, 18, 4406, 18, 542, 16981, 12, 16259, 11272, 3639, 312, 10007, 18, 4406, 18, 542, 7787, 16981, 12, 16259, 11272, 3639, 312, 10007, 18, 1643, 3067, 26217, 273, 629, 31, 3639, 312, 10007, 18, 1643, 3067, 17095, 273, 638, 31, 3639, 312, 10007, 18, 1643, 3067, 2047, 1908, 264, 273, 629, 31, 3639, 312, 10007, 18, 8837, 5621, 3639, 1387, 9268, 812, 273, 394, 1387, 12, 312, 10007, 18, 2844, 2853, 16, 11993, 1304, 18, 588, 18298, 4771, 12, 10915, 16, 629, 262, 11272, 540, 4884, 18, 19607, 12, 4336, 11272, 3639, 1525, 813, 273, 2332, 18, 2972, 28512, 5621, 3639, 9268, 812, 18, 542, 14747, 12, 813, 11272, 540, 4884, 18, 19607, 12, 4336, 11272, 3639, 312, 10007, 18, 8837, 5621, 3639, 1815, 5510, 12, 813, 411, 9268, 812, 18, 2722, 4575, 1435, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4851, 3067, 24063, 1435, 3639, 1216, 18780, 16, 7558, 16, 1860, 565, 288, 3639, 1000, 16259, 273, 394, 6847, 5621, 3639, 14022, 10915, 273, 7168, 1733, 18, 588, 4568, 7581, 5621, 3639, 10915, 18, 29925, 7675, 542, 14747, 12, 2332, 18, 2972, 28512, 1435, 300, 16291, 11272, 3639, 16259, 18, 1289, 12, 10915, 11272, 3639, 312, 10007, 18, 4406, 18, 542, 16981, 12, 16259, 11272, 3639, 312, 10007, 18, 4406, 18, 542, 7787, 16981, 12, 16259, 11272, 3639, 312, 10007, 18, 1643, 3067, 26217, 273, 629, 31, 3639, 312, 10007, 18, 1643, 3067, 17095, 273, 638, 31, 3639, 312, 10007, 18, 1643, 3067, 2047, 1908, 264, 273, 629, 31, 3639, 312, 10007, 18, 8837, 5621, 2 ]
languagePropertiesMap.put( languageIso639_2, languageProperties) ;
languagePropertiesMap.put( languageIso639_2, languageProperties );
public Properties getLanguageProperties( UserDomainObject user ) { String languageIso639_2 = user.getLanguageIso639_2(); Properties languageProperties = (Properties)languagePropertiesMap.get( languageIso639_2 ) ; if (null == languageProperties) { String propertiesFilename = languageIso639_2 + ".properties"; try { languageProperties = Prefs.getProperties( propertiesFilename ); languagePropertiesMap.put( languageIso639_2, languageProperties) ; } catch ( IOException e ) { log.fatal( "Failed to read language properties from " + propertiesFilename, e ); throw new UnhandledException( e ) ; } } return languageProperties ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1b4f9a2d878ad077383741d3c606d79f9a39f52f/DefaultImcmsServices.java/clean/server/src/imcode/server/DefaultImcmsServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 12898, 2297, 12, 2177, 3748, 921, 729, 262, 288, 3639, 514, 2653, 18516, 21607, 67, 22, 273, 729, 18, 588, 3779, 18516, 21607, 67, 22, 5621, 3639, 6183, 2653, 2297, 273, 261, 2297, 13, 4923, 2297, 863, 18, 588, 12, 2653, 18516, 21607, 67, 22, 262, 274, 3639, 309, 261, 2011, 422, 2653, 2297, 13, 288, 5411, 514, 1790, 5359, 273, 2653, 18516, 21607, 67, 22, 397, 3552, 4738, 14432, 5411, 775, 288, 7734, 2653, 2297, 273, 453, 9316, 18, 588, 2297, 12, 1790, 5359, 11272, 7734, 2653, 2297, 863, 18, 458, 12, 2653, 18516, 21607, 67, 22, 16, 2653, 2297, 11272, 5411, 289, 1044, 261, 1860, 425, 262, 288, 7734, 613, 18, 30709, 12, 315, 2925, 358, 855, 2653, 1790, 628, 315, 397, 1790, 5359, 16, 425, 11272, 7734, 604, 394, 1351, 14387, 503, 12, 425, 262, 274, 5411, 289, 3639, 289, 3639, 327, 2653, 2297, 274, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 12898, 2297, 12, 2177, 3748, 921, 729, 262, 288, 3639, 514, 2653, 18516, 21607, 67, 22, 273, 729, 18, 588, 3779, 18516, 21607, 67, 22, 5621, 3639, 6183, 2653, 2297, 273, 261, 2297, 13, 4923, 2297, 863, 18, 588, 12, 2653, 18516, 21607, 67, 22, 262, 274, 3639, 309, 261, 2011, 422, 2653, 2297, 13, 288, 5411, 514, 1790, 5359, 273, 2653, 18516, 21607, 67, 22, 397, 3552, 4738, 14432, 5411, 775, 288, 7734, 2653, 2297, 273, 453, 9316, 18, 588, 2297, 12, 1790, 5359, 11272, 7734, 2653, 2297, 863, 18, 458, 12, 2653, 18516, 21607, 67, 22, 16, 2653, 2297, 11272, 5411, 289, 1044, 261, 1860, 425, 262, 288, 7734, 613, 18, 30709, 12, 315, 2 ]
public org.quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { org.quickfix.field.RepurchaseRate value = new org.quickfix.field.RepurchaseRate();
public quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { quickfix.field.RepurchaseRate value = new quickfix.field.RepurchaseRate();
public org.quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { org.quickfix.field.RepurchaseRate value = new org.quickfix.field.RepurchaseRate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix43/DontKnowTrade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 5561, 12688, 12104, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 12688, 12104, 4727, 5561, 12688, 12104, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4727, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(fontProvider != null)
if(fontProvider != null) {
public void setFontsAndColors(TableItem tableItem, Object element, int column){ if (colorProvider != null) { tableItem.setBackground(column, colorProvider.getBackground(element, column)); tableItem.setForeground(column, colorProvider.getForeground(element, column)); } if(fontProvider != null) tableItem.setFont(column,fontProvider.getFont(element,column)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/391f2606b4ea2c1fb5052d938ca90877ee7631f6/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20454, 87, 1876, 12570, 12, 1388, 1180, 1014, 1180, 16, 1033, 930, 16, 509, 1057, 15329, 1082, 202, 430, 261, 3266, 2249, 480, 446, 13, 288, 9506, 202, 2121, 1180, 18, 542, 8199, 12, 2827, 16, 2036, 2249, 18, 588, 8199, 12, 2956, 16, 25083, 202, 2827, 10019, 9506, 202, 2121, 1180, 18, 542, 23206, 12, 2827, 16, 2036, 2249, 18, 588, 23206, 12, 2956, 16, 25083, 202, 2827, 10019, 1082, 202, 97, 1082, 202, 430, 12, 5776, 2249, 480, 446, 13, 9506, 202, 2121, 1180, 18, 542, 5711, 12, 2827, 16, 5776, 2249, 18, 588, 5711, 12, 2956,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20454, 87, 1876, 12570, 12, 1388, 1180, 1014, 1180, 16, 1033, 930, 16, 509, 1057, 15329, 1082, 202, 430, 261, 3266, 2249, 480, 446, 13, 288, 9506, 202, 2121, 1180, 18, 542, 8199, 12, 2827, 16, 2036, 2249, 18, 588, 8199, 12, 2956, 16, 25083, 202, 2827, 10019, 9506, 202, 2121, 1180, 18, 542, 23206, 12, 2827, 16, 2036, 2249, 18, 588, 23206, 12, 2956, 16, 25083, 202, 2827, 10019, 1082, 202, 97, 1082, 202, 430, 12, 5776, 2249, 480, 446, 13, 9506, 202, 2121, 1180, 18, 542, 5711, 12, 2827, 16, 5776, 2249, 18, 588, 5711, 12, 2956, 16, 2827, 10019, 202, 202, 97, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
imgTrafo.transform(userAreaC, 0, imgAreaC, 0, 4); areaXoff = imgAreaC[0].getX(); areaYoff = imgAreaC[0].getY();
Rectangle2D userImgArea = imgTrafo.createTransformedShape(relUserArea).getBounds2D();
void processRequest( HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // time for benchmarking long startTime = System.currentTimeMillis(); // output mime/type String mimeType = "image/png"; /* * parameters for a session */ // scale the image file to fit window size i.e. respect dw,dh boolean scaleToFit = true; // crop the image if needed boolean cropToFit = true; // use heuristics (GIF?) to scale or send as is boolean autoScale = true; // try prescaled images first boolean preScaledFirst = true; // interpolation to use for scaling int scaleQual = 0; // send html error message (or image file) boolean errorMsgHtml = false; // mirror the image boolean doMirror = false; // angle of mirror axis double mirrorAngle = 0; /* * request parameters */ DigilibRequest dlRequest = (DigilibRequest) request.getAttribute("digilib.servlet.request"); // destination image width int paramDW = dlRequest.getDw(); // destination image height int paramDH = dlRequest.getDh(); // relative area x_offset (0..1) double paramWX = dlRequest.getWx(); // relative area y_offset double paramWY = dlRequest.getWy(); // relative area width (0..1) double paramWW = dlRequest.getWw(); // relative area height double paramWH = dlRequest.getWh(); // scale factor (additional to dw/width, dh/height) double paramWS = dlRequest.getWs(); // rotation angle double paramROT = dlRequest.getRot(); // contrast enhancement float paramCONT = dlRequest.getCont(); // brightness enhancement float paramBRGT = dlRequest.getBrgt(); // color modification float[] paramRGBM = dlRequest.getRgbm(); float[] paramRGBA = dlRequest.getRgba(); /* operation mode: "fit": always fit to page, * "clip": send original resolution cropped, "file": send whole file (if * allowed) */ if (dlRequest.isOption("clip")) { scaleToFit = false; cropToFit = true; autoScale = false; } else if (dlRequest.isOption("fit")) { scaleToFit = true; cropToFit = true; autoScale = false; } else if (dlRequest.isOption("file")) { scaleToFit = false; if (dlConfig.isSendFileAllowed()) { cropToFit = false; } else { cropToFit = true; } autoScale = false; } // operation mode: "errtxt": error message in html, "errimg": error image if (dlRequest.isOption("errtxt")) { errorMsgHtml = true; } else if (dlRequest.isOption("errimg")) { errorMsgHtml = false; } // operation mode: "q0" - "q2": interpolation quality if (dlRequest.isOption("q0")) { scaleQual = 0; } else if (dlRequest.isOption("q1")) { scaleQual = 1; } else if (dlRequest.isOption("q2")) { scaleQual = 2; } // operation mode: "lores": try to use scaled image, "hires": use unscaled image if (dlRequest.isOption("lores")) { preScaledFirst = true; } else if (dlRequest.isOption("hires")) { preScaledFirst = false; } // operation mode: "hmir": mirror horizontally, "vmir": mirror vertically if (dlRequest.isOption("hmir")) { doMirror = true; mirrorAngle = 0; } else if (dlRequest.isOption("vmir")) { doMirror = true; mirrorAngle = 90; } //"big" try for all file/image actions try { // new DocuImage instance DocuImage docuImage = dlConfig.getDocuImageInstance(); if (docuImage == null) { throw new ImageOpException("Unable to load DocuImage class!"); } // set interpolation quality docuImage.setQuality(scaleQual); /* * find the file to load/send */ // get PathInfo String loadPathName = dlRequest.getFilePath(); /* * check permissions */ if (useAuthentication) { // get a list of required roles (empty if no restrictions) List rolesRequired = authOp.rolesForPath(loadPathName, request); if (rolesRequired != null) { util.dprintln(1, "Role required: " + rolesRequired); util.dprintln(2, "User: " + request.getRemoteUser()); // is the current request/user authorized? if (!authOp.isRoleAuthorized(rolesRequired, request)) { // send deny answer and abort util.dprintln(1, "ERROR: access denied!"); if (errorMsgHtml) { ServletOps.htmlMessage( "ERROR: Unauthorized access!", response); } else { servletOp.sendFile( new File(dlConfig.getDenyImgFileName()), response); } return; } } } // if it's zoomed, try hires version (to be optimized...) if ((paramWW < 1f) || (paramWH < 1f)) { preScaledFirst = false; } // find the file DocuFile fileToLoad; DocuFileset fileset = dirCache.getFileset(loadPathName, dlRequest.getPn()); if (fileset == null) { throw new FileOpException( "File " + loadPathName + "(" + dlRequest.getPn() + ") not found."); } // simplistic selection of resolution if (preScaledFirst) { // get last element fileToLoad = fileset.get(fileset.size() - 1); } else { // get first element fileToLoad = fileset.get(0); } util.dprintln(1, "Loading: " + fileToLoad.getFile()); // check the source image docuImage.checkFile(fileToLoad); // get the source image type mimeType = fileToLoad.getMimetype(); /* if autoScale and not zoomed and source is GIF/PNG * then send as is. */ if ((autoScale && (mimeType == "image/gif" || mimeType == "image/png") && (paramWW == 1f) && (paramWH == 1f)) || (autoScale && !(scaleToFit || cropToFit))) { util.dprintln(1, "Sending File as is."); servletOp.sendFile(fileToLoad.getFile(), response); util.dprintln( 1, "Done in " + (System.currentTimeMillis() - startTime) + "ms"); return; } /* * crop and scale the image */ int imgWidth = 0; int imgHeight = 0; // get image size if (fileToLoad.getSize() == null) { // size unknown so far imgWidth = docuImage.getWidth(); imgHeight = docuImage.getHeight(); // remember size fileToLoad.setSize(new Dimension(imgWidth, imgHeight)); } else { imgWidth = fileToLoad.getSize().width; imgHeight = fileToLoad.getSize().height; } util.dprintln(2, "IMG: " + imgWidth + "x" + imgHeight); util.dprintln( 2, "time " + (System.currentTimeMillis() - startTime) + "ms"); // coordinates using Java2D // image size Rectangle2D imgBounds = new Rectangle2D.Double(0, 0, imgWidth, imgHeight); // user window area in 4-point form (ul, ur, ll, lr) Point2D[] userAreaC = { new Point2D.Double(paramWX, paramWY), new Point2D.Double(paramWX + paramWW, paramWY), new Point2D.Double(paramWX, paramWY + paramWH), new Point2D.Double(paramWX + paramWW, paramWY + paramWH)}; // transformation from relative [0,1] to image coordinates. AffineTransform imgTrafo = new AffineTransform(); imgTrafo.scale(imgWidth, imgHeight); // rotate coordinates //imgTrafo.rotate(Math.toRadians(-paramROT)); // coordinates and scaling double areaXoff; double areaYoff; double areaWidth; double areaHeight; double scaleX; double scaleY; double scaleXY; /* if (scaleToFit) { // calculate absolute from relative coordinates areaXoff = paramWX * imgWidth; areaYoff = paramWY * imgHeight; areaWidth = paramWW * imgWidth; areaHeight = paramWH * imgHeight; // calculate scaling factors scaleX = paramDW / areaWidth * paramWS; scaleY = paramDH / areaHeight * paramWS; scaleXY = (scaleX > scaleY) ? scaleY : scaleX; } else { // crop to fit // calculate absolute from relative coordinates areaXoff = paramWX * imgWidth; areaYoff = paramWY * imgHeight; areaWidth = paramDW; areaHeight = paramDH; // calculate scaling factors scaleX = 1f; scaleY = 1f; scaleXY = 1f; } util.dprintln( 1, "Scale " + scaleXY + "(" + scaleX + "," + scaleY + ") on " + areaXoff + "," + areaYoff + " " + areaWidth + "x" + areaHeight); */ // Java2D // area in image pixel coordinates Point2D[] imgAreaC = { null, null, null, null }; // transform user coordinate area to image coordinate area imgTrafo.transform(userAreaC, 0, imgAreaC, 0, 4); areaXoff = imgAreaC[0].getX(); areaYoff = imgAreaC[0].getY(); // calculate scaling factors if (scaleToFit) { areaWidth = imgAreaC[0].distance(imgAreaC[1]); areaHeight = imgAreaC[0].distance(imgAreaC[2]); scaleX = paramDW / areaWidth * paramWS; scaleY = paramDH / areaHeight * paramWS; scaleXY = (scaleX > scaleY) ? scaleY : scaleX; } else { // crop to fit areaWidth = paramDW * paramWS; areaHeight = paramDH * paramWS; scaleX = 1f; scaleY = 1f; scaleXY = 1f; } util.dprintln( 1, "Scale " + scaleXY + "(" + scaleX + "," + scaleY + ") on " + areaXoff + "," + areaYoff + " " + areaWidth + "x" + areaHeight); // clip area at the image border /* areaWidth = (areaXoff + areaWidth > imgWidth) ? imgWidth - areaXoff : areaWidth; areaHeight = (areaYoff + areaHeight > imgHeight) ? imgHeight - areaYoff : areaHeight; */ // create new rectangle from coordinates Rectangle2D imgArea = new Rectangle2D.Double( areaXoff, areaYoff, areaWidth, areaHeight); // clip area at the image border imgArea = imgArea.createIntersection(imgBounds); areaWidth = imgArea.getWidth(); areaHeight = imgArea.getHeight(); util.dprintln( 2, "crop: " + areaXoff + "," + areaYoff + " " + areaWidth + "x" + areaHeight); // check image parameters sanity if ((areaWidth < 1) || (areaHeight < 1) || (scaleXY * areaWidth < 2) || (scaleXY * areaHeight < 2)) { util.dprintln(1, "ERROR: invalid scale parameter set!"); throw new ImageOpException("Invalid scale parameter set!"); } /* * crop and scale image */ // use subimage loading if possible if (docuImage.isSubimageSupported()) { System.out.println( "Subimage: scale " + scaleXY + " = " + (1 / scaleXY)); double subf = 1d; double subsamp = 1d; if (scaleXY < 1) { subf = 1 / scaleXY; subsamp = Math.floor(subf); scaleXY = subsamp / subf; System.out.println( "Using subsampling: " + subsamp + " rest " + scaleXY); } docuImage.loadSubimage( fileToLoad.getFile(), imgArea.getBounds(), (int) subsamp); System.out.println( "SUBSAMP: " + subsamp + " -> " + docuImage.getWidth() + "x" + docuImage.getHeight()); docuImage.scale(scaleXY); } else { // else load the whole file docuImage.loadImage(fileToLoad.getFile()); docuImage.crop( (int) areaXoff, (int) areaYoff, (int) areaWidth, (int) areaHeight); docuImage.scale(scaleXY); } // mirror image if (doMirror) { docuImage.mirror(mirrorAngle); } // rotate image (first shot :-) if (paramROT != 0) { docuImage.rotate(paramROT); } // contrast and brightness enhancement if ((paramCONT != 0) || (paramBRGT != 0)) { double mult = Math.pow(2, paramCONT); docuImage.enhance((float) mult, (float) paramBRGT); } // color modification if ((paramRGBM != null) || (paramRGBA != null)) { // make shure we actually have two arrays if (paramRGBM == null) { paramRGBM = new float[3]; } if (paramRGBA == null) { paramRGBA = new float[3]; } // calculate "contrast" values float[] mult = new float[3]; for (int i = 0; i < 3; i++) { mult[i] = (float) Math.pow(2, (double) paramRGBM[i]); } docuImage.enhanceRGB(mult, paramRGBA); } util.dprintln( 2, "time " + (System.currentTimeMillis() - startTime) + "ms"); /* * write the resulting image */ // setup output -- if source is JPG then dest will be JPG else it's PNG if (mimeType != "image/jpeg") { mimeType = "image/png"; } response.setContentType(mimeType); // write the image docuImage.writeImage(mimeType, response.getOutputStream()); util.dprintln( 1, "Done in " + (System.currentTimeMillis() - startTime) + "ms"); /* * error handling */ } // end of "big" try catch (FileOpException e) { util.dprintln(1, "ERROR: File IO Error: " + e); try { if (errorMsgHtml) { ServletOps.htmlMessage( "ERROR: File IO Error: " + e, response); } else { servletOp.sendFile( new File(dlConfig.getErrorImgFileName()), response); } } catch (FileOpException ex) { } // so we don't get a loop return; } catch (AuthOpException e) { util.dprintln(1, "ERROR: Authorization error: " + e); try { if (errorMsgHtml) { ServletOps.htmlMessage( "ERROR: Authorization error: " + e, response); } else { servletOp.sendFile( new File(dlConfig.getErrorImgFileName()), response); } } catch (FileOpException ex) { } // so we don't get a loop return; } catch (ImageOpException e) { util.dprintln(1, "ERROR: Image Error: " + e); try { if (errorMsgHtml) { ServletOps.htmlMessage( "ERROR: Image Operation Error: " + e, response); } else { servletOp.sendFile( new File(dlConfig.getErrorImgFileName()), response); } } catch (FileOpException ex) { } // so we don't get a loop return; } catch (RuntimeException e) { // JAI likes to throw RuntimeExceptions ;-( util.dprintln(1, "ERROR: Other Image Error: " + e); try { if (errorMsgHtml) { ServletOps.htmlMessage( "ERROR: Other Image Operation Error: " + e, response); } else { servletOp.sendFile( new File(dlConfig.getErrorImgFileName()), response); } } catch (FileOpException ex) { } // so we don't get a loop return; } }
10369 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10369/0bb791d5e8a7c7d4fb4948a0b164f46e93724c2b/Scaler.java/clean/servlet/src/digilib/servlet/Scaler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1207, 691, 12, 202, 202, 2940, 18572, 590, 16, 202, 202, 2940, 29910, 766, 13, 202, 202, 15069, 16517, 16, 1860, 288, 202, 202, 759, 813, 364, 14128, 310, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 759, 876, 4892, 19, 723, 202, 202, 780, 10707, 273, 315, 2730, 19, 6446, 14432, 202, 202, 20308, 1082, 380, 1472, 364, 279, 1339, 1082, 1195, 202, 202, 759, 3159, 326, 1316, 585, 358, 4845, 2742, 963, 277, 18, 73, 18, 8762, 12394, 16, 19153, 202, 202, 6494, 3159, 774, 14219, 273, 638, 31, 202, 202, 759, 7987, 326, 1316, 309, 3577, 202, 202, 6494, 7987, 774, 14219, 273, 638, 31, 202, 202, 759, 999, 3904, 295, 4287, 261, 43, 5501, 8535, 358, 3159, 578, 1366, 487, 353, 202, 202, 6494, 3656, 5587, 273, 638, 31, 202, 202, 759, 775, 4075, 12825, 4602, 1122, 202, 202, 6494, 675, 55, 12825, 3759, 273, 638, 31, 202, 202, 759, 12851, 358, 999, 364, 10612, 202, 202, 474, 3159, 5628, 273, 374, 31, 202, 202, 759, 1366, 1729, 555, 883, 261, 280, 1316, 585, 13, 202, 202, 6494, 16949, 4353, 273, 629, 31, 202, 202, 759, 15593, 326, 1316, 202, 202, 6494, 741, 13035, 273, 629, 31, 202, 202, 759, 5291, 434, 15593, 2654, 202, 202, 9056, 15593, 8467, 273, 374, 31, 202, 202, 20308, 1082, 380, 225, 590, 1472, 1082, 1195, 202, 202, 4907, 330, 495, 691, 8910, 691, 273, 1082, 202, 12, 4907, 330, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1207, 691, 12, 202, 202, 2940, 18572, 590, 16, 202, 202, 2940, 29910, 766, 13, 202, 202, 15069, 16517, 16, 1860, 288, 202, 202, 759, 813, 364, 14128, 310, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 759, 876, 4892, 19, 723, 202, 202, 780, 10707, 273, 315, 2730, 19, 6446, 14432, 202, 202, 20308, 1082, 380, 1472, 364, 279, 1339, 1082, 1195, 202, 202, 759, 3159, 326, 1316, 585, 358, 4845, 2742, 963, 277, 18, 73, 18, 8762, 12394, 16, 19153, 202, 202, 6494, 3159, 774, 14219, 273, 638, 31, 202, 202, 759, 7987, 326, 1316, 309, 3577, 202, 202, 6494, 7987, 774, 14219, 273, 638, 31, 202, 202, 759, 999, 2 ]
public Sequence eval(DocumentSet docs, Sequence contextSequence, Item contextItem)
public Sequence eval(Sequence contextSequence, Item contextItem)
public Sequence eval(DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException { return new DateValue(); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/78bd70965f202738e2ca56dacfd71f5d58c0db69/FunCurrentDate.java/clean/src/org/exist/xpath/functions/FunCurrentDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8370, 5302, 12, 2519, 694, 3270, 16, 8370, 819, 4021, 16, 4342, 819, 1180, 13, 202, 202, 15069, 10172, 503, 288, 202, 202, 2463, 394, 2167, 620, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 202, 202, 2463, 394, 2167, 620, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Node createForIn(Node lhs, Node obj, Node body, boolean isForEach, int lineno)
Node createForIn(Node loop, Node lhs, Node obj, Node body, boolean isForEach)
Node createForIn(Node lhs, Node obj, Node body, boolean isForEach, int lineno) { String name; int type = lhs.getType(); Node lvalue = lhs; switch (type) { case Token.NAME: case Token.GETPROP: case Token.GETELEM: case Token.GET_REF: break; case Token.VAR: /* * check that there was only one variable given. * we can't do this in the parser, because then the * parser would have to know something about the * 'init' node of the for-in loop. */ Node lastChild = lhs.getLastChild(); if (lhs.getFirstChild() != lastChild) { parser.reportError("msg.mult.index"); } lvalue = Node.newString(Token.NAME, lastChild.getString()); break; default: parser.reportError("msg.bad.for.in.lhs"); return obj; } Node localBlock = new Node(Token.LOCAL_BLOCK); int initType = (isForEach) ? Token.ENUM_INIT_VALUES : Token.ENUM_INIT_KEYS; Node init = new Node(initType, obj); init.putProp(Node.LOCAL_BLOCK_PROP, localBlock); Node cond = new Node(Token.ENUM_NEXT); cond.putProp(Node.LOCAL_BLOCK_PROP, localBlock); Node id = new Node(Token.ENUM_ID); id.putProp(Node.LOCAL_BLOCK_PROP, localBlock); Node newBody = new Node(Token.BLOCK); Node assign = createAssignment(lvalue, id); newBody.addChildToBack(new Node(Token.EXPR_VOID, assign)); newBody.addChildToBack(body); Node loop = createWhile(cond, newBody, lineno); loop.addChildToFront(init); if (type == Token.VAR) loop.addChildToFront(lhs); localBlock.addChildToBack(loop); return localBlock; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/78e835470e0a90ae1ee62618c62f364ed850bede/IRFactory.java/clean/src/org/mozilla/javascript/IRFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2029, 752, 1290, 382, 12, 907, 8499, 16, 2029, 1081, 16, 2029, 1417, 16, 1250, 353, 1290, 3442, 16, 5397, 509, 7586, 13, 565, 288, 3639, 514, 508, 31, 3639, 509, 618, 273, 8499, 18, 588, 559, 5621, 3639, 2029, 328, 1132, 273, 8499, 31, 3639, 1620, 261, 723, 13, 288, 1850, 648, 3155, 18, 1985, 30, 1850, 648, 3155, 18, 3264, 15811, 30, 1850, 648, 3155, 18, 7113, 1448, 26817, 30, 1850, 648, 3155, 18, 3264, 67, 10771, 30, 5411, 898, 31, 1850, 648, 3155, 18, 7716, 30, 5411, 1748, 2398, 380, 866, 716, 1915, 1703, 1338, 1245, 2190, 864, 18, 2398, 380, 732, 848, 1404, 741, 333, 316, 326, 2082, 16, 2724, 1508, 326, 2398, 380, 2082, 4102, 1240, 358, 5055, 5943, 2973, 326, 2398, 380, 296, 2738, 11, 756, 434, 326, 364, 17, 267, 2798, 18, 2398, 1195, 5411, 2029, 30006, 273, 8499, 18, 588, 3024, 1763, 5621, 5411, 309, 261, 80, 4487, 18, 588, 3759, 1763, 1435, 480, 30006, 13, 288, 7734, 2082, 18, 6006, 668, 2932, 3576, 18, 5421, 18, 1615, 8863, 5411, 289, 5411, 328, 1132, 273, 2029, 18, 2704, 780, 12, 1345, 18, 1985, 16, 30006, 18, 588, 780, 10663, 5411, 898, 31, 1850, 805, 30, 5411, 2082, 18, 6006, 668, 2932, 3576, 18, 8759, 18, 1884, 18, 267, 18, 80, 4487, 8863, 5411, 327, 1081, 31, 3639, 289, 3639, 2029, 1191, 1768, 273, 394, 2029, 12, 1345, 18, 14922, 67, 11403, 1769, 3639, 509, 1208, 559, 273, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2029, 752, 1290, 382, 12, 907, 8499, 16, 2029, 1081, 16, 2029, 1417, 16, 1250, 353, 1290, 3442, 16, 5397, 509, 7586, 13, 565, 288, 3639, 514, 508, 31, 3639, 509, 618, 273, 8499, 18, 588, 559, 5621, 3639, 2029, 328, 1132, 273, 8499, 31, 3639, 1620, 261, 723, 13, 288, 1850, 648, 3155, 18, 1985, 30, 1850, 648, 3155, 18, 3264, 15811, 30, 1850, 648, 3155, 18, 7113, 1448, 26817, 30, 1850, 648, 3155, 18, 3264, 67, 10771, 30, 5411, 898, 31, 1850, 648, 3155, 18, 7716, 30, 5411, 1748, 2398, 380, 866, 716, 1915, 1703, 1338, 1245, 2190, 864, 18, 2398, 380, 732, 848, 1404, 741, 333, 316, 326, 2082, 16, 2724, 1508, 326, 2398, 380, 2 ]
if (i > 0) result.append(separator);
if (i > 0) result.append(separator);
private static String toStringHelper(Context cx, Scriptable thisObj, boolean toSource, boolean toLocale) throws JavaScriptException { /* It's probably redundant to handle long lengths in this * function; StringBuffers are limited to 2^31 in java. */ long length = (long)getLengthProperty(thisObj); StringBuffer result = new StringBuffer(); if (cx.iterating == null) cx.iterating = new Hashtable(31); boolean iterating = cx.iterating.get(thisObj) == Boolean.TRUE; // whether to return '4,unquoted,5' or '[4, "quoted", 5]' String separator; if (toSource) { result.append('['); separator = ", "; } else { separator = ","; } boolean haslast = false; long i = 0; if (!iterating) { for (i = 0; i < length; i++) { if (i > 0) result.append(separator); Object elem = getElem(thisObj, i); if (elem == null || elem == Undefined.instance) { haslast = false; continue; } haslast = true; if (elem instanceof String) { if (toSource) { result.append('\"'); result.append(ScriptRuntime.escapeString (ScriptRuntime.toString(elem))); result.append('\"'); } else { result.append(ScriptRuntime.toString(elem)); } } else { /* wrap changes to cx.iterating in a try/finally * so that the reference always gets removed, and * we don't leak memory. Good place for weak * references, if we had them. */ try { // stop recursion. cx.iterating.put(thisObj, Boolean.TRUE); if (toLocale && elem != Undefined.instance && elem != null) { Scriptable obj = cx.toObject(elem, thisObj); Object tls = ScriptRuntime.getProp(obj, "toLocaleString", thisObj); elem = ScriptRuntime.call(cx, tls, elem, ScriptRuntime.emptyArgs); } result.append(ScriptRuntime.toString(elem)); } finally { cx.iterating.remove(thisObj); } } } } if (toSource) { //for [,,].length behavior; we want toString to be symmetric. if (!haslast && i > 0) result.append(", ]"); else result.append(']'); } return result.toString(); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/250051383e715d3a12c06e9b723efe99f534b8f7/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1762, 2276, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1250, 358, 1830, 16, 1250, 358, 3916, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1748, 2597, 1807, 8656, 19530, 358, 1640, 1525, 10917, 316, 333, 540, 380, 445, 31, 514, 13699, 854, 13594, 358, 576, 66, 6938, 316, 2252, 18, 540, 1195, 3639, 1525, 769, 273, 261, 5748, 13, 588, 1782, 1396, 12, 2211, 2675, 1769, 3639, 6674, 563, 273, 394, 6674, 5621, 3639, 309, 261, 71, 92, 18, 2165, 1776, 422, 446, 13, 5411, 9494, 18, 2165, 1776, 273, 394, 18559, 12, 6938, 1769, 3639, 1250, 13099, 273, 9494, 18, 2165, 1776, 18, 588, 12, 2211, 2675, 13, 422, 3411, 18, 18724, 31, 3639, 368, 2856, 358, 327, 296, 24, 16, 318, 15179, 16, 25, 11, 578, 5271, 24, 16, 315, 15179, 3113, 1381, 3864, 3639, 514, 4182, 31, 3639, 309, 261, 869, 1830, 13, 288, 5411, 563, 18, 6923, 2668, 3292, 1769, 5411, 4182, 273, 3104, 13636, 3639, 289, 469, 288, 5411, 4182, 273, 5753, 31, 3639, 289, 3639, 1250, 711, 2722, 273, 629, 31, 3639, 1525, 277, 273, 374, 31, 3639, 309, 16051, 2165, 1776, 13, 288, 5411, 364, 261, 77, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 7734, 309, 261, 77, 405, 374, 13, 10792, 563, 18, 6923, 12, 11287, 1769, 7734, 1033, 3659, 273, 4774, 3269, 12, 2211, 2675, 16, 277, 1769, 7734, 309, 261, 10037, 422, 446, 747, 3659, 422, 22243, 18, 1336, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1762, 2276, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1250, 358, 1830, 16, 1250, 358, 3916, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1748, 2597, 1807, 8656, 19530, 358, 1640, 1525, 10917, 316, 333, 540, 380, 445, 31, 514, 13699, 854, 13594, 358, 576, 66, 6938, 316, 2252, 18, 540, 1195, 3639, 1525, 769, 273, 261, 5748, 13, 588, 1782, 1396, 12, 2211, 2675, 1769, 3639, 6674, 563, 273, 394, 6674, 5621, 3639, 309, 261, 71, 92, 18, 2165, 1776, 422, 446, 13, 5411, 9494, 18, 2165, 1776, 273, 394, 18559, 12, 6938, 1769, 3639, 1250, 13099, 273, 9494, 18, 2165, 1776, 18, 588, 12, 2211, 2675, 13, 422, 3411, 18, 18724, 31, 2 ]
throw new NotCompilableException("Node not supported: " + iVisited.toString());
lineNumber(iVisited); loadRuntime(); invokeIRuby("getNil", "()Lorg/jruby/runtime/builtin/IRubyObject;"); if (iVisited.getBodyNode() != null) { Label l1 = new Label(); Label l2 = new Label(); mv.visitLabel(l1); iVisited.getConditionNode().accept(this); invokeIRubyObject("isTrue", "()Z"); mv.visitJumpInsn(Opcodes.IFNE, l2); iVisited.getBodyNode().accept(this); mv.visitInsn(Opcodes.POP); mv.visitJumpInsn(Opcodes.GOTO, l1); mv.visitLabel(l2); } return null;
public Instruction visitUntilNode(UntilNode iVisited) { throw new NotCompilableException("Node not supported: " + iVisited.toString()); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/1a9bdcaf49f77f5c15fe4d5f69d5815c92686aca/InstructionCompiler2.java/buggy/src/org/jruby/ast/executable/InstructionCompiler2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 3757, 9716, 907, 12, 9716, 907, 277, 30019, 13, 288, 3639, 13629, 12, 77, 30019, 1769, 377, 1262, 5576, 5621, 4356, 7937, 10340, 2932, 588, 12616, 3113, 25605, 48, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 4868, 1769, 225, 309, 261, 77, 30019, 18, 588, 2250, 907, 1435, 480, 446, 13, 288, 5287, 328, 21, 273, 394, 5287, 5621, 5287, 328, 22, 273, 394, 5287, 5621, 225, 7701, 18, 11658, 2224, 12, 80, 21, 1769, 225, 277, 30019, 18, 588, 3418, 907, 7675, 9436, 12, 2211, 1769, 4356, 7937, 10340, 921, 2932, 291, 5510, 3113, 25605, 62, 8863, 225, 7701, 18, 11658, 26743, 11796, 12, 51, 18108, 18, 5501, 5407, 16, 328, 22, 1769, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24605, 3757, 9716, 907, 12, 9716, 907, 277, 30019, 13, 288, 3639, 13629, 12, 77, 30019, 1769, 377, 1262, 5576, 5621, 4356, 7937, 10340, 2932, 588, 12616, 3113, 25605, 48, 3341, 19, 78, 27768, 19, 9448, 19, 24553, 19, 7937, 10340, 921, 4868, 1769, 225, 309, 261, 77, 30019, 18, 588, 2250, 907, 1435, 480, 446, 13, 288, 5287, 328, 21, 273, 394, 5287, 5621, 5287, 328, 22, 273, 394, 5287, 5621, 225, 7701, 18, 11658, 2224, 12, 80, 21, 1769, 225, 277, 30019, 18, 588, 3418, 907, 7675, 9436, 12, 2211, 1769, 4356, 7937, 10340, 921, 2932, 291, 5510, 3113, 25605, 62, 8863, 225, 7701, 18, 11658, 26743, 11796, 12, 51, 18108, 18, 5501, 5407, 16, 2 ]
visitor.getFieldIsStatic());
visitor.getFieldIsStatic());
public static FieldAnnotation fromVisitedField(PreorderVisitor visitor) { return new FieldAnnotation(visitor.getDottedClassName(), visitor.getFieldName(), visitor.getFieldSig(), visitor.getFieldIsStatic()); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/FieldAnnotation.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/FieldAnnotation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2286, 3257, 628, 30019, 974, 12, 1386, 1019, 7413, 8000, 13, 288, 202, 202, 2463, 394, 2286, 3257, 12, 3516, 1811, 18, 588, 10412, 2344, 3834, 9334, 8000, 18, 588, 7287, 9334, 8000, 18, 588, 974, 8267, 9334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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2286, 3257, 628, 30019, 974, 12, 1386, 1019, 7413, 8000, 13, 288, 202, 202, 2463, 394, 2286, 3257, 12, 3516, 1811, 18, 588, 10412, 2344, 3834, 9334, 8000, 18, 588, 7287, 9334, 8000, 18, 588, 974, 8267, 9334, 1082, 202, 3516, 1811, 18, 588, 974, 2520, 5788, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (method.getImplementationClass() == realType &&
if (method.getImplementationClass() == realType &&
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = type.getSuperClass()) { RubyModule realType = type.getNonIncludedClass(); for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); String methodName = (String) entry.getKey(); if (method.isUndefined()) { undefinedMethods.put(methodName, Boolean.TRUE); continue; } if (method.getImplementationClass() == realType && method.getVisibility().is(visibility) && undefinedMethods.get(methodName) == null) { RubyString name = getRuntime().newString(methodName); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 7734, 467, 11452, 707, 273, 261, 45, 11452, 13, 1241, 18, 24805, 5621, 7734, 514, 4918, 273, 261, 780, 13, 1241, 18, 588, 653, 5621, 7734, 309, 261, 2039, 18, 291, 10317, 10756, 288, 1171, 202, 5978, 4712, 18, 458, 12, 2039, 461, 16, 3411, 18, 18724, 1769, 1171, 202, 17143, 31, 7734, 289, 7734, 309, 261, 2039, 18, 588, 13621, 797, 1435, 422, 2863, 559, 597, 5397, 707, 18, 588, 10135, 7675, 291, 12, 14422, 13, 597, 3109, 4712, 18, 588, 12, 2039, 461, 13, 422, 446, 13, 288, 1171, 202, 54, 10340, 780, 508, 273, 18814, 7675, 2704, 780, 12, 2039, 461, 1769, 1171, 202, 430, 16051, 814, 18, 18499, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 2 ]
return RubyFixnum.newFixnum(runtime, cal.get(Calendar.HOUR_OF_DAY));
return getRuntime().newFixnum(cal.get(Calendar.HOUR_OF_DAY));
public RubyInteger hour() { return RubyFixnum.newFixnum(runtime, cal.get(Calendar.HOUR_OF_DAY)); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/clean/src/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 6126, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 771, 18, 588, 12, 7335, 18, 21372, 67, 3932, 67, 10339, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 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, 4522, 6126, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 771, 18, 588, 12, 7335, 18, 21372, 67, 3932, 67, 10339, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
/* * Continue with the expression. If this the end of the child, use * the current continuation. */
executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; pushProgState(gData, 0, 0, null, currentContinuation_pc, currentContinuation_op); nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state = popProgState(gData); currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; pushProgState(gData, 0, 0, gData.backTrackLast, currentContinuation_pc, currentContinuation_op); if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state = popProgState(gData); gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } pushProgState(gData, min, max, null, currentContinuation_pc, currentContinuation_op); if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state = popProgState(gData); if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; if (new_max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state = popProgState(gData); if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { pushProgState(gData, state.min, state.max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); if (new_min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/21f0e29bbdfc8503803ff1fb05a60d0d11f579d5/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1836, 862, 858, 16651, 12, 862, 5160, 751, 314, 751, 16, 1149, 8526, 5230, 16, 509, 679, 13, 565, 288, 3639, 509, 6125, 273, 374, 31, 3639, 1160, 5402, 8526, 273, 314, 751, 18, 17745, 18, 12890, 31, 3639, 509, 1061, 273, 5402, 63, 2436, 9904, 15533, 3639, 509, 783, 660, 23946, 67, 556, 31, 3639, 509, 783, 660, 23946, 67, 2436, 31, 3639, 1250, 563, 273, 629, 31, 3639, 783, 660, 23946, 67, 2436, 273, 374, 31, 3639, 783, 660, 23946, 67, 556, 273, 2438, 3665, 67, 4415, 31, 430, 261, 4148, 13, 288, 3163, 18, 659, 18, 8222, 2932, 1210, 273, 11843, 397, 394, 514, 12, 7549, 13, 397, 1548, 3113, 787, 622, 315, 397, 314, 751, 18, 4057, 1769, 97, 3639, 364, 261, 25708, 13, 288, 430, 261, 4148, 13, 288, 3163, 18, 659, 18, 8222, 2932, 22218, 622, 315, 397, 314, 751, 18, 4057, 397, 3104, 1061, 273, 315, 397, 1061, 1769, 97, 5411, 1620, 261, 556, 13, 288, 5411, 648, 2438, 3665, 67, 13625, 30, 7734, 563, 273, 638, 31, 7734, 898, 31, 5411, 648, 2438, 3665, 67, 38, 1741, 30, 7734, 309, 261, 75, 751, 18, 4057, 480, 374, 13, 288, 10792, 309, 261, 75, 751, 18, 5421, 12554, 747, 18701, 14015, 75, 751, 18, 17745, 18, 7133, 473, 6756, 5937, 67, 12845, 30690, 13, 480, 374, 3719, 288, 13491, 309, 16051, 291, 1670, 4065, 12, 7549, 63, 75, 751, 18, 4057, 300, 404, 22643, 288, 18701, 563, 273, 629, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1836, 862, 858, 16651, 12, 862, 5160, 751, 314, 751, 16, 1149, 8526, 5230, 16, 509, 679, 13, 565, 288, 3639, 509, 6125, 273, 374, 31, 3639, 1160, 5402, 8526, 273, 314, 751, 18, 17745, 18, 12890, 31, 3639, 509, 1061, 273, 5402, 63, 2436, 9904, 15533, 3639, 509, 783, 660, 23946, 67, 556, 31, 3639, 509, 783, 660, 23946, 67, 2436, 31, 3639, 1250, 563, 273, 629, 31, 3639, 783, 660, 23946, 67, 2436, 273, 374, 31, 3639, 783, 660, 23946, 67, 556, 273, 2438, 3665, 67, 4415, 31, 430, 261, 4148, 13, 288, 3163, 18, 659, 18, 8222, 2932, 1210, 273, 11843, 397, 394, 514, 12, 7549, 13, 397, 1548, 3113, 787, 622, 315, 397, 314, 2 ]
if (in.match('=')) {
if (matchChar('=')) {
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/5739d875ab983543fdf729f70a15773fdbe9b1bd/TokenStream.java/buggy/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, 13, 288, 5411, 509, 563, 273, 333, 18, 6206, 823, 1345, 31, 5411, 333, 18, 6206, 823, 1345, 273, 6431, 31, 5411, 327, 563, 31, 3639, 289, 3639, 368, 512, 270, 7983, 16, 10016, 16692, 358, 19181, 18, 3639, 741, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 2337, 82, 6134, 288, 7734, 2943, 12058, 4871, 8047, 42, 67, 4537, 5538, 5997, 31, 7734, 309, 14015, 7133, 473, 15508, 42, 67, 12917, 5997, 55, 13, 480, 374, 13, 10792, 898, 31, 5411, 289, 3639, 289, 1323, 261, 291, 46, 1260, 909, 12, 71, 13, 747, 276, 422, 2337, 82, 8284, 3639, 309, 261, 71, 422, 6431, 67, 7305, 13, 5411, 327, 6431, 31, 3639, 309, 261, 71, 480, 4014, 597, 276, 480, 2337, 82, 6134, 5411, 2943, 5626, 15508, 42, 67, 4537, 5538, 5997, 31, 3639, 368, 2756, 19, 11041, 19, 1336, 792, 35, 3639, 368, 4267, 596, 364, 5023, 598, 279, 411, 823, 12877, 34, 3639, 1250, 2756, 1685, 31, 3639, 1250, 353, 16532, 8448, 1685, 273, 629, 31, 3639, 309, 261, 71, 422, 5282, 13, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 296, 89, 6134, 288, 7734, 2756, 1685, 273, 638, 31, 7734, 353, 16532, 8448, 1685, 273, 638, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, 13, 288, 5411, 509, 563, 273, 333, 18, 6206, 823, 1345, 31, 5411, 333, 18, 6206, 823, 1345, 273, 6431, 31, 5411, 327, 563, 31, 3639, 289, 3639, 368, 512, 270, 7983, 16, 10016, 16692, 358, 19181, 18, 3639, 741, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 2337, 82, 6134, 288, 7734, 2943, 12058, 4871, 8047, 42, 67, 4537, 5538, 5997, 31, 7734, 309, 14015, 7133, 473, 15508, 42, 67, 12917, 5997, 55, 13, 480, 374, 13, 10792, 2 ]
throw new IllegalArgumentException("The Enum name must not be empty");
throw new IllegalArgumentException("The Enum name must not be empty or null");
protected Enum(String name) { super(); if (name == null || name.length() == 0) { throw new IllegalArgumentException("The Enum name must not be empty"); } iName = name; Class enumClass = Enum.getEnumClass(getClass()); Entry entry = (Entry) cEnumClasses.get(enumClass); if (entry == null) { entry = createEntry(getClass()); cEnumClasses.put(enumClass, entry); } if (entry.map.containsKey(name)) { throw new IllegalArgumentException("The Enum name must be unique, '" + name + "' has already been added"); } entry.map.put(name, this); entry.list.add(this); }
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/bdbde6db66fe96223f7d4e5f3375def53a35793c/Enum.java/clean/src/java/org/apache/commons/lang/enum/Enum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 6057, 12, 780, 508, 13, 288, 3639, 2240, 5621, 3639, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 288, 5411, 604, 394, 2754, 2932, 1986, 6057, 508, 1297, 486, 506, 1008, 578, 446, 8863, 3639, 289, 3639, 277, 461, 273, 508, 31, 3639, 1659, 2792, 797, 273, 6057, 18, 588, 3572, 797, 12, 588, 797, 10663, 3639, 3841, 1241, 273, 261, 1622, 13, 276, 3572, 4818, 18, 588, 12, 7924, 797, 1769, 3639, 309, 261, 4099, 422, 446, 13, 288, 5411, 1241, 273, 752, 1622, 12, 588, 797, 10663, 5411, 276, 3572, 4818, 18, 458, 12, 7924, 797, 16, 1241, 1769, 3639, 289, 3639, 309, 261, 4099, 18, 1458, 18, 12298, 653, 12, 529, 3719, 288, 5411, 604, 394, 2754, 2932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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 6057, 12, 780, 508, 13, 288, 3639, 2240, 5621, 3639, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 288, 5411, 604, 394, 2754, 2932, 1986, 6057, 508, 1297, 486, 506, 1008, 578, 446, 8863, 3639, 289, 3639, 277, 461, 273, 508, 31, 3639, 1659, 2792, 797, 273, 6057, 18, 588, 3572, 797, 12, 588, 797, 10663, 3639, 3841, 1241, 273, 261, 1622, 13, 276, 3572, 4818, 18, 588, 12, 7924, 797, 1769, 3639, 309, 261, 4099, 422, 446, 13, 288, 5411, 1241, 273, 752, 1622, 12, 588, 797, 10663, 5411, 276, 3572, 4818, 18, 458, 12, 7924, 797, 16, 1241, 1769, 3639, 289, 3639, 309, 261, 4099, 18, 1458, 18, 12298, 653, 2 ]
if (debug) { printDebug("Calling ", meth, args); } Object retval;
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } Method meth = (Method) findFunction(methods, args); if (meth == null) { Class c = methods[0].getDeclaringClass(); String sig = c.getName() + "." + functionName + "(" + scriptSignature(args) + ")"; throw Context.reportRuntimeError1("msg.java.no_such_method", sig); } // OPT: already retrieved in findFunction, so we should inline that // OPT: or pass it back somehow Class paramTypes[] = meth.getParameterTypes(); // First, we marshall the args. Object[] origArgs = args; for (int i = 0; i < args.length; i++) { Object arg = args[i]; Object coerced = NativeJavaObject.coerceType(paramTypes[i], arg, true); if (coerced != arg) { if (origArgs == args) { args = (Object[])args.clone(); } args[i] = coerced; } } Object javaObject; if (Modifier.isStatic(meth.getModifiers())) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; while (!(o instanceof Wrapper)) { o = o.getPrototype(); if (o == null) { throw Context.reportRuntimeError1( "msg.nonjava.method", functionName); } } javaObject = ((Wrapper) o).unwrap(); } try { if (debug) { printDebug("Calling ", meth, args); } Object retval; try { retval = meth.invoke(javaObject, args); } catch (IllegalAccessException e) { retval = retryIllegalAccessInvoke(meth, javaObject, args, e); } Class staticType = meth.getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = cx.getWrapFactory().wrap(cx, scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == Undefined.instance) return wrapped; if (wrapped == null && staticType == Void.TYPE) return Undefined.instance; return wrapped; } catch (IllegalAccessException accessEx) { throw Context.reportRuntimeError( "While attempting to call \"" + meth.getName() + "\" in class \"" + meth.getDeclaringClass().getName() + "\" receieved " + accessEx.toString()); } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(cx, scope, e); } }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/10e5abd5a19b72e9c2545091ffe6117854fc79c8/NativeJavaMethod.java/buggy/js/rhino/src/org/mozilla/javascript/NativeJavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 368, 4163, 279, 707, 716, 1885, 326, 1953, 864, 18, 3639, 309, 261, 5163, 18, 2469, 422, 374, 13, 288, 5411, 604, 394, 3235, 2932, 2279, 2590, 2553, 364, 745, 8863, 3639, 289, 3639, 2985, 7917, 273, 261, 1305, 13, 1104, 2083, 12, 5163, 16, 833, 1769, 3639, 309, 261, 27305, 422, 446, 13, 288, 5411, 1659, 276, 273, 2590, 63, 20, 8009, 588, 3456, 14682, 5621, 5411, 514, 3553, 273, 276, 18, 17994, 1435, 397, 4585, 397, 14117, 397, 12452, 397, 7682, 2728, 5374, 12, 1968, 13, 397, 7310, 31, 5411, 604, 1772, 18, 6006, 5576, 668, 21, 2932, 3576, 18, 6290, 18, 2135, 67, 87, 2648, 67, 2039, 3113, 3553, 1769, 3639, 289, 3639, 368, 16456, 30, 1818, 10295, 316, 1104, 2083, 16, 1427, 732, 1410, 6370, 716, 3639, 368, 16456, 30, 578, 1342, 518, 1473, 28578, 3639, 1659, 21265, 8526, 273, 7917, 18, 588, 1662, 2016, 5621, 3639, 368, 5783, 16, 732, 1833, 326, 833, 18, 3639, 1033, 8526, 1647, 2615, 273, 833, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 1033, 1501, 273, 833, 63, 77, 15533, 5411, 1033, 12270, 72, 273, 16717, 5852, 921, 18, 2894, 2765, 559, 12, 891, 2016, 63, 77, 6487, 1501, 16, 4766, 7682, 638, 1769, 5411, 309, 261, 2894, 2765, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 368, 4163, 279, 707, 716, 1885, 326, 1953, 864, 18, 3639, 309, 261, 5163, 18, 2469, 422, 374, 13, 288, 5411, 604, 394, 3235, 2932, 2279, 2590, 2553, 364, 745, 8863, 3639, 289, 3639, 2985, 7917, 273, 261, 1305, 13, 1104, 2083, 12, 5163, 16, 833, 1769, 3639, 309, 261, 27305, 422, 446, 13, 288, 5411, 1659, 276, 273, 2590, 63, 20, 8009, 588, 3456, 14682, 5621, 5411, 514, 3553, 273, 276, 18, 17994, 1435, 397, 4585, 397, 14117, 397, 12452, 397, 7682, 2728, 5374, 12, 1968, 13, 397, 7310, 31, 5411, 604, 2 ]
return "</select>";
StringBuffer sb = new StringBuffer(); Iterator it = container.iterator(); while (it.hasNext()) { ListBoxItemBean itemBean = (ListBoxItemBean)it.next(); sb.append(itemBean.toStartString()); sb.append(itemBean.toEndString()); } sb.append("</select>"); return sb.toString();
public String toEndString() { return "</select>"; }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/f3d58772046a69f3862d71d9cd267f054cf1bb28/ListBoxBean.java/clean/src/org/gridlab/gridsphere/provider/portletui/beans/ListBoxBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 358, 1638, 780, 1435, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 4498, 518, 273, 1478, 18, 9838, 5621, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 987, 3514, 1180, 3381, 761, 3381, 273, 261, 682, 3514, 1180, 3381, 13, 305, 18, 4285, 5621, 2393, 18, 6923, 12, 1726, 3381, 18, 869, 1685, 780, 10663, 2393, 18, 6923, 12, 1726, 3381, 18, 869, 1638, 780, 10663, 289, 2393, 18, 6923, 2932, 1757, 4025, 2984, 1769, 327, 2393, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 358, 1638, 780, 1435, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 4498, 518, 273, 1478, 18, 9838, 5621, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 987, 3514, 1180, 3381, 761, 3381, 273, 261, 682, 3514, 1180, 3381, 13, 305, 18, 4285, 5621, 2393, 18, 6923, 12, 1726, 3381, 18, 869, 1685, 780, 10663, 2393, 18, 6923, 12, 1726, 3381, 18, 869, 1638, 780, 10663, 289, 2393, 18, 6923, 2932, 1757, 4025, 2984, 1769, 327, 2393, 18, 10492, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue());
ruby.getRuntime().getOutputStream().print(((RubyString)m_sprintf(ruby, recv, args)).getValue());
public static RubyObject m_printf(Ruby ruby, RubyObject recv, RubyObject args[]) { System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 312, 67, 1461, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 833, 63, 5717, 288, 3639, 22155, 18, 588, 5576, 7675, 588, 4632, 7675, 1188, 12443, 12, 54, 10340, 780, 13, 81, 67, 87, 1461, 12, 27768, 16, 10665, 16, 833, 13, 2934, 24805, 10663, 3639, 327, 22155, 18, 588, 12616, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 312, 67, 1461, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 833, 63, 5717, 288, 3639, 22155, 18, 588, 5576, 7675, 588, 4632, 7675, 1188, 12443, 12, 54, 10340, 780, 13, 81, 67, 87, 1461, 12, 27768, 16, 10665, 16, 833, 13, 2934, 24805, 10663, 3639, 327, 22155, 18, 588, 12616, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (code >= 200 && code < 300) {
if (code >= 200 && code < 300) {
private void assertOk(DAVStatus status, int[] codes) throws SVNException { int code = status.getResponseCode(); if (codes == null) { // check that all are > 200. if (code >= 200 && code < 300) { return; } readError(status); throw new SVNException("server reports an error: " + status); } for(int i = 0; i < codes.length; i++) { if (code == codes[i]) { return; } } readError(status); throw new SVNException("server reports an error: " + status); }
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/914a44a66c3f7b5fd84b42c4bcea84b237f62804/HttpConnection.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/HttpConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 225, 918, 1815, 8809, 12, 17735, 1482, 1267, 16, 509, 8526, 6198, 13, 1216, 29537, 50, 503, 288, 3639, 509, 981, 273, 1267, 18, 588, 1064, 1085, 5621, 3639, 309, 261, 7000, 422, 446, 13, 288, 5411, 368, 866, 716, 777, 854, 405, 4044, 18, 5411, 309, 261, 710, 1545, 4044, 597, 981, 411, 11631, 13, 288, 7734, 327, 31, 5411, 289, 5411, 855, 668, 12, 2327, 1769, 5411, 604, 394, 29537, 50, 503, 2932, 3567, 10557, 392, 555, 30, 315, 397, 1267, 1769, 3639, 289, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 6198, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 710, 422, 6198, 63, 77, 5717, 288, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 855, 668, 12, 2327, 1769, 3639, 604, 394, 29537, 50, 503, 2932, 3567, 10557, 392, 555, 30, 315, 397, 1267, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 225, 918, 1815, 8809, 12, 17735, 1482, 1267, 16, 509, 8526, 6198, 13, 1216, 29537, 50, 503, 288, 3639, 509, 981, 273, 1267, 18, 588, 1064, 1085, 5621, 3639, 309, 261, 7000, 422, 446, 13, 288, 5411, 368, 866, 716, 777, 854, 405, 4044, 18, 5411, 309, 261, 710, 1545, 4044, 597, 981, 411, 11631, 13, 288, 7734, 327, 31, 5411, 289, 5411, 855, 668, 12, 2327, 1769, 5411, 604, 394, 29537, 50, 503, 2932, 3567, 10557, 392, 555, 30, 315, 397, 1267, 1769, 3639, 289, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 6198, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 710, 422, 6198, 63, 77, 5717, 288, 7734, 327, 31, 5411, 2 ]
public boolean update(InspectionTool[] tools) {
public boolean update() { InspectionTool[] tools = myInspectionProfile.getInspectionTools(myProject);
public boolean update(InspectionTool[] tools) { myTree.removeAllNodes(); boolean resultsFound = false; myGroups = new HashMap<String, InspectionGroupNode>(); for (int i = 0; i < tools.length; i++) { InspectionTool tool = tools[i]; if (myInspectionProfile.isToolEnabled(HighlightDisplayKey.find(tool.getShortName()))) { addTool(tool); resultsFound |= tool.hasReportedProblems(); } } myTree.sort(); myTree.restoreExpantionAndSelection(); return resultsFound; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/64d4c6e8873997ce03a7a360f3beef156027910f/InspectionResultsView.java/clean/source/com/intellij/codeInspection/ui/InspectionResultsView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1089, 1435, 288, 22085, 7017, 6364, 8526, 8513, 273, 3399, 14985, 4029, 18, 588, 14985, 10348, 12, 4811, 4109, 1769, 565, 3399, 2471, 18, 4479, 1595, 3205, 5621, 565, 1250, 1686, 2043, 273, 629, 31, 565, 3399, 3621, 273, 394, 4317, 32, 780, 16, 22085, 7017, 1114, 907, 34, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8513, 18, 2469, 31, 277, 27245, 288, 1377, 22085, 7017, 6364, 5226, 273, 8513, 63, 77, 15533, 1377, 309, 261, 4811, 14985, 4029, 18, 291, 6364, 1526, 12, 16205, 4236, 653, 18, 4720, 12, 6738, 18, 588, 29983, 1435, 20349, 288, 3639, 527, 6364, 12, 6738, 1769, 3639, 1686, 2043, 5626, 5226, 18, 5332, 426, 1798, 626, 19122, 5621, 1377, 289, 565, 289, 565, 3399, 2471, 18, 3804, 5621, 565, 3399, 2471, 18, 13991, 2966, 970, 285, 1876, 6233, 5621, 565, 327, 1686, 2043, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1089, 1435, 288, 22085, 7017, 6364, 8526, 8513, 273, 3399, 14985, 4029, 18, 588, 14985, 10348, 12, 4811, 4109, 1769, 565, 3399, 2471, 18, 4479, 1595, 3205, 5621, 565, 1250, 1686, 2043, 273, 629, 31, 565, 3399, 3621, 273, 394, 4317, 32, 780, 16, 22085, 7017, 1114, 907, 34, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8513, 18, 2469, 31, 277, 27245, 288, 1377, 22085, 7017, 6364, 5226, 273, 8513, 63, 77, 15533, 1377, 309, 261, 4811, 14985, 4029, 18, 291, 6364, 1526, 12, 16205, 4236, 653, 18, 4720, 12, 6738, 18, 588, 29983, 1435, 20349, 288, 3639, 527, 6364, 12, 6738, 1769, 3639, 1686, 2043, 5626, 5226, 18, 5332, 426, 1798, 2 ]
return valueClass == ScriptRuntime.FloatClass ? value : new Float(ScriptRuntime.toNumber(value));
if (valueClass == ScriptRuntime.FloatClass) { return value; } else { double number = ScriptRuntime.toNumber(value); if (Double.isInfinite(number) || Double.isNaN(number) || number == 0.0) { return new Float((float)number); } else { double absNumber = Math.abs(number); if (absNumber < (double)Float.MIN_VALUE) { return new Float((number > 0.0) ? +0.0 : -0.0); } else if (absNumber > (double)Float.MAX_VALUE) { return new Float((number > 0.0) ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY); } else { return new Float((float)number); } } }
public static Object coerceType(Class type, Object value) { // Don't coerce null to a string (or other object) if (value == null) { return null; } // For ScriptRuntime.finalClasses we can compare valueClass to ScriptRuntime.aClass object // rather than using instanceof Class valueClass = value.getClass(); // Is value already of the correct type? if (valueClass == type) return value; // String if (type == ScriptRuntime.StringClass) return ScriptRuntime.toString(value); // Boolean if (type == Boolean.TYPE || type == ScriptRuntime.BooleanClass) return new Boolean(ScriptRuntime.toBoolean(value)); if (type == Character.TYPE || type == ScriptRuntime.CharacterClass) { // Special case for converting a single char string to a character if (valueClass == ScriptRuntime.StringClass && ((String) value).length() == 1) return new Character(((String) value).charAt(0)); return new Character((char)ScriptRuntime.toInteger(value)); } // Integer, Long, Char, Byte if (type == ScriptRuntime.IntegerClass || type == Integer.TYPE) return new Integer((int)ScriptRuntime.toInteger(value)); if (type == ScriptRuntime.LongClass || type == Long.TYPE) return new Long((long)ScriptRuntime.toInteger(value)); if (type == ScriptRuntime.ByteClass || type == Byte.TYPE) return new Byte((byte)ScriptRuntime.toInteger(value)); if (type == ScriptRuntime.ShortClass || type == Short.TYPE) return new Short((short)ScriptRuntime.toInteger(value)); // Double, Float if (type == ScriptRuntime.DoubleClass || type == Double.TYPE) { return valueClass == ScriptRuntime.DoubleClass ? value : new Double(ScriptRuntime.toNumber(value)); } if (type == ScriptRuntime.FloatClass || type == Float.TYPE) { return valueClass == ScriptRuntime.FloatClass ? value : new Float(ScriptRuntime.toNumber(value)); } if (valueClass == ScriptRuntime.DoubleClass) return value; // If JSObject compatibility is enabled, and the method wants it, // wrap the Scriptable value in a JSObject. if (Context.useJSObject && jsObjectClass != null && value instanceof Scriptable) { if (ScriptRuntime.ScriptableClass.isAssignableFrom(type)) return value; try { Object ctorArgs[] = { value }; return jsObjectCtor.newInstance(ctorArgs); } catch (InstantiationException instEx) { throw new EvaluatorException("error generating JSObject wrapper for " + value); } catch (IllegalArgumentException argEx) { throw new EvaluatorException("JSObject constructor doesn't want [Scriptable]!"); } catch (InvocationTargetException e) { throw WrappedException.wrapException(e); } catch (IllegalAccessException accessEx) { throw new EvaluatorException("JSObject constructor is protected/private!"); } } if (ScriptRuntime.NumberClass.isInstance(value)) return new Double(((Number) value).doubleValue()); return value; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/95bc5acfc06cdaa45a109cc1b0740d748726aaea/NativeJavaObject.java/clean/src/org/mozilla/javascript/NativeJavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 12270, 559, 12, 797, 618, 16, 1033, 460, 13, 288, 3639, 368, 7615, 1404, 12270, 446, 358, 279, 533, 261, 280, 1308, 733, 13, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 368, 2457, 7739, 5576, 18, 6385, 4818, 732, 848, 3400, 460, 797, 358, 7739, 5576, 18, 69, 797, 733, 3639, 368, 9178, 2353, 1450, 1276, 3639, 1659, 460, 797, 273, 460, 18, 588, 797, 5621, 7734, 368, 2585, 460, 1818, 434, 326, 3434, 618, 35, 3639, 309, 261, 1132, 797, 422, 618, 13, 5411, 327, 460, 31, 3639, 368, 514, 3639, 309, 261, 723, 422, 7739, 5576, 18, 780, 797, 13, 5411, 327, 7739, 5576, 18, 10492, 12, 1132, 1769, 7734, 368, 3411, 3639, 309, 261, 723, 422, 3411, 18, 2399, 747, 618, 422, 7739, 5576, 18, 5507, 797, 13, 5411, 327, 394, 3411, 12, 3651, 5576, 18, 869, 5507, 12, 1132, 10019, 3639, 309, 261, 723, 422, 6577, 18, 2399, 747, 618, 422, 7739, 5576, 18, 7069, 797, 13, 288, 5411, 368, 13409, 648, 364, 14540, 279, 2202, 1149, 533, 358, 279, 3351, 5411, 309, 261, 1132, 797, 422, 7739, 5576, 18, 780, 797, 597, 14015, 780, 13, 460, 2934, 2469, 1435, 422, 404, 13, 7734, 327, 394, 6577, 12443, 12, 780, 13, 460, 2934, 3001, 861, 12, 20, 10019, 5411, 327, 394, 6577, 12443, 3001, 13, 3651, 5576, 18, 869, 4522, 12, 1132, 10019, 3639, 289, 3639, 368, 2144, 16, 3407, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 12270, 559, 12, 797, 618, 16, 1033, 460, 13, 288, 3639, 368, 7615, 1404, 12270, 446, 358, 279, 533, 261, 280, 1308, 733, 13, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 368, 2457, 7739, 5576, 18, 6385, 4818, 732, 848, 3400, 460, 797, 358, 7739, 5576, 18, 69, 797, 733, 3639, 368, 9178, 2353, 1450, 1276, 3639, 1659, 460, 797, 273, 460, 18, 588, 797, 5621, 7734, 368, 2585, 460, 1818, 434, 326, 3434, 618, 35, 3639, 309, 261, 1132, 797, 422, 618, 13, 5411, 327, 460, 31, 3639, 368, 514, 3639, 309, 261, 723, 422, 7739, 5576, 18, 780, 797, 13, 5411, 327, 7739, 5576, 18, 2 ]
OrthogonalSampleData osd = (OrthogonalSampleData) osdList.get(i); osd .setDataSetRepresentation(getConvertedOrthogonalSampleDataRepresentation(osd.getDataSetRepresentation())); vNewOrthogonalSampleData.add(osd);
if (i == iSeriesDefinitionIndex) { OrthogonalSampleData osd = (OrthogonalSampleData) osdList.get(i); osd.setDataSetRepresentation(getConvertedOrthogonalSampleDataRepresentation(osd .getDataSetRepresentation())); currentSampleData.getOrthogonalSampleData().set(i, osd); }
private SampleData getConvertedSampleData(SampleData currentSampleData) { // Convert base sample data EList bsdList = currentSampleData.getBaseSampleData(); Vector vNewBaseSampleData = new Vector(); for (int i = 0; i < bsdList.size(); i++) { BaseSampleData bsd = (BaseSampleData) bsdList.get(i); bsd.setDataSetRepresentation(getConvertedBaseSampleDataRepresentation(bsd.getDataSetRepresentation())); vNewBaseSampleData.add(bsd); } currentSampleData.getBaseSampleData().clear(); currentSampleData.getBaseSampleData().addAll(vNewBaseSampleData); // Convert orthogonal sample data EList osdList = currentSampleData.getOrthogonalSampleData(); Vector vNewOrthogonalSampleData = new Vector(); for (int i = 0; i < osdList.size(); i++) { OrthogonalSampleData osd = (OrthogonalSampleData) osdList.get(i); osd .setDataSetRepresentation(getConvertedOrthogonalSampleDataRepresentation(osd.getDataSetRepresentation())); vNewOrthogonalSampleData.add(osd); } currentSampleData.getOrthogonalSampleData().clear(); currentSampleData.getOrthogonalSampleData().addAll(vNewOrthogonalSampleData); return currentSampleData; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5add15c261ae8932e5746f4658e6e0191b6e7644/BarSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/BarSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11474, 751, 336, 22063, 8504, 751, 12, 8504, 751, 783, 8504, 751, 13, 565, 288, 3639, 368, 4037, 1026, 3296, 501, 3639, 17021, 324, 6427, 682, 273, 783, 8504, 751, 18, 588, 2171, 8504, 751, 5621, 3639, 5589, 331, 1908, 2171, 8504, 751, 273, 394, 5589, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 324, 6427, 682, 18, 1467, 5621, 277, 27245, 3639, 288, 5411, 3360, 8504, 751, 324, 6427, 273, 261, 2171, 8504, 751, 13, 324, 6427, 682, 18, 588, 12, 77, 1769, 5411, 324, 6427, 18, 542, 13676, 13742, 12, 588, 22063, 2171, 8504, 751, 13742, 12, 2038, 72, 18, 588, 13676, 13742, 1435, 10019, 5411, 331, 1908, 2171, 8504, 751, 18, 1289, 12, 2038, 72, 1769, 3639, 289, 3639, 783, 8504, 751, 18, 588, 2171, 8504, 751, 7675, 8507, 5621, 3639, 783, 8504, 751, 18, 588, 2171, 8504, 751, 7675, 1289, 1595, 12, 90, 1908, 2171, 8504, 751, 1769, 3639, 368, 4037, 16208, 28396, 3296, 501, 3639, 17021, 1140, 72, 682, 273, 783, 8504, 751, 18, 588, 1162, 451, 28396, 8504, 751, 5621, 3639, 5589, 331, 1908, 1162, 451, 28396, 8504, 751, 273, 394, 5589, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1140, 72, 682, 18, 1467, 5621, 277, 27245, 3639, 288, 5411, 2965, 451, 28396, 8504, 751, 1140, 72, 273, 261, 1162, 451, 28396, 8504, 751, 13, 1140, 72, 682, 18, 588, 12, 77, 1769, 5411, 1140, 72, 7734, 263, 542, 13676, 13742, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11474, 751, 336, 22063, 8504, 751, 12, 8504, 751, 783, 8504, 751, 13, 565, 288, 3639, 368, 4037, 1026, 3296, 501, 3639, 17021, 324, 6427, 682, 273, 783, 8504, 751, 18, 588, 2171, 8504, 751, 5621, 3639, 5589, 331, 1908, 2171, 8504, 751, 273, 394, 5589, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 324, 6427, 682, 18, 1467, 5621, 277, 27245, 3639, 288, 5411, 3360, 8504, 751, 324, 6427, 273, 261, 2171, 8504, 751, 13, 324, 6427, 682, 18, 588, 12, 77, 1769, 5411, 324, 6427, 18, 542, 13676, 13742, 12, 588, 22063, 2171, 8504, 751, 13742, 12, 2038, 72, 18, 588, 13676, 13742, 1435, 10019, 5411, 331, 1908, 2171, 8504, 751, 18, 2 ]
if (mGenerator==null) return 0; else return mGenerator.getHeadState(mHead);
if (mHead==null) return 0; else return mHead.getAppearance();
public int headState() { if (mGenerator==null) return 0; else return mGenerator.getHeadState(mHead); }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/840b9f3b043dbeaace71d699e2fa0ad0901a4943/SignalHeadIcon.java/buggy/jmri/jmrit/display/SignalHeadIcon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 910, 1119, 1435, 288, 3639, 309, 261, 81, 3908, 631, 2011, 13, 327, 374, 31, 3639, 469, 327, 312, 3908, 18, 588, 1414, 1119, 12, 81, 1414, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 910, 1119, 1435, 288, 3639, 309, 261, 81, 3908, 631, 2011, 13, 327, 374, 31, 3639, 469, 327, 312, 3908, 18, 588, 1414, 1119, 12, 81, 1414, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Setting edge weight: " + edge.toString());
public Graph reconstructMetadata(DoubleMatrix2D matrix) { System.out.println(matrix.toString()); System.out.println(matrix.equals(this.matrix)); Graph graph = null; try { graph = (Graph) this.graph.clone(); } catch (CloneNotSupportedException e) { //Big problem! } if(weighted) { for(int row = 0; row < matrix.rows(); row++) { //begin is a bit of a misnomer until this can handle directed graphs Vertex begin = (Vertex) vertices.get(row); for(int column = 0; column < matrix.columns(); column++) { Vertex end = (Vertex) vertices.get(column); //round or drop? for now, drop, on the assumption that these should still be ints anyways int weight = (int) matrix.getQuick(row, column); Edge edge = begin.findEdge(end); if(edge != null) { if(weight == 0) { System.out.println("Tossing edge " + edge.toString()); graph.removeEdge(edge); } else { System.out.println("Setting edge weight: " + edge.toString()); edge.setUserDatum("weight", Integer.toString(weight), UserData.SHARED); } } else if(weight != 0) { //for now do nothing, later create the appropriate directed or undirected edge and add it to the graph } } } } else { for(int row = 0; row < matrix.rows(); row++) { Vertex begin = (Vertex) vertices.get(row); for(int column = 0; column < matrix.columns(); column++) { Vertex end = (Vertex) vertices.get(column); boolean connected = matrix.get(row, column) != 0; Edge edge = begin.findEdge(end); if(edge != null) { if(!connected) { System.out.println("Tossing edge " + edge.toString()); graph.removeEdge(edge); } } else if(connected){ //see above note about creating the appropriate edge } } } } return graph; }
45393 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45393/0e6447d5f1658c27871be8d51c7ad07ceb54399b/GraphMetadataMemory.java/clean/trunk/plugins/analysis/edu.iu.nwb.analysis.pathfindergraphnetworkscaling/src/edu/iu/nwb/analysis/pathfindergraphnetworkscaling/GraphMetadataMemory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5601, 23243, 2277, 12, 5265, 4635, 22, 40, 3148, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 12, 5667, 18, 10492, 10663, 202, 202, 3163, 18, 659, 18, 8222, 12, 5667, 18, 14963, 12, 2211, 18, 5667, 10019, 202, 202, 4137, 2667, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 4660, 273, 261, 4137, 13, 333, 18, 4660, 18, 14056, 5621, 202, 202, 97, 1044, 261, 10930, 25482, 425, 13, 288, 1082, 202, 759, 9901, 6199, 5, 202, 202, 97, 9506, 202, 430, 12, 30890, 13, 288, 1082, 202, 1884, 12, 474, 1027, 273, 374, 31, 1027, 411, 3148, 18, 3870, 5621, 1027, 27245, 288, 9506, 202, 759, 10086, 353, 279, 2831, 434, 279, 7524, 12306, 264, 3180, 333, 848, 1640, 20830, 19422, 9506, 202, 6475, 2376, 273, 261, 6475, 13, 6928, 18, 588, 12, 492, 1769, 9506, 202, 1884, 12, 474, 1057, 273, 374, 31, 1057, 411, 3148, 18, 5112, 5621, 1057, 27245, 288, 6862, 202, 6475, 679, 273, 261, 6475, 13, 6928, 18, 588, 12, 2827, 1769, 6862, 202, 759, 2260, 578, 3640, 35, 364, 2037, 16, 3640, 16, 603, 326, 24743, 716, 4259, 1410, 4859, 506, 15542, 1281, 3052, 6862, 202, 474, 3119, 273, 261, 474, 13, 3148, 18, 588, 13663, 12, 492, 16, 1057, 1769, 6862, 202, 6098, 3591, 273, 2376, 18, 4720, 6098, 12, 409, 1769, 6862, 202, 430, 12, 7126, 480, 446, 13, 288, 25083, 202, 430, 12, 4865, 422, 374, 13, 288, 6862, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5601, 23243, 2277, 12, 5265, 4635, 22, 40, 3148, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 12, 5667, 18, 10492, 10663, 202, 202, 3163, 18, 659, 18, 8222, 12, 5667, 18, 14963, 12, 2211, 18, 5667, 10019, 202, 202, 4137, 2667, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 4660, 273, 261, 4137, 13, 333, 18, 4660, 18, 14056, 5621, 202, 202, 97, 1044, 261, 10930, 25482, 425, 13, 288, 1082, 202, 759, 9901, 6199, 5, 202, 202, 97, 9506, 202, 430, 12, 30890, 13, 288, 1082, 202, 1884, 12, 474, 1027, 273, 374, 31, 1027, 411, 3148, 18, 3870, 5621, 1027, 27245, 288, 9506, 202, 759, 10086, 353, 279, 2831, 434, 279, 2 ]
}
}
public SimpleJob() { }
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/8441c8be6e16f3f87693ab6cfeae2bf90caf7159/SimpleJob.java/buggy/examples/src/java/org/quartz/examples/example10/SimpleJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4477, 2278, 1435, 288, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ConstantPool constants = ctype.constants;
public void readMethods () throws IOException { int nMethods = readUnsignedShort(); ConstantPool constants = ctype.constants; for (int i = 0; i < nMethods; i++) { int flags = readUnsignedShort(); int nameIndex = readUnsignedShort(); int descriptorIndex = readUnsignedShort(); Method meth = ctype.addMethod(null, flags); meth.setName(nameIndex); meth.setSignature(descriptorIndex); readAttributes(meth); } }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/1b5b0384fd8ad4bcca19957cc468a54d2fa600fa/ClassFileInput.java/buggy/gnu/bytecode/ClassFileInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 4712, 1832, 1216, 1860, 225, 288, 565, 509, 290, 4712, 273, 28198, 5621, 4202, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 290, 4712, 31, 225, 277, 27245, 1377, 288, 202, 474, 2943, 273, 28198, 5621, 202, 474, 508, 1016, 273, 28198, 5621, 202, 474, 4950, 1016, 273, 28198, 5621, 202, 1305, 7917, 273, 11920, 18, 1289, 1305, 12, 2011, 16, 2943, 1769, 202, 27305, 18, 542, 461, 12, 529, 1016, 1769, 202, 27305, 18, 542, 5374, 12, 12628, 1016, 1769, 202, 896, 2498, 12, 27305, 1769, 1377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 855, 4712, 1832, 1216, 1860, 225, 288, 565, 509, 290, 4712, 273, 28198, 5621, 4202, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 290, 4712, 31, 225, 277, 27245, 1377, 288, 202, 474, 2943, 273, 28198, 5621, 202, 474, 508, 1016, 273, 28198, 5621, 202, 474, 4950, 1016, 273, 28198, 5621, 202, 1305, 7917, 273, 11920, 18, 1289, 1305, 12, 2011, 16, 2943, 1769, 202, 27305, 18, 542, 461, 12, 529, 1016, 1769, 202, 27305, 18, 542, 5374, 12, 12628, 1016, 1769, 202, 896, 2498, 12, 27305, 1769, 1377, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
state = getElementState(); if ( isDocumentState() ) { if ( ! _started )
state = getElementState(); if (isDocumentState()) { if (! _started)
public void startElement( String namespaceURI, String localName, String rawName, Attributes attrs ) throws SAXException { int i; boolean preserveSpace; ElementState state; String name; String value; boolean addNSAttr = false; try { if ( _printer == null ) throw new IllegalStateException( "SER002 No writer supplied for serializer" ); state = getElementState(); if ( isDocumentState() ) { // If this is the root element handle it differently. // If the first root element in the document, serialize // the document's DOCTYPE. Space preserving defaults // to that of the output format. if ( ! _started ) startDocument( ( localName == null || localName.length() == 0 ) ? rawName : localName ); } else { // For any other element, if first in parent, then // close parent's opening tag and use the parnet's // space preserving. if ( state.empty ) _printer.printText( '>' ); // Must leave CData section first if ( state.inCData ) { _printer.printText( "]]>" ); state.inCData = false; } // Indent this element on a new line if the first // content of the parent element or immediately // following an element or a comment if ( _indenting && ! state.preserveSpace && ( state.empty || state.afterElement || state.afterComment) ) _printer.breakLine(); } preserveSpace = state.preserveSpace; //We remove the namespaces from the attributes list so that they will //be in _prefixes attrs = extractNamespaces(attrs); // Do not change the current element state yet. // This only happens in endElement(). if ( rawName == null || rawName.length() == 0 ) { if ( localName == null ) throw new SAXException( "No rawName and localName is null" ); if ( namespaceURI != null && ! namespaceURI.equals( "" ) ) { String prefix; prefix = getPrefix( namespaceURI ); if ( prefix != null && prefix.length() > 0 ) rawName = prefix + ":" + localName; else rawName = localName; } else rawName = localName; addNSAttr = true; } _printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); // For each attribute print it's name and value as one part, // separated with a space so the element can be broken on // multiple lines. if ( attrs != null ) { for ( i = 0 ; i < attrs.getLength() ; ++i ) { _printer.printSpace(); name = attrs.getQName( i ); if ( name != null && name.length() == 0 ) { String prefix; String attrURI; name = attrs.getLocalName( i ); attrURI = attrs.getURI( i ); if ( ( attrURI != null && attrURI.length() != 0 ) && ( namespaceURI == null || namespaceURI.length() == 0 || ! attrURI.equals( namespaceURI ) ) ) { prefix = getPrefix( attrURI ); if ( prefix != null && prefix.length() > 0 ) name = prefix + ":" + name; } } value = attrs.getValue( i ); if ( value == null ) value = ""; _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); // If the attribute xml:space exists, determine whether // to preserve spaces in this and child nodes based on // its value. if ( name.equals( "xml:space" ) ) { if ( value.equals( "preserve" ) ) preserveSpace = true; else preserveSpace = _format.getPreserveSpace(); } } } if ( _prefixes != null ) { Enumeration enum; enum = _prefixes.keys(); while ( enum.hasMoreElements() ) { _printer.printSpace(); value = (String) enum.nextElement(); name = (String) _prefixes.get( value ); if ( name.length() == 0 ) { _printer.printText( "xmlns=\"" ); printEscaped( value ); _printer.printText( '"' ); } else { _printer.printText( "xmlns:" ); _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); } } } // Now it's time to enter a new element state // with the tag name and space preserving. // We still do not change the curent element state. state = enterElementState( namespaceURI, localName, rawName, preserveSpace ); name = ( localName == null || localName.length() == 0 ) ? rawName : namespaceURI + "^" + localName; state.doCData = _format.isCDataElement( name ); state.unescaped = _format.isNonEscapingElement( name ); } catch ( IOException except ) {
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/cb2846d271d09a33b1e64a91b982daf152a7bc83/XMLSerializer.java/clean/src/org/apache/xml/serialize/XMLSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 514, 19421, 16, 514, 11927, 16, 17311, 514, 1831, 461, 16, 9055, 3422, 262, 3639, 1216, 14366, 565, 288, 3639, 509, 1850, 277, 31, 3639, 1250, 1377, 9420, 3819, 31, 3639, 3010, 1119, 919, 31, 3639, 514, 4202, 508, 31, 3639, 514, 4202, 460, 31, 3639, 1250, 1377, 527, 3156, 3843, 273, 629, 31, 3639, 775, 288, 3639, 309, 261, 389, 30439, 422, 446, 262, 5411, 604, 394, 5477, 12, 315, 2123, 24908, 2631, 2633, 4580, 364, 6340, 6, 11272, 3639, 919, 273, 7426, 1119, 5621, 3639, 309, 261, 353, 2519, 1119, 1435, 262, 288, 5411, 368, 971, 333, 353, 326, 1365, 930, 1640, 518, 23621, 18, 5411, 368, 971, 326, 1122, 1365, 930, 316, 326, 1668, 16, 4472, 5411, 368, 326, 1668, 1807, 5467, 17331, 18, 14059, 27995, 3467, 5411, 368, 358, 716, 434, 326, 876, 740, 18, 5411, 309, 261, 401, 389, 14561, 262, 10792, 787, 2519, 12, 261, 11927, 422, 446, 747, 11927, 18, 2469, 1435, 422, 374, 262, 692, 1831, 461, 294, 11927, 11272, 3639, 289, 469, 288, 5411, 368, 2457, 1281, 1308, 930, 16, 309, 1122, 316, 982, 16, 1508, 5411, 368, 1746, 982, 1807, 10890, 1047, 471, 999, 326, 779, 2758, 1807, 5411, 368, 3476, 27995, 18, 5411, 309, 261, 919, 18, 5531, 262, 7734, 389, 30439, 18, 1188, 1528, 12, 7481, 11272, 5411, 368, 6753, 8851, 385, 751, 2442, 1122, 5411, 309, 261, 919, 18, 267, 39, 751, 262, 5411, 288, 7734, 389, 30439, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 514, 19421, 16, 514, 11927, 16, 17311, 514, 1831, 461, 16, 9055, 3422, 262, 3639, 1216, 14366, 565, 288, 3639, 509, 1850, 277, 31, 3639, 1250, 1377, 9420, 3819, 31, 3639, 3010, 1119, 919, 31, 3639, 514, 4202, 508, 31, 3639, 514, 4202, 460, 31, 3639, 1250, 1377, 527, 3156, 3843, 273, 629, 31, 3639, 775, 288, 3639, 309, 261, 389, 30439, 422, 446, 262, 5411, 604, 394, 5477, 12, 315, 2123, 24908, 2631, 2633, 4580, 364, 6340, 6, 11272, 3639, 919, 273, 7426, 1119, 5621, 3639, 309, 261, 353, 2519, 1119, 1435, 262, 288, 5411, 368, 971, 333, 353, 326, 1365, 930, 1640, 518, 23621, 18, 5411, 368, 971, 326, 1122, 1365, 930, 2 ]
if (myEditor != null) { final String text = myDeferredOutput.substring(0, myDeferredOutput.length()); synchronized (LOCK) { if (USE_CYCLIC_BUFFER) { myDeferredOutput = new StringBuffer(Math.min(myDeferredOutput.length(), CYCLIC_BUFFER_SIZE)); } else { myDeferredOutput.setLength(0); } } final Document document = myEditor.getDocument(); final int oldLineCount = document.getLineCount(); final boolean isAtEndOfDocument = myEditor.getCaretModel().getOffset() == myEditor.getDocument().getTextLength(); ApplicationManager.getApplication().runWriteAction( new Runnable() { public void run() { CommandProcessor.getInstance().executeCommand(myProject, new Runnable() { public void run() { document.insertString(document.getTextLength(), text); } }, null, null); } } ); final int newLineCount = document.getLineCount(); if (oldLineCount < newLineCount){ myPsiDisposedCheck.performCheck(); highlightHyperlinks(oldLineCount - 1, newLineCount - 2); } if (isAtEndOfDocument) { myEditor.getCaretModel().moveToOffset(myEditor.getDocument().getTextLength()); myEditor.getSelectionModel().removeSelection(); myEditor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE); }
if (isAtEndOfDocument) { myEditor.getCaretModel().moveToOffset(myEditor.getDocument().getTextLength()); myEditor.getSelectionModel().removeSelection(); myEditor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
private void flushDeferredText(){ ApplicationManager.getApplication().assertIsDispatchThread(); synchronized(LOCK){ if (myOutputPaused) return; if (myDeferredOutput.length() == 0) return; } if (myEditor != null) { final String text = myDeferredOutput.substring(0, myDeferredOutput.length()); synchronized (LOCK) { if (USE_CYCLIC_BUFFER) { myDeferredOutput = new StringBuffer(Math.min(myDeferredOutput.length(), CYCLIC_BUFFER_SIZE)); } else { myDeferredOutput.setLength(0); } } final Document document = myEditor.getDocument(); final int oldLineCount = document.getLineCount(); final boolean isAtEndOfDocument = myEditor.getCaretModel().getOffset() == myEditor.getDocument().getTextLength(); ApplicationManager.getApplication().runWriteAction( new Runnable() { public void run() { CommandProcessor.getInstance().executeCommand(myProject, new Runnable() { public void run() { document.insertString(document.getTextLength(), text); } }, null, null); } } ); final int newLineCount = document.getLineCount(); if (oldLineCount < newLineCount){ myPsiDisposedCheck.performCheck(); highlightHyperlinks(oldLineCount - 1, newLineCount - 2); } if (isAtEndOfDocument) { myEditor.getCaretModel().moveToOffset(myEditor.getDocument().getTextLength()); myEditor.getSelectionModel().removeSelection(); myEditor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE); } } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/b2c98303d8266acfaa2462a108951e78cf7cbaa7/ConsoleViewImpl.java/buggy/execution/impl/com/intellij/execution/impl/ConsoleViewImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3663, 16886, 1528, 1435, 95, 565, 4257, 1318, 18, 588, 3208, 7675, 11231, 2520, 5325, 3830, 5621, 565, 3852, 12, 6589, 15329, 1377, 309, 261, 4811, 1447, 28590, 13, 327, 31, 1377, 309, 261, 4811, 16886, 1447, 18, 2469, 1435, 422, 374, 13, 327, 31, 565, 289, 565, 309, 261, 4811, 6946, 480, 446, 13, 288, 1377, 727, 514, 977, 273, 3399, 16886, 1447, 18, 28023, 12, 20, 16, 3399, 16886, 1447, 18, 2469, 10663, 1377, 3852, 261, 6589, 13, 288, 3639, 309, 261, 8001, 67, 16068, 39, 6065, 67, 11302, 13, 288, 1850, 3399, 16886, 1447, 273, 394, 6674, 12, 10477, 18, 1154, 12, 4811, 16886, 1447, 18, 2469, 9334, 29335, 39, 6065, 67, 11302, 67, 4574, 10019, 3639, 289, 3639, 469, 288, 1850, 3399, 16886, 1447, 18, 542, 1782, 12, 20, 1769, 3639, 289, 1377, 289, 1377, 727, 4319, 1668, 273, 3399, 6946, 18, 588, 2519, 5621, 1377, 727, 509, 1592, 1670, 1380, 273, 1668, 18, 588, 1670, 1380, 5621, 1377, 727, 1250, 353, 861, 23358, 2519, 273, 3399, 6946, 18, 588, 39, 20731, 1488, 7675, 588, 2335, 1435, 422, 3399, 6946, 18, 588, 2519, 7675, 588, 1528, 1782, 5621, 1377, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 3639, 394, 10254, 1435, 288, 1850, 1071, 918, 1086, 1435, 288, 5411, 3498, 5164, 18, 588, 1442, 7675, 8837, 2189, 12, 4811, 4109, 16, 394, 10254, 1435, 288, 2868, 1071, 918, 1086, 1435, 288, 7734, 1668, 18, 6387, 780, 12, 5457, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3663, 16886, 1528, 1435, 95, 565, 4257, 1318, 18, 588, 3208, 7675, 11231, 2520, 5325, 3830, 5621, 565, 3852, 12, 6589, 15329, 1377, 309, 261, 4811, 1447, 28590, 13, 327, 31, 1377, 309, 261, 4811, 16886, 1447, 18, 2469, 1435, 422, 374, 13, 327, 31, 565, 289, 565, 309, 261, 4811, 6946, 480, 446, 13, 288, 1377, 727, 514, 977, 273, 3399, 16886, 1447, 18, 28023, 12, 20, 16, 3399, 16886, 1447, 18, 2469, 10663, 1377, 3852, 261, 6589, 13, 288, 3639, 309, 261, 8001, 67, 16068, 39, 6065, 67, 11302, 13, 288, 1850, 3399, 16886, 1447, 273, 394, 6674, 12, 10477, 18, 1154, 12, 4811, 16886, 1447, 18, 2469, 9334, 29335, 39, 6065, 67, 11302, 2 ]
public void dispatchToRemoteComponent(String component, Object payload, Map messageProperties) throws UMOException {
public void dispatchToRemoteComponent(String component, Object payload, Map messageProperties) throws UMOException {
public void dispatchToRemoteComponent(String component, Object payload, Map messageProperties) throws UMOException { doToRemoteComponent(component, payload, messageProperties, true); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/589f59b15144184ea22999b384d5ea92ddec8bb9/RemoteDispatcher.java/buggy/mule-extras/client/src/java/org/mule/extras/client/RemoteDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 774, 5169, 1841, 12, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 774, 5169, 1841, 12, 780, 1794, 16, 1033, 2385, 16, 1635, 883, 2297, 13, 1216, 587, 5980, 503, 565, 288, 3639, 741, 774, 5169, 1841, 12, 4652, 16, 2385, 16, 883, 2297, 16, 638, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else
else {
protected String getDefaultReferenceParameter() { if( _includeDefaultReferences ) { StringBuffer s = new StringBuffer( "/reference:" ); s.append( DEFAULT_REFERENCE_LIST ); return new String( s ); } else return null; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8ce1de2178a0422105fa437c327b49fb5637ff28/CSharp.java/clean/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 4829, 2404, 1662, 1435, 565, 288, 3639, 309, 12, 389, 6702, 1868, 8221, 262, 3639, 288, 5411, 6674, 272, 273, 394, 6674, 12, 2206, 6180, 2773, 11272, 5411, 272, 18, 6923, 12, 3331, 67, 14617, 67, 7085, 11272, 5411, 327, 394, 514, 12, 272, 11272, 3639, 289, 3639, 469, 288, 5411, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 4829, 2404, 1662, 1435, 565, 288, 3639, 309, 12, 389, 6702, 1868, 8221, 262, 3639, 288, 5411, 6674, 272, 273, 394, 6674, 12, 2206, 6180, 2773, 11272, 5411, 272, 18, 6923, 12, 3331, 67, 14617, 67, 7085, 11272, 5411, 327, 394, 514, 12, 272, 11272, 3639, 289, 3639, 469, 288, 5411, 327, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
define_proc ("call-with-output-file", "kawa.standard.ports");
define_proc ("call-with-output-file", "kawa.lib.ports");
public void initScheme () { Named proc; Named syn; // (null-environment) nullEnvironment = new Environment (); nullEnvironment.setName ("null-environment"); environ = nullEnvironment; Lambda lambda = new kawa.lang.Lambda(); lambda.setKeywords(Special.optional, Special.rest, Special.key); define_syntax ("lambda", lambda); //-- Section 4.1 -- complete define (LispInterpreter.quote_sym, new Quote ()); define_syntax("define", new kawa.standard.define(lambda, false)); define_syntax("define-private", new kawa.standard.define(lambda, true)); define_syntax("define-constant", new kawa.standard.define(lambda, false, true)); define_syntax("define-autoload", new define_autoload(false)); define_syntax("define-autoloads-from-file", new define_autoload(true)); define_syntax ("if", "kawa.standard.ifp"); define_syntax ("set!", "kawa.standard.set_b"); // Section 4.2 -- complete define_syntax ("cond", "kawa.lib.std_syntax"); define_syntax ("case", "kawa.lib.std_syntax"); define_syntax ("and", "kawa.lib.std_syntax"); define ("or", new kawa.standard.and_or (false, this)); define_field("%let", "kawa.standard.let", "let"); define_syntax ("let", "kawa.lib.std_syntax"); define_syntax ("%let-decl", "kawa.lib.std_syntax"); define_syntax ("%let-init", "kawa.lib.std_syntax"); define_syntax ("let*", "kawa.lib.std_syntax"); define_syntax ("letrec", "kawa.standard.letrec"); define ("begin", new kawa.standard.begin()); define_syntax ("do", "kawa.lib.std_syntax"); define_syntax ("delay", "kawa.lib.std_syntax"); define_proc ("%make-promise", "kawa.lib.std_syntax"); define_syntax ("quasiquote", "kawa.standard.quasiquote"); //-- Section 5 -- complete [except for internal definitions] // Appendix (and R5RS) define ("define-syntax", new kawa.standard.define_syntax ()); define ("syntax-rules", new kawa.standard.syntax_rules ()); define ("syntax-case", new kawa.standard.syntax_case ()); define ("let-syntax", new kawa.standard.let_syntax (false)); define ("letrec-syntax", new kawa.standard.let_syntax (true)); r4Environment = new Environment (nullEnvironment); r4Environment.setName ("r4rs-environment"); environ = r4Environment; //-- Section 6.1 -- complete define_field("not", "kawa.standard.Scheme"); define_proc ("boolean?", "kawa.lib.misc"); //-- Section 6.2 -- complete define_field("eq?", "kawa.standard.Scheme", "isEq"); define_field("eqv?", "kawa.standard.Scheme", "isEqv"); define_field("equal?", "kawa.standard.Scheme", "isEqual"); //-- Section 6.3 -- complete define_proc("pair?", "kawa.lib.lists"); define_field("cons", "kawa.lib.lists"); define_field("car", "kawa.lib.lists"); define_field("cdr", "kawa.lib.lists"); define_proc ("set-car!", "kawa.lib.lists"); define_proc ("set-cdr!", "kawa.lib.lists"); define_proc ("caar", "kawa.standard.cxr"); define_proc ("cadr", "kawa.standard.cxr"); define_proc ("cdar", "kawa.standard.cxr"); define_proc ("cddr", "kawa.standard.cxr"); define_proc ("caaar", "kawa.standard.cxr"); define_proc ("caadr", "kawa.standard.cxr"); define_proc ("cadar", "kawa.standard.cxr"); define_proc ("caddr", "kawa.standard.cxr"); define_proc ("cdaar", "kawa.standard.cxr"); define_proc ("cdadr", "kawa.standard.cxr"); define_proc ("cddar", "kawa.standard.cxr"); define_proc ("cdddr", "kawa.standard.cxr"); define_proc ("caaaar", "kawa.standard.cxr"); define_proc ("caaadr", "kawa.standard.cxr"); define_proc ("caadar", "kawa.standard.cxr"); define_proc ("caaddr", "kawa.standard.cxr"); define_proc ("cadaar", "kawa.standard.cxr"); define_proc ("cadadr", "kawa.standard.cxr"); define_proc ("caddar", "kawa.standard.cxr"); define_proc ("cadddr", "kawa.standard.cxr"); define_proc ("cdaaar", "kawa.standard.cxr"); define_proc ("cdaadr", "kawa.standard.cxr"); define_proc ("cdadar", "kawa.standard.cxr"); define_proc ("cdaddr", "kawa.standard.cxr"); define_proc ("cddaar", "kawa.standard.cxr"); define_proc ("cddadr", "kawa.standard.cxr"); define_proc ("cdddar", "kawa.standard.cxr"); define_proc ("cddddr", "kawa.standard.cxr"); define_proc ("null?", "kawa.lib.lists"); define_field("list?", "kawa.lib.lists"); define_field("list", "gnu.kawa.functions.MakeList"); define_proc ("length", "kawa.lib.lists"); define_proc ("append", "kawa.standard.append"); define_proc ("reverse", "kawa.lib.lists"); define_proc ("reverse!", "kawa.lib.lists"); // Not R5RS. define_field("list-tail", "kawa.lib.lists"); define_field("list-ref", "kawa.lib.lists"); define_field("memq", "kawa.lib.lists"); define_field("memv", "kawa.lib.lists"); define_field("member", "kawa.lib.lists"); define_field("assq", "kawa.lib.lists"); define_field("assv", "kawa.lib.lists"); define_field("assoc", "kawa.lib.lists"); //-- Section 6.4 -- complete, including slashified read/write define_proc ("symbol?", "kawa.lib.misc"); define_proc ("symbol->string", "kawa.lib.misc"); define_proc ("string->symbol", "kawa.lib.misc"); //-- Section 6.5 define_proc ("number?", "kawa.lib.numbers"); define_proc ("quantity?", "kawa.lib.numbers"); define_proc ("complex?", "kawa.lib.numbers"); define_proc ("real?", "kawa.lib.numbers"); define_proc ("rational?", "kawa.lib.numbers"); define_proc ("integer?", "kawa.standard.integer_p"); define_field("exact?", "kawa.lib.numbers"); define_field("inexact?", "kawa.lib.numbers"); define_field("=", "gnu.kawa.functions.NumberCompare", "$Eq"); define_field("<", "gnu.kawa.functions.NumberCompare", "$Ls"); define_field(">", "gnu.kawa.functions.NumberCompare", "$Gr"); define_field("<=", "gnu.kawa.functions.NumberCompare", "$Ls$Eq"); define_field(">=", "gnu.kawa.functions.NumberCompare", "$Gr$Eq"); define_proc ("zero?", "kawa.lib.numbers"); define_proc ("positive?", "kawa.lib.numbers"); define_proc ("negative?", "kawa.lib.numbers"); define_proc ("odd?", "kawa.lib.numbers"); define_proc ("even?", "kawa.lib.numbers"); define_proc ("max", "kawa.standard.max"); define_proc ("min", "kawa.standard.min"); define_field("+", "gnu.kawa.functions.AddOp", "$Pl"); define_field("-", "gnu.kawa.functions.AddOp", "$Mn"); define_field("*", "gnu.kawa.functions.MultiplyOp", "$St"); define_field("/", "gnu.kawa.functions.DivideOp", "$Sl"); define_proc ("abs", "kawa.lib.numbers"); define_proc ("quotient", "kawa.lib.numbers"); define_proc ("remainder", "kawa.lib.numbers"); define_proc ("modulo", "kawa.lib.numbers"); define_proc ("gcd", "kawa.standard.gcd"); define_proc ("lcm", "kawa.standard.lcm"); define_proc ("numerator", "kawa.lib.numbers"); define_proc ("denominator", "kawa.lib.numbers"); define_proc ("floor", "kawa.lib.numbers"); define_proc ("ceiling", "kawa.lib.numbers"); define_proc ("truncate", "kawa.lib.numbers"); define_proc ("round", "kawa.lib.numbers"); define_proc ("rationalize", "kawa.standard.rationalize"); define_proc ("exp", "kawa.lib.numbers"); define_proc ("log", "kawa.lib.numbers"); define_proc ("sin", "kawa.lib.numbers"); define_proc ("cos", "kawa.lib.numbers"); define_proc ("tan", "kawa.lib.numbers"); define_proc ("asin", "kawa.lib.numbers"); define_proc ("acos", "kawa.lib.numbers"); define_proc ("atan", "kawa.standard.atan"); define_proc ("sqrt", "kawa.standard.sqrt"); define_field ("expt", "kawa.standard.expt"); define_proc ("make-rectangular", "kawa.lib.numbers"); define_proc ("make-polar", "kawa.lib.numbers"); define_proc ("real-part", "kawa.lib.numbers"); define_proc ("imag-part", "kawa.lib.numbers"); define_proc ("magnitude", "kawa.lib.numbers"); define_proc ("angle", "kawa.lib.numbers"); define_proc ("exact->inexact", "kawa.standard.exact2inexact"); define_proc ("inexact->exact", "kawa.standard.inexact2exact"); define_proc ("number->string", "kawa.lib.numbers"); define_proc ("string->number", "kawa.standard.string2number"); //-- Section 6.6 -- complete define_proc ("char?", "kawa.lib.characters"); define_proc ("char=?", "kawa.lib.characters"); define_proc ("char<?", "kawa.lib.characters"); define_proc ("char>?", "kawa.lib.characters"); define_proc ("char<=?", "kawa.lib.characters"); define_proc ("char>=?", "kawa.lib.characters"); define_proc ("char-ci=?", "kawa.lib.characters"); define_proc ("char-ci<?", "kawa.lib.characters"); define_proc ("char-ci>?", "kawa.lib.characters"); define_proc ("char-ci<=?", "kawa.lib.characters"); define_proc ("char-ci>=?", "kawa.lib.characters"); define_proc ("char-alphabetic?", "kawa.lib.characters"); define_proc ("char-numeric?", "kawa.lib.characters"); define_proc ("char-whitespace?", "kawa.lib.characters"); define_proc ("char-upper-case?", "kawa.lib.characters"); define_proc ("char-lower-case?", "kawa.lib.characters"); define_proc ("char->integer", "kawa.lib.characters"); define_proc ("integer->char", "kawa.lib.characters"); define_proc ("char-upcase", "kawa.lib.characters"); define_proc ("char-downcase", "kawa.lib.characters"); //-- Section 6.7 -- complete define_proc ("string?", "kawa.lib.strings"); define_proc ("make-string", "kawa.lib.strings"); define_proc ("string", "kawa.standard.string_v"); define_proc ("string-length", "kawa.lib.strings"); define_proc ("string-ref", "kawa.lib.strings"); define_proc ("string-set!", "kawa.lib.strings"); define_field("string=?", "kawa.lib.strings"); define_field("string-ci=?", "kawa.lib.strings"); define_field("string<?", "kawa.lib.strings"); define_field("string>?", "kawa.lib.strings"); define_field("string<=?", "kawa.lib.strings"); define_field("string>=?", "kawa.lib.strings"); define_field ("string-ci<?", "kawa.lib.strings"); define_field ("string-ci>?", "kawa.lib.strings"); define_field ("string-ci<=?", "kawa.lib.strings"); define_field ("string-ci>=?", "kawa.lib.strings"); define_proc ("substring", "kawa.lib.strings"); define_proc ("string-append", "kawa.lib.strings"); define_proc ("string-append/shared", "kawa.lib.strings"); define_field("string->list", "kawa.lib.strings"); define_field("list->string", "kawa.lib.strings"); define_proc ("string-copy", "kawa.lib.strings"); define_proc ("string-fill!", "kawa.lib.strings"); //-- Section 6.8 -- complete define_proc ("vector?", "kawa.lib.vectors"); define_proc ("make-vector", "kawa.lib.vectors"); define_proc ("vector", "kawa.lib.vectors"); define_proc ("vector-length", "kawa.lib.vectors"); define_field("vector-ref", "kawa.lib.vectors"); define_proc ("vector-set!", "kawa.lib.vectors"); define_proc ("list->vector", "kawa.lib.vectors"); define_field("vector->list", "kawa.lib.vectors"); define_proc ("vector-fill!", "kawa.lib.vectors"); // Extension: define_field("vector-append", "kawa.standard.vector_append", "vectorAppend"); define_field("values-append", "gnu.kawa.functions.AppendValues", "appendValues"); //-- Section 6.9 -- complete [except restricted call/cc] define_proc ("procedure?", "kawa.lib.misc"); define_field("apply", "gnu.kawa.functions.Apply", "apply"); define_field("map", "kawa.standard.Scheme", "map"); define_field("for-each", "kawa.standard.Scheme", "forEach"); define_proc ("call-with-current-continuation", "kawa.standard.callcc"); define_proc ("call/cc", "kawa.standard.callcc"); define_proc ("force", "kawa.standard.force"); //-- Section 6.10 -- complete define_proc ("call-with-input-file", "kawa.lib.ports"); define_proc ("call-with-output-file", "kawa.standard.ports"); define_proc ("input-port?", "kawa.lib.ports"); define_proc ("output-port?", "kawa.lib.ports"); define_proc ("current-input-port", "kawa.lib.ports"); define_proc ("current-output-port", "kawa.lib.ports"); define_proc ("with-input-from-file", "kawa.standard.with_input_from_file"); define_proc ("with-output-to-file", "kawa.standard.with_output_to_file"); define_proc ("open-input-file", "kawa.standard.open_input_file"); define_proc ("open-output-file", "kawa.standard.open_output_file"); define_proc ("close-input-port", "kawa.lib.ports"); define_proc ("close-output-port", "kawa.lib.ports"); define_proc ("read", "kawa.standard.read"); define_proc ("read-line", "kawa.standard.read_line"); define_proc (new readchar (false)); // read-char define_proc (new readchar (true)); // peek-char define_proc ("eof-object?", "kawa.lib.ports"); define_proc ("char-ready?", "kawa.standard.char_ready_p"); define_field("write", "kawa.standard.Scheme", "writeFormat"); define_field("display", "kawa.standard.Scheme", "displayFormat"); define_field("print-as-xml", "gnu.xquery.lang.XQuery", "writeFormat"); define_proc ("write-char", "kawa.lib.ports"); define_proc ("newline", "kawa.lib.ports"); define_field("load", "kawa.standard.load", "load"); define_field("load-relative", "kawa.standard.load", "loadRelative"); define_proc ("transcript-off", "kawa.lib.ports"); define_proc ("transcript-on", "kawa.lib.ports"); define_proc ("call-with-input-string", "kawa.lib.ports"); // Extension define_proc ("open-input-string", "kawa.lib.ports"); // SRFI-6 define_proc ("open-output-string", "kawa.lib.ports"); // SRFI-6 define_proc ("get-output-string", "kawa.lib.ports"); // SRFI-6 define_proc ("call-with-output-string", // Extension "kawa.standard.call_with_output_string"); define_proc ("force-output", "kawa.lib.ports"); // Extension define_field("port-line", "kawa.lib.ports"); define_field("set-port-line!", "kawa.lib.ports"); define_field("port-column", "kawa.lib.ports"); define_field("current-error-port", "kawa.lib.ports"); define_proc ("input-port-line-number", "kawa.lib.ports"); // Extension define_proc ("set-input-port-line-number!", "kawa.lib.ports"); define_proc ("input-port-column-number", "kawa.lib.ports"); define_proc ("input-port-read-state", "kawa.lib.ports"); define_proc ("default-prompter", "kawa.lib.ports"); define_field("input-port-prompter", "kawa.lib.ports"); define_proc ("set-input-port-prompter!", "kawa.lib.ports"); define_field("base-uri", "kawa.lib.misc"); define_syntax ("%syntax-error", "kawa.standard.syntax_error"); r5Environment = new Environment (r4Environment); r5Environment.setName ("r5rs-environment"); environ = r5Environment; define_proc ("values", "kawa.lib.misc"); define_proc ("call-with-values", "kawa.standard.call_with_values"); define_field("let-values", "kawa.lib.syntax"); define_field("let*-values", "kawa.lib.syntax"); define_field("receive", "kawa.lib.syntax"); define_proc ("eval", "kawa.lang.Eval"); define_proc ("repl", new kawa.repl(this)); define_proc ("scheme-report-environment", "kawa.standard.scheme_env"); define_proc ("null-environment", "kawa.lib.misc"); define_proc ("interaction-environment", "kawa.lib.misc"); define_proc ("dynamic-wind", "kawa.lib.syntax"); kawaEnvironment = new Environment (r5Environment); environ = kawaEnvironment; define_proc ("exit", "kawa.lib.thread"); define_field("arithmetic-shift", "kawa.lib.numbers"); define_field("ash", "kawa.lib.numbers", "arithmetic$Mnshift"); define_proc ("logand", "kawa.standard.logand"); define_proc ("logior", "kawa.standard.logior"); define_proc ("logxor", "kawa.standard.logxor"); define_proc ("lognot", "kawa.lib.numbers"); define_proc ("logop", "kawa.lib.numbers"); define_proc ("logbit?", "kawa.lib.numbers"); define_proc ("logtest", "kawa.lib.numbers"); define_proc ("logcount", "kawa.lib.numbers"); define_proc ("bit-extract", "kawa.lib.numbers"); define_proc ("integer-length", "kawa.lib.numbers"); // These are from SLIB. define_proc("string-upcase!", "kawa.lib.strings"); define_proc("string-downcase!", "kawa.lib.strings"); define_proc("string-capitalize!", "kawa.lib.strings"); define_proc("string-upcase", "kawa.lib.strings"); define_proc("string-downcase", "kawa.lib.strings"); define_proc("string-capitalize", "kawa.lib.strings"); define_syntax("primitive-virtual-method", new kawa.standard.prim_method(182)); define_syntax("primitive-static-method", new kawa.standard.prim_method(184)); define_syntax("primitive-interface-method", new kawa.standard.prim_method(185)); define_syntax("primitive-constructor", new kawa.standard.prim_method(183)); define_syntax("primitive-op1", new kawa.standard.prim_method()); define_syntax("primitive-get-field", "kawa.lib.reflection"); define_syntax("primitive-set-field", "kawa.lib.reflection"); define_syntax("primitive-get-static", "kawa.lib.reflection"); define_syntax("primitive-set-static", "kawa.lib.reflection"); define_syntax("primitive-array-new", "kawa.lib.reflection"); define_syntax("primitive-array-get", "kawa.lib.reflection"); define_syntax("primitive-array-set", "kawa.lib.reflection"); define_syntax("primitive-array-length", "kawa.lib.reflection"); define_proc("subtype?", "kawa.lib.reflection"); define_field("primitive-throw", "kawa.standard.prim_throw", "primitiveThrow"); define_syntax("try-finally", "kawa.standard.try_finally"); define_syntax("try-catch", "kawa.standard.try_catch"); define_proc("throw", "kawa.standard.throw_name"); define_proc("catch", "kawa.lib.syntax"); define_proc("error", "kawa.lib.misc"); define_proc("as", gnu.kawa.functions.Convert.as); define_field("instance?", "kawa.standard.Scheme", "instanceOf"); define_syntax("synchronized", "kawa.standard.synchronizd"); object objectSyntax = new kawa.standard.object(lambda); define_syntax("object", objectSyntax); define_syntax("define-class", new kawa.standard.define_class(objectSyntax, false)); define_syntax("define-simple-class", new kawa.standard.define_class(objectSyntax, true)); define_syntax("this", "kawa.standard.thisRef"); define_proc("make", gnu.kawa.reflect.Invoke.make); define_field("slot-ref", "gnu.kawa.reflect.SlotGet", "field"); define_field("slot-set!", "gnu.kawa.reflect.SlotSet", "setField$Ex"); define_field("field", "gnu.kawa.reflect.SlotGet"); define_proc("class-methods", "gnu.kawa.reflect.ClassMethods"); define_field("static-field", "gnu.kawa.reflect.SlotGet", "staticField"); define_proc("invoke", gnu.kawa.reflect.Invoke.invoke); define_field("invoke-static", "gnu.kawa.reflect.Invoke", "invokeStatic"); define_field("invoke-special", "gnu.kawa.reflect.Invoke", "invokeSpecial"); define_proc("file-exists?", "kawa.lib.files"); define_proc("file-directory?", "kawa.lib.files"); define_proc("file-readable?", "kawa.lib.files"); define_proc("file-writable?", "kawa.lib.files"); define_proc("delete-file", "kawa.lib.files"); define_proc("system-tmpdir", "kawa.lib.files"); define_proc("make-temporary-file", "kawa.lib.files"); define_proc("rename-file", "kawa.lib.files"); define_proc("copy-file", "kawa.lib.files"); define_proc("create-directory", "kawa.lib.files"); define_proc("->pathname", "kawa.lib.files"); define("port-char-encoding", Boolean.TRUE); define("symbol-read-case", "P"); define_proc("system", "kawa.lib.system"); define_proc("make-process", "kawa.lib.system"); define_proc("tokenize-string-to-string-array", "kawa.lib.system"); define_proc("tokenize-string-using-shell", "kawa.lib.system"); if ("/".equals(System.getProperty("file.separator"))) define ("command-parse", lookup("tokenize-string-using-shell")); else define ("command-parse", lookup("tokenize-string-to-string-array")); define_proc ("record-accessor", "kawa.lib.reflection"); define_proc ("record-modifier", "kawa.lib.reflection"); define_proc ("record-predicate", "kawa.lib.reflection"); define_proc ("record-constructor", "kawa.lib.reflection"); define_proc ("make-record-type", "kawa.lib.reflection"); define_proc ("record-type-descriptor", "kawa.lib.reflection"); define_proc ("record-type-name", "kawa.lib.reflection"); define_proc ("record-type-field-names", "kawa.lib.reflection"); define_proc ("record?", "kawa.lib.reflection"); define_syntax("define-record-type", "gnu.kawa.slib.DefineRecordType"); define_syntax ("when", "kawa.lib.syntax"); //-- (when cond exp ...) define_syntax ("unless", "kawa.lib.syntax"); //-- (unless cond exp ...) define_syntax ("fluid-let", "kawa.standard.fluid_let"); define_syntax("constant-fold", "kawa.standard.constant_fold"); define_proc ("compile-file", "kawa.lang.CompileFile"); define_proc ("load-compiled", "kawa.lang.loadcompiled"); define_proc ("environment-bound?", "kawa.lib.misc"); define_proc ("scheme-implementation-version", "kawa.lib.misc"); define_proc ("scheme-window", "kawa.lib.windows"); define_syntax ("define-procedure", "kawa.lib.syntax"); define_field("make-procedure", "gnu.kawa.functions.MakeProcedure", "makeProcedure"); define_field("procedure-property", "kawa.lib.misc"); define_proc ("set-procedure-property!", "kawa.lib.misc"); define_proc ("quantity->number", "kawa.standard.quantity2number"); define_proc ("quantity->unit", "kawa.standard.quantity2unit"); define_proc ("make-quantity", "kawa.standard.make_quantity"); define_syntax ("define-unit", new kawa.standard.define_unit(false)); define_syntax ("define-namespace", "gnu.kawa.xml.DefineNamespace"); define_syntax ("define-base-unit", new kawa.standard.define_unit(true)); define_proc ("gentemp", "kawa.lib.syntax"); define_syntax ("defmacro", "kawa.lib.syntax"); define_field("setter", "gnu.kawa.functions.Setter", "setter"); define_syntax ("future", "kawa.lib.thread"); define_proc ("%make-future", "kawa.standard.make_future"); define_proc ("sleep", "kawa.standard.sleep"); define_syntax ("trace", "kawa.lib.trace"); define_syntax ("untrace", "kawa.lib.trace"); define_field("format", "gnu.kawa.functions.Format"); define_field("parse-format", "gnu.kawa.functions.ParseFormat", "parseFormat"); define_field("make-element", "gnu.xquery.util.MakeElement", "makeElement"); define_field("make-attribute", "gnu.xquery.util.MakeAttribute", "makeAttribute"); define_field("map-values", "gnu.kawa.functions.ValuesMap", "valuesMap"); define_field("children", "gnu.xquery.util.Children", "children"); define_field("attributes", "gnu.kawa.xml.Attributes"); define_field("unescaped-data", "gnu.kawa.xml.MakeUnescapedData", "unescapedData"); define_proc ("keyword?", "kawa.lib.keywords"); define_proc ("keyword->string", "kawa.lib.keywords"); define_proc ("string->keyword", "kawa.lib.keywords"); define_syntax ("location", "kawa.standard.location"); define ("define-alias", new kawa.standard.define_alias()); define_syntax("define-variable", "kawa.standard.define_variable"); define ("define-member-alias", new kawa.standard.define_member_alias()); define ("require", new kawa.standard.require()); define_syntax ("module-name", "kawa.standard.module_name"); define_syntax ("module-extends", "kawa.standard.module_extends"); define_syntax ("module-implements", "kawa.standard.module_implements"); define_syntax ("module-static", "kawa.standard.module_static"); define_syntax ("module-export", "kawa.standard.export"); define_syntax ("module-compile-options", "kawa.standard.module_compile_options"); define_syntax ("with-compile-options", "kawa.standard.with_compile_options"); define_field("array?", "kawa.lib.arrays"); define_field("array-rank", "kawa.lib.arrays"); define_field("make-array", "kawa.lib.arrays"); define_field("array", "kawa.lib.arrays"); define_field("array-start", "kawa.lib.arrays"); define_field("array-end", "kawa.lib.arrays"); define_field("shape", "kawa.lib.arrays"); define_field("array-ref", "gnu.kawa.functions.ArrayRef", "arrayRef"); define_field("array-set!", "gnu.kawa.functions.ArraySet", "arraySet"); define_field("share-array", "kawa.lib.arrays"); define_proc ("s8vector?", "kawa.lib.uniform"); define_proc ("make-s8vector", "kawa.lib.uniform"); define_proc ("s8vector", "kawa.lib.uniform"); define_proc ("s8vector-length", "kawa.lib.uniform"); define_proc ("s8vector-ref", "kawa.lib.uniform"); define_proc ("s8vector-set!", "kawa.lib.uniform"); define_proc ("s8vector->list", "kawa.lib.uniform"); define_proc ("list->s8vector", "kawa.lib.uniform"); define_proc ("u8vector?", "kawa.lib.uniform"); define_proc ("make-u8vector", "kawa.lib.uniform"); define_proc ("u8vector", "kawa.lib.uniform"); define_proc ("u8vector-length", "kawa.lib.uniform"); define_proc ("u8vector-ref", "kawa.lib.uniform"); define_proc ("u8vector-set!", "kawa.lib.uniform"); define_proc ("u8vector->list", "kawa.lib.uniform"); define_proc ("list->u8vector", "kawa.lib.uniform"); define_proc ("s16vector?", "kawa.lib.uniform"); define_proc ("make-s16vector", "kawa.lib.uniform"); define_proc ("s16vector", "kawa.lib.uniform"); define_proc ("s16vector-length", "kawa.lib.uniform"); define_proc ("s16vector-ref", "kawa.lib.uniform"); define_proc ("s16vector-set!", "kawa.lib.uniform"); define_proc ("s16vector->list", "kawa.lib.uniform"); define_proc ("list->s16vector", "kawa.lib.uniform"); define_proc ("u16vector?", "kawa.lib.uniform"); define_proc ("make-u16vector", "kawa.lib.uniform"); define_proc ("u16vector", "kawa.lib.uniform"); define_proc ("u16vector-length", "kawa.lib.uniform"); define_proc ("u16vector-ref", "kawa.lib.uniform"); define_proc ("u16vector-set!", "kawa.lib.uniform"); define_proc ("u16vector->list", "kawa.lib.uniform"); define_proc ("list->u16vector", "kawa.lib.uniform"); define_proc ("s32vector?", "kawa.lib.uniform"); define_proc ("make-s32vector", "kawa.lib.uniform"); define_proc ("s32vector", "kawa.lib.uniform"); define_proc ("s32vector-length", "kawa.lib.uniform"); define_proc ("s32vector-ref", "kawa.lib.uniform"); define_proc ("s32vector-set!", "kawa.lib.uniform"); define_proc ("s32vector->list", "kawa.lib.uniform"); define_proc ("list->s32vector", "kawa.lib.uniform"); define_proc ("u32vector?", "kawa.lib.uniform"); define_proc ("make-u32vector", "kawa.lib.uniform"); define_proc ("u32vector", "kawa.lib.uniform"); define_proc ("u32vector-length", "kawa.lib.uniform"); define_proc ("u32vector-ref", "kawa.lib.uniform"); define_proc ("u32vector-set!", "kawa.lib.uniform"); define_proc ("u32vector->list", "kawa.lib.uniform"); define_proc ("list->u32vector", "kawa.lib.uniform"); define_proc ("s64vector?", "kawa.lib.uniform"); define_proc ("make-s64vector", "kawa.lib.uniform"); define_proc ("s64vector", "kawa.lib.uniform"); define_proc ("s64vector-length", "kawa.lib.uniform"); define_proc ("s64vector-ref", "kawa.lib.uniform"); define_proc ("s64vector-set!", "kawa.lib.uniform"); define_proc ("s64vector->list", "kawa.lib.uniform"); define_proc ("list->s64vector", "kawa.lib.uniform"); define_proc ("u64vector?", "kawa.lib.uniform"); define_proc ("make-u64vector", "kawa.lib.uniform"); define_proc ("u64vector", "kawa.lib.uniform"); define_proc ("u64vector-length", "kawa.lib.uniform"); define_proc ("u64vector-ref", "kawa.lib.uniform"); define_proc ("u64vector-set!", "kawa.lib.uniform"); define_proc ("u64vector->list", "kawa.lib.uniform"); define_proc ("list->u64vector", "kawa.lib.uniform"); define_proc ("f32vector?", "kawa.lib.uniform"); define_proc ("make-f32vector", "kawa.lib.uniform"); define_proc ("f32vector", "kawa.lib.uniform"); define_proc ("f32vector-length", "kawa.lib.uniform"); define_proc ("f32vector-ref", "kawa.lib.uniform"); define_proc ("f32vector-set!", "kawa.lib.uniform"); define_proc ("f32vector->list", "kawa.lib.uniform"); define_proc ("list->f32vector", "kawa.lib.uniform"); define_proc ("f64vector?", "kawa.lib.uniform"); define_proc ("make-f64vector", "kawa.lib.uniform"); define_proc ("f64vector", "kawa.lib.uniform"); define_proc ("f64vector-length", "kawa.lib.uniform"); define_proc ("f64vector-ref", "kawa.lib.uniform"); define_proc ("f64vector-set!", "kawa.lib.uniform"); define_proc ("f64vector->list", "kawa.lib.uniform"); define_proc ("list->f64vector", "kawa.lib.uniform"); define_syntax("cut", "gnu.kawa.slib.cut"); define_syntax("cute", "gnu.kawa.slib.cut"); define_proc ("emacs", "gnu.jemacs.buffer.emacs"); define_proc ("node", "gnu.kawa.xml.MakeTreeNode"); define_syntax("%if-feature", "kawa.standard.IfFeature"); define_syntax("cond-expand", "kawa.lib.syntax"); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/2f4c559499d741e945589fa818bd4fddfc964843/Scheme.java/buggy/kawa/standard/Scheme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 9321, 1832, 225, 288, 1377, 9796, 5418, 31, 1377, 9796, 6194, 31, 1377, 368, 261, 2011, 17, 10274, 13, 1377, 446, 5494, 273, 394, 7518, 261, 1769, 1377, 446, 5494, 18, 542, 461, 7566, 2011, 17, 10274, 8863, 1377, 5473, 273, 446, 5494, 31, 1377, 12801, 3195, 273, 394, 417, 2219, 69, 18, 4936, 18, 12025, 5621, 1377, 3195, 18, 542, 14149, 12, 12193, 18, 10444, 16, 13409, 18, 8792, 16, 13409, 18, 856, 1769, 1377, 4426, 67, 14308, 7566, 14661, 3113, 3195, 1769, 1377, 368, 413, 10092, 1059, 18, 21, 225, 1493, 3912, 1377, 4426, 261, 48, 23831, 30010, 18, 6889, 67, 8117, 16, 394, 21695, 1832, 1769, 1377, 4426, 67, 14308, 2932, 11255, 3113, 394, 417, 2219, 69, 18, 10005, 18, 11255, 12, 14661, 16, 629, 10019, 1377, 4426, 67, 14308, 2932, 11255, 17, 1152, 3113, 10792, 394, 417, 2219, 69, 18, 10005, 18, 11255, 12, 14661, 16, 638, 10019, 1377, 4426, 67, 14308, 2932, 11255, 17, 14384, 3113, 10792, 394, 417, 2219, 69, 18, 10005, 18, 11255, 12, 14661, 16, 629, 16, 638, 10019, 1377, 4426, 67, 14308, 2932, 11255, 17, 19832, 3113, 394, 4426, 67, 19832, 12, 5743, 10019, 1377, 4426, 67, 14308, 2932, 11255, 17, 19832, 87, 17, 2080, 17, 768, 3113, 394, 4426, 67, 19832, 12, 3767, 10019, 1377, 4426, 67, 14308, 7566, 430, 3113, 315, 79, 2219, 69, 18, 10005, 18, 430, 84, 8863, 1377, 4426, 67, 14308, 7566, 542, 5, 3113, 315, 79, 2219, 69, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 9321, 1832, 225, 288, 1377, 9796, 5418, 31, 1377, 9796, 6194, 31, 1377, 368, 261, 2011, 17, 10274, 13, 1377, 446, 5494, 273, 394, 7518, 261, 1769, 1377, 446, 5494, 18, 542, 461, 7566, 2011, 17, 10274, 8863, 1377, 5473, 273, 446, 5494, 31, 1377, 12801, 3195, 273, 394, 417, 2219, 69, 18, 4936, 18, 12025, 5621, 1377, 3195, 18, 542, 14149, 12, 12193, 18, 10444, 16, 13409, 18, 8792, 16, 13409, 18, 856, 1769, 1377, 4426, 67, 14308, 7566, 14661, 3113, 3195, 1769, 1377, 368, 413, 10092, 1059, 18, 21, 225, 1493, 3912, 1377, 4426, 261, 48, 23831, 30010, 18, 6889, 67, 8117, 16, 394, 21695, 1832, 1769, 1377, 4426, 67, 14308, 2932, 11255, 2 ]
return s47;
return s49;
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 24: return s47; case 25: return s34; case EOL: case 15: return s63; default: NoViableAltException nvae = new NoViableAltException("", 4, 63, input); throw nvae; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/12c8feffd968f958100f654d836fa3c2ee21ded8/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 4248, 30, 10792, 327, 272, 7616, 31, 7734, 648, 6969, 30, 10792, 327, 272, 5026, 31, 7734, 648, 19995, 30, 7734, 648, 4711, 30, 10792, 327, 272, 4449, 31, 7734, 805, 30, 10792, 17114, 15077, 273, 13491, 394, 17114, 2932, 3113, 1059, 16, 13746, 16, 810, 1769, 10792, 604, 15077, 31, 3639, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 4248, 30, 10792, 327, 272, 7616, 31, 7734, 648, 6969, 30, 10792, 327, 272, 5026, 31, 7734, 648, 19995, 30, 7734, 648, 4711, 30, 10792, 327, 272, 4449, 31, 7734, 805, 30, 10792, 17114, 15077, 273, 13491, 394, 17114, 2932, 3113, 1059, 16, 13746, 16, 810, 1769, 10792, 604, 15077, 31, 3639, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void registerObserver(final StartObserver observer) {
public void registerObserver(final CommandObserver observer) {
public void registerObserver(final StartObserver observer) { observersStart = StartObserverList.register(observersStart, observer); }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/48256cd19787d2a063ef0eae1d7d292225e6cb20/Max.java/buggy/ExTeX/src/java/de/dante/extex/interpreter/max/Max.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1744, 11048, 12, 6385, 3498, 11048, 9655, 13, 288, 3639, 19813, 1685, 273, 3603, 11048, 682, 18, 4861, 12, 12199, 2496, 1685, 16, 9655, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1744, 11048, 12, 6385, 3498, 11048, 9655, 13, 288, 3639, 19813, 1685, 273, 3603, 11048, 682, 18, 4861, 12, 12199, 2496, 1685, 16, 9655, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
addExpectedType(binding);
addExpectedType(binding, scope);
private void computeExpectedTypes(ASTNode parent, ASTNode node, Scope scope){ // default filter this.expectedTypesFilter = SUBTYPE; // find types from parent if(parent instanceof AbstractVariableDeclaration) { AbstractVariableDeclaration variable = (AbstractVariableDeclaration)parent; TypeBinding binding = variable.type.resolvedType; if(binding != null) { if(!(variable.initialization instanceof ArrayInitializer)) { addExpectedType(binding); } } } else if(parent instanceof Assignment) { TypeBinding binding = ((Assignment)parent).lhs.resolvedType; if(binding != null) { addExpectedType(binding); } } else if(parent instanceof ReturnStatement) { if(scope.methodScope().referenceContext instanceof AbstractMethodDeclaration) { MethodBinding methodBinding = ((AbstractMethodDeclaration) scope.methodScope().referenceContext).binding; TypeBinding binding = methodBinding == null ? null : methodBinding.returnType; if(binding != null) { addExpectedType(binding); } } } else if(parent instanceof CastExpression) { Expression e = ((CastExpression)parent).type; TypeBinding binding = e.resolvedType; if(binding != null){ addExpectedType(binding); this.expectedTypesFilter = SUBTYPE | SUPERTYPE; } } else if(parent instanceof MessageSend) { MessageSend messageSend = (MessageSend) parent; if(messageSend.actualReceiverType instanceof ReferenceBinding) { ReferenceBinding binding = (ReferenceBinding)messageSend.actualReceiverType; boolean isStatic = messageSend.receiver.isTypeReference(); while(binding != null) { computeExpectedTypesForMessageSend( binding, messageSend.selector, messageSend.arguments, (ReferenceBinding)messageSend.actualReceiverType, scope, messageSend, isStatic); computeExpectedTypesForMessageSendForInterface( binding, messageSend.selector, messageSend.arguments, (ReferenceBinding)messageSend.actualReceiverType, scope, messageSend, isStatic); binding = binding.superclass(); } } } else if(parent instanceof AllocationExpression) { AllocationExpression allocationExpression = (AllocationExpression) parent; ReferenceBinding binding = (ReferenceBinding)allocationExpression.type.resolvedType; if(binding != null) { computeExpectedTypesForAllocationExpression( binding, allocationExpression.arguments, scope, allocationExpression); } } else if(parent instanceof OperatorExpression) { int operator = (parent.bits & ASTNode.OperatorMASK) >> ASTNode.OperatorSHIFT; if(parent instanceof ConditionalExpression) { // for future use } else if(parent instanceof InstanceOfExpression) { InstanceOfExpression e = (InstanceOfExpression) parent; TypeBinding binding = e.expression.resolvedType; if(binding != null){ addExpectedType(binding); this.expectedTypesFilter = SUBTYPE | SUPERTYPE; } } else if(parent instanceof BinaryExpression) { switch(operator) { case OperatorIds.PLUS : addExpectedType(TypeBinding.SHORT); addExpectedType(TypeBinding.INT); addExpectedType(TypeBinding.LONG); addExpectedType(TypeBinding.FLOAT); addExpectedType(TypeBinding.DOUBLE); addExpectedType(TypeBinding.CHAR); addExpectedType(TypeBinding.BYTE); addExpectedType(scope.getJavaLangString()); break; case OperatorIds.AND_AND : case OperatorIds.OR_OR : case OperatorIds.XOR : addExpectedType(TypeBinding.BOOLEAN); break; default : addExpectedType(TypeBinding.SHORT); addExpectedType(TypeBinding.INT); addExpectedType(TypeBinding.LONG); addExpectedType(TypeBinding.FLOAT); addExpectedType(TypeBinding.DOUBLE); addExpectedType(TypeBinding.CHAR); addExpectedType(TypeBinding.BYTE); break; } BinaryExpression binaryExpression = (BinaryExpression) parent; if(operator == OperatorIds.LESS) { if(binaryExpression.left instanceof SingleNameReference){ SingleNameReference name = (SingleNameReference) binaryExpression.left; Binding b = scope.getBinding(name.token, Binding.VARIABLE | Binding.TYPE, name, false); if(b instanceof ReferenceBinding) { TypeVariableBinding[] typeVariableBindings =((ReferenceBinding)b).typeVariables(); if(typeVariableBindings != null && typeVariableBindings.length > 0) { addExpectedType(typeVariableBindings[0].firstBound); } } } } } else if(parent instanceof UnaryExpression) { switch(operator) { case OperatorIds.NOT : addExpectedType(TypeBinding.BOOLEAN); break; case OperatorIds.TWIDDLE : addExpectedType(TypeBinding.SHORT); addExpectedType(TypeBinding.INT); addExpectedType(TypeBinding.LONG); addExpectedType(TypeBinding.CHAR); addExpectedType(TypeBinding.BYTE); break; case OperatorIds.PLUS : case OperatorIds.MINUS : case OperatorIds.PLUS_PLUS : case OperatorIds.MINUS_MINUS : addExpectedType(TypeBinding.SHORT); addExpectedType(TypeBinding.INT); addExpectedType(TypeBinding.LONG); addExpectedType(TypeBinding.FLOAT); addExpectedType(TypeBinding.DOUBLE); addExpectedType(TypeBinding.CHAR); addExpectedType(TypeBinding.BYTE); break; } } } else if(parent instanceof ArrayReference) { addExpectedType(TypeBinding.SHORT); addExpectedType(TypeBinding.INT); addExpectedType(TypeBinding.LONG); } else if(parent instanceof ParameterizedSingleTypeReference) { ParameterizedSingleTypeReference ref = (ParameterizedSingleTypeReference) parent; TypeVariableBinding[] typeVariables = ((ReferenceBinding)ref.resolvedType).typeVariables(); int length = ref.typeArguments == null ? 0 : ref.typeArguments.length; if(typeVariables != null && typeVariables.length >= length) { int index = length - 1; while(index > -1 && ref.typeArguments[index] != node) index--; addExpectedType(typeVariables[index].firstBound); } } else if(parent instanceof ParameterizedQualifiedTypeReference) { ParameterizedQualifiedTypeReference ref = (ParameterizedQualifiedTypeReference) parent; TypeVariableBinding[] typeVariables = ((ReferenceBinding)ref.resolvedType).typeVariables(); TypeReference[][] arguments = ref.typeArguments; if(typeVariables != null) { int iLength = arguments == null ? 0 : arguments.length; done: for (int i = 0; i < iLength; i++) { int jLength = arguments[i] == null ? 0 : arguments[i].length; for (int j = 0; j < jLength; j++) { if(arguments[i][j] == node && typeVariables.length > j) { addExpectedType(typeVariables[j].firstBound); break done; } } } } } else if(parent instanceof MemberValuePair) { MemberValuePair memberValuePair = (MemberValuePair) parent; if(memberValuePair.binding != null) { addExpectedType(memberValuePair.binding.returnType); } } else if (parent instanceof NormalAnnotation) { NormalAnnotation annotation = (NormalAnnotation) parent; MemberValuePair[] memberValuePairs = annotation.memberValuePairs(); if(memberValuePairs == null || memberValuePairs.length == 0) { if(annotation.resolvedType instanceof ReferenceBinding) { MethodBinding[] methodBindings = ((ReferenceBinding)annotation.resolvedType).availableMethods(); if(methodBindings != null && methodBindings.length == 1 && CharOperation.equals(methodBindings[0].selector, VALUE)) { addExpectedType(methodBindings[0].returnType); } } } // Expected types for javadoc } else if (parent instanceof Javadoc) { if (scope.kind == Scope.METHOD_SCOPE) { MethodScope methodScope = (MethodScope) scope; AbstractMethodDeclaration methodDecl = methodScope.referenceMethod(); if (methodDecl != null && methodDecl.binding != null) { ReferenceBinding[] exceptions = methodDecl.binding.thrownExceptions; if (exceptions != null) { for (int i = 0; i < exceptions.length; i++) { addExpectedType(exceptions[i]); } } } } } if(this.expectedTypesPtr + 1 != this.expectedTypes.length) { System.arraycopy(this.expectedTypes, 0, this.expectedTypes = new TypeBinding[this.expectedTypesPtr + 1], 0, this.expectedTypesPtr + 1); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/d100192f697f326dff66b368f9d71d16adde29e2/CompletionEngine.java/clean/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3671, 6861, 2016, 12, 9053, 907, 982, 16, 9183, 907, 756, 16, 5468, 2146, 15329, 9506, 202, 759, 805, 1034, 202, 202, 2211, 18, 3825, 2016, 1586, 273, 10025, 2399, 31, 9506, 202, 759, 1104, 1953, 628, 982, 202, 202, 430, 12, 2938, 1276, 4115, 26547, 13, 288, 1082, 202, 7469, 26547, 2190, 273, 261, 7469, 26547, 13, 2938, 31, 1082, 202, 559, 5250, 5085, 273, 2190, 18, 723, 18, 11792, 559, 31, 1082, 202, 430, 12, 7374, 480, 446, 13, 288, 9506, 202, 430, 12, 5, 12, 6105, 18, 6769, 1588, 1276, 1510, 14729, 3719, 288, 6862, 202, 1289, 6861, 559, 12, 7374, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 469, 309, 12, 2938, 1276, 15499, 13, 288, 1082, 202, 559, 5250, 5085, 273, 14015, 7729, 13, 2938, 2934, 80, 4487, 18, 11792, 559, 31, 1082, 202, 430, 12, 7374, 480, 446, 13, 288, 9506, 202, 1289, 6861, 559, 12, 7374, 1769, 1082, 202, 97, 202, 202, 97, 469, 309, 12, 2938, 1276, 2000, 3406, 13, 288, 1082, 202, 430, 12, 4887, 18, 2039, 3876, 7675, 6180, 1042, 1276, 4115, 1305, 6094, 13, 288, 9506, 202, 1305, 5250, 707, 5250, 273, 14015, 7469, 1305, 6094, 13, 2146, 18, 2039, 3876, 7675, 6180, 1042, 2934, 7374, 31, 9506, 202, 559, 5250, 5085, 273, 707, 5250, 225, 422, 446, 692, 446, 294, 707, 5250, 18, 2463, 559, 31, 9506, 202, 430, 12, 7374, 480, 446, 13, 288, 6862, 202, 1289, 6861, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3671, 6861, 2016, 12, 9053, 907, 982, 16, 9183, 907, 756, 16, 5468, 2146, 15329, 9506, 202, 759, 805, 1034, 202, 202, 2211, 18, 3825, 2016, 1586, 273, 10025, 2399, 31, 9506, 202, 759, 1104, 1953, 628, 982, 202, 202, 430, 12, 2938, 1276, 4115, 26547, 13, 288, 1082, 202, 7469, 26547, 2190, 273, 261, 7469, 26547, 13, 2938, 31, 1082, 202, 559, 5250, 5085, 273, 2190, 18, 723, 18, 11792, 559, 31, 1082, 202, 430, 12, 7374, 480, 446, 13, 288, 9506, 202, 430, 12, 5, 12, 6105, 18, 6769, 1588, 1276, 1510, 14729, 3719, 288, 6862, 202, 1289, 6861, 559, 12, 7374, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 469, 2 ]
if (dbConn != null) dbConn.close(); } catch (SQLException slqE) { }
if (outagesQuery != null) outagesQuery.close(); if (dbConn != null) dbConn.close(); } catch (SQLException slqE) {
public Date getServiceLostDate(int nodeId, String ipAddr, String svcName, int serviceId) { Category log = ThreadCategory.getInstance(Poller.class); log.debug("getting last known status for address: " + ipAddr + " service: " + svcName); Date svcLostDate = null; // Convert service name to service identifier // if (serviceId < 0) { log.warn("Failed to retrieve service identifier for interface " + ipAddr + " and service '" + svcName + "'"); return svcLostDate; } ResultSet outagesResult = null; Timestamp regainedDate = null; Timestamp lostDate = null; Connection dbConn = null; try { dbConn = getConnection(); // get the outage information for this service on this ip address PreparedStatement outagesQuery = dbConn.prepareStatement(DefaultQueryManager.SQL_RETRIEVE_SERVICE_STATUS); // add the values for the main query outagesQuery.setInt(1, nodeId); outagesQuery.setString(2, ipAddr); outagesQuery.setInt(3, serviceId); // add the values for the subquery outagesQuery.setInt(4, nodeId); outagesQuery.setString(5, ipAddr); outagesQuery.setInt(6, serviceId); outagesResult = outagesQuery.executeQuery(); // if there was a result then the service has been down before, if (outagesResult.next()) { regainedDate = outagesResult.getTimestamp(1); lostDate = outagesResult.getTimestamp(2); log.debug("getServiceLastKnownStatus: lostDate: " + lostDate); } // the service has never been down, need to use current date for // both else { Date currentDate = new Date(System.currentTimeMillis()); regainedDate = new Timestamp(currentDate.getTime()); lostDate = lostDate = new Timestamp(currentDate.getTime()); } } catch (SQLException sqlE) { log.error("SQL exception while retrieving last known service status for " + ipAddr + "/" + svcName); } finally { if (outagesResult != null) { try { outagesResult.close(); if (dbConn != null) dbConn.close(); } catch (SQLException slqE) { // Do nothing } } } // Now use retrieved outage times to determine current status // of the service. If there was an error and we were unable // to retrieve the outage times the default of AVAILABLE will // be returned. // if (lostDate != null) { // If the service was never regained then simply // assign the svc lost date. if (regainedDate == null) { svcLostDate = new Date(lostDate.getTime()); log.debug("getServiceLastKnownStatus: svcLostDate: " + svcLostDate); } } return svcLostDate; }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/91799742a1742f71d0adf3e093c3c8217c1ab470/DefaultQueryManager.java/clean/src/services/org/opennms/netmgt/poller/DefaultQueryManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2167, 6373, 19024, 1626, 12, 474, 11507, 16, 514, 2359, 3178, 16, 514, 7538, 461, 16, 509, 17130, 13, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 5850, 749, 18, 1106, 1769, 3639, 613, 18, 4148, 2932, 588, 1787, 1142, 4846, 1267, 364, 1758, 30, 315, 397, 2359, 3178, 397, 315, 1156, 30, 315, 397, 7538, 461, 1769, 3639, 2167, 7538, 19024, 1626, 273, 446, 31, 3639, 368, 4037, 1156, 508, 358, 1156, 2756, 3639, 368, 3639, 309, 261, 3278, 548, 411, 374, 13, 288, 5411, 613, 18, 8935, 2932, 2925, 358, 4614, 1156, 2756, 364, 1560, 315, 397, 2359, 3178, 397, 315, 471, 1156, 2119, 397, 7538, 461, 397, 5862, 1769, 5411, 327, 7538, 19024, 1626, 31, 3639, 289, 3639, 10842, 596, 1023, 1253, 273, 446, 31, 3639, 8159, 960, 8707, 1626, 273, 446, 31, 3639, 8159, 13557, 1626, 273, 446, 31, 3639, 4050, 30795, 273, 446, 31, 3639, 775, 288, 5411, 30795, 273, 6742, 5621, 5411, 368, 336, 326, 596, 410, 1779, 364, 333, 1156, 603, 333, 2359, 1758, 5411, 16913, 596, 1023, 1138, 273, 30795, 18, 9366, 3406, 12, 1868, 1138, 1318, 18, 3997, 67, 862, 6566, 41, 3412, 67, 12426, 67, 8608, 1769, 5411, 368, 527, 326, 924, 364, 326, 2774, 843, 5411, 596, 1023, 1138, 18, 542, 1702, 12, 21, 16, 11507, 1769, 5411, 596, 1023, 1138, 18, 542, 780, 12, 22, 16, 2359, 3178, 1769, 5411, 596, 1023, 1138, 18, 542, 1702, 12, 23, 16, 17130, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2167, 6373, 19024, 1626, 12, 474, 11507, 16, 514, 2359, 3178, 16, 514, 7538, 461, 16, 509, 17130, 13, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 5850, 749, 18, 1106, 1769, 3639, 613, 18, 4148, 2932, 588, 1787, 1142, 4846, 1267, 364, 1758, 30, 315, 397, 2359, 3178, 397, 315, 1156, 30, 315, 397, 7538, 461, 1769, 3639, 2167, 7538, 19024, 1626, 273, 446, 31, 3639, 368, 4037, 1156, 508, 358, 1156, 2756, 3639, 368, 3639, 309, 261, 3278, 548, 411, 374, 13, 288, 5411, 613, 18, 8935, 2932, 2925, 358, 4614, 1156, 2756, 364, 1560, 315, 397, 2359, 3178, 397, 315, 471, 1156, 2119, 397, 7538, 461, 397, 5862, 1769, 5411, 327, 2 ]
XConnectionPoolManager mgr = new XConnectionPoolManager(); m_ConnectionPool = mgr.getPool(poolName); if (m_ConnectionPool == null)
if ( (m_ConnectionPool != null) && (m_IsDefaultPool) && (cpool != m_ConnectionPool))
private void init(String driver, String dbURL, Properties prop) throws SQLException { String user = prop.getProperty("user"); if (user == null) user = ""; String passwd = prop.getProperty("password"); if (passwd == null) passwd = ""; String poolName = driver + dbURL + user + passwd; XConnectionPoolManager mgr = new XConnectionPoolManager(); m_ConnectionPool = mgr.getPool(poolName); if (m_ConnectionPool == null) { DefaultConnectionPool defpool = new DefaultConnectionPool(); defpool.setDriver(driver); defpool.setURL(dbURL); defpool.setProtocol(prop); defpool.setActive(true); mgr.registerPool(poolName, defpool); m_ConnectionPool = defpool; } m_connection = m_ConnectionPool.getConnection(); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/7d744512dc8e245dd21d7f5e5ed2fe25c213821d/XConnection.java/clean/src/org/apache/xalan/lib/sql/XConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 12, 780, 3419, 16, 514, 1319, 1785, 16, 6183, 2270, 13, 565, 1216, 6483, 225, 288, 565, 514, 729, 273, 2270, 18, 588, 1396, 2932, 1355, 8863, 565, 309, 261, 1355, 422, 446, 13, 729, 273, 1408, 31, 565, 514, 19093, 273, 2270, 18, 588, 1396, 2932, 3664, 8863, 565, 309, 261, 24002, 422, 446, 13, 19093, 273, 1408, 31, 565, 514, 26445, 273, 3419, 397, 1319, 1785, 397, 729, 397, 19093, 31, 565, 1139, 1952, 2864, 1318, 13333, 273, 394, 1139, 1952, 2864, 1318, 5621, 565, 312, 67, 1952, 2864, 273, 13333, 18, 588, 2864, 12, 6011, 461, 1769, 565, 309, 261, 81, 67, 1952, 2864, 422, 446, 13, 565, 288, 1377, 2989, 1952, 2864, 1652, 6011, 273, 394, 2989, 1952, 2864, 5621, 1377, 1652, 6011, 18, 542, 4668, 12, 7407, 1769, 1377, 1652, 6011, 18, 542, 1785, 12, 1966, 1785, 1769, 1377, 1652, 6011, 18, 542, 5752, 12, 5986, 1769, 1377, 1652, 6011, 18, 542, 3896, 12, 3767, 1769, 1377, 13333, 18, 4861, 2864, 12, 6011, 461, 16, 1652, 6011, 1769, 1377, 312, 67, 1952, 2864, 273, 1652, 6011, 31, 565, 289, 565, 312, 67, 4071, 273, 312, 67, 1952, 2864, 18, 588, 1952, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 12, 780, 3419, 16, 514, 1319, 1785, 16, 6183, 2270, 13, 565, 1216, 6483, 225, 288, 565, 514, 729, 273, 2270, 18, 588, 1396, 2932, 1355, 8863, 565, 309, 261, 1355, 422, 446, 13, 729, 273, 1408, 31, 565, 514, 19093, 273, 2270, 18, 588, 1396, 2932, 3664, 8863, 565, 309, 261, 24002, 422, 446, 13, 19093, 273, 1408, 31, 565, 514, 26445, 273, 3419, 397, 1319, 1785, 397, 729, 397, 19093, 31, 565, 1139, 1952, 2864, 1318, 13333, 273, 394, 1139, 1952, 2864, 1318, 5621, 565, 312, 67, 1952, 2864, 273, 13333, 18, 588, 2864, 12, 6011, 461, 1769, 565, 309, 261, 81, 67, 1952, 2864, 422, 446, 13, 565, 288, 1377, 2989, 1952, 2 ]
public void addSipListener(SipListener sipListener) throws TooManyListenersException;
public void addSipListener(SipListener sipListener) throws TooManyListenersException;
public void addSipListener(SipListener sipListener) throws TooManyListenersException;
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d240e0f73b1d49ecd3d27516fe279ea1df364a14/SipProvider.java/clean/src/javax/sip/SipProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 17550, 2223, 12, 17550, 2223, 10341, 2223, 13, 1082, 202, 15069, 15869, 5594, 5583, 503, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Node.Target gotoTarget = new Node.Target();
Node gotoTarget = Node.newTarget();
void addSwitchCase(Node switchBlock, Node caseExpression, Node statements) { if (switchBlock.getType() != Token.BLOCK) throw Kit.codeBug(); Node.Jump switchNode = (Node.Jump)switchBlock.getFirstChild(); if (switchNode.getType() != Token.SWITCH) throw Kit.codeBug(); Node.Target gotoTarget = new Node.Target(); if (caseExpression != null) { Node.Jump caseNode = new Node.Jump(Token.CASE, caseExpression); caseNode.target = gotoTarget; switchNode.addChildToBack(caseNode); } else { switchNode.setDefault(gotoTarget); } switchBlock.addChildToBack(gotoTarget); switchBlock.addChildToBack(statements); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/bef182034b96d54a2938fe141217e83b8644cf25/IRFactory.java/clean/js/rhino/src/org/mozilla/javascript/IRFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 10200, 2449, 12, 907, 1620, 1768, 16, 2029, 648, 2300, 16, 2029, 6317, 13, 565, 288, 3639, 309, 261, 9610, 1768, 18, 588, 559, 1435, 480, 3155, 18, 11403, 13, 604, 1475, 305, 18, 710, 19865, 5621, 3639, 2029, 18, 26743, 1620, 907, 273, 261, 907, 18, 26743, 13, 9610, 1768, 18, 588, 3759, 1763, 5621, 3639, 309, 261, 9610, 907, 18, 588, 559, 1435, 480, 3155, 18, 18746, 25588, 13, 604, 1475, 305, 18, 710, 19865, 5621, 3639, 2029, 2897, 2326, 273, 2029, 18, 2704, 2326, 5621, 3639, 309, 261, 3593, 2300, 480, 446, 13, 288, 5411, 2029, 18, 26743, 648, 907, 273, 394, 2029, 18, 26743, 12, 1345, 18, 13415, 16, 648, 2300, 1769, 5411, 648, 907, 18, 3299, 273, 2897, 2326, 31, 5411, 1620, 907, 18, 1289, 1763, 774, 2711, 12, 3593, 907, 1769, 3639, 289, 469, 288, 5411, 1620, 907, 18, 542, 1868, 12, 75, 6302, 2326, 1769, 3639, 289, 3639, 1620, 1768, 18, 1289, 1763, 774, 2711, 12, 75, 6302, 2326, 1769, 3639, 1620, 1768, 18, 1289, 1763, 774, 2711, 12, 18393, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 10200, 2449, 12, 907, 1620, 1768, 16, 2029, 648, 2300, 16, 2029, 6317, 13, 565, 288, 3639, 309, 261, 9610, 1768, 18, 588, 559, 1435, 480, 3155, 18, 11403, 13, 604, 1475, 305, 18, 710, 19865, 5621, 3639, 2029, 18, 26743, 1620, 907, 273, 261, 907, 18, 26743, 13, 9610, 1768, 18, 588, 3759, 1763, 5621, 3639, 309, 261, 9610, 907, 18, 588, 559, 1435, 480, 3155, 18, 18746, 25588, 13, 604, 1475, 305, 18, 710, 19865, 5621, 3639, 2029, 2897, 2326, 273, 2029, 18, 2704, 2326, 5621, 3639, 309, 261, 3593, 2300, 480, 446, 13, 288, 5411, 2029, 18, 26743, 648, 907, 273, 394, 2029, 18, 26743, 12, 1345, 18, 13415, 16, 648, 2300, 1769, 2 ]
public short getNodeType()
public short getNodeType()
public short getNodeType() { return Node.ELEMENT_NODE; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemTemplateElement.java/buggy/src/org/apache/xalan/templates/ElemTemplateElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3025, 20525, 1435, 225, 288, 565, 327, 2029, 18, 10976, 67, 8744, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3025, 20525, 1435, 225, 288, 565, 327, 2029, 18, 10976, 67, 8744, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (index < 0 || index >= mod.getChildCount(parent))
int size = 0; if (!mod.isLeaf(parent)) size = mod.getChildCount(parent); if (index < 0 || index >= size)
Object getPreviousSibling(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) - 1; if (index < 0 || index >= mod.getChildCount(parent)) return null; return mod.getChild(parent, index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa6d4551020d668e0117627b6c897b57ffb692b6/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 17225, 10291, 12, 921, 756, 13, 225, 288, 565, 4902, 1488, 681, 273, 2151, 18, 588, 1488, 5621, 565, 1033, 982, 273, 5089, 12, 1711, 18, 588, 2375, 9334, 756, 1769, 565, 309, 261, 2938, 422, 446, 13, 1377, 327, 446, 31, 565, 509, 770, 273, 681, 18, 588, 31985, 1763, 12, 2938, 16, 756, 13, 300, 404, 31, 565, 509, 963, 273, 374, 31, 309, 16051, 1711, 18, 291, 9858, 12, 2938, 3719, 963, 273, 681, 18, 588, 1763, 1380, 12, 2938, 1769, 309, 261, 1615, 411, 374, 747, 770, 1545, 963, 13, 1377, 327, 446, 31, 565, 327, 681, 18, 588, 1763, 12, 2938, 16, 770, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 17225, 10291, 12, 921, 756, 13, 225, 288, 565, 4902, 1488, 681, 273, 2151, 18, 588, 1488, 5621, 565, 1033, 982, 273, 5089, 12, 1711, 18, 588, 2375, 9334, 756, 1769, 565, 309, 261, 2938, 422, 446, 13, 1377, 327, 446, 31, 565, 509, 770, 273, 681, 18, 588, 31985, 1763, 12, 2938, 16, 756, 13, 300, 404, 31, 565, 509, 963, 273, 374, 31, 309, 16051, 1711, 18, 291, 9858, 12, 2938, 3719, 963, 273, 681, 18, 588, 1763, 1380, 12, 2938, 1769, 309, 261, 1615, 411, 374, 747, 770, 1545, 963, 13, 1377, 327, 446, 31, 565, 327, 681, 18, 588, 1763, 12, 2938, 16, 770, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100 ]
if (jj_scan_token(CASE)) return true; if (jj_3R_81()) return true; if (jj_scan_token(COLON)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_333()) { jj_scanpos = xsp; if (jj_3R_334()) return true; }
final private boolean jj_3R_324() { if (jj_scan_token(CASE)) return true; if (jj_3R_81()) return true; if (jj_scan_token(COLON)) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 1578, 24, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 13415, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 11861, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4935, 673, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 67, 23, 54, 67, 11861, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4935, 673, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
monitor.subTask(LaunchUIPlugin.getResourceString("AbstractLaunchConfigurationDelegate.building") + project.getName());
monitor.subTask(LaunchMessages.getString("AbstractCLaunchDelegate.building") + project.getName());
public boolean buildForLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException { if (orderedProjects != null) { monitor.beginTask(LaunchUIPlugin.getResourceString("AbstractCLaunchConfigurationDelegate.building_projects"), //$NON-NLS-1$ orderedProjects.size() + 1); for (Iterator i = orderedProjects.iterator(); i.hasNext();) { IProject proj = (IProject)i.next(); monitor.subTask(LaunchUIPlugin.getResourceString("AbstractCLaunchConfigurationDelegate.building") + proj.getName()); //$NON-NLS-1$ proj.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor); } monitor.subTask(LaunchUIPlugin.getResourceString("AbstractLaunchConfigurationDelegate.building") + project.getName()); //$NON-NLS-1$ project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor); } monitor.done(); return false; //don't build. I already did it or I threw an exception. }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a192c2f172621fd921dbaebb14ee66fcee4f8f12/AbstractCLaunchDelegate.java/clean/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1361, 1290, 9569, 12, 2627, 4760, 1750, 1664, 16, 514, 1965, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 9885, 15298, 480, 446, 13, 288, 1082, 202, 10259, 18, 10086, 2174, 12, 9569, 5370, 3773, 18, 588, 1420, 780, 2932, 7469, 5017, 4760, 1750, 9586, 18, 3510, 310, 67, 13582, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 9885, 15298, 18, 1467, 1435, 397, 404, 1769, 1082, 202, 1884, 261, 3198, 277, 273, 5901, 15298, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 9506, 202, 45, 4109, 10296, 273, 261, 45, 4109, 13, 77, 18, 4285, 5621, 9506, 202, 10259, 18, 1717, 2174, 12, 9569, 5370, 3773, 18, 588, 1420, 780, 2932, 7469, 5017, 4760, 1750, 9586, 18, 3510, 310, 7923, 397, 10296, 18, 17994, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 17995, 18, 3510, 12, 10798, 287, 4109, 1263, 18, 29836, 1013, 67, 20215, 16, 6438, 1769, 1082, 202, 97, 1082, 202, 10259, 18, 1717, 2174, 12, 9569, 5058, 18, 588, 780, 2932, 7469, 5017, 4760, 9586, 18, 3510, 310, 7923, 397, 1984, 18, 17994, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 4406, 18, 3510, 12, 10798, 287, 4109, 1263, 18, 29836, 1013, 67, 20215, 16, 6438, 1769, 202, 202, 97, 202, 202, 10259, 18, 8734, 5621, 202, 202, 2463, 629, 31, 368, 19752, 1404, 1361, 18, 467, 1818, 5061, 518, 578, 467, 21146, 392, 1520, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1361, 1290, 9569, 12, 2627, 4760, 1750, 1664, 16, 514, 1965, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 9885, 15298, 480, 446, 13, 288, 1082, 202, 10259, 18, 10086, 2174, 12, 9569, 5370, 3773, 18, 588, 1420, 780, 2932, 7469, 5017, 4760, 1750, 9586, 18, 3510, 310, 67, 13582, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 9885, 15298, 18, 1467, 1435, 397, 404, 1769, 1082, 202, 1884, 261, 3198, 277, 273, 5901, 15298, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 9506, 202, 45, 4109, 10296, 273, 261, 45, 4109, 13, 77, 18, 4285, 5621, 9506, 202, 10259, 18, 1717, 2174, 12, 9569, 2 ]
outputStream.write(((String) item.getText(i) + ",").getBytes()); }
outputStream.write((item.getText(i) + ",").getBytes()); }
private void exportToCSV() { // Ask the user to pick a directory into which to place multiple CSV // files try { DirectoryDialog dialog = new DirectoryDialog(getSite().getWorkbenchWindow().getShell()); dialog.setText("Specify a directory for the CSV files"); String directoryName = dialog.open(); File outputFile; FileOutputStream outputStream; String filename = directoryName + File.separator + "Usage.csv"; outputFile = new File(filename); outputStream = new FileOutputStream(outputFile, false); // Delegate to all collectors for (IUsageCollector collector : editorInput.getReportGenerator().getCollectors()) { collector.exportAsCSVFile(directoryName); } int columnCount = table.getColumnCount(); for (TableItem item : table.getItems()) { for (int i = 0; i < columnCount - 1; i++) { outputStream.write(((String) item.getText(i) + ",").getBytes()); } outputStream.write(item.getText(columnCount - 1).getBytes()); outputStream.write(((String) "\n").getBytes()); } outputStream.flush(); outputStream.close(); } catch (SWTException swe) { MylarStatusHandler.log(swe, "unable to get directory name"); } catch (FileNotFoundException e) { MylarStatusHandler.log(e, "could not resolve file"); } catch (IOException e) { MylarStatusHandler.log(e, "could not write to file"); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/2054e4a776656c51432cb843fa7ea4e2a0c67ffe/UsageStatsEditorPart.java/clean/sandbox/org.eclipse.mylyn.monitor.reports/src/org/eclipse/mylyn/internal/monitor/reports/ui/views/UsageStatsEditorPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3359, 774, 16570, 1435, 288, 202, 202, 759, 25747, 326, 729, 358, 6002, 279, 1867, 1368, 1492, 358, 3166, 3229, 10381, 202, 202, 759, 1390, 202, 202, 698, 288, 1082, 202, 2853, 6353, 6176, 273, 394, 8930, 6353, 12, 588, 4956, 7675, 588, 2421, 22144, 3829, 7675, 588, 13220, 10663, 1082, 202, 12730, 18, 542, 1528, 2932, 19302, 279, 1867, 364, 326, 10381, 1390, 8863, 1082, 202, 780, 1867, 461, 273, 6176, 18, 3190, 5621, 1082, 202, 812, 15047, 31, 1082, 202, 812, 4632, 14956, 31, 1082, 202, 780, 1544, 273, 1867, 461, 397, 1387, 18, 11287, 397, 315, 5357, 18, 6715, 14432, 1082, 202, 2844, 812, 273, 394, 1387, 12, 3459, 1769, 1082, 202, 2844, 1228, 273, 394, 12942, 12, 2844, 812, 16, 629, 1769, 1082, 202, 759, 27687, 358, 777, 3274, 1383, 1082, 202, 1884, 261, 45, 5357, 7134, 8543, 294, 4858, 1210, 18, 588, 4820, 3908, 7675, 588, 10808, 1383, 10756, 288, 9506, 202, 21356, 18, 6530, 1463, 16570, 812, 12, 5149, 461, 1769, 1082, 202, 97, 1082, 202, 474, 22429, 273, 1014, 18, 588, 1494, 1380, 5621, 1082, 202, 1884, 261, 1388, 1180, 761, 294, 1014, 18, 588, 3126, 10756, 288, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 22429, 300, 404, 31, 277, 27245, 288, 6862, 202, 2844, 1228, 18, 2626, 12443, 12, 780, 13, 761, 18, 588, 1528, 12, 77, 13, 397, 5753, 2934, 588, 2160, 10663, 9506, 202, 97, 9506, 202, 2844, 1228, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3359, 774, 16570, 1435, 288, 202, 202, 759, 25747, 326, 729, 358, 6002, 279, 1867, 1368, 1492, 358, 3166, 3229, 10381, 202, 202, 759, 1390, 202, 202, 698, 288, 1082, 202, 2853, 6353, 6176, 273, 394, 8930, 6353, 12, 588, 4956, 7675, 588, 2421, 22144, 3829, 7675, 588, 13220, 10663, 1082, 202, 12730, 18, 542, 1528, 2932, 19302, 279, 1867, 364, 326, 10381, 1390, 8863, 1082, 202, 780, 1867, 461, 273, 6176, 18, 3190, 5621, 1082, 202, 812, 15047, 31, 1082, 202, 812, 4632, 14956, 31, 1082, 202, 780, 1544, 273, 1867, 461, 397, 1387, 18, 11287, 397, 315, 5357, 18, 6715, 14432, 1082, 202, 2844, 812, 273, 394, 1387, 12, 3459, 1769, 1082, 202, 2 ]
public void readConfig(ServletConfig c) throws Exception { /* * Get config file name. * The file name is first looked for as an init parameter, then in a fixed location * in the webapp. */ if (c == null) { // no config no file... return; } String fn = c.getInitParameter("config-file"); if (fn == null) { fn = c.getServletContext().getRealPath("WEB-INF/digilib-config.xml"); if (fn == null) { util.dprintln(4, "setConfig: no param config-file"); throw new ServletException("ERROR no digilib config file!"); } } File f = new File(fn); // setup config file list reader XMLListLoader lilo = new XMLListLoader("digilib-config", "parameter", "name", "value"); // read config file into HashMap HashMap confTable = lilo.loadURL(f.toURL().toString()); // set config file path parameter setValue("servlet.config.file", f.getCanonicalPath()); /* * read parameters */ for (Iterator i = confTable.keySet().iterator(); i.hasNext();) { String key = (String) i.next(); String val = (String) confTable.get(key); Parameter p = get(key); if (p != null) { if (p.getType() == 's') { // type 's' Parameters are not overwritten. continue; } if (! p.setValueFromString(val)) { /* * automatic conversion failed -- try special cases */ // basedir-list if (key.equals("basedir-list")) { // split list into directories String[] sa = FileOps.pathToArray(val); if (sa != null) { p.setValue(sa); } } } } else { // parameter unknown -- just add putParameter(key, null, val, 'f'); } } /* * further initialization */ // debugLevel util.setDebugLevel(getAsInt("debug-level")); // directory cache String[] bd = (String[]) getValue("basedir-list"); int[] fcs = { FileOps.CLASS_IMAGE, FileOps.CLASS_TEXT}; DocuDirCache dirCache; if (getAsBoolean("use-mapping")) { // with mapping file String mapConfPath = getAsString("mapping-file"); if (! mapConfPath.startsWith("/")) { // relative path -> use getRealPath to resolve in WEB-INF mapConfPath = c.getServletContext().getRealPath("WEB-INF/"+mapConfPath); } dirCache = new AliasingDocuDirCache(bd, fcs, mapConfPath); } else { // without mapping dirCache = new DocuDirCache(bd, fcs); } setValue("servlet.dir.cache", dirCache); // useAuthentication if (getAsBoolean("use-authorization")) { // DB version //authOp = new DBAuthOpsImpl(util); // XML version String authConfPath = getAsString("auth-file"); if (! authConfPath.startsWith("/")) { // relative path -> use getRealPath to resolve in WEB-INF authConfPath = c.getServletContext().getRealPath("WEB-INF/"+authConfPath); } AuthOps authOp = new XMLAuthOps(util, authConfPath); setValue("servlet.auth.op", authOp); } // DocuImage class String s = getAsString("docuimage-class"); Class cl = Class.forName(getAsString("docuimage-class")); docuImageClass = Class.forName(getAsString("docuimage-class")); setValue("servlet.docuimage.class", docuImageClass); }
53488 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53488/a15bccbb1f38458138bc2da842bfc1f95800141c/DigilibConfiguration.java/buggy/servlet/src/digilib/servlet/DigilibConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 809, 12, 4745, 809, 276, 13, 1216, 1185, 288, 25083, 202, 20308, 1082, 380, 968, 642, 585, 508, 18, 1082, 380, 1021, 585, 508, 353, 1122, 27321, 364, 487, 392, 1208, 1569, 16, 1508, 316, 279, 5499, 2117, 1082, 380, 316, 326, 28945, 18, 1082, 1195, 202, 202, 430, 261, 71, 422, 446, 13, 288, 1082, 202, 759, 1158, 642, 1158, 585, 2777, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 2295, 273, 276, 18, 588, 2570, 1662, 2932, 1425, 17, 768, 8863, 202, 202, 430, 261, 4293, 422, 446, 13, 288, 1082, 202, 4293, 273, 276, 18, 588, 4745, 1042, 7675, 588, 6955, 743, 2932, 14778, 17, 19212, 19, 5606, 330, 495, 17, 1425, 18, 2902, 8863, 1082, 202, 430, 261, 4293, 422, 446, 13, 288, 9506, 202, 1367, 18, 72, 8222, 12, 24, 16, 315, 542, 809, 30, 1158, 579, 642, 17, 768, 8863, 9506, 202, 12849, 394, 16517, 2932, 3589, 1158, 3097, 330, 495, 642, 585, 4442, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 812, 284, 273, 394, 1387, 12, 4293, 1769, 202, 202, 759, 3875, 642, 585, 666, 2949, 202, 202, 4201, 682, 2886, 328, 31703, 273, 1082, 202, 2704, 3167, 682, 2886, 2932, 5606, 330, 495, 17, 1425, 3113, 315, 6775, 3113, 315, 529, 3113, 315, 1132, 8863, 202, 202, 759, 855, 642, 585, 1368, 4317, 202, 202, 8658, 2195, 1388, 273, 328, 31703, 18, 945, 1785, 12, 74, 18, 869, 1785, 7675, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 809, 12, 4745, 809, 276, 13, 1216, 1185, 288, 25083, 202, 20308, 1082, 380, 968, 642, 585, 508, 18, 1082, 380, 1021, 585, 508, 353, 1122, 27321, 364, 487, 392, 1208, 1569, 16, 1508, 316, 279, 5499, 2117, 1082, 380, 316, 326, 28945, 18, 1082, 1195, 202, 202, 430, 261, 71, 422, 446, 13, 288, 1082, 202, 759, 1158, 642, 1158, 585, 2777, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 2295, 273, 276, 18, 588, 2570, 1662, 2932, 1425, 17, 768, 8863, 202, 202, 430, 261, 4293, 422, 446, 13, 288, 1082, 202, 4293, 273, 276, 18, 588, 4745, 1042, 7675, 588, 6955, 743, 2932, 14778, 17, 19212, 19, 5606, 330, 2 ]
try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) setOnclick(string);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/161d973cb8d39005faf380ea401e605000b8884b/ELResetTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELResetTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 22131, 27065, 12443, 780, 13, 5302, 3843, 2932, 265, 27065, 3113, 30070, 27065, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 22131, 3427, 12443, 780, 13, 5302, 3843, 2932, 265, 3427, 3113, 30070, 3427, 4742, 9334, 4766, 1850, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 22131, 7475, 12443, 780, 13, 5302, 3843, 2932, 265, 7475, 3113, 30070, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 2 ]
newnode = (NodeImpl)createAttribute(source.getNodeName()); break;
if (source.getLocalName() == null) { newnode = createAttribute(source.getNodeName()); } else { newnode = createAttributeNS(source.getNamespaceURI(), source.getNodeName()); } break;
public Node importNode(Node source, boolean deep) throws DOMException { NodeImpl newnode=null; // Sigh. This doesn't work; too many nodes have private data that // would have to be manually tweaked. May be able to add local // shortcuts to each nodetype. Consider ????? // if(source instanceof NodeImpl && // !(source instanceof DocumentImpl)) // { // // Can't clone DocumentImpl since it invokes us... // newnode=(NodeImpl)source.cloneNode(false); // newnode.ownerDocument=this; //} //else int type = source.getNodeType(); switch (type) { case ELEMENT_NODE: { Element newelement = createElement(source.getNodeName()); NamedNodeMap srcattr = source.getAttributes(); if (srcattr != null) { for(int i = 0; i < srcattr.getLength(); i++) { newelement.setAttributeNode( (AttrImpl)importNode(srcattr.item(i), true)); } } newnode = (NodeImpl)newelement; break; } case ATTRIBUTE_NODE: { newnode = (NodeImpl)createAttribute(source.getNodeName()); // Kids carry value break; } case TEXT_NODE: { newnode = (NodeImpl)createTextNode(source.getNodeValue()); break; } case CDATA_SECTION_NODE: { newnode = (NodeImpl)createCDATASection(source.getNodeValue()); break; } case ENTITY_REFERENCE_NODE: { newnode = (NodeImpl)createEntityReference(source.getNodeName()); deep = false; // ????? Right Thing? // Value implied by doctype, so we should not copy it // -- instead, refer to local doctype, if any. break; } case ENTITY_NODE: { Entity srcentity = (Entity)source; EntityImpl newentity = (EntityImpl)createEntity(source.getNodeName()); newentity.setPublicId(srcentity.getPublicId()); newentity.setSystemId(srcentity.getSystemId()); newentity.setNotationName(srcentity.getNotationName()); // Kids carry additional value newnode = newentity; break; } case PROCESSING_INSTRUCTION_NODE: { newnode = (ProcessingInstructionImpl)createProcessingInstruction(source.getNodeName(), source.getNodeValue()); break; } case COMMENT_NODE: { newnode = (NodeImpl)createComment(source.getNodeValue()); break; } case DOCUMENT_TYPE_NODE: { DocumentTypeImpl doctype = (DocumentTypeImpl)source; DocumentTypeImpl newdoctype = (DocumentTypeImpl)createDocumentType( doctype.getNodeName(), doctype.getPublicId(), doctype.getSystemId() ); // Values are on NamedNodeMaps NamedNodeMap smap = ((DocumentType)source).getEntities(); NamedNodeMap tmap = newdoctype.getEntities(); if(smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem((EntityImpl)importNode(smap.item(i), true)); } } smap = ((DocumentType)source).getNotations(); tmap = newdoctype.getNotations(); if (smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem((NotationImpl)importNode(smap.item(i), true)); } } // NOTE: At this time, the DOM definition of DocumentType // doesn't cover Elements and their Attributes. domimpl's // extentions in that area will not be preserved, even if // copying from domimpl to domimpl. We could special-case // that here. Arguably we should. Consider. ????? newnode = newdoctype; break; } case DOCUMENT_FRAGMENT_NODE: { newnode = (NodeImpl)createDocumentFragment(); // No name, kids carry value break; } case NOTATION_NODE: { Notation srcnotation = (Notation)source; NotationImpl newnotation = (NotationImpl)createNotation(source.getNodeName()); newnotation.setPublicId(srcnotation.getPublicId()); newnotation.setSystemId(srcnotation.getSystemId()); // Kids carry additional value newnode = newnotation; // No name, no value break; } case DOCUMENT_NODE : // Document can't be child of Document default: { // Unknown node type throw new DOMExceptionImpl(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } // If deep, replicate and attach the kids. if (deep) { for (Node srckid = source.getFirstChild(); srckid != null; srckid = srckid.getNextSibling()) { newnode.appendChild(importNode(srckid, true)); } } return newnode; } // importNode(Node,boolean):Node
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/fd788f496dd24d0d34e5ecb1936da8999ed6c269/DocumentImpl.java/clean/src/org/apache/xerces/dom/DocumentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1930, 907, 12, 907, 1084, 16, 1250, 4608, 13, 3639, 1216, 4703, 503, 288, 377, 202, 907, 2828, 29267, 33, 2011, 31, 377, 202, 759, 348, 2031, 18, 1220, 3302, 1404, 1440, 31, 4885, 4906, 2199, 1240, 3238, 501, 716, 377, 202, 759, 4102, 1240, 358, 506, 10036, 10810, 9477, 18, 16734, 506, 7752, 358, 527, 1191, 377, 202, 759, 25641, 358, 1517, 14003, 5872, 18, 23047, 5317, 14646, 35, 377, 202, 759, 309, 12, 3168, 1276, 2029, 2828, 597, 377, 202, 759, 202, 5, 12, 3168, 1276, 4319, 2828, 3719, 377, 202, 759, 288, 377, 202, 759, 225, 368, 4480, 1404, 3236, 4319, 2828, 3241, 518, 18058, 584, 2777, 377, 202, 759, 202, 2704, 2159, 28657, 907, 2828, 13, 3168, 18, 14056, 907, 12, 5743, 1769, 377, 202, 759, 202, 2704, 2159, 18, 8443, 2519, 33, 2211, 31, 377, 202, 759, 97, 377, 202, 759, 12107, 3639, 509, 618, 273, 1084, 18, 588, 15101, 5621, 377, 202, 9610, 261, 723, 13, 288, 377, 1082, 5411, 648, 13424, 67, 8744, 30, 288, 377, 1082, 202, 1046, 394, 2956, 273, 6310, 12, 3168, 18, 588, 18948, 10663, 377, 1082, 202, 7604, 907, 863, 1705, 1747, 273, 1084, 18, 588, 2498, 5621, 377, 1082, 202, 430, 261, 4816, 1747, 480, 446, 13, 288, 377, 9506, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 1705, 1747, 18, 588, 1782, 5621, 277, 27245, 288, 377, 6862, 202, 2704, 2956, 18, 542, 1499, 907, 12, 377, 25083, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1930, 907, 12, 907, 1084, 16, 1250, 4608, 13, 3639, 1216, 4703, 503, 288, 377, 202, 907, 2828, 29267, 33, 2011, 31, 377, 202, 759, 348, 2031, 18, 1220, 3302, 1404, 1440, 31, 4885, 4906, 2199, 1240, 3238, 501, 716, 377, 202, 759, 4102, 1240, 358, 506, 10036, 10810, 9477, 18, 16734, 506, 7752, 358, 527, 1191, 377, 202, 759, 25641, 358, 1517, 14003, 5872, 18, 23047, 5317, 14646, 35, 377, 202, 759, 309, 12, 3168, 1276, 2029, 2828, 597, 377, 202, 759, 202, 5, 12, 3168, 1276, 4319, 2828, 3719, 377, 202, 759, 288, 377, 202, 759, 225, 368, 4480, 1404, 3236, 4319, 2828, 3241, 518, 18058, 584, 2777, 377, 202, 759, 202, 2704, 2159, 2 ]
fDescription = SchemaSymbols.ATTVAL_TWOPOUNDANY;
buffer.append(SchemaSymbols.ATTVAL_TWOPOUNDANY);
public String toString() { if (fDescription == null) { String ret = null; switch (fType) { case WILDCARD_ANY: fDescription = SchemaSymbols.ATTVAL_TWOPOUNDANY; break; case WILDCARD_OTHER: fDescription = SchemaSymbols.ATTVAL_TWOPOUNDOTHER + ":uri=" + fNamespaceList[0]; break; case WILDCARD_LIST: { StringBuffer buffer = new StringBuffer(); buffer.append("namespace:uri=" + fNamespaceList[0]); for (int i = 1; i < fNamespaceList.length; i++) buffer.append("," + fNamespaceList[i]); fDescription = buffer.toString(); break; } } } return fDescription; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/827eb8f272483a5a006fdd04558224bd267ccd5e/XSWildcardDecl.java/clean/src/org/apache/xerces/impl/v2/XSWildcardDecl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 74, 3291, 422, 446, 13, 288, 5411, 514, 325, 273, 446, 31, 5411, 1620, 261, 74, 559, 13, 288, 5411, 648, 678, 29067, 67, 15409, 30, 7734, 1613, 18, 6923, 12, 3078, 14821, 18, 789, 56, 2669, 67, 18869, 51, 2419, 5240, 15409, 1769, 7734, 898, 31, 5411, 648, 678, 29067, 67, 23940, 30, 7734, 284, 3291, 273, 4611, 14821, 18, 789, 56, 2669, 67, 18869, 51, 2419, 5240, 23940, 397, 6398, 1650, 1546, 397, 284, 3402, 682, 63, 20, 15533, 7734, 898, 31, 5411, 648, 678, 29067, 67, 7085, 30, 288, 7734, 6674, 1613, 273, 394, 6674, 5621, 7734, 1613, 18, 6923, 2932, 4937, 30, 1650, 1546, 397, 284, 3402, 682, 63, 20, 19226, 7734, 364, 261, 474, 277, 273, 404, 31, 277, 411, 284, 3402, 682, 18, 2469, 31, 277, 27245, 10792, 1613, 18, 6923, 2932, 10837, 397, 284, 3402, 682, 63, 77, 19226, 7734, 284, 3291, 273, 1613, 18, 10492, 5621, 7734, 898, 31, 5411, 289, 5411, 289, 3639, 289, 3639, 327, 284, 3291, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 74, 3291, 422, 446, 13, 288, 5411, 514, 325, 273, 446, 31, 5411, 1620, 261, 74, 559, 13, 288, 5411, 648, 678, 29067, 67, 15409, 30, 7734, 1613, 18, 6923, 12, 3078, 14821, 18, 789, 56, 2669, 67, 18869, 51, 2419, 5240, 15409, 1769, 7734, 898, 31, 5411, 648, 678, 29067, 67, 23940, 30, 7734, 284, 3291, 273, 4611, 14821, 18, 789, 56, 2669, 67, 18869, 51, 2419, 5240, 23940, 397, 6398, 1650, 1546, 397, 284, 3402, 682, 63, 20, 15533, 7734, 898, 31, 5411, 648, 678, 29067, 67, 7085, 30, 288, 7734, 6674, 1613, 273, 394, 6674, 5621, 7734, 1613, 18, 6923, 2932, 4937, 30, 1650, 1546, 397, 284, 2 ]
protected void run(Result result) throws Throwable { final T component = EditorTextFieldControl.this.getComponent(); getEditorTextField(component).getDocument().replaceString(0, getValue().length(), value == null ? "" : value);
public void run() { new WriteAction() { protected void run(Result result) throws Throwable { final T component = EditorTextFieldControl.this.getComponent(); getEditorTextField(component).getDocument().replaceString(0, getValue().length(), value == null ? "" : value); } }.execute();
protected void run(Result result) throws Throwable { final T component = EditorTextFieldControl.this.getComponent(); getEditorTextField(component).getDocument().replaceString(0, getValue().length(), value == null ? "" : value); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4437ca2f304024137a05082977d946a80498d240/EditorTextFieldControl.java/clean/dom/impl/src/com/intellij/util/xml/ui/EditorTextFieldControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 4750, 918, 1086, 12, 1253, 563, 13, 1216, 4206, 288, 3639, 727, 399, 1794, 273, 18451, 16157, 3367, 18, 2211, 18, 588, 1841, 5621, 3639, 336, 6946, 16157, 12, 4652, 2934, 588, 2519, 7675, 2079, 780, 12, 20, 16, 2366, 7675, 2469, 9334, 460, 422, 446, 692, 1408, 294, 460, 1769, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1794, 273, 18451, 16157, 3367, 18, 2211, 18, 588, 1841, 5621, 3639, 336, 6946, 16157, 12, 4652, 2934, 588, 2519, 7675, 2079, 780, 12, 20, 16, 2366, 7675, 2469, 9334, 460, 422, 446, 692, 1408, 294, 460, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MarginProps mProps = propMgr.getMarginProps();
CommonMarginBlock mProps = propMgr.getMarginProps();
private void setup() throws FOPException { // Common Accessibility Properties AccessibilityProps mAccProps = propMgr.getAccessibilityProps(); // Common Aural Properties AuralProps mAurProps = propMgr.getAuralProps(); // Common Border, Padding, and Background Properties BorderAndPadding bap = propMgr.getBorderAndPadding(); BackgroundProps bProps = propMgr.getBackgroundProps(); // Common Margin Properties-Block MarginProps mProps = propMgr.getMarginProps(); // Common Relative Position Properties RelativePositionProps mRelProps = propMgr.getRelativePositionProps(); // this.properties.get("break-after"); // this.properties.get("break-before"); setupID(); // this.properties.get("keep-together"); // this.properties.get("keep-with-next"); // this.properties.get("keep-with-previous"); // this.properties.get("provisional-distance-between-starts"); // this.properties.get("provisional-label-separation"); this.align = this.properties.get("text-align").getEnum(); this.alignLast = this.properties.get("text-align-last").getEnum(); this.lineHeight = this.properties.get("line-height").getLength().getValue(); this.startIndent = this.properties.get("start-indent").getLength().getValue(); this.endIndent = this.properties.get("end-indent").getLength().getValue(); this.spaceBefore = this.properties.get("space-before.optimum").getLength().getValue(); this.spaceAfter = this.properties.get("space-after.optimum").getLength().getValue(); this.spaceBetweenListRows = 0; // not used at present this.backgroundColor = this.properties.get("background-color").getColorType(); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/f9bee020b38c9c2a4f4b989ee875b677c56780ac/ListBlock.java/clean/src/java/org/apache/fop/fo/flow/ListBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 1435, 1216, 478, 3665, 503, 288, 5411, 368, 5658, 5016, 3628, 6183, 5411, 5016, 3628, 5047, 312, 8973, 5047, 273, 2270, 9455, 18, 588, 1862, 3628, 5047, 5621, 5411, 368, 5658, 432, 3766, 6183, 5411, 432, 3766, 5047, 312, 37, 295, 5047, 273, 2270, 9455, 18, 588, 37, 3766, 5047, 5621, 5411, 368, 5658, 13525, 16, 453, 3439, 16, 471, 8977, 6183, 5411, 13525, 1876, 9485, 324, 438, 273, 2270, 9455, 18, 588, 8107, 1876, 9485, 5621, 5411, 8977, 5047, 324, 5047, 273, 2270, 9455, 18, 588, 8199, 5047, 5621, 5411, 368, 5658, 490, 5243, 6183, 17, 1768, 5411, 5658, 9524, 1768, 312, 5047, 273, 2270, 9455, 18, 588, 9524, 5047, 5621, 5411, 368, 5658, 19873, 11010, 6183, 5411, 19873, 2555, 5047, 312, 1971, 5047, 273, 2270, 9455, 18, 588, 8574, 2555, 5047, 5621, 5411, 368, 333, 18, 4738, 18, 588, 2932, 8820, 17, 5205, 8863, 5411, 368, 333, 18, 4738, 18, 588, 2932, 8820, 17, 5771, 8863, 5411, 3875, 734, 5621, 5411, 368, 333, 18, 4738, 18, 588, 2932, 10102, 17, 88, 717, 2437, 8863, 5411, 368, 333, 18, 4738, 18, 588, 2932, 10102, 17, 1918, 17, 4285, 8863, 5411, 368, 333, 18, 4738, 18, 588, 2932, 10102, 17, 1918, 17, 11515, 8863, 5411, 368, 333, 18, 4738, 18, 588, 2932, 17051, 287, 17, 8969, 17, 15019, 17, 17514, 8863, 5411, 368, 333, 18, 4738, 18, 588, 2932, 17051, 287, 17, 1925, 17, 16627, 367, 8863, 5411, 333, 18, 7989, 273, 333, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 1435, 1216, 478, 3665, 503, 288, 5411, 368, 5658, 5016, 3628, 6183, 5411, 5016, 3628, 5047, 312, 8973, 5047, 273, 2270, 9455, 18, 588, 1862, 3628, 5047, 5621, 5411, 368, 5658, 432, 3766, 6183, 5411, 432, 3766, 5047, 312, 37, 295, 5047, 273, 2270, 9455, 18, 588, 37, 3766, 5047, 5621, 5411, 368, 5658, 13525, 16, 453, 3439, 16, 471, 8977, 6183, 5411, 13525, 1876, 9485, 324, 438, 273, 2270, 9455, 18, 588, 8107, 1876, 9485, 5621, 5411, 8977, 5047, 324, 5047, 273, 2270, 9455, 18, 588, 8199, 5047, 5621, 5411, 368, 5658, 490, 5243, 6183, 17, 1768, 5411, 5658, 9524, 1768, 312, 5047, 273, 2270, 9455, 18, 588, 9524, 5047, 5621, 5411, 368, 5658, 2 ]
if (debug) System.out.println("Reading image #" + no + "...");
if (debug) debug("Reading image #" + no + "...");
public BufferedImage openImage(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } if (debug) System.out.println("Reading image #" + no + "..."); ZVIBlock zviBlock = (ZVIBlock) blockList.elementAt(no); return zviBlock.readImage(in); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/2c680a5618955854e02d652bc68024b9a011950a/LegacyZVIReader.java/clean/loci/formats/in/LegacyZVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12362, 1696, 2040, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, 565, 309, 261, 2135, 411, 374, 747, 1158, 1545, 10567, 1380, 12, 350, 3719, 288, 1377, 604, 394, 4077, 503, 2932, 1941, 1316, 1300, 30, 315, 397, 1158, 1769, 565, 289, 565, 309, 261, 4148, 13, 1198, 2932, 15714, 1316, 31526, 397, 1158, 397, 26456, 1769, 565, 2285, 4136, 1768, 998, 522, 1768, 273, 261, 62, 4136, 1768, 13, 1203, 682, 18, 2956, 861, 12, 2135, 1769, 565, 327, 998, 522, 1768, 18, 896, 2040, 12, 267, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12362, 1696, 2040, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, 565, 309, 261, 2135, 411, 374, 747, 1158, 1545, 10567, 1380, 12, 350, 3719, 288, 1377, 604, 394, 4077, 503, 2932, 1941, 1316, 1300, 30, 315, 397, 1158, 1769, 565, 289, 565, 309, 261, 4148, 13, 1198, 2932, 15714, 1316, 31526, 397, 1158, 397, 26456, 1769, 565, 2285, 4136, 1768, 998, 522, 1768, 273, 261, 62, 4136, 1768, 13, 1203, 682, 18, 2956, 861, 12, 2135, 1769, 565, 327, 998, 522, 1768, 18, 896, 2040, 12, 267, 1769, 225, 289, 2, -100, -100, -100, -100 ]
return ftpProtocol.getNumberOfFields(); }
return ftpProtocol.getNumberOfFields(); }
public int getRowCount() { return ftpProtocol.getNumberOfFields(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/XTFRFile.java/buggy/tn5250j/src/org/tn5250j/tools/XTFRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 509, 11835, 1380, 1435, 288, 3639, 327, 13487, 5752, 18, 588, 9226, 2314, 5621, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 509, 11835, 1380, 1435, 288, 3639, 327, 13487, 5752, 18, 588, 9226, 2314, 5621, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object type = typeMap.get(value.getClass()); if (type == null) { return java.sql.Types.JAVA_OBJECT; } return ((Integer) type).intValue();
return getJdbcType(value.getClass());
static int getJdbcType(Object value) { if (value == null) { return java.sql.Types.NULL; } Object type = typeMap.get(value.getClass()); if (type == null) { return java.sql.Types.JAVA_OBJECT; } return ((Integer) type).intValue(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/bd74b14f3c83961e3b24e5204841fb11a4fb4ec5/Support.java/buggy/src/main/net/sourceforge/jtds/jdbc/Support.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 509, 9285, 9137, 559, 12, 921, 460, 13, 288, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 2252, 18, 4669, 18, 2016, 18, 8560, 31, 3639, 289, 3639, 1033, 618, 273, 25923, 18, 588, 12, 1132, 18, 588, 797, 10663, 3639,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 509, 9285, 9137, 559, 12, 921, 460, 13, 288, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 2252, 18, 4669, 18, 2016, 18, 8560, 31, 3639, 289, 3639, 1033, 618, 273, 25923, 18, 588, 12, 1132, 18, 588, 797, 10663, 3639, 309, 261, 723, 422, 446, 13, 288, 5411, 327, 2252, 18, 4669, 18, 2016, 18, 27264, 67, 9422, 31, 3639, 289, 3639, 327, 14015, 4522, 13, 618, 2934, 474, 620, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String afterValue = "<br/>";
String afterValue = getAfterValue(eh);
public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh) { String beforeValue = ""; String afterValue = "<br/>"; boolean addAfterOnLast = true; if (tokenSource.length()<=3 || tokenSource.charAt(3)==',') { if (tokenSource.length()>4) { afterValue = tokenSource.substring(4); } addAfterOnLast=false; } else { String[] tokens = tokenSource.split("\\."); if(tokens.length>1) { beforeValue=tokens[1]; } if(tokens.length>2) { afterValue=tokens[2]; } } StringBuffer sb = new StringBuffer(); List bioList = getBioToken(pc); for (int i = 0; i < bioList.size(); ++i) { sb.append(beforeValue); sb.append(FileAccess.filterString((String) bioList.get(i))); if (addAfterOnLast || i+1<bioList.size()) { sb.append(afterValue); } } return sb.toString(); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/ae45cec6877af408976159d569fde0a8ee4e88b3/BioToken.java/clean/code/src/java/plugin/exporttokens/BioToken.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 9162, 12, 780, 1147, 1830, 16, 19185, 7069, 6125, 16, 11054, 1503, 20124, 13, 202, 95, 202, 202, 780, 1865, 620, 273, 1408, 31, 202, 202, 780, 1839, 620, 273, 3532, 2848, 26293, 31, 202, 202, 6494, 527, 4436, 1398, 3024, 273, 638, 31, 202, 202, 430, 261, 2316, 1830, 18, 2469, 1435, 32, 33, 23, 747, 1147, 1830, 18, 3001, 861, 12, 23, 13, 631, 2187, 6134, 202, 202, 95, 1082, 202, 430, 261, 2316, 1830, 18, 2469, 1435, 34, 24, 13, 1082, 202, 95, 9506, 202, 5205, 620, 273, 1147, 1830, 18, 28023, 12, 24, 1769, 1082, 202, 97, 1082, 202, 1289, 4436, 1398, 3024, 33, 5743, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 780, 8526, 2430, 273, 1147, 1830, 18, 4939, 2932, 1695, 1199, 1769, 1082, 202, 430, 12, 7860, 18, 2469, 34, 21, 13, 1082, 202, 95, 9506, 202, 5771, 620, 33, 7860, 63, 21, 15533, 1082, 202, 97, 1082, 202, 430, 12, 7860, 18, 2469, 34, 22, 13, 1082, 202, 95, 9506, 202, 5205, 620, 33, 7860, 63, 22, 15533, 1082, 202, 97, 202, 202, 97, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 682, 25091, 682, 273, 2882, 1594, 1345, 12, 2436, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 25091, 682, 18, 1467, 5621, 965, 77, 13, 202, 202, 95, 1082, 202, 18366, 18, 6923, 12, 5771, 620, 1769, 1082, 202, 18366, 18, 6923, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 9162, 12, 780, 1147, 1830, 16, 19185, 7069, 6125, 16, 11054, 1503, 20124, 13, 202, 95, 202, 202, 780, 1865, 620, 273, 1408, 31, 202, 202, 780, 1839, 620, 273, 3532, 2848, 26293, 31, 202, 202, 6494, 527, 4436, 1398, 3024, 273, 638, 31, 202, 202, 430, 261, 2316, 1830, 18, 2469, 1435, 32, 33, 23, 747, 1147, 1830, 18, 3001, 861, 12, 23, 13, 631, 2187, 6134, 202, 202, 95, 1082, 202, 430, 261, 2316, 1830, 18, 2469, 1435, 34, 24, 13, 1082, 202, 95, 9506, 202, 5205, 620, 273, 1147, 1830, 18, 28023, 12, 24, 1769, 1082, 202, 97, 1082, 202, 1289, 4436, 1398, 3024, 33, 5743, 31, 202, 202, 97, 202, 202, 2 ]
short result = bb.getShort ((position () << 1) + offset); position (position () + 1);
int p = position(); short result = ByteBufferHelper.getShort(bb, (p << 1) + offset, endian); position(p + 1);
public short get () { short result = bb.getShort ((position () << 1) + offset); position (position () + 1); return result; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/cbc6b01a62d01a3bd4a11282dcdebf781800adb9/ShortViewBufferImpl.java/buggy/libraries/javalib/java/nio/ShortViewBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3025, 336, 1832, 225, 288, 565, 3025, 563, 273, 7129, 18, 588, 4897, 14015, 3276, 1832, 2296, 404, 13, 397, 1384, 1769, 565, 1754, 261, 3276, 1832, 397, 404, 1769, 565, 327, 563, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3025, 336, 1832, 225, 288, 565, 3025, 563, 273, 7129, 18, 588, 4897, 14015, 3276, 1832, 2296, 404, 13, 397, 1384, 1769, 565, 1754, 261, 3276, 1832, 397, 404, 1769, 565, 327, 563, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ruby_class = (klass != null) ? klass : block.klass;
ruby.setRubyClass((klass != null) ? klass : block.klass);
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(ruby); pushClass(); RubyBlock block = rubyBlock.getTmp(); Frame frame = block.frame; frame.setPrev(getRubyFrame()); rubyFrame = frame; VALUE old_cref = ruby_cref; ruby_cref = (NODE)getRubyFrame().getCbase(); RubyScope oldScope = ruby.getRubyScope(); ruby.setRubyScope(block.scope); rubyBlock.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { dynamicVars = new RubyVarmap(null, null, block.dynamicVars); } else { dynamicVars = block.dynamicVars; } ruby_class = (klass != null) ? klass : block.klass; if (klass == null) { self = (RubyObject)block.self; } NODE node = block.body; if (block.var != null) { // try { if (block.var == NODE.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() != 0) { throw new RubyArgumentException("wrong # of arguments ("+ ((RubyArray)value).length() + " for 0)"); } } else { if (block.var.nd_type() == NODE_MASGN) { massign(self, block.var, value, acheck); } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } assign(self, block.var, value, acheck); } } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } } rubyIter.push(block.iter); while (true) { try { if (node == null) { result = ruby.getNil(); } else if (node.nd_type() == NODE_CFUNC || node.nd_type() == NODE_IFUNC) { if (value == null) { value = RubyArray.m_newArray(ruby, 0); } result = ((RubyCallbackMethod)node.nd_cfnc()).execute(value, new RubyObject[] {(RubyObject)node.nd_tval(), self}, ruby); } else { result = eval(self, node); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = ruby.getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: rubyIter.pop(); popClass(); RubyVarmap.pop(ruby); rubyBlock.setTmp(block); rubyFrame = getRubyFrame().getPrev(); ruby_cref = (NODE)old_cref; // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); ruby.setRubyScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 309, 16051, 12, 291, 1768, 6083, 1435, 747, 17646, 1768, 6083, 10756, 747, 261, 27768, 1768, 422, 446, 3719, 288, 5411, 604, 394, 3235, 2932, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 7734, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 1817, 797, 5621, 3639, 19817, 1768, 1203, 273, 22155, 1768, 18, 588, 9161, 5621, 7734, 8058, 2623, 273, 1203, 18, 3789, 31, 3639, 2623, 18, 542, 9958, 12, 588, 54, 10340, 3219, 10663, 3639, 22155, 3219, 273, 2623, 31, 7734, 5848, 1592, 67, 71, 1734, 273, 22155, 67, 71, 1734, 31, 3639, 22155, 67, 71, 1734, 273, 261, 8744, 13, 588, 54, 10340, 3219, 7675, 588, 39, 1969, 5621, 7734, 19817, 3876, 1592, 3876, 273, 22155, 18, 588, 54, 10340, 3876, 5621, 3639, 22155, 18, 542, 54, 10340, 3876, 12, 2629, 18, 4887, 1769, 3639, 22155, 1768, 18, 5120, 5621, 7734, 309, 14015, 2629, 18, 7133, 473, 19817, 1768, 18, 11403, 67, 40, 67, 19444, 13, 480, 374, 13, 288, 5411, 5976, 5555, 273, 394, 19817, 1537, 1458, 12, 2011, 16, 446, 16, 1203, 18, 14507, 5555, 1769, 3639, 289, 469, 288, 5411, 5976, 5555, 273, 1203, 18, 14507, 5555, 31, 3639, 289, 7734, 22155, 18, 542, 54, 10340, 797, 12443, 22626, 480, 446, 13, 692, 7352, 294, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 309, 16051, 12, 291, 1768, 6083, 1435, 747, 17646, 1768, 6083, 10756, 747, 261, 27768, 1768, 422, 446, 3719, 288, 5411, 604, 394, 3235, 2932, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 7734, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 1817, 797, 5621, 3639, 19817, 1768, 1203, 273, 22155, 1768, 18, 588, 9161, 5621, 7734, 8058, 2623, 273, 1203, 18, 3789, 31, 3639, 2623, 18, 542, 9958, 12, 588, 54, 10340, 3219, 10663, 3639, 22155, 3219, 273, 2623, 31, 7734, 2 ]
if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && fieldPos.getField() == INTEGER_FIELD) { int index = dest.length(); fieldPos.setBeginIndex(index - symbols.getNaN().length()); fieldPos.setEndIndex(index); } return dest; } boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != null) dest.append(negativePrefix); else { dest.append(symbols.getMinusSign()); dest.append(positivePrefix); } number = - number; } else dest.append(positivePrefix); int integerBeginIndex = dest.length(); int integerEndIndex = 0; if (Double.isInfinite (number)) { dest.append(symbols.getInfinity()); integerEndIndex = dest.length(); } else { number *= multiplier; long exponent = 0; double baseNumber; if (useExponentialNotation) { exponent = (long) Math.floor (Math.log(number) / Math.log(10)); if (minimumIntegerDigits > 0) exponent -= minimumIntegerDigits - 1; baseNumber = (number / Math.pow(10.0, exponent)); } else baseNumber = number; baseNumber += 5 * Math.pow(10.0, - maximumFractionDigits - 1); int index = dest.length(); double intPart = Math.floor(baseNumber); int count = 0; while (count < maximumIntegerDigits && (intPart > 0 || count < minimumIntegerDigits)) { long dig = (long) (intPart % 10); intPart = Math.floor(intPart / 10); if (groupingUsed && count > 0 && groupingSize != 0 && count % groupingSize == 0) dest.insert(index, symbols.getGroupingSeparator()); dest.insert(index, (char) (symbols.getZeroDigit() + dig)); ++count; } integerEndIndex = dest.length(); int decimal_index = integerEndIndex; int consecutive_zeros = 0; int total_digits = 0; double fracPart = baseNumber - Math.floor(baseNumber); for (count = 0; count < maximumFractionDigits && (fracPart != 0 || count < minimumFractionDigits); ++count) { ++total_digits; fracPart *= 10; long dig = (long) fracPart; if (dig == 0) ++consecutive_zeros; else consecutive_zeros = 0; dest.append((char) (symbols.getZeroDigit() + dig)); fracPart = fracPart - Math.floor (fracPart); } int extra_zeros = Math.min (consecutive_zeros, total_digits - minimumFractionDigits); if (extra_zeros > 0) { dest.setLength(dest.length() - extra_zeros); total_digits -= extra_zeros; } if (decimalSeparatorAlwaysShown || total_digits > 0) { dest.insert(decimal_index, symbols.getDecimalSeparator()); if (fieldPos != null && fieldPos.getField() == FRACTION_FIELD) { fieldPos.setBeginIndex(decimal_index + 1); fieldPos.setEndIndex(dest.length()); } } if (useExponentialNotation) { dest.append(symbols.getExponential()); if (exponent < 0) { dest.append (symbols.getMinusSign ()); exponent = - exponent; } index = dest.length(); for (count = 0; exponent > 0 || count < minExponentDigits; ++count) { long dig = exponent % 10; exponent /= 10; dest.insert(index, (char) (symbols.getZeroDigit() + dig)); } } } if (fieldPos != null && fieldPos.getField() == INTEGER_FIELD) { fieldPos.setBeginIndex(integerBeginIndex); fieldPos.setEndIndex(integerEndIndex); } dest.append((is_neg && negativeSuffix != null) ? negativeSuffix : positiveSuffix);
formatInternal (number, new StringFormatBuffer(dest), fieldPos);
public StringBuffer format (double number, StringBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && fieldPos.getField() == INTEGER_FIELD) { int index = dest.length(); fieldPos.setBeginIndex(index - symbols.getNaN().length()); fieldPos.setEndIndex(index); } return dest; } boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != null) dest.append(negativePrefix); else { dest.append(symbols.getMinusSign()); dest.append(positivePrefix); } number = - number; } else dest.append(positivePrefix); int integerBeginIndex = dest.length(); int integerEndIndex = 0; if (Double.isInfinite (number)) { dest.append(symbols.getInfinity()); integerEndIndex = dest.length(); } else { number *= multiplier; // Compute exponent. long exponent = 0; double baseNumber; if (useExponentialNotation) { exponent = (long) Math.floor (Math.log(number) / Math.log(10)); if (minimumIntegerDigits > 0) exponent -= minimumIntegerDigits - 1; baseNumber = (number / Math.pow(10.0, exponent)); } else baseNumber = number; // Round to the correct number of digits. baseNumber += 5 * Math.pow(10.0, - maximumFractionDigits - 1); int index = dest.length(); double intPart = Math.floor(baseNumber); int count = 0; while (count < maximumIntegerDigits && (intPart > 0 || count < minimumIntegerDigits)) { long dig = (long) (intPart % 10); intPart = Math.floor(intPart / 10); // Append group separator if required. if (groupingUsed && count > 0 && groupingSize != 0 && count % groupingSize == 0) dest.insert(index, symbols.getGroupingSeparator()); dest.insert(index, (char) (symbols.getZeroDigit() + dig)); ++count; } integerEndIndex = dest.length(); int decimal_index = integerEndIndex; int consecutive_zeros = 0; int total_digits = 0; // Strip integer part from NUMBER. double fracPart = baseNumber - Math.floor(baseNumber); for (count = 0; count < maximumFractionDigits && (fracPart != 0 || count < minimumFractionDigits); ++count) { ++total_digits; fracPart *= 10; long dig = (long) fracPart; if (dig == 0) ++consecutive_zeros; else consecutive_zeros = 0; dest.append((char) (symbols.getZeroDigit() + dig)); // Strip integer part from FRACPART. fracPart = fracPart - Math.floor (fracPart); } // Strip extraneous trailing `0's. We can't always detect // these in the loop. int extra_zeros = Math.min (consecutive_zeros, total_digits - minimumFractionDigits); if (extra_zeros > 0) { dest.setLength(dest.length() - extra_zeros); total_digits -= extra_zeros; } // If required, add the decimal symbol. if (decimalSeparatorAlwaysShown || total_digits > 0) { dest.insert(decimal_index, symbols.getDecimalSeparator()); if (fieldPos != null && fieldPos.getField() == FRACTION_FIELD) { fieldPos.setBeginIndex(decimal_index + 1); fieldPos.setEndIndex(dest.length()); } } // Finally, print the exponent. if (useExponentialNotation) { dest.append(symbols.getExponential()); if (exponent < 0) { dest.append (symbols.getMinusSign ()); exponent = - exponent; } index = dest.length(); for (count = 0; exponent > 0 || count < minExponentDigits; ++count) { long dig = exponent % 10; exponent /= 10; dest.insert(index, (char) (symbols.getZeroDigit() + dig)); } } } if (fieldPos != null && fieldPos.getField() == INTEGER_FIELD) { fieldPos.setBeginIndex(integerBeginIndex); fieldPos.setEndIndex(integerEndIndex); } dest.append((is_neg && negativeSuffix != null) ? negativeSuffix : positiveSuffix); return dest; }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/5ccc4a9c16b9aecebd29ba8e752a0e2915e64d53/DecimalFormat.java/clean/libjava/java/text/DecimalFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6674, 740, 261, 9056, 1300, 16, 6674, 1570, 16, 9506, 1377, 2286, 2555, 652, 1616, 13, 225, 288, 565, 368, 432, 8572, 4582, 648, 18, 565, 309, 261, 5265, 18, 291, 21172, 12, 2696, 3719, 1377, 288, 202, 10488, 18, 6923, 12, 15536, 18, 588, 21172, 10663, 202, 430, 261, 1518, 1616, 480, 446, 597, 652, 1616, 18, 588, 974, 1435, 422, 16481, 67, 6776, 13, 202, 225, 288, 202, 565, 509, 770, 273, 1570, 18, 2469, 5621, 202, 565, 652, 1616, 18, 542, 8149, 1016, 12, 1615, 300, 7963, 18, 588, 21172, 7675, 2469, 10663, 202, 565, 652, 1616, 18, 542, 24152, 12, 1615, 1769, 202, 225, 289, 202, 2463, 1570, 31, 1377, 289, 565, 1250, 353, 67, 14518, 273, 1300, 411, 374, 31, 565, 309, 261, 291, 67, 14518, 13, 1377, 288, 202, 430, 261, 13258, 2244, 480, 446, 13, 202, 225, 1570, 18, 6923, 12, 13258, 2244, 1769, 202, 12107, 202, 225, 288, 202, 565, 1570, 18, 6923, 12, 15536, 18, 588, 18434, 2766, 10663, 202, 565, 1570, 18, 6923, 12, 21094, 2244, 1769, 202, 225, 289, 202, 2696, 273, 300, 1300, 31, 1377, 289, 565, 469, 1377, 1570, 18, 6923, 12, 21094, 2244, 1769, 565, 509, 3571, 8149, 1016, 273, 1570, 18, 2469, 5621, 565, 509, 3571, 24152, 273, 374, 31, 565, 309, 261, 5265, 18, 291, 382, 9551, 261, 2696, 3719, 1377, 288, 202, 10488, 18, 6923, 12, 15536, 18, 588, 382, 7850, 10663, 202, 7745, 24152, 273, 1570, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6674, 740, 261, 9056, 1300, 16, 6674, 1570, 16, 9506, 1377, 2286, 2555, 652, 1616, 13, 225, 288, 565, 368, 432, 8572, 4582, 648, 18, 565, 309, 261, 5265, 18, 291, 21172, 12, 2696, 3719, 1377, 288, 202, 10488, 18, 6923, 12, 15536, 18, 588, 21172, 10663, 202, 430, 261, 1518, 1616, 480, 446, 597, 652, 1616, 18, 588, 974, 1435, 422, 16481, 67, 6776, 13, 202, 225, 288, 202, 565, 509, 770, 273, 1570, 18, 2469, 5621, 202, 565, 652, 1616, 18, 542, 8149, 1016, 12, 1615, 300, 7963, 18, 588, 21172, 7675, 2469, 10663, 202, 565, 652, 1616, 18, 542, 24152, 12, 1615, 1769, 202, 225, 289, 202, 2463, 1570, 31, 1377, 289, 565, 1250, 2 ]
public boolean setPropertyHook(String ns, String name, Object value, boolean inherited, boolean user, boolean isNew) { if (getNext() != null) { boolean subst = getNext().setPropertyHook(ns, name, value, inherited, user, isNew); // If next has handled the property if (subst) { return true; } } return false; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8e9a25e46fc3c8a4f9fcfa15ccc799a411c382a0/PropertyHelper.java/clean/src/main/org/apache/tools/ant/PropertyHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6494, 542, 1396, 5394, 12, 780, 2387, 16, 780, 529, 16, 921, 1132, 16, 6494, 6018, 329, 16, 6494, 1355, 16, 6494, 291, 1908, 15329, 430, 12, 588, 2134, 1435, 5, 33, 2011, 15329, 1075, 29510, 373, 334, 33, 588, 2134, 7675, 542, 1396, 5394, 12, 2387, 16, 529, 16, 1132, 16, 6018, 329, 16, 1355, 16, 291, 1908, 1769, 759, 2047, 4285, 2816, 464, 1259, 5787, 4468, 430, 12, 1717, 334, 15329, 2463, 3767, 31, 9090, 2463, 5743, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6494, 542, 1396, 5394, 12, 780, 2387, 16, 780, 529, 16, 921, 1132, 16, 6494, 6018, 329, 16, 6494, 1355, 16, 6494, 291, 1908, 15329, 430, 12, 588, 2134, 1435, 5, 33, 2011, 15329, 1075, 29510, 373, 334, 33, 588, 2134, 7675, 542, 1396, 5394, 12, 2387, 16, 529, 16, 1132, 16, 6018, 329, 16, 1355, 16, 291, 1908, 1769, 759, 2047, 4285, 2816, 464, 1259, 5787, 4468, 430, 12, 1717, 334, 15329, 2463, 3767, 31, 9090, 2463, 5743, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Transfer[] types = new Transfer[] { TextTransfer.getInstance() }; viewer.addDropSupport(DND.DROP_MOVE, types, new ViewerDropAdapter(viewer) { { setFeedbackEnabled(false); } @Override public boolean performDrop(Object data) { System.err.println(">>>>>>>>" + data); return true; } @Override public boolean validateDrop(Object targetObject,int operation, TransferData transferType) { return TextTransfer.getInstance().isSupportedType(transferType); } });
Transfer[] types = new Transfer[] { LocalSelectionTransfer.getInstance() }; viewer.addDropSupport(DND.DROP_MOVE, types, new ActiveViewDropAdapter(viewer));
private void initDrop() { Transfer[] types = new Transfer[] { TextTransfer.getInstance() }; viewer.addDropSupport(DND.DROP_MOVE, types, new ViewerDropAdapter(viewer) { { setFeedbackEnabled(false); } @Override public boolean performDrop(Object data) {// Object selectedObject = ((IStructuredSelection)TaskListView.getDefault().getViewer().getSelection()).getFirstElement(); System.err.println(">>>>>>>>" + data); return true;// return false; } @Override public boolean validateDrop(Object targetObject,int operation, TransferData transferType) {// Object selectedObject = ((IStructuredSelection)TaskListView.getDefault().getViewer().getSelection()).getFirstElement();// return true; // if (selectedObject instanceof ITaskListElement && ((ITaskListElement)selectedObject).isDragAndDropEnabled()) {// return true; // } return TextTransfer.getInstance().isSupportedType(transferType); } }); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5a53f920ddf69a55bf1ddbf8ec6124a409b1e138/ActiveSearchView.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/ide/ui/views/ActiveSearchView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7544, 1435, 288, 202, 202, 5912, 8526, 1953, 273, 394, 12279, 8526, 288, 3867, 5912, 18, 588, 1442, 1435, 289, 31, 202, 202, 25256, 18, 1289, 7544, 6289, 12, 40, 2908, 18, 18768, 67, 16537, 16, 1953, 16, 394, 4441, 264, 7544, 4216, 12, 25256, 13, 288, 1082, 202, 95, 9506, 202, 542, 15888, 1526, 12, 5743, 1769, 1082, 202, 97, 1082, 202, 36, 6618, 1082, 202, 482, 1250, 3073, 7544, 12, 921, 501, 13, 288, 759, 9506, 202, 921, 3170, 921, 273, 14015, 45, 30733, 6233, 13, 2174, 682, 1767, 18, 588, 1868, 7675, 588, 18415, 7675, 588, 6233, 1435, 2934, 588, 3759, 1046, 5621, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 9778, 9778, 23012, 2984, 397, 501, 1769, 9506, 202, 2463, 638, 31, 759, 9506, 202, 2463, 629, 31, 1082, 202, 97, 1082, 202, 36, 6618, 1082, 202, 482, 1250, 1954, 7544, 12, 921, 1018, 921, 16, 474, 1674, 16, 12279, 751, 7412, 559, 13, 288, 759, 9506, 202, 921, 3170, 921, 273, 14015, 45, 30733, 6233, 13, 2174, 682, 1767, 18, 588, 1868, 7675, 588, 18415, 7675, 588, 6233, 1435, 2934, 588, 3759, 1046, 5621, 759, 9506, 202, 2463, 638, 31, 9506, 202, 759, 7734, 309, 261, 8109, 921, 1276, 467, 2174, 682, 1046, 597, 14015, 1285, 835, 682, 1046, 13, 8109, 921, 2934, 291, 11728, 1876, 7544, 1526, 10756, 288, 759, 10792, 327, 638, 31, 10792, 368, 7734, 289, 27573, 327, 3867, 5912, 18, 588, 1442, 7675, 291, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7544, 1435, 288, 202, 202, 5912, 8526, 1953, 273, 394, 12279, 8526, 288, 3867, 5912, 18, 588, 1442, 1435, 289, 31, 202, 202, 25256, 18, 1289, 7544, 6289, 12, 40, 2908, 18, 18768, 67, 16537, 16, 1953, 16, 394, 4441, 264, 7544, 4216, 12, 25256, 13, 288, 1082, 202, 95, 9506, 202, 542, 15888, 1526, 12, 5743, 1769, 1082, 202, 97, 1082, 202, 36, 6618, 1082, 202, 482, 1250, 3073, 7544, 12, 921, 501, 13, 288, 759, 9506, 202, 921, 3170, 921, 273, 14015, 45, 30733, 6233, 13, 2174, 682, 1767, 18, 588, 1868, 7675, 588, 18415, 7675, 588, 6233, 1435, 2934, 588, 3759, 1046, 5621, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 9778, 2 ]
public void roleRemoved(MElementEvent e) {}
public void roleRemoved(MElementEvent e) { }
public void roleRemoved(MElementEvent e) {}
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/bd2bc14bd41d6e4018fc6ac64fd5de3812c4e21f/UM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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2478, 10026, 12, 12310, 1133, 425, 13, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected java.beans.PropertyChangeSupport getPropertyChange() { if (propertyChange == null) { propertyChange = new java.beans.PropertyChangeSupport(this); }; return propertyChange; }
protected PropertyChangeSupport getPropertyChange() { if (propertyChange == null) { propertyChange = new PropertyChangeSupport(this); } return propertyChange; }
protected java.beans.PropertyChangeSupport getPropertyChange() { if (propertyChange == null) { propertyChange = new java.beans.PropertyChangeSupport(this); }; return propertyChange;}
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/fe51ee9558d5e044a610f65a6bea1f3dfea18c5f/VAJBuildInfo.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJBuildInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 2252, 18, 2196, 634, 18, 1396, 3043, 6289, 3911, 3043, 1435, 288, 202, 430, 261, 4468, 3043, 422, 446, 13, 288, 202, 202, 4468, 3043, 273, 394, 2252, 18, 2196, 634, 18, 1396, 3043, 6289, 12, 2211, 1769, 202, 20451, 202, 2463, 1272, 3043, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (PropertyState) propRef.resolve(isf);
return (PropertyState) propRef.resolve();
public synchronized PropertyState getPropertyState(QName propertyName) throws NoSuchItemStateException, ItemStateException { PropertyReference propRef = (PropertyReference) properties.get(propertyName); if (propRef == null) { throw new NoSuchItemStateException(idFactory.createPropertyId(getNodeId(), propertyName).toString()); } return (PropertyState) propRef.resolve(isf); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/707d2302038bbbf255b689f948c60078e3957b68/NodeState.java/buggy/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 4276, 1119, 3911, 1119, 12, 13688, 5470, 13, 5411, 1216, 5823, 1180, 5060, 16, 4342, 5060, 288, 3639, 4276, 2404, 2270, 1957, 273, 261, 1396, 2404, 13, 1790, 18, 588, 12, 4468, 461, 1769, 3639, 309, 261, 5986, 1957, 422, 446, 13, 288, 5411, 604, 394, 5823, 1180, 5060, 12, 350, 1733, 18, 2640, 1396, 548, 12, 588, 15883, 9334, 5470, 2934, 10492, 10663, 3639, 289, 3639, 327, 261, 1396, 1119, 13, 2270, 1957, 18, 10828, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 4276, 1119, 3911, 1119, 12, 13688, 5470, 13, 5411, 1216, 5823, 1180, 5060, 16, 4342, 5060, 288, 3639, 4276, 2404, 2270, 1957, 273, 261, 1396, 2404, 13, 1790, 18, 588, 12, 4468, 461, 1769, 3639, 309, 261, 5986, 1957, 422, 446, 13, 288, 5411, 604, 394, 5823, 1180, 5060, 12, 350, 1733, 18, 2640, 1396, 548, 12, 588, 15883, 9334, 5470, 2934, 10492, 10663, 3639, 289, 3639, 327, 261, 1396, 1119, 13, 2270, 1957, 18, 10828, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
methodList.add( methodInfo );
methodList.add( methodInfo ); } Collections.sort( methodList, new AlphabeticallyComparator( ) );
public static List getMethods( IClassInfo classInfo ) { if ( !classInfo.getName( ).equalsIgnoreCase( ( AGGREGATION_CATEGORY ) ) ) return Collections.EMPTY_LIST; List methodList = new ArrayList( ); IConfigurationElement[] aggregations = ( (IConfigurationElement[]) Platform.getExtensionRegistry( ) .getConfigurationElementsFor( AGGREGATION_EXT_POINT ) )[0].getChildren( ); for ( int i = 0; i < aggregations.length; i++ ) { IConfigurationElement[] uiInfos = ( aggregations[i].getChildren( ) ); for ( int j = 0; j < uiInfos.length; j++ ) { MethodInfo methodInfo = new MethodInfo( false ); methodInfo.setName( aggregations[i].getAttribute( AGGREGATION_ATTR_NAME ) ); methodInfo.setDisplayNameKey( uiInfos[j].getAttribute( UIINFO_ATTR_TEXTDATA ) ); methodInfo.setToolTipKey( uiInfos[j].getAttribute( UIINFO_ATTR_TIP ) ); methodInfo.addArgumentList( loadArgumentList( uiInfos[j].getAttribute( UIINFO_ATTR_PARAMTERMETAINFO ) ) ); methodInfo.setStatic( true ); methodInfo.setReturnType( DEFUALT_RETURN_TYPE ); methodList.add( methodInfo ); } Collections.sort( methodList, new AlphabeticallyComparator( ) ); } return methodList; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5a38b96030fe180fbe14a8cb846bcf35bbe48587/AggregationUtil.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/aggregation/AggregationUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 987, 15429, 12, 467, 19455, 23566, 262, 202, 95, 202, 202, 430, 261, 401, 1106, 966, 18, 17994, 12, 262, 18, 14963, 5556, 12, 261, 432, 19491, 5937, 2689, 67, 24847, 262, 262, 262, 1082, 202, 2463, 5737, 18, 13625, 67, 7085, 31, 202, 202, 682, 707, 682, 273, 394, 2407, 12, 11272, 202, 202, 45, 1750, 1046, 8526, 25809, 273, 261, 261, 45, 1750, 1046, 63, 5717, 11810, 18, 588, 3625, 4243, 12, 262, 9506, 202, 18, 588, 1750, 3471, 1290, 12, 432, 19491, 5937, 2689, 67, 4142, 67, 8941, 262, 262, 63, 20, 8009, 588, 4212, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 25809, 18, 2469, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 45, 1750, 1046, 8526, 5915, 7655, 273, 261, 25809, 63, 77, 8009, 588, 4212, 12, 262, 11272, 1082, 202, 1884, 261, 509, 525, 273, 374, 31, 525, 411, 5915, 7655, 18, 2469, 31, 525, 9904, 262, 1082, 202, 95, 9506, 202, 1305, 966, 25719, 273, 394, 2985, 966, 12, 629, 11272, 9506, 202, 2039, 966, 18, 542, 461, 12, 25809, 63, 77, 8009, 588, 1499, 12, 432, 19491, 5937, 2689, 67, 12043, 67, 1985, 262, 11272, 9506, 202, 2039, 966, 18, 542, 20524, 653, 12, 5915, 7655, 63, 78, 8009, 588, 1499, 12, 6484, 5923, 67, 12043, 67, 5151, 4883, 262, 11272, 9506, 202, 2039, 966, 18, 542, 29250, 653, 12, 5915, 7655, 63, 78, 8009, 588, 1499, 12, 6484, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 987, 15429, 12, 467, 19455, 23566, 262, 202, 95, 202, 202, 430, 261, 401, 1106, 966, 18, 17994, 12, 262, 18, 14963, 5556, 12, 261, 432, 19491, 5937, 2689, 67, 24847, 262, 262, 262, 1082, 202, 2463, 5737, 18, 13625, 67, 7085, 31, 202, 202, 682, 707, 682, 273, 394, 2407, 12, 11272, 202, 202, 45, 1750, 1046, 8526, 25809, 273, 261, 261, 45, 1750, 1046, 63, 5717, 11810, 18, 588, 3625, 4243, 12, 262, 9506, 202, 18, 588, 1750, 3471, 1290, 12, 432, 19491, 5937, 2689, 67, 4142, 67, 8941, 262, 262, 63, 20, 8009, 588, 4212, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 25809, 18, 2469, 31, 2 ]
assertTrue(v2.compareTo(v1) < 0);
assertTrue(v2.compareTo(v1) < 0);
public void test5() { assertTrue(v2.compareTo(v1) < 0); }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/5ad015d9a78e1da3350d9b398b46b2f5d4508564/ViewIdTest.java/clean/tests/junit/org/jgroups/tests/ViewIdTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 25, 1435, 288, 202, 11231, 5510, 12, 90, 22, 18, 9877, 774, 12, 90, 21, 13, 411, 374, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 316, 326, 981, 30, 377, 1071, 918, 1842, 25, 1435, 288, 202, 11231, 5510, 12, 90, 22, 18, 9877, 774, 12, 90, 21, 13, 411, 374, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
CalendarManager calendarManager = (CalendarManager) ContainerManager.getComponent("calendarManager");
CalendarManager calendarManager = CalendarManager.getInstance();
public synchronized void handleEvent(ConfluenceEvent event) { if (!registered) { CalendarManager calendarManager = (CalendarManager) ContainerManager.getComponent("calendarManager"); if (calendarManager != null) { CalendarHandler handler = createCalendarHandler(); calendarManager.registerHandler(handler); registered = true; log.info("Registered calendar handler: " + handler.getCalendarType()); } } }
18469 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18469/d0eda0df84a1ba4fde5ae4171f9d3207f80ba104/CalendarRegistrationListener.java/clean/src/java/com/atlassian/confluence/extra/calendar/CalendarRegistrationListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1640, 1133, 12, 442, 2242, 23209, 1133, 871, 13, 565, 288, 3639, 309, 16051, 14327, 13, 3639, 288, 5411, 5542, 1318, 5686, 1318, 273, 5542, 1318, 18, 588, 1442, 5621, 5411, 309, 261, 11650, 1318, 480, 446, 13, 5411, 288, 7734, 5542, 1503, 1838, 273, 752, 7335, 1503, 5621, 7734, 5686, 1318, 18, 4861, 1503, 12, 4176, 1769, 7734, 4104, 273, 638, 31, 7734, 613, 18, 1376, 2932, 10868, 5686, 1838, 30, 315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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1640, 1133, 12, 442, 2242, 23209, 1133, 871, 13, 565, 288, 3639, 309, 16051, 14327, 13, 3639, 288, 5411, 5542, 1318, 5686, 1318, 273, 5542, 1318, 18, 588, 1442, 5621, 5411, 309, 261, 11650, 1318, 480, 446, 13, 5411, 288, 7734, 5542, 1503, 1838, 273, 752, 7335, 1503, 5621, 7734, 5686, 1318, 18, 4861, 1503, 12, 4176, 1769, 7734, 4104, 273, 638, 31, 7734, 613, 18, 1376, 2932, 10868, 5686, 1838, 30, 315, 397, 1838, 18, 588, 7335, 559, 10663, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Collection getChartSubtypes(String sDimension, Orientation orientation) { Vector vSubTypes = new Vector(); if (sDimension.equals("2D") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_LITERAL.getName())) { if (orientation.equals(Orientation.VERTICAL_LITERAL)) { img2D = UIHelper.getImage("icons/full/wizban/stockchartimage.gif"); } else { img2D = UIHelper.getImage("icons/full/wizban/horizontalstockchartimage.gif"); } vSubTypes.add(new DefaultChartSubTypeImpl("Standard Stock Chart", img2D, sStandardDescription)); } return vSubTypes; }
public Collection getChartSubtypes( String sDimension, Orientation orientation ) { Vector vSubTypes = new Vector( ); if ( sDimension.equals( TWO_DIMENSION_TYPE ) || sDimension.equals( ChartDimension.TWO_DIMENSIONAL_LITERAL.getName( ) ) ) { if ( orientation.equals( Orientation.VERTICAL_LITERAL ) ) { img2D = UIHelper.getImage( "icons/full/wizban/stockchartimage.gif" ); } else { img2D = UIHelper.getImage( "icons/full/wizban/horizontalstockchartimage.gif" ); } vSubTypes.add( new DefaultChartSubTypeImpl( "Standard Stock Chart", img2D, sStandardDescription ) ); } return vSubTypes; }
public Collection getChartSubtypes(String sDimension, Orientation orientation) { Vector vSubTypes = new Vector(); if (sDimension.equals("2D") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_LITERAL.getName())) //$NON-NLS-1$ { if (orientation.equals(Orientation.VERTICAL_LITERAL)) { img2D = UIHelper.getImage("icons/full/wizban/stockchartimage.gif"); //$NON-NLS-1$ } else { img2D = UIHelper.getImage("icons/full/wizban/horizontalstockchartimage.gif"); //$NON-NLS-1$ } vSubTypes.add(new DefaultChartSubTypeImpl("Standard Stock Chart", img2D, sStandardDescription)); //$NON-NLS-1$ } return vSubTypes; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/349f24e6a8f8484f0f1f1af682b4952337cac402/StockChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 336, 7984, 1676, 2352, 12, 780, 272, 8611, 16, 531, 12556, 9820, 13, 565, 288, 3639, 5589, 331, 1676, 2016, 273, 394, 5589, 5621, 3639, 309, 261, 87, 8611, 18, 14963, 2932, 22, 40, 7923, 747, 272, 8611, 18, 14963, 12, 7984, 8611, 18, 18869, 51, 67, 2565, 958, 3156, 1146, 1013, 67, 23225, 18, 17994, 1435, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 288, 5411, 309, 261, 19235, 18, 14963, 12, 14097, 18, 21654, 10109, 67, 23225, 3719, 5411, 288, 7734, 3774, 22, 40, 273, 6484, 2276, 18, 588, 2040, 2932, 14516, 19, 2854, 19, 91, 452, 21515, 19, 15381, 11563, 2730, 18, 13905, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 289, 5411, 469, 5411, 288, 7734, 3774, 22, 40, 273, 6484, 2276, 18, 588, 2040, 2932, 14516, 19, 2854, 19, 91, 452, 21515, 19, 18396, 15381, 11563, 2730, 18, 13905, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 289, 5411, 331, 1676, 2016, 18, 1289, 12, 2704, 2989, 7984, 30511, 2828, 2932, 8336, 20296, 363, 14804, 3113, 3774, 22, 40, 16, 272, 8336, 3291, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 327, 331, 1676, 2016, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 336, 7984, 1676, 2352, 12, 780, 272, 8611, 16, 531, 12556, 9820, 13, 565, 288, 3639, 5589, 331, 1676, 2016, 273, 394, 5589, 5621, 3639, 309, 261, 87, 8611, 18, 14963, 2932, 22, 40, 7923, 747, 272, 8611, 18, 14963, 12, 7984, 8611, 18, 18869, 51, 67, 2565, 958, 3156, 1146, 1013, 67, 23225, 18, 17994, 1435, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 288, 5411, 309, 261, 19235, 18, 14963, 12, 14097, 18, 21654, 10109, 67, 23225, 3719, 5411, 288, 7734, 3774, 22, 40, 273, 6484, 2276, 18, 588, 2040, 2932, 14516, 19, 2854, 19, 91, 452, 21515, 19, 15381, 11563, 2730, 18, 13905, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 2 ]
public boolean isSet(org.quickfix.field.LegSymbol field)
public boolean isSet(quickfix.field.LegSymbol field)
public boolean isSet(org.quickfix.field.LegSymbol field) { return isSetField(field); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequestAck.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportRequestAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 8329, 5335, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 8329, 5335, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_blue = blue;
this._blue = blue;
public void setBlue(CSSPrimitiveValue blue) { _blue = blue; }
14763 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14763/1357ea31002a71fe0740de9f907ef71aeead3e41/RGBColorImpl.java/buggy/cssparser/src/com/steadystate/css/dom/RGBColorImpl.java
[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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 27986, 12, 10276, 9840, 620, 8024, 13, 288, 3639, 333, 6315, 14081, 273, 8024, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void test002_WriteEmptyTree2() throws IOException {
public void test002_WriteEmptyTree2() throws IOException {
public void test002_WriteEmptyTree2() throws IOException { // File shouldn't exist as it is in a test pack. // final Tree t = new Tree(r); new WriteTree(r, trash).visit(t); assertEquals("4b825dc642cb6eb9a060e54bf8d69288fbee4904", t.getId() .toString()); final File o = new File(new File(new File(trash_git, "objects"), "4b"), "825dc642cb6eb9a060e54bf8d69288fbee4904"); assertFalse("Exists " + o, o.isFile()); }
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/95e2adba28c9a11f01009dd846fb7366bec613c5/T0003_Basic.java/buggy/org.spearce.jgit/tst/org/spearce/jgit/lib_tst/T0003_Basic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 24908, 67, 3067, 1921, 2471, 22, 1435, 1216, 1860, 288, 3639, 368, 1387, 12044, 1404, 1005, 487, 518, 353, 316, 279, 1842, 2298, 18, 3639, 368, 3639, 727, 4902, 268, 273, 394, 4902, 12, 86, 1769, 3639, 394, 2598, 2471, 12, 86, 16, 20703, 2934, 11658, 12, 88, 1769, 3639, 1815, 8867, 2932, 24, 70, 28, 2947, 7201, 1105, 22, 7358, 26, 24008, 29, 69, 20, 4848, 73, 6564, 17156, 28, 72, 8148, 22, 5482, 19192, 1340, 7616, 3028, 3113, 268, 18, 26321, 1435, 7734, 263, 10492, 10663, 3639, 727, 1387, 320, 273, 394, 1387, 12, 2704, 1387, 12, 2704, 1387, 12, 28665, 67, 6845, 16, 315, 6911, 6, 3631, 315, 24, 70, 6, 3631, 7734, 315, 28, 2947, 7201, 1105, 22, 7358, 26, 24008, 29, 69, 20, 4848, 73, 6564, 17156, 28, 72, 8148, 22, 5482, 19192, 1340, 7616, 3028, 8863, 3639, 1815, 8381, 2932, 4002, 315, 397, 320, 16, 320, 18, 291, 812, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 273, 394, 4902, 12, 86, 1769, 3639, 394, 2598, 2471, 12, 86, 16, 20703, 2934, 11658, 12, 88, 1769, 3639, 1815, 8867, 2932, 24, 70, 28, 2947, 7201, 1105, 22, 7358, 26, 24008, 29, 69, 20, 4848, 73, 6564, 17156, 28, 72, 8148, 22, 5482, 19192, 1340, 7616, 3028, 3113, 268, 18, 26321, 1435, 7734, 263, 10492, 10663, 3639, 727, 1387, 320, 273, 394, 1387, 12, 2704, 1387, 12, 2704, 1387, 12, 28665, 67, 6845, 16, 315, 6911, 6, 3631, 315, 24, 70, 6, 3631, 2 ]
public String getAcquisitionMethod() ;
public String getAcquisitionMethod();
public String getAcquisitionMethod() ;
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/c171c3550f70b496c1228bbed45f5f8feea45a9c/VirtualMachine.java/buggy/src/org/objectweb/proactive/core/descriptor/data/VirtualMachine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4506, 71, 22094, 1305, 1435, 274, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 514, 4506, 71, 22094, 1305, 1435, 274, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ }
{ }
protected void startTimer() { }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 787, 6777, 1435, 202, 202, 95, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 787, 6777, 1435, 202, 202, 95, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Method[] m = FunctionObject.findMethods(clazz, name);
Method m = FunctionObject.findSingleMethod(methods, name);
public void defineFunctionProperties(String[] names, Class clazz, int attributes) throws PropertyException { for (int i=0; i < names.length; i++) { String name = names[i]; Method[] m = FunctionObject.findMethods(clazz, name); if (m == null) { throw PropertyException.withMessage2 ("msg.method.not.found", name, clazz.getName()); } if (m.length > 1) { throw PropertyException.withMessage2 ("msg.no.overload", name, clazz.getName()); } FunctionObject f = new FunctionObject(name, m[0], this); defineProperty(name, f, attributes); } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/d8fc5c127a0f95540affd7bed7956a8113c768f6/ScriptableObject.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptableObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4426, 2083, 2297, 12, 780, 8526, 1257, 16, 1659, 4003, 16, 29159, 509, 1677, 13, 3639, 1216, 4276, 503, 565, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 1257, 18, 2469, 31, 277, 27245, 288, 5411, 514, 508, 273, 1257, 63, 77, 15533, 5411, 2985, 312, 273, 4284, 921, 18, 4720, 5281, 1305, 12, 5163, 16, 508, 1769, 5411, 309, 261, 81, 422, 446, 13, 288, 7734, 604, 4276, 503, 18, 1918, 1079, 22, 10792, 7566, 3576, 18, 2039, 18, 902, 18, 7015, 3113, 508, 16, 4003, 18, 17994, 10663, 5411, 289, 5411, 309, 261, 81, 18, 2469, 405, 404, 13, 288, 7734, 604, 4276, 503, 18, 1918, 1079, 22, 10792, 7566, 3576, 18, 2135, 18, 1643, 945, 3113, 508, 16, 4003, 18, 17994, 10663, 5411, 289, 5411, 4284, 921, 284, 273, 394, 4284, 921, 12, 529, 16, 312, 63, 20, 6487, 333, 1769, 5411, 14007, 12, 529, 16, 284, 16, 1677, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4426, 2083, 2297, 12, 780, 8526, 1257, 16, 1659, 4003, 16, 29159, 509, 1677, 13, 3639, 1216, 4276, 503, 565, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 1257, 18, 2469, 31, 277, 27245, 288, 5411, 514, 508, 273, 1257, 63, 77, 15533, 5411, 2985, 312, 273, 4284, 921, 18, 4720, 5281, 1305, 12, 5163, 16, 508, 1769, 5411, 309, 261, 81, 422, 446, 13, 288, 7734, 604, 4276, 503, 18, 1918, 1079, 22, 10792, 7566, 3576, 18, 2039, 18, 902, 18, 7015, 3113, 508, 16, 4003, 18, 17994, 10663, 5411, 289, 5411, 309, 261, 81, 18, 2469, 405, 404, 13, 288, 7734, 604, 4276, 503, 18, 1918, 1079, 22, 10792, 7566, 3576, 2 ]
else {
/* XXX commented this out, because is has no effect * else {
private int getNearestBondtoAGivenAtom(Molecule mol, Atom atom, Bond bond) { int nearestBond = 0; double[] values = new double[4]; double distance = 0; double distance_tmp = 0; Atom[] atomsInBond = bond.getAtoms(); Bond[] bondsAtLeft = mol.getConnectedBonds(atomsInBond[0]); int partial = 0; for(int i=0; i<bondsAtLeft.length;i++) { values = calculateDistanceBetweenAtomAndBond(mol, atom, bondsAtLeft[i]); partial = mol.getBondNumber(bondsAtLeft[i]); if(i==0) { nearestBond = mol.getBondNumber(bondsAtLeft[i]); distance = values[0]; } else { if(values[0] < distance) { nearestBond = partial; } else { nearestBond = nearestBond; } } } return nearestBond; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/RDFProtonDescriptor.java/clean/src/org/openscience/cdk/qsar/RDFProtonDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 336, 28031, 9807, 869, 1781, 837, 3641, 12, 29669, 12629, 16, 7149, 3179, 16, 605, 1434, 8427, 13, 288, 202, 202, 474, 11431, 9807, 273, 374, 31, 202, 202, 9056, 8526, 924, 273, 394, 1645, 63, 24, 15533, 202, 202, 9056, 3888, 273, 374, 31, 202, 202, 9056, 3888, 67, 5645, 273, 374, 31, 202, 202, 3641, 8526, 9006, 382, 9807, 273, 8427, 18, 588, 14280, 5621, 202, 202, 9807, 8526, 15692, 861, 3910, 273, 12629, 18, 588, 8932, 26090, 12, 14937, 382, 9807, 63, 20, 19226, 202, 202, 474, 4702, 273, 374, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 70, 4096, 861, 3910, 18, 2469, 31, 77, 27245, 288, 1082, 202, 2372, 273, 4604, 7200, 11831, 3641, 1876, 9807, 12, 21260, 16, 3179, 16, 15692, 861, 3910, 63, 77, 19226, 1082, 202, 11601, 273, 12629, 18, 588, 9807, 1854, 12, 70, 4096, 861, 3910, 63, 77, 19226, 1082, 202, 430, 12, 77, 631, 20, 13, 288, 9506, 202, 25785, 9807, 273, 12629, 18, 588, 9807, 1854, 12, 70, 4096, 861, 3910, 63, 77, 19226, 9506, 202, 8969, 273, 924, 63, 20, 15533, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 430, 12, 2372, 63, 20, 65, 411, 3888, 13, 288, 6862, 202, 25785, 9807, 273, 4702, 31, 9506, 202, 97, 9506, 202, 12107, 288, 6862, 202, 25785, 9807, 273, 11431, 9807, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 11431, 9807, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 336, 28031, 9807, 869, 1781, 837, 3641, 12, 29669, 12629, 16, 7149, 3179, 16, 605, 1434, 8427, 13, 288, 202, 202, 474, 11431, 9807, 273, 374, 31, 202, 202, 9056, 8526, 924, 273, 394, 1645, 63, 24, 15533, 202, 202, 9056, 3888, 273, 374, 31, 202, 202, 9056, 3888, 67, 5645, 273, 374, 31, 202, 202, 3641, 8526, 9006, 382, 9807, 273, 8427, 18, 588, 14280, 5621, 202, 202, 9807, 8526, 15692, 861, 3910, 273, 12629, 18, 588, 8932, 26090, 12, 14937, 382, 9807, 63, 20, 19226, 202, 202, 474, 4702, 273, 374, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 70, 4096, 861, 3910, 18, 2469, 31, 77, 27245, 288, 2 ]
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject result = ruby.getNil(); try { result = ruby.getRubyFrame().getLastClass().getSuperClass().call(ruby.getRubyFrame().getSelf(), ruby.getRubyFrame().getLastFunc(), new RubyPointer(args), 3); } finally { ruby.getIter().pop(); } return result; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 8051, 12, 54, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 1435, 422, 446, 13, 288, 5411, 604, 394, 25473, 12, 27768, 16, 315, 9565, 1106, 707, 2119, 397, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 2622, 1435, 397, 2491, 1297, 506, 3696, 635, 4237, 8051, 1435, 1199, 1769, 3639, 289, 7734, 22155, 18, 588, 2360, 7675, 6206, 5621, 7734, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 775, 288, 540, 202, 2088, 273, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 7675, 588, 8051, 797, 7675, 1991, 12, 27768, 18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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 921, 745, 8051, 12, 54, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 1435, 422, 446, 13, 288, 5411, 604, 394, 25473, 12, 27768, 16, 315, 9565, 1106, 707, 2119, 397, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 2622, 1435, 397, 2491, 1297, 506, 3696, 635, 4237, 8051, 1435, 1199, 1769, 3639, 289, 7734, 22155, 18, 588, 2360, 7675, 6206, 5621, 7734, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 775, 288, 540, 202, 2088, 273, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 7675, 588, 8051, 797, 7675, 1991, 12, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 2 ]
public void write(final String streamId, final InputStream stream) { write(new StreamHeader(StreamHeader.Type.STREAM_BEGIN, streamId)); write(stream);
public void write(final String streamId, final InputStream stream, final Long streamSize) { write(new StreamHeader(StreamHeader.Type.STREAM_ID, streamId)); write(new StreamHeader(StreamHeader.Type.STREAM_SIZE, String.valueOf(streamSize))); write(stream, streamSize);
public void write(final String streamId, final InputStream stream) { write(new StreamHeader(StreamHeader.Type.STREAM_BEGIN, streamId)); write(stream); }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/86cc0fa23f5cde53caa7b07615a0f601f48f289c/StreamWriter.java/clean/common/model/src/main/java/com/thinkparity/codebase/model/stream/StreamWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 12, 6385, 514, 21035, 16, 727, 5037, 1407, 13, 288, 3639, 1045, 12, 2704, 3961, 1864, 12, 1228, 1864, 18, 559, 18, 13693, 67, 16061, 16, 21035, 10019, 3639, 1045, 12, 3256, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object value = argumentsProperty; if (value != null) {
Object value = defaultGet("arguments"); if (value != NOT_FOUND) {
private Object getArguments() { // <Function name>.arguments is deprecated, so we use a slow // way of getting it that doesn't add to the invocation cost. // TODO: add warning, error based on version Object value = argumentsProperty; if (value != null) { // Should after changing <Function name>.arguments its // activation still be available during Function call? // This code assumes it should not: argumentsProperty != null // means assigned or delete arguments return (value == UniqueTag.NULL_VALUE) ? null : value; } Context cx = Context.getContext(); NativeCall activation = ScriptRuntime.findFunctionActivation(cx, this); return (activation == null) ? null : activation.get("arguments", activation); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/993454366a57fd32ee051c61ff3a0658292d84f2/BaseFunction.java/buggy/js/rhino/src/org/mozilla/javascript/BaseFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 17839, 1435, 565, 288, 1377, 368, 411, 2083, 508, 18652, 7099, 353, 6849, 16, 1427, 732, 999, 279, 11816, 1377, 368, 4031, 434, 8742, 518, 716, 3302, 1404, 527, 358, 326, 9495, 6991, 18, 1377, 368, 2660, 30, 527, 3436, 16, 555, 2511, 603, 1177, 1377, 1033, 460, 273, 1775, 1396, 31, 1377, 309, 261, 1132, 480, 446, 13, 288, 1850, 368, 9363, 1839, 12770, 411, 2083, 508, 18652, 7099, 2097, 1850, 368, 10027, 4859, 506, 2319, 4982, 4284, 745, 35, 1850, 368, 1220, 981, 13041, 518, 1410, 486, 30, 1775, 1396, 480, 446, 1850, 368, 4696, 6958, 578, 1430, 1775, 1850, 327, 261, 1132, 422, 14584, 1805, 18, 8560, 67, 4051, 13, 692, 446, 294, 460, 31, 1377, 289, 1377, 1772, 9494, 273, 1772, 18, 29120, 5621, 1377, 16717, 1477, 10027, 273, 7739, 5576, 18, 4720, 2083, 14857, 12, 71, 92, 16, 333, 1769, 1377, 327, 261, 16908, 422, 446, 13, 2398, 692, 446, 2398, 294, 10027, 18, 588, 2932, 7099, 3113, 10027, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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518, 716, 3302, 1404, 527, 358, 326, 9495, 6991, 18, 1377, 368, 2660, 30, 527, 3436, 16, 555, 2511, 603, 1177, 1377, 1033, 460, 273, 1775, 1396, 31, 1377, 309, 261, 1132, 480, 446, 13, 288, 1850, 368, 9363, 1839, 12770, 411, 2083, 508, 18652, 7099, 2097, 1850, 368, 10027, 4859, 506, 2319, 4982, 4284, 745, 35, 1850, 368, 1220, 981, 13041, 518, 1410, 486, 30, 1775, 1396, 480, 446, 1850, 368, 4696, 6958, 578, 1430, 1775, 1850, 327, 261, 1132, 422, 14584, 1805, 18, 8560, 67, 4051, 13, 692, 446, 294, 2 ]
assertAligned(start.toInt()); assertAligned(bytes.toInt());
assertAligned(start); assertAligned(bytes);
public static void zeroSmall(Address start, Extent bytes) throws InlinePragma { if (Assert.VERIFY_ASSERTIONS) { assertAligned(start.toInt()); assertAligned(bytes.toInt()); } Address end = start.add(bytes); for (Address addr = start; addr.LT(end); addr = addr.add(BYTES_IN_INT)) addr.store(0); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9b22bffbb06319b08a93aed2a8f11de10ba3fecf/Memory.java/buggy/MMTk/src/org/mmtk/utility/Memory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3634, 19187, 12, 1887, 787, 16, 6419, 319, 1731, 13, 377, 1216, 16355, 2050, 9454, 288, 565, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 288, 1377, 1815, 28495, 12, 1937, 18, 869, 1702, 10663, 1377, 1815, 28495, 12, 3890, 18, 869, 1702, 10663, 565, 289, 565, 5267, 679, 273, 787, 18, 1289, 12, 3890, 1769, 565, 364, 261, 1887, 3091, 273, 787, 31, 3091, 18, 12050, 12, 409, 1769, 3091, 273, 3091, 18, 1289, 12, 13718, 67, 706, 67, 3217, 3719, 4202, 3091, 18, 2233, 12, 20, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3634, 19187, 12, 1887, 787, 16, 6419, 319, 1731, 13, 377, 1216, 16355, 2050, 9454, 288, 565, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 288, 1377, 1815, 28495, 12, 1937, 18, 869, 1702, 10663, 1377, 1815, 28495, 12, 3890, 18, 869, 1702, 10663, 565, 289, 565, 5267, 679, 273, 787, 18, 1289, 12, 3890, 1769, 565, 364, 261, 1887, 3091, 273, 787, 31, 3091, 18, 12050, 12, 409, 1769, 3091, 273, 3091, 18, 1289, 12, 13718, 67, 706, 67, 3217, 3719, 4202, 3091, 18, 2233, 12, 20, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
replaceProjectButton.setSelection(projectPreference.equals(IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE));
protected void performDefaults() { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); autoBuildButton.setSelection(ResourcesPlugin.getWorkspace().isAutoBuilding()); autoSaveAllButton.setSelection(store.getDefaultBoolean(IPreferenceConstants.SAVE_ALL_BEFORE_BUILD)); linkButton.setSelection(store.getDefaultBoolean(IWorkbenchPreferenceConstants.LINK_NAVIGATOR_TO_EDITOR)); reuseEditors.setSelection(store.getDefaultBoolean(IPreferenceConstants.REUSE_EDITORS_BOOLEAN)); reuseEditorsThreshold.loadDefault(); recentFilesEditor.loadDefault(); // acceleratorPerformDefaults(store); //Project perspective preferences String projectPreference = store.getDefaultString(IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE); this.newProjectPerspectiveSetting = projectPreference; openProjectInNewWindowButton.setSelection(projectPreference.equals(IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_WINDOW)); replaceProjectButton.setSelection(projectPreference.equals(IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE)); switchOnNewProjectButton.setSelection(projectPreference.equals(IWorkbenchPreferenceConstants.NO_NEW_PERSPECTIVE)); super.performDefaults(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/957609e438c2e86ffb9df6321aabf64172f2c32c/WorkbenchPreferencePage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3073, 7019, 1435, 288, 202, 202, 45, 9624, 2257, 1707, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 5621, 202, 202, 6079, 3116, 3616, 18, 542, 6233, 12, 3805, 3773, 18, 588, 8241, 7675, 291, 4965, 16713, 10663, 202, 202, 6079, 4755, 1595, 3616, 18, 542, 6233, 12, 2233, 18, 588, 1868, 5507, 12, 45, 9624, 2918, 18, 25242, 67, 4685, 67, 19152, 67, 20215, 10019, 202, 202, 1232, 3616, 18, 542, 6233, 12, 2233, 18, 588, 1868, 5507, 12, 45, 2421, 22144, 9624, 2918, 18, 10554, 67, 50, 5856, 3047, 3575, 67, 4296, 67, 13208, 10019, 202, 202, 266, 1202, 4666, 1383, 18, 542, 6233, 12, 2233, 18, 588, 1868, 5507, 12, 45, 9624, 2918, 18, 862, 8001, 67, 13208, 55, 67, 17900, 10019, 202, 202, 266, 1202, 4666, 1383, 7614, 18, 945, 1868, 5621, 9506, 202, 20872, 2697, 6946, 18, 945, 1868, 5621, 202, 202, 759, 202, 202, 30737, 7385, 4990, 7019, 12, 2233, 1769, 202, 202, 759, 4109, 26651, 12750, 202, 202, 780, 1984, 9624, 273, 1707, 18, 588, 1868, 780, 12, 45, 2421, 22144, 9624, 2918, 18, 17147, 67, 11437, 67, 12917, 67, 3194, 23810, 1268, 5354, 1769, 202, 202, 2211, 18, 2704, 4109, 14781, 16772, 5568, 273, 1984, 9624, 31, 202, 202, 3190, 4109, 382, 1908, 3829, 3616, 18, 542, 6233, 12, 4406, 9624, 18, 14963, 12, 45, 2421, 22144, 9624, 2918, 18, 11437, 67, 3194, 23810, 1268, 5354, 67, 23407, 10019, 202, 202, 2079, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3073, 7019, 1435, 288, 202, 202, 45, 9624, 2257, 1707, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 5621, 202, 202, 6079, 3116, 3616, 18, 542, 6233, 12, 3805, 3773, 18, 588, 8241, 7675, 291, 4965, 16713, 10663, 202, 202, 6079, 4755, 1595, 3616, 18, 542, 6233, 12, 2233, 18, 588, 1868, 5507, 12, 45, 9624, 2918, 18, 25242, 67, 4685, 67, 19152, 67, 20215, 10019, 202, 202, 1232, 3616, 18, 542, 6233, 12, 2233, 18, 588, 1868, 5507, 12, 45, 2421, 22144, 9624, 2918, 18, 10554, 67, 50, 5856, 3047, 3575, 67, 4296, 67, 13208, 10019, 202, 202, 266, 1202, 4666, 1383, 18, 542, 6233, 12, 2233, 18, 588, 1868, 5507, 2 ]
info.destinationDirectory = fDestination;
protected FeatureExportOperation getExportOperation() { FeatureExportInfo info = new FeatureExportInfo(); info.toDirectory = fToDirectory; info.useJarFormat = fUseJarFormat; info.exportSource = fExportSource; info.destinationDirectory = fDestination; info.zipFileName = fZipFilename; info.items = fFeatures; info.qualifier = fQualifier; return new FeatureExportOperation(info); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/c04cbd6bfb1b31319b90db6a70daa5126e54d806/FeatureExportTask.java/buggy/ui/org.eclipse.pde.core/src_ant/org/eclipse/pde/internal/core/ant/FeatureExportTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7881, 6144, 2988, 29566, 2988, 1435, 288, 202, 202, 4595, 6144, 966, 1123, 273, 394, 7881, 6144, 966, 5621, 202, 202, 1376, 18, 869, 2853, 273, 284, 774, 2853, 31, 202, 202, 1376, 18, 1202, 10813, 1630, 273, 284, 3727, 10813, 1630, 31, 202, 202, 1376, 18, 6530, 1830, 273, 284, 6144, 1830, 31, 202, 202, 1376, 18, 10590, 2853, 273, 284, 5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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7881, 6144, 2988, 29566, 2988, 1435, 288, 202, 202, 4595, 6144, 966, 1123, 273, 394, 7881, 6144, 966, 5621, 202, 202, 1376, 18, 869, 2853, 273, 284, 774, 2853, 31, 202, 202, 1376, 18, 1202, 10813, 1630, 273, 284, 3727, 10813, 1630, 31, 202, 202, 1376, 18, 6530, 1830, 273, 284, 6144, 1830, 31, 202, 202, 1376, 18, 10590, 2853, 273, 284, 5683, 31, 202, 202, 1376, 18, 4450, 4771, 273, 284, 9141, 5359, 31, 202, 202, 1376, 18, 3319, 273, 284, 8696, 31, 202, 202, 1376, 18, 28157, 273, 284, 16185, 31, 202, 202, 2463, 394, 7881, 6144, 2988, 12, 1376, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (myLoggingService.isWarnEnabled())
if(System.currentTimeMillis() > getWarningCutoffTime()) { myLoggingService.error(getAgentIdentifier() + " got 0 results for query " + mmRequest.getQuery()); } else if (myLoggingService.isWarnEnabled()) {
protected void generateServiceRequests(Collection mmRequests) { for (Iterator iterator = mmRequests.iterator(); iterator.hasNext();) { MMQueryRequest mmRequest = (MMQueryRequest) iterator.next(); if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + ": execute: MMQueryRequest has changed: " + mmRequest); } // Only do anything if the query has a result Collection services = mmRequest.getResult(); if (services != null) { if (services.size() == 0) { // MMPlugin said no one matched? if (myLoggingService.isWarnEnabled()) myLoggingService.warn(getAgentIdentifier() + " got 0 results for query " + mmRequest.getQuery()); //return; continue; // on to next changed mmRequest } Role role = null; Collection intervals = null; if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + ": Results for query " + mmRequest.getQuery().toString()); myLoggingService.debug(" number of avail providers: " + services.size()); } //make sure any ties are resolved in a reliable & consistent order ArrayList servicesList = new ArrayList(); servicesList.addAll(services); reorderAnyTiedServiceDescriptions(servicesList); int numDesiredProviders = 1; //default is to look for only one provider //Look through the service descriptions to //just figure out the role & time intervals you need to ask for for (Iterator serviceIterator = servicesList.iterator(); serviceIterator.hasNext();) { ScoredServiceDescription serviceDescription = (ScoredServiceDescription) serviceIterator.next(); if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + " execute: - provider: " + serviceDescription.getProviderName() + " score: " + serviceDescription.getScore()); } if (role == null) { // Find the role out of the service classifications in the desc role = getRole(serviceDescription); // Then use that to get the outstanding intervals // If we have a service request for this role, expect // intervals to be null intervals = getCurrentlyUncoveredIntervalsWithoutOutstandingRequests( DEFAULT_START_TIME, DEFAULT_END_TIME, role); // Then use role again to find out how many providers we want for this role Integer desiredProviders = ((Integer)myRoles.get(role.toString())); if (desiredProviders !=null){ numDesiredProviders = desiredProviders.intValue(); if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + " wants " +numDesiredProviders +" providers for role: " + role); } } } } //end loop finding role & intervals needed & num providers needed if (role == null || intervals == null) { //error state, log a message if (myLoggingService.isWarnEnabled()) { myLoggingService.warn(getAgentIdentifier() + " error generating service requests: a null role or time interval: " + "role is " + role + " and time intervals are " + intervals + ", and services.size was " + services.size()); } continue; // on to the next changed MMRequest // return; } if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + " execute: want a provider for role: " + role); } //now, for each interval, pick a provider (service description) and //request a contract Iterator neededIntervals = intervals.iterator(); if(!neededIntervals.hasNext()) { if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + " empty needed intervals for role: " + role); } } while(neededIntervals.hasNext()) { TimeInterval currentInterval = (TimeInterval) neededIntervals.next(); Iterator serviceIterator = servicesList.iterator(); boolean madeNewRequest = false; for (int i =0; i < numDesiredProviders; i++) { // Loop over providers who might cover the interval if(serviceIterator.hasNext()) { //while(serviceIterator.hasNext()) { ScoredServiceDescription sd = (ScoredServiceDescription) serviceIterator.next(); //if you have already asked this provider, skip it if(alreadyAskedForContractWithProvider(role, sd.getProviderName(), currentInterval)) { if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + " skipping " + sd.getProviderName() + " for role: " + role); } continue; } else { //remember that you found a provider to request from madeNewRequest = true; //do the request if (myLoggingService.isDebugEnabled()) { myLoggingService.debug(getAgentIdentifier() + " requesting contract with " + sd.getProviderName() + " for role " + role); } requestServiceContract(sd, currentInterval); //stop looking for providers for this interval, since we found one //break; } } } // end of for loop for number of desired providers //if you were not able to find a provider to request from //for this interval, take appropriate action if(!madeNewRequest) { handleRequestWithNoRemainingProviderOption(role, currentInterval); } } // end of loop over intervals } // end of check that the request had results // Done with the query so clean up // publishRemove(mmRequest); }//end looping through changed mm requests}
14011 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14011/e7df4a1db0f6f77e54fda087427d41adfee8561a/SDClientPlugin.java/clean/servicediscovery/src/org/cougaar/servicediscovery/plugin/SDClientPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2103, 1179, 6421, 12, 2532, 9740, 6421, 13, 288, 565, 364, 261, 3198, 2775, 273, 9740, 6421, 18, 9838, 5621, 540, 2775, 18, 5332, 2134, 5621, 13, 288, 1377, 18295, 1138, 691, 9740, 691, 273, 261, 8206, 1138, 691, 13, 2775, 18, 4285, 5621, 1377, 309, 261, 4811, 7735, 1179, 18, 291, 2829, 1526, 10756, 288, 3639, 3399, 7735, 1179, 18, 4148, 12, 588, 3630, 3004, 1435, 397, 6398, 1836, 30, 18295, 1138, 691, 711, 3550, 30, 315, 397, 9740, 691, 1769, 1377, 289, 1377, 368, 5098, 741, 6967, 309, 326, 843, 711, 279, 563, 1377, 2200, 4028, 273, 9740, 691, 18, 588, 1253, 5621, 1377, 309, 261, 8387, 480, 446, 13, 288, 202, 430, 261, 8387, 18, 1467, 1435, 422, 374, 13, 288, 202, 225, 368, 18295, 3773, 7864, 350, 1158, 1245, 4847, 35, 202, 225, 309, 261, 4811, 7735, 1179, 18, 291, 3160, 1526, 10756, 202, 565, 3399, 7735, 1179, 18, 8935, 12, 588, 3630, 3004, 1435, 397, 4405, 225, 315, 2363, 374, 1686, 364, 843, 315, 397, 9740, 691, 18, 588, 1138, 10663, 202, 225, 368, 2463, 31, 202, 225, 1324, 31, 368, 603, 358, 1024, 3550, 9740, 691, 202, 97, 3639, 6204, 2478, 273, 446, 31, 3639, 2200, 10389, 273, 446, 31, 3639, 309, 261, 4811, 7735, 1179, 18, 291, 2829, 1526, 10756, 288, 1850, 3399, 7735, 1179, 18, 4148, 12, 588, 3630, 3004, 1435, 397, 6398, 10351, 364, 843, 315, 397, 4766, 9740, 691, 18, 588, 1138, 7675, 10492, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2103, 1179, 6421, 12, 2532, 9740, 6421, 13, 288, 565, 364, 261, 3198, 2775, 273, 9740, 6421, 18, 9838, 5621, 540, 2775, 18, 5332, 2134, 5621, 13, 288, 1377, 18295, 1138, 691, 9740, 691, 273, 261, 8206, 1138, 691, 13, 2775, 18, 4285, 5621, 1377, 309, 261, 4811, 7735, 1179, 18, 291, 2829, 1526, 10756, 288, 3639, 3399, 7735, 1179, 18, 4148, 12, 588, 3630, 3004, 1435, 397, 6398, 1836, 30, 18295, 1138, 691, 711, 3550, 30, 315, 397, 9740, 691, 1769, 1377, 289, 1377, 368, 5098, 741, 6967, 309, 326, 843, 711, 279, 563, 1377, 2200, 4028, 273, 9740, 691, 18, 588, 1253, 5621, 1377, 309, 261, 8387, 480, 446, 13, 288, 202, 430, 261, 2 ]
ignoreImplicitExceptions && !edge.isFlagSet(EXPLICIT_EXCEPTIONS_FLAG))
ignoreImplicitExceptions && !edge.isFlagSet(EXPLICIT_EXCEPTIONS_FLAG))
public void meetInto(ResourceValueFrame fact, Edge edge, ResourceValueFrame result) throws DataflowAnalysisException { BasicBlock source = edge.getSource(); BasicBlock dest = edge.getTarget(); ResourceValueFrame tmpFact = null; if (edge.isExceptionEdge()) { // If this edge throws only implicit exceptions // (as determined by TypeAnalysis and PruneInfeasibleExceptionEdges), // and the resource tracker says to ignore implicit exceptions // for this resource, ignore it. if (ClassContext.PRUNE_INFEASIBLE_EXCEPTION_EDGES && ignoreImplicitExceptions && !edge.isFlagSet(EXPLICIT_EXCEPTIONS_FLAG)) return; if (fact.getStatus() == ResourceValueFrame.OPEN) { // If status is OPEN, downgrade to OPEN_ON_EXCEPTION_PATH tmpFact = modifyFrame(fact, tmpFact); tmpFact.setStatus(ResourceValueFrame.OPEN_ON_EXCEPTION_PATH); } // Special case: if the instruction that closes the resource // throws an exception, we consider the resource to be successfully // closed anyway. InstructionHandle exceptionThrower = source.getExceptionThrower(); BasicBlock fallThroughSuccessor = cfg.getSuccessorWithEdgeType(source, FALL_THROUGH_EDGE); if (DEBUG && fallThroughSuccessor == null) System.out.println("Null fall through successor!"); if (fallThroughSuccessor != null && resourceTracker.isResourceClose(fallThroughSuccessor, exceptionThrower, methodGen.getConstantPool(), resource, fact)) { tmpFact = modifyFrame(fact, tmpFact); tmpFact.setStatus(ResourceValueFrame.CLOSED); if (DEBUG) System.out.print("(failed attempt to close)"); } if (dest.isExceptionHandler()) { // Clear stack, push value for exception if (fact.isValid()) { tmpFact = modifyFrame(fact, tmpFact); tmpFact.clearStack(); tmpFact.pushValue(ResourceValue.notInstance()); } } } // Make the resource nonexistent if it is compared against null int edgeType = edge.getType(); if (edgeType == IFCMP_EDGE || edgeType == FALL_THROUGH_EDGE) { InstructionHandle lastInSourceHandle = source.getLastInstruction(); if (lastInSourceHandle != null) { Instruction lastInSource = lastInSourceHandle.getInstruction(); if (lastInSource instanceof IFNULL || lastInSource instanceof IFNONNULL) { // Get the frame at the if statement ResourceValueFrame startFrame = getStartFact(source); if (startFrame.isValid()) { // The source block has a valid start fact. // That means it is safe to inspect the frame at the If instruction. ResourceValueFrame frameAtIf = getFactAtLocation(new Location(lastInSourceHandle, source)); ResourceValue topValue = frameAtIf.getValue(frameAtIf.getNumSlots() - 1); if (topValue.isInstance()) { if ((lastInSource instanceof IFNULL && edgeType == IFCMP_EDGE) || (lastInSource instanceof IFNONNULL && edgeType == FALL_THROUGH_EDGE)) { //System.out.println("**** making resource nonexistent on edge "+edge.getId()); tmpFact = modifyFrame(fact, tmpFact); tmpFact.setStatus(ResourceValueFrame.NONEXISTENT); } } } } } } if (tmpFact != null) fact = tmpFact; mergeInto(fact, result); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/ResourceValueAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/ResourceValueAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18721, 5952, 12, 1420, 620, 3219, 5410, 16, 11342, 3591, 16, 2591, 620, 3219, 563, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 8252, 1768, 1084, 273, 3591, 18, 588, 1830, 5621, 202, 202, 8252, 1768, 1570, 273, 3591, 18, 588, 2326, 5621, 202, 202, 1420, 620, 3219, 1853, 9766, 273, 446, 31, 202, 202, 430, 261, 7126, 18, 291, 503, 6098, 10756, 288, 1082, 202, 759, 971, 333, 3591, 1216, 1338, 10592, 4798, 1082, 202, 759, 261, 345, 11383, 635, 1412, 9418, 471, 2301, 7556, 382, 3030, 30711, 503, 10697, 3631, 1082, 202, 759, 471, 326, 1058, 9745, 20185, 358, 2305, 10592, 4798, 1082, 202, 759, 364, 333, 1058, 16, 2305, 518, 18, 1082, 202, 430, 261, 797, 1042, 18, 8025, 2124, 41, 67, 706, 8090, 37, 16645, 67, 12658, 67, 2056, 43, 3991, 597, 9506, 202, 6185, 15787, 11416, 597, 9506, 202, 5, 7126, 18, 291, 4678, 694, 12, 16109, 28165, 67, 12658, 55, 67, 9651, 3719, 9506, 202, 2463, 31, 1082, 202, 430, 261, 3493, 18, 588, 1482, 1435, 422, 2591, 620, 3219, 18, 11437, 13, 288, 9506, 202, 759, 971, 1267, 353, 11919, 16, 2588, 3994, 358, 11919, 67, 673, 67, 12658, 67, 4211, 9506, 202, 5645, 9766, 273, 5612, 3219, 12, 3493, 16, 1853, 9766, 1769, 9506, 202, 5645, 9766, 18, 542, 1482, 12, 1420, 620, 3219, 18, 11437, 67, 673, 67, 12658, 67, 4211, 1769, 1082, 202, 97, 1082, 202, 759, 13409, 648, 30, 309, 326, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18721, 5952, 12, 1420, 620, 3219, 5410, 16, 11342, 3591, 16, 2591, 620, 3219, 563, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 8252, 1768, 1084, 273, 3591, 18, 588, 1830, 5621, 202, 202, 8252, 1768, 1570, 273, 3591, 18, 588, 2326, 5621, 202, 202, 1420, 620, 3219, 1853, 9766, 273, 446, 31, 202, 202, 430, 261, 7126, 18, 291, 503, 6098, 10756, 288, 1082, 202, 759, 971, 333, 3591, 1216, 1338, 10592, 4798, 1082, 202, 759, 261, 345, 11383, 635, 1412, 9418, 471, 2301, 7556, 382, 3030, 30711, 503, 10697, 3631, 1082, 202, 759, 471, 326, 1058, 9745, 20185, 358, 2305, 10592, 4798, 1082, 202, 759, 364, 333, 1058, 16, 2305, 518, 18, 2 ]
for(int i = 0; i<arr.length; i++){ for(int e=0;e<arr[i].length;e++){ rolesV.add(arr[i][e]); } }
for(int i = 0; i<arr.length; i++) rolesV.add(arr[i]) ;
public synchronized Vector convert2Vector(String[][] arr) { Vector rolesV = new Vector() ; for(int i = 0; i<arr.length; i++){ for(int e=0;e<arr[i].length;e++){ rolesV.add(arr[i][e]); } } return rolesV ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/097a46af4aab69684679687e935ee611cdd83b5a/ChatBase.java/buggy/servlets/chat/ChatBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 5589, 1765, 22, 5018, 12, 780, 63, 6362, 65, 2454, 13, 565, 288, 202, 5018, 4900, 58, 225, 273, 394, 5589, 1435, 274, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 32, 5399, 18, 2469, 31, 277, 27245, 95, 202, 565, 364, 12, 474, 425, 33, 20, 31, 73, 32, 5399, 63, 77, 8009, 2469, 31, 73, 27245, 95, 202, 202, 7774, 58, 18, 1289, 12, 5399, 63, 77, 6362,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 5589, 1765, 22, 5018, 12, 780, 63, 6362, 65, 2454, 13, 565, 288, 202, 5018, 4900, 58, 225, 273, 394, 5589, 1435, 274, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 32, 5399, 18, 2469, 31, 277, 27245, 95, 202, 565, 364, 12, 474, 425, 33, 20, 31, 73, 32, 5399, 63, 77, 8009, 2469, 31, 73, 27245, 95, 202, 202, 7774, 58, 18, 1289, 12, 5399, 63, 77, 6362, 73, 19226, 202, 565, 289, 202, 97, 202, 2463, 4900, 58, 274, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lsExpl = new Listener() { public void handleEvent(Event e) { exploreDB(); } };
lsShare = new Listener() { public void handleEvent(Event e) { shareObject(); } };
lsExpl = new Listener() { public void handleEvent(Event e) { exploreDB(); } };
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/f7583fcbc4c3aebd82d5b0a0f75f74a55d830ed3/Spoon.java/buggy/src/be/ibridge/kettle/spoon/Spoon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 7180, 424, 412, 282, 273, 394, 10652, 1435, 288, 1071, 918, 1640, 1133, 12, 1133, 425, 13, 288, 15233, 266, 2290, 5621, 565, 289, 289, 31, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7180, 424, 412, 282, 273, 394, 10652, 1435, 288, 1071, 918, 1640, 1133, 12, 1133, 425, 13, 288, 15233, 266, 2290, 5621, 565, 289, 289, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Word value = VM_Magic.getWordAtOffset(stack, vOffset - BYTES_IN_ADDRESS); vOffset -= BYTES_IN_STACKSLOT;
Word value = VM_Magic.getWordAtOffset(stack, vOffset.sub(BYTES_IN_ADDRESS)); vOffset = vOffset.sub(BYTES_IN_STACKSLOT);
private static void getVariableValue(byte[] stack, int offset, byte[] types, VM_BaselineCompiledMethod compiledMethod, VM_CodeArray instructions, int kind, OSR_ExecutionState state) { int size = types.length; int vOffset = offset; for (int i=0; i<size; i++) { if (VM.TraceOnStackReplacement) { Word content = VM_Magic.getWordAtOffset(stack, vOffset - BYTES_IN_ADDRESS); VM.sysWrite("0x"+Integer.toHexString(vOffset - BYTES_IN_ADDRESS)+" 0x"); VM.sysWriteln(content); } switch (types[i]) { case VoidTypeCode: vOffset -= BYTES_IN_STACKSLOT; break; case BooleanTypeCode: case ByteTypeCode: case ShortTypeCode: case CharTypeCode: case IntTypeCode: case FloatTypeCode:{ int value = VM_Magic.getIntAtOffset(stack, vOffset - BYTES_IN_INT); vOffset -= BYTES_IN_STACKSLOT; int tcode = (types[i] == FloatTypeCode) ? FLOAT : INT; state.add(new OSR_VariableElement(kind, i, tcode, value)); break; } case LongTypeCode: case DoubleTypeCode: { //KV: this code would be nicer if VoidTypeCode would always follow a 64-bit value. Rigth now for LOCAL it follows, for STACK it proceeds int memoff = (kind == LOCAL) ? (vOffset-BYTES_IN_DOUBLE) : VM.BuildFor64Addr? vOffset : (vOffset - BYTES_IN_STACKSLOT); long value = VM_Magic.getLongAtOffset(stack, memoff); int tcode = (types[i] == LongTypeCode) ? LONG : DOUBLE; state.add(new OSR_VariableElement(kind, i, tcode, value)); if (kind == LOCAL) { //KV:VoidTypeCode is next vOffset -= 2*BYTES_IN_STACKSLOT; i++; } else vOffset -= BYTES_IN_STACKSLOT; //KV:VoidTypeCode was already in front break; } case ReturnAddressTypeCode: { VM.disableGC(); Address rowIP = VM_Magic.objectAsAddress(stack).add(vOffset).loadAddress(); Address instr_beg = VM_Magic.objectAsAddress(instructions); VM.enableGC(); vOffset -= BYTES_IN_STACKSLOT; int ipIndex = rowIP.diff(instr_beg).toInt() >> LG_INSTRUCTION_WIDTH; if (VM.TraceOnStackReplacement) { VM.sysWrite("baseline ret_addr ip "+ipIndex+" --> "); } int bcIndex = compiledMethod.findBytecodeIndexForInstruction(ipIndex+1); if (VM.TraceOnStackReplacement) { VM.sysWrite(" bc "+ bcIndex+"\n"); } state.add(new OSR_VariableElement(kind, i, RET_ADDR, bcIndex)); break; } case ClassTypeCode: case ArrayTypeCode: { VM.disableGC(); Object ref = VM_Magic.getObjectAtOffset(stack, vOffset - BYTES_IN_ADDRESS); VM.enableGC(); vOffset -= BYTES_IN_STACKSLOT; state.add(new OSR_VariableElement(kind, i, REF, ref)); break; } case WordTypeCode: { Word value = VM_Magic.getWordAtOffset(stack, vOffset - BYTES_IN_ADDRESS); vOffset -= BYTES_IN_STACKSLOT; state.add(new OSR_VariableElement(kind, i, WORD, value)); break; } default: if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } // switch } // for loop }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/OSR_BaselineExecStateExtractor.java/clean/rvm/src/vm/arch/intel/executionState/OSR_BaselineExecStateExtractor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 13522, 620, 12, 7229, 8526, 2110, 16, 4766, 4202, 509, 282, 1384, 16, 4766, 4202, 1160, 8526, 1953, 16, 4766, 4202, 8251, 67, 16635, 20733, 1305, 7743, 1305, 16, 4766, 4202, 8251, 67, 1085, 1076, 12509, 16, 4766, 4202, 509, 282, 3846, 16, 4766, 4202, 5932, 54, 67, 3210, 1119, 919, 13, 288, 565, 509, 963, 273, 1953, 18, 2469, 31, 565, 509, 331, 2335, 273, 1384, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 27245, 288, 1377, 309, 261, 7397, 18, 3448, 1398, 2624, 15201, 13, 288, 3639, 9926, 913, 273, 8251, 67, 19289, 18, 588, 3944, 861, 2335, 12, 3772, 16, 331, 2335, 300, 26214, 67, 706, 67, 15140, 1769, 3639, 8251, 18, 9499, 3067, 2932, 20, 92, 6, 15, 4522, 18, 869, 14866, 12, 90, 2335, 300, 26214, 67, 706, 67, 15140, 13, 9078, 565, 374, 92, 8863, 3639, 8251, 18, 9499, 4913, 292, 82, 12, 1745, 1769, 1377, 289, 5411, 1620, 261, 2352, 63, 77, 5717, 288, 1377, 648, 6988, 15460, 30, 3639, 331, 2335, 3947, 26214, 67, 706, 67, 21971, 55, 1502, 56, 31, 3639, 898, 31, 1377, 648, 3411, 15460, 30, 1377, 648, 3506, 15460, 30, 1377, 648, 7925, 15460, 30, 1377, 648, 3703, 15460, 30, 1377, 648, 3094, 15460, 30, 1377, 648, 5450, 15460, 18611, 3639, 509, 460, 273, 8251, 67, 19289, 18, 588, 1702, 861, 2335, 12, 3772, 16, 331, 2335, 300, 26214, 67, 706, 67, 3217, 1769, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 13522, 620, 12, 7229, 8526, 2110, 16, 4766, 4202, 509, 282, 1384, 16, 4766, 4202, 1160, 8526, 1953, 16, 4766, 4202, 8251, 67, 16635, 20733, 1305, 7743, 1305, 16, 4766, 4202, 8251, 67, 1085, 1076, 12509, 16, 4766, 4202, 509, 282, 3846, 16, 4766, 4202, 5932, 54, 67, 3210, 1119, 919, 13, 288, 565, 509, 963, 273, 1953, 18, 2469, 31, 565, 509, 331, 2335, 273, 1384, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 27245, 288, 1377, 309, 261, 7397, 18, 3448, 1398, 2624, 15201, 13, 288, 3639, 9926, 913, 273, 8251, 67, 19289, 18, 588, 3944, 861, 2335, 12, 3772, 16, 331, 2335, 300, 26214, 67, 706, 2 ]
super(uri, identifier, verbosity, null, globalClient, prioClass,
super(uri, identifier, verbosity, null, globalClient, prioClass,
public ClientGet(FCPClient globalClient, FreenetURI uri, boolean dsOnly, boolean ignoreDS, int maxSplitfileRetries, int maxNonSplitfileRetries, long maxOutputLength, short returnType, boolean persistRebootOnly, String identifier, int verbosity, short prioClass, File returnFilename, File returnTempFilename) throws IdentifierCollisionException { super(uri, identifier, verbosity, null, globalClient, prioClass, (persistRebootOnly ? ClientRequest.PERSIST_REBOOT : ClientRequest.PERSIST_FOREVER), null, true); fctx = new FetcherContext(client.defaultFetchContext, FetcherContext.IDENTICAL_MASK, false); fctx.eventProducer.addEventListener(this); fctx.localRequestOnly = dsOnly; fctx.ignoreStore = ignoreDS; fctx.maxNonSplitfileRetries = maxNonSplitfileRetries; fctx.maxSplitfileBlockRetries = maxSplitfileRetries; fctx.maxOutputLength = maxOutputLength; fctx.maxTempLength = maxOutputLength; Bucket ret = null; this.returnType = returnType; if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { this.targetFile = returnFilename; this.tempFile = returnTempFilename; ret = new FileBucket(returnTempFilename, false, false, false, false); } else if(returnType == ClientGetMessage.RETURN_TYPE_NONE) { targetFile = null; tempFile = null; ret = new NullBucket(); } else { targetFile = null; tempFile = null; try { if(persistenceType == PERSIST_FOREVER) ret = client.server.core.persistentTempBucketFactory.makeEncryptedBucket(); else ret = fctx.bucketFactory.makeBucket(-1); } catch (IOException e) { onFailure(new FetchException(FetchException.BUCKET_ERROR), null); getter = null; returnBucket = null; return; } } returnBucket = ret; if(persistenceType != PERSIST_CONNECTION) try { client.register(this, false); } catch (IdentifierCollisionException e) { ret.free(); throw e; } getter = new ClientGetter(this, client.core.requestStarters.chkFetchScheduler, client.core.requestStarters.sskFetchScheduler, uri, fctx, priorityClass, client.lowLevelClient, returnBucket); if(persistenceType != PERSIST_CONNECTION) { FCPMessage msg = persistentTagMessage(); client.queueClientRequestMessage(msg, 0); } }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/6e42043b479e5f7982d0e75125787b1eb06cbfb2/ClientGet.java/clean/src/freenet/node/fcp/ClientGet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 967, 12, 42, 4258, 1227, 2552, 1227, 16, 478, 2842, 278, 3098, 2003, 16, 1250, 3780, 3386, 16, 1250, 2305, 3948, 16, 1875, 202, 474, 943, 5521, 768, 13656, 16, 509, 943, 3989, 5521, 768, 13656, 16, 1525, 943, 1447, 1782, 16, 1875, 202, 6620, 9424, 16, 1250, 3898, 31569, 3386, 16, 514, 2756, 16, 509, 11561, 16, 3025, 14705, 83, 797, 16, 1082, 202, 812, 327, 5359, 16, 1387, 327, 7185, 5359, 13, 1216, 10333, 13535, 1951, 503, 288, 202, 202, 9565, 12, 1650, 16, 2756, 16, 11561, 16, 446, 16, 2552, 1227, 16, 14705, 83, 797, 16, 4697, 202, 12, 19251, 31569, 3386, 692, 2445, 691, 18, 3194, 18732, 67, 862, 30124, 294, 2445, 691, 18, 3194, 18732, 67, 11701, 2204, 3631, 25083, 202, 2011, 16, 638, 1769, 202, 202, 74, 5900, 273, 394, 8065, 264, 1042, 12, 2625, 18, 1886, 5005, 1042, 16, 8065, 264, 1042, 18, 13355, 10109, 67, 11704, 16, 629, 1769, 202, 202, 74, 5900, 18, 2575, 12140, 18, 1289, 7375, 12, 2211, 1769, 202, 202, 74, 5900, 18, 3729, 691, 3386, 273, 3780, 3386, 31, 202, 202, 74, 5900, 18, 6185, 2257, 273, 2305, 3948, 31, 202, 202, 74, 5900, 18, 1896, 3989, 5521, 768, 13656, 273, 943, 3989, 5521, 768, 13656, 31, 202, 202, 74, 5900, 18, 1896, 5521, 768, 1768, 13656, 273, 943, 5521, 768, 13656, 31, 202, 202, 74, 5900, 18, 1896, 1447, 1782, 273, 943, 1447, 1782, 31, 202, 202, 74, 5900, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 967, 12, 42, 4258, 1227, 2552, 1227, 16, 478, 2842, 278, 3098, 2003, 16, 1250, 3780, 3386, 16, 1250, 2305, 3948, 16, 1875, 202, 474, 943, 5521, 768, 13656, 16, 509, 943, 3989, 5521, 768, 13656, 16, 1525, 943, 1447, 1782, 16, 1875, 202, 6620, 9424, 16, 1250, 3898, 31569, 3386, 16, 514, 2756, 16, 509, 11561, 16, 3025, 14705, 83, 797, 16, 1082, 202, 812, 327, 5359, 16, 1387, 327, 7185, 5359, 13, 1216, 10333, 13535, 1951, 503, 288, 202, 202, 9565, 12, 1650, 16, 2756, 16, 11561, 16, 446, 16, 2552, 1227, 16, 14705, 83, 797, 16, 4697, 202, 12, 19251, 31569, 3386, 692, 2445, 691, 18, 3194, 18732, 67, 862, 30124, 294, 2 ]
public boolean isEmpty() { return (_head.succ == _tail); }
public boolean isEmpty() { return (_head.succ == _tail); }
public boolean isEmpty() { return (_head.succ == _tail); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/fa2aa8dc78d037bc99ec51d48049f6b3df0aecfb/ModelList.java/buggy/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/ModelList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2709, 1435, 202, 202, 95, 1082, 202, 2463, 261, 67, 1978, 18, 26560, 952, 422, 389, 13101, 1769, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2709, 1435, 202, 202, 95, 1082, 202, 2463, 261, 67, 1978, 18, 26560, 952, 422, 389, 13101, 1769, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.TransactTime getTransactTime() throws FieldNotFound { org.quickfix.field.TransactTime value = new org.quickfix.field.TransactTime();
public quickfix.field.TransactTime getTransactTime() throws FieldNotFound { quickfix.field.TransactTime value = new quickfix.field.TransactTime();
public org.quickfix.field.TransactTime getTransactTime() throws FieldNotFound { org.quickfix.field.TransactTime value = new org.quickfix.field.TransactTime(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 336, 1429, 621, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 336, 1429, 621, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
org.exist.xquery.parser.XQueryAST tmp180_AST = null; tmp180_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp180_AST);
org.exist.xquery.parser.XQueryAST tmp100_AST = null; tmp100_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp100_AST);
public final void occurrenceIndicator() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST occurrenceIndicator_AST = null; switch ( LA(1)) { case QUESTION: { org.exist.xquery.parser.XQueryAST tmp178_AST = null; tmp178_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp178_AST); match(QUESTION); occurrenceIndicator_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case STAR: { org.exist.xquery.parser.XQueryAST tmp179_AST = null; tmp179_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp179_AST); match(STAR); occurrenceIndicator_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case PLUS: { org.exist.xquery.parser.XQueryAST tmp180_AST = null; tmp180_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp180_AST); match(PLUS); occurrenceIndicator_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = occurrenceIndicator_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 13083, 13140, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13083, 13140, 67, 9053, 273, 446, 31, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 23328, 882, 1146, 30, 202, 202, 95, 1082, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 4033, 28, 67, 9053, 273, 446, 31, 1082, 202, 5645, 4033, 28, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 1082, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 1853, 4033, 28, 67, 9053, 1769, 1082, 202, 1916, 12, 4740, 1146, 1769, 1082, 202, 31177, 13140, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 2972, 9053, 18, 3085, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 21807, 30, 202, 202, 95, 1082, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 28814, 67, 9053, 273, 446, 31, 1082, 202, 5645, 28814, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 1082, 202, 689, 1733, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 13083, 13140, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13083, 13140, 67, 9053, 273, 446, 31, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 23328, 882, 1146, 30, 202, 202, 95, 1082, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 4033, 28, 67, 9053, 273, 446, 31, 1082, 202, 5645, 4033, 28, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 2 ]
if ((active0 & 0x200000L) != 0L) return jjStartNfaWithStates_1(3, 21, 11);
if ((active0 & 0x400000L) != 0L) return jjStartNfaWithStates_1(3, 22, 11);
private final int jjMoveStringLiteralDfa3_1(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_1(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_1(2, active0); return 3; } switch(curChar) { case 101: if ((active0 & 0x200000L) != 0L) return jjStartNfaWithStates_1(3, 21, 11); break; case 115: return jjMoveStringLiteralDfa4_1(active0, 0x400000L); default : break; } return jjStartNfa_1(2, active0);}
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/b827d0bf89e728dc8324fc63c2ad3662c9d19cd3/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 23, 67, 21, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 3719, 422, 374, 48, 13, 1377, 327, 10684, 1685, 50, 507, 67, 21, 12, 21, 16, 1592, 20, 1769, 565, 775, 288, 662, 2156, 273, 810, 67, 3256, 18, 896, 2156, 5621, 289, 282, 1044, 12, 6290, 18, 1594, 18, 14106, 425, 13, 288, 1377, 10684, 4947, 28565, 40, 507, 67, 21, 12, 22, 16, 2695, 20, 1769, 1377, 327, 890, 31, 282, 289, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 13822, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 22, 11706, 48, 13, 480, 374, 48, 13, 5411, 327, 10684, 1685, 50, 507, 1190, 7629, 67, 21, 12, 23, 16, 9035, 16, 4648, 1769, 540, 898, 31, 1377, 648, 22821, 30, 540, 327, 10684, 7607, 28565, 40, 507, 24, 67, 21, 12, 3535, 20, 16, 374, 92, 24, 11706, 48, 1769, 1377, 805, 294, 540, 898, 31, 282, 289, 282, 327, 10684, 1685, 50, 507, 67, 21, 12, 22, 16, 2695, 20, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 261, 12443, 3535, 20, 12058, 1592, 20, 3719, 422, 374, 48, 13, 1377, 327, 10684, 1685, 50, 507, 67, 21, 12, 21, 16, 1592, 20, 1769, 565, 775, 288, 662, 2156, 273, 810, 67, 3256, 18, 896, 2156, 5621, 289, 282, 1044, 12, 6290, 18, 1594, 18, 14106, 425, 13, 288, 1377, 10684, 4947, 28565, 40, 507, 67, 21, 12, 22, 16, 2695, 20, 1769, 1377, 327, 890, 31, 282, 289, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 13822, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 22, 11706, 48, 13, 480, 374, 2 ]
currentWorkspace.deleteWorkflow(workflowName);
currentWorkspace.removeWorkflow(workflowName);
public void importURL(final URL url) { Workspace space; if(url==null) return; if (!(currentWorkspace instanceof Workspace)) return; space = (Workspace)currentWorkspace; StatusDisplay status = (StatusDisplay)WorkflowDesigner.INSTANCE.statusBar.getItemByName("Status"); String f = url.getFile(); if(!"file".equals(url.getProtocol()) && f.indexOf('?')>-1) f = f.substring(0, f.indexOf('?')); String fileName = f.substring(f.lastIndexOf('/')+1, f.length()); try { final File outputFile = new File(space.getLocation().getParentFile(), fileName); if(outputFile.isDirectory()) throw new Exception("Output file is a directory!"); //don't allow importing of files within the workspace! if(!"file".equals(url.getProtocol()) || !new File(url.getFile()).getParentFile().getCanonicalPath().equals(space.getLocation().getParentFile().getCanonicalPath())) { status.setProgressStatus(ResourceManager.getString("import.progress", new Object[]{fileName})); status.setIndeterminate(true); Worker.post(new Task() { public Object run() throws Exception { FileOutputStream out = new FileOutputStream(outputFile); InputStream in = url.openStream(); byte[] buff = new byte[4096]; int nch; while((nch = in.read(buff, 0, buff.length)) != -1) { out.write(buff, 0, nch); } out.flush(); out.close(); return null; } }); String workflowName = fileName.substring(0, fileName.lastIndexOf('.')); space.importDescriptor(workflowName, url.openStream()); //this ensures that the descriptor is loaded into the cache try { currentWorkspace.getWorkflow(workflowName); WorkflowDesigner.INSTANCE.navigator().setWorkspace(currentWorkspace); } catch(FactoryException e) { JOptionPane.showMessageDialog(WorkflowDesigner.INSTANCE, ResourceManager.getString("import.factory.error.long", new Object[]{fileName, e.getMessage()}), ResourceManager.getString("import.factory.error"), JOptionPane.ERROR_MESSAGE); currentWorkspace.deleteWorkflow(workflowName); } } } catch(FactoryException ex) { } catch(Exception t) { t.printStackTrace(); } finally { status.setIndeterminate(false); status.setStatus(""); } }
7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/e160e8d061d194e19249b1d32f15b45058e5047e/ImportWorkflow.java/buggy/src/designer/com/opensymphony/workflow/designer/actions/ImportWorkflow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1930, 1785, 12, 6385, 1976, 880, 13, 225, 288, 565, 14396, 3476, 31, 565, 309, 12, 718, 631, 2011, 13, 1377, 202, 2463, 31, 565, 202, 430, 16051, 12, 2972, 8241, 1276, 14396, 3719, 565, 202, 225, 202, 2463, 31, 565, 202, 2981, 273, 261, 8241, 13, 2972, 8241, 31, 377, 202, 565, 2685, 4236, 1267, 273, 261, 1482, 4236, 13, 8484, 15478, 264, 18, 13341, 18, 2327, 5190, 18, 588, 1180, 5911, 2932, 1482, 8863, 565, 514, 284, 273, 880, 18, 29925, 5621, 565, 309, 12, 4442, 768, 9654, 14963, 12, 718, 18, 588, 5752, 10756, 597, 284, 18, 31806, 2668, 4899, 13, 34, 17, 21, 13, 284, 273, 284, 18, 28023, 12, 20, 16, 284, 18, 31806, 2668, 4899, 10019, 565, 514, 3968, 273, 284, 18, 28023, 12, 74, 18, 2722, 31985, 2668, 2473, 27921, 21, 16, 284, 18, 2469, 10663, 565, 775, 565, 288, 1377, 727, 1387, 15047, 273, 394, 1387, 12, 2981, 18, 588, 2735, 7675, 588, 3054, 812, 9334, 3968, 1769, 1377, 309, 12, 2844, 812, 18, 291, 2853, 10756, 604, 394, 1185, 2932, 1447, 585, 353, 279, 1867, 4442, 1769, 1377, 368, 19752, 1404, 1699, 25077, 434, 1390, 3470, 326, 6003, 5, 1377, 309, 12, 4442, 768, 9654, 14963, 12, 718, 18, 588, 5752, 10756, 747, 3639, 401, 2704, 1387, 12, 718, 18, 29925, 1435, 2934, 588, 3054, 812, 7675, 588, 15512, 743, 7675, 14963, 12, 2981, 18, 588, 2735, 7675, 588, 3054, 812, 7675, 588, 15512, 743, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1930, 1785, 12, 6385, 1976, 880, 13, 225, 288, 565, 14396, 3476, 31, 565, 309, 12, 718, 631, 2011, 13, 1377, 202, 2463, 31, 565, 202, 430, 16051, 12, 2972, 8241, 1276, 14396, 3719, 565, 202, 225, 202, 2463, 31, 565, 202, 2981, 273, 261, 8241, 13, 2972, 8241, 31, 377, 202, 565, 2685, 4236, 1267, 273, 261, 1482, 4236, 13, 8484, 15478, 264, 18, 13341, 18, 2327, 5190, 18, 588, 1180, 5911, 2932, 1482, 8863, 565, 514, 284, 273, 880, 18, 29925, 5621, 565, 309, 12, 4442, 768, 9654, 14963, 12, 718, 18, 588, 5752, 10756, 597, 284, 18, 31806, 2668, 4899, 13, 34, 17, 21, 13, 284, 273, 284, 18, 28023, 12, 20, 16, 2 ]
if (path.exists())
if (path.exists()) {
protected void handleLocationDirectoryButtonPressed() { DirectoryDialog dialog = new DirectoryDialog(directoryPathField .getShell()); dialog .setMessage(DataTransferMessages.WizardProjectsImportPage_SelectDialogTitle); String dirName = directoryPathField.getText().trim(); if (dirName.length() == 0) dirName = previouslyBrowsedDirectory; if (dirName.length() == 0) dialog.setFilterPath(IDEWorkbenchPlugin.getPluginWorkspace() .getRoot().getLocation().toOSString()); else { File path = new File(dirName); if (path.exists()) dialog.setFilterPath(new Path(dirName).toOSString()); } String selectedDirectory = dialog.open(); if (selectedDirectory != null) { previouslyBrowsedDirectory = selectedDirectory; directoryPathField.setText(previouslyBrowsedDirectory); updateProjectsList(selectedDirectory); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardProjectsImportPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 2735, 2853, 3616, 24624, 1435, 288, 202, 202, 2853, 6353, 6176, 273, 394, 8930, 6353, 12, 5149, 743, 974, 9506, 202, 18, 588, 13220, 10663, 202, 202, 12730, 9506, 202, 18, 542, 1079, 12, 751, 5912, 5058, 18, 27130, 15298, 5010, 1964, 67, 3391, 6353, 4247, 1769, 202, 202, 780, 20878, 273, 1867, 743, 974, 18, 588, 1528, 7675, 5290, 5621, 202, 202, 430, 261, 1214, 461, 18, 2469, 1435, 422, 374, 13, 1082, 202, 1214, 461, 273, 7243, 38, 492, 730, 2853, 31, 202, 202, 430, 261, 1214, 461, 18, 2469, 1435, 422, 374, 13, 1082, 202, 12730, 18, 542, 1586, 743, 12, 10385, 2421, 22144, 3773, 18, 588, 3773, 8241, 1435, 6862, 202, 18, 588, 2375, 7675, 588, 2735, 7675, 869, 4618, 780, 10663, 202, 202, 12107, 288, 1082, 202, 812, 589, 273, 394, 1387, 12, 1214, 461, 1769, 1082, 202, 430, 261, 803, 18, 1808, 10756, 9506, 202, 12730, 18, 542, 1586, 743, 12, 2704, 2666, 12, 1214, 461, 2934, 869, 4618, 780, 10663, 202, 202, 97, 202, 202, 780, 3170, 2853, 273, 6176, 18, 3190, 5621, 202, 202, 430, 261, 8109, 2853, 480, 446, 13, 288, 1082, 202, 11515, 715, 38, 492, 730, 2853, 273, 3170, 2853, 31, 1082, 202, 5149, 743, 974, 18, 542, 1528, 12, 11515, 715, 38, 492, 730, 2853, 1769, 1082, 202, 2725, 15298, 682, 12, 8109, 2853, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 2735, 2853, 3616, 24624, 1435, 288, 202, 202, 2853, 6353, 6176, 273, 394, 8930, 6353, 12, 5149, 743, 974, 9506, 202, 18, 588, 13220, 10663, 202, 202, 12730, 9506, 202, 18, 542, 1079, 12, 751, 5912, 5058, 18, 27130, 15298, 5010, 1964, 67, 3391, 6353, 4247, 1769, 202, 202, 780, 20878, 273, 1867, 743, 974, 18, 588, 1528, 7675, 5290, 5621, 202, 202, 430, 261, 1214, 461, 18, 2469, 1435, 422, 374, 13, 1082, 202, 1214, 461, 273, 7243, 38, 492, 730, 2853, 31, 202, 202, 430, 261, 1214, 461, 18, 2469, 1435, 422, 374, 13, 1082, 202, 12730, 18, 542, 1586, 743, 12, 10385, 2421, 22144, 3773, 18, 588, 3773, 8241, 1435, 6862, 2 ]
private static void shallowMergeById( List dominant, List recessive, String recessiveSourceLevel ) { Map dominantById = mapById( dominant ); for ( Iterator it = recessive.iterator(); it.hasNext(); ) { IdentifiableBase identifiable = (IdentifiableBase) it.next(); if( !dominantById.containsKey(identifiable.getId())) { identifiable.setSourceLevel( recessiveSourceLevel ); dominant.add( identifiable ); } } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/b813c3d430a3aa5f2fa6cf7181ecf03faa6267dd/SettingsUtils.java/buggy/maven-settings/src/main/java/org/apache/maven/settings/SettingsUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 18501, 6786, 5132, 12, 987, 4092, 20030, 16, 987, 283, 614, 688, 16, 514, 283, 614, 688, 1830, 2355, 262, 565, 288, 3639, 1635, 4092, 20030, 5132, 273, 852, 5132, 12, 4092, 20030, 11272, 7734, 364, 261, 4498, 518, 273, 283, 614, 688, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 3639, 288, 5411, 13128, 8424, 2171, 3390, 8424, 273, 261, 6106, 8424, 2171, 13, 518, 18, 4285, 5621, 13491, 309, 12, 401, 9859, 20030, 5132, 18, 12298, 653, 12, 6392, 8424, 18, 26321, 1435, 3719, 5411, 288, 7734, 3390, 8424, 18, 542, 1830, 2355, 12, 283, 614, 688, 1830, 2355, 11272, 27573, 4092, 20030, 18, 1289, 12, 3390, 8424, 11272, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 18501, 6786, 5132, 12, 987, 4092, 20030, 16, 987, 283, 614, 688, 16, 514, 283, 614, 688, 1830, 2355, 262, 565, 288, 3639, 1635, 4092, 20030, 5132, 273, 852, 5132, 12, 4092, 20030, 11272, 7734, 364, 261, 4498, 518, 273, 283, 614, 688, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 3639, 288, 5411, 13128, 8424, 2171, 3390, 8424, 273, 261, 6106, 8424, 2171, 13, 518, 18, 4285, 5621, 13491, 309, 12, 401, 9859, 20030, 5132, 18, 12298, 653, 12, 6392, 8424, 18, 26321, 1435, 3719, 5411, 288, 7734, 3390, 8424, 18, 542, 1830, 2355, 12, 283, 614, 688, 1830, 2355, 11272, 27573, 4092, 20030, 18, 1289, 12, 3390, 8424, 11272, 5411, 289, 3639, 2 ]
top.append(WU.postpad(getBbs(i).getIDS()+wca.las,4));
top.append(WU.postpad(getBbs(i).getIDS(),4));
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("******************************************************************************\n"); sb.append("WCET info for:"+jc.getClassName() + "." + methodbcel.getName() + methodbcel.getSignature()+"\n\n"); // directed graph sb.append("Directed graph of basic blocks(row->column):\n"); StringBuffer top = new StringBuffer(); if(wca.las.length()>0) top.append(" "); top.append(WU.prepad(""+wca.las,4)); for (int i = 0; i < dg.length; i++) { if(i<dg.length-1) top.append(WU.postpad(getBbs(i).getIDS()+wca.las,4)); else top.append(WU.postpad(getBbs(i).getIDS()+wca.lae,4)); } top.append("\n"); for (int i = 0; i < top.length() - 3+wca.las.length(); i++) { sb.append("="); } sb.append("\n" + top.toString()); for (int i = 0; i < dg.length; i++) { sb.append(WU.postpad(getBbs(i).getIDS(),3)); sb.append(wca.las); for (int j = 0; j < dg.length; j++) { if (dg[i][j] == 0) sb.append(" ."); // a space does not clutter it as much as a zero else sb.append(" " + dg[i][j]); if(j<dg.length-1) sb.append(WU.postpad(""+wca.las,2)); else sb.append(WU.postpad(""+wca.lae,2)); } sb.append("\n"); } sb.append(WU.repeat("=",top.length() - 3+wca.las.length())); sb.append("\n"); // bytecode listing sb.append("\nTable of basic blocks' and instructions\n"); sb.append("=========================================================================\n"); sb.append("Block Addr. Bytecode Cycles Cache miss Misc. info\n"); sb.append(" [opcode] invoke return\n"); sb.append("-------------------------------------------------------------------------\n"); for (Iterator iter = bbs.keySet().iterator(); iter.hasNext();) { Integer keyInt = (Integer) iter.next(); WCETBasicBlock wcbb = (WCETBasicBlock) bbs.get(keyInt); sb.append(wcbb.toCodeString()); } sb.append("=========================================================================\n"); sb.append("Info: n="+n+" b="+WCETInstruction.calculateB(n)+" a="+WCETInstruction.a+" r="+WCETInstruction.r+" w="+WCETInstruction.w+"\n"); sb.append("\n"); // if(wca.ls){// sb.append(toLS(true, true, ""));// WCETBasicBlock.linkbb(WCETBasicBlock.bba[0]);// WCETBasicBlock.bbe();// sb.append("\n"+toLinkBBS());// } if(wca.ls) sb.append(toLS(false,true, null)); if(wca.dot) sb.append(toDot(false)); return sb.toString(); }
46436 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46436/57bbd193f151c8cb52ac17ae7c2a8411e19eb68c/WCETAnalyser.java/buggy/java/tools/src/com/jopdesign/wcet/WCETAnalyser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 6674, 2393, 273, 394, 6674, 5621, 540, 2393, 18, 6923, 2932, 11125, 1644, 11345, 64, 82, 8863, 3639, 2393, 18, 6923, 2932, 59, 1441, 56, 1123, 364, 2773, 15, 78, 71, 18, 588, 3834, 1435, 397, 4585, 397, 707, 70, 2183, 18, 17994, 1435, 3639, 397, 707, 70, 2183, 18, 588, 5374, 1435, 9078, 64, 82, 64, 82, 8863, 565, 368, 20830, 2667, 565, 2393, 18, 6923, 2932, 5368, 329, 2667, 434, 5337, 4398, 12, 492, 2122, 2827, 4672, 64, 82, 8863, 565, 6674, 1760, 273, 394, 6674, 5621, 565, 309, 12, 91, 5353, 18, 9521, 18, 2469, 1435, 34, 20, 13, 1377, 1760, 18, 6923, 2932, 225, 315, 1769, 3639, 1760, 18, 6923, 12, 59, 57, 18, 1484, 6982, 2932, 6, 15, 91, 5353, 18, 9521, 16, 24, 10019, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 14938, 18, 2469, 31, 277, 27245, 288, 1377, 309, 12, 77, 32, 72, 75, 18, 2469, 17, 21, 13, 3639, 1760, 18, 6923, 12, 59, 57, 18, 2767, 6982, 12, 588, 38, 2038, 12, 77, 2934, 588, 19516, 9334, 24, 10019, 1377, 469, 3639, 1760, 18, 6923, 12, 59, 57, 18, 2767, 6982, 12, 588, 38, 2038, 12, 77, 2934, 588, 19516, 1435, 15, 91, 5353, 18, 80, 8906, 16, 24, 10019, 565, 289, 565, 1760, 18, 6923, 31458, 82, 8863, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1760, 18, 2469, 1435, 300, 890, 15, 91, 5353, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 6674, 2393, 273, 394, 6674, 5621, 540, 2393, 18, 6923, 2932, 11125, 1644, 11345, 64, 82, 8863, 3639, 2393, 18, 6923, 2932, 59, 1441, 56, 1123, 364, 2773, 15, 78, 71, 18, 588, 3834, 1435, 397, 4585, 397, 707, 70, 2183, 18, 17994, 1435, 3639, 397, 707, 70, 2183, 18, 588, 5374, 1435, 9078, 64, 82, 64, 82, 8863, 565, 368, 20830, 2667, 565, 2393, 18, 6923, 2932, 5368, 329, 2667, 434, 5337, 4398, 12, 492, 2122, 2827, 4672, 64, 82, 8863, 565, 6674, 1760, 273, 394, 6674, 5621, 565, 309, 12, 91, 5353, 18, 9521, 18, 2469, 1435, 34, 20, 13, 1377, 1760, 18, 6923, 2932, 225, 315, 1769, 3639, 1760, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/c6a9c5919552b91fb0c4af00afd67a30f78acfc4/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 2 ]
return ruby.getNil();
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iterator(); while (iter.hasNext()) { Method method = (Method)iter.next(); if (method.getParameterTypes().length != argsLength) { iter.remove(); } } // remove mehods with wrong parameter types. iter = executeMethods.iterator(); while (iter.hasNext()) { Method method = (Method)iter.next(); for (int i = 0; i < method.getParameterTypes().length; i++) { if (!JavaUtil.isCompatible(args[i], method.getParameterTypes()[i])) { iter.remove(); break; } } } if (executeMethods.isEmpty()) { throw new RubyArgumentException(ruby, "wrong arguments."); } // take the first method. Method method = (Method)executeMethods.getFirst(); Object[] newArgs = new Object[argsLength]; for (int i = 0; i < argsLength; i++) { newArgs[i] = JavaUtil.convertRubyToJava(ruby, args[i], method.getParameterTypes()[i]); } try { Object obj = !singleton ? ((RubyJavaObject)recv).getValue() : null; Object result = method.invoke(obj, newArgs); return JavaUtil.convertJavaToRuby(ruby, result, method.getReturnType()); } catch (IllegalAccessException iaExcptn) { } catch (IllegalArgumentException iaExcptn) { } catch (InvocationTargetException itExcptn) { } return ruby.getNil(); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/0a7181933af700ea8025a4197f3a5ebcc08333c3/JavaMethod.java/buggy/org/jruby/javasupport/JavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1836, 12, 54, 10340, 921, 10665, 16, 19817, 921, 8526, 833, 16, 19817, 22155, 13, 288, 3639, 10688, 1836, 4712, 273, 394, 10688, 12, 12726, 18, 345, 682, 12, 5163, 10019, 7734, 509, 833, 1782, 273, 833, 480, 446, 692, 833, 18, 2469, 294, 374, 31, 7734, 368, 1206, 1791, 76, 369, 87, 598, 7194, 1569, 1056, 18, 3639, 4498, 1400, 273, 1836, 4712, 18, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 2985, 707, 273, 261, 1305, 13, 2165, 18, 4285, 5621, 5411, 309, 261, 2039, 18, 588, 1662, 2016, 7675, 2469, 480, 833, 1782, 13, 288, 7734, 1400, 18, 4479, 5621, 5411, 289, 3639, 289, 7734, 368, 1206, 1791, 76, 369, 87, 598, 7194, 1569, 1953, 18, 3639, 1400, 273, 1836, 4712, 18, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 2985, 707, 273, 261, 1305, 13, 2165, 18, 4285, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 707, 18, 588, 1662, 2016, 7675, 2469, 31, 277, 27245, 288, 7734, 309, 16051, 5852, 1304, 18, 291, 14599, 12, 1968, 63, 77, 6487, 707, 18, 588, 1662, 2016, 1435, 63, 77, 22643, 288, 10792, 1400, 18, 4479, 5621, 10792, 898, 31, 7734, 289, 5411, 289, 3639, 289, 7734, 309, 261, 8837, 4712, 18, 291, 1921, 10756, 288, 5411, 604, 394, 19817, 1878, 12, 27768, 16, 315, 21530, 1775, 1199, 1769, 3639, 289, 7734, 368, 4862, 326, 1122, 707, 18, 3639, 2985, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1836, 12, 54, 10340, 921, 10665, 16, 19817, 921, 8526, 833, 16, 19817, 22155, 13, 288, 3639, 10688, 1836, 4712, 273, 394, 10688, 12, 12726, 18, 345, 682, 12, 5163, 10019, 7734, 509, 833, 1782, 273, 833, 480, 446, 692, 833, 18, 2469, 294, 374, 31, 7734, 368, 1206, 1791, 76, 369, 87, 598, 7194, 1569, 1056, 18, 3639, 4498, 1400, 273, 1836, 4712, 18, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 2985, 707, 273, 261, 1305, 13, 2165, 18, 4285, 5621, 5411, 309, 261, 2039, 18, 588, 1662, 2016, 7675, 2469, 480, 833, 1782, 13, 288, 7734, 1400, 18, 4479, 5621, 5411, 289, 3639, 289, 7734, 368, 1206, 1791, 2 ]
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break;
public void read(long offset, ByteBuffer dst) throws IOException { BufferType t = new BufferType(offset, dst);
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break; case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.start, buf ); t.copyFrom ( buf, t.ofsR, t.length ); } break; case BufferType.CROSSED: if ( t.ofsR != 0 ) { mylog ( "read[HEAD] " + t.toBlockString ( t.ofsR, alignment - t.ofsR ) ); // ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.start, buf ); t.copyFrom ( buf, t.ofsR, alignment - t.ofsR ); } // if ( t.nB != 0 ) { mylog ( "read[BODY] " + t.toBlockString ( t.start + alignment, t.lB ) ); // t.limit ( t.lB ); parentApi.read ( t.start + alignment, dst ); t.restore(); } // if ( t.lstR != 0 ) { mylog ( "read[TAIL] " + t.toBlockString ( t.end - alignment, t.lstR ) ); // ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.end - alignment, buf ); t.copyFrom ( buf, 0, t.lstR ); } break; case BufferType.ALIGNED: mylog ( "read[ALGN] " + t.toBlockString ( t.offset, t.length ) ); // parentApi.read ( offset, dst ); break; default: throw new IllegalArgumentException ( "no type: shouldn't happen" ); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 261, 1525, 1384, 16, 7400, 3046, 262, 202, 15069, 1860, 288, 202, 1892, 559, 268, 273, 394, 3525, 559, 261, 1384, 16, 3046, 11272, 1082, 202, 4811, 1330, 261, 1548, 82, 6, 397, 268, 11272, 202, 202, 9610, 261, 268, 18, 723, 262, 288, 202, 3593, 3525, 559, 18, 13625, 30, 202, 565, 898, 31, 202, 3593, 3525, 559, 18, 6067, 6964, 2056, 30, 202, 565, 288, 202, 202, 4811, 1330, 261, 315, 896, 63, 6067, 65, 315, 397, 268, 18, 869, 1768, 780, 261, 268, 18, 792, 87, 54, 16, 268, 18, 2469, 262, 11272, 202, 202, 759, 202, 202, 12242, 1681, 273, 7400, 18, 16247, 261, 8710, 11272, 202, 202, 2938, 3064, 18, 896, 261, 268, 18, 1937, 16, 1681, 11272, 202, 202, 88, 18, 3530, 1265, 261, 1681, 16, 268, 18, 792, 87, 54, 16, 268, 18, 2469, 11272, 202, 565, 289, 202, 565, 898, 31, 202, 3593, 3525, 559, 18, 39, 1457, 22276, 30, 202, 565, 309, 261, 268, 18, 792, 87, 54, 480, 374, 262, 288, 202, 202, 4811, 1330, 261, 315, 896, 63, 12458, 65, 315, 397, 268, 18, 869, 1768, 780, 261, 268, 18, 792, 87, 54, 16, 8710, 300, 268, 18, 792, 87, 54, 262, 11272, 202, 202, 759, 202, 202, 12242, 1681, 273, 7400, 18, 16247, 261, 8710, 11272, 202, 202, 2938, 3064, 18, 896, 261, 268, 18, 1937, 16, 1681, 11272, 202, 202, 88, 18, 3530, 1265, 261, 1681, 16, 268, 18, 792, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 261, 1525, 1384, 16, 7400, 3046, 262, 202, 15069, 1860, 288, 202, 1892, 559, 268, 273, 394, 3525, 559, 261, 1384, 16, 3046, 11272, 1082, 202, 4811, 1330, 261, 1548, 82, 6, 397, 268, 11272, 202, 202, 9610, 261, 268, 18, 723, 262, 288, 202, 3593, 3525, 559, 18, 13625, 30, 202, 565, 898, 31, 202, 3593, 3525, 559, 18, 6067, 6964, 2056, 30, 202, 565, 288, 202, 202, 4811, 1330, 261, 315, 896, 63, 6067, 65, 315, 397, 268, 18, 869, 1768, 780, 261, 268, 18, 792, 87, 54, 16, 268, 18, 2469, 262, 11272, 202, 202, 759, 202, 202, 12242, 1681, 273, 7400, 18, 16247, 261, 8710, 11272, 202, 202, 2938, 3064, 18, 2 ]
rs.setLexFileIo(true);
/*rs.setLexFileIo(true);
public Node compileFile(String f, RubyObject file, int start) { rs.setLexFileIo(true); rs.setLexInput(file); rs.setLexP(0); rs.setLexPEnd(0); ruby.setSourceLine(start - 1); return yycompile(f, start); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 4074, 812, 12, 780, 284, 16, 19817, 921, 585, 16, 509, 787, 13, 288, 3639, 1748, 5453, 18, 542, 14756, 812, 15963, 12, 3767, 1769, 3639, 3597, 18, 542, 14756, 1210, 12, 768, 1769, 3639, 3597, 18, 542, 14756, 52, 12, 20, 1769, 3639, 3597, 18, 542, 14756, 52, 1638, 12, 20, 1769, 3639, 22155, 18, 542, 1830, 1670, 12, 1937, 300, 404, 1769, 3639, 327, 9016, 11100, 12, 74, 16, 787, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 4074, 812, 12, 780, 284, 16, 19817, 921, 585, 16, 509, 787, 13, 288, 3639, 1748, 5453, 18, 542, 14756, 812, 15963, 12, 3767, 1769, 3639, 3597, 18, 542, 14756, 1210, 12, 768, 1769, 3639, 3597, 18, 542, 14756, 52, 12, 20, 1769, 3639, 3597, 18, 542, 14756, 52, 1638, 12, 20, 1769, 3639, 22155, 18, 542, 1830, 1670, 12, 1937, 300, 404, 1769, 3639, 327, 9016, 11100, 12, 74, 16, 787, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
notifyListeners( SWT.KeyDown, event );
private void canvasEvent( Event event ) { switch ( event.type ) { case SWT.FocusIn : { cnvMarker.redraw( ); break; } case SWT.FocusOut : { cnvMarker.redraw( ); break; } case SWT.KeyDown : { // At this point the widget may have been disposed. // If so, do not continue. if ( isDisposed( ) ) break; if ( event.keyCode == SWT.ARROW_DOWN ) { event.doit = true; toggleDropDown( ); } notifyListeners( SWT.KeyDown, event ); break; } case SWT.Traverse : { switch ( event.detail ) { case SWT.TRAVERSE_RETURN : case SWT.TRAVERSE_TAB_NEXT : case SWT.TRAVERSE_TAB_PREVIOUS : case SWT.TRAVERSE_ARROW_PREVIOUS : case SWT.TRAVERSE_ARROW_NEXT : event.doit = true; cnvMarker.redraw( ); } break; } case SWT.Paint : paintMarker( event.gc, getMarker( ), LocationImpl.create( 10, 10 ) ); break; } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ef2a0b6feee211ea43a51b0ad6d6ba6d03100953/MarkerEditorComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/MarkerEditorComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5953, 1133, 12, 2587, 871, 262, 202, 95, 202, 202, 9610, 261, 871, 18, 723, 262, 202, 202, 95, 1082, 202, 3593, 348, 8588, 18, 9233, 382, 294, 1082, 202, 95, 9506, 202, 10305, 90, 7078, 18, 1118, 1899, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 348, 8588, 18, 9233, 1182, 294, 1082, 202, 95, 9506, 202, 10305, 90, 7078, 18, 1118, 1899, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 348, 8588, 18, 653, 4164, 294, 1082, 202, 95, 9506, 202, 759, 2380, 333, 1634, 326, 3604, 2026, 1240, 2118, 1015, 7423, 18, 9506, 202, 759, 971, 1427, 16, 741, 486, 1324, 18, 9506, 202, 430, 261, 353, 1669, 7423, 12, 262, 262, 6862, 202, 8820, 31, 9506, 202, 430, 261, 871, 18, 856, 1085, 422, 348, 8588, 18, 985, 11226, 67, 12711, 262, 9506, 202, 95, 6862, 202, 2575, 18, 2896, 305, 273, 638, 31, 6862, 202, 14401, 7544, 4164, 12, 11272, 6862, 6862, 202, 97, 9506, 202, 12336, 5583, 12, 348, 8588, 18, 653, 4164, 16, 871, 11272, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 348, 8588, 18, 29654, 294, 1082, 202, 95, 9506, 202, 9610, 261, 871, 18, 8992, 262, 9506, 202, 95, 6862, 202, 3593, 348, 8588, 18, 20060, 28489, 67, 14033, 294, 6862, 202, 3593, 348, 8588, 18, 20060, 28489, 67, 28899, 67, 25539, 294, 6862, 202, 3593, 348, 8588, 18, 20060, 28489, 67, 28899, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5953, 1133, 12, 2587, 871, 262, 202, 95, 202, 202, 9610, 261, 871, 18, 723, 262, 202, 202, 95, 1082, 202, 3593, 348, 8588, 18, 9233, 382, 294, 1082, 202, 95, 9506, 202, 10305, 90, 7078, 18, 1118, 1899, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 348, 8588, 18, 9233, 1182, 294, 1082, 202, 95, 9506, 202, 10305, 90, 7078, 18, 1118, 1899, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 348, 8588, 18, 653, 4164, 294, 1082, 202, 95, 9506, 202, 759, 2380, 333, 1634, 326, 3604, 2026, 1240, 2118, 1015, 7423, 18, 9506, 202, 759, 971, 1427, 16, 741, 486, 1324, 18, 9506, 202, 2 ]
ArrayList new4()
ArrayList new4() /* reduce AAstrbracestringentry1StringEntry */
ArrayList new4() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList6 = (ArrayList) pop(); ArrayList nodeArrayList5 = (ArrayList) pop(); ArrayList nodeArrayList4 = (ArrayList) pop(); ArrayList nodeArrayList3 = (ArrayList) pop(); ArrayList nodeArrayList2 = (ArrayList) pop(); ArrayList nodeArrayList1 = (ArrayList) pop(); PStringEntry pstringentryNode1; { TIdentifier tidentifierNode2; TStringLiteral tstringliteralNode3; tidentifierNode2 = (TIdentifier)nodeArrayList3.get(0); tstringliteralNode3 = (TStringLiteral)nodeArrayList5.get(0); pstringentryNode1 = new AStrbraceStringEntry(tidentifierNode2, tstringliteralNode3); } nodeList.add(pstringentryNode1); return nodeList; }
48893 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48893/9ba080b0c901d335db2cb543a5bc7d76ff474439/Parser.java/buggy/source/net/sourceforge/texlipse/bibparser/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2407, 394, 24, 1435, 1748, 5459, 27343, 701, 15397, 764, 371, 4099, 21, 780, 1622, 1195, 565, 288, 3639, 2407, 10198, 273, 394, 2407, 5621, 3639, 2407, 756, 19558, 26, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 25, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 24, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 23, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 22, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 21, 273, 261, 19558, 13, 1843, 5621, 3639, 453, 780, 1622, 293, 1080, 4099, 907, 21, 31, 3639, 288, 3639, 399, 3004, 268, 5644, 907, 22, 31, 3639, 399, 28565, 268, 1080, 13107, 907, 23, 31, 3639, 268, 5644, 907, 22, 273, 261, 56, 3004, 13, 2159, 19558, 23, 18, 588, 12, 20, 1769, 3639, 268, 1080, 13107, 907, 23, 273, 261, 56, 28565, 13, 2159, 19558, 25, 18, 588, 12, 20, 1769, 3639, 293, 1080, 4099, 907, 21, 273, 394, 432, 1585, 70, 9963, 780, 1622, 12, 88, 5644, 907, 22, 16, 268, 1080, 13107, 907, 23, 1769, 3639, 289, 202, 2159, 682, 18, 1289, 12, 84, 1080, 4099, 907, 21, 1769, 3639, 327, 10198, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 756, 19558, 25, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 24, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 23, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 22, 273, 261, 19558, 13, 1843, 5621, 3639, 2407, 756, 19558, 21, 273, 261, 19558, 13, 1843, 5621, 3639, 453, 780, 1622, 293, 1080, 4099, 907, 21, 31, 3639, 288, 3639, 399, 3004, 268, 5644, 907, 22, 31, 3639, 399, 28565, 268, 1080, 13107, 907, 2 ]
assertFalse("case2: test failure", verifyingSign.verify(sigBytes) );
assertFalse("case2: test failure", verifyingSign.verify(sigBytes));
public final void testVerifybyteArray01() throws Exception { byte sigBytes[]; signingSigns[0].update(message); sigBytes = signingSigns[0].sign(); verifyingSign.update(message); assertTrue("case1: test failure", verifyingSign.verify(sigBytes) ); verifyingSign.initVerify(publicKey2); verifyingSign.update(message); assertFalse("case2: test failure", verifyingSign.verify(sigBytes) ); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3a090ca0d55d2e7ad79b0a1d71e7cd89ede94b7a/SHA1withDSA_SignatureTest.java/buggy/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1withDSA_SignatureTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 8097, 7229, 1076, 1611, 1435, 1216, 1185, 288, 540, 1160, 3553, 2160, 8526, 31, 3639, 10611, 2766, 87, 63, 20, 8009, 2725, 12, 2150, 1769, 3639, 3553, 2160, 273, 10611, 2766, 87, 63, 20, 8009, 2977, 5621, 3639, 3929, 310, 2766, 18, 2725, 12, 2150, 1769, 3639, 1815, 5510, 2932, 3593, 21, 30, 1842, 5166, 3113, 3929, 310, 2766, 18, 8705, 12, 7340, 2160, 13, 11272, 3639, 3929, 310, 2766, 18, 2738, 8097, 12, 482, 653, 22, 1769, 3639, 3929, 310, 2766, 18, 2725, 12, 2150, 1769, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 1842, 8097, 7229, 1076, 1611, 1435, 1216, 1185, 288, 540, 1160, 3553, 2160, 8526, 31, 3639, 10611, 2766, 87, 63, 20, 8009, 2725, 12, 2150, 1769, 3639, 3553, 2160, 273, 10611, 2766, 87, 63, 20, 8009, 2977, 5621, 3639, 3929, 310, 2766, 18, 2725, 12, 2150, 1769, 3639, 1815, 5510, 2932, 3593, 21, 30, 1842, 5166, 3113, 3929, 310, 2766, 18, 8705, 12, 7340, 2160, 13, 11272, 3639, 3929, 310, 2766, 18, 2738, 8097, 12, 482, 653, 22, 1769, 3639, 3929, 310, 2766, 18, 2725, 12, 2150, 1769, 3639, 1815, 8381, 2932, 3593, 22, 30, 1842, 5166, 3113, 3929, 310, 2766, 18, 8705, 12, 7340, 2160, 10019, 1850, 289, 2, -100, -100, -100, -100, -100, -100 ]
if (childBox.getStyle().isAvoidPageBreakInside() &&
if (childBox.getStyle().isAvoidPageBreakInside() &&
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { RelayoutResult result = new RelayoutResult(); result.setCanceled(true); return result; } block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPageBottom(c); int startAbsY = block.getAbsY() + block.ty + block.height; int endAbsY = 0; for (int i = start; i <= end; i++) { Content currentContent = (Content)contentList.get(i); RelayoutData relayoutData = relayoutDataList.get(i); BlockBox childBox = null; //TODO:handle run-ins. For now, treat them as blocks c.restoreStateForRelayout(relayoutData.getLayoutState()); childBox = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), false, currentContent); if (childBox.getStyle().isAvoidPageBreakInside() && childBox.crossesPageBreak(c)) { c.restoreStateForRelayout(relayoutData.getLayoutState()); BlockBox secondTry = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), true, currentContent); if (secondTry.crossesPageBreak(c)) { secondTry.detach(); } else { childBox.detach(); childBox = secondTry; } } c.getRootLayer().ensureHasPage(c, childBox); block.adjustWidthForChild(childBox.getWidth()); block.height = childBox.y + childBox.height; if ((i == end && end == contentList.size()-1) || (i == end - 1)) { endAbsY = childBox.getAbsY() + childBox.getHeight(); } if (childBox.getStyle().isForcePageBreakAfter()) { block.expandToPageBottom(c); } } RelayoutResult result = new RelayoutResult(); result.setFits(! c.getRootLayer().crossesPageBreak(c, startAbsY, endAbsY)); return result; }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 4275, 2012, 1253, 1279, 2012, 1398, 1908, 1964, 12, 5411, 9995, 1042, 276, 16, 987, 913, 682, 16, 3914, 3514, 1203, 16, 2398, 9767, 694, 2223, 2154, 694, 2223, 16, 4275, 2012, 24274, 1279, 2012, 24274, 16, 2398, 509, 787, 16, 509, 679, 13, 288, 7734, 309, 261, 1893, 1290, 8579, 382, 3548, 12, 2878, 2012, 24274, 16, 787, 16, 679, 3719, 288, 5411, 4275, 2012, 1253, 563, 273, 394, 4275, 2012, 1253, 5621, 5411, 563, 18, 542, 23163, 12, 3767, 1769, 5411, 327, 563, 31, 3639, 289, 7734, 1203, 18, 4210, 273, 1279, 2012, 24274, 18, 588, 12, 1937, 2934, 588, 4435, 3054, 2686, 5621, 3639, 1203, 18, 12320, 774, 1964, 10393, 12, 71, 1769, 7734, 509, 787, 9382, 61, 273, 1203, 18, 588, 9382, 61, 1435, 397, 1203, 18, 4098, 397, 1203, 18, 4210, 31, 3639, 509, 679, 9382, 61, 273, 374, 31, 7734, 364, 261, 474, 277, 273, 787, 31, 277, 1648, 679, 31, 277, 27245, 288, 5411, 3697, 783, 1350, 273, 261, 1350, 13, 1745, 682, 18, 588, 12, 77, 1769, 13491, 4275, 2012, 751, 1279, 2012, 751, 273, 1279, 2012, 24274, 18, 588, 12, 77, 1769, 5411, 3914, 3514, 1151, 3514, 273, 446, 31, 5411, 368, 6241, 30, 4110, 1086, 17, 2679, 18, 2457, 2037, 16, 10116, 2182, 487, 4398, 13491, 276, 18, 13991, 1119, 1290, 1971, 2012, 12, 2878, 2012, 751, 18, 588, 3744, 1119, 10663, 5411, 1151, 3514, 273, 3511, 1768, 1763, 12, 10792, 276, 16, 1203, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 4275, 2012, 1253, 1279, 2012, 1398, 1908, 1964, 12, 5411, 9995, 1042, 276, 16, 987, 913, 682, 16, 3914, 3514, 1203, 16, 2398, 9767, 694, 2223, 2154, 694, 2223, 16, 4275, 2012, 24274, 1279, 2012, 24274, 16, 2398, 509, 787, 16, 509, 679, 13, 288, 7734, 309, 261, 1893, 1290, 8579, 382, 3548, 12, 2878, 2012, 24274, 16, 787, 16, 679, 3719, 288, 5411, 4275, 2012, 1253, 563, 273, 394, 4275, 2012, 1253, 5621, 5411, 563, 18, 542, 23163, 12, 3767, 1769, 5411, 327, 563, 31, 3639, 289, 7734, 1203, 18, 4210, 273, 1279, 2012, 24274, 18, 588, 12, 1937, 2934, 588, 4435, 3054, 2686, 5621, 3639, 1203, 18, 12320, 774, 1964, 10393, 12, 71, 1769, 2 ]