rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
return this;
public AdaptableList add(IAdaptable a) { if (a instanceof WorkbenchWizardElement) { wizards.add(a); } else { super.add(a); } return this;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5879d03f82c86871e58839006ceaa7f5654229d5/WizardCollectionElement.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/dialogs/WizardCollectionElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22792, 429, 682, 527, 12, 45, 13716, 429, 279, 13, 288, 202, 430, 261, 69, 1276, 4147, 22144, 27130, 1046, 13, 288, 202, 202, 31837, 87, 18, 1289, 12, 69, 1769, 202, 97, 469, 288, 202, 202, 9565, 18, 1289, 12, 69, 1769, 202, 97, 202, 2463, 333, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22792, 429, 682, 527, 12, 45, 13716, 429, 279, 13, 288, 202, 430, 261, 69, 1276, 4147, 22144, 27130, 1046, 13, 288, 202, 202, 31837, 87, 18, 1289, 12, 69, 1769, 202, 97, 469, 288, 202, 202, 9565, 18, 1289, 12, 69, 1769, 202, 97, 202, 2463, 333, 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, -100, -100, -100, -100, -100, -100, -100, -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 (doc.getPDFAMode().isPDFA1LevelB()) {
if (doc.getProfile().getPDFAMode().isPDFA1LevelB()) {
public void setup(PDFDocument doc) { if ("image/jpeg".equals(fopImage.getMimeType())) { pdfFilter = new DCTFilter(); pdfFilter.setApplied(true); isDCT = true; } else if ("image/tiff".equals(fopImage.getMimeType()) && fopImage instanceof TIFFImage) { TIFFImage tiffImage = (TIFFImage) fopImage; if (tiffImage.getStripCount() == 1) { int comp = tiffImage.getCompression(); if (comp == 1) { // Nothing to do } else if (comp == 3) { pdfFilter = new CCFFilter(); pdfFilter.setApplied(true); isCCF = true; } else if (comp == 4) { pdfFilter = new CCFFilter(); pdfFilter.setApplied(true); ((CCFFilter)pdfFilter).setDecodeParms("<< /K -1 /Columns " + tiffImage.getWidth() + " >>"); isCCF = true; } else if (comp == 6) { pdfFilter = new DCTFilter(); pdfFilter.setApplied(true); isDCT = true; } } } if (isPS || isDCT || isCCF) { fopImage.load(FopImage.ORIGINAL_DATA); } else { fopImage.load(FopImage.BITMAP); } ICC_Profile prof = fopImage.getICCProfile(); PDFColorSpace pdfCS = toPDFColorSpace(fopImage.getColorSpace()); if (prof != null) { boolean defaultsRGB = ColorProfileUtil.isDefaultsRGB(prof); if (log.isDebugEnabled()) { String desc = ColorProfileUtil.getICCProfileDescription(prof); log.debug("Image returns ICC profile: " + desc + ", default sRGB=" + defaultsRGB); } //TODO Instead of skipping the ICC profile for sRGB, let's think about embedding our //own sRGB profile instead, but if possible only once per PDF (Need a new structure in //the PDF library for that). if (!defaultsRGB) { pdfICCStream = doc.getFactory().makePDFICCStream(); pdfICCStream.setColorSpace(prof, pdfCS); } } //Handle transparency mask if applicable if (fopImage.hasSoftMask()) { byte [] softMask = fopImage.getSoftMask(); if (softMask == null) { return; } BitmapImage fopimg = new BitmapImage ("Mask:" + key, fopImage.getWidth(), fopImage.getHeight(), softMask, null); fopimg.setColorSpace(new PDFColorSpace(PDFColorSpace.DEVICE_GRAY)); PDFXObject xobj = doc.addImage(null, fopimg); softMaskRef = xobj.referencePDF(); } if (doc.getPDFAMode().isPDFA1LevelB()) { if (pdfCS != null && pdfCS.getColorSpace() != PDFColorSpace.DEVICE_RGB && pdfCS.getColorSpace() != PDFColorSpace.DEVICE_GRAY && prof == null) { //See PDF/A-1, ISO 19005:1:2005(E), 6.2.3.3 //FOP is currently restricted to DeviceRGB if PDF/A-1 is active. throw new PDFConformanceException( "PDF/A-1 does not allow mixing DeviceRGB and DeviceCMYK."); } } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cbc3059c396fb572727bcb6afbdd70b8967107f1/FopPDFImage.java/buggy/src/java/org/apache/fop/render/pdf/FopPDFImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 12, 17508, 2519, 997, 13, 288, 3639, 309, 7566, 2730, 19, 14423, 9654, 14963, 12, 74, 556, 2040, 18, 588, 16821, 1435, 3719, 288, 5411, 8169, 1586, 273, 394, 463, 1268, 1586, 5621, 5411, 8169, 1586, 18, 542, 16203, 12, 3767, 1769, 5411, 353, 40, 1268, 273, 638, 31, 3639, 289, 469, 309, 7566, 2730, 19, 88, 3048, 9654, 14963, 12, 74, 556, 2040, 18, 588, 16821, 10756, 10792, 597, 284, 556, 2040, 1276, 27491, 2040, 13, 288, 5411, 27491, 2040, 268, 3048, 2040, 273, 261, 56, 16962, 2040, 13, 284, 556, 2040, 31, 5411, 309, 261, 88, 3048, 2040, 18, 588, 16632, 1380, 1435, 422, 404, 13, 288, 7734, 509, 1161, 273, 268, 3048, 2040, 18, 588, 15270, 5621, 7734, 309, 261, 2919, 422, 404, 13, 288, 10792, 368, 13389, 358, 741, 7734, 289, 469, 309, 261, 2919, 422, 890, 13, 288, 10792, 8169, 1586, 273, 394, 385, 8955, 1586, 5621, 10792, 8169, 1586, 18, 542, 16203, 12, 3767, 1769, 10792, 353, 6743, 42, 273, 638, 31, 7734, 289, 469, 309, 261, 2919, 422, 1059, 13, 288, 10792, 8169, 1586, 273, 394, 385, 8955, 1586, 5621, 10792, 8169, 1586, 18, 542, 16203, 12, 3767, 1769, 10792, 14015, 6743, 42, 1586, 13, 7699, 1586, 2934, 542, 6615, 28572, 2932, 17685, 342, 47, 300, 21, 342, 3380, 315, 7682, 397, 268, 3048, 2040, 18, 588, 2384, 1435, 397, 315, 1671, 8863, 10792, 353, 6743, 42, 273, 638, 31, 7734, 289, 469, 309, 261, 2919, 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, 3875, 12, 17508, 2519, 997, 13, 288, 3639, 309, 7566, 2730, 19, 14423, 9654, 14963, 12, 74, 556, 2040, 18, 588, 16821, 1435, 3719, 288, 5411, 8169, 1586, 273, 394, 463, 1268, 1586, 5621, 5411, 8169, 1586, 18, 542, 16203, 12, 3767, 1769, 5411, 353, 40, 1268, 273, 638, 31, 3639, 289, 469, 309, 7566, 2730, 19, 88, 3048, 9654, 14963, 12, 74, 556, 2040, 18, 588, 16821, 10756, 10792, 597, 284, 556, 2040, 1276, 27491, 2040, 13, 288, 5411, 27491, 2040, 268, 3048, 2040, 273, 261, 56, 16962, 2040, 13, 284, 556, 2040, 31, 5411, 309, 261, 88, 3048, 2040, 18, 588, 16632, 1380, 1435, 422, 404, 13, 288, 7734, 509, 1161, 273, 268, 3048, 2 ]
throw new UnsupportedOperationException(); }
throw new UnsupportedOperationException(); }
public void setType(Classifier input) { throw new UnsupportedOperationException(); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/AttributeSupport.java/clean/src/main/mondrian/jolap/AttributeSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8811, 12, 13860, 810, 13, 288, 202, 202, 12849, 394, 13172, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8811, 12, 13860, 810, 13, 288, 202, 202, 12849, 394, 13172, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void mT51() throws RecognitionException { try { ruleNestingLevel++; int _type = T51; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: ( 'result' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:31:7: 'result' { match("result"); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 10593, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 399, 10593, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621, 5411, 509, 389, 1369, 273, 9851, 5621, 5411, 509, 389, 3001, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 389, 4327, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 6938, 30, 27, 30, 261, 296, 2088, 11, 262, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 6938, 30, 27, 30, 296, 2088, 11, 5411, 288, 5411, 845, 2932, 2088, 8863, 309, 261, 7307, 13, 327, 274, 5411, 289, 5411, 309, 261, 6888, 631, 20, 262, 288, 8227, 309, 261, 1147, 631, 2011, 597, 1720, 50, 10100, 2355, 631, 21, 262, 288, 12900, 3626, 24899, 723, 16, 67, 1369, 16, 67, 3001, 2555, 16, 67, 4327, 16, 67, 1937, 16, 588, 2156, 1016, 1435, 17, 21, 1769, 8227, 289, 21394, 289, 565, 289, 3639, 3095, 288, 5411, 1720, 50, 10100, 2355, 413, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 10593, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 399, 10593, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621, 5411, 509, 389, 1369, 273, 9851, 5621, 5411, 509, 389, 3001, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 389, 4327, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, 1695, 12215, 1695, 4936, 1695, 16483, 18, 75, 30, 6938, 30, 27, 30, 261, 296, 2088, 11, 262, 5411, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 2 ]
manager.add(createTask); manager.add(createCategory); manager.add(new Separator());
manager.removeAll();
private void fillLocalToolBar(IToolBarManager manager) { manager.add(createTask); manager.add(createCategory); manager.add(new Separator()); if (MylarTasksPlugin.getDefault().getContributor() != null) { for (IAction action : MylarTasksPlugin.getDefault().getContributor().getToolbarActions(this)) { manager.add(action); } } manager.add(new Separator()); manager.add(filterCompleteTask); manager.add(filterOnPriority); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f61789f351d20f3c722cc43bd0b845c4e87901c4/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 2042, 6364, 5190, 12, 45, 6364, 5190, 1318, 3301, 13, 288, 3639, 3301, 18, 1289, 12, 2640, 2174, 1769, 3639, 3301, 18, 1289, 12, 2640, 4457, 1769, 3639, 3301, 18, 1289, 12, 2704, 27519, 10663, 3639, 309, 261, 12062, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 442, 19293, 1435, 480, 446, 13, 288, 202, 3639, 364, 261, 45, 1803, 1301, 294, 8005, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 442, 19293, 7675, 588, 17907, 6100, 12, 2211, 3719, 288, 9506, 202, 4181, 18, 1289, 12, 1128, 1769, 1082, 202, 97, 3639, 289, 3639, 3301, 18, 1289, 12, 2704, 27519, 10663, 3639, 3301, 18, 1289, 12, 2188, 6322, 2174, 1769, 3639, 3301, 18, 1289, 12, 2188, 1398, 8183, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 2042, 6364, 5190, 12, 45, 6364, 5190, 1318, 3301, 13, 288, 3639, 3301, 18, 1289, 12, 2640, 2174, 1769, 3639, 3301, 18, 1289, 12, 2640, 4457, 1769, 3639, 3301, 18, 1289, 12, 2704, 27519, 10663, 3639, 309, 261, 12062, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 442, 19293, 1435, 480, 446, 13, 288, 202, 3639, 364, 261, 45, 1803, 1301, 294, 8005, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 442, 19293, 7675, 588, 17907, 6100, 12, 2211, 3719, 288, 9506, 202, 4181, 18, 1289, 12, 1128, 1769, 1082, 202, 97, 3639, 289, 3639, 3301, 18, 1289, 12, 2704, 27519, 10663, 3639, 3301, 18, 1289, 12, 2188, 6322, 2174, 1769, 3639, 3301, 18, 1289, 2 ]
final String[] expectedPaths = {"/usr/include", "/opt/gnome/include", "/home/tester/include"};
final String[] expectedPaths = {"/usr/gnu/include", "/usr/include", "/opt/gnome/include", "C:\\home\\tester/include"};
public void testScannerInfoInterface(){ // These are the expected path settings final String[] expectedPaths = {"/usr/include", "/opt/gnome/include", "/home/tester/include"}; // Open the test project IProject project = null; try { project = createProject(projectName); } catch (CoreException e) { fail("Failed to open project: " + e.getLocalizedMessage()); } // Create a new target in the project based on the sub target ITarget baseTarget = ManagedBuildManager.getTarget(project, "test.sub"); assertNotNull(baseTarget); ITarget newTarget = null; try { newTarget = ManagedBuildManager.createTarget(project, baseTarget); } catch (BuildException e) { fail("Failed adding new target to project: " + e.getLocalizedMessage()); } assertNotNull(newTarget); // Copy over the configs IConfiguration[] baseConfigs = baseTarget.getConfigurations(); for (int i = 0; i < baseConfigs.length; ++i) { newTarget.createConfiguration(baseConfigs[i], baseConfigs[i].getId() + "." + i); } // Change the default configuration to the sub config IConfiguration[] configs = newTarget.getConfigurations(); assertEquals(3, configs.length); IManagedBuildInfo buildInfo = ManagedBuildManager.getBuildInfo(project); buildInfo.setDefaultConfiguration(newTarget.getConfiguration("sub.config.2")); // Use the plugin mechanism to discover the supplier of the path information IExtensionPoint extensionPoint = CCorePlugin.getDefault().getDescriptor().getExtensionPoint("ScannerInfoProvider"); if (extensionPoint == null) { fail("Failed to retrieve the extension point ScannerInfoProvider."); } // Find the first IScannerInfoProvider that supplies build info for the project IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(project); assertNotNull(provider); // Check the build information right away IScannerInfo currentSettings = provider.getScannerInformation(project); Map currentSymbols = currentSettings.getDefinedSymbols(); assertTrue(currentSymbols.isEmpty()); String[] currentPaths = currentSettings.getIncludePaths(); assertTrue(Arrays.equals(expectedPaths, currentPaths)); // Now subscribe (note that the method will be called after a change provider.subscribe(project, new IScannerInfoChangeListener () { public void changeNotification(IResource project, IScannerInfo info) { // Test the symbols Map definedSymbols = info.getDefinedSymbols(); assertTrue(definedSymbols.containsKey("DEBUG")); assertTrue(definedSymbols.containsKey("GNOME")); assertTrue(definedSymbols.containsValue("ME")); assertEquals((String)definedSymbols.get("DEBUG"), ""); assertEquals((String)definedSymbols.get("GNOME"), "ME"); // Test the includes path String[] actualPaths = info.getIncludePaths(); assertTrue(Arrays.equals(expectedPaths, actualPaths)); } }); // Add some defined symbols programmatically String[] expectedSymbols = {"DEBUG", "GNOME = ME "}; IConfiguration defaultConfig = buildInfo.getDefaultConfiguration(newTarget); ITool[] tools = defaultConfig.getTools(); ITool subTool = null; for (int i = 0; i < tools.length; i++) { ITool tool = tools[i]; if("tool.sub".equalsIgnoreCase(tool.getId())) { subTool = tool; break; } } assertNotNull(subTool); IOption symbolOpt = null; IOption[] opts = subTool.getOptions(); for (int i = 0; i < opts.length; i++) { IOption option = opts[i]; if (option.getValueType() == IOption.PREPROCESSOR_SYMBOLS) { symbolOpt = option; break; } } assertNotNull(symbolOpt); ManagedBuildManager.setOption(defaultConfig, symbolOpt, expectedSymbols); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/cc710063b44a0d6ca4702f2fbbb1dfbe4e3f384e/ManagedBuildTests.java/clean/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11338, 966, 1358, 1435, 95, 202, 202, 759, 8646, 854, 326, 2665, 589, 1947, 202, 202, 6385, 514, 8526, 2665, 4466, 273, 12528, 19, 13640, 19, 6702, 3113, 2206, 3838, 19, 1600, 1742, 19, 6702, 3113, 2206, 8712, 19, 1078, 387, 19, 6702, 6, 20451, 202, 202, 759, 3502, 326, 1842, 1984, 202, 202, 45, 4109, 1984, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 4406, 273, 752, 4109, 12, 4406, 461, 1769, 202, 202, 97, 1044, 261, 25341, 425, 13, 288, 1082, 202, 6870, 2932, 2925, 358, 1696, 1984, 30, 315, 397, 425, 18, 588, 2042, 1235, 1079, 10663, 202, 202, 97, 9506, 202, 759, 1788, 279, 394, 1018, 316, 326, 1984, 2511, 603, 326, 720, 1018, 202, 202, 1285, 826, 1026, 2326, 273, 10024, 3116, 1318, 18, 588, 2326, 12, 4406, 16, 315, 3813, 18, 1717, 8863, 202, 202, 11231, 5962, 12, 1969, 2326, 1769, 202, 202, 1285, 826, 394, 2326, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 2704, 2326, 273, 10024, 3116, 1318, 18, 2640, 2326, 12, 4406, 16, 1026, 2326, 1769, 202, 202, 97, 1044, 261, 3116, 503, 425, 13, 288, 1082, 202, 6870, 2932, 2925, 6534, 394, 1018, 358, 1984, 30, 315, 397, 425, 18, 588, 2042, 1235, 1079, 10663, 202, 202, 97, 202, 202, 11231, 5962, 12, 2704, 2326, 1769, 202, 202, 759, 5631, 1879, 326, 6784, 202, 202, 45, 1750, 8526, 1026, 8062, 273, 1026, 2326, 18, 588, 9698, 5621, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11338, 966, 1358, 1435, 95, 202, 202, 759, 8646, 854, 326, 2665, 589, 1947, 202, 202, 6385, 514, 8526, 2665, 4466, 273, 12528, 19, 13640, 19, 6702, 3113, 2206, 3838, 19, 1600, 1742, 19, 6702, 3113, 2206, 8712, 19, 1078, 387, 19, 6702, 6, 20451, 202, 202, 759, 3502, 326, 1842, 1984, 202, 202, 45, 4109, 1984, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 4406, 273, 752, 4109, 12, 4406, 461, 1769, 202, 202, 97, 1044, 261, 25341, 425, 13, 288, 1082, 202, 6870, 2932, 2925, 358, 1696, 1984, 30, 315, 397, 425, 18, 588, 2042, 1235, 1079, 10663, 202, 202, 97, 9506, 202, 759, 1788, 279, 394, 1018, 316, 326, 1984, 2 ]
versions.add(readVersion(containerId, versionId)); return export(exportDirectory, container, versions);
final ContainerVersion version = readVersion(containerId, versionId); versions.add(version); return export(exportDirectory, getNameGenerator().exportFileName(version), container, versions);
File exportVersion(final File exportDirectory, final Long containerId, final Long versionId) { logger.logApiId(); logger.logVariable("exportDirectory", exportDirectory); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); try { Assert.assertTrue(exportDirectory.isDirectory(), "Export directory {0} is not a directory.", exportDirectory); final Container container = read(containerId); final List<ContainerVersion> versions = new ArrayList<ContainerVersion>(1); versions.add(readVersion(containerId, versionId)); return export(exportDirectory, container, versions); } catch (final Throwable t) { throw translateError(t); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/bf0b7dd11ffbfc2e44720a0373a134e4f2e279c7/ContainerModelImpl.java/clean/local/model/src/main/java/com/thinkparity/ophelia/model/container/ContainerModelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1387, 3359, 1444, 12, 6385, 1387, 3359, 2853, 16, 727, 3407, 27142, 16, 5411, 727, 3407, 15287, 13, 288, 3639, 1194, 18, 1330, 21592, 5621, 3639, 1194, 18, 1330, 3092, 2932, 6530, 2853, 3113, 3359, 2853, 1769, 3639, 1194, 18, 1330, 3092, 2932, 3782, 548, 3113, 27142, 1769, 3639, 1194, 18, 1330, 3092, 2932, 1589, 548, 3113, 15287, 1769, 3639, 775, 288, 5411, 5452, 18, 11231, 5510, 12, 6530, 2853, 18, 291, 2853, 9334, 10792, 315, 6144, 1867, 288, 20, 97, 353, 486, 279, 1867, 1199, 16, 3359, 2853, 1769, 5411, 727, 4039, 1478, 273, 855, 12, 3782, 548, 1769, 5411, 727, 987, 32, 2170, 1444, 34, 5244, 273, 394, 2407, 32, 2170, 1444, 34, 12, 21, 1769, 5411, 5244, 18, 1289, 12, 896, 1444, 12, 3782, 548, 16, 15287, 10019, 5411, 327, 3359, 12, 6530, 2853, 16, 1478, 16, 5244, 1769, 3639, 289, 1044, 261, 6385, 4206, 268, 13, 288, 5411, 604, 4204, 668, 12, 88, 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, 1387, 3359, 1444, 12, 6385, 1387, 3359, 2853, 16, 727, 3407, 27142, 16, 5411, 727, 3407, 15287, 13, 288, 3639, 1194, 18, 1330, 21592, 5621, 3639, 1194, 18, 1330, 3092, 2932, 6530, 2853, 3113, 3359, 2853, 1769, 3639, 1194, 18, 1330, 3092, 2932, 3782, 548, 3113, 27142, 1769, 3639, 1194, 18, 1330, 3092, 2932, 1589, 548, 3113, 15287, 1769, 3639, 775, 288, 5411, 5452, 18, 11231, 5510, 12, 6530, 2853, 18, 291, 2853, 9334, 10792, 315, 6144, 1867, 288, 20, 97, 353, 486, 279, 1867, 1199, 16, 3359, 2853, 1769, 5411, 727, 4039, 1478, 273, 855, 12, 3782, 548, 1769, 5411, 727, 987, 32, 2170, 1444, 34, 5244, 273, 394, 2407, 32, 2170, 1444, 34, 12, 21, 1769, 2 ]
debug("read issuerUniqueId == " + issuerUniqueId);
logger.log (Component.X509, "read issuerUniqueId == {0}", issuerUniqueId);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new IOException("malformed Certificate"); } // TBSCertificate ::= SEQUENCE { DERValue tbsCert = der.read(); if (tbsCert.getValue() != DER.CONSTRUCTED_VALUE) { throw new IOException("malformed TBSCertificate"); } tbsCertBytes = tbsCert.getEncoded(); debug("start TBSCertificate len == " + tbsCert.getLength()); // Version ::= INTEGER [0] { v1(0), v2(1), v3(2) } DERValue val = der.read(); if (val.getTagClass() == DER.CONTEXT && val.getTag() == 0) { version = ((BigInteger) der.read().getValue()).intValue() + 1; val = der.read(); } else { version = 1; } debug("read version == " + version); // SerialNumber ::= INTEGER serialNo = (BigInteger) val.getValue(); debug("read serial number == " + serialNo); // AlgorithmIdentifier ::= SEQUENCE { val = der.read(); if (!val.isConstructed()) { throw new IOException("malformed AlgorithmIdentifier"); } int certAlgLen = val.getLength(); debug("start AlgorithmIdentifier len == " + certAlgLen); val = der.read(); // algorithm OBJECT IDENTIFIER, algId = (OID) val.getValue(); debug("read algorithm ID == " + algId); // parameters ANY DEFINED BY algorithm OPTIONAL } if (certAlgLen > val.getEncodedLength()) { val = der.read(); if (val == null) { algVal = null; } else { algVal = val.getEncoded(); if (val.isConstructed()) encoded.skip(val.getLength()); } debug("read algorithm parameters == " + algVal); } // issuer Name, val = der.read(); issuer = new X500DistinguishedName(val.getEncoded()); der.skip(val.getLength()); debug("read issuer == " + issuer); // Validity ::= SEQUENCE { // notBefore Time, // notAfter Time } if (!der.read().isConstructed()) { throw new IOException("malformed Validity"); } notBefore = (Date) der.read().getValue(); notAfter = (Date) der.read().getValue(); debug("read notBefore == " + notBefore); debug("read notAfter == " + notAfter); // subject Name, val = der.read(); subject = new X500DistinguishedName(val.getEncoded()); der.skip(val.getLength()); debug("read subject == " + subject); // SubjectPublicKeyInfo ::= SEQUENCE { // algorithm AlgorithmIdentifier, // subjectPublicKey BIT STRING } DERValue spki = der.read(); if (!spki.isConstructed()) { throw new IOException("malformed SubjectPublicKeyInfo"); } KeyFactory spkFac = KeyFactory.getInstance("X.509"); subjectKey = spkFac.generatePublic(new X509EncodedKeySpec(spki.getEncoded())); der.skip(spki.getLength()); debug("read subjectPublicKey == " + subjectKey); if (version > 1) { val = der.read(); } if (version >= 2 && val.getTagClass() != DER.UNIVERSAL && val.getTag() == 1) { byte[] b = (byte[]) val.getValue(); issuerUniqueId = new BitString(b, 1, b.length-1, b[0] & 0xFF); debug("read issuerUniqueId == " + issuerUniqueId); val = der.read(); } if (version >= 2 && val.getTagClass() != DER.UNIVERSAL && val.getTag() == 2) { byte[] b = (byte[]) val.getValue(); subjectUniqueId = new BitString(b, 1, b.length-1, b[0] & 0xFF); debug("read subjectUniqueId == " + subjectUniqueId); val = der.read(); } if (version >= 3 && val.getTagClass() != DER.UNIVERSAL && val.getTag() == 3) { val = der.read(); debug("start Extensions len == " + val.getLength()); int len = 0; while (len < val.getLength()) { DERValue ext = der.read(); debug("start extension len == " + ext.getLength()); Extension e = new Extension(ext.getEncoded()); extensions.put(e.getOid(), e); der.skip(ext.getLength()); len += ext.getEncodedLength(); debug("count == " + len); } } val = der.read(); if (!val.isConstructed()) { throw new IOException("malformed AlgorithmIdentifier"); } int sigAlgLen = val.getLength(); debug("start AlgorithmIdentifier len == " + sigAlgLen); val = der.read(); sigAlgId = (OID) val.getValue(); debug("read algorithm id == " + sigAlgId); if (sigAlgLen > val.getEncodedLength()) { val = der.read(); if (val.getValue() == null) { if (subjectKey instanceof DSAPublicKey) { AlgorithmParameters params = AlgorithmParameters.getInstance("DSA"); DSAParams dsap = ((DSAPublicKey) subjectKey).getParams(); DSAParameterSpec spec = new DSAParameterSpec(dsap.getP(), dsap.getQ(), dsap.getG()); params.init(spec); sigAlgVal = params.getEncoded(); } } else { sigAlgVal = (byte[]) val.getEncoded(); } if (val.isConstructed()) { encoded.skip(val.getLength()); } debug("read parameters == " + sigAlgVal); } signature = ((BitString) der.read().getValue()).toByteArray(); debug("read signature ==\n" + Util.hexDump(signature, ">>>> ")); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/9ceff8e134cf605d5c183b0d2316ae109366eb22/X509Certificate.java/buggy/libraries/javalib/gnu/java/security/x509/X509Certificate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 12, 4348, 3749, 13, 1216, 1185, 225, 288, 565, 21801, 2514, 4854, 273, 394, 21801, 2514, 12, 10787, 1769, 565, 368, 6660, 493, 33, 27118, 288, 565, 21801, 620, 3320, 273, 4854, 18, 896, 5621, 565, 1198, 2932, 1937, 6660, 225, 562, 422, 315, 397, 3320, 18, 588, 1782, 10663, 565, 333, 18, 10787, 273, 3320, 18, 588, 10397, 5621, 565, 309, 16051, 7593, 18, 291, 7249, 329, 10756, 1377, 288, 3639, 604, 394, 1860, 2932, 81, 8246, 6660, 8863, 1377, 289, 565, 368, 399, 38, 2312, 2543, 493, 33, 27118, 288, 565, 21801, 620, 268, 2038, 5461, 273, 4854, 18, 896, 5621, 565, 309, 261, 88, 2038, 5461, 18, 24805, 1435, 480, 21801, 18, 26935, 2056, 67, 4051, 13, 1377, 288, 3639, 604, 394, 1860, 2932, 81, 8246, 399, 38, 2312, 2543, 8863, 1377, 289, 565, 268, 2038, 5461, 2160, 273, 268, 2038, 5461, 18, 588, 10397, 5621, 565, 1198, 2932, 1937, 399, 38, 2312, 2543, 225, 562, 422, 315, 397, 268, 2038, 5461, 18, 588, 1782, 10663, 565, 368, 4049, 493, 33, 16481, 306, 20, 65, 288, 331, 21, 12, 20, 3631, 331, 22, 12, 21, 3631, 331, 23, 12, 22, 13, 289, 565, 21801, 620, 1244, 273, 4854, 18, 896, 5621, 565, 309, 261, 1125, 18, 588, 1805, 797, 1435, 422, 21801, 18, 13181, 597, 1244, 18, 588, 1805, 1435, 422, 374, 13, 1377, 288, 3639, 1177, 273, 14015, 24198, 13, 4854, 18, 896, 7675, 24805, 1435, 2934, 474, 620, 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, 1109, 12, 4348, 3749, 13, 1216, 1185, 225, 288, 565, 21801, 2514, 4854, 273, 394, 21801, 2514, 12, 10787, 1769, 565, 368, 6660, 493, 33, 27118, 288, 565, 21801, 620, 3320, 273, 4854, 18, 896, 5621, 565, 1198, 2932, 1937, 6660, 225, 562, 422, 315, 397, 3320, 18, 588, 1782, 10663, 565, 333, 18, 10787, 273, 3320, 18, 588, 10397, 5621, 565, 309, 16051, 7593, 18, 291, 7249, 329, 10756, 1377, 288, 3639, 604, 394, 1860, 2932, 81, 8246, 6660, 8863, 1377, 289, 565, 368, 399, 38, 2312, 2543, 493, 33, 27118, 288, 565, 21801, 620, 268, 2038, 5461, 273, 4854, 18, 896, 5621, 565, 309, 261, 88, 2038, 5461, 18, 24805, 1435, 480, 21801, 18, 2 ]
Object cookie, MessageDigest hasher,
Object cookie, MessageDigest hasher,
public void hashingFinished(CachedUrlSet urlset, Object cookie, MessageDigest hasher, Exception e) { boolean hash_completed = e == null ? true : false; if(hash_completed) { m_hash = hasher.digest(); chooseVoteTime(); checkVote(); } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/7a97866b8f8c386c7623af9868e552bd531f797f/Poll.java/clean/src/org/lockss/poller/Poll.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24641, 10577, 12, 9839, 1489, 694, 880, 542, 16, 6862, 9506, 202, 921, 3878, 16, 6862, 9506, 202, 1079, 9568, 15764, 16, 27573, 1185, 425, 13, 288, 202, 225, 1250, 1651, 67, 13615, 273, 425, 422, 446, 692, 638, 294, 629, 31, 202, 225, 309, 12, 2816, 67, 13615, 13, 225, 288, 202, 202, 81, 67, 2816, 273, 15764, 18, 10171, 5621, 202, 202, 25777, 19338, 950, 5621, 202, 202, 1893, 19338, 5621, 202, 225, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 24641, 10577, 12, 9839, 1489, 694, 880, 542, 16, 6862, 9506, 202, 921, 3878, 16, 6862, 9506, 202, 1079, 9568, 15764, 16, 27573, 1185, 425, 13, 288, 202, 225, 1250, 1651, 67, 13615, 273, 425, 422, 446, 692, 638, 294, 629, 31, 202, 225, 309, 12, 2816, 67, 13615, 13, 225, 288, 202, 202, 81, 67, 2816, 273, 15764, 18, 10171, 5621, 202, 202, 25777, 19338, 950, 5621, 202, 202, 1893, 19338, 5621, 202, 225, 289, 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 ]
public String convertToString(Object obj, int sqlTypeCode)
public String convertToString(Object obj, int sqlTypeCode) throws ConversionException
public String convertToString(Object obj, int sqlTypeCode) { return obj == null ? null : obj.toString(); }
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/fcb5f34989dbe502661ba2d2f6c0eacc6b6561e2/TimeConverter.java/clean/src/java/org/apache/ddlutils/io/converters/TimeConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1765, 5808, 12, 921, 1081, 16, 509, 1847, 15460, 13, 1216, 16401, 503, 565, 288, 3639, 327, 1081, 422, 446, 692, 446, 294, 1081, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1765, 5808, 12, 921, 1081, 16, 509, 1847, 15460, 13, 1216, 16401, 503, 565, 288, 3639, 327, 1081, 422, 446, 692, 446, 294, 1081, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
|| (op_code == 183 && ! is_special);
|| isConstructor();
public final boolean getStaticFlag() { return method == null || method.getStaticFlag() || (op_code == 183 && ! is_special); }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1250, 23414, 4678, 1435, 225, 288, 565, 327, 707, 422, 446, 4202, 747, 707, 18, 588, 5788, 4678, 1435, 1377, 747, 353, 6293, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1250, 23414, 4678, 1435, 225, 288, 565, 327, 707, 422, 446, 4202, 747, 707, 18, 588, 5788, 4678, 1435, 1377, 747, 353, 6293, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
results = compare(retEnv, tempPath); assertTrue(results);
compareXML(retEnv, tempPath);
public void testR2BaseEchoDate() throws AxisFault { url = "http://www.caraveo.com/soap_interop/server_round2.php"; soapAction = "http://soapinterop.org/"; util = new Round2EchoDateClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "sunBaseDateRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/PSRound2InteropTest.java/buggy/modules/integration/itest/test/interop/whitemesa/round2/PSRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 2171, 19704, 1626, 1435, 1216, 15509, 7083, 225, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 9815, 836, 83, 18, 832, 19, 19215, 67, 30376, 19, 3567, 67, 2260, 22, 18, 2684, 14432, 3639, 9930, 1803, 273, 315, 2505, 2207, 19215, 30376, 18, 3341, 4898, 31, 3639, 1709, 273, 394, 11370, 22, 19704, 1626, 1227, 1304, 5621, 3639, 325, 3491, 273, 31608, 11066, 22, 1227, 18, 4661, 3332, 12, 1367, 16, 880, 16, 9930, 1803, 1769, 3639, 1906, 743, 273, 400, 5598, 397, 315, 16924, 2171, 1626, 607, 18, 2902, 14432, 3639, 1686, 273, 3400, 12, 1349, 3491, 16, 1906, 743, 1769, 3639, 1815, 5510, 12, 4717, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 2171, 19704, 1626, 1435, 1216, 15509, 7083, 225, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 9815, 836, 83, 18, 832, 19, 19215, 67, 30376, 19, 3567, 67, 2260, 22, 18, 2684, 14432, 3639, 9930, 1803, 273, 315, 2505, 2207, 19215, 30376, 18, 3341, 4898, 31, 3639, 1709, 273, 394, 11370, 22, 19704, 1626, 1227, 1304, 5621, 3639, 325, 3491, 273, 31608, 11066, 22, 1227, 18, 4661, 3332, 12, 1367, 16, 880, 16, 9930, 1803, 1769, 3639, 1906, 743, 273, 400, 5598, 397, 315, 16924, 2171, 1626, 607, 18, 2902, 14432, 3639, 1686, 273, 3400, 12, 1349, 3491, 16, 1906, 743, 1769, 3639, 1815, 5510, 12, 4717, 1769, 565, 289, 2, -100, -100 ]
return new DefaultMethod(body, argsNode, getVisibility(), module);
return new DefaultMethod(body, argsNode, getVisibility(), moduleStack);
public ICallable dup() { return new DefaultMethod(body, argsNode, getVisibility(), module); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/7fd129dfcc9660fb6d3c382cc48a2692d03890ca/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 11452, 9417, 1435, 288, 3639, 327, 394, 2989, 1305, 12, 3432, 16, 833, 907, 16, 336, 10135, 9334, 1605, 2624, 1769, 565, 289, 202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 11452, 9417, 1435, 288, 3639, 327, 394, 2989, 1305, 12, 3432, 16, 833, 907, 16, 336, 10135, 9334, 1605, 2624, 1769, 565, 289, 202, 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 ]
return RubyString.newString(getRuntime(), getValue().toString());
String result; if (getValue() == null) { result = "null"; } else { result = getValue().toString(); } return RubyString.newString(getRuntime(), result);
public RubyString to_s() { return RubyString.newString(getRuntime(), getValue().toString()); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/206c7b0b7eb0c58d4a00f4aaa94c9013ad204adc/JavaObject.java/buggy/src/org/jruby/javasupport/JavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 514, 563, 31, 309, 261, 24805, 1435, 422, 446, 13, 288, 563, 273, 315, 2011, 14432, 289, 469, 288, 563, 273, 2366, 7675, 10492, 5621, 289, 327, 19817, 780, 18, 2704, 780, 12, 588, 5576, 9334, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 514, 563, 31, 309, 261, 24805, 1435, 422, 446, 13, 288, 563, 273, 315, 2011, 14432, 289, 469, 288, 563, 273, 2366, 7675, 10492, 5621, 289, 327, 19817, 780, 18, 2704, 780, 12, 588, 5576, 9334, 563, 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 ]
AtomicSymbol as = new FundamentalAtomicSymbol(name, token, annotation);
AtomicSymbol as = new FundamentalAtomicSymbol(name, annotation);
static public AtomicSymbol createSymbol( char token, String name, Annotation annotation ) { AtomicSymbol as = new FundamentalAtomicSymbol(name, token, annotation); return as; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/92eb91fa8f18ebe0d9802fbca14909bfbc835996/AlphabetManager.java/buggy/src/org/biojava/bio/symbol/AlphabetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 11553, 5335, 752, 5335, 12, 565, 1149, 1147, 16, 514, 508, 16, 6090, 3204, 225, 262, 288, 565, 11553, 5335, 487, 273, 394, 478, 1074, 14773, 287, 23102, 5335, 12, 529, 16, 3204, 1769, 565, 327, 487, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 1071, 11553, 5335, 752, 5335, 12, 565, 1149, 1147, 16, 514, 508, 16, 6090, 3204, 225, 262, 288, 565, 11553, 5335, 487, 273, 394, 478, 1074, 14773, 287, 23102, 5335, 12, 529, 16, 3204, 1769, 565, 327, 487, 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 ]
Preferences prefs = getPreferences(INTERNAL_BUILDER); if(prefs != null){ prefs.putBoolean(INTERNAL_BUILDER_IGNORE_ERR, ignore); try { prefs.flush(); } catch (BackingStoreException e) { } }
setInternalBuilderBoolean(ignore, INTERNAL_BUILDER_IGNORE_ERR);
public void setInternalBuilderIgnoreErr(boolean ignore){// if(internalBuilderIgnoreErr != ignore){ internalBuilderIgnoreErr = ignore; Preferences prefs = getPreferences(INTERNAL_BUILDER); if(prefs != null){ prefs.putBoolean(INTERNAL_BUILDER_IGNORE_ERR, ignore); try { prefs.flush(); } catch (BackingStoreException e) { } }// } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c3bcbb5d9e76e91741f2fbc3c8e7e1b781139a57/Configuration.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3061, 1263, 3777, 2524, 12, 6494, 2305, 15329, 759, 202, 202, 430, 12, 7236, 1263, 3777, 2524, 480, 2305, 15329, 1082, 202, 7236, 1263, 3777, 2524, 273, 2305, 31, 1082, 202, 12377, 15503, 273, 336, 12377, 12, 14005, 67, 3000, 2627, 4179, 1769, 1082, 202, 430, 12, 1484, 2556, 480, 446, 15329, 9506, 202, 1484, 2556, 18, 458, 5507, 12, 14005, 67, 3000, 2627, 4179, 67, 20118, 67, 9712, 16, 2305, 1769, 9506, 202, 698, 288, 6862, 202, 1484, 2556, 18, 11330, 5621, 9506, 202, 97, 1044, 261, 2711, 310, 21151, 425, 13, 288, 9506, 202, 97, 1082, 202, 97, 759, 202, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3061, 1263, 3777, 2524, 12, 6494, 2305, 15329, 759, 202, 202, 430, 12, 7236, 1263, 3777, 2524, 480, 2305, 15329, 1082, 202, 7236, 1263, 3777, 2524, 273, 2305, 31, 1082, 202, 12377, 15503, 273, 336, 12377, 12, 14005, 67, 3000, 2627, 4179, 1769, 1082, 202, 430, 12, 1484, 2556, 480, 446, 15329, 9506, 202, 1484, 2556, 18, 458, 5507, 12, 14005, 67, 3000, 2627, 4179, 67, 20118, 67, 9712, 16, 2305, 1769, 9506, 202, 698, 288, 6862, 202, 1484, 2556, 18, 11330, 5621, 9506, 202, 97, 1044, 261, 2711, 310, 21151, 425, 13, 288, 9506, 202, 97, 1082, 202, 97, 759, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
case 633:
case 632:
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 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, 20416, 19, 4749, 26, 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, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 7508, 461, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 6549, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 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, 20416, 19, 4749, 26, 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, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 2 ]
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx();
public quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { quickfix.field.LegSymbolSfx value = new quickfix.field.LegSymbolSfx();
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositions.java/buggy/src/java/src/quickfix/fix44/RequestForPositions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 55, 19595, 336, 8329, 5335, 55, 19595, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 55, 19595, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 55, 19595, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 55, 19595, 336, 8329, 5335, 55, 19595, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 55, 19595, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 55, 19595, 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 ]
if (DO_OUTPUT) { System.out.println("CodeEditUtil.addChildrenBefore\n" + parent.getPsi().getContainingFile().getText()); }
public static TreeElement addChildren(CompositeElement parent, ASTNode first, ASTNode last, ASTNode anchorBefore) { checkAllWhiteSpaces(parent); ASTNode lastChild = last != null ? last.getTreeNext() : null; first = trimWhiteSpaces(first, lastChild); if (first == null) { return null; } boolean keepFirstIndent = false; final ASTNode elemBeforeAnchor = getElementBeforeAnchor(parent, anchorBefore); if (elemBeforeAnchor != null) { ASTNode firstNonEmpty = findFirstNonEmpty(first, lastChild, parent, anchorBefore); if (firstNonEmpty == null || canKeepFirstIndent(elemBeforeAnchor, firstNonEmpty, parent)){ keepFirstIndent = true; } } saveIndents(first, lastChild); ASTNode nextElement = anchorBefore; if (nextElement == null) { nextElement = findElementAfter(parent, false); } else if (isWS(nextElement)) { nextElement = findElementAfter(anchorBefore, false); } if (nextElement != null) { saveIndents(nextElement); } parent.addChildren(first, lastChild, anchorBefore); final List<ASTNode> treePrev = getPreviousElements(first); adjustWhiteSpaces(first, anchorBefore, keepFirstIndent); if (nextElement != null) { adjustWhiteSpaces(nextElement, nextElement.getTreeNext(), false); } checkAllWhiteSpaces(parent); if (treePrev == null) { return (TreeElement)parent.getFirstChildNode(); } else { ASTNode firstValid = findFirstValid(treePrev); if (firstValid == null) { return (TreeElement)parent.getFirstChildNode(); } else { return (TreeElement)firstValid.getTreeNext(); } } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/69cbdaa6919556b1e5e8c90f2564d9f88fb7549f/CodeEditUtil.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 309, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 1071, 430, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 760, 430, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 4902, 1046, 430, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 527, 4212, 12, 9400, 1046, 430, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 982, 16, 430, 261, 3191, 67, 15527, 13, 288, 2332, 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, 309, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 309, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 1071, 430, 261, 3191, 67, 15527, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1085, 4666, 1304, 18, 1289, 4212, 4649, 64, 82, 6, 397, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 7675, 588, 1528, 10663, 289, 760, 430, 261, 3191, 2 ]
return Arrays.asList(evaluator.getSchemaReader().getLevelMembers(level));
Member[] members = evaluator.getSchemaReader().getLevelMembers(level); ArrayList memberList = new ArrayList(Arrays.asList(members)); if (memberList != null) { removeCalculatedMembers(memberList); } return memberList;
public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = (Level) getArg(evaluator, args, 0); return Arrays.asList(evaluator.getSchemaReader().getLevelMembers(level)); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/c9e00c64943ce43962e024696d2be989490b4a44/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 7734, 4557, 1801, 273, 261, 2355, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 7734, 8596, 8526, 4833, 273, 18256, 18, 588, 3078, 2514, 7675, 588, 2355, 6918, 12, 2815, 1769, 2407, 3140, 682, 273, 394, 2407, 12, 12726, 18, 345, 682, 12, 7640, 10019, 309, 261, 5990, 682, 480, 446, 13, 288, 1206, 4844, 690, 6918, 12, 5990, 682, 1769, 289, 327, 3140, 682, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 7734, 4557, 1801, 273, 261, 2355, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 7734, 8596, 8526, 4833, 273, 18256, 18, 588, 3078, 2514, 7675, 588, 2355, 6918, 12, 2815, 1769, 2407, 3140, 682, 273, 394, 2407, 12, 12726, 18, 345, 682, 12, 7640, 10019, 309, 261, 5990, 682, 480, 446, 13, 288, 1206, 4844, 690, 6918, 12, 5990, 682, 1769, 289, 327, 3140, 682, 31, 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 ]
public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IEditorPart editorPart = IDE.openEditor( page, file, true ); setReportSettings(((IDEReportEditor)editorPart).getModel()); editorPart.doSave(null); BasicNewProjectResourceWizard.updatePerspective( configElement ); if ( showCheat && !cheatId.equals( "" ) ) //$NON-NLS-1$ { OpenCheatSheetAction action = null; // Temporary remark the choice page for that feature is // not supported in R1 // if ( choicePage.isCustom( ) ) // { // action = new OpenCheatSheetAction( file.getName( ), // file.getName( ), // new URL( cheatId ) ); //$NON-NLS-1$ // } // else // { action = new OpenCheatSheetAction( cheatId ); // } action.run( ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d99dacb66a1a83c9b92f03acef4adfb1206373a0/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 262, 1082, 202, 95, 9506, 202, 45, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 12, 11272, 9506, 202, 45, 2421, 22144, 3829, 2742, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 12, 11272, 9506, 202, 45, 2421, 22144, 1964, 1363, 273, 2742, 18, 588, 3896, 1964, 12, 11272, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 6946, 1988, 4858, 1988, 273, 1599, 41, 18, 3190, 6946, 12, 1363, 16, 585, 16, 638, 11272, 6862, 202, 542, 4820, 2628, 12443, 12, 10385, 4820, 6946, 13, 9177, 1988, 2934, 588, 1488, 10663, 6862, 202, 9177, 1988, 18, 2896, 4755, 12, 2011, 1769, 6862, 25083, 202, 8252, 1908, 4109, 1420, 27130, 18, 2725, 14781, 16772, 12, 642, 1046, 11272, 6862, 202, 430, 261, 2405, 39, 580, 270, 597, 401, 18706, 270, 548, 18, 14963, 12, 1408, 262, 262, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 95, 25083, 202, 3678, 39, 580, 270, 8229, 1803, 1301, 273, 446, 31, 25083, 202, 759, 25083, 202, 11685, 849, 1313, 326, 6023, 1363, 364, 716, 2572, 353, 25083, 202, 759, 486, 3260, 316, 534, 21, 25083, 202, 759, 25083, 202, 430, 261, 6023, 1964, 18, 291, 3802, 12, 262, 262, 25083, 202, 759, 25083, 202, 95, 25083, 202, 759, 6862, 1082, 202, 1128, 273, 394, 3502, 39, 580, 270, 8229, 1803, 12, 585, 18, 17994, 12, 262, 16, 25083, 202, 759, 6862, 6862, 202, 768, 18, 17994, 12, 262, 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, 1875, 202, 482, 918, 1086, 12, 262, 1082, 202, 95, 9506, 202, 45, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 12, 11272, 9506, 202, 45, 2421, 22144, 3829, 2742, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 12, 11272, 9506, 202, 45, 2421, 22144, 1964, 1363, 273, 2742, 18, 588, 3896, 1964, 12, 11272, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 6946, 1988, 4858, 1988, 273, 1599, 41, 18, 3190, 6946, 12, 1363, 16, 585, 16, 638, 11272, 6862, 202, 542, 4820, 2628, 12443, 12, 10385, 4820, 6946, 13, 9177, 1988, 2934, 588, 1488, 10663, 6862, 202, 9177, 1988, 18, 2896, 4755, 12, 2011, 1769, 6862, 25083, 202, 8252, 1908, 4109, 1420, 2 ]
throw new IllegalArgumentException("Method method name must start with 'set' " + method);
throw new IllegalArgumentException("Method name must start with 'set' " + method);
public void addSetter(Object target, Method method) { if (!method.getName().startsWith("set")) { throw new IllegalArgumentException("Method method name must start with 'set' " + method); } addSetter(method.getName().substring(3), target, method); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/91ccebaf61a6fdee3b72cd0595c007f6d0568eb5/DynamicGBeanDelegate.java/buggy/modules/kernel/src/java/org/apache/geronimo/gbean/DynamicGBeanDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 8465, 12, 921, 1018, 16, 2985, 707, 13, 288, 3639, 309, 16051, 2039, 18, 17994, 7675, 17514, 1190, 2932, 542, 6, 3719, 288, 5411, 604, 394, 2754, 2932, 1305, 508, 1297, 787, 598, 296, 542, 11, 315, 397, 707, 1769, 3639, 289, 3639, 527, 8465, 12, 2039, 18, 17994, 7675, 28023, 12, 23, 3631, 1018, 16, 707, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 8465, 12, 921, 1018, 16, 2985, 707, 13, 288, 3639, 309, 16051, 2039, 18, 17994, 7675, 17514, 1190, 2932, 542, 6, 3719, 288, 5411, 604, 394, 2754, 2932, 1305, 508, 1297, 787, 598, 296, 542, 11, 315, 397, 707, 1769, 3639, 289, 3639, 527, 8465, 12, 2039, 18, 17994, 7675, 28023, 12, 23, 3631, 1018, 16, 707, 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 ]
if (selection instanceof IStructuredSelection) selectionToPass = (IStructuredSelection) selection;
if (selection instanceof IStructuredSelection) { selectionToPass = (IStructuredSelection) selection; }
public void run() { // Create wizard selection wizard. IWorkbench workbench = PlatformUI.getWorkbench(); NewWizard wizard = new NewWizard(); wizard.setProjectsOnly(true); ISelection selection = window.getSelectionService().getSelection(); IStructuredSelection selectionToPass = StructuredSelection.EMPTY; if (selection instanceof IStructuredSelection) selectionToPass = (IStructuredSelection) selection; wizard.init(workbench, selectionToPass); IDialogSettings workbenchSettings = IDEWorkbenchPlugin.getDefault() .getDialogSettings(); IDialogSettings wizardSettings = workbenchSettings .getSection("NewWizardAction");//$NON-NLS-1$ if (wizardSettings == null) wizardSettings = workbenchSettings.addNewSection("NewWizardAction");//$NON-NLS-1$ wizard.setDialogSettings(wizardSettings); wizard.setForcePreviousAndNextButtons(true); // Create wizard dialog. WizardDialog dialog = new WizardDialog(null, wizard); dialog.create(); dialog.getShell().setSize( Math.max(SIZING_WIZARD_WIDTH, dialog.getShell().getSize().x), SIZING_WIZARD_HEIGHT); PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(), IIDEHelpContextIds.NEW_PROJECT_WIZARD); // Open wizard. dialog.open(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NewProjectAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewProjectAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 368, 1788, 24204, 4421, 24204, 18, 3639, 467, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 5621, 3639, 1166, 27130, 24204, 273, 394, 1166, 27130, 5621, 3639, 24204, 18, 542, 15298, 3386, 12, 3767, 1769, 3639, 467, 6233, 4421, 273, 2742, 18, 588, 6233, 1179, 7675, 588, 6233, 5621, 3639, 467, 30733, 6233, 4421, 774, 6433, 273, 7362, 2862, 6233, 18, 13625, 31, 3639, 309, 261, 10705, 1276, 467, 30733, 6233, 13, 5411, 4421, 774, 6433, 273, 261, 45, 30733, 6233, 13, 4421, 31, 3639, 24204, 18, 2738, 12, 1252, 22144, 16, 4421, 774, 6433, 1769, 3639, 1599, 3529, 2628, 1440, 22144, 2628, 273, 1599, 41, 2421, 22144, 3773, 18, 588, 1868, 1435, 7734, 263, 588, 6353, 2628, 5621, 3639, 1599, 3529, 2628, 24204, 2628, 273, 1440, 22144, 2628, 7734, 263, 588, 5285, 2932, 1908, 27130, 1803, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 3639, 309, 261, 31837, 2628, 422, 446, 13, 5411, 24204, 2628, 273, 1440, 22144, 2628, 18, 1289, 1908, 5285, 2932, 1908, 27130, 1803, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 3639, 24204, 18, 542, 6353, 2628, 12, 31837, 2628, 1769, 3639, 24204, 18, 542, 10997, 8351, 24072, 14388, 12, 3767, 1769, 3639, 368, 1788, 24204, 6176, 18, 3639, 678, 13412, 6353, 6176, 273, 394, 678, 13412, 6353, 12, 2011, 16, 24204, 1769, 3639, 6176, 18, 2640, 5621, 3639, 6176, 18, 588, 13220, 7675, 542, 1225, 12, 7734, 2361, 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, 1086, 1435, 288, 3639, 368, 1788, 24204, 4421, 24204, 18, 3639, 467, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 5621, 3639, 1166, 27130, 24204, 273, 394, 1166, 27130, 5621, 3639, 24204, 18, 542, 15298, 3386, 12, 3767, 1769, 3639, 467, 6233, 4421, 273, 2742, 18, 588, 6233, 1179, 7675, 588, 6233, 5621, 3639, 467, 30733, 6233, 4421, 774, 6433, 273, 7362, 2862, 6233, 18, 13625, 31, 3639, 309, 261, 10705, 1276, 467, 30733, 6233, 13, 5411, 4421, 774, 6433, 273, 261, 45, 30733, 6233, 13, 4421, 31, 3639, 24204, 18, 2738, 12, 1252, 22144, 16, 4421, 774, 6433, 1769, 3639, 1599, 3529, 2628, 1440, 22144, 2628, 273, 1599, 41, 2421, 22144, 3773, 2 ]
return pageSize.left(marginLeft); }
return pageSize.left(marginLeft); }
public float left() { return pageSize.left(marginLeft); }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/6374fb541ec4c884f13ffe782fa31c3ec1facb37/Document.java/clean/src/com/lowagie/text/Document.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 2002, 1435, 288, 3639, 327, 13387, 18, 4482, 12, 10107, 3910, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 2002, 1435, 288, 3639, 327, 13387, 18, 4482, 12, 10107, 3910, 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, -100, -100, -100, -100, -100, -100, -100, -100 ]
Logger.trace("StendhalRPZone::placeObjectAtZoneChangePoint","D","Choosen entry point: ("+minpoint+") --> "+distance);
logger.debug("Choosen entry point: ("+minpoint+") --> "+distance);
public void placeObjectAtZoneChangePoint(StendhalRPZone oldzone, Entity object) { if(zoneChangePoints.size()==0) { return; } String exitDirection=null; if(object.gety()<4) { exitDirection="N"; } else if(object.gety()>oldzone.getHeight()-4) { exitDirection="S"; } else if(object.getx()<4) { exitDirection="W"; } else if(object.getx()>oldzone.getWidth()-4) { exitDirection="E"; } else { // NOTE: If any of the above is true, then it just put object on the first zone change point. String[] components=zoneChangePoints.get(0).split(","); Logger.trace("StendhalRPZone::placeObjectAtZoneChangePoint","D","Player zone change default: "+components); object.setx(Integer.parseInt(components[0])); object.sety(Integer.parseInt(components[1])); return; } Logger.trace("StendhalRPZone::placeObjectAtZoneChangePoint","D","Player exit direction: "+exitDirection); int x=0; int y=0; int distance=Integer.MAX_VALUE; String minpoint=zoneChangePoints.get(0); if(exitDirection.equals("N")) { x=object.getx(); y=getHeight(); } else if(exitDirection.equals("S")) { x=object.getx(); y=0; } else if(exitDirection.equals("W")) { x=getWidth(); y=object.gety(); } else if(exitDirection.equals("E")) { x=0; y=object.gety(); } Logger.trace("StendhalRPZone::placeObjectAtZoneChangePoint","D","Player entry point: ("+x+","+y+")"); for(String point: zoneChangePoints) { String[] components=point.split(","); int px=Integer.parseInt(components[0]); int py=Integer.parseInt(components[1]); if((px-x)*(px-x)+(py-y)*(py-y)<distance) { Logger.trace("StendhalRPZone::placeObjectAtZoneChangePoint","D","Best entry point: ("+px+","+py+") --> "+distance); distance=(px-x)*(px-x)+(py-y)*(py-y); minpoint=point; } } Logger.trace("StendhalRPZone::placeObjectAtZoneChangePoint","D","Choosen entry point: ("+minpoint+") --> "+distance); String[] components=minpoint.split(","); object.setx(Integer.parseInt(components[0])); object.sety(Integer.parseInt(components[1])); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/2f5a2a4a5b59a172e667611127a4c633125829e5/StendhalRPZone.java/buggy/src/games/stendhal/server/StendhalRPZone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3166, 921, 861, 4226, 3043, 2148, 12, 510, 409, 22314, 54, 52, 4226, 1592, 3486, 16, 3887, 733, 13, 565, 288, 565, 309, 12, 3486, 3043, 5636, 18, 1467, 1435, 631, 20, 13, 1377, 288, 1377, 327, 31, 1377, 289, 1850, 514, 2427, 8212, 33, 2011, 31, 565, 309, 12, 1612, 18, 588, 93, 1435, 32, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 50, 14432, 1377, 289, 565, 469, 309, 12, 1612, 18, 588, 93, 1435, 34, 1673, 3486, 18, 588, 2686, 1435, 17, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 55, 14432, 1377, 289, 565, 469, 309, 12, 1612, 18, 588, 92, 1435, 32, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 59, 14432, 1377, 289, 565, 469, 309, 12, 1612, 18, 588, 92, 1435, 34, 1673, 3486, 18, 588, 2384, 1435, 17, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 41, 14432, 1377, 289, 565, 469, 1377, 288, 1377, 368, 5219, 30, 971, 1281, 434, 326, 5721, 353, 638, 16, 1508, 518, 2537, 1378, 733, 603, 326, 1122, 4157, 2549, 1634, 18, 1377, 514, 8526, 4085, 33, 3486, 3043, 5636, 18, 588, 12, 20, 2934, 4939, 2932, 16, 8863, 1377, 4242, 18, 5129, 2932, 510, 409, 22314, 54, 52, 4226, 2866, 964, 921, 861, 4226, 3043, 2148, 15937, 40, 15937, 12148, 4157, 2549, 805, 30, 13773, 8119, 1769, 1377, 733, 18, 542, 92, 12, 4522, 18, 2670, 1702, 12, 8119, 63, 20, 5717, 1769, 1377, 733, 18, 542, 93, 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, 282, 1071, 918, 3166, 921, 861, 4226, 3043, 2148, 12, 510, 409, 22314, 54, 52, 4226, 1592, 3486, 16, 3887, 733, 13, 565, 288, 565, 309, 12, 3486, 3043, 5636, 18, 1467, 1435, 631, 20, 13, 1377, 288, 1377, 327, 31, 1377, 289, 1850, 514, 2427, 8212, 33, 2011, 31, 565, 309, 12, 1612, 18, 588, 93, 1435, 32, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 50, 14432, 1377, 289, 565, 469, 309, 12, 1612, 18, 588, 93, 1435, 34, 1673, 3486, 18, 588, 2686, 1435, 17, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 55, 14432, 1377, 289, 565, 469, 309, 12, 1612, 18, 588, 92, 1435, 32, 24, 13, 1377, 288, 1377, 2427, 8212, 1546, 59, 2 ]
public void undo() throws CannotUndoException {
public void undo() throws CannotUndoException { super.undo();
public void undo() throws CannotUndoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo()
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/clean/libjava/javax/swing/undo/CompoundEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15436, 1435, 1216, 14143, 31224, 503, 288, 202, 202, 759, 23536, 202, 202, 474, 9506, 202, 1615, 31, 202, 202, 31224, 429, 4666, 202, 2972, 31, 202, 202, 759, 9720, 3059, 777, 7542, 1351, 2896, 429, 2671, 1282, 202, 202, 1884, 261, 1615, 273, 24450, 18, 1467, 1435, 300, 404, 31, 770, 1545, 374, 31, 770, 413, 13, 288, 1082, 202, 2972, 273, 261, 31224, 429, 4666, 13, 24450, 18, 2956, 861, 12, 1615, 1769, 1082, 202, 2972, 18, 31226, 5621, 202, 202, 97, 368, 364, 30, 770, 202, 97, 368, 15436, 1435, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15436, 1435, 1216, 14143, 31224, 503, 288, 202, 202, 759, 23536, 202, 202, 474, 9506, 202, 1615, 31, 202, 202, 31224, 429, 4666, 202, 2972, 31, 202, 202, 759, 9720, 3059, 777, 7542, 1351, 2896, 429, 2671, 1282, 202, 202, 1884, 261, 1615, 273, 24450, 18, 1467, 1435, 300, 404, 31, 770, 1545, 374, 31, 770, 413, 13, 288, 1082, 202, 2972, 273, 261, 31224, 429, 4666, 13, 24450, 18, 2956, 861, 12, 1615, 1769, 1082, 202, 2972, 18, 31226, 5621, 202, 202, 97, 368, 364, 30, 770, 202, 97, 368, 15436, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
/*
public void setTimeout(CostBenefitDiagnosis cbd, String defenseName, long l) { CostBenefitDiagnosis.DefenseBenefit defenses[] = cbd.getDefenses(); CostBenefitDiagnosis.DefenseBenefit def; for (int i=0; i<defenses.length; i++) { def = defenses[i]; if (def.getDefense() != null && def.getDefense().getName().equalsIgnoreCase(defenseName)) { def.setTimeout(l); break; } } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/b29394a0282e89d1f7ab91d947fece26971b22eb/TestObservationServlet.java/clean/Coordinator/src/org/cougaar/coordinator/test/defense/TestObservationServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 1748, 1748, 1748, 1071, 20308, 918, 20308, 9643, 12, 8018, 38, 4009, 7216, 14058, 18050, 291, 20308, 2875, 72, 16, 20308, 514, 20308, 1652, 3558, 461, 16, 20308, 1525, 20308, 328, 13176, 14, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 28108, 38, 4009, 7216, 14058, 18050, 291, 18, 3262, 3558, 38, 4009, 7216, 20308, 1652, 13907, 8526, 20308, 273, 20308, 2875, 72, 18, 588, 3262, 13907, 5621, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 28108, 38, 4009, 7216, 14058, 18050, 291, 18, 3262, 3558, 38, 4009, 7216, 20308, 1652, 31, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 364, 20308, 261, 474, 20308, 277, 33, 20, 31, 20308, 277, 32, 536, 13907, 18, 2469, 31, 20308, 277, 27245, 20308, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1652, 20308, 273, 20308, 1652, 13907, 63, 77, 15533, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 309, 20308, 261, 536, 18, 588, 3262, 3558, 1435, 20308, 480, 20308, 446, 20308, 597, 20308, 1652, 18, 588, 3262, 3558, 7675, 17994, 7675, 14963, 5556, 12, 536, 3558, 461, 3719, 20308, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1652, 18, 542, 2694, 12, 80, 1769, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 898, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 1748, 1748, 1748, 1071, 20308, 918, 20308, 9643, 12, 8018, 38, 4009, 7216, 14058, 18050, 291, 20308, 2875, 72, 16, 20308, 514, 20308, 1652, 3558, 461, 16, 20308, 1525, 20308, 328, 13176, 14, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 28108, 38, 4009, 7216, 14058, 18050, 291, 18, 3262, 3558, 38, 4009, 7216, 20308, 1652, 13907, 8526, 20308, 273, 20308, 2875, 72, 18, 588, 3262, 13907, 5621, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 28108, 38, 4009, 7216, 14058, 18050, 291, 18, 3262, 3558, 38, 4009, 7216, 20308, 1652, 31, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 364, 2 ]
DesignVisitor.this.visitTemplateElement( obj.handle( module ) );
DesignVisitor.this.visitTemplateReportItem( obj.handle( module ) );
public void visitTemplateReportItem( TemplateReportItem obj ) { DesignVisitor.this.visitTemplateElement( obj.handle( module ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e64d86292ae50f2eb8aae489886a1d81adad59c9/DesignVisitor.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 2283, 4820, 1180, 12, 5035, 4820, 1180, 1081, 262, 202, 202, 95, 1082, 202, 15478, 7413, 18, 2211, 18, 11658, 2283, 1046, 12, 1081, 18, 4110, 12, 1605, 262, 11272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3757, 2283, 4820, 1180, 12, 5035, 4820, 1180, 1081, 262, 202, 202, 95, 1082, 202, 15478, 7413, 18, 2211, 18, 11658, 2283, 1046, 12, 1081, 18, 4110, 12, 1605, 262, 11272, 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 ]
public void constantExpression() throws Exception { conditionalExpression();
protected void constantExpression( Object expression ) throws Exception { conditionalExpression( expression );
public void constantExpression() throws Exception { conditionalExpression(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/14f209afacefaf1ea1c7cf1c38e0c44afbb6e571/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5381, 2300, 1435, 1216, 1185, 288, 202, 202, 22019, 2300, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5381, 2300, 1435, 1216, 1185, 288, 202, 202, 22019, 2300, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void testGenerateTableName() { //String generateTableName(String modelName, String objectName); Collection list = new ArrayList(); for (int i = 0; i < 200; i++) { String tableName = m_generator.generateTableName("com.arsdigita.foo", "myObjectName"); assert("generateTable produced duplicated table names: " + tableName, !list.contains(tableName.toLowerCase())); list.add(tableName.toLowerCase()); } // now that we know that it does not put out duplicates, let's check // for length String tableName = m_generator.generateTableName ("my.long.project.namespace.foo", "myReallyReallyLongObjectName"); assert("the table name passed back is too long", tableName.length() <= 26); // using a table we know that is in the system, let's see if // we get back a unique name tableName = m_generator.generateTableName("acs", "objects"); assert("the table generated is not correct", !"acs_objects".equals(tableName)); } /** * This tests the code to create a table and to drop * a table by actually creating and dropping a table. * It is definately not robust but it is a start *//* public void testGenerateCreateAndDropTableFAILS() { // create object type String superTypeString = "com.arsdigita.kernel.ACSObject"; String objectTypeModel = "com.arsdigita.kernel"; DynamicObjectType dot = new DynamicObjectType("myTestObjectType", m_root.getObjectType ("com.arsdigita.kernel.ACSObject")); dot.addOptionalAttribute("optionalAttribute", MetadataRoot.STRING, 300); dot.addOptionalAttribute("optionalAttribute2", MetadataRoot.BOOLEAN); dot.addRequiredAttribute("requiredAttribute", MetadataRoot.BOOLEAN, new Boolean(true)); dot.addRequiredAttribute("requiredAttribute2", MetadataRoot.STRING, 200, "my required attribute"); ObjectType objectType = dot.save(); m_tables.add(objectType.getReferenceKey().getTableName()); m_objectTypes.add(objectType); String createTableString = m_generator.generateCreateTable(objectType); String dropTableString = m_generator.generateDropTable(objectType); assert("The create table should start with 'create table'. Instead, " + "it was " + Utilities.LINE_BREAK + createTableString, createTableString.indexOf("create table") < 2 || createTableString.indexOf("create table") > 0); assert("The drop table string is not correct. It should have been " + Utilities.LINE_BREAK + "drop table " + objectType.getReferenceKey().getTableName() + Utilities.LINE_BREAK + "but actuall was " + Utilities.LINE_BREAK + dropTableString, ("drop table " + objectType.getReferenceKey().getTableName()) .equals(dropTableString)); try { java.sql.Statement statement = SessionManager.getSession() .getConnection() .createStatement(); statement.executeUpdate(createTableString); statement.executeUpdate(dropTableString); } catch (SQLException e) { fail("The system either failed to create or failed to drop the " + "table" + Utilities.LINE_BREAK + " CREATE: " + Utilities.LINE_BREAK + createTableString + Utilities.LINE_BREAK + " DROP: " + Utilities.LINE_BREAK + dropTableString + Utilities.LINE_BREAK + e.getMessage()); } }*/ /** * This makes sure that the system generates the correct syntax * for adding columns to an existing table *//* public void testAlterTablePrefixAddColumns() { String prefix = m_generator.alterTablePrefixAddColumns("myTable"); int alterIndex = prefix.indexOf("alter"); int tableIndex = prefix.indexOf("table"); int tableNameIndex = prefix.indexOf("myTable"); int addIndex = prefix.indexOf("add"); int parenIndex = prefix.indexOf("("); assert("One of the required items was not included or was in the " + "wrong order. The system returned [" + prefix + "] but should " + "have returned something like [alter table myTable add (]", alterIndex > -1 && alterIndex < tableIndex && tableIndex < tableNameIndex && tableNameIndex < addIndex && addIndex < parenIndex); }*/ /** * This makes sure that the system generates the correct syntax * for removing columns from existing tables *//* public void testAlterTablePrefixRemoveColumns() { String prefix = m_generator.alterTablePrefixRemoveColumns("myTable"); int alterIndex = prefix.indexOf("alter"); int tableIndex = prefix.indexOf("table"); int tableNameIndex = prefix.indexOf("myTable"); int dropIndex = prefix.indexOf("drop"); int parenIndex = prefix.indexOf("("); assert("One of the required items was not included or was in the " + "wrong order. The system returned [" + prefix + "] but should " + "have returned something like [alter table myTable drop (]", alterIndex > -1 && alterIndex < tableIndex && tableIndex < tableNameIndex && tableNameIndex < dropIndex && dropIndex < parenIndex); }*/ /** * This makes sure that the system generates the correct syntax * for creating a new table given a table name *//* public void testCreateTablePrefix() { String prefix = m_generator.createTablePrefix("myTable"); int createIndex = prefix.indexOf("create"); int tableIndex = prefix.indexOf("table"); int tableNameIndex = prefix.indexOf("myTable"); int parenIndex = prefix.indexOf("("); assert("One of the required items was not included or was in the " + "wrong order. The system returned [" + prefix + "] but should " + "have returned something like [create table myTable (]", createIndex > -1 && createIndex < tableIndex && tableIndex < tableNameIndex && tableNameIndex < parenIndex); }*/ /** * This makes sure that the system generates unique column names * that can be added to an alter table or create table statement */ public void testGenerateColumnName() { //TODO //String generateColumnName(ObjectType obectType, String proposedName); ArrayList columns = new ArrayList(); DynamicObjectType dot = new DynamicObjectType("myTestObjectType3", m_root.getObjectType ("com.arsdigita.kernel.ACSObject")); ObjectType objectType = dot.getObjectType(); Table table = objectType.getReferenceKey().getTable(); // let's test to make sure that it gives back different columns for (int i = 0; i < 200; i++) { String columnName = m_generator.generateColumnName(objectType, "myObjectName"); assert("generateColumn produced a duplicate column name: " + columnName, !columns.contains(columnName.toLowerCase())); Property property = new Property("prop" + i, MetadataRoot.BIGDECIMAL, Property.REQUIRED); columns.add(columnName.toLowerCase()); property.setColumn(new Column(table, columnName, java.sql.Types.INTEGER, 32)); objectType.addProperty(property); } // now that we know that it does not put out duplicates, let's check // for length String columnName = m_generator.generateColumnName (objectType, "myReallyReallyLongObjectName"); assert("the column name passed back is too long", columnName.length() <= 26); } /** * Check that we can extend a non-integer keyed table */ public void testNonIntegerPrimaryKey() { DynamicObjectType dot = new DynamicObjectType( "subEmail", m_root.getObjectType("com.arsdigita.kernel.EmailAddress")); dot.addOptionalAttribute("testAttr1", MetadataRoot.STRING); ObjectType type = dot.save(); DataObject testObj = getSession().create(type); testObj.set("emailAddress", "bob@bob.bob"); testObj.set("isBouncing", Boolean.FALSE); testObj.set("isVerified", Boolean.TRUE); testObj.set("testAttr1", "hello bob"); testObj.save(); testObj = getSession().retrieve(new OID(type, "bob@bob.bob")); assert("Primary key not set", ((String)testObj.get("emailAddress")).equals("bob@bob.bob")); assert("Test attribute not saved", ((String)testObj.get("testAttr1")).equals("hello bob")); testObj.delete(); m_tables.add(type.getReferenceKey().getTableName()); m_objectTypes.add(type); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/BaseDDLGeneratorTest.java/buggy/archive/core-platform/test/src/com/arsdigita/persistence/metadata/BaseDDLGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4625, 7147, 1435, 288, 3639, 368, 780, 2103, 7147, 12, 780, 12052, 16, 514, 12282, 1769, 3639, 2200, 666, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4044, 31, 277, 27245, 288, 5411, 514, 4775, 273, 312, 67, 8812, 18, 7163, 7147, 2932, 832, 18, 5913, 11052, 69, 18, 11351, 3113, 4766, 11794, 315, 4811, 16707, 8863, 5411, 1815, 2932, 7163, 1388, 14929, 16975, 1014, 1257, 30, 315, 397, 4775, 16, 10402, 401, 1098, 18, 12298, 12, 18033, 18, 869, 5630, 1435, 10019, 5411, 666, 18, 1289, 12, 18033, 18, 869, 5630, 10663, 3639, 289, 3639, 368, 2037, 716, 732, 5055, 716, 518, 1552, 486, 1378, 596, 11211, 16, 2231, 1807, 866, 3639, 368, 364, 769, 3639, 514, 4775, 273, 312, 67, 8812, 18, 7163, 7147, 5411, 7566, 4811, 18, 5748, 18, 4406, 18, 4937, 18, 11351, 3113, 315, 4811, 426, 1230, 426, 1230, 3708, 16707, 8863, 3639, 1815, 2932, 5787, 1014, 508, 2275, 1473, 353, 4885, 1525, 3113, 7734, 4775, 18, 2469, 1435, 1648, 10659, 1769, 3639, 368, 1450, 279, 1014, 732, 5055, 716, 353, 316, 326, 2619, 16, 2231, 1807, 2621, 309, 3639, 368, 732, 336, 1473, 279, 3089, 508, 3639, 4775, 273, 312, 67, 8812, 18, 7163, 7147, 2932, 28965, 3113, 315, 6911, 8863, 3639, 1815, 2932, 5787, 1014, 4374, 353, 486, 3434, 3113, 9079, 29054, 28965, 67, 6911, 9654, 14963, 12, 18033, 10019, 5411, 289, 565, 1783, 377, 380, 225, 1220, 7434, 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, 377, 1071, 918, 1842, 4625, 7147, 1435, 288, 3639, 368, 780, 2103, 7147, 12, 780, 12052, 16, 514, 12282, 1769, 3639, 2200, 666, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4044, 31, 277, 27245, 288, 5411, 514, 4775, 273, 312, 67, 8812, 18, 7163, 7147, 2932, 832, 18, 5913, 11052, 69, 18, 11351, 3113, 4766, 11794, 315, 4811, 16707, 8863, 5411, 1815, 2932, 7163, 1388, 14929, 16975, 1014, 1257, 30, 315, 397, 4775, 16, 10402, 401, 1098, 18, 12298, 12, 18033, 18, 869, 5630, 1435, 10019, 5411, 666, 18, 1289, 12, 18033, 18, 869, 5630, 10663, 3639, 289, 3639, 368, 2037, 716, 732, 5055, 716, 518, 1552, 486, 1378, 596, 11211, 16, 2 ]
if (myType != null && myType.getWeaverState() != null) {
myGen.addAttribute(BcelAttributes.bcelAttribute(new AjAttribute.WeaverVersionInfo(),getConstantPoolGen())); if (myType != null && myType.getWeaverState() != null) {
private void writeBack(BcelWorld world) { if (getConstantPoolGen().getSize() > Short.MAX_VALUE) { // PR 59208 // we've generated a class that is just toooooooooo big (you've been generating programs // again haven't you? come on, admit it, no-one writes classes this big by hand). // create an empty myGen so that we can give back a return value that doesn't upset the // rest of the process. myGen = new ClassGen(myGen.getClassName(), myGen.getSuperclassName(), myGen.getFileName(), myGen.getAccessFlags(), myGen.getInterfaceNames()); // raise an error against this compilation unit. getWorld().showMessage( IMessage.ERROR, WeaverMessages.format(WeaverMessages.CLASS_TOO_BIG, this.getClassName()), new SourceLocation(new File(myGen.getFileName()),0), null ); return; } if (myType != null && myType.getWeaverState() != null) { myGen.addAttribute(BcelAttributes.bcelAttribute( new AjAttribute.WeaverState(myType.getWeaverState()), getConstantPoolGen())); } addAjcInitializers(); int len = methodGens.size(); myGen.setMethods(new Method[0]); calculateSourceDebugExtensionOffsets(); for (int i = 0; i < len; i++) { LazyMethodGen gen = (LazyMethodGen) methodGens.get(i); // we skip empty clinits if (isEmptyClinit(gen)) continue; myGen.addMethod(gen.getMethod()); } if (inlinedFiles.size() != 0) { if (hasSourceDebugExtensionAttribute(myGen)) { world.showMessage( IMessage.WARNING, WeaverMessages.format(WeaverMessages.OVERWRITE_JSR45,getFileName()), null, null); } myGen.addAttribute(getSourceDebugExtensionAttribute()); } }
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/7a0dbf73976ce4e36d7825b6f52b992ceb1267af/LazyClassGen.java/buggy/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 2711, 12, 38, 2183, 18071, 9117, 13, 288, 3639, 309, 261, 588, 6902, 2864, 7642, 7675, 588, 1225, 1435, 405, 7925, 18, 6694, 67, 4051, 13, 288, 5411, 368, 11770, 14995, 26825, 5411, 368, 732, 8081, 4374, 279, 667, 716, 353, 2537, 4885, 5161, 5161, 5161, 5161, 5446, 261, 19940, 8081, 2118, 12516, 25038, 5411, 368, 3382, 15032, 1404, 1846, 35, 12404, 603, 16, 1261, 1938, 518, 16, 1158, 17, 476, 7262, 3318, 333, 5446, 635, 948, 2934, 5411, 368, 752, 392, 1008, 3399, 7642, 1427, 716, 732, 848, 8492, 1473, 279, 327, 460, 716, 3302, 1404, 731, 542, 326, 5411, 368, 3127, 434, 326, 1207, 18, 5411, 3399, 7642, 273, 394, 1659, 7642, 12, 4811, 7642, 18, 588, 3834, 9334, 3399, 7642, 18, 588, 8051, 12434, 9334, 5397, 3399, 7642, 18, 588, 4771, 9334, 3399, 7642, 18, 588, 1862, 5094, 9334, 3399, 7642, 18, 588, 1358, 1557, 10663, 5411, 368, 1002, 392, 555, 5314, 333, 8916, 2836, 18, 3639, 202, 202, 588, 18071, 7675, 4500, 1079, 12, 540, 1082, 202, 45, 1079, 18, 3589, 16, 1377, 9506, 202, 3218, 21851, 5058, 18, 2139, 12, 3218, 21851, 5058, 18, 5237, 67, 4296, 51, 67, 19044, 16, 377, 6862, 1082, 2868, 333, 18, 588, 3834, 1435, 3631, 377, 9506, 565, 394, 4998, 2735, 12, 2704, 1387, 12, 4811, 7642, 18, 588, 4771, 1435, 3631, 20, 3631, 446, 377, 9506, 565, 11272, 540, 202, 2463, 31, 3639, 289, 377, 202, 430, 261, 4811, 559, 480, 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, 1045, 2711, 12, 38, 2183, 18071, 9117, 13, 288, 3639, 309, 261, 588, 6902, 2864, 7642, 7675, 588, 1225, 1435, 405, 7925, 18, 6694, 67, 4051, 13, 288, 5411, 368, 11770, 14995, 26825, 5411, 368, 732, 8081, 4374, 279, 667, 716, 353, 2537, 4885, 5161, 5161, 5161, 5161, 5446, 261, 19940, 8081, 2118, 12516, 25038, 5411, 368, 3382, 15032, 1404, 1846, 35, 12404, 603, 16, 1261, 1938, 518, 16, 1158, 17, 476, 7262, 3318, 333, 5446, 635, 948, 2934, 5411, 368, 752, 392, 1008, 3399, 7642, 1427, 716, 732, 848, 8492, 1473, 279, 327, 460, 716, 3302, 1404, 731, 542, 326, 5411, 368, 3127, 434, 326, 1207, 18, 5411, 3399, 7642, 273, 394, 1659, 7642, 12, 2 ]
catch(Exception e) { }
last = System.currentTimeMillis();
public void run() { FontMetrics fm = getFontMetrics(getFont()); int max = (text.size() * fm.getHeight()); while (running) { scrollPosition += 2; if(scrollPosition > max) scrollPosition = -250; try { Thread.sleep(100); } catch(Exception e) { } repaint(getWidth() / 2 - maxWidth, TOP,maxWidth * 2, getHeight() - TOP - BOTTOM); } }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/6ea43ab3e4b9f4b366d1e4979bf597ffe8b3f55a/AboutDialog.java/buggy/org/gjt/sp/jedit/gui/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 1082, 202, 95, 9506, 202, 5711, 5653, 10940, 273, 18776, 5653, 12, 588, 5711, 10663, 9506, 202, 474, 943, 273, 261, 955, 18, 1467, 1435, 380, 10940, 18, 588, 2686, 10663, 9506, 202, 17523, 261, 8704, 13, 9506, 202, 95, 6862, 202, 12033, 2555, 1011, 576, 31, 6862, 202, 430, 12, 12033, 2555, 405, 943, 13, 25083, 202, 12033, 2555, 273, 300, 26520, 31, 6862, 202, 698, 6862, 202, 95, 25083, 202, 3830, 18, 19607, 12, 6625, 1769, 6862, 202, 97, 6862, 202, 14683, 12, 503, 425, 13, 6862, 202, 95, 6862, 202, 97, 6862, 202, 14462, 1598, 12, 588, 2384, 1435, 342, 576, 300, 17681, 16, 25083, 202, 10462, 16, 1896, 2384, 380, 576, 16, 25083, 202, 588, 2686, 1435, 300, 18680, 300, 30666, 1769, 9506, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 1082, 202, 95, 9506, 202, 5711, 5653, 10940, 273, 18776, 5653, 12, 588, 5711, 10663, 9506, 202, 474, 943, 273, 261, 955, 18, 1467, 1435, 380, 10940, 18, 588, 2686, 10663, 9506, 202, 17523, 261, 8704, 13, 9506, 202, 95, 6862, 202, 12033, 2555, 1011, 576, 31, 6862, 202, 430, 12, 12033, 2555, 405, 943, 13, 25083, 202, 12033, 2555, 273, 300, 26520, 31, 6862, 202, 698, 6862, 202, 95, 25083, 202, 3830, 18, 19607, 12, 6625, 1769, 6862, 202, 97, 6862, 202, 14683, 12, 503, 425, 13, 6862, 202, 95, 6862, 202, 97, 6862, 202, 14462, 1598, 12, 588, 2384, 1435, 342, 576, 300, 17681, 16, 25083, 202, 10462, 16, 1896, 2384, 2 ]
DOMException.NO_MODIFICATION_ALLOWED_ERR,
DOMException.NO_MODIFICATION_ALLOWED_ERR,
public Text splitText(int offset) throws DOMException { if (isReadOnly()) { throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null)); } if (needsSyncData()) { synchronizeData(); } if (offset < 0 || offset > data.length() ) { throw new DOMException(DOMException.INDEX_SIZE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INDEX_SIZE_ERR", null)); } // split text into two separate nodes Text newText = getOwnerDocument().createTextNode(data.substring(offset)); setNodeValue(data.substring(0, offset)); // insert new text node Node parentNode = getParentNode(); if (parentNode != null) { parentNode.insertBefore(newText, nextSibling); } return newText; } // splitText(int):Text
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/407cd798adcd9d583934b4cf808e79cf3bd8c92e/TextImpl.java/clean/src/org/apache/xerces/dom/TextImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3867, 1416, 1528, 12, 474, 1384, 13, 540, 1216, 4703, 503, 288, 377, 202, 430, 261, 291, 12066, 10756, 288, 5411, 604, 394, 4703, 503, 12, 377, 202, 202, 8168, 503, 18, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 377, 202, 430, 261, 3348, 411, 374, 747, 1384, 405, 501, 18, 2469, 1435, 262, 288, 5411, 604, 394, 4703, 503, 12, 8168, 503, 18, 9199, 67, 4574, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9199, 67, 4574, 67, 9712, 3113, 446, 10019, 3639, 289, 377, 1082, 3639, 368, 1416, 977, 1368, 2795, 9004, 2199, 377, 202, 1528, 394, 1528, 273, 5411, 13782, 2519, 7675, 2640, 17299, 12, 892, 18, 28023, 12, 3348, 10019, 377, 202, 542, 907, 620, 12, 892, 18, 28023, 12, 20, 16, 1384, 10019, 3639, 368, 2243, 394, 977, 756, 3639, 2029, 7234, 273, 5089, 907, 5621, 377, 202, 430, 261, 2938, 907, 480, 446, 13, 288, 377, 202, 202, 2938, 907, 18, 6387, 4649, 12, 2704, 1528, 16, 19419, 1769, 3639, 289, 377, 202, 2463, 394, 1528, 31, 565, 289, 368, 1416, 1528, 12, 474, 4672, 1528, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3867, 1416, 1528, 12, 474, 1384, 13, 540, 1216, 4703, 503, 288, 377, 202, 430, 261, 291, 12066, 10756, 288, 5411, 604, 394, 4703, 503, 12, 377, 202, 202, 8168, 503, 18, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 377, 202, 430, 261, 3348, 411, 374, 747, 1384, 405, 501, 18, 2469, 1435, 262, 288, 5411, 604, 394, 4703, 503, 12, 8168, 503, 18, 9199, 67, 4574, 67, 9712, 16, 1171, 2 ]
private org.eclipse.gef.palette.ToolEntry createProperty3CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Property_3001); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("Property3CreationTool.title"), org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("Property3CreationTool.desc"), types); entry.setSmallIcon(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.getImageDescriptor(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Property_3001));
private ToolEntry createProperty3CreationTool() { List/*<IElementType>*/types = new ArrayList/*<IElementType>*/(1); types.add(UMLElementTypes.Property_3001); NodeToolEntry entry = new NodeToolEntry(UMLDiagramEditorPlugin.getString("Property3CreationTool.title"), UMLDiagramEditorPlugin.getString("Property3CreationTool.desc"), types); entry.setSmallIcon(UMLElementTypes.getImageDescriptor(UMLElementTypes.Property_3001));
private org.eclipse.gef.palette.ToolEntry createProperty3CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Property_3001); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("Property3CreationTool.title"), org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("Property3CreationTool.desc"), types); //$NON-NLS-1$ $NON-NLS-2$ entry.setSmallIcon(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.getImageDescriptor(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Property_3001)); entry.setLargeIcon(entry.getSmallIcon()); return entry; }
56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/c8f96358e1fd7a3bf8a8fc61b57f2694f6ab2aee/UMLPaletteFactory.java/clean/plugins/org.eclipse.uml2.diagram.profile/src/org/eclipse/uml2/diagram/profile/part/UMLPaletteFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2358, 18, 20416, 18, 908, 74, 18, 26474, 18, 6364, 1622, 31318, 23, 9906, 6364, 1435, 288, 202, 202, 6290, 18, 1367, 18, 682, 20308, 32, 45, 17481, 34, 5549, 2352, 273, 394, 2252, 18, 1367, 18, 19558, 20308, 32, 45, 17481, 34, 5549, 12, 21, 1769, 202, 202, 2352, 18, 1289, 12, 3341, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 17520, 18, 2799, 900, 806, 2016, 18, 1396, 67, 23, 11664, 1769, 202, 202, 907, 6364, 1622, 1241, 273, 394, 2029, 6364, 1622, 12, 9506, 202, 3341, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 2680, 18, 57, 1495, 14058, 1940, 6946, 3773, 18, 588, 780, 2932, 1396, 23, 9906, 6364, 18, 2649, 6, 3631, 2358, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 2680, 18, 57, 1495, 14058, 1940, 6946, 3773, 18, 588, 780, 2932, 1396, 23, 9906, 6364, 18, 5569, 6, 3631, 1953, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 271, 3993, 17, 5106, 17, 22, 8, 202, 202, 4099, 18, 542, 19187, 5554, 12, 3341, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 17520, 18, 2799, 900, 806, 2016, 18, 588, 2040, 3187, 12, 3341, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 17520, 18, 2799, 900, 806, 2016, 18, 1396, 67, 23, 11664, 10019, 202, 202, 4099, 18, 542, 20020, 5554, 12, 4099, 18, 588, 19187, 5554, 10663, 202, 202, 2463, 1241, 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, 2358, 18, 20416, 18, 908, 74, 18, 26474, 18, 6364, 1622, 31318, 23, 9906, 6364, 1435, 288, 202, 202, 6290, 18, 1367, 18, 682, 20308, 32, 45, 17481, 34, 5549, 2352, 273, 394, 2252, 18, 1367, 18, 19558, 20308, 32, 45, 17481, 34, 5549, 12, 21, 1769, 202, 202, 2352, 18, 1289, 12, 3341, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 17520, 18, 2799, 900, 806, 2016, 18, 1396, 67, 23, 11664, 1769, 202, 202, 907, 6364, 1622, 1241, 273, 394, 2029, 6364, 1622, 12, 9506, 202, 3341, 18, 20416, 18, 22192, 22, 18, 12264, 1940, 18, 5040, 18, 2680, 18, 57, 1495, 14058, 1940, 6946, 3773, 18, 588, 780, 2932, 1396, 2 ]
source.addString(ts.NAME, s);
sourceAddString(ts.NAME, s);
private Object primaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case TokenStream.FUNCTION: return function(ts, source, true); case TokenStream.LB: { source.append((char)ts.LB); pn = nf.createLeaf(ts.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(ts.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) source.append((char)ts.COMMA); else first = false; if (tt == ts.RB) { // to fix [,,,].length behavior... break; } if (tt == ts.COMMA) { nf.addChildToBack(pn, nf.createLeaf(ts.PRIMARY, ts.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(ts, source, false)); } } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RB, "msg.no.bracket.arg"); } source.append((char)ts.RB); return nf.createArrayLiteral(pn); } case TokenStream.LC: { pn = nf.createLeaf(ts.OBJLIT); source.append((char)ts.LC); if (!ts.matchToken(ts.RC)) { boolean first = true; commaloop: do { Object property; if (!first) source.append((char)ts.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case TokenStream.NAME: case TokenStream.STRING: String s = ts.getString(); source.addString(ts.NAME, s); property = nf.createString(ts.getString()); break; case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); property = nf.createNumber(n); break; case TokenStream.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError(ts, "msg.bad.prop"); break commaloop; } mustMatchToken(ts, ts.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. source.append((char)ts.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(ts, source, false)); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RC, "msg.no.brace.prop"); } source.append((char)ts.RC); return nf.createObjectLiteral(pn); } case TokenStream.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ source.append((char)ts.LP); pn = expr(ts, source, false); source.append((char)ts.RP); mustMatchToken(ts, ts.RP, "msg.no.paren"); return pn; case TokenStream.NAME: String name = ts.getString(); source.addString(ts.NAME, name); return nf.createName(name); case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); return nf.createNumber(n); case TokenStream.STRING: String s = ts.getString(); source.addString(ts.STRING, s); return nf.createString(s); case TokenStream.OBJECT: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); source.addString(ts.OBJECT, '/' + re + '/' + flags); return nf.createRegExp(re, flags); } case TokenStream.PRIMARY: source.append((char)ts.PRIMARY); source.append((char)ts.getOp()); return nf.createLeaf(ts.PRIMARY, ts.getOp()); case TokenStream.RESERVED: reportError(ts, "msg.reserved.id"); break; case TokenStream.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError(ts, "msg.syntax"); break; } return null; // should never reach here }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3354, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 1033, 11059, 31, 3639, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 28225, 31, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 3742, 18, 7133, 12058, 4871, 3428, 18, 8047, 42, 67, 28225, 31, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 7788, 30, 5411, 327, 445, 12, 3428, 16, 1084, 16, 638, 1769, 3639, 648, 3155, 1228, 18, 12995, 30, 5411, 288, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 12995, 1769, 7734, 11059, 273, 13958, 18, 2640, 9858, 12, 3428, 18, 8552, 15716, 1769, 7734, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 28225, 31, 7734, 1250, 4847, 273, 3742, 18, 1916, 1345, 12, 3428, 18, 19437, 1769, 7734, 3742, 18, 7133, 12058, 4871, 3428, 18, 8047, 42, 67, 28225, 31, 7734, 309, 16051, 11073, 13, 288, 10792, 1250, 1122, 273, 638, 31, 10792, 741, 288, 13491, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 28225, 31, 13491, 3574, 273, 3742, 18, 347, 3839, 1345, 5621, 13491, 3742, 18, 7133, 12058, 4871, 3428, 18, 8047, 42, 67, 28225, 31, 13491, 309, 16051, 3645, 13, 18701, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 4208, 5535, 1769, 13491, 469, 18701, 1122, 273, 629, 31, 13491, 309, 261, 748, 422, 3742, 18, 19437, 13, 288, 225, 368, 358, 2917, 306, 16408, 16, 8009, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3354, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 1033, 11059, 31, 3639, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 28225, 31, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 3742, 18, 7133, 12058, 4871, 3428, 18, 8047, 42, 67, 28225, 31, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 7788, 30, 5411, 327, 445, 12, 3428, 16, 1084, 16, 638, 1769, 3639, 648, 3155, 1228, 18, 12995, 30, 5411, 288, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 12995, 1769, 7734, 11059, 273, 13958, 18, 2640, 9858, 12, 3428, 18, 8552, 15716, 1769, 7734, 2 ]
QuickFixAction.registerQuickFixAction(highlightInfo, new MoveCatchUpFix(catchSection, section), null); QuickFixAction.registerQuickFixAction(highlightInfo, new DeleteCatchFix((PsiParameter)catchParameter), null);
QuickFixAction.registerQuickFixAction(highlightInfo, new MoveCatchUpFix(catchSection, section)); QuickFixAction.registerQuickFixAction(highlightInfo, new DeleteCatchFix((PsiParameter)catchParameter));
public static HighlightInfo checkExceptionAlreadyCaught(PsiJavaCodeReferenceElement element, PsiElement resolved) { if (!(resolved instanceof PsiClass)) return null; PsiClass catchClass = (PsiClass)resolved; if (!(element.getParent() instanceof PsiTypeElement)) return null; PsiElement catchParameter = element.getParent().getParent(); if (!(catchParameter instanceof PsiParameter) || !(((PsiParameter)catchParameter).getDeclarationScope() instanceof PsiCatchSection)) { return null; } PsiCatchSection catchSection = (PsiCatchSection)((PsiParameter)catchParameter).getDeclarationScope(); PsiTryStatement statement = catchSection.getTryStatement(); PsiCatchSection[] catchSections = statement.getCatchSections(); int i = ArrayUtil.find(catchSections, catchSection); for (i--; i >= 0; i--) { PsiCatchSection section = catchSections[i]; PsiType type = section.getCatchType(); PsiClass upCatchClass = PsiUtil.resolveClassInType(type); if (upCatchClass == null) continue; if (InheritanceUtil.isInheritorOrSelf(catchClass, upCatchClass, true)) { String description = JavaErrorMessages.message("exception.already.caught", PsiFormatUtil.formatClass(catchClass, PsiFormatUtil.SHOW_NAME | PsiFormatUtil.SHOW_FQ_NAME)); HighlightInfo highlightInfo = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, element, description); QuickFixAction.registerQuickFixAction(highlightInfo, new MoveCatchUpFix(catchSection, section), null); QuickFixAction.registerQuickFixAction(highlightInfo, new DeleteCatchFix((PsiParameter)catchParameter), null); return highlightInfo; } } return null; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 31386, 966, 866, 503, 9430, 24512, 12, 52, 7722, 5852, 1085, 2404, 1046, 930, 16, 453, 7722, 1046, 4640, 13, 288, 565, 309, 16051, 12, 11792, 1276, 453, 7722, 797, 3719, 327, 446, 31, 565, 453, 7722, 797, 1044, 797, 273, 261, 52, 7722, 797, 13, 11792, 31, 565, 309, 16051, 12, 2956, 18, 588, 3054, 1435, 1276, 453, 7722, 559, 1046, 3719, 327, 446, 31, 565, 453, 7722, 1046, 1044, 1662, 273, 930, 18, 588, 3054, 7675, 588, 3054, 5621, 565, 309, 16051, 12, 14683, 1662, 1276, 453, 7722, 1662, 13, 3639, 747, 401, 12443, 12, 52, 7722, 1662, 13, 14683, 1662, 2934, 588, 6094, 3876, 1435, 1276, 453, 7722, 14842, 5285, 3719, 288, 1377, 327, 446, 31, 565, 289, 565, 453, 7722, 14842, 5285, 1044, 5285, 273, 261, 52, 7722, 14842, 5285, 13, 12443, 52, 7722, 1662, 13, 14683, 1662, 2934, 588, 6094, 3876, 5621, 565, 453, 7722, 7833, 3406, 3021, 273, 1044, 5285, 18, 588, 7833, 3406, 5621, 565, 453, 7722, 14842, 5285, 8526, 1044, 15965, 273, 3021, 18, 588, 14842, 15965, 5621, 565, 509, 277, 273, 27207, 18, 4720, 12, 14683, 15965, 16, 1044, 5285, 1769, 565, 364, 261, 77, 413, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 1377, 453, 7722, 14842, 5285, 2442, 273, 1044, 15965, 63, 77, 15533, 1377, 453, 7722, 559, 618, 273, 2442, 18, 588, 14842, 559, 5621, 1377, 453, 7722, 797, 731, 14842, 797, 273, 453, 7722, 1304, 18, 10828, 797, 382, 559, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 31386, 966, 866, 503, 9430, 24512, 12, 52, 7722, 5852, 1085, 2404, 1046, 930, 16, 453, 7722, 1046, 4640, 13, 288, 565, 309, 16051, 12, 11792, 1276, 453, 7722, 797, 3719, 327, 446, 31, 565, 453, 7722, 797, 1044, 797, 273, 261, 52, 7722, 797, 13, 11792, 31, 565, 309, 16051, 12, 2956, 18, 588, 3054, 1435, 1276, 453, 7722, 559, 1046, 3719, 327, 446, 31, 565, 453, 7722, 1046, 1044, 1662, 273, 930, 18, 588, 3054, 7675, 588, 3054, 5621, 565, 309, 16051, 12, 14683, 1662, 1276, 453, 7722, 1662, 13, 3639, 747, 401, 12443, 12, 52, 7722, 1662, 13, 14683, 1662, 2934, 588, 6094, 3876, 1435, 1276, 453, 7722, 14842, 5285, 3719, 288, 1377, 2 ]
public void paintControl( PaintEvent pe ) { Color cBlack = new Color( this.getDisplay( ), 0, 0, 0 ); Color cWhite = new Color( this.getDisplay( ), 255, 255, 255 ); GC gc = pe.gc; gc.setForeground( cBlack );
void paintControl( PaintEvent pe ) { Color cBlack = new Color( this.getDisplay( ), 0, 0, 0 ); Color cWhite = new Color( this.getDisplay( ), 255, 255, 255 ); GC gc = pe.gc; gc.setForeground( cBlack );
public void paintControl( PaintEvent pe ) { Color cBlack = new Color( this.getDisplay( ), 0, 0, 0 ); Color cWhite = new Color( this.getDisplay( ), 255, 255, 255 ); GC gc = pe.gc; gc.setForeground( cBlack ); int iCellWidth = this.getSize( ).x / 8; int iCellHeight = this.getSize( ).y / 5; for ( int iR = 0; iR < 5; iR++ ) { for ( int iC = 0; iC < 8; iC++ ) { try { gc.setBackground( colorMap[( iR * 8 ) + iC] ); } catch ( Throwable e ) { e.printStackTrace( ); } gc.fillRectangle( iC * iCellWidth, iR * iCellHeight, iCellWidth, iCellHeight ); // Highlight currently selected color if it exists in this list if ( colorSelection != null && colorSelection.equals( colorMap[( iR * 8 ) + iC] ) ) { gc.drawRectangle( iC * iCellWidth, iR * iCellHeight, iCellWidth - 2, iCellHeight - 2 ); gc.setForeground( cWhite ); gc.drawRectangle( iC * iCellWidth + 1, iR * iCellHeight + 1, iCellWidth - 3, iCellHeight - 3 ); gc.setForeground( cBlack ); } } } cBlack.dispose( ); cWhite.dispose( ); gc.dispose( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/778f29f1c03894916448edea0d6d116dc5f5c05c/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 3367, 12, 30001, 1133, 2804, 262, 202, 95, 202, 202, 2957, 276, 13155, 273, 394, 5563, 12, 333, 18, 588, 4236, 12, 262, 16, 374, 16, 374, 16, 374, 11272, 202, 202, 2957, 276, 13407, 273, 394, 5563, 12, 333, 18, 588, 4236, 12, 262, 16, 4561, 16, 4561, 16, 4561, 11272, 202, 202, 15396, 8859, 273, 2804, 18, 13241, 31, 202, 202, 13241, 18, 542, 23206, 12, 276, 13155, 11272, 202, 202, 474, 277, 4020, 2384, 273, 333, 18, 588, 1225, 12, 262, 18, 92, 342, 1725, 31, 202, 202, 474, 277, 4020, 2686, 273, 333, 18, 588, 1225, 12, 262, 18, 93, 342, 1381, 31, 202, 202, 1884, 261, 509, 277, 54, 273, 374, 31, 277, 54, 411, 1381, 31, 277, 54, 9904, 262, 202, 202, 95, 1082, 202, 1884, 261, 509, 277, 39, 273, 374, 31, 277, 39, 411, 1725, 31, 277, 39, 9904, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 13241, 18, 542, 8199, 12, 2036, 863, 63, 12, 277, 54, 380, 1725, 262, 397, 277, 39, 65, 11272, 9506, 202, 97, 9506, 202, 14683, 261, 4206, 425, 262, 9506, 202, 95, 6862, 202, 73, 18, 1188, 6332, 12, 11272, 9506, 202, 97, 9506, 202, 13241, 18, 5935, 19463, 12, 277, 39, 380, 277, 4020, 2384, 16, 25083, 202, 77, 54, 380, 277, 4020, 2686, 16, 25083, 202, 77, 4020, 2384, 16, 25083, 202, 77, 4020, 2686, 11272, 9506, 202, 759, 31386, 4551, 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, 12574, 3367, 12, 30001, 1133, 2804, 262, 202, 95, 202, 202, 2957, 276, 13155, 273, 394, 5563, 12, 333, 18, 588, 4236, 12, 262, 16, 374, 16, 374, 16, 374, 11272, 202, 202, 2957, 276, 13407, 273, 394, 5563, 12, 333, 18, 588, 4236, 12, 262, 16, 4561, 16, 4561, 16, 4561, 11272, 202, 202, 15396, 8859, 273, 2804, 18, 13241, 31, 202, 202, 13241, 18, 542, 23206, 12, 276, 13155, 11272, 202, 202, 474, 277, 4020, 2384, 273, 333, 18, 588, 1225, 12, 262, 18, 92, 342, 1725, 31, 202, 202, 474, 277, 4020, 2686, 273, 333, 18, 588, 1225, 12, 262, 18, 93, 342, 1381, 31, 202, 202, 1884, 261, 509, 277, 54, 2 ]
List checkCldrResult = (List)ctx.getByLocale(USER_FILE + CHECKCLDR_RES+":"+ctx.defaultPtype());
List checkCldrResult = (List)uf.hash.get(CHECKCLDR_RES+ctx.defaultPtype());
public void showLocale(WebContext ctx, String which) { int i; int j; int n = ctx.docLocale.length; if(which.equals(xREMOVE)) { ctx.println("<b><a href=\"" + ctx.url() + "\">" + "List of Locales" + "</a></b><br/>"); ctx.session.getLocales().remove(ctx.field("_")); ctx.println("<h2>Your session for " + ctx.field("_") + " has been removed.</h2>"); doMain(ctx); return; } CLDRFile cf = getUserFile(ctx, (ctx.session.user==null)?null:ctx.session.user, ctx.locale); if(cf == null) { throw new InternalError("CLDRFile is null!"); } CLDRDBSource ourSrc = (CLDRDBSource)ctx.getByLocale(USER_FILE + CLDRDBSRC); // TODO: remove. debuggin' if(ourSrc == null) { throw new InternalError("oursrc is null! - " + (USER_FILE + CLDRDBSRC) + " @ " + ctx.locale ); } synchronized (ourSrc) { // Set up checks CheckCLDR checkCldr = (CheckCLDR)ctx.getByLocale(USER_FILE + CHECKCLDR+":"+ctx.defaultPtype()); if (checkCldr == null) { List checkCldrResult = new ArrayList();// logger.info("Initting tests . . . - "+ctx.locale+"|" + (USER_FILE + CHECKCLDR+":"+ctx.defaultPtype()) + "@"+ctx.session.id); long t0 = System.currentTimeMillis(); checkCldr = CheckCLDR.getCheckAll(/* "(?!.*Collision.*).*" */ ".*"); checkCldr.setDisplayInformation(getEnglishFile()); if(cf==null) { throw new InternalError("cf was null."); } checkCldr.setCldrFileToCheck(cf, ctx.getOptionsMap(), checkCldrResult); //logger.info("fileToCheck set . . . on "+ checkCldr.toString()); ctx.putByLocale(USER_FILE + CHECKCLDR+":"+ctx.defaultPtype(), checkCldr); { // sanity check: can we get it back out CheckCLDR subCheckCldr = (CheckCLDR)ctx.getByLocale(SurveyMain.USER_FILE + SurveyMain.CHECKCLDR+":"+ctx.defaultPtype()); if(subCheckCldr == null) { throw new InternalError("subCheckCldr == null"); } } if(!checkCldrResult.isEmpty()) { ctx.putByLocale(USER_FILE + CHECKCLDR_RES+":"+ctx.defaultPtype(), checkCldrResult); // don't bother if empty . . . } long t2 = System.currentTimeMillis(); //logger.info("Time to init tests: " + (t2-t0)); } // Locale menu if((which == null) || which.equals("")) { which = xMAIN; } WebContext subCtx = new WebContext(ctx); subCtx.addQuery("_",ctx.locale.toString()); if(ctx.field(QUERY_EXAMPLE).length()==0) { ctx.println("<table summary='locale info' width='95%' border=0><tr><td width='25%'>"); ctx.println("<b><a href=\"" + ctx.url() + "\">" + "Locales" + "</a></b><br/>"); for(i=(n-1);i>0;i--) { for(j=0;j<(n-i);j++) { ctx.print("&nbsp;&nbsp;"); } boolean canModify = UserRegistry.userCanModifyLocale(ctx.session.user,ctx.docLocale[i]); ctx.println("\u2517&nbsp;<a class='notselected' href=\"" + ctx.url() + ctx.urlConnector() +"_=" + ctx.docLocale[i] + "\">"); printLocaleStatus(ctx, ctx.docLocale[i], new ULocale(ctx.docLocale[i]).getDisplayName(), ""); ctx.println(" <tt style='font-size: 60%' class='codebox'>"+ctx.docLocale[i]+"</tt>" + "</a> "); if(canModify) { ctx.print(modifyThing(ctx)); } ctx.println("<br/>"); } for(j=0;j<n;j++) { ctx.print("&nbsp;&nbsp;"); } boolean canModifyL = UserRegistry.userCanModifyLocale(ctx.session.user,ctx.locale.toString()); ctx.print("\u2517&nbsp;"); ctx.print("<span style='font-size: 120%'>"); printMenu(subCtx, which, xMAIN, getLocaleStatus(ctx.locale.toString(), ctx.locale.getDisplayName(), "") +" <tt style='font-size: 60%' class='codebox'>"+ctx.locale+"</tt>"); if(canModifyL) { ctx.print(modifyThing(ctx)); } ctx.print("</span>"); ctx.println("<br/>"); ctx.println("</td><td>"); subCtx.println("<p class='hang'> Code Lists: "); for(n =0 ; n < LOCALEDISPLAYNAMES_ITEMS.length; n++) { if(n>0) { ctx.print(" | "); } printMenu(subCtx, which, LOCALEDISPLAYNAMES_ITEMS[n]); } subCtx.println("</p> <p class='hang'>Other Items: "); for(n =0 ; n < OTHERROOTS_ITEMS.length; n++) { if(n>0) { ctx.print(" | "); } printMenu(subCtx, which, OTHERROOTS_ITEMS[n]); ctx.print(" "); } // ctx.print(" "); // printMenu(subCtx, which, xOTHER); subCtx.println("</p>"); if(ctx.prefBool(PREF_ADV)) { subCtx.println("<p class='hang'>Advanced Items: "); // printMenu(subCtx, which, TEST_MENU_ITEM); printMenu(subCtx, which, RAW_MENU_ITEM); subCtx.println("</p>"); } subCtx.println("</td></tr></table>"); } else { // end in-locale nav ctx.println("<h3>"+ctx.locale+" "+ctx.locale.getDisplayName()+" / " + which + " Example</h3>"); } { List checkCldrResult = (List)ctx.getByLocale(USER_FILE + CHECKCLDR_RES+":"+ctx.defaultPtype()); // don't bother if empty . . . if((checkCldrResult != null) && (!checkCldrResult.isEmpty()) && (/* true || */ (checkCldr != null) && (xMAIN.equals(which))) ) { ctx.println("<hr><h4>Possible problems with locale:</h4>"); ctx.println("<div style='border: 1px dashed olive; padding: 1em; background-color: cream; overflow: auto;'>"); for (Iterator it3 = checkCldrResult.iterator(); it3.hasNext();) { CheckCLDR.CheckStatus status = (CheckCLDR.CheckStatus) it3.next(); try{ if (!status.getType().equals(status.exampleType)) { ctx.println(status.getCause().getClass().toString() +": "+ status.toString() + "<br>"); } else { ctx.println("<i>example available</i><br>"); } } catch(Throwable t) { ctx.println("Error reading status item: <br><font size='-1'>"+status.toString()+"<br> - <br>" + t.toString()+"<hr><br>"); } } ctx.println("</div><hr>"); } } subCtx.addQuery("x",which); for(n =0 ; n < LOCALEDISPLAYNAMES_ITEMS.length; n++) { if(LOCALEDISPLAYNAMES_ITEMS[n].equals(which)) { if(which.equals(CURRENCIES)) { showPathList(subCtx, "//ldml/"+NUMBERSCURRENCIES, null); } else if(which.equals(TIMEZONES)) { showPathList(subCtx, "//ldml/"+"dates/timeZoneNames/zone", null); } else { showLocaleCodeList(subCtx, which); } return; } } for(j=0;j<OTHERROOTS_ITEMS.length;j++) { if(OTHERROOTS_ITEMS[j].equals(which)) { if(which.equals(GREGORIAN_CALENDAR)) { showPathList(subCtx, GREGO_XPATH, null); } else if(which.equals(OTHER_CALENDARS)) { showPathList(subCtx, OTHER_CALENDARS_XPATH, null); } else if(xOTHER.equals(which)) { showPathList(subCtx, "//ldml", null); } else { showPathList(subCtx, "//ldml/"+OTHERROOTS_ITEMS[j], null); } return; } } // fall through if wasn't one of the other roots if(RAW_MENU_ITEM.equals(which)) { doRaw(subCtx); /* } else if((checkCldr != null) && (TEST_MENU_ITEM.equals(which))) { // print the results CLDRFile file = cf; ctx.println("<pre style='border: 1px dashed olive; padding: 1em; background-color: cream; overflow: auto;'>"); // Set locales = ourSrc.getAvailable(); XPathParts pathParts = new XPathParts(null, null); XPathParts fullPathParts = new XPathParts(null, null); // for (Iterator it = locales.iterator(); it.hasNext();) { String localeID = ctx.locale.toString(); ctx.println(checkCldr.getLocaleAndName(localeID)); // CLDRFile file = ourSrc.factory.make(localeID, false); ctx.println(" <h4>Test Results</h4>"); for (Iterator it2 = file.iterator(); it2.hasNext();) { String path = (String) it2.next(); //System.out.println("P: " + path); String value = file.getStringValue(path); String fullPath = file.getFullXPath(path); checkCldr.check(path, fullPath, value, pathParts, fullPathParts, checkCldrResult); for (Iterator it3 = checkCldrResult.iterator(); it3.hasNext();) { CheckCLDR.CheckStatus status = (CheckCLDR.CheckStatus) it3.next(); if (!status.getType().equals(status.exampleType)) { ctx.println(status.toString() + "\t" + value + "\t" + fullPath); } //else { //ctx.println("<i>example available</i><br>"); //} } } System.out.println(" done with tests "); // } ctx.println("</pre>"); */ } else { doMain(subCtx); } } // ?// ctx.removeByLocale(USER_FILE + CHECKCLDR);// ctx.removeByLocale(USER_FILE + CHECKCLDR_RES);}
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/51bd087abfef540c06e9300c91618a6211dee473/SurveyMain.java/buggy/tools/java/org/unicode/cldr/web/SurveyMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2405, 3916, 12, 4079, 1042, 1103, 16, 514, 1492, 13, 565, 288, 3639, 509, 277, 31, 3639, 509, 525, 31, 3639, 509, 290, 273, 1103, 18, 2434, 3916, 18, 2469, 31, 3639, 309, 12, 12784, 18, 14963, 12, 92, 22122, 3719, 288, 5411, 1103, 18, 8222, 2932, 32, 70, 4438, 69, 3897, 13186, 397, 1103, 18, 718, 1435, 397, 7023, 2984, 397, 315, 682, 434, 3566, 281, 6, 397, 6823, 69, 4695, 70, 4438, 2848, 26293, 1769, 5411, 1103, 18, 3184, 18, 588, 13310, 7675, 4479, 12, 5900, 18, 1518, 2932, 67, 7923, 1769, 5411, 1103, 18, 8222, 2932, 32, 76, 22, 34, 15446, 1339, 364, 315, 397, 1103, 18, 1518, 2932, 67, 7923, 397, 315, 711, 2118, 3723, 17347, 76, 22, 2984, 1769, 5411, 741, 6376, 12, 5900, 1769, 5411, 327, 31, 3639, 289, 7734, 14934, 6331, 812, 6080, 273, 4735, 812, 12, 5900, 16, 261, 5900, 18, 3184, 18, 1355, 631, 2011, 9945, 2011, 30, 5900, 18, 3184, 18, 1355, 16, 1103, 18, 6339, 1769, 3639, 309, 12, 8522, 422, 446, 13, 288, 5411, 604, 394, 3186, 668, 2932, 5017, 6331, 812, 353, 446, 4442, 1769, 3639, 289, 3639, 14934, 6331, 2290, 1830, 3134, 7740, 273, 261, 5017, 6331, 2290, 1830, 13, 5900, 18, 588, 858, 3916, 12, 4714, 67, 3776, 397, 14934, 6331, 2290, 28413, 1769, 368, 2660, 30, 1206, 18, 1198, 1912, 11, 3639, 309, 12, 477, 7740, 422, 446, 13, 288, 5411, 604, 394, 3186, 668, 2932, 4390, 1310, 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, 2405, 3916, 12, 4079, 1042, 1103, 16, 514, 1492, 13, 565, 288, 3639, 509, 277, 31, 3639, 509, 525, 31, 3639, 509, 290, 273, 1103, 18, 2434, 3916, 18, 2469, 31, 3639, 309, 12, 12784, 18, 14963, 12, 92, 22122, 3719, 288, 5411, 1103, 18, 8222, 2932, 32, 70, 4438, 69, 3897, 13186, 397, 1103, 18, 718, 1435, 397, 7023, 2984, 397, 315, 682, 434, 3566, 281, 6, 397, 6823, 69, 4695, 70, 4438, 2848, 26293, 1769, 5411, 1103, 18, 3184, 18, 588, 13310, 7675, 4479, 12, 5900, 18, 1518, 2932, 67, 7923, 1769, 5411, 1103, 18, 8222, 2932, 32, 76, 22, 34, 15446, 1339, 364, 315, 397, 1103, 18, 1518, 2932, 67, 7923, 397, 315, 2 ]
OS.ShowWindow (handle, visible ? OS.SW_SHOW : OS.SW_HIDE);
int topHandle = topHandle (); OS.ShowWindow (topHandle, visible ? OS.SW_SHOW : OS.SW_HIDE); if (handle != topHandle) OS.ShowWindow (handle, visible ? OS.SW_SHOW : OS.SW_HIDE);
void showWidget (boolean visible) { OS.ShowWindow (handle, visible ? OS.SW_SHOW : OS.SW_HIDE);}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/36bf5947dc98ca54efab2d6e5b3e64ddcc862752/Control.java/clean/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 2405, 4609, 261, 6494, 6021, 13, 288, 202, 4618, 18, 5706, 3829, 261, 4110, 16, 6021, 692, 5932, 18, 18746, 67, 16677, 294, 5932, 18, 18746, 67, 44, 10385, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 2405, 4609, 261, 6494, 6021, 13, 288, 202, 4618, 18, 5706, 3829, 261, 4110, 16, 6021, 692, 5932, 18, 18746, 67, 16677, 294, 5932, 18, 18746, 67, 44, 10385, 1769, 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 ]
if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass());
return javaClass.isAssignableFrom(arg.getJavaClass());
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/086abcd7e5107a6e6813ecb64810deff5780af95/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 14599, 12, 54, 10340, 921, 1501, 16, 1659, 2252, 797, 13, 288, 3639, 309, 261, 3175, 18, 291, 12616, 10756, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 3411, 18, 2399, 747, 2252, 797, 422, 3411, 18, 1106, 13, 288, 5411, 327, 1501, 1276, 19817, 5507, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 2144, 18, 2399, 747, 2252, 797, 422, 2144, 18, 1106, 747, 5411, 2252, 797, 422, 3407, 18, 2399, 747, 2252, 797, 422, 3407, 18, 1106, 13, 288, 5411, 327, 1501, 1276, 19817, 8585, 2107, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 5450, 18, 2399, 747, 2252, 797, 422, 5450, 18, 1106, 747, 2398, 2252, 797, 422, 3698, 18, 2399, 747, 2252, 797, 422, 3698, 18, 1106, 13, 288, 5411, 327, 1501, 1276, 19817, 4723, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 514, 18, 1106, 13, 288, 5411, 327, 1501, 1276, 19817, 780, 31, 3639, 289, 3639, 327, 2252, 797, 18, 291, 7961, 1265, 12443, 12, 54, 10340, 5852, 921, 13, 3175, 2934, 24805, 7675, 588, 797, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 353, 14599, 12, 54, 10340, 921, 1501, 16, 1659, 2252, 797, 13, 288, 3639, 309, 261, 3175, 18, 291, 12616, 10756, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 3411, 18, 2399, 747, 2252, 797, 422, 3411, 18, 1106, 13, 288, 5411, 327, 1501, 1276, 19817, 5507, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 2144, 18, 2399, 747, 2252, 797, 422, 2144, 18, 1106, 747, 5411, 2252, 797, 422, 3407, 18, 2399, 747, 2252, 797, 422, 3407, 18, 1106, 13, 288, 5411, 327, 1501, 1276, 19817, 8585, 2107, 31, 3639, 289, 3639, 309, 261, 6290, 797, 422, 5450, 18, 2399, 747, 2252, 797, 422, 5450, 18, 1106, 747, 2 ]
verifyEquals("regexp:^f", selenium.getAttribute("theText@class"));
verifyEquals("regexp:^f", selenium.getAttribute("theText@class"));
public void test() throws Throwable { selenium.setContext("Test Pattern Matching", "info"); /* Test Pattern Matching */ // open|./tests/html/test_verifications.html| selenium.open("./tests/html/test_verifications.html"); /* check glob (wildcard) matching */ // verifyValue|theText|*text* verifyEquals("*text*", selenium.getValue("theText")); // verifyValue|theHidden|* hidden value verifyEquals("* hidden value", selenium.getValue("theHidden")); // verifyText|theSpan|* span verifyEquals("* span", selenium.getText("theSpan")); boolean sawThrow9 = false; try { // originally verifySelected|theSelect|second * selenium.assertSelected("theSelect", "second *"); } catch (Exception e) { sawThrow9 = true; } verifyFalse(sawThrow9); String[] tmp3 = {"first*", "second*", "third*"}; // verifySelectOptions|theSelect|first*,second*,third* verifyEquals(tmp3, selenium.getSelectOptions("theSelect")); // verifyAttribute|theText@class|?oo verifyEquals("?oo", selenium.getAttribute("theText@class")); // verifyValue|theTextarea|Line 1* verifyEquals("Line 1*", selenium.getValue("theTextarea")); /* check regexp (wildcard) matching */ // verifyValue|theText|regexp:^[a-z ]+$ verifyEquals("regexp:^[a-z ]+$", selenium.getValue("theText")); // verifyValue|theHidden|regexp:dd verifyEquals("regexp:dd", selenium.getValue("theHidden")); // verifyText|theSpan|regexp:span$ verifyEquals("regexp:span$", selenium.getText("theSpan")); boolean sawThrow18 = false; try { // originally verifySelected|theSelect|regexp:second .* selenium.assertSelected("theSelect", "regexp:second .*"); } catch (Exception e) { sawThrow18 = true; } verifyFalse(sawThrow18); // verifyAttribute|theText@class|regexp:^f verifyEquals("regexp:^f", selenium.getAttribute("theText@class")); /* check exact matching */ // verifyValue|theText|exact:the text value verifyEquals("exact:the text value", selenium.getValue("theText")); boolean sawThrow23 = false; try { // originally verifySelected|theSelect|exact:second option selenium.assertSelected("theSelect", "exact:second option"); } catch (Exception e) { sawThrow23 = true; } verifyFalse(sawThrow23); /* check a mixture of strategies */String[] tmp4 = {"regexp:^first.*?", "second option", "third.*"}; // verifySelectOptions|theSelect|regexp:^first.*?,second option,third.* verifyEquals(tmp4, selenium.getSelectOptions("theSelect")); checkForVerificationErrors(); }
5066 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5066/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestPatternMatching.java/clean/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestPatternMatching.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 6830, 29349, 3113, 315, 1376, 8863, 225, 1748, 7766, 6830, 29349, 4202, 1195, 1082, 202, 759, 1696, 96, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 96, 1082, 202, 1786, 17327, 18, 3190, 2932, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 8863, 202, 202, 20308, 866, 4715, 261, 22887, 13, 3607, 1195, 1082, 202, 759, 3929, 620, 96, 5787, 1528, 96, 14, 955, 14, 1082, 202, 8705, 8867, 2932, 14, 955, 14, 3113, 29480, 18, 24805, 2932, 5787, 1528, 7923, 1769, 1082, 202, 759, 3929, 620, 96, 5787, 9345, 96, 14, 5949, 460, 1082, 202, 8705, 8867, 2932, 14, 5949, 460, 3113, 29480, 18, 24805, 2932, 5787, 9345, 7923, 1769, 1082, 202, 759, 3929, 1528, 96, 5787, 6952, 96, 14, 4548, 1082, 202, 8705, 8867, 2932, 14, 4548, 3113, 29480, 18, 588, 1528, 2932, 5787, 6952, 7923, 1769, 202, 202, 6494, 19821, 8282, 29, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 759, 24000, 3929, 7416, 96, 5787, 3391, 96, 8538, 380, 202, 202, 1786, 17327, 18, 11231, 7416, 2932, 5787, 3391, 3113, 315, 8538, 380, 8863, 202, 202, 97, 202, 202, 14683, 261, 503, 425, 13, 288, 1082, 202, 87, 2219, 8282, 29, 273, 638, 31, 202, 202, 97, 202, 202, 8705, 8381, 12, 87, 2219, 8282, 29, 1769, 202, 202, 780, 8526, 1853, 23, 273, 12528, 3645, 14, 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, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 6830, 29349, 3113, 315, 1376, 8863, 225, 1748, 7766, 6830, 29349, 4202, 1195, 1082, 202, 759, 1696, 96, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 96, 1082, 202, 1786, 17327, 18, 3190, 2932, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 8863, 202, 202, 20308, 866, 4715, 261, 22887, 13, 3607, 1195, 1082, 202, 759, 3929, 620, 96, 5787, 1528, 96, 14, 955, 14, 1082, 202, 8705, 8867, 2932, 14, 955, 14, 3113, 29480, 18, 24805, 2932, 5787, 1528, 7923, 1769, 1082, 202, 759, 3929, 620, 96, 5787, 9345, 96, 14, 5949, 460, 2 ]
assertEquals(cat2, report.getCategory());
public void testCreationAndExternalization() {// File file = new File("foo" + MylarTaskListPlugin.FILE_EXTENSION);// file.deleteOnExit();// TaskListManager manager = new TaskListManager(file); TaskListManager manager = MylarTaskListPlugin.getTaskListManager(); Task task1 = new Task(manager.genUniqueTaskHandle(), "task 1", true); manager.moveToRoot(task1); Task sub1 = new Task(manager.genUniqueTaskHandle(), "sub 1", true); task1.addSubTask(sub1); sub1.setParent(task1); Task task2 = new Task(manager.genUniqueTaskHandle(), "task 2", true); manager.moveToRoot(task2); TaskCategory cat1 = new TaskCategory("Category 1"); manager.addCategory(cat1); Task task3 = new Task(manager.genUniqueTaskHandle(), "task 3", true); manager.moveToCategory(cat1, task3);// cat1.addTask(task3); Task sub2 = new Task(manager.genUniqueTaskHandle(), "sub 2", true); task3.addSubTask(sub2); sub2.setParent(task3); Task task4 = new Task(manager.genUniqueTaskHandle(), "task 4", true); manager.moveToCategory(cat1, task4);// cat1.addTask(task4); TaskCategory cat2 = new TaskCategory("Category 2"); manager.addCategory(cat2); Task task5 = new Task(manager.genUniqueTaskHandle(), "task 5", true); manager.moveToCategory(cat2, task5);// cat2.addTask(task5); Task task6 = new Task(manager.genUniqueTaskHandle(), "task 6", true); manager.moveToCategory(cat2, task6);// cat2.addTask(task6); BugzillaTask report = new BugzillaTask("123", "label 123", true); manager.moveToCategory(cat2, report);// cat2.addTask(report); BugzillaTask report2 = new BugzillaTask("124", "label 124", true); manager.moveToRoot(report2); assertEquals(5, manager.getTaskList().getRoots().size()); manager.saveTaskList(); assertNotNull(manager.getTaskList()); TaskList list = new TaskList(); manager.setTaskList(list); manager.readTaskList(); assertNotNull(manager.getTaskList()); assertEquals(3, manager.getTaskList().getRootTasks().size()); // contains archived reports category List<ITask> readList = manager.getTaskList().getRootTasks(); assertTrue(readList.get(0).getDescription(true).equals("task 1")); assertTrue(readList.get(0).getChildren().get(0).getDescription(true).equals("sub 1")); assertTrue(readList.get(1).getDescription(true).equals("task 2")); assertTrue(readList.get(2) instanceof BugzillaTask); List<TaskCategory> readCats = manager.getTaskList().getTaskCategories(); assertTrue(readCats.get(0).getDescription(true).equals(BugzillaTaskExternalizer.BUGZILLA_ARCHIVE_LABEL)); assertEquals(3, manager.getTaskList().getCategories().size()); readList = readCats.get(1).getChildren(); assertTrue(readList.get(0).getDescription(true).equals("task 3")); assertTrue(readList.get(0).getChildren().get(0).getDescription(true).equals("sub 2")); assertTrue(readList.get(1).getDescription(true).equals("task 4")); readList = readCats.get(2).getChildren(); assertTrue(readList.get(0).getDescription(true).equals("task 5")); assertTrue(readList.get(1).getDescription(true).equals("task 6")); assertTrue(readList.get(2) instanceof BugzillaTask); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/883debcda93092f5364d78418f530dd32bd482ae/TaskListManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1071, 918, 1842, 9906, 1876, 6841, 1588, 1435, 288, 759, 11231, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1387, 585, 273, 394, 1387, 2932, 11351, 6, 397, 8005, 7901, 2174, 682, 3773, 18, 3776, 67, 12796, 1769, 759, 11231, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 585, 18, 3733, 1398, 6767, 5621, 759, 11231, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 3837, 682, 1318, 3301, 273, 394, 3837, 682, 1318, 12, 768, 1769, 11231, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 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, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1071, 918, 1842, 9906, 1876, 6841, 1588, 1435, 288, 759, 11231, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1387, 585, 273, 394, 1387, 2932, 11351, 6, 397, 8005, 7901, 2174, 682, 3773, 18, 3776, 67, 12796, 1769, 759, 11231, 8867, 12, 2574, 22, 16, 2605, 18, 588, 4457, 10663, 225, 1815, 8867, 12, 2574, 22, 2 ]
ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_UP, 0), _historyPrevAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), _historyPrevAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_DOWN, 0), _historyNextAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), _historyNextAction); setKeymap(ourMap);
ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_UP, 0), _historyPrevAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), _historyPrevAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_DOWN, 0), _historyNextAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), _historyNextAction); setKeymap(ourMap);
public InteractionsPane() { super(new InteractionsDocument()); setLineWrap(true); setWrapStyleWord(true); reset(); //add actions for enter key, etc. Keymap ourMap = addKeymap("INTERACTIONS_KEYMAP", getKeymap()); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), _evalAction); // Up and down need to be bound both for keypad and not ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_UP, 0), _historyPrevAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), _historyPrevAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_DOWN, 0), _historyNextAction); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), _historyNextAction); setKeymap(ourMap); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/InteractionsPane.java/buggy/drjava/src/edu/rice/cs/drjava/InteractionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5294, 4905, 8485, 1435, 288, 565, 2240, 12, 2704, 5294, 4905, 2519, 10663, 565, 26482, 2964, 12, 3767, 1769, 565, 444, 2964, 2885, 3944, 12, 3767, 1769, 565, 2715, 5621, 202, 202, 759, 1289, 4209, 364, 6103, 498, 16, 5527, 18, 202, 202, 653, 1458, 3134, 863, 273, 24819, 1458, 2932, 9125, 12249, 55, 67, 3297, 8352, 3113, 3579, 1458, 10663, 9506, 202, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 12278, 16, 374, 3631, 6862, 6862, 6862, 6862, 389, 8622, 1803, 1769, 565, 368, 1948, 471, 2588, 1608, 358, 506, 2489, 3937, 364, 498, 6982, 471, 486, 202, 202, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 47, 52, 67, 3079, 16, 374, 3631, 6862, 6862, 6862, 6862, 389, 8189, 9958, 1803, 1769, 202, 202, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 3079, 16, 374, 3631, 6862, 6862, 6862, 6862, 389, 8189, 9958, 1803, 1769, 202, 202, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 47, 52, 67, 12711, 16, 374, 3631, 6862, 6862, 6862, 6862, 389, 8189, 2134, 1803, 1769, 202, 202, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 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, 5294, 4905, 8485, 1435, 288, 565, 2240, 12, 2704, 5294, 4905, 2519, 10663, 565, 26482, 2964, 12, 3767, 1769, 565, 444, 2964, 2885, 3944, 12, 3767, 1769, 565, 2715, 5621, 202, 202, 759, 1289, 4209, 364, 6103, 498, 16, 5527, 18, 202, 202, 653, 1458, 3134, 863, 273, 24819, 1458, 2932, 9125, 12249, 55, 67, 3297, 8352, 3113, 3579, 1458, 10663, 9506, 202, 477, 863, 18, 1289, 1803, 19759, 14602, 12, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 12278, 16, 374, 3631, 6862, 6862, 6862, 6862, 389, 8622, 1803, 1769, 565, 368, 1948, 471, 2588, 1608, 358, 506, 2489, 3937, 364, 498, 6982, 471, 486, 202, 202, 477, 863, 18, 2 ]
switch(column) {
switch (column) {
ContextWindow(Main db) { super(); this.db = db; enabled = false; JPanel left = new JPanel(); JToolBar t1 = new JToolBar(); t1.setName("Variables"); t1.setLayout(new GridLayout()); t1.add(left); JPanel p1 = new JPanel(); p1.setLayout(new GridLayout()); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout()); p1.add(t1); JLabel label = new JLabel("Context:"); context = new JComboBox(); context.setLightWeightPopupEnabled(false); toolTips = new java.util.Vector(); label.setBorder(context.getBorder()); context.addActionListener(this); context.setActionCommand("ContextSwitch"); GridBagLayout layout = new GridBagLayout(); left.setLayout(layout); GridBagConstraints lc = new GridBagConstraints(); lc.insets.left = 5; lc.anchor = GridBagConstraints.WEST; lc.ipadx = 5; layout.setConstraints(label, lc); left.add(label); GridBagConstraints c = new GridBagConstraints(); c.gridwidth = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; layout.setConstraints(context, c); left.add(context); tabs = new JTabbedPane(SwingConstants.BOTTOM); tabs.setPreferredSize(new Dimension(500,300)); thisTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { //return 3; return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: //return "Type"; //case 2: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); JScrollPane jsp = new JScrollPane(thisTable); jsp.getViewport().setViewSize(new Dimension(5,2)); tabs.add("this", jsp); localsTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); localsTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); localsTable.setPreferredSize(null); jsp = new JScrollPane(localsTable); tabs.add("Locals", jsp); c.weightx = c.weighty = 1; c.gridheight = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.WEST; layout.setConstraints(tabs, c); left.add(tabs); evaluator = new Evaluator(db); cmdLine = new EvalTextArea(db); //cmdLine.requestFocus(); tableModel = evaluator.tableModel; jsp = new JScrollPane(evaluator); JToolBar t2 = new JToolBar(); t2.setName("Evaluate"); tabs2 = new JTabbedPane(SwingConstants.BOTTOM); tabs2.add("Watch", jsp); tabs2.add("Evaluate", new JScrollPane(cmdLine)); tabs2.setPreferredSize(new Dimension(500,300)); t2.setLayout(new GridLayout()); t2.add(tabs2); p2.add(t2); evaluator.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, p1, p2); split.setOneTouchExpandable(true); Main.setResizeWeight(split, 0.5); setLayout(new BorderLayout()); add(split, BorderLayout.CENTER); final JToolBar finalT1 = t1; final JToolBar finalT2 = t2; final JPanel finalP1 = p1; final JPanel finalP2 = p2; final JSplitPane finalSplit = split; final JPanel finalThis = this; final Main finalDb = db; ComponentListener clistener = new ComponentListener() { boolean t1Docked = true; boolean t2Docked = true; void check(Component comp) { Component thisParent = finalThis.getParent(); if(thisParent == null) { return; } Component parent = finalT1.getParent(); boolean leftDocked = true; boolean rightDocked = true; boolean adjustVerticalSplit = false; if(parent != null) { if(parent != finalP1) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Variables", frame); // We need the following hacks because: // - We want an undocked toolbar to be // resizable. // - We are using JToolbar as a container of a // JComboBox. Without this JComboBox's popup // can get left floating when the toolbar is // re-docked. // // We make the frame resizable and then // remove JToolbar's window listener // and insert one of our own that first ensures // the JComboBox's popup window is closed // and then calls JToolbar's window listener. if(!frame.isResizable()) { frame.setResizable(true); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); final EventListener[] l = frame.getListeners(WindowListener.class); frame.removeWindowListener((WindowListener)l[0]); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { context.hidePopup(); ((WindowListener)l[0]).windowClosing(e); } }); //adjustVerticalSplit = true; } leftDocked = false; } else { leftDocked = true; } } parent = finalT2.getParent(); if(parent != null) { if(parent != finalP2) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Evaluate", frame); frame.setResizable(true); rightDocked = false; } else { rightDocked = true; } } if(leftDocked && t2Docked && rightDocked && t2Docked) { // no change return; } t1Docked = leftDocked; t2Docked = rightDocked; JSplitPane split = (JSplitPane)thisParent; if(leftDocked) { if(rightDocked) { finalSplit.setDividerLocation(0.5); } else { finalSplit.setDividerLocation(1.0); } if(adjustVerticalSplit) { split.setDividerLocation(0.66); } } else if(rightDocked) { finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } public void componentHidden(ComponentEvent e) { check(e.getComponent()); } public void componentMoved(ComponentEvent e) { check(e.getComponent()); } public void componentResized(ComponentEvent e) { check(e.getComponent()); } public void componentShown(ComponentEvent e) { check(e.getComponent()); } }; p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if(e.getChild() == finalT1) { if(finalT2.getParent() == finalP2) { // both docked finalSplit.setDividerLocation(0.5); } else { // left docked only finalSplit.setDividerLocation(1.0); } split.setDividerLocation(0.66); } } public void componentRemoved(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if(e.getChild() == finalT1) { if(finalT2.getParent() == finalP2) { // right docked only finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } } }); t1.addComponentListener(clistener); t2.addComponentListener(clistener); disable(); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1772, 3829, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, 21, 273, 394, 804, 6364, 5190, 5621, 3639, 268, 21, 18, 542, 461, 2932, 6158, 8863, 3639, 268, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 268, 21, 18, 1289, 12, 4482, 1769, 3639, 24048, 293, 21, 273, 394, 24048, 5621, 3639, 293, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 24048, 293, 22, 273, 394, 24048, 5621, 3639, 293, 22, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 293, 21, 18, 1289, 12, 88, 21, 1769, 3639, 21403, 1433, 273, 394, 21403, 2932, 1042, 2773, 1769, 3639, 819, 273, 394, 804, 22199, 5621, 3639, 819, 18, 542, 12128, 6544, 13770, 1526, 12, 5743, 1769, 3639, 5226, 56, 7146, 273, 394, 2252, 18, 1367, 18, 5018, 5621, 3639, 1433, 18, 542, 8107, 12, 2472, 18, 588, 8107, 10663, 3639, 819, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 819, 18, 542, 1803, 2189, 2932, 1042, 10200, 8863, 3639, 7145, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 3639, 2002, 18, 542, 3744, 12, 6741, 1769, 3639, 13075, 9109, 273, 394, 13075, 5621, 3639, 9109, 18, 267, 4424, 18, 4482, 273, 1381, 31, 3639, 9109, 18, 16215, 273, 13075, 18, 31285, 31, 3639, 9109, 18, 625, 361, 92, 273, 1381, 31, 3639, 3511, 18, 542, 4878, 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, 1772, 3829, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, 21, 273, 394, 804, 6364, 5190, 5621, 3639, 268, 21, 18, 542, 461, 2932, 6158, 8863, 3639, 268, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 268, 21, 18, 1289, 12, 4482, 1769, 3639, 24048, 293, 21, 273, 394, 24048, 5621, 3639, 293, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 24048, 293, 22, 273, 394, 24048, 5621, 3639, 293, 22, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 293, 21, 18, 1289, 12, 88, 21, 1769, 3639, 21403, 2 ]
bimage.setRGB(x, y, pixelBuffer[y*width+height]);
bimage.setRGB(x, y, pixelBuffer[index++]);
private void updateBufferedImage() { if (bimage != null && pixelConversionRequired) { int height = bimage.getHeight(); int width = bimage.getWidth(); for (int y = 0; y < height; ++y) for (int x = 0; x < width; ++x) bimage.setRGB(x, y, pixelBuffer[y*width+height]); } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/69f8f076efb8bbade016bb5f7480b8a64b2d7f49/GdkGraphics2D.java/buggy/gnu/java/awt/peer/gtk/GdkGraphics2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 17947, 2040, 1435, 225, 288, 565, 309, 261, 70, 2730, 480, 446, 597, 4957, 6814, 3705, 13, 1377, 288, 3639, 509, 2072, 273, 324, 2730, 18, 588, 2686, 5621, 3639, 509, 1835, 273, 324, 2730, 18, 588, 2384, 5621, 3639, 364, 261, 474, 677, 273, 374, 31, 677, 411, 2072, 31, 965, 93, 13, 1850, 364, 261, 474, 619, 273, 374, 31, 619, 411, 1835, 31, 965, 92, 13, 5411, 324, 2730, 18, 542, 11343, 12, 92, 16, 677, 16, 4957, 1892, 63, 1615, 9904, 19226, 1377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 17947, 2040, 1435, 225, 288, 565, 309, 261, 70, 2730, 480, 446, 597, 4957, 6814, 3705, 13, 1377, 288, 3639, 509, 2072, 273, 324, 2730, 18, 588, 2686, 5621, 3639, 509, 1835, 273, 324, 2730, 18, 588, 2384, 5621, 3639, 364, 261, 474, 677, 273, 374, 31, 677, 411, 2072, 31, 965, 93, 13, 1850, 364, 261, 474, 619, 273, 374, 31, 619, 411, 1835, 31, 965, 92, 13, 5411, 324, 2730, 18, 542, 11343, 12, 92, 16, 677, 16, 4957, 1892, 63, 1615, 9904, 19226, 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, -100, -100, -100 ]
for (Equipment weap : EquipmentList.getEquipmentOfType("WEAPON." + aString.substring(11), ""))
for (Equipment weap : EquipmentList.getEquipmentOfType("WEAPON." + aString.substring(11), ""))
private void addWeaponProfToList(final List<Ability> aFeatList, final String aString, final boolean isAuto) { if (aString.startsWith("WEAPONTYPE=") || aString.startsWith("WEAPONTYPE.")) { for (Equipment weap : EquipmentList.getEquipmentOfType("WEAPON." + aString.substring(11), "")) { final WeaponProf aProf = Globals.getWeaponProfKeyed(weap.profKey(this)); if (aProf != null) { addWeaponProfToList(aFeatList, aProf.getKeyName(), isAuto); } } return; } // Add all weapons of type aString // (e.g.: Simple, Martial, Exotic, Ranged, etc.) else if (Globals.weaponTypesContains(aString)) { for (WeaponProf weaponProf : Globals.getAllWeaponProfsOfType(aString)) { addWeaponProfToList(aFeatList, weaponProf.getKeyName(), isAuto); } return; } final WeaponProf wp = Globals.getWeaponProfKeyed(aString); if (wp != null) { final StringTokenizer aTok = new StringTokenizer(wp.getType(), "."); String featKey = aTok.nextToken() + " Weapon Proficiency"; while (aTok.hasMoreTokens() || (featKey.length() > 0)) { if ("".equals(featKey)) { if (aTok.hasMoreTokens()) { featKey = aTok.nextToken() + " Weapon Proficiency"; } else { break; } } Ability anAbility = AbilityUtilities.getAbilityFromList(aFeatList, "FEAT", featKey, Ability.Nature.ANY); if (anAbility != null) { if (anAbility.isMultiples() && !anAbility.containsAssociated(aString)) { anAbility.addAssociated(aString); anAbility.sortAssociated(); } } else { anAbility = Globals.getAbilityKeyed("FEAT", featKey); if (anAbility != null) { if (isAuto && !anAbility.isMultiples() && !Constants.s_INTERNAL_WEAPON_PROF.equalsIgnoreCase(featKey)) { // // Only use catch-all if haven't taken feat that supersedes it // if(hasRealFeat(anAbility)) { featKey = Constants.s_INTERNAL_WEAPON_PROF; continue; } featKey = ""; continue; // Don't add auto-feat } anAbility = anAbility.clone(); anAbility.addAssociated(aString); if (isAuto) { anAbility.setFeatType(Ability.Nature.AUTOMATIC); } aFeatList.add(anAbility); } /*else { if (!wp.isType("NATURAL")) { Logging.errorPrint("Weaponprof feat not found: " + featName + ":" + aString); } }*/ } if(anAbility != null) { // TheForken 20050124 adds bonus to feat anAbility.addSelectedWeaponProfBonus(aString); } featKey = ""; } } if ( wp != null && cachedWeaponProfs != null) { cachedWeaponProfs.put(wp.getKeyName(), wp); }// if (wp != null && !weaponProfList.contains(wp))// {// weaponProfList.add(wp);// } }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 3218, 28629, 27012, 25772, 12, 6385, 987, 32, 5895, 1889, 34, 279, 11667, 682, 16, 727, 514, 279, 780, 16, 727, 1250, 27079, 13, 202, 95, 202, 202, 430, 261, 69, 780, 18, 17514, 1190, 2932, 6950, 2203, 673, 2399, 1546, 13, 747, 279, 780, 18, 17514, 1190, 2932, 6950, 2203, 673, 2399, 1199, 3719, 202, 202, 95, 1082, 202, 1884, 261, 13142, 11568, 732, 438, 294, 19008, 11568, 682, 18, 588, 13142, 11568, 18859, 2932, 6950, 2203, 673, 1199, 397, 279, 780, 18, 28023, 12, 2499, 3631, 1408, 3719, 1082, 202, 95, 6862, 202, 6385, 1660, 28629, 27012, 279, 27012, 273, 18901, 1031, 18, 588, 3218, 28629, 27012, 653, 329, 12, 1814, 438, 18, 16121, 653, 12, 2211, 10019, 6862, 202, 430, 261, 69, 27012, 480, 446, 13, 6862, 202, 95, 25083, 202, 1289, 3218, 28629, 27012, 25772, 12, 69, 11667, 682, 16, 279, 27012, 18, 588, 13987, 9334, 27079, 1769, 6862, 202, 97, 9506, 202, 97, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 1436, 777, 732, 438, 7008, 434, 618, 279, 780, 202, 202, 759, 261, 73, 18, 75, 29710, 4477, 16, 490, 485, 649, 16, 1312, 352, 335, 16, 534, 2330, 16, 5527, 12998, 202, 202, 12107, 309, 261, 19834, 18, 1814, 28629, 2016, 10846, 12, 69, 780, 3719, 202, 202, 95, 1082, 202, 1884, 261, 3218, 28629, 27012, 732, 28629, 27012, 294, 18901, 1031, 18, 588, 1595, 3218, 28629, 626, 2556, 18859, 12, 69, 780, 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, 527, 3218, 28629, 27012, 25772, 12, 6385, 987, 32, 5895, 1889, 34, 279, 11667, 682, 16, 727, 514, 279, 780, 16, 727, 1250, 27079, 13, 202, 95, 202, 202, 430, 261, 69, 780, 18, 17514, 1190, 2932, 6950, 2203, 673, 2399, 1546, 13, 747, 279, 780, 18, 17514, 1190, 2932, 6950, 2203, 673, 2399, 1199, 3719, 202, 202, 95, 1082, 202, 1884, 261, 13142, 11568, 732, 438, 294, 19008, 11568, 682, 18, 588, 13142, 11568, 18859, 2932, 6950, 2203, 673, 1199, 397, 279, 780, 18, 28023, 12, 2499, 3631, 1408, 3719, 1082, 202, 95, 6862, 202, 6385, 1660, 28629, 27012, 279, 27012, 273, 18901, 1031, 18, 588, 3218, 28629, 27012, 653, 329, 12, 1814, 438, 2 ]
if (lastExprType == ts.FUNCTION)
if (lastExprType == ts.FUNCTION) { if (nf.getLeafType(pn) != ts.FUNCTION) { reportError(ts, "msg.syntax"); }
private Object statementHelper(TokenStream ts) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case TokenStream.IF: { skipsemi = true; sourceAdd((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object ifTrue = statement(ts); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { sourceAdd((char)ts.RC); sourceAdd((char)ts.ELSE); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); ifFalse = statement(ts); } sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case TokenStream.SWITCH: { skipsemi = true; sourceAdd((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); sourceAdd((char)ts.LP); nf.addChildToBack(pn, expr(ts, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case TokenStream.CASE: sourceAdd((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, false)); sourceAdd((char)ts.COLON); sourceAdd((char)ts.EOL); break; case TokenStream.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); sourceAdd((char)ts.DEFAULT); sourceAdd((char)ts.COLON); sourceAdd((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); break; } case TokenStream.WHILE: { skipsemi = true; sourceAdd((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object body = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case TokenStream.DO: { sourceAdd((char)ts.DO); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts); sourceAdd((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); sourceAdd((char)ts.WHILE); Object cond = condition(ts); pn = nf.createDoWhile(body, cond, lineno); break; } case TokenStream.FOR: { skipsemi = true; sourceAdd((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); sourceAdd((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, true); } else { init = expr(ts, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); sourceAdd((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); sourceAdd((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); sourceAdd((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); sourceAdd((char)ts.RP); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); body = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case TokenStream.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; sourceAdd((char)ts.TRY); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); tryblock = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } sourceAdd((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); sourceAdd((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); sourceAddString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { sourceAdd((char)ts.IF); catchCond = expr(ts, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { sourceAdd((char)ts.FINALLY); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); finallyblock = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case TokenStream.THROW: { int lineno = ts.getLineno(); sourceAdd((char)ts.THROW); pn = nf.createThrow(expr(ts, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case TokenStream.BREAK: { int lineno = ts.getLineno(); sourceAdd((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { sourceAddString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case TokenStream.CONTINUE: { int lineno = ts.getLineno(); sourceAdd((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { sourceAddString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case TokenStream.WITH: { skipsemi = true; sourceAdd((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); sourceAdd((char)ts.LP); Object obj = expr(ts, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); sourceAdd((char)ts.RP); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object body = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.RETURN: { Object retExpr = null; int lineno = 0; sourceAdd((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. sourceAdd((char)ts.COLON); sourceAdd((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { sourceAdd((char)ts.SEMI); sourceAdd((char)ts.EOL); } return pn; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/cd3ab305aea439e83afec1f87e6be3788f2135d3/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 986, 12443, 3001, 13, 3428, 18, 5501, 1769, 5411, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 5411, 1033, 6941, 273, 2269, 12, 3428, 1769, 5411, 1084, 986, 12443, 3001, 13, 3428, 18, 13394, 1769, 5411, 1084, 986, 12443, 3001, 13, 3428, 18, 5842, 1769, 5411, 1033, 309, 5510, 273, 3021, 12, 3428, 1769, 5411, 1033, 309, 8381, 273, 446, 31, 5411, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 2247, 1090, 3719, 288, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 11529, 1769, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 2247, 1090, 1769, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 13394, 1769, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 5842, 1769, 7734, 309, 8381, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 5501, 30, 288, 5411, 2488, 307, 2 ]
public org.quickfix.field.StandInstDbID getStandInstDbID() throws FieldNotFound { org.quickfix.field.StandInstDbID value = new org.quickfix.field.StandInstDbID();
public quickfix.field.StandInstDbID getStandInstDbID() throws FieldNotFound { quickfix.field.StandInstDbID value = new quickfix.field.StandInstDbID();
public org.quickfix.field.StandInstDbID getStandInstDbID() throws FieldNotFound { org.quickfix.field.StandInstDbID value = new org.quickfix.field.StandInstDbID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationInstruction.java/buggy/src/java/src/quickfix/fix44/AllocationInstruction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 20612, 10773, 4331, 734, 336, 20612, 10773, 4331, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 20612, 10773, 4331, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 20612, 10773, 4331, 734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 20612, 10773, 4331, 734, 336, 20612, 10773, 4331, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 20612, 10773, 4331, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 20612, 10773, 4331, 734, 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 ]
public boolean first() throws SQLException {
public boolean first() throws SQLException {
public boolean first() throws SQLException { if (rows.size() <= 0) return false; current_row = 0; this_row = (byte[][]) rows.elementAt(current_row); rowBuffer = new byte[this_row.length][]; System.arraycopy(this_row, 0, rowBuffer, 0, this_row.length); return true; }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/881390fff6371b83670cbbc50cb82003b630e7fc/AbstractJdbc2ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1122, 1435, 1216, 6483, 288, 565, 309, 261, 3870, 18, 1467, 1435, 1648, 374, 13, 1377, 327, 629, 31, 565, 783, 67, 492, 273, 374, 31, 565, 333, 67, 492, 273, 261, 7229, 63, 6362, 5717, 2595, 18, 2956, 861, 12, 2972, 67, 492, 1769, 565, 1027, 1892, 273, 394, 1160, 63, 2211, 67, 492, 18, 2469, 6362, 15533, 565, 2332, 18, 1126, 3530, 12, 2211, 67, 492, 16, 374, 16, 1027, 1892, 16, 374, 16, 333, 67, 492, 18, 2469, 1769, 565, 327, 638, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1122, 1435, 1216, 6483, 288, 565, 309, 261, 3870, 18, 1467, 1435, 1648, 374, 13, 1377, 327, 629, 31, 565, 783, 67, 492, 273, 374, 31, 565, 333, 67, 492, 273, 261, 7229, 63, 6362, 5717, 2595, 18, 2956, 861, 12, 2972, 67, 492, 1769, 565, 1027, 1892, 273, 394, 1160, 63, 2211, 67, 492, 18, 2469, 6362, 15533, 565, 2332, 18, 1126, 3530, 12, 2211, 67, 492, 16, 374, 16, 1027, 1892, 16, 374, 16, 333, 67, 492, 18, 2469, 1769, 565, 327, 638, 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 ]
public void applyFix(Project project, ProblemDescriptor problemDescriptor){
public void applyFix(Project project, ProblemDescriptor descriptor){ if (ReadonlyStatusHandler.getInstance(project).ensureFilesWritable(new VirtualFile[]{descriptor.getPsiElement().getContainingFile().getVirtualFile()}).hasReadonlyFiles()) return;
public void applyFix(Project project, ProblemDescriptor problemDescriptor){ try{ final PsiExpression variable = (PsiExpression) problemDescriptor.getPsiElement(); final PsiCatchSection catchSection = (PsiCatchSection) PsiTreeUtil.getParentOfType(variable, PsiCatchSection.class); final PsiCodeBlock body = catchSection.getCatchBlock(); final String replacementText; final PsiType type = variable.getType(); final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager codeStyleManager = psiManager.getCodeStyleManager(); final String originalVariableName = variable.getText(); final SuggestedNameInfo suggestions = codeStyleManager.suggestVariableName(VariableKind.LOCAL_VARIABLE, originalVariableName + '1', variable, type); final String[] names = suggestions.names; final String baseName; if(names != null && names.length > 0){ baseName = names[0]; } else{ baseName = "value"; } final String variableName = codeStyleManager.suggestUniqueVariableName(baseName, catchSection, false); final String className = type.getPresentableText(); final PsiElement[] children = body.getChildren(); final StringBuffer buffer = new StringBuffer(); for(int i = 1; i < children.length; i++){ replaceVariableName(children[i], variableName, originalVariableName, buffer); } replacementText = '{' + className + ' ' + variableName + " = " + originalVariableName + ';' + buffer.toString(); final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiCodeBlock block = elementFactory.createCodeBlockFromText(replacementText, null); body.replace(block); codeStyleManager.reformat(catchSection); } catch(IncorrectOperationException e){ } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f23e268ec3c50c6292ee986871630b8e997a0d32/AssignmentToCatchBlockParameterInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/confusing/AssignmentToCatchBlockParameterInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2230, 8585, 12, 4109, 1984, 16, 11794, 21685, 3187, 6199, 3187, 15329, 5411, 775, 95, 7734, 727, 453, 7722, 2300, 2190, 273, 13491, 261, 52, 7722, 2300, 13, 6199, 3187, 18, 588, 52, 7722, 1046, 5621, 7734, 727, 453, 7722, 14842, 5285, 1044, 5285, 273, 13491, 261, 52, 7722, 14842, 5285, 13, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 28524, 1377, 453, 7722, 14842, 5285, 18, 1106, 1769, 7734, 727, 453, 7722, 1085, 1768, 1417, 273, 1044, 5285, 18, 588, 14842, 1768, 5621, 7734, 727, 514, 6060, 1528, 31, 7734, 727, 453, 7722, 559, 618, 273, 2190, 18, 588, 559, 5621, 7734, 727, 453, 7722, 1318, 23921, 1318, 273, 453, 7722, 1318, 18, 588, 1442, 12, 4406, 1769, 7734, 727, 3356, 2885, 1318, 981, 2885, 1318, 273, 13491, 23921, 1318, 18, 588, 1085, 2885, 1318, 5621, 7734, 727, 514, 2282, 21519, 273, 2190, 18, 588, 1528, 5621, 7734, 727, 348, 28892, 461, 966, 17969, 273, 13491, 981, 2885, 1318, 18, 87, 8679, 21519, 12, 3092, 5677, 18, 14922, 67, 16444, 16, 4766, 11794, 2282, 21519, 397, 4766, 19694, 296, 21, 2187, 4766, 11794, 2190, 16, 618, 1769, 7734, 727, 514, 8526, 1257, 273, 17969, 18, 1973, 31, 7734, 727, 514, 16162, 31, 7734, 309, 12, 1973, 480, 446, 597, 1257, 18, 2469, 405, 374, 15329, 10792, 16162, 273, 1257, 63, 20, 15533, 7734, 289, 469, 95, 10792, 16162, 273, 315, 1132, 14432, 7734, 289, 7734, 727, 514, 17834, 273, 13491, 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, 540, 1071, 918, 2230, 8585, 12, 4109, 1984, 16, 11794, 21685, 3187, 6199, 3187, 15329, 5411, 775, 95, 7734, 727, 453, 7722, 2300, 2190, 273, 13491, 261, 52, 7722, 2300, 13, 6199, 3187, 18, 588, 52, 7722, 1046, 5621, 7734, 727, 453, 7722, 14842, 5285, 1044, 5285, 273, 13491, 261, 52, 7722, 14842, 5285, 13, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 28524, 1377, 453, 7722, 14842, 5285, 18, 1106, 1769, 7734, 727, 453, 7722, 1085, 1768, 1417, 273, 1044, 5285, 18, 588, 14842, 1768, 5621, 7734, 727, 514, 6060, 1528, 31, 7734, 727, 453, 7722, 559, 618, 273, 2190, 18, 588, 559, 5621, 7734, 727, 453, 7722, 1318, 23921, 1318, 273, 453, 7722, 1318, 2 ]
context.operands.push("2016");
double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated));
public void execute(PAContext context) throws PainterException { context.operands.push("2016"); }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/daa5304636a08f20e2545b070a8a5d968b0ebfb8/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 1645, 15282, 31, 225, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 21, 1769, 309, 261, 892, 63, 20, 65, 411, 374, 13, 288, 15282, 273, 2361, 18, 311, 330, 12, 892, 63, 20, 19226, 289, 469, 288, 15282, 273, 2361, 18, 74, 5807, 12, 892, 63, 20, 19226, 289, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 3698, 12, 23558, 690, 10019, 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, 0, 0, 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, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 1645, 15282, 31, 225, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 21, 1769, 309, 261, 892, 63, 20, 65, 411, 374, 13, 288, 15282, 273, 2361, 18, 311, 330, 12, 892, 63, 20, 19226, 289, 469, 288, 15282, 273, 2361, 18, 74, 5807, 12, 892, 63, 20, 19226, 289, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 3698, 12, 23558, 690, 10019, 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 ]
CertPathValidatorSpi certPathValid = (CertPathValidatorSpi) new MyCertPathValidatorSpi(); assertTrue(certPathValid instanceof CertPathValidatorSpi);
CertPathValidatorSpi certPathValid = new MyCertPathValidatorSpi();
public void testCertPathValidatorSpi01() throws CertPathValidatorException, InvalidAlgorithmParameterException { CertPathValidatorSpi certPathValid = (CertPathValidatorSpi) new MyCertPathValidatorSpi(); assertTrue(certPathValid instanceof CertPathValidatorSpi); CertPathParameters params = null; CertPath certPath = null; CertPathValidatorResult cpvResult = certPathValid.engineValidate( certPath, params); assertNull("Not null CertPathValidatorResult", cpvResult); try { certPathValid.engineValidate(certPath, params); fail("CertPathValidatorException must be thrown"); } catch (CertPathValidatorException e) { } try { certPathValid.engineValidate(certPath, params); fail("InvalidAlgorithmParameterException must be thrown"); } catch (InvalidAlgorithmParameterException e) { } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/725ae047c421126dd0fcfebb60f514948e7cc007/CertPathValidatorSpiTest.java/buggy/modules/security/src/test/java/common/java/security/cert/CertPathValidatorSpiTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5461, 743, 5126, 21887, 1611, 1435, 1216, 11921, 743, 5126, 503, 16, 5411, 1962, 6801, 14819, 288, 3639, 11921, 743, 5126, 21887, 3320, 743, 1556, 273, 2398, 261, 5461, 743, 5126, 21887, 13, 394, 8005, 5461, 743, 5126, 21887, 5621, 3639, 1815, 5510, 12, 7593, 743, 1556, 1276, 11921, 743, 5126, 21887, 1769, 3639, 11921, 743, 2402, 859, 273, 446, 31, 3639, 11921, 743, 3320, 743, 273, 446, 31, 3639, 11921, 743, 5126, 1253, 3283, 90, 1253, 273, 3320, 743, 1556, 18, 8944, 4270, 12, 7734, 3320, 743, 16, 859, 1769, 3639, 1815, 2041, 2932, 1248, 446, 11921, 743, 5126, 1253, 3113, 3283, 90, 1253, 1769, 3639, 775, 288, 5411, 3320, 743, 1556, 18, 8944, 4270, 12, 7593, 743, 16, 859, 1769, 5411, 2321, 2932, 5461, 743, 5126, 503, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 5461, 743, 5126, 503, 425, 13, 288, 10792, 289, 3639, 775, 288, 5411, 3320, 743, 1556, 18, 8944, 4270, 12, 7593, 743, 16, 859, 1769, 5411, 2321, 2932, 1941, 6801, 14819, 1297, 506, 6718, 8863, 3639, 289, 1044, 261, 1941, 6801, 14819, 425, 13, 288, 10792, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5461, 743, 5126, 21887, 1611, 1435, 1216, 11921, 743, 5126, 503, 16, 5411, 1962, 6801, 14819, 288, 3639, 11921, 743, 5126, 21887, 3320, 743, 1556, 273, 2398, 261, 5461, 743, 5126, 21887, 13, 394, 8005, 5461, 743, 5126, 21887, 5621, 3639, 1815, 5510, 12, 7593, 743, 1556, 1276, 11921, 743, 5126, 21887, 1769, 3639, 11921, 743, 2402, 859, 273, 446, 31, 3639, 11921, 743, 3320, 743, 273, 446, 31, 3639, 11921, 743, 5126, 1253, 3283, 90, 1253, 273, 3320, 743, 1556, 18, 8944, 4270, 12, 7734, 3320, 743, 16, 859, 1769, 3639, 1815, 2041, 2932, 1248, 446, 11921, 743, 5126, 1253, 3113, 3283, 90, 1253, 1769, 3639, 775, 288, 5411, 3320, 743, 1556, 18, 8944, 2 ]
StreamItDot.printGraph(str, "after.dot");
public static void flatten(SIRStream str, JInterfaceDeclaration[] interfaces, SIRInterfaceTable[] interfaceTables, SIRStructure[] structs) { /* DEBUGGING PRINTING System.out.println("--------- ON ENTRY TO FLATTENER ----------------"); SIRPrinter printer1 = new SIRPrinter(); IterFactory.createIter(str).accept(printer1); printer1.close(); */ enableUnrollIfLinear(); // move field initializations into init function FieldInitMover.moveStreamInitialAssignments(str); // propagate constants and unroll loops System.err.print("Running Constant Prop and Unroll... "); ConstantProp.propagateAndUnroll(str); System.err.println("done."); // Convert Peeks to Pops if (KjcOptions.poptopeek) { System.err.print("Converting pop to peek... "); PopToPeek.removeAllPops(str); ConstantProp.propagateAndUnroll(str); System.err.println("done."); } // construct stream hierarchy from SIRInitStatements ConstructSIRTree.doit(str); INIT_STATEMENTS_RESOLVED = true; // dump the original graph to a dot format StreamItDot.printGraph(str, "before.dot"); AdjustGranularity.doit(str, -1); if (KjcOptions.fusion) { System.err.print("Running FuseAll..."); FuseAll.fuse(str); System.err.println("done."); } if (KjcOptions.partition || KjcOptions.ilppartition || KjcOptions.dppartition) { System.err.print("Partitioning..."); str = Partitioner.doit(str, KjcOptions.raw * KjcOptions.raw); System.err.println("done."); } if (KjcOptions.sjtopipe) { SJToPipe.doit(str); } // dump the partitioned graph to a dot format StreamItDot.printGraph(str, "after.dot"); /* Not general code: Just a test for sync-removal on TwoWeightedRR.java */ /* StreamItDot.printGraph(str, "before-syncremov.dot"); SIRPipeline parentPipe = (SIRPipeline)str; SyncRemovalSJPair.diffuseSJPair((SIRSplitJoin)parentPipe.get(1), (SIRSplitJoin)parentPipe.get(2)); StreamItDot.printGraph(str, "after-syncremov.dot"); */ /* SIRFilter toDuplicate = ((SIRFilter) ((SIRPipeline) ((SIRPipeline)str).get(1)).get(0)); System.err.println("Trying to duplicate " + toDuplicate); StatelessDuplicate.doit(toDuplicate, 2); */ //Raise NewArray's up to top System.err.print("Raising variable declarations... "); new VarDeclRaiser().raiseVars(str); System.err.println("done."); /* aal -- changed so that the default action is to do field prop. * turn off field prop using --nofieldprop or -L */ // do constant propagation on fields if (KjcOptions.nofieldprop) { } else { System.err.print("Propagating constant fields... "); FieldProp.doPropagate(str); System.err.println("done."); } /* dzm -- note phase ordering issue here. In particular, we * probably want to form filter phases before fusing the world, but we need * to run field prop before forming phases. */ // resolve phases in phased filters FilterPhaser.resolvePhasedFilters(str); // move field initializations into init function System.err.print("Moving initial assignments... "); FieldInitMover.moveStreamInitialAssignments(str); System.err.println("done."); /* DEBUGGING PRINTING System.out.println("--------- AFTER CONSTANT PROP / FUSION --------"); printer1 = new SIRPrinter(); IterFactory.createIter(str).accept(printer1); printer1.close(); */ if (KjcOptions.nofieldprop) { } else { //Flatten Blocks System.err.print("Flattening blocks... "); new BlockFlattener().flattenBlocks(str); System.err.println("done."); //Analyze Branches //System.err.print("Analyzing branches... "); //new BranchAnalyzer().analyzeBranches(str); //System.err.println("done."); } //Destroys arrays into local variables if possible //System.err.print("Destroying arrays... "); //new ArrayDestroyer().destroyArrays(str); //System.err.println("done."); //Raise variables to the top of their block System.err.print("Raising variables... "); new VarDeclRaiser().raiseVars(str); System.err.println("done."); str = doLinearAnalysis(str); // if we have don't have a container, wrap it in a pipeline // for the sake of SIRScheduler. if (!(str instanceof SIRContainer)) { str = SIRContainer.makeWrapper(str); } // make single structure SIRIterator iter = IterFactory.createIter(str); System.err.print("Structuring... "); JClassDeclaration flatClass = Structurer.structure(iter, interfaces, interfaceTables, structs); System.err.println("done."); // optionally print a version of the source code that we're // sending to the scheduler if (KjcOptions.print_partitioned_source) { new streamit.scheduler2.print.PrintProgram().printProgram(IterFactory.createIter(str)); } // build schedule as set of higher-level work functions System.err.print("Scheduling... "); SIRSchedule schedule = SIRScheduler.buildWorkFunctions((SIRContainer)str, flatClass); System.err.println("done."); // add LIR hooks to init and work functions System.err.print("Annotating IR for uniprocessor... "); LowerInitFunctions.lower(iter, schedule); LowerWorkFunctions.lower(iter); System.err.println("done."); /* DEBUGGING PRINTING System.out.println("----------- AFTER FLATTENER ------------------"); IRPrinter printer = new IRPrinter(); flatClass.accept(printer); printer.close(); */ System.err.println("Generating code..."); LIRToC.generateCode(flatClass); //System.err.println("done."); }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/ccfee7d2a6ee5d52c2aafdc841d20fb35667b6d5/Flattener.java/clean/streams/src/at/dms/kjc/sir/lowering/Flattener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 5341, 12, 2320, 54, 1228, 609, 16, 9506, 4202, 804, 1358, 6094, 8526, 4697, 4202, 7349, 16, 9506, 4202, 5705, 54, 1358, 1388, 8526, 9506, 4202, 1560, 6905, 16, 9506, 4202, 5705, 54, 6999, 8526, 8179, 13, 288, 202, 20308, 6369, 19066, 11770, 3217, 1360, 3639, 2332, 18, 659, 18, 8222, 2932, 8567, 6229, 25516, 8493, 478, 12190, 56, 8196, 300, 18753, 8863, 202, 2320, 54, 12149, 12539, 21, 273, 394, 5705, 54, 12149, 5621, 202, 2360, 1733, 18, 2640, 2360, 12, 701, 2934, 9436, 12, 30439, 21, 1769, 202, 30439, 21, 18, 4412, 5621, 202, 5549, 202, 7589, 984, 2693, 2047, 15982, 5621, 202, 759, 3635, 652, 2172, 7089, 1368, 1208, 445, 202, 974, 2570, 49, 1643, 18, 8501, 1228, 4435, 18628, 12, 701, 1769, 202, 202, 759, 13551, 6810, 471, 640, 2693, 14075, 202, 3163, 18, 370, 18, 1188, 2932, 7051, 10551, 10484, 471, 1351, 2693, 2777, 315, 1769, 202, 6902, 4658, 18, 5986, 346, 340, 1876, 984, 2693, 12, 701, 1769, 202, 3163, 18, 370, 18, 8222, 2932, 8734, 1199, 1769, 202, 759, 4037, 22173, 87, 358, 453, 4473, 202, 430, 261, 47, 78, 71, 1320, 18, 1631, 337, 1306, 3839, 13, 288, 202, 565, 2332, 18, 370, 18, 1188, 2932, 2723, 310, 1843, 358, 8032, 2777, 315, 1769, 202, 565, 10264, 774, 30950, 18, 4479, 1595, 52, 4473, 12, 701, 1769, 202, 565, 10551, 4658, 18, 5986, 346, 340, 1876, 984, 2693, 12, 701, 1769, 202, 565, 2332, 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, 760, 918, 5341, 12, 2320, 54, 1228, 609, 16, 9506, 4202, 804, 1358, 6094, 8526, 4697, 4202, 7349, 16, 9506, 4202, 5705, 54, 1358, 1388, 8526, 9506, 4202, 1560, 6905, 16, 9506, 4202, 5705, 54, 6999, 8526, 8179, 13, 288, 202, 20308, 6369, 19066, 11770, 3217, 1360, 3639, 2332, 18, 659, 18, 8222, 2932, 8567, 6229, 25516, 8493, 478, 12190, 56, 8196, 300, 18753, 8863, 202, 2320, 54, 12149, 12539, 21, 273, 394, 5705, 54, 12149, 5621, 202, 2360, 1733, 18, 2640, 2360, 12, 701, 2934, 9436, 12, 30439, 21, 1769, 202, 30439, 21, 18, 4412, 5621, 202, 5549, 202, 7589, 984, 2693, 2047, 15982, 5621, 202, 759, 3635, 652, 2172, 7089, 1368, 1208, 445, 202, 974, 2 ]
public ClassCircularityError() { super(); }
public ClassCircularityError() { }
public ClassCircularityError() { super(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fa6dec2bff713ecbdbc8d1a37bcc4276ec82bc14/ClassCircularityError.java/buggy/core/src/classpath/java/java/lang/ClassCircularityError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 25858, 560, 668, 1435, 225, 202, 95, 202, 202, 9565, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1659, 25858, 560, 668, 1435, 225, 202, 95, 202, 202, 9565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ChannelGroup group = getChannelGroupById(g.getId());
public Channel[] checkForAvailableChannels(devplugin.ChannelGroup g, ProgressMonitor monitor) throws TvBrowserException { ArrayList channelList=new ArrayList(); ChannelGroup group = getChannelGroupById(g.getId()); monitor.setMessage(mLocalizer.msg("checkingForAvailableChannels","Checking for froup {0}", g.getName())); Channel[] ch=group.checkForAvailableChannels(null); for (int j=0;j<ch.length;j++) { channelList.add(ch[j]); } Channel[] result=new Channel[channelList.size()]; channelList.toArray(result); return result; }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/5e471dd6751b904803139d9423c77b14f18b3dd8/TvBrowserDataService.java/clean/tvbrowser/src/tvbrowserdataservice/TvBrowserDataService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5307, 8526, 13855, 5268, 10585, 12, 5206, 4094, 18, 2909, 1114, 314, 16, 10980, 7187, 6438, 13, 1216, 399, 90, 9132, 503, 288, 565, 2407, 1904, 682, 33, 2704, 2407, 5621, 4202, 6438, 18, 542, 1079, 12, 81, 2042, 1824, 18, 3576, 2932, 24609, 1290, 5268, 10585, 15937, 14294, 364, 284, 656, 288, 20, 1532, 16, 314, 18, 17994, 1435, 10019, 565, 5307, 8526, 462, 33, 1655, 18, 1893, 1290, 5268, 10585, 12, 2011, 1769, 565, 364, 261, 474, 525, 33, 20, 31, 78, 32, 343, 18, 2469, 31, 78, 27245, 288, 1377, 1904, 682, 18, 1289, 12, 343, 63, 78, 19226, 565, 289, 565, 5307, 8526, 563, 33, 2704, 5307, 63, 4327, 682, 18, 1467, 1435, 15533, 565, 1904, 682, 18, 31447, 12, 2088, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5307, 8526, 13855, 5268, 10585, 12, 5206, 4094, 18, 2909, 1114, 314, 16, 10980, 7187, 6438, 13, 1216, 399, 90, 9132, 503, 288, 565, 2407, 1904, 682, 33, 2704, 2407, 5621, 4202, 6438, 18, 542, 1079, 12, 81, 2042, 1824, 18, 3576, 2932, 24609, 1290, 5268, 10585, 15937, 14294, 364, 284, 656, 288, 20, 1532, 16, 314, 18, 17994, 1435, 10019, 565, 5307, 8526, 462, 33, 1655, 18, 1893, 1290, 5268, 10585, 12, 2011, 1769, 565, 364, 261, 474, 525, 33, 20, 31, 78, 32, 343, 18, 2469, 31, 78, 27245, 288, 1377, 1904, 682, 18, 1289, 12, 343, 63, 78, 19226, 565, 289, 565, 5307, 8526, 563, 33, 2704, 5307, 63, 4327, 682, 18, 1467, 1435, 2 ]
final Collection expressCols = action.getExpressionColumns();
final Collection expressCols = action.getTargetExpressionColumns();
public void doExpressionAddColumns(final ExpressionAddColumns action, final List statements) throws Exception { final String srcSchemaName = action.getSourceTableSchema() == null ? action .getDataSetSchemaName() : ((JDBCSchema) action.getSourceTableSchema()) .getDatabaseSchema(); final String srcTableName = action.getSourceTableName(); final String trgtSchemaName = action.getTargetTableSchema() == null ? action .getDataSetSchemaName() : ((JDBCSchema) action.getTargetTableSchema()) .getDatabaseSchema(); final String trgtTableName = action.getTargetTableName(); final boolean useGroupBy = action.getUseGroupBy(); final Collection selectCols = action.getSourceTableColumns(); final Collection expressCols = action.getExpressionColumns(); final StringBuffer sb = new StringBuffer(); sb.append("create table " + trgtSchemaName + "." + trgtTableName + " as select "); for (final Iterator i = selectCols.iterator(); i.hasNext();) { final Column col = (Column) i.next(); sb.append(col.getName()); sb.append(','); } for (final Iterator i = expressCols.iterator(); i.hasNext();) { final ExpressionColumn col = (ExpressionColumn) i.next(); sb.append(col.getSubstitutedExpression()); sb.append(" as "); sb.append(col.getName()); if (i.hasNext()) sb.append(','); } sb.append(" from " + srcSchemaName + "." + srcTableName); if (useGroupBy) { sb.append(" group by "); for (final Iterator i = selectCols.iterator(); i.hasNext();) { final Column col = (Column) i.next(); sb.append(col.getName()); if (i.hasNext()) sb.append(','); } } statements.add(sb.toString()); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/697fc52b912bb5a1524113edc0e15bf091f78336/OracleDialect.java/buggy/src/java/org/biomart/builder/controller/dialects/OracleDialect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 2300, 986, 3380, 12, 6385, 5371, 986, 3380, 1301, 16, 1082, 202, 6385, 987, 6317, 13, 1216, 1185, 288, 202, 202, 6385, 514, 1705, 3078, 461, 273, 1301, 18, 588, 1830, 1388, 3078, 1435, 422, 446, 692, 1301, 9506, 202, 18, 588, 13676, 3078, 461, 1435, 9506, 202, 30, 14015, 30499, 3078, 13, 1301, 18, 588, 1830, 1388, 3078, 10756, 25083, 202, 18, 588, 4254, 3078, 5621, 202, 202, 6385, 514, 1705, 7147, 273, 1301, 18, 588, 1830, 7147, 5621, 202, 202, 6385, 514, 433, 4521, 3078, 461, 273, 1301, 18, 588, 2326, 1388, 3078, 1435, 422, 446, 692, 1301, 9506, 202, 18, 588, 13676, 3078, 461, 1435, 9506, 202, 30, 14015, 30499, 3078, 13, 1301, 18, 588, 2326, 1388, 3078, 10756, 25083, 202, 18, 588, 4254, 3078, 5621, 202, 202, 6385, 514, 433, 4521, 7147, 273, 1301, 18, 588, 2326, 7147, 5621, 202, 202, 6385, 1250, 999, 26257, 273, 1301, 18, 588, 3727, 26257, 5621, 202, 202, 6385, 2200, 2027, 8011, 273, 1301, 18, 588, 1830, 1388, 3380, 5621, 202, 202, 6385, 2200, 16947, 8011, 273, 1301, 18, 588, 2300, 3380, 5621, 202, 202, 6385, 6674, 2393, 273, 394, 6674, 5621, 202, 202, 18366, 18, 6923, 2932, 2640, 1014, 315, 397, 433, 4521, 3078, 461, 397, 4585, 397, 433, 4521, 7147, 9506, 202, 15, 315, 487, 2027, 315, 1769, 202, 202, 1884, 261, 6385, 4498, 277, 273, 2027, 8011, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 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, 918, 741, 2300, 986, 3380, 12, 6385, 5371, 986, 3380, 1301, 16, 1082, 202, 6385, 987, 6317, 13, 1216, 1185, 288, 202, 202, 6385, 514, 1705, 3078, 461, 273, 1301, 18, 588, 1830, 1388, 3078, 1435, 422, 446, 692, 1301, 9506, 202, 18, 588, 13676, 3078, 461, 1435, 9506, 202, 30, 14015, 30499, 3078, 13, 1301, 18, 588, 1830, 1388, 3078, 10756, 25083, 202, 18, 588, 4254, 3078, 5621, 202, 202, 6385, 514, 1705, 7147, 273, 1301, 18, 588, 1830, 7147, 5621, 202, 202, 6385, 514, 433, 4521, 3078, 461, 273, 1301, 18, 588, 2326, 1388, 3078, 1435, 422, 446, 692, 1301, 9506, 202, 18, 588, 13676, 3078, 461, 1435, 9506, 202, 30, 14015, 30499, 3078, 2 ]
String type; int categoryDepth = depth - 2; try { type = ((ConcreteMarker) marker1).getMarker().getType(); } catch (CoreException e) { IDEWorkbenchPlugin.log(e.getLocalizedMessage(), e); return 0; } TableSorter categorySorter = MarkerSupportRegistry.getInstance() .getSorterFor(type); int categoryCount = categorySorter.getFields().length; if (categoryDepth > categoryCount) return innerSorter.compare(obj1, obj2, depth - 2 - categoryCount, continueSearching); int result = categorySorter.getFields()[categoryDepth].compare(obj1, obj2); if (continueSearching && result == 0) return categorySorter.compare(obj1, obj2, categoryDepth + 1, continueSearching); return result;
int compare(Object obj1, Object obj2, int depth, boolean continueSearching) { if (obj1 == null || obj2 == null || !(obj1 instanceof MarkerNode) || !(obj2 instanceof MarkerNode)) { return 0; } MarkerNode marker1 = (MarkerNode) obj1; MarkerNode marker2 = (MarkerNode) obj2; if(!marker1.isConcrete() || !marker2.isConcrete()) return marker1.getDescription().compareTo( marker2.getDescription()); if (depth == 0) { // Is this the type check? int result = categoryField.compare(obj1, obj2); if (continueSearching && result == 0) return compare(obj1, obj2, depth + 1, continueSearching); return result; } if (depth == 1) { // Is this the type check? int result = typeField.compare(obj1, obj2); if (continueSearching && result == 0) return compare(obj1, obj2, depth + 1, continueSearching); return result; } // Now we just use the sorters are we are past the two reserved depths String type; int categoryDepth = depth - 2; try { type = ((ConcreteMarker) marker1).getMarker().getType(); } catch (CoreException e) { IDEWorkbenchPlugin.log(e.getLocalizedMessage(), e); return 0; } TableSorter categorySorter = MarkerSupportRegistry.getInstance() .getSorterFor(type); int categoryCount = categorySorter.getFields().length; if (categoryDepth > categoryCount)// Are we past categories? return innerSorter.compare(obj1, obj2, depth - 2 - categoryCount, continueSearching); int result = categorySorter.getFields()[categoryDepth].compare(obj1, obj2); if (continueSearching && result == 0) return categorySorter.compare(obj1, obj2, categoryDepth + 1, continueSearching); return result; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2bc2f7e05493c8f842d6d73cc7cb85357120cefd/CategorySorter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/CategorySorter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 474, 3400, 12, 921, 1081, 21, 16, 1033, 1081, 22, 16, 509, 3598, 16, 1250, 1324, 2979, 310, 13, 288, 9506, 202, 430, 261, 2603, 21, 422, 446, 747, 1081, 22, 422, 446, 747, 401, 12, 2603, 21, 1276, 14742, 907, 13, 9506, 202, 20081, 401, 12, 2603, 22, 1276, 14742, 907, 3719, 288, 1082, 202, 2463, 374, 31, 202, 202, 97, 202, 202, 7078, 907, 5373, 21, 273, 261, 7078, 907, 13, 1081, 21, 31, 202, 202, 7078, 907, 5373, 22, 273, 261, 7078, 907, 13, 1081, 22, 31, 9506, 202, 430, 12, 5, 11145, 21, 18, 291, 25845, 1435, 747, 401, 11145, 22, 18, 291, 25845, 10756, 1082, 202, 2463, 5373, 21, 18, 588, 3291, 7675, 9877, 774, 12, 9506, 202, 11145, 22, 18, 588, 3291, 10663, 1082, 202, 430, 261, 5979, 422, 374, 13, 288, 368, 2585, 333, 326, 618, 866, 35, 1082, 202, 474, 563, 273, 3150, 974, 18, 9877, 12, 2603, 21, 16, 1081, 22, 1769, 1082, 202, 430, 261, 17143, 2979, 310, 597, 563, 422, 374, 13, 9506, 202, 2463, 3400, 12, 2603, 21, 16, 1081, 22, 16, 3598, 397, 404, 16, 1324, 2979, 310, 1769, 1082, 202, 2463, 563, 31, 202, 202, 97, 202, 202, 430, 261, 5979, 422, 404, 13, 288, 368, 2585, 333, 326, 618, 866, 35, 1082, 202, 474, 563, 273, 618, 974, 18, 9877, 12, 2603, 21, 16, 1081, 22, 1769, 1082, 202, 430, 261, 17143, 2979, 310, 597, 563, 422, 374, 13, 9506, 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, 474, 3400, 12, 921, 1081, 21, 16, 1033, 1081, 22, 16, 509, 3598, 16, 1250, 1324, 2979, 310, 13, 288, 9506, 202, 430, 261, 2603, 21, 422, 446, 747, 1081, 22, 422, 446, 747, 401, 12, 2603, 21, 1276, 14742, 907, 13, 9506, 202, 20081, 401, 12, 2603, 22, 1276, 14742, 907, 3719, 288, 1082, 202, 2463, 374, 31, 202, 202, 97, 202, 202, 7078, 907, 5373, 21, 273, 261, 7078, 907, 13, 1081, 21, 31, 202, 202, 7078, 907, 5373, 22, 273, 261, 7078, 907, 13, 1081, 22, 31, 9506, 202, 430, 12, 5, 11145, 21, 18, 291, 25845, 1435, 747, 401, 11145, 22, 18, 291, 25845, 10756, 1082, 202, 2463, 5373, 21, 18, 588, 3291, 2 ]
keptJobs.remove(jte);
if(jte == null) keptJobs.clear(); else keptJobs.remove(jte);
private KeptJobsListener getKeptJobListener() { keptJobListener = new KeptJobsListener() { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.FinishedJobs.KeptJobsListener#finished(org.eclipse.ui.internal.progress.JobTreeElement) */ public void finished(JobTreeElement jte) { keptJobs.add(jte); final JobTreeElement element = jte; Job updateJob = new WorkbenchJob("Refresh finished") {//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { refresh(new Object[] { element }); return Status.OK_STATUS; } }; updateJob.setSystem(true); updateJob.schedule(); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.FinishedJobs.KeptJobsListener#removed(org.eclipse.ui.internal.progress.JobTreeElement) */ public void removed(JobTreeElement jte) { keptJobs.remove(jte); final JobTreeElement element = jte; Job updateJob = new WorkbenchJob("Remove finished") {//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { ProgressViewerContentProvider.this.remove(new Object[] { element }); return Status.OK_STATUS; } }; updateJob.setSystem(true); updateJob.schedule(); } }; return keptJobListener; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/976616861f09ac9e962d77c0c6c5a9fa9324abca/ProgressViewerContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewerContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1475, 73, 337, 7276, 2223, 16566, 73, 337, 2278, 2223, 1435, 288, 202, 202, 4491, 337, 2278, 2223, 273, 394, 1475, 73, 337, 7276, 2223, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 10577, 7276, 18, 47, 73, 337, 7276, 2223, 7, 13527, 12, 3341, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 2278, 2471, 1046, 13, 9506, 1195, 1082, 202, 482, 918, 6708, 12, 2278, 2471, 1046, 525, 736, 13, 288, 9506, 202, 4491, 337, 7276, 18, 1289, 12, 78, 736, 1769, 9506, 202, 6385, 3956, 2471, 1046, 930, 273, 525, 736, 31, 9506, 202, 2278, 1089, 2278, 273, 394, 4147, 22144, 2278, 2932, 8323, 6708, 7923, 288, 759, 8, 3993, 17, 5106, 17, 21, 8, 6862, 202, 20308, 261, 5836, 17, 24060, 13, 25083, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 8298, 18, 5370, 2278, 7, 2681, 382, 57, 1285, 76, 896, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 25083, 1195, 6862, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 25083, 202, 9144, 12, 2704, 1033, 8526, 288, 930, 15549, 25083, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 6862, 202, 97, 9506, 202, 20451, 9506, 202, 2725, 2278, 18, 542, 3163, 12, 3767, 1769, 9506, 202, 2725, 2278, 18, 10676, 5621, 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, 1152, 1475, 73, 337, 7276, 2223, 16566, 73, 337, 2278, 2223, 1435, 288, 202, 202, 4491, 337, 2278, 2223, 273, 394, 1475, 73, 337, 7276, 2223, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 10577, 7276, 18, 47, 73, 337, 7276, 2223, 7, 13527, 12, 3341, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 2278, 2471, 1046, 13, 9506, 1195, 1082, 202, 482, 918, 6708, 12, 2278, 2471, 1046, 525, 736, 13, 288, 9506, 202, 4491, 337, 7276, 18, 1289, 12, 78, 736, 1769, 9506, 202, 6385, 3956, 2471, 1046, 930, 273, 525, 736, 31, 9506, 2 ]
public JComponent buildFrom(InputStream stream) { XmlDocument doc; TreeWalker tree; Node node; URL linkURL; Element current;
public JMenuBar buildFrom(String file, JFrame aWindow) { XulParser parser = new XulParser(mListener, aWindow);
public JComponent buildFrom(InputStream stream) { XmlDocument doc; TreeWalker tree; Node node; URL linkURL; Element current; try { doc = XmlDocument.createXmlDocument(stream, false); current = doc.getDocumentElement(); tree = new TreeWalker(current); // get the link tag for this file node = tree.getNextElement("head").getFirstChild().getNextSibling(); // set the configuration contained in this node setConfiguration((Element)node); // skip to the body buildFrom(tree.getNextElement("body")); } catch (Throwable t) { t.printStackTrace(); } finally { return component; } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/XMLMenuBuilder.java/buggy/grendel/sources/grendel/ui/XMLMenuBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 29058, 1361, 1265, 12, 4348, 1407, 13, 288, 565, 5714, 2519, 997, 31, 565, 4902, 16246, 2151, 31, 565, 2029, 756, 31, 565, 1976, 1692, 1785, 31, 565, 3010, 783, 31, 565, 775, 288, 1377, 997, 273, 5714, 2519, 18, 2640, 4432, 2519, 12, 3256, 16, 629, 1769, 1377, 783, 273, 997, 18, 588, 2519, 1046, 5621, 1377, 2151, 273, 394, 4902, 16246, 12, 2972, 1769, 1377, 368, 336, 326, 1692, 1047, 364, 333, 585, 1377, 756, 273, 2151, 18, 588, 2134, 1046, 2932, 1978, 20387, 588, 3759, 1763, 7675, 588, 2134, 10291, 5621, 1377, 368, 444, 326, 1664, 7542, 316, 333, 756, 1377, 444, 1750, 12443, 1046, 13, 2159, 1769, 1377, 368, 2488, 358, 326, 1417, 1377, 1361, 1265, 12, 3413, 18, 588, 2134, 1046, 2932, 3432, 7923, 1769, 565, 289, 1044, 261, 15155, 268, 13, 288, 1377, 268, 18, 1188, 6332, 5621, 565, 289, 3095, 288, 1377, 327, 1794, 31, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 29058, 1361, 1265, 12, 4348, 1407, 13, 288, 565, 5714, 2519, 997, 31, 565, 4902, 16246, 2151, 31, 565, 2029, 756, 31, 565, 1976, 1692, 1785, 31, 565, 3010, 783, 31, 565, 775, 288, 1377, 997, 273, 5714, 2519, 18, 2640, 4432, 2519, 12, 3256, 16, 629, 1769, 1377, 783, 273, 997, 18, 588, 2519, 1046, 5621, 1377, 2151, 273, 394, 4902, 16246, 12, 2972, 1769, 1377, 368, 336, 326, 1692, 1047, 364, 333, 585, 1377, 756, 273, 2151, 18, 588, 2134, 1046, 2932, 1978, 20387, 588, 3759, 1763, 7675, 588, 2134, 10291, 5621, 1377, 368, 444, 326, 1664, 7542, 316, 333, 756, 1377, 444, 1750, 12443, 1046, 13, 2159, 1769, 1377, 368, 2488, 358, 326, 1417, 2 ]
} throw new IllegalArgumentException("DataObject not supported.");
} else throw new IllegalArgumentException("Child and parent are not" + " compatible.");
public static IObject createIObject(DataObject child, DataObject parent) { if (child instanceof ProjectData) { ProjectData data = (ProjectData) child; Project model = new Project(); model.setName(data.getName()); model.setDescription(data.getDescription()); return model; } else if (child instanceof CategoryGroupData) { CategoryGroupData data = (CategoryGroupData) child; CategoryGroup model = new CategoryGroup(); model.setName(data.getName()); model.setDescription(data.getDescription()); return model; } else if (child instanceof DatasetData) { if (!(parent instanceof ProjectData)) throw new IllegalArgumentException("Parent not valid."); DatasetData data = (DatasetData) child; Dataset model = new Dataset(); model.setName(data.getName()); model.setDescription(data.getDescription()); model.linkProject(new Project(new Long(parent.getId()), false)); return model; } else if (child instanceof CategoryData) { if (!(parent instanceof CategoryGroupData)) throw new IllegalArgumentException("Parent not valid."); CategoryData data = (CategoryData) child; Category model = new Category(); model.setName(data.getName()); model.setDescription(data.getDescription()); model.linkCategoryGroup(new CategoryGroup(new Long(parent.getId()), false)); return model; } else if (child instanceof ImageData) { if (!(parent instanceof CategoryData) && !(parent instanceof DatasetData)) throw new IllegalArgumentException("Parent not valid."); ImageData data = (ImageData) child; Image model = new Image(); model.setName(data.getName()); model.setDescription(data.getDescription()); if (parent instanceof CategoryData) model.linkCategory(new Category(new Long(parent.getId()), false)); else if (parent instanceof DatasetData) model.linkDataset(new Dataset(new Long(parent.getId()), false)); return model; } throw new IllegalArgumentException("DataObject not supported."); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/557c1489203604f61421342df46753983ef62091/ModelMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/util/ModelMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 467, 921, 752, 45, 921, 12, 21881, 1151, 16, 18914, 982, 13, 565, 288, 3639, 309, 261, 3624, 1276, 5420, 751, 13, 288, 5411, 5420, 751, 501, 273, 261, 4109, 751, 13, 1151, 31, 5411, 5420, 938, 273, 394, 5420, 5621, 5411, 938, 18, 542, 461, 12, 892, 18, 17994, 10663, 5411, 938, 18, 542, 3291, 12, 892, 18, 588, 3291, 10663, 5411, 327, 938, 31, 3639, 289, 469, 309, 261, 3624, 1276, 9856, 1114, 751, 13, 288, 5411, 9856, 1114, 751, 501, 273, 261, 4457, 1114, 751, 13, 1151, 31, 5411, 9856, 1114, 938, 273, 394, 9856, 1114, 5621, 5411, 938, 18, 542, 461, 12, 892, 18, 17994, 10663, 5411, 938, 18, 542, 3291, 12, 892, 18, 588, 3291, 10663, 5411, 327, 938, 31, 3639, 289, 469, 309, 261, 3624, 1276, 10778, 751, 13, 288, 5411, 309, 16051, 12, 2938, 1276, 5420, 751, 3719, 1171, 604, 394, 2754, 2932, 3054, 486, 923, 1199, 1769, 5411, 10778, 751, 501, 273, 261, 10656, 751, 13, 1151, 31, 5411, 10778, 938, 273, 394, 10778, 5621, 5411, 938, 18, 542, 461, 12, 892, 18, 17994, 10663, 5411, 938, 18, 542, 3291, 12, 892, 18, 588, 3291, 10663, 5411, 938, 18, 1232, 4109, 12, 2704, 5420, 12, 2704, 3407, 12, 2938, 18, 26321, 1435, 3631, 629, 10019, 5411, 327, 938, 31, 3639, 289, 469, 309, 261, 3624, 1276, 9856, 751, 13, 288, 5411, 309, 16051, 12, 2938, 1276, 9856, 1114, 751, 3719, 1171, 604, 394, 2754, 2932, 3054, 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, 467, 921, 752, 45, 921, 12, 21881, 1151, 16, 18914, 982, 13, 565, 288, 3639, 309, 261, 3624, 1276, 5420, 751, 13, 288, 5411, 5420, 751, 501, 273, 261, 4109, 751, 13, 1151, 31, 5411, 5420, 938, 273, 394, 5420, 5621, 5411, 938, 18, 542, 461, 12, 892, 18, 17994, 10663, 5411, 938, 18, 542, 3291, 12, 892, 18, 588, 3291, 10663, 5411, 327, 938, 31, 3639, 289, 469, 309, 261, 3624, 1276, 9856, 1114, 751, 13, 288, 5411, 9856, 1114, 751, 501, 273, 261, 4457, 1114, 751, 13, 1151, 31, 5411, 9856, 1114, 938, 273, 394, 9856, 1114, 5621, 5411, 938, 18, 542, 461, 12, 892, 18, 17994, 10663, 5411, 938, 18, 542, 3291, 12, 2 ]
if (funcall("<", RubyFixnum.zero(getRuby())).isTrue()) { return (RubyNumeric)funcall("-@"); } else { return this; } }
if (funcall("<", RubyFixnum.zero(getRuby())).isTrue()) { return (RubyNumeric)funcall("-@"); } else { return this; } }
public RubyNumeric abs() { if (funcall("<", RubyFixnum.zero(getRuby())).isTrue()) { return (RubyNumeric)funcall("-@"); } else { return this; } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/clean/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 9902, 2417, 1435, 288, 3639, 309, 261, 644, 454, 2932, 32, 3113, 19817, 8585, 2107, 18, 7124, 12, 588, 54, 10340, 10756, 2934, 291, 5510, 10756, 288, 5411, 327, 261, 54, 10340, 9902, 13, 644, 454, 2932, 17, 36, 8863, 3639, 289, 469, 288, 5411, 327, 333, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 19817, 9902, 2417, 1435, 288, 3639, 309, 261, 644, 454, 2932, 32, 3113, 19817, 8585, 2107, 18, 7124, 12, 588, 54, 10340, 10756, 2934, 291, 5510, 10756, 288, 5411, 327, 261, 54, 10340, 9902, 13, 644, 454, 2932, 17, 36, 8863, 3639, 289, 469, 288, 5411, 327, 333, 31, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
finalManifest.merge(filesetManifest, ! mergeManifestsMain);
finalManifest.merge(filesetManifest, !mergeManifestsMain);
protected void initZipOutputStream(ZipOutputStream zOut) throws IOException, BuildException { String ls = System.getProperty("line.separator"); try { Manifest finalManifest = Manifest.getDefaultManifest(); if (manifest == null) { if (manifestFile != null) { // if we haven't got the manifest yet, attempt to // get it now and have manifest be the final merge manifest = getManifest(manifestFile); finalManifest.merge(filesetManifest); finalManifest.merge(configuredManifest); finalManifest.merge(manifest, ! mergeManifestsMain); } else if (configuredManifest != null) { // configuredManifest is the final merge finalManifest.merge(filesetManifest); finalManifest.merge(configuredManifest, ! mergeManifestsMain); } else if (filesetManifest != null) { // filesetManifest is the final (and only) merge finalManifest.merge(filesetManifest, ! mergeManifestsMain); } } else { // manifest is the final merge finalManifest.merge(filesetManifest); finalManifest.merge(configuredManifest); finalManifest.merge(manifest, ! mergeManifestsMain); } for (Enumeration e = finalManifest.getWarnings(); e.hasMoreElements(); ) { log("Manifest warning: " + (String)e.nextElement(), Project.MSG_WARN); } // need to set the line.separator as \r\n due to a bug // with the jar verifier System.getProperties().put("line.separator", "\r\n"); zipDir(null, zOut, "META-INF/"); // time to write the manifest ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintWriter writer = new PrintWriter(baos); finalManifest.write(writer); writer.flush(); ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); super.zipFile(bais, zOut, "META-INF/MANIFEST.MF", System.currentTimeMillis(), null); super.initZipOutputStream(zOut); } catch (ManifestException e) { log("Manifest is invalid: " + e.getMessage(), Project.MSG_ERR); throw new BuildException("Invalid Manifest", e, getLocation()); } finally { System.getProperties().put("line.separator", ls); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/Jar.java/clean/src/main/org/apache/tools/ant/taskdefs/Jar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 9141, 4632, 12, 9141, 4632, 998, 1182, 13, 3639, 1216, 1860, 16, 18463, 565, 288, 3639, 514, 7180, 273, 2332, 18, 588, 1396, 2932, 1369, 18, 11287, 8863, 3639, 775, 288, 5411, 15443, 727, 9121, 273, 15443, 18, 588, 1868, 9121, 5621, 5411, 309, 261, 14357, 422, 446, 13, 288, 7734, 309, 261, 14357, 812, 480, 446, 13, 288, 10792, 368, 309, 732, 15032, 1404, 2363, 326, 5643, 4671, 16, 4395, 358, 10792, 368, 336, 518, 2037, 471, 1240, 5643, 506, 326, 727, 2691, 10792, 5643, 273, 23619, 3811, 12, 14357, 812, 1769, 10792, 727, 9121, 18, 2702, 12, 2354, 278, 9121, 1769, 10792, 727, 9121, 18, 2702, 12, 16449, 9121, 1769, 10792, 727, 9121, 18, 2702, 12, 14357, 16, 401, 2691, 9121, 87, 6376, 1769, 7734, 289, 7734, 469, 309, 261, 16449, 9121, 480, 446, 13, 288, 10792, 368, 4351, 9121, 353, 326, 727, 2691, 10792, 727, 9121, 18, 2702, 12, 2354, 278, 9121, 1769, 10792, 727, 9121, 18, 2702, 12, 16449, 9121, 16, 29159, 401, 2691, 9121, 87, 6376, 1769, 7734, 289, 7734, 469, 309, 261, 2354, 278, 9121, 480, 446, 13, 288, 10792, 368, 1390, 278, 9121, 353, 326, 727, 261, 464, 1338, 13, 2691, 10792, 727, 9121, 18, 2702, 12, 2354, 278, 9121, 16, 401, 2702, 9121, 87, 6376, 1769, 7734, 289, 5411, 289, 469, 288, 7734, 368, 5643, 353, 326, 727, 2691, 7734, 727, 9121, 18, 2702, 12, 2354, 278, 9121, 1769, 7734, 727, 9121, 18, 2702, 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, 4750, 918, 1208, 9141, 4632, 12, 9141, 4632, 998, 1182, 13, 3639, 1216, 1860, 16, 18463, 565, 288, 3639, 514, 7180, 273, 2332, 18, 588, 1396, 2932, 1369, 18, 11287, 8863, 3639, 775, 288, 5411, 15443, 727, 9121, 273, 15443, 18, 588, 1868, 9121, 5621, 5411, 309, 261, 14357, 422, 446, 13, 288, 7734, 309, 261, 14357, 812, 480, 446, 13, 288, 10792, 368, 309, 732, 15032, 1404, 2363, 326, 5643, 4671, 16, 4395, 358, 10792, 368, 336, 518, 2037, 471, 1240, 5643, 506, 326, 727, 2691, 10792, 5643, 273, 23619, 3811, 12, 14357, 812, 1769, 10792, 727, 9121, 18, 2702, 12, 2354, 278, 9121, 1769, 10792, 727, 9121, 18, 2702, 12, 16449, 9121, 1769, 10792, 727, 9121, 2 ]
public void eSet( EStructuralFeature eFeature, Object newValue )
public void eSet( int featureID, Object newValue )
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.FONT_DEFINITION__NAME : setName( (String) newValue ); return; case AttributePackage.FONT_DEFINITION__SIZE : setSize( ( (Float) newValue ).floatValue( ) ); return; case AttributePackage.FONT_DEFINITION__BOLD : setBold( ( (Boolean) newValue ).booleanValue( ) ); return; case AttributePackage.FONT_DEFINITION__ITALIC : setItalic( ( (Boolean) newValue ).booleanValue( ) ); return; case AttributePackage.FONT_DEFINITION__STRIKETHROUGH : setStrikethrough( ( (Boolean) newValue ).booleanValue( ) ); return; case AttributePackage.FONT_DEFINITION__UNDERLINE : setUnderline( ( (Boolean) newValue ).booleanValue( ) ); return; case AttributePackage.FONT_DEFINITION__WORD_WRAP : setWordWrap( ( (Boolean) newValue ).booleanValue( ) ); return; case AttributePackage.FONT_DEFINITION__ALIGNMENT : setAlignment( (TextAlignment) newValue ); return; case AttributePackage.FONT_DEFINITION__ROTATION : setRotation( ( (Double) newValue ).doubleValue( ) ); return; } eDynamicSet( eFeature, newValue ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/FontDefinitionImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/FontDefinitionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 1985, 294, 9506, 202, 542, 461, 12, 261, 780, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 4574, 294, 9506, 202, 542, 1225, 12, 261, 261, 4723, 13, 6129, 262, 18, 5659, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 38, 11846, 294, 9506, 202, 542, 38, 1673, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 1285, 1013, 2871, 294, 9506, 202, 542, 7193, 21466, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 15765, 47, 1584, 44, 1457, 57, 16715, 294, 9506, 202, 542, 1585, 1766, 546, 2642, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 31625, 5997, 294, 9506, 202, 542, 14655, 1369, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 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, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 1985, 294, 9506, 202, 542, 461, 12, 261, 780, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 4574, 294, 9506, 202, 542, 1225, 12, 261, 261, 4723, 13, 6129, 262, 18, 5659, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 25221, 67, 25312, 972, 38, 11846, 294, 9506, 202, 542, 38, 1673, 12, 261, 261, 5507, 13, 6129, 262, 18, 2 ]
m_digest = MessageDigest.getInstance(CmsImport.C_IMPORT_DIGEST);
m_digest = MessageDigest.getInstance(CmsImport.C_IMPORT_DIGEST);
public CmsRegistry(CmsRegistry reg, CmsObject cms) { super(); // there is no need of a real copy for this parameters m_modules = reg.m_modules; m_regFileName = reg.m_regFileName; m_xmlReg = reg.m_xmlReg; // store the cms-object for this instance. m_cms = cms; try { m_digest = MessageDigest.getInstance(CmsImport.C_IMPORT_DIGEST); } catch (NoSuchAlgorithmException e) { m_digest = null; }}
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/95ab7d79230b29ea49fca1679c6a57cf53243597/CmsRegistry.java/buggy/src/com/opencms/file/CmsRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2149, 4243, 12, 4747, 4243, 960, 16, 14371, 6166, 13, 288, 202, 9565, 5621, 202, 759, 1915, 353, 1158, 1608, 434, 279, 2863, 1610, 364, 333, 1472, 202, 81, 67, 6400, 273, 960, 18, 81, 67, 6400, 31, 202, 81, 67, 1574, 4771, 273, 960, 18, 81, 67, 1574, 4771, 31, 202, 81, 67, 2902, 1617, 273, 960, 18, 81, 67, 2902, 1617, 31, 202, 759, 1707, 326, 6166, 17, 1612, 364, 333, 791, 18, 202, 81, 67, 6851, 273, 6166, 31, 202, 698, 288, 202, 202, 81, 67, 10171, 273, 22485, 18, 588, 1442, 12, 4747, 5010, 18, 39, 67, 20445, 67, 2565, 27332, 1769, 225, 202, 97, 1044, 261, 28341, 17293, 425, 13, 288, 202, 202, 81, 67, 10171, 273, 446, 31, 202, 9090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2149, 4243, 12, 4747, 4243, 960, 16, 14371, 6166, 13, 288, 202, 9565, 5621, 202, 759, 1915, 353, 1158, 1608, 434, 279, 2863, 1610, 364, 333, 1472, 202, 81, 67, 6400, 273, 960, 18, 81, 67, 6400, 31, 202, 81, 67, 1574, 4771, 273, 960, 18, 81, 67, 1574, 4771, 31, 202, 81, 67, 2902, 1617, 273, 960, 18, 81, 67, 2902, 1617, 31, 202, 759, 1707, 326, 6166, 17, 1612, 364, 333, 791, 18, 202, 81, 67, 6851, 273, 6166, 31, 202, 698, 288, 202, 202, 81, 67, 10171, 273, 22485, 18, 588, 1442, 12, 4747, 5010, 18, 39, 67, 20445, 67, 2565, 27332, 1769, 225, 202, 97, 1044, 261, 28341, 17293, 425, 13, 288, 202, 202, 2 ]
public org.quickfix.field.LegCouponPaymentDate getLegCouponPaymentDate() throws FieldNotFound { org.quickfix.field.LegCouponPaymentDate value = new org.quickfix.field.LegCouponPaymentDate();
public quickfix.field.LegCouponPaymentDate getLegCouponPaymentDate() throws FieldNotFound { quickfix.field.LegCouponPaymentDate value = new quickfix.field.LegCouponPaymentDate();
public org.quickfix.field.LegCouponPaymentDate getLegCouponPaymentDate() throws FieldNotFound { org.quickfix.field.LegCouponPaymentDate value = new org.quickfix.field.LegCouponPaymentDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralReport.java/buggy/src/java/src/quickfix/fix44/CollateralReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 6032, 1626, 336, 8329, 22744, 6032, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 6032, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 6032, 1626, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 6032, 1626, 336, 8329, 22744, 6032, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 6032, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 6032, 1626, 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 ]
result[0] = invokeMethod(invokePolicy);
result[0] = invokeMethod(invokePolicy, myArgs);
private E invokeMethodAndFork(final SuspendContextImpl context) throws InvocationException, ClassNotLoadedException, IncompatibleThreadStateException, InvalidTypeException { final int invokePolicy = getInvokePolicy(context); final Exception[] exception = new Exception[1]; final Value[] result = new Value[1]; DebugProcessImpl.this.getManagerThread().startLongProcessAndFork(new Runnable() { public void run() { ThreadReferenceProxyImpl thread = context.getThread(); try { try { final VirtualMachineProxyImpl virtualMachineProxy = getVirtualMachineProxy(); if (LOG.isDebugEnabled()) { virtualMachineProxy.logThreads(); LOG.debug("Invoke in " + thread.name()); LOG.assertTrue(thread.isSuspended(), thread.toString()); LOG.assertTrue(context.isEvaluating()); } result[0] = invokeMethod(invokePolicy); } finally { LOG.assertTrue(thread.isSuspended(), thread.toString()); LOG.assertTrue(context.isEvaluating()); } } catch (Exception e) { exception[0] = e; } } }); if (exception[0] != null) { if (exception[0] instanceof InvocationException) { throw (InvocationException)exception[0]; } else if (exception[0] instanceof ClassNotLoadedException) { throw (ClassNotLoadedException)exception[0]; } else if (exception[0] instanceof IncompatibleThreadStateException) { throw (IncompatibleThreadStateException)exception[0]; } else if (exception[0] instanceof InvalidTypeException) { throw (InvalidTypeException)exception[0]; } else if (exception[0] instanceof RuntimeException) { throw (RuntimeException)exception[0]; } else { LOG.assertTrue(false); } } return (E)result[0]; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b93dedac27e210527448ff6d738700ae7617dec7/DebugProcessImpl.java/clean/source/com/intellij/debugger/engine/DebugProcessImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 512, 27632, 1876, 22662, 12, 6385, 348, 18815, 1042, 2828, 819, 13, 1216, 11298, 503, 16, 28524, 1659, 1248, 8835, 503, 16, 28524, 657, 10943, 3830, 5060, 16, 28524, 1962, 14144, 288, 1377, 727, 509, 4356, 2582, 273, 336, 10969, 2582, 12, 2472, 1769, 1377, 727, 1185, 8526, 1520, 273, 394, 1185, 63, 21, 15533, 1377, 727, 1445, 8526, 563, 273, 394, 1445, 63, 21, 15533, 1377, 4015, 2227, 2828, 18, 2211, 18, 588, 1318, 3830, 7675, 1937, 3708, 2227, 1876, 22662, 12, 2704, 10254, 1435, 288, 3639, 1071, 918, 1086, 1435, 288, 1850, 4884, 2404, 3886, 2828, 2650, 273, 819, 18, 588, 3830, 5621, 1850, 775, 288, 5411, 775, 288, 2868, 727, 18452, 3886, 2828, 5024, 6981, 3886, 273, 336, 27454, 3886, 5621, 2868, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 7734, 5024, 6981, 3886, 18, 1330, 13233, 5621, 7734, 2018, 18, 4148, 2932, 10969, 316, 315, 397, 2650, 18, 529, 10663, 7734, 2018, 18, 11231, 5510, 12, 5930, 18, 291, 55, 22942, 9334, 2650, 18, 10492, 10663, 7734, 2018, 18, 11231, 5510, 12, 2472, 18, 291, 6644, 1776, 10663, 2868, 289, 2868, 563, 63, 20, 65, 273, 27632, 12, 14407, 2582, 16, 3399, 2615, 1769, 5411, 289, 5411, 3095, 288, 2868, 2018, 18, 11231, 5510, 12, 5930, 18, 291, 55, 22942, 9334, 2650, 18, 10492, 10663, 2868, 2018, 18, 11231, 5510, 12, 2472, 18, 291, 6644, 1776, 10663, 5411, 289, 1850, 289, 1850, 1044, 261, 503, 425, 13, 288, 5411, 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, 377, 3238, 512, 27632, 1876, 22662, 12, 6385, 348, 18815, 1042, 2828, 819, 13, 1216, 11298, 503, 16, 28524, 1659, 1248, 8835, 503, 16, 28524, 657, 10943, 3830, 5060, 16, 28524, 1962, 14144, 288, 1377, 727, 509, 4356, 2582, 273, 336, 10969, 2582, 12, 2472, 1769, 1377, 727, 1185, 8526, 1520, 273, 394, 1185, 63, 21, 15533, 1377, 727, 1445, 8526, 563, 273, 394, 1445, 63, 21, 15533, 1377, 4015, 2227, 2828, 18, 2211, 18, 588, 1318, 3830, 7675, 1937, 3708, 2227, 1876, 22662, 12, 2704, 10254, 1435, 288, 3639, 1071, 918, 1086, 1435, 288, 1850, 4884, 2404, 3886, 2828, 2650, 273, 819, 18, 588, 3830, 5621, 1850, 775, 288, 5411, 775, 288, 2868, 727, 18452, 3886, 2828, 5024, 2 ]
BeanPropertyCompleter.complete(ee, entity);
BeanPropertyCompleter.complete( ee, entity );
private ExpressionExperiment persistExpressionExperiment( ExpressionExperiment entity ) { if ( entity == null ) return null; if ( !isTransient( entity ) ) { return entity; } if ( entity.getOwner() == null ) { entity.setOwner( defaultOwner ); } if ( entity.getAccession() != null && entity.getAccession().getExternalDatabase() != null ) { entity.setAccession( persistDatabaseEntry( entity.getAccession() ) ); } else { log.warn( "Null accession for expressionExperiment" ); } for ( ExperimentalDesign experimentalDesign : entity.getExperimentalDesigns() ) { for ( OntologyEntry type : experimentalDesign.getTypes() ) { type = persistOntologyEntry( type ); } for ( ExperimentalFactor experimentalFactor : experimentalDesign.getExperimentalFactors() ) { for ( OntologyEntry annotation : experimentalFactor.getAnnotations() ) { annotation = persistOntologyEntry( annotation ); } OntologyEntry category = experimentalFactor.getCategory(); if ( category == null ) { log.debug( "No 'category' for ExperimentalDesign" ); } else { persistOntologyEntry( category ); log.debug( "ExperimentalDesign.category=" + category.getId() ); } for ( FactorValue factorValue : experimentalFactor.getFactorValues() ) { factorValue = persistFactorValue( factorValue ); } } } Collection<BioAssay> alreadyFilled = new HashSet<BioAssay>(); for ( ExpressionExperimentSubSet subset : entity.getSubsets() ) { for ( BioAssay bA : subset.getBioAssays() ) { fillInBioAssayAssociations( bA ); alreadyFilled.add( bA ); } } for ( BioAssay bA : entity.getBioAssays() ) { if ( alreadyFilled.contains( bA ) ) continue; fillInBioAssayAssociations( bA ); } fillInExpressionExperimentDataVectorAssociations( entity ); log.info( "Filled in references, persisting ExpressionExperiment " + entity ); ExpressionExperiment ee = expressionExperimentService.find( entity ); // FIXME make sure this works...this would allow update. if ( ee != null ) { BeanPropertyCompleter.complete(ee, entity); expressionExperimentService.update( ee ); } return expressionExperimentService.findOrCreate( entity ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/85cf475300f16f128c42f9c9d67c23ce61ad3778/ExpressionPersister.java/clean/gemma-core/src/main/java/ubic/gemma/loader/util/persister/ExpressionPersister.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5371, 22338, 3898, 2300, 22338, 12, 5371, 22338, 1522, 262, 288, 3639, 309, 261, 1522, 422, 446, 262, 327, 446, 31, 3639, 309, 261, 401, 291, 19638, 12, 1522, 262, 262, 288, 5411, 327, 1522, 31, 3639, 289, 3639, 309, 261, 1522, 18, 588, 5541, 1435, 422, 446, 262, 288, 5411, 1522, 18, 542, 5541, 12, 805, 5541, 11272, 3639, 289, 3639, 309, 261, 1522, 18, 588, 1862, 285, 1435, 480, 446, 597, 1522, 18, 588, 1862, 285, 7675, 588, 6841, 4254, 1435, 480, 446, 262, 288, 5411, 1522, 18, 542, 1862, 285, 12, 3898, 4254, 1622, 12, 1522, 18, 588, 1862, 285, 1435, 262, 11272, 3639, 289, 469, 288, 5411, 613, 18, 8935, 12, 315, 2041, 2006, 285, 364, 2652, 22338, 6, 11272, 3639, 289, 3639, 364, 261, 22844, 287, 15478, 23070, 15478, 294, 1522, 18, 588, 22338, 287, 15478, 87, 1435, 262, 288, 5411, 364, 261, 29683, 1622, 618, 294, 23070, 15478, 18, 588, 2016, 1435, 262, 288, 7734, 618, 273, 3898, 51, 19610, 1622, 12, 618, 11272, 5411, 289, 5411, 364, 261, 22844, 287, 6837, 23070, 6837, 294, 23070, 15478, 18, 588, 22338, 287, 23535, 1435, 262, 288, 7734, 364, 261, 29683, 1622, 3204, 294, 23070, 6837, 18, 588, 5655, 1435, 262, 288, 10792, 3204, 273, 3898, 51, 19610, 1622, 12, 3204, 11272, 7734, 289, 7734, 29683, 1622, 3150, 273, 23070, 6837, 18, 588, 4457, 5621, 7734, 309, 261, 3150, 422, 446, 262, 288, 10792, 613, 18, 4148, 12, 315, 2279, 296, 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, 5371, 22338, 3898, 2300, 22338, 12, 5371, 22338, 1522, 262, 288, 3639, 309, 261, 1522, 422, 446, 262, 327, 446, 31, 3639, 309, 261, 401, 291, 19638, 12, 1522, 262, 262, 288, 5411, 327, 1522, 31, 3639, 289, 3639, 309, 261, 1522, 18, 588, 5541, 1435, 422, 446, 262, 288, 5411, 1522, 18, 542, 5541, 12, 805, 5541, 11272, 3639, 289, 3639, 309, 261, 1522, 18, 588, 1862, 285, 1435, 480, 446, 597, 1522, 18, 588, 1862, 285, 7675, 588, 6841, 4254, 1435, 480, 446, 262, 288, 5411, 1522, 18, 542, 1862, 285, 12, 3898, 4254, 1622, 12, 1522, 18, 588, 1862, 285, 1435, 262, 11272, 3639, 289, 469, 288, 5411, 613, 18, 8935, 12, 315, 2041, 2 ]
if (currentTask.isEffortDriven()) { time *= efficiency; }
if (currentTask.isEffortDriven()) time *= efficiency;
public void performTask(double time, double efficiency) { if (currentTask != null) { // For effort driven task, reduce the effective time if (currentTask.isEffortDriven()) { time *= efficiency; } checkForEmergency(); currentTask.performTask(time); } }
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/a88e11c489f2eadfcf80437ff8c0a54323e56275/TaskManager.java/buggy/org/mars_sim/msp/simulation/person/ai/TaskManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3073, 2174, 12, 9056, 813, 16, 1645, 30325, 13, 288, 3639, 309, 261, 2972, 2174, 480, 446, 13, 288, 5411, 368, 2457, 23445, 5081, 837, 1562, 16, 5459, 326, 11448, 813, 5411, 309, 261, 2972, 2174, 18, 291, 41, 1403, 499, 8956, 837, 10756, 288, 7734, 813, 6413, 30325, 31, 5411, 289, 202, 565, 13855, 1514, 24530, 5621, 5411, 783, 2174, 18, 16092, 2174, 12, 957, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3073, 2174, 12, 9056, 813, 16, 1645, 30325, 13, 288, 3639, 309, 261, 2972, 2174, 480, 446, 13, 288, 5411, 368, 2457, 23445, 5081, 837, 1562, 16, 5459, 326, 11448, 813, 5411, 309, 261, 2972, 2174, 18, 291, 41, 1403, 499, 8956, 837, 10756, 288, 7734, 813, 6413, 30325, 31, 5411, 289, 202, 565, 13855, 1514, 24530, 5621, 5411, 783, 2174, 18, 16092, 2174, 12, 957, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
permuteInd = new boolean[superdata.length]; Arrays.fill(permuteInd, false);
permuteInd = new Vector(); for (int i = 0; i < superdata.length; i++){ permuteInd.add(new Boolean(false)); }
public void doAssociationTests(Vector affStatus, boolean[] permuteInd) { if(superprob == null || superdata == null || realAffectedStatus == null) { return; } if(affStatus == null){ affStatus = realAffectedStatus; } if(permuteInd == null) { permuteInd = new boolean[superdata.length]; Arrays.fill(permuteInd, false); } Vector caseCounts = new Vector(); Vector controlCounts = new Vector(); double[] tempCase, tempControl, totalCase, totalControl; if (Options.getAssocTest() == ASSOC_CC){ tempCase = new double[superprob.length]; tempControl = new double[superprob.length]; totalCase = new double[superprob.length]; totalControl = new double[superprob.length]; double tempnorm=0; for (int i = numFileteredTrios*2; i < superdata.length; i++){ for (int n=0; n<superdata[i].nsuper; n++) { if (((Integer)affStatus.elementAt(i)).intValue() == 1){ tempControl[superdata[i].superposs[n].h1] += superdata[i].superposs[n].p; tempControl[superdata[i].superposs[n].h2] += superdata[i].superposs[n].p; }else if (((Integer)affStatus.elementAt(i)).intValue() == 2){ tempCase[superdata[i].superposs[n].h1] += superdata[i].superposs[n].p; tempCase[superdata[i].superposs[n].h2] += superdata[i].superposs[n].p; } tempnorm += superdata[i].superposs[n].p; } if (tempnorm > 0.00) { for (int j=0; j<superprob.length; j++) { if (tempCase[j] > 0.0000 || tempControl[j] > 0.0000) { totalCase[j] += (tempCase[j]/tempnorm); totalControl[j] += (tempControl[j]/tempnorm); tempCase[j]=tempControl[j]=0.0000; } } tempnorm=0.00; } } for (int j = 0; j <superprob.length; j++){ if (superprob[j] > .001) { caseCounts.add(new Double(totalCase[j])); controlCounts.add(new Double(totalControl[j])); } } } double[] tempT,totalT,tempU,totalU; Vector obsT = new Vector(); Vector obsU = new Vector(); if(Options.getAssocTest() == ASSOC_TRIO) { double tempnorm=0,product; tempT = new double[superprob.length]; totalT = new double[superprob.length]; tempU = new double[superprob.length]; totalU = new double[superprob.length]; for (int i=0; i<numFileteredTrios*2; i+=2) { if (((Integer)affStatus.elementAt(i)).intValue() == 2){ tempnorm=0.00; for (int n=0; n<superdata[i].nsuper; n++) { for (int m=0; m<superdata[i+1].nsuper; m++) { if(kidConsistentCache[i/2][n][m]) { product=superdata[i].superposs[n].p*superdata[i+1].superposs[m].p; /*if(i<5) { System.out.println(superdata[i+1].superposs[m].h1 + "\t" + product); } */ if(permuteInd[i]) { if (superdata[i].superposs[n].h1 != superdata[i].superposs[n].h2) { tempU[superdata[i].superposs[n].h1]+=product; tempT[superdata[i].superposs[n].h2]+=product; } if (superdata[i+1].superposs[m].h1 != superdata[i+1].superposs[m].h2) { tempU[superdata[i+1].superposs[m].h1]+=product; tempT[superdata[i+1].superposs[m].h2]+=product; } } else { if (superdata[i].superposs[n].h1 != superdata[i].superposs[n].h2) { tempT[superdata[i].superposs[n].h1]+=product; tempU[superdata[i].superposs[n].h2]+=product; } if (superdata[i+1].superposs[m].h1 != superdata[i+1].superposs[m].h2) { tempT[superdata[i+1].superposs[m].h1]+=product; tempU[superdata[i+1].superposs[m].h2]+=product; } } /* normalize by all possibilities, even double hom */ tempnorm+=product; } } } if (tempnorm > 0.00) { for (int j=0; j<superprob.length; j++) { if (tempT[j] > 0.0000 || tempU[j] > 0.0000) { totalT[j] += (tempT[j]/tempnorm); totalU[j] += (tempU[j]/tempnorm); tempT[j]=tempU[j]=0.0000; } } tempnorm=0.00; } } } for (int j = 0; j <superprob.length; j++){ if (superprob[j] > .001) { obsT.add(new Double(totalT[j])); obsU.add(new Double(totalU[j])); } } } if (Options.getAssocTest() == ASSOC_TRIO){ this.obsT = obsT; this.obsU = obsU; } else if (Options.getAssocTest() == ASSOC_CC){ this.caseCounts = caseCounts; this.controlCounts = controlCounts; } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/0eb54bb7a73a82dadef6a627d84062e8a108664e/EM.java/buggy/edu/mit/wi/haploview/EM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 7174, 14650, 12, 5018, 7103, 1482, 16, 1250, 8526, 4641, 624, 3866, 13, 288, 3639, 309, 12, 9565, 7748, 422, 446, 747, 2240, 892, 422, 446, 747, 2863, 23775, 1482, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 12, 7329, 1482, 422, 446, 15329, 5411, 7103, 1482, 273, 2863, 23775, 1482, 31, 3639, 289, 3639, 309, 12, 12160, 624, 3866, 422, 446, 13, 288, 5411, 4641, 624, 3866, 273, 394, 1250, 63, 9565, 892, 18, 2469, 15533, 5411, 5647, 18, 5935, 12, 12160, 624, 3866, 16, 629, 1769, 3639, 289, 3639, 5589, 648, 9211, 273, 394, 5589, 5621, 3639, 5589, 3325, 9211, 273, 394, 5589, 5621, 3639, 1645, 8526, 1906, 2449, 16, 1906, 3367, 16, 2078, 2449, 16, 2078, 3367, 31, 3639, 309, 261, 1320, 18, 588, 16974, 4709, 1435, 422, 17289, 10809, 67, 6743, 15329, 5411, 1906, 2449, 273, 394, 1645, 63, 9565, 7748, 18, 2469, 15533, 5411, 1906, 3367, 273, 394, 1645, 63, 9565, 7748, 18, 2469, 15533, 5411, 2078, 2449, 273, 394, 1645, 63, 9565, 7748, 18, 2469, 15533, 5411, 2078, 3367, 273, 394, 1645, 63, 9565, 7748, 18, 2469, 15533, 5411, 1645, 1906, 7959, 33, 20, 31, 5411, 364, 261, 474, 277, 273, 818, 25579, 847, 329, 6251, 538, 14, 22, 31, 277, 411, 2240, 892, 18, 2469, 31, 277, 27245, 95, 7734, 364, 261, 474, 290, 33, 20, 31, 290, 32, 9565, 892, 63, 77, 8009, 2387, 416, 264, 31, 290, 27245, 288, 10792, 309, 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, 741, 7174, 14650, 12, 5018, 7103, 1482, 16, 1250, 8526, 4641, 624, 3866, 13, 288, 3639, 309, 12, 9565, 7748, 422, 446, 747, 2240, 892, 422, 446, 747, 2863, 23775, 1482, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 12, 7329, 1482, 422, 446, 15329, 5411, 7103, 1482, 273, 2863, 23775, 1482, 31, 3639, 289, 3639, 309, 12, 12160, 624, 3866, 422, 446, 13, 288, 5411, 4641, 624, 3866, 273, 394, 1250, 63, 9565, 892, 18, 2469, 15533, 5411, 5647, 18, 5935, 12, 12160, 624, 3866, 16, 629, 1769, 3639, 289, 3639, 5589, 648, 9211, 273, 394, 5589, 5621, 3639, 5589, 3325, 9211, 273, 394, 5589, 5621, 3639, 1645, 8526, 1906, 2449, 16, 2 ]
dumpElement(Long.toHexString(uid) + "; FLAGS=");
if(dump) dumpElement(Long.toHexString(uid) + "; FLAGS=");
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); byte flags = this.realInputStream.readByte (); dumpElement(Integer.toHexString(flags) + "; FIELD COUNT="); short field_count = this.realInputStream.readShort(); dumpElementln(Short.toString(field_count)); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass(name, uid, flags, fields); assignNewHandle(osc); for (int i = 0; i < field_count; i++) { dumpElement(" TYPE CODE="); char type_code = (char)this.realInputStream.readByte(); dumpElement(type_code + "; FIELD NAME="); String field_name = this.realInputStream.readUTF(); dumpElementln(field_name); String class_name; // If the type code is an array or an object we must // decode a String here. In the other case we convert // the type code and pass it to ObjectStreamField. // Type codes are decoded by gnu.java.lang.reflect.TypeSignature. if (type_code == 'L' || type_code == '[') class_name = (String)readObject(); else class_name = String.valueOf(type_code); fields[i] = new ObjectStreamField(field_name, class_name, currentLoader()); } /* Now that fields have been read we may resolve the class * (and read annotation if needed). */ Class clazz = resolveClass(osc); for (int i = 0; i < field_count; i++) { Field f; try { f = clazz.getDeclaredField(fields[i].getName()); if (f != null && !f.getType().equals(fields[i].getType())) throw new InvalidClassException ("invalid field type for " + fields[i].getName() + " in class " + name + " (requested was \"" + fields[i].getType() + " and found \"" + f.getType() + "\")"); } catch (NoSuchFieldException _) { } } boolean oldmode = setBlockDataMode(true); osc.setClass(clazz, lookupClass(clazz.getSuperclass())); classLookupTable.put(clazz, osc); setBlockDataMode(oldmode); return osc; }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1033, 1228, 797, 855, 797, 3187, 1435, 565, 1216, 10403, 16, 1860, 225, 288, 565, 4657, 1046, 2932, 5237, 10964, 6048, 1546, 1769, 565, 514, 508, 273, 333, 18, 7688, 4348, 18, 896, 5159, 5621, 565, 4657, 1046, 12, 529, 397, 13636, 10034, 1546, 1769, 565, 1525, 4555, 273, 333, 18, 7688, 4348, 18, 896, 3708, 261, 1769, 565, 309, 12, 8481, 13, 4657, 1046, 12, 3708, 18, 869, 14866, 12, 1911, 13, 397, 13636, 16993, 1546, 1769, 565, 1160, 2943, 273, 333, 18, 7688, 4348, 18, 896, 3216, 261, 1769, 565, 4657, 1046, 12, 4522, 18, 869, 14866, 12, 7133, 13, 397, 13636, 9921, 12666, 1546, 1769, 565, 3025, 652, 67, 1883, 273, 333, 18, 7688, 4348, 18, 896, 4897, 5621, 565, 4657, 1046, 2370, 12, 4897, 18, 10492, 12, 1518, 67, 1883, 10019, 565, 1033, 1228, 974, 8526, 1466, 273, 394, 1033, 1228, 974, 63, 1518, 67, 1883, 15533, 565, 1033, 1228, 797, 31476, 273, 394, 1033, 1228, 797, 12, 529, 16, 4555, 16, 6862, 1082, 225, 2943, 16, 1466, 1769, 565, 2683, 1908, 3259, 12, 538, 71, 1769, 202, 1850, 364, 261, 474, 277, 273, 374, 31, 277, 411, 652, 67, 1883, 31, 277, 27245, 1377, 288, 202, 8481, 1046, 2932, 225, 3463, 11128, 1546, 1769, 202, 3001, 618, 67, 710, 273, 261, 3001, 13, 2211, 18, 7688, 4348, 18, 896, 3216, 5621, 202, 8481, 1046, 12, 723, 67, 710, 397, 13636, 9921, 6048, 1546, 1769, 202, 780, 652, 67, 529, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1033, 1228, 797, 855, 797, 3187, 1435, 565, 1216, 10403, 16, 1860, 225, 288, 565, 4657, 1046, 2932, 5237, 10964, 6048, 1546, 1769, 565, 514, 508, 273, 333, 18, 7688, 4348, 18, 896, 5159, 5621, 565, 4657, 1046, 12, 529, 397, 13636, 10034, 1546, 1769, 565, 1525, 4555, 273, 333, 18, 7688, 4348, 18, 896, 3708, 261, 1769, 565, 309, 12, 8481, 13, 4657, 1046, 12, 3708, 18, 869, 14866, 12, 1911, 13, 397, 13636, 16993, 1546, 1769, 565, 1160, 2943, 273, 333, 18, 7688, 4348, 18, 896, 3216, 261, 1769, 565, 4657, 1046, 12, 4522, 18, 869, 14866, 12, 7133, 13, 397, 13636, 9921, 12666, 1546, 1769, 565, 3025, 652, 67, 1883, 273, 333, 18, 7688, 2 ]
numToRead = in.readInt();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { UID = (UID)in.readObject(); itemNomen = ((String) in.readObject()).intern(); aggregateNumber = in.readLong(); prototypeUID = ((String) in.readObject()).intern(); ownerID = ((String) in.readObject()).intern(); name = ((String) in.readObject()).intern(); // manifestUID = ((String) in.readObject()).intern(); hasManifest = in.readBoolean(); int numToRead = in.readInt(); if (numToRead > 0) nomenclatures = new ArrayList(numToRead); for (int i = 0; i < numToRead; i++) nomenclatures.add (((String) in.readObject()).intern()); numToRead = in.readInt(); if (numToRead > 0) typeIdentifications = new ArrayList(numToRead); for (int i = 0; i < numToRead; i++) typeIdentifications.add (((String) in.readObject()).intern()); numToRead = in.readInt(); if (numToRead > 0) weights = new ArrayList(numToRead); for (int i = 0; i < numToRead; i++) weights.add (in.readObject()); // should be instances of Mass }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/ad33bfb943618d53714eff3a94cba1be102bc71d/Instance.java/clean/datagrabber/src/org/cougaar/mlm/ui/psp/transit/data/instances/Instance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 6841, 12, 921, 1210, 316, 13, 1216, 1860, 16, 10403, 288, 565, 10034, 273, 261, 3060, 13, 267, 18, 896, 921, 5621, 565, 761, 26685, 275, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 7047, 1854, 273, 316, 18, 896, 3708, 5621, 565, 4409, 3060, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 3410, 734, 1377, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 508, 540, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 368, 565, 5643, 3060, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 711, 9121, 273, 316, 18, 896, 5507, 5621, 565, 509, 565, 309, 261, 2107, 23321, 405, 374, 13, 12457, 275, 830, 2790, 273, 394, 2407, 12, 2107, 23321, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 23321, 31, 277, 27245, 1377, 12457, 275, 830, 2790, 18, 1289, 261, 12443, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 10663, 4202, 309, 261, 2107, 23321, 405, 374, 13, 618, 6106, 6640, 273, 394, 2407, 12, 2107, 23321, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 23321, 31, 277, 27245, 1377, 618, 6106, 6640, 18, 1289, 261, 12443, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 10663, 4202, 309, 261, 2107, 23321, 405, 374, 13, 5376, 273, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 6841, 12, 921, 1210, 316, 13, 1216, 1860, 16, 10403, 288, 565, 10034, 273, 261, 3060, 13, 267, 18, 896, 921, 5621, 565, 761, 26685, 275, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 7047, 1854, 273, 316, 18, 896, 3708, 5621, 565, 4409, 3060, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 3410, 734, 1377, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 508, 540, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 565, 368, 565, 5643, 3060, 273, 14015, 780, 13, 316, 18, 896, 921, 1435, 2934, 267, 798, 5621, 2 ]
public String printFeatures() {
public String printFeatures() {
public String printFeatures() { int i; String s = ""; for (i=0;i<m_decisionFeatures.length;i++) if (i==0) s = ""+(m_decisionFeatures[i]+1); else s += ","+(m_decisionFeatures[i]+1); return s; }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/f6f62667723170f4030ae82f079e537cd6065be3/DecisionTable.java/buggy/classifiers/rules/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1172, 8696, 1435, 225, 288, 565, 509, 277, 31, 565, 514, 272, 273, 1408, 31, 4202, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 4924, 1951, 8696, 18, 2469, 31, 77, 27245, 1377, 309, 261, 77, 631, 20, 13, 202, 87, 273, 1408, 15, 12, 81, 67, 4924, 1951, 8696, 63, 77, 3737, 21, 1769, 1377, 469, 202, 87, 1011, 5753, 15, 12, 81, 67, 4924, 1951, 8696, 63, 77, 3737, 21, 1769, 565, 327, 272, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1172, 8696, 1435, 225, 288, 565, 509, 277, 31, 565, 514, 272, 273, 1408, 31, 4202, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 4924, 1951, 8696, 18, 2469, 31, 77, 27245, 1377, 309, 261, 77, 631, 20, 13, 202, 87, 273, 1408, 15, 12, 81, 67, 4924, 1951, 8696, 63, 77, 3737, 21, 1769, 1377, 469, 202, 87, 1011, 5753, 15, 12, 81, 67, 4924, 1951, 8696, 63, 77, 3737, 21, 1769, 565, 327, 272, 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 ]
if(value != null && type.isAssignableFrom(value.getClass())) {
if(value != null && (type.isAssignableFrom(value.getClass()) || org.codehaus.groovy.grails.support.ClassUtils.isMatchBetweenPrimativeAndWrapperTypes(type, value.getClass()))) {
protected Object getPropertyValue(String name, Class type) { BeanWrapper ref = getReference(); if (ref.isReadableProperty(name) && ref.getPropertyType(name).isAssignableFrom(type)) { Object value = ref.getPropertyValue(name); if(value != null && type.isAssignableFrom(value.getClass())) { return value; } return null; } else { try { Field field = ref.getWrappedClass().getField(name); if (Modifier.isStatic(field.getModifiers()) && Modifier.isPublic(field.getModifiers()) && field.getType().equals(type)) { return field.get(ref.getWrappedInstance()); } } catch (NoSuchFieldException e) { // ignore } catch (IllegalAccessException e) { // ignore } } return null; }
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/9223022b559de4f00a583c44eed40c6022214f08/AbstractGrailsClass.java/clean/grails/src/commons/org/codehaus/groovy/grails/commons/AbstractGrailsClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 21694, 12, 780, 508, 16, 1659, 618, 13, 288, 202, 202, 3381, 3611, 1278, 273, 13223, 5621, 202, 202, 430, 261, 1734, 18, 291, 14151, 1396, 12, 529, 13, 597, 1278, 18, 588, 22802, 12, 529, 2934, 291, 7961, 1265, 12, 723, 3719, 288, 1082, 202, 921, 460, 273, 1278, 18, 588, 16107, 12, 529, 1769, 1082, 202, 430, 12, 1132, 480, 446, 597, 618, 18, 291, 7961, 1265, 12, 1132, 18, 588, 797, 1435, 3719, 288, 9506, 202, 2463, 460, 31, 1082, 202, 97, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 698, 288, 9506, 202, 974, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 9506, 202, 430, 261, 9829, 18, 291, 5788, 12, 1518, 18, 588, 11948, 10756, 597, 12832, 18, 291, 4782, 12, 1518, 18, 588, 11948, 10756, 597, 652, 18, 588, 559, 7675, 14963, 12, 723, 3719, 288, 6862, 202, 2463, 652, 18, 588, 12, 1734, 18, 588, 17665, 1442, 10663, 9506, 202, 97, 1082, 202, 97, 1044, 261, 28341, 28846, 425, 13, 288, 9506, 202, 759, 2305, 1082, 202, 97, 1044, 261, 12195, 9773, 425, 13, 288, 9506, 202, 759, 2305, 1082, 202, 97, 202, 202, 97, 9506, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 21694, 12, 780, 508, 16, 1659, 618, 13, 288, 202, 202, 3381, 3611, 1278, 273, 13223, 5621, 202, 202, 430, 261, 1734, 18, 291, 14151, 1396, 12, 529, 13, 597, 1278, 18, 588, 22802, 12, 529, 2934, 291, 7961, 1265, 12, 723, 3719, 288, 1082, 202, 921, 460, 273, 1278, 18, 588, 16107, 12, 529, 1769, 1082, 202, 430, 12, 1132, 480, 446, 597, 618, 18, 291, 7961, 1265, 12, 1132, 18, 588, 797, 1435, 3719, 288, 9506, 202, 2463, 460, 31, 1082, 202, 97, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 698, 288, 9506, 202, 974, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 2 ]
}
}*/
public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); } final File patternFile = new File(pattern); String[] files = patternFile.getParentFile().list(new FilenameFilter() { public boolean accept(File dir, String name) { String patternName = patternFile.getName(); return name.startsWith(patternName.substring(0, patternName.indexOf('*'))) && name.endsWith(patternName.substring(patternName.indexOf('*') + 1)); } }); return RubyArray.newArray(ruby, JavaUtil.convertJavaArrayToRuby(ruby, files)); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyDir.java/buggy/org/jruby/RubyDir.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 1076, 4715, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 780, 9670, 13, 288, 3639, 368, 9852, 333, 353, 1338, 279, 5264, 7931, 434, 326, 445, 454, 560, 434, 333, 445, 7734, 514, 1936, 273, 9670, 18, 10492, 5621, 7734, 309, 261, 4951, 18, 31806, 2932, 636, 7923, 480, 300, 21, 747, 1936, 18, 31806, 2932, 7225, 13, 480, 300, 21, 13, 288, 5411, 604, 394, 11206, 5621, 3639, 289, 5549, 3639, 727, 1387, 1936, 812, 273, 394, 1387, 12, 4951, 1769, 3639, 514, 8526, 1390, 273, 1936, 812, 18, 588, 3054, 812, 7675, 1098, 12, 2704, 16671, 1586, 1435, 288, 5411, 1071, 1250, 2791, 12, 812, 1577, 16, 514, 508, 13, 288, 7734, 514, 1936, 461, 273, 1936, 812, 18, 17994, 5621, 7734, 327, 508, 18, 17514, 1190, 12, 4951, 461, 18, 28023, 12, 20, 16, 1936, 461, 18, 31806, 2668, 4035, 20349, 597, 15604, 508, 18, 5839, 1190, 12, 4951, 461, 18, 28023, 12, 4951, 461, 18, 31806, 2668, 4035, 13, 397, 404, 10019, 5411, 289, 5549, 3639, 15549, 3639, 327, 19817, 1076, 18, 2704, 1076, 12, 27768, 16, 5110, 1304, 18, 6283, 5852, 1076, 774, 54, 10340, 12, 27768, 16, 1390, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 19817, 1076, 4715, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 780, 9670, 13, 288, 3639, 368, 9852, 333, 353, 1338, 279, 5264, 7931, 434, 326, 445, 454, 560, 434, 333, 445, 7734, 514, 1936, 273, 9670, 18, 10492, 5621, 7734, 309, 261, 4951, 18, 31806, 2932, 636, 7923, 480, 300, 21, 747, 1936, 18, 31806, 2932, 7225, 13, 480, 300, 21, 13, 288, 5411, 604, 394, 11206, 5621, 3639, 289, 5549, 3639, 727, 1387, 1936, 812, 273, 394, 1387, 12, 4951, 1769, 3639, 514, 8526, 1390, 273, 1936, 812, 18, 588, 3054, 812, 7675, 1098, 12, 2704, 16671, 1586, 1435, 288, 5411, 1071, 1250, 2791, 12, 812, 1577, 16, 514, 508, 13, 288, 2 ]
return kit;
return editorKit;
public EditorKit getEditorKitForContentType(String type) { return kit; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18451, 14102, 336, 6946, 14102, 1290, 8046, 12, 780, 618, 13, 225, 288, 565, 327, 4858, 14102, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18451, 14102, 336, 6946, 14102, 1290, 8046, 12, 780, 618, 13, 225, 288, 565, 327, 4858, 14102, 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 ]
String markerType = CLineBreakpoint.getMarkerType();
public static ICLineBreakpoint lineBreakpointExists( String sourceHandle, IResource resource, int lineNumber ) throws CoreException { String modelId = getPluginIdentifier(); String markerType = CLineBreakpoint.getMarkerType(); IBreakpointManager manager = DebugPlugin.getDefault().getBreakpointManager(); IBreakpoint[] breakpoints = manager.getBreakpoints( modelId ); for( int i = 0; i < breakpoints.length; i++ ) { if ( !(breakpoints[i] instanceof ICLineBreakpoint) ) { continue; } ICLineBreakpoint breakpoint = (ICLineBreakpoint)breakpoints[i]; if ( breakpoint.getMarker().getType().equals( markerType ) ) { if ( sourceHandle != null && sourceHandle.equals( breakpoint.getSourceHandle() ) ) { if ( breakpoint.getMarker().getResource().equals( resource ) ) { if ( breakpoint.getLineNumber() == lineNumber ) { return breakpoint; } } } } } return null; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3fa82e83956b75d7c1c5855464be520947b0b36b/CDIDebugModel.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 26899, 1670, 20552, 980, 20552, 4002, 12, 514, 1084, 3259, 16, 467, 1420, 1058, 16, 509, 13629, 262, 1216, 30015, 288, 202, 202, 780, 25468, 273, 16319, 3004, 5621, 202, 202, 780, 5373, 559, 273, 385, 1670, 20552, 18, 588, 7078, 559, 5621, 202, 202, 45, 20552, 1318, 3301, 273, 4015, 3773, 18, 588, 1868, 7675, 588, 20552, 1318, 5621, 202, 202, 45, 20552, 8526, 23416, 273, 3301, 18, 588, 7634, 4139, 12, 25468, 11272, 202, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 23416, 18, 2469, 31, 277, 9904, 262, 288, 1082, 202, 430, 261, 401, 12, 8820, 4139, 63, 77, 65, 1276, 26899, 1670, 20552, 13, 262, 288, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 2871, 1670, 20552, 18820, 273, 261, 2871, 1670, 20552, 13, 8820, 4139, 63, 77, 15533, 1082, 202, 430, 261, 18820, 18, 588, 7078, 7675, 588, 559, 7675, 14963, 12, 5373, 559, 262, 262, 288, 9506, 202, 430, 261, 1084, 3259, 480, 446, 597, 1084, 3259, 18, 14963, 12, 18820, 18, 588, 1830, 3259, 1435, 262, 262, 288, 6862, 202, 430, 261, 18820, 18, 588, 7078, 7675, 588, 1420, 7675, 14963, 12, 1058, 262, 262, 288, 25083, 202, 430, 261, 18820, 18, 588, 31063, 1435, 422, 13629, 262, 288, 6862, 1082, 202, 2463, 18820, 31, 25083, 202, 97, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 26899, 1670, 20552, 980, 20552, 4002, 12, 514, 1084, 3259, 16, 467, 1420, 1058, 16, 509, 13629, 262, 1216, 30015, 288, 202, 202, 780, 25468, 273, 16319, 3004, 5621, 202, 202, 780, 5373, 559, 273, 385, 1670, 20552, 18, 588, 7078, 559, 5621, 202, 202, 45, 20552, 1318, 3301, 273, 4015, 3773, 18, 588, 1868, 7675, 588, 20552, 1318, 5621, 202, 202, 45, 20552, 8526, 23416, 273, 3301, 18, 588, 7634, 4139, 12, 25468, 11272, 202, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 23416, 18, 2469, 31, 277, 9904, 262, 288, 1082, 202, 430, 261, 401, 12, 8820, 4139, 63, 77, 65, 1276, 26899, 1670, 20552, 13, 262, 288, 9506, 202, 17143, 2 ]
if(debug)
if(log.isDebugEnabled())
protected void processException( Throwable ex, String msg ) throws JspException { try { if( msg == null ) msg = ex.getMessage(); if(debug) { // show full trace System.out.println( msg ); ex.printStackTrace(); pageContext.getOut().println(msg); ex.printStackTrace(new PrintWriter(pageContext.getOut(), true) ); } else { // show only message pageContext.getOut().println(msg); } // end if } catch(IOException ioex ) { // problems. Propagate original exception pageContext.setAttribute(ComponentConstants.EXCEPTION_KEY, ex, PageContext.REQUEST_SCOPE); throw new JspException( msg ); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/89ea27c6d0cb3c7e33812de64fdf156e7066d4f2/InsertTag.java/clean/src/share/org/apache/struts/taglib/tiles/InsertTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 10272, 12, 4206, 431, 16, 514, 1234, 262, 1216, 27485, 1377, 288, 1377, 775, 288, 3639, 309, 12, 1234, 422, 446, 262, 1850, 1234, 273, 431, 18, 24906, 5621, 3639, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 1850, 288, 225, 368, 2405, 1983, 2606, 1850, 2332, 18, 659, 18, 8222, 12, 1234, 11272, 1850, 431, 18, 1188, 6332, 5621, 1850, 21442, 18, 588, 1182, 7675, 8222, 12, 3576, 1769, 1850, 431, 18, 1188, 6332, 12, 2704, 14071, 12, 2433, 1042, 18, 588, 1182, 9334, 638, 13, 11272, 1850, 289, 540, 469, 1850, 288, 368, 2405, 1338, 883, 1850, 21442, 18, 588, 1182, 7675, 8222, 12, 3576, 1769, 1850, 289, 368, 679, 309, 3639, 289, 4202, 1044, 12, 14106, 2527, 338, 262, 3639, 288, 368, 9688, 18, 1186, 9095, 340, 2282, 1520, 3639, 21442, 18, 542, 1499, 12, 1841, 2918, 18, 12658, 67, 3297, 16, 431, 16, 3460, 1042, 18, 5519, 67, 19444, 1769, 3639, 604, 394, 27485, 12, 225, 1234, 11272, 3639, 289, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 10272, 12, 4206, 431, 16, 514, 1234, 262, 1216, 27485, 1377, 288, 1377, 775, 288, 3639, 309, 12, 1234, 422, 446, 262, 1850, 1234, 273, 431, 18, 24906, 5621, 3639, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 1850, 288, 225, 368, 2405, 1983, 2606, 1850, 2332, 18, 659, 18, 8222, 12, 1234, 11272, 1850, 431, 18, 1188, 6332, 5621, 1850, 21442, 18, 588, 1182, 7675, 8222, 12, 3576, 1769, 1850, 431, 18, 1188, 6332, 12, 2704, 14071, 12, 2433, 1042, 18, 588, 1182, 9334, 638, 13, 11272, 1850, 289, 540, 469, 1850, 288, 368, 2405, 1338, 883, 1850, 21442, 18, 588, 1182, 7675, 8222, 12, 3576, 1769, 1850, 289, 368, 679, 309, 3639, 289, 4202, 2 ]
setPeerNodeStatus(now);
public void successNotOverload() { pRejected.report(0.0); if(logMINOR) Logger.minor(this, "Success not overload on "+this+" : pRejected="+pRejected.currentValue()); Peer peer = getPeer(); long now = System.currentTimeMillis(); reportBackoffStatus(now); synchronized(routingBackoffSync) { // Don't un-backoff if still backed off if(now > routingBackedOffUntil) { routingBackoffLength = INITIAL_ROUTING_BACKOFF_LENGTH; if(logMINOR) Logger.minor(this, "Resetting routing backoff on "+peer); setPeerNodeStatus(now); } else { if(logMINOR) Logger.minor(this, "Ignoring successNotOverload: "+(routingBackedOffUntil-now)+"ms remaining on routing backoff on "+peer); } } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/8de4b1cd60a548b4d18488fb67f53e39abfa9b77/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2216, 1248, 4851, 945, 1435, 288, 202, 202, 84, 19902, 18, 6006, 12, 20, 18, 20, 1769, 202, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 4510, 486, 30402, 603, 13773, 2211, 9078, 294, 293, 19902, 1546, 15, 84, 19902, 18, 2972, 620, 10663, 202, 202, 6813, 4261, 273, 29875, 5621, 202, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 6006, 16757, 1482, 12, 3338, 1769, 202, 202, 22043, 12, 16529, 16757, 4047, 13, 288, 1082, 202, 759, 7615, 1404, 640, 17, 823, 3674, 309, 4859, 20732, 3397, 1082, 202, 430, 12, 3338, 405, 7502, 2711, 329, 7210, 9716, 13, 288, 9506, 202, 16529, 16757, 1782, 273, 28226, 67, 1457, 1693, 1360, 67, 8720, 8797, 67, 7096, 31, 9506, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 7013, 1787, 7502, 12260, 603, 13773, 12210, 1769, 9506, 202, 542, 6813, 907, 1482, 12, 3338, 1769, 1082, 202, 97, 469, 288, 9506, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 21702, 2216, 1248, 4851, 945, 30, 13773, 12, 16529, 2711, 329, 7210, 9716, 17, 3338, 13, 9078, 959, 4463, 603, 7502, 12260, 603, 13773, 12210, 1769, 1082, 202, 97, 202, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2216, 1248, 4851, 945, 1435, 288, 202, 202, 84, 19902, 18, 6006, 12, 20, 18, 20, 1769, 202, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 4510, 486, 30402, 603, 13773, 2211, 9078, 294, 293, 19902, 1546, 15, 84, 19902, 18, 2972, 620, 10663, 202, 202, 6813, 4261, 273, 29875, 5621, 202, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 6006, 16757, 1482, 12, 3338, 1769, 202, 202, 22043, 12, 16529, 16757, 4047, 13, 288, 1082, 202, 759, 7615, 1404, 640, 17, 823, 3674, 309, 4859, 20732, 3397, 1082, 202, 430, 12, 3338, 405, 7502, 2711, 329, 7210, 9716, 13, 288, 9506, 202, 16529, 16757, 1782, 2 ]
if (maxHeight < 3) return;
if (maxHeight < 3) { return; }
private void updateCloseBar() { //Temporary code - need a better way to determine toolBar trim int toolbarTrim = 4; String platform = SWT.getPlatform(); if ("photon".equals(platform))toolbarTrim = 6; //$NON-NLS-1$ if ("gtk".equals(platform))toolbarTrim = 8; //$NON-NLS-1$ int maxHeight = tabHeight - CTabItem.TOP_MARGIN - CTabItem.BOTTOM_MARGIN - toolbarTrim; if (maxHeight < 3) return; int imageHeight = (maxHeight < 9) ? 9 : maxHeight; if (closeImage != null && closeImage.getBounds().height == imageHeight) return; if (closeBar != null) closeBar.dispose(); closeBar = null; if (inactiveCloseBar != null) inactiveCloseBar.dispose(); inactiveCloseBar = null; createCloseBar(); ToolItem closeItem = closeBar.getItems()[0]; ToolItem inactiveCloseItem = inactiveCloseBar.getItems()[0]; if (closeImage != null) closeImage.dispose(); Display display = getDisplay(); Color foreground = getForeground(); Color black = display.getSystemColor(SWT.COLOR_BLACK); Color background = getBackground(); PaletteData palette = new PaletteData(new RGB[] { foreground.getRGB(), background.getRGB(), black.getRGB() }); ImageData imageData = new ImageData(imageHeight, imageHeight, 4, palette); imageData.transparentPixel = 1; closeImage = new Image(display, imageData); GC gc = new GC(closeImage); gc.setBackground(background); gc.fillRectangle(0, 0, imageHeight, imageHeight); gc.setForeground(black); //draw an 9x8 'x' centered in image int h = (imageHeight / 2) * 2; int inset = (h - 8) / 2; gc.drawLine(inset, inset, h - inset - 1, h - inset - 1); gc.drawLine(inset + 1, inset, h - inset, h - inset - 1); gc.drawLine(inset, h - inset - 1, h - inset - 1, inset); gc.drawLine(inset + 1, h - inset - 1, h - inset, inset); gc.dispose(); if (maxHeight < imageHeight) { //rescale image Image temp = scaleImage(closeImage, imageHeight, maxHeight); closeImage.dispose(); closeImage = temp; } closeItem.setImage(closeImage); inactiveCloseItem.setImage(closeImage); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3a23c3b9bac4db696a0452560047155775a707b7/CTabFolder.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/widgets/CTabFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 4605, 5190, 1435, 288, 3639, 368, 11685, 981, 300, 1608, 279, 7844, 4031, 358, 4199, 5226, 5190, 2209, 3639, 509, 12748, 14795, 273, 1059, 31, 3639, 514, 4072, 273, 348, 8588, 18, 588, 8201, 5621, 3639, 309, 7566, 30723, 265, 9654, 14963, 12, 9898, 3719, 18849, 14795, 273, 1666, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 309, 7566, 4521, 79, 9654, 14963, 12, 9898, 3719, 18849, 14795, 273, 1725, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 509, 23185, 273, 3246, 2686, 300, 385, 5661, 1180, 18, 10462, 67, 19772, 7702, 7734, 300, 385, 5661, 1180, 18, 28891, 67, 19772, 7702, 300, 12748, 14795, 31, 3639, 309, 261, 1896, 2686, 411, 890, 13, 5411, 327, 31, 3639, 509, 1316, 2686, 273, 261, 1896, 2686, 411, 2468, 13, 692, 2468, 294, 23185, 31, 3639, 309, 261, 4412, 2040, 480, 446, 597, 1746, 2040, 18, 588, 5694, 7675, 4210, 422, 1316, 2686, 13, 5411, 327, 31, 3639, 309, 261, 4412, 5190, 480, 446, 13, 5411, 1746, 5190, 18, 2251, 4150, 5621, 3639, 1746, 5190, 273, 446, 31, 3639, 309, 261, 27366, 4605, 5190, 480, 446, 13, 5411, 16838, 4605, 5190, 18, 2251, 4150, 5621, 3639, 16838, 4605, 5190, 273, 446, 31, 3639, 752, 4605, 5190, 5621, 3639, 13288, 1180, 1746, 1180, 273, 1746, 5190, 18, 588, 3126, 1435, 63, 20, 15533, 3639, 13288, 1180, 16838, 4605, 1180, 273, 16838, 4605, 5190, 18, 588, 3126, 1435, 63, 20, 15533, 3639, 309, 261, 4412, 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, 1089, 4605, 5190, 1435, 288, 3639, 368, 11685, 981, 300, 1608, 279, 7844, 4031, 358, 4199, 5226, 5190, 2209, 3639, 509, 12748, 14795, 273, 1059, 31, 3639, 514, 4072, 273, 348, 8588, 18, 588, 8201, 5621, 3639, 309, 7566, 30723, 265, 9654, 14963, 12, 9898, 3719, 18849, 14795, 273, 1666, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 309, 7566, 4521, 79, 9654, 14963, 12, 9898, 3719, 18849, 14795, 273, 1725, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 509, 23185, 273, 3246, 2686, 300, 385, 5661, 1180, 18, 10462, 67, 19772, 7702, 7734, 300, 385, 5661, 1180, 18, 28891, 67, 19772, 7702, 300, 12748, 14795, 31, 3639, 309, 261, 1896, 2686, 411, 890, 2 ]
if (i - 1 > getActionNames().length) {
if (i - 1 >= getActionNames().length || i < 0) {
protected String getActionName(int action) { int i = action - CUSTOM_EVENT_ACTION_START_RANGE; if (i - 1 > getActionNames().length) { return String.valueOf(action); } return getActionNames()[i - 1]; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/abe8e938f89498bb21da0c9ba5cff174ea5d0f71/CustomNotification.java/clean/src/java/org/mule/impl/internal/notifications/CustomNotification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 12473, 461, 12, 474, 1301, 13, 565, 288, 3639, 509, 277, 273, 1301, 300, 21012, 67, 10454, 67, 12249, 67, 7570, 67, 15928, 31, 3639, 309, 261, 77, 300, 404, 1545, 12473, 1557, 7675, 2469, 747, 277, 411, 374, 13, 288, 5411, 327, 514, 18, 1132, 951, 12, 1128, 1769, 3639, 289, 3639, 327, 12473, 1557, 1435, 63, 77, 300, 404, 15533, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 12473, 461, 12, 474, 1301, 13, 565, 288, 3639, 509, 277, 273, 1301, 300, 21012, 67, 10454, 67, 12249, 67, 7570, 67, 15928, 31, 3639, 309, 261, 77, 300, 404, 1545, 12473, 1557, 7675, 2469, 747, 277, 411, 374, 13, 288, 5411, 327, 514, 18, 1132, 951, 12, 1128, 1769, 3639, 289, 3639, 327, 12473, 1557, 1435, 63, 77, 300, 404, 15533, 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 ]
if (operation.equals(OP_RENAME))
if (TAG_OPS.contains(operation))
public Element handle(Element request, Map context) throws ServiceException, SoapFaultException { ZimbraContext lc = getZimbraContext(context); Element action = request.getElement(MailService.E_ACTION); String operation = action.getAttribute(MailService.A_OPERATION).toLowerCase(); if (operation.equals(OP_TAG) || operation.equals(OP_FLAG) || operation.equals(OP_UNTAG) || operation.equals(OP_UNFLAG)) throw MailServiceException.CANNOT_TAG(); if (operation.endsWith(OP_MOVE) || operation.endsWith(OP_UPDATE) || operation.endsWith(OP_SPAM)) throw ServiceException.INVALID_REQUEST("invalid operation on tag: " + operation, null); String successes; if (operation.equals(OP_RENAME)) successes = handleTag(context, request, operation); else successes = handleCommon(context, request, operation, MailItem.TYPE_TAG); Element response = lc.createElement(MailService.TAG_ACTION_RESPONSE); Element result = response.addUniqueElement(MailService.E_ACTION); result.addAttribute(MailService.A_ID, successes); result.addAttribute(MailService.A_OPERATION, operation); return response; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/8bdee4cae9735a2e45209d4e1233d35da07b376b/TagAction.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/TagAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3010, 1640, 12, 1046, 590, 16, 1635, 819, 13, 1216, 16489, 16, 21789, 7083, 503, 288, 202, 202, 62, 381, 15397, 1042, 9109, 273, 23448, 381, 15397, 1042, 12, 2472, 1769, 3639, 3010, 1301, 273, 590, 18, 21336, 12, 6759, 1179, 18, 41, 67, 12249, 1769, 3639, 514, 1674, 273, 1301, 18, 588, 1499, 12, 6759, 1179, 18, 37, 67, 22040, 2934, 869, 5630, 5621, 3639, 309, 261, 7624, 18, 14963, 12, 3665, 67, 7927, 13, 747, 1674, 18, 14963, 12, 3665, 67, 9651, 13, 747, 1674, 18, 14963, 12, 3665, 67, 5321, 1781, 13, 747, 1674, 18, 14963, 12, 3665, 67, 2124, 9651, 3719, 5411, 604, 11542, 15133, 18, 39, 16791, 67, 7927, 5621, 3639, 309, 261, 7624, 18, 5839, 1190, 12, 3665, 67, 16537, 13, 747, 1674, 18, 5839, 1190, 12, 3665, 67, 8217, 13, 747, 1674, 18, 5839, 1190, 12, 3665, 67, 3118, 2192, 3719, 5411, 604, 16489, 18, 9347, 67, 5519, 2932, 5387, 1674, 603, 1047, 30, 315, 397, 1674, 16, 446, 1769, 3639, 514, 2216, 281, 31, 3639, 309, 261, 7927, 67, 3665, 55, 18, 12298, 12, 7624, 3719, 5411, 2216, 281, 273, 1640, 1805, 12, 2472, 16, 590, 16, 1674, 1769, 3639, 469, 5411, 2216, 281, 273, 1640, 6517, 12, 2472, 16, 590, 16, 1674, 16, 11542, 1180, 18, 2399, 67, 7927, 1769, 3639, 3010, 766, 273, 9109, 18, 2640, 1046, 12, 6759, 1179, 18, 7927, 67, 12249, 67, 14508, 1769, 377, 202, 1046, 563, 273, 766, 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, 225, 202, 482, 3010, 1640, 12, 1046, 590, 16, 1635, 819, 13, 1216, 16489, 16, 21789, 7083, 503, 288, 202, 202, 62, 381, 15397, 1042, 9109, 273, 23448, 381, 15397, 1042, 12, 2472, 1769, 3639, 3010, 1301, 273, 590, 18, 21336, 12, 6759, 1179, 18, 41, 67, 12249, 1769, 3639, 514, 1674, 273, 1301, 18, 588, 1499, 12, 6759, 1179, 18, 37, 67, 22040, 2934, 869, 5630, 5621, 3639, 309, 261, 7624, 18, 14963, 12, 3665, 67, 7927, 13, 747, 1674, 18, 14963, 12, 3665, 67, 9651, 13, 747, 1674, 18, 14963, 12, 3665, 67, 5321, 1781, 13, 747, 1674, 18, 14963, 12, 3665, 67, 2124, 9651, 3719, 5411, 604, 11542, 15133, 18, 39, 16791, 67, 7927, 5621, 3639, 2 ]
broker.deleteObservers(); info.finishTrigger(broker, transaction, document); broker.getBrokerPool().getNotificationService().notifyUpdate(document, (info.getEvent() == Trigger.UPDATE_DOCUMENT_EVENT ? UpdateListener.UPDATE : UpdateListener.ADD));
broker.deleteObservers(); info.finishTrigger(broker, transaction, document); broker.getBrokerPool().getNotificationService().notifyUpdate(document, (info.getEvent() == Trigger.UPDATE_DOCUMENT_EVENT ? UpdateListener.UPDATE : UpdateListener.ADD));
private void storeInternal(Txn transaction, DBBroker broker, IndexInfo info, boolean privileged, StoreBlock doParse) throws EXistException, SAXException { DocumentImpl document = info.getIndexer().getDocument(); LOG.debug("storing document " + document.getDocId() + " ..."); try { doParse.run(); broker.storeDocument(transaction, document); broker.closeDocument(); broker.flush();// broker.checkTree(document); LOG.debug("document stored."); // if we are running in privileged mode (e.g. backup/restore), notify the SecurityManager about changes if (getName().equals(DBBroker.SYSTEM_COLLECTION) && document.getFileName().equals(SecurityManager.ACL_FILE) && privileged == false) { // inform the security manager that system data has changed LOG.debug("users.xml changed"); broker.getBrokerPool().reloadSecurityManager(broker); } } finally { document.getUpdateLock().release(Lock.WRITE_LOCK); releaseReader(broker, info.getReader()); } collectionConfEnabled = true; broker.deleteObservers(); info.finishTrigger(broker, transaction, document); broker.getBrokerPool().getNotificationService().notifyUpdate(document, (info.getEvent() == Trigger.UPDATE_DOCUMENT_EVENT ? UpdateListener.UPDATE : UpdateListener.ADD)); //Is it a collection configuration file ? if (getName().startsWith(CollectionConfigurationManager.CONFIG_COLLECTION)) { if (getConfiguration(broker).getDocName() == null || getConfiguration(broker).getDocName().equals(document.getFileName())) { broker.sync(Sync.MAJOR_SYNC); //TODO : ugly construct since we should re-read the configuration getConfiguration(broker).setDocName(document.getFileName()); } } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/5c28ec462ac6a54a5cc87ba38ba7b625b01992e2/Collection.java/clean/src/org/exist/collections/Collection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 3061, 12, 13789, 2492, 16, 2383, 11194, 8625, 16, 3340, 966, 1123, 16, 1250, 11334, 2423, 16, 4994, 1768, 741, 3201, 13, 1216, 5675, 376, 503, 16, 14366, 288, 202, 202, 2519, 2828, 1668, 273, 1123, 18, 588, 20877, 7675, 588, 2519, 5621, 202, 202, 4842, 18, 4148, 2932, 334, 6053, 1668, 315, 397, 1668, 18, 588, 1759, 548, 1435, 397, 315, 1372, 8863, 202, 202, 698, 288, 1082, 202, 2896, 3201, 18, 2681, 5621, 2398, 1082, 202, 21722, 18, 2233, 2519, 12, 7958, 16, 1668, 1769, 1082, 202, 21722, 18, 4412, 2519, 5621, 1082, 202, 21722, 18, 11330, 5621, 759, 1082, 202, 21722, 18, 1893, 2471, 12, 5457, 1769, 1082, 202, 4842, 18, 4148, 2932, 5457, 4041, 1199, 1769, 1082, 202, 759, 309, 732, 854, 3549, 316, 11334, 2423, 1965, 261, 73, 18, 75, 18, 5114, 19, 13991, 3631, 5066, 326, 6036, 1318, 2973, 3478, 1082, 202, 430, 261, 17994, 7675, 14963, 12, 2290, 11194, 18, 14318, 67, 25964, 13, 597, 1668, 18, 588, 4771, 7675, 14963, 12, 4368, 1318, 18, 9486, 67, 3776, 13, 9506, 3639, 597, 11334, 2423, 422, 629, 13, 288, 9506, 565, 368, 13235, 326, 4373, 3301, 716, 2619, 501, 711, 3550, 9506, 565, 2018, 18, 4148, 2932, 5577, 18, 2902, 3550, 8863, 9506, 565, 8625, 18, 588, 11194, 2864, 7675, 17517, 4368, 1318, 12, 21722, 1769, 1082, 202, 97, 202, 202, 97, 3095, 288, 1082, 202, 5457, 18, 588, 1891, 2531, 7675, 9340, 12, 2531, 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, 225, 202, 1152, 918, 1707, 3061, 12, 13789, 2492, 16, 2383, 11194, 8625, 16, 3340, 966, 1123, 16, 1250, 11334, 2423, 16, 4994, 1768, 741, 3201, 13, 1216, 5675, 376, 503, 16, 14366, 288, 202, 202, 2519, 2828, 1668, 273, 1123, 18, 588, 20877, 7675, 588, 2519, 5621, 202, 202, 4842, 18, 4148, 2932, 334, 6053, 1668, 315, 397, 1668, 18, 588, 1759, 548, 1435, 397, 315, 1372, 8863, 202, 202, 698, 288, 1082, 202, 2896, 3201, 18, 2681, 5621, 2398, 1082, 202, 21722, 18, 2233, 2519, 12, 7958, 16, 1668, 1769, 1082, 202, 21722, 18, 4412, 2519, 5621, 1082, 202, 21722, 18, 11330, 5621, 759, 1082, 202, 21722, 18, 1893, 2471, 12, 5457, 1769, 1082, 202, 4842, 18, 2 ]
public abstract void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest);
public abstract void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest, boolean includeData);
public abstract void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest);
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/20460220ea1181e62f9c802b001bf09ef46c806b/ClientRequest.java/clean/src/freenet/node/fcp/ClientRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8770, 918, 1366, 8579, 5058, 12, 42, 4258, 1952, 30796, 1838, 16, 1250, 2341, 11906, 691, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8770, 918, 1366, 8579, 5058, 12, 42, 4258, 1952, 30796, 1838, 16, 1250, 2341, 11906, 691, 1769, 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 ]
if (status.getUrl() == null)
if (status.getUrl() == null && !(status.getTextStatus() == SVNStatusKind.UNVERSIONED))
public void execute(ISVNClientAdapter client) throws SVNException { ISVNNotifyListener revisionListener = new ISVNNotifyListener() { public void setCommand(int command) {} public void logCommandLine(String commandLine) {} public void logMessage(String message) {} public void logError(String message) {} public void logRevision(long aRevision, String path) { PeekStatusCommand.this.revision = new SVNRevision.Number(aRevision); } public void logCompleted(String message) {} public void onNotify(File path, SVNNodeKind kind) {} }; try{ client.addNotifyListener( revisionListener ); File file = resource.getLocation().toFile(); status = null; ISVNStatus[] statuses = client.getStatus( file, false, true, false); for (int i = 0; i < statuses.length; i++) { if (file.equals(statuses[i].getFile())) { status = statuses[i]; if (status.getUrl() == null) info = client.getInfo(status.getFile()); break; } } } catch (SVNClientException e) { throw SVNException.wrapException(e); } finally { client.removeNotifyListener( revisionListener ); } }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/3f2c91332d0cb1d49b0de765d6277e58a8a672e8/PeekStatusCommand.java/clean/subclipse/core/src/org/tigris/subversion/subclipse/core/client/PeekStatusCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 5127, 58, 50, 1227, 4216, 1004, 13, 1216, 29537, 50, 503, 288, 3639, 4437, 58, 50, 9168, 2223, 6350, 2223, 273, 394, 4437, 58, 50, 9168, 2223, 1435, 288, 5411, 1071, 918, 444, 2189, 12, 474, 1296, 13, 2618, 5411, 1071, 918, 613, 21391, 12, 780, 20894, 13, 2618, 5411, 1071, 918, 19139, 12, 780, 883, 13, 2618, 5411, 1071, 918, 20638, 12, 780, 883, 13, 2618, 5411, 1071, 918, 613, 7939, 12, 5748, 279, 7939, 16, 514, 589, 13, 288, 7734, 22173, 1482, 2189, 18, 2211, 18, 13057, 273, 394, 29537, 50, 7939, 18, 1854, 12, 69, 7939, 1769, 5411, 289, 5411, 1071, 918, 613, 9556, 12, 780, 883, 13, 2618, 5411, 1071, 918, 603, 9168, 12, 812, 589, 16, 29537, 50, 907, 5677, 3846, 13, 2618, 3639, 289, 31, 3639, 775, 95, 5411, 1004, 18, 1289, 9168, 2223, 12, 6350, 2223, 11272, 5411, 1387, 585, 273, 1058, 18, 588, 2735, 7675, 869, 812, 5621, 5411, 1267, 273, 446, 31, 5411, 4437, 58, 50, 1482, 8526, 13516, 273, 1004, 18, 588, 1482, 12, 585, 16, 629, 16, 638, 16, 629, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13516, 18, 2469, 31, 277, 27245, 288, 9506, 202, 430, 261, 768, 18, 14963, 12, 21655, 63, 77, 8009, 29925, 1435, 3719, 9506, 202, 95, 6862, 202, 2327, 273, 13516, 63, 77, 15533, 6862, 202, 430, 261, 2327, 18, 588, 1489, 1435, 422, 446, 13, 25083, 202, 1376, 273, 1004, 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, 1836, 12, 5127, 58, 50, 1227, 4216, 1004, 13, 1216, 29537, 50, 503, 288, 3639, 4437, 58, 50, 9168, 2223, 6350, 2223, 273, 394, 4437, 58, 50, 9168, 2223, 1435, 288, 5411, 1071, 918, 444, 2189, 12, 474, 1296, 13, 2618, 5411, 1071, 918, 613, 21391, 12, 780, 20894, 13, 2618, 5411, 1071, 918, 19139, 12, 780, 883, 13, 2618, 5411, 1071, 918, 20638, 12, 780, 883, 13, 2618, 5411, 1071, 918, 613, 7939, 12, 5748, 279, 7939, 16, 514, 589, 13, 288, 7734, 22173, 1482, 2189, 18, 2211, 18, 13057, 273, 394, 29537, 50, 7939, 18, 1854, 12, 69, 7939, 1769, 5411, 289, 5411, 1071, 918, 613, 9556, 12, 780, 883, 13, 2618, 5411, 1071, 2 ]
VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType ||
VM._assert(type == OPT_ClassLoaderProxy.ByteArrayType ||
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcInfo.setInstruction(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcInfo.currentInstruction(); int code = bcInfo.getNextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " " + code + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcInfo.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcInfo.getShortValue())); break; case JBC_ldc: push(bcInfo.getConstantOperand(false)); break; case JBC_ldc_w: push(bcInfo.getConstantOperand(true)); break; case JBC_ldc2_w: pushDual(bcInfo.getConstantOperand(true)); break; case JBC_iload: s = do_iload(bcInfo.getLocalNumber()); break; case JBC_lload: s = do_lload(bcInfo.getLocalNumber()); break; case JBC_fload: s = do_fload(bcInfo.getLocalNumber()); break; case JBC_dload: s = do_dload(bcInfo.getLocalNumber()); break; case JBC_aload: s = do_aload(bcInfo.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = _aloadHelper(INT_ALOAD, ref, index, OPT_ClassLoaderProxy.IntType); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = _aloadHelper(LONG_ALOAD, ref, index, OPT_ClassLoaderProxy.LongType); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = _aloadHelper(FLOAT_ALOAD, ref, index, OPT_ClassLoaderProxy.FloatType); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = _aloadHelper(DOUBLE_ALOAD, ref, index, OPT_ClassLoaderProxy.DoubleType); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) s = _aloadHelper(BYTE_ALOAD, ref, index, OPT_ClassLoaderProxy.ByteType); else s = _aloadHelper(UBYTE_ALOAD, ref, index, OPT_ClassLoaderProxy.BooleanType); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = _aloadHelper(USHORT_ALOAD, ref, index, OPT_ClassLoaderProxy.CharType); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = _aloadHelper(SHORT_ALOAD, ref, index, OPT_ClassLoaderProxy.ShortType); } break; case JBC_istore: s = do_store(bcInfo.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcInfo.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcInfo.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcInfo.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcInfo.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(OPT_ClassLoaderProxy.IntType), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(OPT_ClassLoaderProxy.LongType), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(OPT_ClassLoaderProxy.FloatType), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(OPT_ClassLoaderProxy.DoubleType), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) type = OPT_ClassLoaderProxy.ByteType; else type = OPT_ClassLoaderProxy.BooleanType; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(OPT_ClassLoaderProxy.CharType), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(OPT_ClassLoaderProxy.ShortType), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, OPT_ClassLoaderProxy.FloatType); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, OPT_ClassLoaderProxy.DoubleType); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, OPT_ClassLoaderProxy.FloatType); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, OPT_ClassLoaderProxy.DoubleType); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, OPT_ClassLoaderProxy.FloatType); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, OPT_ClassLoaderProxy.DoubleType); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), OPT_ClassLoaderProxy.IntType); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), OPT_ClassLoaderProxy.LongType); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, OPT_ClassLoaderProxy.FloatType); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, OPT_ClassLoaderProxy.DoubleType); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), OPT_ClassLoaderProxy.IntType); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), OPT_ClassLoaderProxy.LongType); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, OPT_ClassLoaderProxy.FloatType); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, OPT_ClassLoaderProxy.DoubleType); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), OPT_ClassLoaderProxy.IntType); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), OPT_ClassLoaderProxy.LongType); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), OPT_ClassLoaderProxy.FloatType); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), OPT_ClassLoaderProxy.DoubleType); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, OPT_ClassLoaderProxy.LongType); } break; case JBC_iinc: { int index = bcInfo.getLocalNumber(); s = do_iinc(index, bcInfo.getByteValue()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), OPT_ClassLoaderProxy.LongType); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), OPT_ClassLoaderProxy.FloatType); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), OPT_ClassLoaderProxy.DoubleType); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), OPT_ClassLoaderProxy.IntType); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), OPT_ClassLoaderProxy.FloatType); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), OPT_ClassLoaderProxy.DoubleType); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), OPT_ClassLoaderProxy.IntType); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), OPT_ClassLoaderProxy.LongType); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), OPT_ClassLoaderProxy.DoubleType); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), OPT_ClassLoaderProxy.IntType); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), OPT_ClassLoaderProxy.LongType); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), OPT_ClassLoaderProxy.FloatType); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), OPT_ClassLoaderProxy.ByteType); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), OPT_ClassLoaderProxy.CharType); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), OPT_ClassLoaderProxy.ShortType); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, OPT_ClassLoaderProxy.IntType); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcInfo.getBranchTarget(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcInfo.getBranchTarget()); break; case JBC_ret: s = _retHelper(bcInfo.getLocalNumber()); break; case JBC_tableswitch: { OPT_Operand op0 = popInt(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int low = bcInfo.getSwitchLowValue(); int high = bcInfo.getSwitchHighValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset; if ((v1 < low) || (v1 > high)) offset = defaultoff; else offset = bcInfo.getTableSwitchOffsetForConstant(v1, low, high); bcInfo.skipTableSwitchTargets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), null, number*2); for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); } // Set branch probabilities VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex); if (sp == null) { float approxProb = 1.0f/(float)(number+1); // number targets + default TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_lookupswitch: { OPT_Operand op0 = popInt(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int numpairs = bcInfo.getLookupSwitchNumberOfPairs(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset = defaultoff; for (int i = 0; i < numpairs; ++i) { int match = bcInfo.getSwitchValue(i); if (match == v1) { offset = bcInfo.getSwitchTarget(i); bcInfo.skipLookupSwitchPairs(numpairs, i + 1); break; // for } else { bcInfo.skipSwitchValue(i); } } if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } // Construct switch s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), null, numpairs*3); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand(bcInfo.getSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); } // Set branch probabilities VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex); if (sp == null) { float approxProb = 1.0f/(float)(numpairs+1); // num targets + default LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_Type retType = getRefTypeOf(op0); // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.findCommonSuperclass if (retType != OPT_ClassLoaderProxy.JavaLangObjectType) assertIsAssignable(gc.method.getReturnType(), getRefTypeOf(op0)); } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { VM_Field field = bcInfo.getFieldReference(); // use results of field analysis to refine type. VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(field, gc.method.getDeclaringClass()); OPT_Operator operator = unresolved?GETSTATIC_UNRESOLVED:GETSTATIC; if (!unresolved) field = field.resolve(); s = GetStatic.create(operator, t, makeStaticFieldRef(field)); // optimization: // if the field is final and either initialized or // in the bootimage, then get the value at compile time. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (!unresolved && field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage())) { try { if (fieldType.isPrimitiveType()) { operator = OPT_IRTools.getMoveOp(field.getType()); OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); s = null; break; } else { VM_Type rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_Type.JavaLangStringType) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putstatic: { VM_Field field = bcInfo.getFieldReference(); VM_Type fieldType = field.getType(); OPT_Operand r = pop(fieldType); boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(field, gc.method.getDeclaringClass()); OPT_Operator operator = unresolved?PUTSTATIC_UNRESOLVED:PUTSTATIC; if (!unresolved) field = field.resolve(); s = PutStatic.create(operator, r, makeStaticFieldRef(field)); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_getfield: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; VM_Field field = bcInfo.getFieldReference(); VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); // use results of field analysis to refine type. if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(field, gc.method.getDeclaringClass()); OPT_Operator operator = unresolved?GETFIELD_UNRESOLVED:GETFIELD; if (!unresolved) field = field.resolve(); s = GetField.create(operator, t, op1, makeInstanceFieldRef(field), getCurrentGuard()); push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putfield: { VM_Field field = bcInfo.getFieldReference(); VM_Type fieldType = field.getType(); OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(field, gc.method.getDeclaringClass()); OPT_Operator operator = unresolved?PUTFIELD_UNRESOLVED:PUTFIELD; if (!unresolved) field = field.resolve(); s = PutField.create(operator, val, obj, makeInstanceFieldRef(field), getCurrentGuard()); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_invokevirtual: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_VIRTUAL); } VM_Method meth = bcInfo.getMethodReference(); if (meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(meth, gc.method.getDeclaringClass()); if (!unresolved) meth = meth.resolve(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(meth, unresolved); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } // try to reduce the number of targets. // If we succeed, we'll update meth, unresolved, // and s's method operand. OPT_Operand ref = Call.getParam(s, 0); boolean receiverClassResolved = false; boolean isExtant = false; VM_Type type = null; if (ref.isRegister()) { isExtant = ref.asRegister().isExtant(); type = ref.asRegister().type; } else if (ref.isStringConstant()) { isExtant = true; type = OPT_ClassLoaderProxy.JavaLangStringType; } else if (VM.VerifyAssertions) VM.assert(false, "unexpected receiver"); receiverClassResolved = type.isResolved(); if ((meth.getDeclaringClass() != type) && type.isClassType()) { VM_Method vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), meth); if (vmeth != null && vmeth != meth) { // Update meth to be the refined vmeth meth = vmeth; unresolved = OPT_ClassLoaderProxy.needsDynamicLink(meth, gc.method.getDeclaringClass()); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(meth, unresolved, true)); } } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { // if the type is precise and receiverClassResolved is true // then we know FOR CERTAIN that this call will resolve to meth. // By ensuring that recieverClassResolved, we make sure that // lookupMethod was able to actually search the class hierarchy // and set meth appropriately. VM_Method computedTarget = null; if (receiverClassResolved && ((ref.isStringConstant()) || ref.asRegister().isPreciseType())) { computedTarget = meth; if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); } OPT_InlineDecision id = shouldInline(s, computedTarget, isExtant); if (maybeInlineMethod(id, s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_SPECIAL); } VM_Method meth = bcInfo.getMethodReference(); // Note: this is not the usual needsDynamicLink // due to semantics of invokespecial // See comments in VM_OptLinker, OPT_Convert2Low, VM_Linker. boolean unresolved = !meth.getDeclaringClass().isResolved() || (OPT_ClassLoaderProxy.findSpecialMethod(meth) == null); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.SPECIAL(meth, unresolved)); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_STATIC); } VM_Method meth = bcInfo.getMethodReference(); if (meth.getDeclaringClass().isMagicType() || meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(meth, gc.method.getDeclaringClass()); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.STATIC(meth, unresolved)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_INTERFACE); } VM_Method meth = bcInfo.getMethodReference(); bcInfo.eatInvokeInterfaceGarbage(); OPT_MethodOperand methOp = OPT_MethodOperand.INTERFACE(meth, false); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } OPT_RegisterOperand ref = Call.getParam(s, 0).asRegister(); VM_Class refType = ref.type.asClass(); VM_Type interfaceType = meth.getDeclaringClass(); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Step 1: handle the possibility of ghost references try { VM_Method resolvedMethodRef = meth.resolveInterfaceMethod(false); if (resolvedMethodRef == null // Include this here in case it is needed later ) { if (requiresImplementsTest) { // might be a ghost reference. // Must do the more involved typechecking sequence OPT_RegisterOperand tibPtr = gc.temps.makeTemp(OPT_ClassLoaderProxy.JavaLangObjectArrayType); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, ref.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; OPT_MethodOperand dtcRoutine = OPT_MethodOperand.STATIC(VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod); OPT_Instruction callCheck = Call.create2(CALL, null, null, dtcRoutine, new OPT_IntConstantOperand(meth.getDictionaryId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test } } else { meth = resolvedMethodRef; } } catch (Exception e) { // bogus catch of VM_ResolutionException to keep java happy // actually can't be thrown when we pass false for canLoad. } // Step 2: Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // If we're building for FastInterfaceInvocation then // this test must be made explicit in the calling sequence. // In the slow interface invocation path, it is handled // deep in the guts of the dispatching code. // NOTE: We don't insert the test here if we are doing to // do a guarded inline of an interface call. That case // is handled within OPT_Inliner.java. However, if // we virtualize the call, we do need to handle the DTC // here, since OPT_Inliner won't have enough information // to determine what the right thing to do is. if (requiresImplementsTest) { // Attempt to avoid inserting the check by seeing if the // known static type of the receiver implements the interface. if (refType.isResolved() && !refType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.includesType(interfaceType, refType); requiresImplementsTest = doesImplement != YES; } } // Step 3: Attempt to resolve the interface call to // a particular virtual method. // Note: step 2 and step 3 are independent // and it is not that case that being able // to do 2 implies 3 or that doing 3 implies 2. VM_Method vmeth; if (refType.isResolved() && !refType.isInterface() && (vmeth=OPT_ClassLoaderProxy.lookupMethod(refType, meth))!=null) { // We're going to virtualize it. Must deal with the DTC here. if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } boolean unresolved = OPT_ClassLoaderProxy.needsDynamicLink(vmeth, gc.method.getDeclaringClass()); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(vmeth, unresolved, true)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // Think about trying to inline it if (!unresolved) { // if the type is precise, then we know FOR CERTAIN that // this call will resolve to meth VM_Method computedTarget = ref.isPreciseType() ? vmeth : null; if (computedTarget != null && gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); OPT_InlineDecision id = shouldInline(s, computedTarget, ref.isExtant()); if (maybeInlineMethod(id, s)) { return; } } } else { // try to inline a predicted target for the interface invocation OPT_InlineDecision id = shouldInline(s, null, false); if (maybeInlineMethod(id, s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { VM_Type klass = bcInfo.getTypeReference(); OPT_TypeOperand klassOp = makeTypeOperand(klass); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; if (klass.isInitialized() || klass.asClass().isInBootImage()) { operator = NEW; } else { operator = NEW_UNRESOLVED; } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { byte atype = (byte)bcInfo.getByteValue(); VM_Array array = OPT_ClassLoaderProxy.getPrimitiveArrayType(atype); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_anewarray: { VM_Type elementTypeRef = bcInfo.getTypeReference(); VM_Array array = elementTypeRef.getArrayTypeForElementType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithErrorHandler(); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM.assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_Type type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.findCommonSuperclass if (type != OPT_ClassLoaderProxy.JavaLangObjectType) assertIsAssignable(OPT_ClassLoaderProxy.JavaLangThrowableType, type); } if (!gc.method.isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { VM_Type typeRef = bcInfo.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_Type type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } OPT_RegisterOperand reg = (OPT_RegisterOperand)op2; if (gc.options.NO_CHECKCAST) { // Unsafely eliminate all checkcasts } else { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, reg, typeOp); } else { if (isNonNull(reg)) { s = TypeCheck.create(CHECKCAST_NOTNULL, reg, typeOp, getGuard(reg)); } else { s = TypeCheck.create(CHECKCAST, reg, typeOp); } } } reg = reg.copyU2U(); reg.type = typeRef; push(reg); VM_Class et = OPT_ClassLoaderProxy.JavaLangClassCastExceptionType; rectifyStateWithExceptionHandler(et); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { VM_Type typeRef = bcInfo.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_Type type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.includesType(typeRef, type); if (answer == YES) { if (isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db("skipped gen of instanceof of " + op2 + " from " + typeRef + " to " + type); break; } else { // !!TODO: For boolean variables, is any non-zero integer // equivalent to true? If so, in this case, we can replace // t <- o2 instanceof type with t <- o2. (SJF) } } else if (answer == NO) { push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, typeOp, op2); } else { if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/a5a05b105574ec4e1a0bacfcc731385b09418803/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, 900, 397, 315, 598, 1086, 3674, 315, 397, 1086, 3674, 1769, 565, 289, 565, 783, 9676, 900, 18, 542, 7823, 5621, 565, 20706, 8252, 1768, 273, 4159, 14287, 273, 629, 31, 565, 1142, 382, 701, 273, 446, 31, 565, 6533, 966, 18, 542, 11983, 12, 2080, 1016, 1769, 565, 1323, 261, 3767, 13, 288, 1377, 368, 6753, 3455, 783, 9676, 900, 18, 8766, 731, 17, 869, 17, 712, 316, 648, 732, 775, 358, 11833, 1368, 4202, 368, 326, 7689, 434, 326, 1203, 732, 4565, 4551, 12516, 18, 225, 9587, 1283, 9702, 4202, 368, 3551, 3647, 3930, 8252, 1768, 353, 638, 3302, 1404, 4237, 584, 358, 1044, 333, 648, 18, 1377, 783, 9676, 900, 18, 8766, 273, 16170, 1016, 273, 6533, 966, 18, 2972, 11983, 5621, 1377, 509, 981, 273, 6533, 966, 18, 588, 2134, 11983, 5621, 1377, 309, 261, 2290, 43, 67, 16283, 21045, 13, 288, 3639, 1319, 2932, 24979, 315, 397, 16170, 1016, 397, 315, 315, 397, 981, 397, 315, 294, 374, 92, 6, 397, 2144, 18, 869, 14866, 12, 710, 10019, 1377, 289, 1377, 16456, 67, 11983, 272, 273, 446, 31, 1377, 1620, 261, 710, 13, 288, 1377, 648, 804, 16283, 67, 82, 556, 30, 202, 8820, 31, 1377, 648, 804, 16283, 67, 69, 10248, 67, 2011, 30, 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, 282, 3238, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, 900, 397, 315, 598, 1086, 3674, 315, 397, 1086, 3674, 1769, 565, 289, 565, 783, 9676, 900, 18, 542, 7823, 5621, 565, 20706, 8252, 1768, 273, 4159, 14287, 273, 629, 31, 565, 1142, 382, 701, 273, 446, 31, 565, 6533, 966, 18, 542, 11983, 12, 2080, 1016, 1769, 565, 1323, 261, 3767, 13, 288, 1377, 368, 6753, 3455, 783, 9676, 900, 18, 8766, 731, 17, 869, 17, 712, 316, 648, 732, 775, 358, 11833, 1368, 4202, 368, 326, 7689, 434, 326, 1203, 732, 2 ]
withLeadingZeros (calendar.get (Calendar.DATE), p.size, buffer);
withLeadingZeros (calendar.get (Calendar.DATE), cf.getSize(), buffer);
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasNext()) { Object o = iter.next(); if (o instanceof FieldSizePair) { FieldSizePair p = (FieldSizePair) o; int beginIndex = buffer.length(); switch (p.field) { case ERA_FIELD: buffer.append (formatData.eras[calendar.get (Calendar.ERA)], DateFormat.Field.ERA); break; case YEAR_FIELD: // If we have two digits, then we truncate. Otherwise, we // use the size of the pattern, and zero pad. buffer.setDefaultAttribute (DateFormat.Field.YEAR); if (p.size == 2) { temp = String.valueOf (calendar.get (Calendar.YEAR)); buffer.append (temp.substring (temp.length() - 2)); } else withLeadingZeros (calendar.get (Calendar.YEAR), p.size, buffer); break; case MONTH_FIELD: buffer.setDefaultAttribute (DateFormat.Field.MONTH); if (p.size < 3) withLeadingZeros (calendar.get (Calendar.MONTH) + 1, p.size, buffer); else if (p.size < 4) buffer.append (formatData.shortMonths[calendar.get (Calendar.MONTH)]); else buffer.append (formatData.months[calendar.get (Calendar.MONTH)]); break; case DATE_FIELD: buffer.setDefaultAttribute (DateFormat.Field.DAY_OF_MONTH); withLeadingZeros (calendar.get (Calendar.DATE), p.size, buffer); break; case HOUR_OF_DAY1_FIELD: // 1-24 buffer.setDefaultAttribute(DateFormat.Field.HOUR_OF_DAY1); withLeadingZeros ( ((calendar.get (Calendar.HOUR_OF_DAY) + 23) % 24) + 1, p.size, buffer); break; case HOUR_OF_DAY0_FIELD: // 0-23 buffer.setDefaultAttribute (DateFormat.Field.HOUR_OF_DAY0); withLeadingZeros (calendar.get (Calendar.HOUR_OF_DAY), p.size, buffer); break; case MINUTE_FIELD: buffer.setDefaultAttribute (DateFormat.Field.MINUTE); withLeadingZeros (calendar.get (Calendar.MINUTE), p.size, buffer); break; case SECOND_FIELD: buffer.setDefaultAttribute (DateFormat.Field.SECOND); withLeadingZeros(calendar.get (Calendar.SECOND), p.size, buffer); break; case MILLISECOND_FIELD: buffer.setDefaultAttribute (DateFormat.Field.MILLISECOND); withLeadingZeros (calendar.get (Calendar.MILLISECOND), p.size, buffer); break; case DAY_OF_WEEK_FIELD: buffer.setDefaultAttribute (DateFormat.Field.DAY_OF_WEEK); if (p.size < 4) buffer.append (formatData.shortWeekdays[calendar.get (Calendar.DAY_OF_WEEK)]); else buffer.append (formatData.weekdays[calendar.get (Calendar.DAY_OF_WEEK)]); break; case DAY_OF_YEAR_FIELD: buffer.setDefaultAttribute (DateFormat.Field.DAY_OF_YEAR); withLeadingZeros (calendar.get (Calendar.DAY_OF_YEAR), p.size, buffer); break; case DAY_OF_WEEK_IN_MONTH_FIELD: buffer.setDefaultAttribute (DateFormat.Field.DAY_OF_WEEK_IN_MONTH); withLeadingZeros (calendar.get (Calendar.DAY_OF_WEEK_IN_MONTH), p.size, buffer); break; case WEEK_OF_YEAR_FIELD: buffer.setDefaultAttribute (DateFormat.Field.WEEK_OF_YEAR); withLeadingZeros (calendar.get (Calendar.WEEK_OF_YEAR), p.size, buffer); break; case WEEK_OF_MONTH_FIELD: buffer.setDefaultAttribute (DateFormat.Field.WEEK_OF_MONTH); withLeadingZeros (calendar.get (Calendar.WEEK_OF_MONTH), p.size, buffer); break; case AM_PM_FIELD: buffer.setDefaultAttribute (DateFormat.Field.AM_PM); buffer.append (formatData.ampms[calendar.get (Calendar.AM_PM)]); break; case HOUR1_FIELD: // 1-12 buffer.setDefaultAttribute (DateFormat.Field.HOUR1); withLeadingZeros (((calendar.get (Calendar.HOUR) + 11) % 12) + 1, p.size, buffer); break; case HOUR0_FIELD: // 0-11 buffer.setDefaultAttribute (DateFormat.Field.HOUR0); withLeadingZeros (calendar.get (Calendar.HOUR), p.size, buffer); break; case TIMEZONE_FIELD: buffer.setDefaultAttribute (DateFormat.Field.TIME_ZONE); TimeZone zone = calendar.getTimeZone(); boolean isDST = calendar.get (Calendar.DST_OFFSET) != 0; // FIXME: XXX: This should be a localized time zone. String zoneID = zone.getDisplayName (isDST, p.size > 3 ? TimeZone.LONG : TimeZone.SHORT); buffer.append (zoneID); break; default: throw new IllegalArgumentException ("Illegal pattern character " + p.field); } if (pos != null && (buffer.getDefaultAttribute() == pos.getFieldAttribute() || p.field == pos.getField())) { pos.setBeginIndex(beginIndex); pos.setEndIndex(buffer.length()); } } else { buffer.append(o.toString(), null); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 740, 1190, 1499, 12, 1626, 1509, 16, 4077, 1892, 1613, 16, 2286, 2555, 949, 13, 225, 288, 565, 514, 1906, 31, 565, 2380, 11050, 7069, 3198, 18, 1499, 1566, 31, 565, 5686, 18, 542, 950, 12, 712, 1769, 3639, 368, 1960, 3059, 3806, 16, 25740, 316, 1466, 1625, 12008, 16, 469, 1762, 565, 4498, 1400, 273, 2430, 18, 9838, 5621, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 1377, 288, 202, 921, 320, 273, 1400, 18, 4285, 5621, 202, 430, 261, 83, 1276, 2286, 1225, 4154, 13, 202, 225, 288, 202, 974, 1225, 4154, 293, 273, 261, 974, 1225, 4154, 13, 320, 31, 202, 474, 30929, 273, 1613, 18, 2469, 5621, 202, 377, 202, 565, 1620, 261, 84, 18, 1518, 13, 202, 1377, 288, 202, 3593, 512, 2849, 67, 6776, 30, 202, 202, 4106, 18, 6923, 261, 2139, 751, 18, 12067, 63, 11650, 18, 588, 261, 7335, 18, 654, 37, 13, 6487, 18371, 18, 974, 18, 654, 37, 1769, 202, 225, 898, 31, 202, 3593, 16145, 67, 6776, 30, 202, 202, 759, 971, 732, 1240, 2795, 6815, 16, 1508, 732, 10310, 18, 225, 5272, 16, 732, 202, 202, 759, 999, 326, 963, 434, 326, 1936, 16, 471, 3634, 4627, 18, 202, 202, 4106, 18, 542, 1868, 1499, 261, 11878, 18, 974, 18, 15137, 1769, 202, 202, 430, 261, 84, 18, 1467, 422, 576, 13, 1082, 225, 288, 1082, 565, 1906, 273, 514, 18, 1132, 951, 261, 11650, 18, 588, 261, 7335, 18, 15137, 10019, 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, 740, 1190, 1499, 12, 1626, 1509, 16, 4077, 1892, 1613, 16, 2286, 2555, 949, 13, 225, 288, 565, 514, 1906, 31, 565, 2380, 11050, 7069, 3198, 18, 1499, 1566, 31, 565, 5686, 18, 542, 950, 12, 712, 1769, 3639, 368, 1960, 3059, 3806, 16, 25740, 316, 1466, 1625, 12008, 16, 469, 1762, 565, 4498, 1400, 273, 2430, 18, 9838, 5621, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 1377, 288, 202, 921, 320, 273, 1400, 18, 4285, 5621, 202, 430, 261, 83, 1276, 2286, 1225, 4154, 13, 202, 225, 288, 202, 974, 1225, 4154, 293, 273, 261, 974, 1225, 4154, 13, 320, 31, 202, 474, 30929, 273, 1613, 18, 2469, 5621, 202, 377, 202, 565, 1620, 2 ]
if (!Modifier.isStatic(modifiers) || !Modifier.isFinal(modifiers) || (!Modifier.isPublic(modifiers) && !Modifier.isProtected(modifiers))) { constValue = null;
if (!jc.isInterface()) { if (!Modifier.isStatic(modifiers) || !Modifier.isFinal(modifiers) || (!Modifier.isPublic(modifiers) && !Modifier.isProtected(modifiers))) { constValue = null; }
JodeField(FieldInfo f, JodeClass jc) { modifiers = f.getModifiers(); constValue = f.getConstant(); if (!Modifier.isStatic(modifiers) || !Modifier.isFinal(modifiers) || (!Modifier.isPublic(modifiers) && !Modifier.isProtected(modifiers))) { constValue = null; } name = f.getName(); type = f.getType(); deprecated = f.isDeprecated(); this.jc = jc; }
8057 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8057/6fe856b0c6c8edf2994bad2f18e7541d86c18870/JodeField.java/clean/japitools/src/net/wuffies/japi/JodeField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 804, 390, 974, 12, 974, 966, 284, 16, 804, 390, 797, 19807, 13, 288, 565, 10429, 273, 284, 18, 588, 11948, 5621, 565, 1866, 620, 273, 284, 18, 588, 6902, 5621, 565, 309, 16051, 9829, 18, 291, 5788, 12, 15432, 13, 747, 401, 9829, 18, 291, 7951, 12, 15432, 13, 747, 3639, 16051, 9829, 18, 291, 4782, 12, 15432, 13, 597, 401, 9829, 18, 291, 15933, 12, 15432, 20349, 288, 1377, 1866, 620, 273, 446, 31, 565, 289, 565, 508, 273, 284, 18, 17994, 5621, 565, 618, 273, 284, 18, 588, 559, 5621, 565, 6849, 273, 284, 18, 291, 13534, 5621, 565, 333, 18, 78, 71, 273, 19807, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 804, 390, 974, 12, 974, 966, 284, 16, 804, 390, 797, 19807, 13, 288, 565, 10429, 273, 284, 18, 588, 11948, 5621, 565, 1866, 620, 273, 284, 18, 588, 6902, 5621, 565, 309, 16051, 9829, 18, 291, 5788, 12, 15432, 13, 747, 401, 9829, 18, 291, 7951, 12, 15432, 13, 747, 3639, 16051, 9829, 18, 291, 4782, 12, 15432, 13, 597, 401, 9829, 18, 291, 15933, 12, 15432, 20349, 288, 1377, 1866, 620, 273, 446, 31, 565, 289, 565, 508, 273, 284, 18, 17994, 5621, 565, 618, 273, 284, 18, 588, 559, 5621, 565, 6849, 273, 284, 18, 291, 13534, 5621, 565, 333, 18, 78, 71, 273, 19807, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100 ]
if(adaptorType == AdaptorDateType) { defaultValue = ERXTimestampUtilities.timestampForString(stringValue); } else if (adaptorType == AdaptorNumberType) { NSTimestamp temp = ERXTimestampUtilities.timestampForString(stringValue); if(temp != null) { defaultValue = ERXTimestampUtilities.unixTimestamp(temp); } else { defaultValue = new Integer(Integer.parseInt(stringValue));
if(stringValue.startsWith("@threadStorage.")) { String keyPath = stringValue.substring("@threadStorage.".length()); defaultValue = ERXThreadStorage.valueForKey(keyPath); if(keyPath.indexOf(".") > 0) { keyPath = stringValue.substring(keyPath.indexOf(".")+1); defaultValue = NSKeyValueCodingAdditions.Utility.valueForKeyPath(defaultValue, keyPath);
public void setValueInObject(EOEnterpriseObject eo) { Object defaultValue = this.stringValue; if(adaptorType == AdaptorDateType) { defaultValue = ERXTimestampUtilities.timestampForString(stringValue); } else if (adaptorType == AdaptorNumberType) { NSTimestamp temp = ERXTimestampUtilities.timestampForString(stringValue); if(temp != null) { defaultValue = ERXTimestampUtilities.unixTimestamp(temp); } else { defaultValue = new Integer(Integer.parseInt(stringValue)); } } else { // nothing for strings so far... } eo.takeValueForKey(defaultValue, key); }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/f47a39b252f0959d6be866ba5ec634eaf3ea6c05/ERXEntityClassDescription.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEntityClassDescription.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 5524, 382, 921, 12, 41, 51, 30699, 921, 425, 83, 13, 288, 5411, 1033, 4593, 273, 333, 18, 1080, 620, 31, 5411, 309, 12, 19195, 280, 559, 422, 22792, 280, 1626, 559, 13, 288, 7734, 4593, 273, 4232, 3983, 2796, 11864, 18, 5508, 1290, 780, 12, 1080, 620, 1769, 5411, 289, 469, 309, 261, 19195, 280, 559, 422, 22792, 280, 1854, 559, 13, 288, 7734, 423, 882, 2796, 1906, 273, 4232, 3983, 2796, 11864, 18, 5508, 1290, 780, 12, 1080, 620, 1769, 7734, 309, 12, 5814, 480, 446, 13, 288, 10792, 4593, 273, 4232, 3983, 2796, 11864, 18, 21136, 4921, 12, 5814, 1769, 7734, 289, 469, 288, 10792, 4593, 273, 394, 2144, 12, 4522, 18, 2670, 1702, 12, 1080, 620, 10019, 7734, 289, 5411, 289, 469, 288, 7734, 368, 5083, 364, 2064, 1427, 10247, 2777, 5411, 289, 5411, 425, 83, 18, 22188, 620, 19759, 12, 27652, 16, 498, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 5524, 382, 921, 12, 41, 51, 30699, 921, 425, 83, 13, 288, 5411, 1033, 4593, 273, 333, 18, 1080, 620, 31, 5411, 309, 12, 19195, 280, 559, 422, 22792, 280, 1626, 559, 13, 288, 7734, 4593, 273, 4232, 3983, 2796, 11864, 18, 5508, 1290, 780, 12, 1080, 620, 1769, 5411, 289, 469, 309, 261, 19195, 280, 559, 422, 22792, 280, 1854, 559, 13, 288, 7734, 423, 882, 2796, 1906, 273, 4232, 3983, 2796, 11864, 18, 5508, 1290, 780, 12, 1080, 620, 1769, 7734, 309, 12, 5814, 480, 446, 13, 288, 10792, 4593, 273, 4232, 3983, 2796, 11864, 18, 21136, 4921, 12, 5814, 1769, 7734, 289, 469, 288, 10792, 4593, 273, 394, 2144, 12, 4522, 18, 2670, 2 ]
else
cmptdColumn = (IScriptExpression) computedColumnState.getExpression( i ); compileScriptExpression( cmptdColumn, context ); if ( exprType == GROUP_COLUMN_EXPR )
public void compileComputedColumn( IComputedColumnsState computedColumns ) { assert ( computedColumns != null ); this.computedColumnState = computedColumns; IScriptExpression cmptdColumn = null; String name = "",expression=""; Context context = Context.enter(); try { for ( int i = 0; i < computedColumnState.getCount( ); i++ ) { //if the computed column is not available, parse it to get the pass // level. If pass level<=1, this expression //can be evaluate. This expression will be added into a temp list // for the later expression. if ( !computedColumnState.isValueAvailable( i ) ) { try { cmptdColumn = computedColumnState.getExpression( i ); expression = cmptdColumn.getText( ); if ( expression == null || expression.trim( ).length( ) == 0 ) { throw new DataException( ResourceConstants.EXPRESSION_CANNOT_BE_NULL_OR_BLANK ); } name = computedColumnState.getName( i ); if ( name.matches( "\\Q_{$TEMP_GROUP_\\E\\d*\\Q$}_\\E" ) ) { exprType = GROUP_COLUMN_EXPR; // group level is 1-based currentGroupLevel = getCurrentGroupLevel( name , currentGroupLevel ); helper.setExpressionType( exprType, currentGroupLevel ); if ( tempRefactorCmpList == null ) tempRefactorCmpList = new ArrayList( ); tempRefactorCmpList.add( new Integer( i ) ); } CompiledExpression expr = helper.compileExpression( expression, context ); cmptdColumn.setHandle( expr ); // if the expression is group column , compile it then // return, do not compile the next expression if ( exprType == GROUP_COLUMN_EXPR ) { exprType = 0; helper.setExpressionType( 0, 0 ); helper.resetPassLevel( ); return; } } catch ( DataException e ) { DataException dataException = new DataException( ResourceConstants.INVALID_JS_EXPR, e, expression ); cmptdColumn.setHandle( new InvalidExpression( dataException ) ); } // if this computed column can be caculated, set value // available. if ( helper.getExpressionPassLevel( ) <= 1 ) { if ( tempRefactorCmpList == null ) tempRefactorCmpList = new ArrayList( ); tempRefactorCmpList.add( new Integer( i ) ); } else { helper.resetPassLevel( ); helper.setExpressionType( exprType, 0 ); return; } helper.setExpressionType( exprType, 0 ); helper.resetPassLevel( ); } } } finally { Context.exit(); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ee19ab8a360e559ed078a16d4c0230d18e55988d/ExpressionProcessor.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/expression/ExpressionProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4074, 17934, 1494, 12, 467, 17934, 3380, 1119, 8470, 3380, 262, 202, 95, 202, 202, 11231, 261, 8470, 3380, 480, 446, 11272, 202, 202, 2211, 18, 20307, 1494, 1119, 273, 8470, 3380, 31, 9506, 202, 45, 3651, 2300, 5003, 337, 72, 1494, 273, 446, 31, 202, 202, 780, 508, 273, 23453, 8692, 1546, 14432, 202, 202, 1042, 819, 273, 1772, 18, 2328, 5621, 202, 202, 698, 202, 202, 95, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 8470, 1494, 1119, 18, 588, 1380, 12, 11272, 277, 9904, 262, 1082, 202, 95, 6862, 202, 759, 430, 326, 8470, 1057, 353, 486, 2319, 16, 1109, 518, 358, 336, 326, 1342, 9506, 202, 759, 1801, 18, 971, 1342, 1801, 32, 33, 21, 16, 333, 2652, 9506, 202, 759, 4169, 506, 5956, 18, 1220, 2652, 903, 506, 3096, 1368, 279, 1906, 666, 9506, 202, 759, 364, 326, 5137, 2652, 18, 9506, 202, 430, 261, 401, 20307, 1494, 1119, 18, 291, 620, 5268, 12, 277, 262, 262, 9506, 202, 95, 6862, 202, 698, 6862, 202, 95, 25083, 202, 7670, 337, 72, 1494, 273, 8470, 1494, 1119, 18, 588, 2300, 12, 277, 11272, 25083, 202, 8692, 273, 5003, 337, 72, 1494, 18, 588, 1528, 12, 11272, 25083, 202, 430, 261, 2652, 422, 446, 6862, 9506, 202, 20081, 2652, 18, 5290, 12, 262, 18, 2469, 12, 262, 422, 374, 262, 25083, 202, 95, 6862, 1082, 202, 12849, 394, 1910, 503, 12, 2591, 2918, 18, 19111, 67, 39, 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, 4074, 17934, 1494, 12, 467, 17934, 3380, 1119, 8470, 3380, 262, 202, 95, 202, 202, 11231, 261, 8470, 3380, 480, 446, 11272, 202, 202, 2211, 18, 20307, 1494, 1119, 273, 8470, 3380, 31, 9506, 202, 45, 3651, 2300, 5003, 337, 72, 1494, 273, 446, 31, 202, 202, 780, 508, 273, 23453, 8692, 1546, 14432, 202, 202, 1042, 819, 273, 1772, 18, 2328, 5621, 202, 202, 698, 202, 202, 95, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 8470, 1494, 1119, 18, 588, 1380, 12, 11272, 277, 9904, 262, 1082, 202, 95, 6862, 202, 759, 430, 326, 8470, 1057, 353, 486, 2319, 16, 1109, 518, 358, 336, 326, 1342, 9506, 202, 759, 1801, 2 ]
return (Node)u1; }
return (Node) u1; }
public Node getSttsNode() { return (Node)u1; }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 21491, 3428, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 21491, 3428, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Hello, I am here"); }
System.out.println("Hello, I am here"); }
public void echo() { System.out.println("Hello, I am here"); }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/5e642ce7dcf879375a80fc7d91f77e9f8895c453/Test.java/clean/src/test/multiplemigration/Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3376, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 18601, 16, 467, 2125, 2674, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3376, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 18601, 16, 467, 2125, 2674, 8863, 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 ]
return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); }
return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); }
public RubyObject m_method_defined(RubyObject symbol) { return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 2039, 67, 2178, 12, 54, 10340, 921, 3273, 13, 288, 202, 202, 2463, 27969, 3499, 12, 7175, 18, 869, 548, 9334, 404, 13, 1082, 202, 35, 4170, 10340, 7675, 588, 5510, 1435, 1082, 202, 30, 4170, 10340, 7675, 588, 8381, 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, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 2039, 67, 2178, 12, 54, 10340, 921, 3273, 13, 288, 202, 202, 2463, 27969, 3499, 12, 7175, 18, 869, 548, 9334, 404, 13, 1082, 202, 35, 4170, 10340, 7675, 588, 5510, 1435, 1082, 202, 30, 4170, 10340, 7675, 588, 8381, 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 ]
try {/*fixme: should try to get current perspective, or default; currently only gets first perspective in the registry.*/ persp = new Perspective((PerspectiveDescriptor)getWorkbench().getPerspectiveRegistry().getPerspectives()[0], (WorkbenchPage)getWorkbench().getActiveWorkbenchWindow().getActivePage() ); dialog = new CustomizePerspectiveDialog(getShell(), persp);
try { /* * fixme: should try to get current perspective, or default; * currently only */ persp = new Perspective( (PerspectiveDescriptor) getWorkbench().getPerspectiveRegistry().getPerspectives()[0], (WorkbenchPage) getWorkbench().getActiveWorkbenchWindow().getActivePage()); dialog = new CustomizePerspectiveDialog(getShell(), persp);
public void testEditActionSetsDialog() { Dialog dialog; Perspective persp = null; //Test perspective: use current perspective of test case try {/*fixme: should try to get current perspective, or default; currently only gets first perspective in the registry.*/ persp = new Perspective((PerspectiveDescriptor)getWorkbench().getPerspectiveRegistry().getPerspectives()[0], (WorkbenchPage)getWorkbench().getActiveWorkbenchWindow().getActivePage() ); dialog = new CustomizePerspectiveDialog(getShell(), persp); } catch (WorkbenchException e) { dialog = null; } DialogCheck.assertDialog(dialog, this); if (persp != null) { persp.dispose(); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5da3910700fa7ca5b4c5ebcd4950aa503a472809/UIDialogs.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/UIDialogs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4666, 1803, 2785, 6353, 1435, 288, 202, 202, 6353, 6176, 31, 202, 202, 14781, 16772, 13508, 84, 273, 446, 31, 202, 202, 759, 4709, 26651, 30, 999, 783, 26651, 434, 1842, 648, 202, 202, 698, 288, 20308, 904, 3501, 30, 1410, 775, 358, 336, 783, 26651, 16, 578, 805, 31, 4551, 1338, 9506, 5571, 1122, 26651, 316, 326, 4023, 4509, 19, 1082, 202, 10422, 84, 273, 394, 453, 414, 16772, 12443, 14781, 16772, 3187, 13, 588, 2421, 22144, 7675, 588, 14781, 16772, 4243, 7675, 588, 14781, 1181, 3606, 1435, 63, 20, 6487, 9506, 4766, 565, 261, 2421, 22144, 1964, 13, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 1435, 1082, 202, 1769, 1082, 202, 12730, 273, 394, 6082, 554, 14781, 16772, 6353, 12, 588, 13220, 9334, 225, 13508, 84, 1769, 202, 202, 97, 1044, 261, 2421, 22144, 503, 425, 13, 288, 1082, 202, 12730, 273, 446, 31, 202, 202, 97, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 1769, 202, 202, 430, 261, 10422, 84, 480, 446, 13, 288, 1082, 202, 10422, 84, 18, 2251, 4150, 5621, 202, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4666, 1803, 2785, 6353, 1435, 288, 202, 202, 6353, 6176, 31, 202, 202, 14781, 16772, 13508, 84, 273, 446, 31, 202, 202, 759, 4709, 26651, 30, 999, 783, 26651, 434, 1842, 648, 202, 202, 698, 288, 20308, 904, 3501, 30, 1410, 775, 358, 336, 783, 26651, 16, 578, 805, 31, 4551, 1338, 9506, 5571, 1122, 26651, 316, 326, 4023, 4509, 19, 1082, 202, 10422, 84, 273, 394, 453, 414, 16772, 12443, 14781, 16772, 3187, 13, 588, 2421, 22144, 7675, 588, 14781, 16772, 4243, 7675, 588, 14781, 1181, 3606, 1435, 63, 20, 6487, 9506, 4766, 565, 261, 2421, 22144, 1964, 13, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 1435, 2 ]
} finally { Context.exit(); }
});
Object[] getObjectIds(Object object) { if (!(object instanceof Scriptable) || object == Undefined.instance) { return Context.emptyArgs; } Scriptable scriptable = (Scriptable)object; Object[] ids; Context cx = Context.enter(); try { if (scriptable instanceof DebuggableObject) { ids = ((DebuggableObject)scriptable).getAllIds(); } else { ids = scriptable.getIds(); } } finally { Context.exit(); } Scriptable proto = scriptable.getPrototype(); Scriptable parent = scriptable.getParentScope(); int extra = 0; if (proto != null) { ++extra; } if (parent != null) { ++extra; } if (extra != 0) { Object[] tmp = new Object[extra + ids.length]; System.arraycopy(ids, 0, tmp, extra, ids.length); ids = tmp; extra = 0; if (proto != null) { ids[extra++] = "__proto__"; } if (parent != null) { ids[extra++] = "__parent__"; } } return ids; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/daf6b75edbd23fda1750716a43bd235c561fef2b/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1033, 8526, 6455, 2673, 12, 921, 733, 13, 565, 288, 3639, 309, 16051, 12, 1612, 1276, 22780, 13, 747, 733, 422, 22243, 18, 1336, 13, 288, 5411, 327, 1772, 18, 5531, 2615, 31, 3639, 289, 3639, 22780, 2728, 429, 273, 261, 3651, 429, 13, 1612, 31, 3639, 1033, 8526, 3258, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 775, 288, 5411, 309, 261, 4263, 429, 1276, 4015, 8455, 921, 13, 288, 7734, 3258, 273, 14015, 2829, 8455, 921, 13, 4263, 429, 2934, 588, 1595, 2673, 5621, 5411, 289, 469, 288, 7734, 3258, 273, 2728, 429, 18, 588, 2673, 5621, 5411, 289, 3639, 289, 3095, 288, 5411, 1772, 18, 8593, 5621, 3639, 289, 3639, 22780, 3760, 273, 2728, 429, 18, 588, 15846, 5621, 3639, 22780, 982, 273, 2728, 429, 18, 588, 3054, 3876, 5621, 3639, 509, 2870, 273, 374, 31, 3639, 309, 261, 9393, 480, 446, 13, 288, 5411, 965, 7763, 31, 3639, 289, 3639, 309, 261, 2938, 480, 446, 13, 288, 5411, 965, 7763, 31, 3639, 289, 3639, 309, 261, 7763, 480, 374, 13, 288, 5411, 1033, 8526, 1853, 273, 394, 1033, 63, 7763, 397, 3258, 18, 2469, 15533, 5411, 2332, 18, 1126, 3530, 12, 2232, 16, 374, 16, 1853, 16, 2870, 16, 3258, 18, 2469, 1769, 5411, 3258, 273, 1853, 31, 5411, 2870, 273, 374, 31, 5411, 309, 261, 9393, 480, 446, 13, 288, 7734, 3258, 63, 7763, 9904, 65, 273, 10425, 9393, 972, 14432, 5411, 289, 5411, 309, 261, 2938, 480, 446, 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, 1033, 8526, 6455, 2673, 12, 921, 733, 13, 565, 288, 3639, 309, 16051, 12, 1612, 1276, 22780, 13, 747, 733, 422, 22243, 18, 1336, 13, 288, 5411, 327, 1772, 18, 5531, 2615, 31, 3639, 289, 3639, 22780, 2728, 429, 273, 261, 3651, 429, 13, 1612, 31, 3639, 1033, 8526, 3258, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 775, 288, 5411, 309, 261, 4263, 429, 1276, 4015, 8455, 921, 13, 288, 7734, 3258, 273, 14015, 2829, 8455, 921, 13, 4263, 429, 2934, 588, 1595, 2673, 5621, 5411, 289, 469, 288, 7734, 3258, 273, 2728, 429, 18, 588, 2673, 5621, 5411, 289, 3639, 289, 3095, 288, 5411, 1772, 18, 8593, 5621, 3639, 289, 3639, 22780, 3760, 273, 2 ]
selection );
selection,fileExtension );
public void addPages( ) { newReportFileWizardPage = new WizardNewReportCreationPage( WIZARDPAGE, selection ); addPage( newReportFileWizardPage ); // Temporary remark the choice page for that feature is not supported in // R1 // choicePage = new WizardChoicePage( TEMPLATECHOICEPAGE ); // addPage( choicePage ); // customTemplatePage = new WizardCustomTemplatePage( TEMPLATECHOICEPAGE // ); // addPage( customTemplatePage ); templateChoicePage = new WizardTemplateChoicePage( TEMPLATECHOICEPAGE ); addPage( templateChoicePage ); // set titles newReportFileWizardPage.setTitle( REPORT ); newReportFileWizardPage.setDescription( CREATE_A_NEW_REPORT ); templateChoicePage.setTitle( REPORT ); templateChoicePage.setDescription( SELECT_A_REPORT_TEMPLATE ); // Temporary remark the choice page for that feature is not supported in // R1 // customTemplatePage.setTitle( REPORT ); // customTemplatePage.setDescription( SELECT_A_REPORT_TEMPLATE ); // choicePage.setTitle( REPORT ); // choicePage.setDescription( CHOOSE_FROM_TEMPLATE ); resetUniqueCount( ); newReportFileWizardPage.setFileName( getUniqueReportName( ) ); newReportFileWizardPage.setContainerFullPath( getDefaultContainerPath( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c22efc94d5781b8af580a7e4ff478999ea7b0fb6/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 5716, 12, 262, 202, 95, 202, 202, 2704, 4820, 812, 27130, 1964, 273, 394, 678, 13412, 1908, 4820, 9906, 1964, 12, 678, 6867, 8085, 11219, 16, 9506, 202, 10705, 11272, 202, 202, 1289, 1964, 12, 394, 4820, 812, 27130, 1964, 11272, 202, 202, 759, 202, 202, 11685, 849, 1313, 326, 6023, 1363, 364, 716, 2572, 353, 486, 3260, 316, 202, 202, 759, 534, 21, 202, 202, 759, 202, 202, 11569, 1964, 273, 394, 678, 13412, 10538, 1964, 12, 20835, 22213, 11774, 11219, 11272, 202, 202, 759, 202, 202, 1289, 1964, 12, 6023, 1964, 11272, 202, 202, 759, 202, 202, 3662, 2283, 1964, 273, 394, 678, 13412, 3802, 2283, 1964, 12, 20835, 22213, 11774, 11219, 202, 202, 759, 11272, 202, 202, 759, 202, 202, 1289, 1964, 12, 1679, 2283, 1964, 11272, 202, 202, 3202, 10538, 1964, 273, 394, 678, 13412, 2283, 10538, 1964, 12, 20835, 22213, 11774, 11219, 11272, 202, 202, 1289, 1964, 12, 1542, 10538, 1964, 11272, 202, 202, 759, 444, 14693, 202, 202, 2704, 4820, 812, 27130, 1964, 18, 542, 4247, 12, 27711, 11272, 202, 202, 2704, 4820, 812, 27130, 1964, 18, 542, 3291, 12, 13278, 67, 37, 67, 12917, 67, 22710, 11272, 202, 202, 3202, 10538, 1964, 18, 542, 4247, 12, 27711, 11272, 202, 202, 3202, 10538, 1964, 18, 542, 3291, 12, 9111, 67, 37, 67, 22710, 67, 12205, 11272, 202, 202, 759, 202, 202, 11685, 849, 1313, 326, 6023, 1363, 364, 716, 2572, 353, 486, 3260, 316, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 5716, 12, 262, 202, 95, 202, 202, 2704, 4820, 812, 27130, 1964, 273, 394, 678, 13412, 1908, 4820, 9906, 1964, 12, 678, 6867, 8085, 11219, 16, 9506, 202, 10705, 11272, 202, 202, 1289, 1964, 12, 394, 4820, 812, 27130, 1964, 11272, 202, 202, 759, 202, 202, 11685, 849, 1313, 326, 6023, 1363, 364, 716, 2572, 353, 486, 3260, 316, 202, 202, 759, 534, 21, 202, 202, 759, 202, 202, 11569, 1964, 273, 394, 678, 13412, 10538, 1964, 12, 20835, 22213, 11774, 11219, 11272, 202, 202, 759, 202, 202, 1289, 1964, 12, 6023, 1964, 11272, 202, 202, 759, 202, 202, 3662, 2283, 1964, 273, 394, 678, 13412, 3802, 2283, 1964, 12, 20835, 22213, 11774, 11219, 2 ]
private static final boolean isComplete(final KeyStroke keyStroke) {
static final boolean isComplete(final KeyStroke keyStroke) {
private static final boolean isComplete(final KeyStroke keyStroke) { if (keyStroke != null) { final NaturalKey naturalKey = keyStroke.getNaturalKey(); if (naturalKey instanceof CharacterKey) { final CharacterKey characterKey = (CharacterKey) naturalKey; return (characterKey.getCharacter() != '\0'); } else return true; } return false; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7df55d5d3bce46107c1eb281e95242649f3700cb/KeySequenceText.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeySequenceText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1250, 353, 6322, 12, 6385, 1929, 14602, 498, 14602, 13, 288, 202, 202, 430, 261, 856, 14602, 480, 446, 13, 288, 1082, 202, 6385, 423, 270, 3766, 653, 15145, 653, 273, 498, 14602, 18, 588, 23779, 3766, 653, 5621, 1082, 202, 430, 261, 18757, 3766, 653, 1276, 6577, 653, 13, 288, 9506, 202, 6385, 6577, 653, 3351, 653, 273, 261, 7069, 653, 13, 15145, 653, 31, 9506, 202, 2463, 261, 11560, 653, 18, 588, 7069, 1435, 480, 2337, 20, 8284, 1082, 202, 97, 469, 9506, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1250, 353, 6322, 12, 6385, 1929, 14602, 498, 14602, 13, 288, 202, 202, 430, 261, 856, 14602, 480, 446, 13, 288, 1082, 202, 6385, 423, 270, 3766, 653, 15145, 653, 273, 498, 14602, 18, 588, 23779, 3766, 653, 5621, 1082, 202, 430, 261, 18757, 3766, 653, 1276, 6577, 653, 13, 288, 9506, 202, 6385, 6577, 653, 3351, 653, 273, 261, 7069, 653, 13, 15145, 653, 31, 9506, 202, 2463, 261, 11560, 653, 18, 588, 7069, 1435, 480, 2337, 20, 8284, 1082, 202, 97, 469, 9506, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); moreInfo = createButton(parent, MORE_ID, IDEWorkbenchMessages.getString("AboutPluginsDialog.moreInfo"), false);
parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
protected void createButtonsForButtonBar(Composite parent) { parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); moreInfo = createButton(parent, MORE_ID, IDEWorkbenchMessages.getString("AboutPluginsDialog.moreInfo"), false); //$NON-NLS-1$ // set initial enablement moreInfo.setEnabled(tableHasSelection() & selectionHasInfo()); Label l = new Label(parent, SWT.NONE); l.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = (GridLayout)parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth = false; createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/922a37ecfef1f6db512173bdfc248a42376c1f05/AboutPluginsDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AboutPluginsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 202, 202, 2938, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 1082, 202, 10161, 966, 273, 752, 3616, 12, 2938, 16, 490, 8607, 67, 734, 16, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 24813, 9461, 6353, 18, 10161, 966, 6, 3631, 629, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 444, 2172, 4237, 475, 202, 202, 10161, 966, 18, 542, 1526, 12, 2121, 5582, 6233, 1435, 473, 4421, 5582, 966, 10663, 202, 202, 2224, 328, 273, 394, 5287, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 80, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 202, 6313, 3744, 3511, 273, 261, 6313, 3744, 13, 2938, 18, 588, 3744, 5621, 202, 202, 6741, 18, 2107, 3380, 9904, 31, 202, 202, 6741, 18, 6540, 3380, 5812, 2384, 273, 629, 31, 1082, 202, 2640, 3616, 12, 2938, 16, 1599, 3529, 2918, 18, 3141, 67, 734, 16, 1599, 3529, 2918, 18, 3141, 67, 13545, 16, 638, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 202, 202, 2938, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 1082, 202, 10161, 966, 273, 752, 3616, 12, 2938, 16, 490, 8607, 67, 734, 16, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 24813, 9461, 6353, 18, 10161, 966, 6, 3631, 629, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 444, 2172, 4237, 475, 202, 202, 10161, 966, 18, 542, 1526, 12, 2121, 5582, 6233, 1435, 473, 4421, 5582, 966, 10663, 202, 202, 2224, 328, 273, 394, 5287, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 80, 18, 542, 2 ]
addScope(fActiveWidget);
addContext();
public void handleEvent(Event event) { switch (event.type) { case SWT.FocusIn: fActiveWidget = event.widget; addScope(fActiveWidget); updateEnabledState(); break; case SWT.FocusOut: removeScope(fActiveWidget); fActiveWidget = null; updateEnabledState(); break; default: break; } }
47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/57b3967de737d92ae6ef0d97b41c0f98cb45fce6/MultiActionHandler.java/clean/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/MultiActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 1133, 12, 1133, 871, 13, 288, 9506, 202, 9610, 261, 2575, 18, 723, 13, 288, 202, 202, 3593, 348, 8588, 18, 9233, 382, 30, 1082, 202, 74, 3896, 4609, 273, 871, 18, 6587, 31, 1082, 202, 1289, 3876, 12, 74, 3896, 4609, 1769, 1082, 202, 2725, 1526, 1119, 5621, 1082, 202, 8820, 31, 202, 202, 3593, 348, 8588, 18, 9233, 1182, 30, 1082, 202, 4479, 3876, 12, 74, 3896, 4609, 1769, 1082, 202, 74, 3896, 4609, 273, 446, 31, 1082, 202, 2725, 1526, 1119, 5621, 1082, 202, 8820, 31, 6862, 202, 1886, 30, 1082, 202, 8820, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 1133, 12, 1133, 871, 13, 288, 9506, 202, 9610, 261, 2575, 18, 723, 13, 288, 202, 202, 3593, 348, 8588, 18, 9233, 382, 30, 1082, 202, 74, 3896, 4609, 273, 871, 18, 6587, 31, 1082, 202, 1289, 3876, 12, 74, 3896, 4609, 1769, 1082, 202, 2725, 1526, 1119, 5621, 1082, 202, 8820, 31, 202, 202, 3593, 348, 8588, 18, 9233, 1182, 30, 1082, 202, 4479, 3876, 12, 74, 3896, 4609, 1769, 1082, 202, 74, 3896, 4609, 273, 446, 31, 1082, 202, 2725, 1526, 1119, 5621, 1082, 202, 8820, 31, 6862, 202, 1886, 30, 1082, 202, 8820, 31, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for(int i = 0; i < fileItems.length; ++i) { if(fileItems[i].length() == 0) {
for (int i = 0; i < fileItems.length; ++i) { if (fileItems[i].length() == 0) {
Menubar(Main db) { super(); this.db = db; String[] fileItems = {"Open...", "Run...", "", "Exit"}; String[] fileCmds = {"Open", "Load", "", "Exit"}; char[] fileShortCuts = {'0', 'N', '\0', 'X'}; int[] fileAccelerators = {KeyEvent.VK_O, KeyEvent.VK_N, 0, KeyEvent.VK_Q}; String[] editItems = {"Cut", "Copy", "Paste", "Go to function..."}; char[] editShortCuts = {'T', 'C', 'P', 'F'}; String[] debugItems = {"Break", "Go", "Step Into", "Step Over", "Step Out"}; char[] debugShortCuts = {'B', 'G', 'I', 'O', 'T'}; String[] plafItems = {"Metal", "Windows", "Motif"}; char [] plafShortCuts = {'M', 'W', 'F'}; int[] debugAccelerators = {KeyEvent.VK_PAUSE, KeyEvent.VK_F5, KeyEvent.VK_F11, KeyEvent.VK_F7, KeyEvent.VK_F8, 0, 0}; JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('F'); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic('E'); JMenu plafMenu = new JMenu("Platform"); plafMenu.setMnemonic('P'); JMenu debugMenu = new JMenu("Debug"); debugMenu.setMnemonic('D'); windowMenu = new JMenu("Window"); windowMenu.setMnemonic('W'); for(int i = 0; i < fileItems.length; ++i) { if(fileItems[i].length() == 0) { fileMenu.addSeparator(); } else { JMenuItem item = new JMenuItem(fileItems[i], fileShortCuts[i]); item.setActionCommand(fileCmds[i]); item.addActionListener(this); fileMenu.add(item); if(fileAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(fileAccelerators[i], Event.CTRL_MASK); item.setAccelerator(k); } } } for(int i = 0; i < editItems.length; ++i) { JMenuItem item = new JMenuItem(editItems[i], editShortCuts[i]); item.addActionListener(this); editMenu.add(item); } for(int i = 0; i < plafItems.length; ++i) { JMenuItem item = new JMenuItem(plafItems[i], plafShortCuts[i]); item.addActionListener(this); plafMenu.add(item); } for(int i = 0; i < debugItems.length; ++i) { JMenuItem item = new JMenuItem(debugItems[i], debugShortCuts[i]); item.addActionListener(this); if(debugAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(debugAccelerators[i], 0); item.setAccelerator(k); } if(i != 0) { item.setEnabled(false); } debugMenu.add(item); } breakOnExceptions = new JCheckBoxMenuItem("Break on Exceptions"); breakOnExceptions.setMnemonic('X'); breakOnExceptions.addActionListener(this); breakOnExceptions.setSelected(false); debugMenu.add(breakOnExceptions); add(fileMenu); add(editMenu); //add(plafMenu); add(debugMenu); JMenuItem item; windowMenu.add(item = new JMenuItem("Cascade", 'A')); item.addActionListener(this); windowMenu.add(item = new JMenuItem("Tile", 'T')); item.addActionListener(this); windowMenu.addSeparator(); windowMenu.add(item = new JMenuItem("Console", 'C')); item.addActionListener(this); add(windowMenu); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 490, 275, 373, 297, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 514, 8526, 585, 3126, 225, 273, 12528, 3678, 7070, 16, 315, 1997, 7070, 16, 23453, 315, 6767, 6, 20451, 3639, 514, 8526, 585, 5931, 87, 225, 273, 12528, 3678, 3113, 315, 2563, 3113, 23453, 315, 6767, 6, 20451, 3639, 1149, 8526, 585, 4897, 39, 12940, 273, 13666, 20, 2187, 296, 50, 2187, 2337, 20, 2187, 296, 60, 11, 20451, 3639, 509, 8526, 585, 18019, 264, 3062, 273, 288, 653, 1133, 18, 58, 47, 67, 51, 16, 21394, 23737, 18, 58, 47, 67, 50, 16, 21394, 374, 16, 21394, 23737, 18, 58, 47, 67, 53, 20451, 3639, 514, 8526, 3874, 3126, 273, 12528, 15812, 3113, 315, 2951, 3113, 315, 52, 14725, 3113, 315, 5741, 358, 445, 7070, 20451, 3639, 1149, 8526, 3874, 4897, 39, 12940, 273, 13666, 56, 2187, 296, 39, 2187, 296, 52, 2187, 296, 42, 11, 20451, 3639, 514, 8526, 1198, 3126, 273, 12528, 7634, 3113, 315, 5741, 3113, 315, 4160, 657, 869, 3113, 315, 4160, 10752, 3113, 315, 4160, 2976, 6, 20451, 3639, 1149, 8526, 1198, 4897, 39, 12940, 273, 13666, 38, 2187, 296, 43, 2187, 296, 45, 2187, 296, 51, 2187, 296, 56, 11, 20451, 3639, 514, 8526, 886, 1727, 3126, 273, 12528, 26365, 3113, 315, 10399, 3113, 315, 24749, 430, 6, 20451, 3639, 1149, 5378, 886, 1727, 4897, 39, 12940, 273, 13666, 49, 2187, 296, 59, 2187, 296, 42, 11, 20451, 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, 377, 490, 275, 373, 297, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 514, 8526, 585, 3126, 225, 273, 12528, 3678, 7070, 16, 315, 1997, 7070, 16, 23453, 315, 6767, 6, 20451, 3639, 514, 8526, 585, 5931, 87, 225, 273, 12528, 3678, 3113, 315, 2563, 3113, 23453, 315, 6767, 6, 20451, 3639, 1149, 8526, 585, 4897, 39, 12940, 273, 13666, 20, 2187, 296, 50, 2187, 2337, 20, 2187, 296, 60, 11, 20451, 3639, 509, 8526, 585, 18019, 264, 3062, 273, 288, 653, 1133, 18, 58, 47, 67, 51, 16, 21394, 23737, 18, 58, 47, 67, 50, 16, 21394, 374, 16, 21394, 23737, 18, 58, 47, 67, 53, 20451, 3639, 514, 8526, 2 ]
requestRegister(ECX, cnt);
L1AHelper.requestRegister(eContext, ECX, cnt);
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong(); final X86RegisterPool pool = eContext.getPool(); // Get cnt into ECX if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); requestRegister(ECX, cnt); cnt.loadTo(eContext, ECX); } // Load val val.load(eContext); final Register lsb = val.getLsbRegister(); final Register msb = val.getMsbRegister(); // Calculate os.writeAND(ECX, 63); os.writeCMP_Const(ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHRD_CL(lsb, msb); os.writeSHR_CL(msb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, lsb, msb); os.writeXOR(msb, msb); os.writeSHR_CL(lsb); os.setObjectRef(endLabel); // Push final LongItem result = LongItem.createReg(lsb, msb); pool.transferOwnerTo(lsb, result); pool.transferOwnerTo(msb, result); vstack.push(result); // Release cnt.release(eContext); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 80, 1218, 86, 1435, 288, 202, 202, 6385, 3094, 1180, 7599, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 6385, 3407, 1180, 1244, 273, 19510, 18, 5120, 3708, 5621, 202, 202, 6385, 1139, 5292, 3996, 2864, 2845, 273, 425, 1042, 18, 588, 2864, 5621, 202, 202, 759, 968, 7599, 1368, 7773, 60, 202, 202, 430, 16051, 13085, 18, 6117, 12, 7228, 60, 3719, 288, 1082, 202, 1125, 18, 1752, 737, 2047, 7736, 12, 73, 1042, 16, 7773, 60, 1769, 1082, 202, 2293, 3996, 12, 7228, 60, 16, 7599, 1769, 1082, 202, 13085, 18, 945, 774, 12, 73, 1042, 16, 7773, 60, 1769, 202, 202, 97, 202, 202, 759, 4444, 1244, 202, 202, 1125, 18, 945, 12, 73, 1042, 1769, 202, 202, 6385, 5433, 7180, 70, 273, 1244, 18, 588, 48, 18366, 3996, 5621, 202, 202, 6385, 5433, 4086, 70, 273, 1244, 18, 588, 6947, 70, 3996, 5621, 202, 202, 759, 9029, 202, 202, 538, 18, 2626, 4307, 12, 7228, 60, 16, 13746, 1769, 202, 202, 538, 18, 2626, 39, 4566, 67, 9661, 12, 7228, 60, 16, 3847, 1769, 202, 202, 6385, 5287, 9879, 1578, 2224, 273, 394, 5287, 12, 1397, 382, 701, 2224, 397, 315, 4521, 1578, 8863, 202, 202, 6385, 5287, 679, 2224, 273, 394, 5287, 12, 1397, 382, 701, 2224, 397, 315, 409, 8863, 202, 202, 538, 18, 2626, 46, 6743, 12, 4521, 1578, 2224, 16, 1139, 5292, 2918, 18, 46, 16985, 1769, 368, 804, 16985, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 80, 1218, 86, 1435, 288, 202, 202, 6385, 3094, 1180, 7599, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 6385, 3407, 1180, 1244, 273, 19510, 18, 5120, 3708, 5621, 202, 202, 6385, 1139, 5292, 3996, 2864, 2845, 273, 425, 1042, 18, 588, 2864, 5621, 202, 202, 759, 968, 7599, 1368, 7773, 60, 202, 202, 430, 16051, 13085, 18, 6117, 12, 7228, 60, 3719, 288, 1082, 202, 1125, 18, 1752, 737, 2047, 7736, 12, 73, 1042, 16, 7773, 60, 1769, 1082, 202, 2293, 3996, 12, 7228, 60, 16, 7599, 1769, 1082, 202, 13085, 18, 945, 774, 12, 73, 1042, 16, 7773, 60, 1769, 202, 202, 97, 202, 202, 759, 4444, 1244, 202, 202, 2 ]