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
Table table = ( (TableTag) getParent() ).getTable();
Table table = tableTag.getTable();
protected void processTag( XMLOutput output ) throws Exception { requireAttribute( "name" ); requireAttribute( "display" ); TableTag tableTag = (TableTag) requireInside( TableTag.class ); if ( tableTag.isTableNew() ) { Class columnType = TypeUtils.getType( getType() ); Table table = ( (TableTag) getParent() ).getTable(); column = new Column( getName(), columnType ); table.addColumn( column ); column.setDisplay( ColumnDisplay.valueOf( getDisplay() ) ); ColumnSort sort = ColumnSort.valueOf( getSort() ); column.setSort( sort ); if ( sort == ColumnSort.ASC || sort == ColumnSort.DESC ) { table.sortOn( getName() ); } column.setValue( getValue() ); } tableTag.addColumnTag( this ); }
50416 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50416/b54f163f0c2c8349b93c3b33d2841ef4ca982726/ColumnTag.java/buggy/trunk/waterview/src/main/java/com/cyclopsgroup/waterview/web/taglib/ColumnTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1207, 1805, 12, 3167, 1447, 876, 262, 3639, 1216, 1185, 565, 288, 3639, 2583, 1499, 12, 315, 529, 6, 11272, 3639, 2583, 1499, 12, 315, 5417, 6, 11272, 3639, 3555, 1805, 1014, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1805, 12, 3167, 1447, 876, 262, 3639, 1216, 1185, 565, 288, 3639, 2583, 1499, 12, 315, 529, 6, 11272, 3639, 2583, 1499, 12, 315, 5417, 6, 11272, 3639, 3555, 1805, 1014, ...
if (img != null) { g.drawImage(img, 0, 0, null); }
drawImage(g, d);
public void paint(Graphics g) { Dimension d = getSize(); if (img != null) { g.drawImage(img, 0, 0, null); } if (this.lastSize == null || this.lastSize.height != d.height) { this.charFont = new Font("Courier", Font.BOLD, d.height); this.lastSize = d; } g.setFont(this.charFont); FontMetrics fm = g.getFontMetrics(); // TODO draw in the inverse color? that might be to hard on the eyes. g.setColor(Color.WHITE); int y = fm.getAscent() - (int) (d.height / 4); int x = (int) (d.width / 2) - (int) (fm.charWidth('w') / 2); g.drawString(this.msg, x, y); }
651 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/651/7eb44f884ab68370da9ff0bcfbe2b2b784dd749c/Pound.java/clean/pound/src/java/org/osjava/pound/Pound.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 17558, 314, 13, 288, 3639, 13037, 302, 273, 9950, 5621, 3639, 309, 261, 6081, 480, 446, 13, 288, 5411, 314, 18, 9446, 2040, 12, 6081, 16, 374, 16, 374, 16, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 12, 17558, 314, 13, 288, 3639, 13037, 302, 273, 9950, 5621, 3639, 309, 261, 6081, 480, 446, 13, 288, 5411, 314, 18, 9446, 2040, 12, 6081, 16, 374, 16, 374, 16, 446, ...
} else { zoomModel.setZoomFactor(1.0d);
ImageFileEditorImpl(Project project, VirtualFile file) throws IOException { ImageEditorManager imageEditorManager = getImageEditorManager(); imageEditor = imageEditorManager.createImageEditor(project, file); BufferedImage image = imageEditor.getDocument().getValue(); // Append file listener VirtualFileManager.getInstance().addVirtualFileListener(imageEditor); // Set background and grid default options Options options = OptionsManager.getInstance().getOptions(); EditorOptions editorOptions = options.getEditorOptions(); ImageZoomModel zoomModel = imageEditor.getZoomModel(); GridOptions gridOptions = editorOptions.getGridOptions(); TransparencyChessboardOptions transparencyChessboardOptions = editorOptions.getTransparencyChessboardOptions(); imageEditor.setGridVisible(gridOptions.isShowDefault()); imageEditor.setTransparencyChessboardVisible(transparencyChessboardOptions.isShowDefault()); // Set smart zooming behaviour on open ZoomOptions zoomOptions = editorOptions.getZoomOptions(); if (zoomOptions.isSmartZooming()) { Dimension prefferedSize = zoomOptions.getPrefferedSize(); if (prefferedSize.width > image.getWidth() && prefferedSize.height > image.getHeight()) { // Resize to preffered size // Calculate zoom factor double factor = (prefferedSize.getWidth() / (double)image.getWidth() + prefferedSize.getHeight() / (double)image.getHeight()) / 2.0d; zoomModel.setZoomFactor(Math.ceil(factor)); } } else { // Open as actual size zoomModel.setZoomFactor(1.0d); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f1e0b4f3f3f9f3fc5649e8ddb4ab088e7628555d/ImageFileEditorImpl.java/clean/plugins/images/src/org/intellij/images/editor/impl/ImageFileEditorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3421, 812, 6946, 2828, 12, 4109, 1984, 16, 7269, 812, 585, 13, 1216, 1860, 288, 3639, 3421, 6946, 1318, 1316, 6946, 1318, 273, 10567, 6946, 1318, 5621, 3639, 1316, 6946, 273, 1316, 6946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3421, 812, 6946, 2828, 12, 4109, 1984, 16, 7269, 812, 585, 13, 1216, 1860, 288, 3639, 3421, 6946, 1318, 1316, 6946, 1318, 273, 10567, 6946, 1318, 5621, 3639, 1316, 6946, 273, 1316, 6946, ...
label_26:
label_29:
final public void atomtrailer() throws ParseException { atom(); label_26: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: case LBRACKET: case DOT: ; break; default: jj_la1[67] = jj_gen; break label_26; } if (jj_2_13(2)) { jj_consume_token(LPAREN); SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCALL_OP); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); jjtreeOpenNodeScope(jjtn001); try { jj_consume_token(RPAREN); } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, 1); jjtreeCloseNodeScope(jjtn001); } } } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: SimpleNode jjtn002 = (SimpleNode)SimpleNode.jjtCreate(this, JJTCALL_OP); boolean jjtc002 = true; jjtree.openNodeScope(jjtn002); jjtreeOpenNodeScope(jjtn002); try { jj_consume_token(LPAREN); arglist(); jj_consume_token(RPAREN); } catch (Throwable jjte002) { if (jjtc002) { jjtree.clearNodeScope(jjtn002); jjtc002 = false; } else { jjtree.popNode(); } if (jjte002 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte002;} } if (jjte002 instanceof ParseException) { {if (true) throw (ParseException)jjte002;} } {if (true) throw (Error)jjte002;} } finally { if (jjtc002) { jjtree.closeNodeScope(jjtn002, jjtree . nodeArity ( ) + 1); jjtreeCloseNodeScope(jjtn002); } } break; case LBRACKET: jj_consume_token(LBRACKET); subscriptlist(); SimpleNode jjtn003 = (SimpleNode)SimpleNode.jjtCreate(this, JJTINDEX_OP); boolean jjtc003 = true; jjtree.openNodeScope(jjtn003); jjtreeOpenNodeScope(jjtn003); try { jj_consume_token(RBRACKET); } finally { if (jjtc003) { jjtree.closeNodeScope(jjtn003, 2); jjtreeCloseNodeScope(jjtn003); } } break; case DOT: jj_consume_token(DOT); SimpleNode jjtn004 = (SimpleNode)SimpleNode.jjtCreate(this, JJTDOT_OP); boolean jjtc004 = true; jjtree.openNodeScope(jjtn004); jjtreeOpenNodeScope(jjtn004); try { AnyName(); } catch (Throwable jjte004) { if (jjtc004) { jjtree.clearNodeScope(jjtn004); jjtc004 = false; } else { jjtree.popNode(); } if (jjte004 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte004;} } if (jjte004 instanceof ParseException) { {if (true) throw (ParseException)jjte004;} } {if (true) throw (Error)jjte004;} } finally { if (jjtc004) { jjtree.closeNodeScope(jjtn004, 2); jjtreeCloseNodeScope(jjtn004); } } break; default: jj_la1[68] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 3179, 15565, 264, 1435, 1216, 10616, 288, 565, 3179, 5621, 565, 1433, 67, 5540, 30, 565, 1323, 261, 3767, 13, 288, 1377, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 3179, 15565, 264, 1435, 1216, 10616, 288, 565, 3179, 5621, 565, 1433, 67, 5540, 30, 565, 1323, 261, 3767, 13, 288, 1377, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, ...
if(null == first) { throw new NullPointerException(); } if(null == last) { throw new NullPointerException(); }
UserNameBuilder(final String first, final String middle, final String last) { super(); if(null == first) { throw new NullPointerException(); } if(null == last) { throw new NullPointerException(); } this.first = first; this.middle = middle; this.last = last; }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/5fa896c6c85a9fd8bc10026b1193a50ec37938cc/UserNameBuilder.java/clean/local/model/src/main/java/com/thinkparity/model/xmpp/user/UserNameBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 29313, 1263, 12, 6385, 514, 1122, 16, 727, 514, 7689, 16, 5411, 727, 514, 1142, 13, 288, 3639, 2240, 5621, 3639, 309, 12, 2011, 422, 1122, 13, 288, 604, 394, 10108, 5621, 289, 3639, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29313, 1263, 12, 6385, 514, 1122, 16, 727, 514, 7689, 16, 5411, 727, 514, 1142, 13, 288, 3639, 2240, 5621, 3639, 309, 12, 2011, 422, 1122, 13, 288, 604, 394, 10108, 5621, 289, 3639, 309...
out.write((short) 8000);
out.write((short) MS_LONGVAR_MAX);
static void writeParam(RequestStream out, CharsetInfo charsetInfo, byte[] collation, ParamInfo pi) throws IOException, SQLException { int len; String tmp; byte[] buf; boolean isTds8 = out.getTdsVersion() >= Driver.TDS80; if (isTds8) { if (pi.collation == null) { pi.collation = collation; } } if (pi.charsetInfo == null) { pi.charsetInfo = charsetInfo; } switch (pi.tdsType) { case XSYBVARCHAR: if (pi.value == null) { out.write((byte) pi.tdsType); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } out.write((short) 0xFFFF); } else { buf = pi.getBytes(pi.charsetInfo.getCharset()); if (buf.length > 8000) { out.write((byte) SYBTEXT); out.write((int) buf.length); if (isTds8) { putCollation(out, pi); } out.write((int) buf.length); out.write(buf); } else { out.write((byte) pi.tdsType); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } out.write((short) buf.length); out.write(buf); } } break; case SYBVARCHAR: if (pi.value == null) { out.write((byte) pi.tdsType); out.write((byte) 255); out.write((byte) 0); } else { buf = pi.getBytes(pi.charsetInfo.getCharset()); if (buf.length > 255) { if (buf.length < 8001 && out.getTdsVersion() >= Driver.TDS70) { out.write((byte) XSYBVARCHAR); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } out.write((short) buf.length); out.write(buf); } else { out.write((byte) SYBTEXT); out.write((int) buf.length); if (isTds8) { putCollation(out, pi); } out.write((int) buf.length); out.write(buf); } } else { if (buf.length == 0) { buf = new byte[1]; buf[0] = ' '; } out.write((byte) pi.tdsType); out.write((byte) 255); out.write((byte) buf.length); out.write(buf); } } break; case XSYBNVARCHAR: out.write((byte) pi.tdsType); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } if (pi.value == null) { out.write((short) 0xFFFF); } else { tmp = pi.getString(pi.charsetInfo.getCharset()); out.write((short) (tmp.length() * 2)); out.write(tmp); } break; case SYBTEXT: if (pi.value == null) { len = 0; } else { len = pi.length; if (len == 0 && out.getTdsVersion() < Driver.TDS70) { pi.value = " "; len = 1; } } out.write((byte) pi.tdsType); if (len > 0) { if (pi.value instanceof InputStream) { // Write output directly from stream out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len); out.writeStreamBytes((InputStream) pi.value, len); } else if (pi.value instanceof Reader && !pi.charsetInfo.isWideChars()) { // Write output directly from stream with character translation out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len); out.writeReaderBytes((Reader) pi.value, len); } else { buf = pi.getBytes(pi.charsetInfo.getCharset()); out.write((int) buf.length); if (isTds8) { putCollation(out, pi); } out.write((int) buf.length); out.write(buf); } } else { out.write((int) len); // Zero length if (isTds8) { putCollation(out, pi); } out.write((int)len); } break; case SYBNTEXT: if (pi.value == null) { len = 0; } else { len = pi.length; } out.write((byte)pi.tdsType); if (len > 0) { if (pi.value instanceof Reader) { out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len * 2); out.writeReaderChars((Reader) pi.value, len); } else if (pi.value instanceof InputStream && !pi.charsetInfo.isWideChars()) { out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len * 2); out.writeReaderChars(new InputStreamReader( (InputStream) pi.value, pi.charsetInfo.getCharset()), len); } else { tmp = pi.getString(pi.charsetInfo.getCharset()); len = tmp.length(); out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len * 2); out.write(tmp); } } else { out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len); } break; case XSYBVARBINARY: out.write((byte) pi.tdsType); out.write((short) 8000); if (pi.value == null) { out.write((short)0xFFFF); } else { buf = pi.getBytes(pi.charsetInfo.getCharset()); out.write((short) buf.length); out.write(buf); } break; case SYBVARBINARY: out.write((byte) pi.tdsType); out.write((byte) 255); if (pi.value == null) { out.write((byte) 0); } else { buf = pi.getBytes(pi.charsetInfo.getCharset()); if (out.getTdsVersion() < Driver.TDS70 && buf.length == 0) { // Sybase and SQL 6.5 do not allow zero length binary out.write((byte) 1); out.write((byte) 0); } else { out.write((byte) buf.length); out.write(buf); } } break; case SYBIMAGE: if (pi.value == null) { len = 0; } else { len = pi.length; } out.write((byte) pi.tdsType); if (len > 0) { if (pi.value instanceof InputStream) { out.write((int) len); out.write((int) len); out.writeStreamBytes((InputStream) pi.value, len); } else { buf = pi.getBytes(pi.charsetInfo.getCharset()); out.write((int) buf.length); out.write((int) buf.length); out.write(buf); } } else { if (out.getTdsVersion() < Driver.TDS70) { // Sybase and SQL 6.5 do not allow zero length binary out.write((int) 1); out.write((int) 1); out.write((byte) 0); } else { out.write((int) len); out.write((int) len); } } break; case SYBINTN: out.write((byte) pi.tdsType); if (pi.value == null) { out.write((pi.sqlType.equals("bigint"))? (byte)8: (byte)4); out.write((byte) 0); } else { if (pi.sqlType.equals("bigint")) { out.write((byte) 8); out.write((byte) 8); out.write((long) ((Number) pi.value).longValue()); } else { out.write((byte) 4); out.write((byte) 4); out.write((int) ((Number) pi.value).intValue()); } } break; case SYBFLTN: out.write((byte) pi.tdsType); out.write((byte) 8); if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) 8); out.write(((Number) pi.value).doubleValue()); } break; case SYBDATETIMN: out.write((byte) SYBDATETIMN); out.write((byte) 8); putDateTimeValue(out, pi.value); break; case SYBBIT: out.write((byte) pi.tdsType); if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) (((Boolean) pi.value).booleanValue() ? 1 : 0)); } break; case SYBBITN: out.write((byte) SYBBITN); out.write((byte) 1); if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) 1); out.write((byte) (((Boolean) pi.value).booleanValue() ? 1 : 0)); } break; case SYBNUMERIC: case SYBDECIMAL: out.write((byte) pi.tdsType); BigDecimal value = null; int prec = out.getMaxPrecision(); int scale; if (pi.jdbcType == java.sql.Types.BIGINT) { scale = 0; } else { if (pi.scale > DEFAULT_SCALE && pi.scale < prec) { scale = pi.scale; } else { scale = DEFAULT_SCALE; } } if (pi.value != null) { if (pi.value instanceof Long) { value = new BigDecimal(((Long) pi.value).toString()); scale = 0; } else { value = (BigDecimal) pi.value; scale = value.scale(); } } int maxLen = (prec <= 28) ? 13 : 17; out.write((byte) maxLen); out.write((byte) prec); out.write((byte) scale); out.write(value); break; default: throw new IllegalStateException("Unsupported output TDS type " + Integer.toHexString(pi.tdsType)); } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d29f53170275255c0b3e3d632238e839099b0d1e/TdsData.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 1045, 786, 12, 691, 1228, 596, 16, 21821, 12080, 966, 4856, 966, 16, 21821, 1160, 8526, 21277, 16, 21821, 3014, 966, 4790, 13, 565, 1216, 1860, 16, 6483, 288, 3639, 509, 562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 1045, 786, 12, 691, 1228, 596, 16, 21821, 12080, 966, 4856, 966, 16, 21821, 1160, 8526, 21277, 16, 21821, 3014, 966, 4790, 13, 565, 1216, 1860, 16, 6483, 288, 3639, 509, 562, ...
System.out.println("In SiteArea ");
public SiteArea (Element config) throws ConfigurationException { NodeList children = config.getChildNodes(); System.out.println("In SiteArea "); for(int i = 0; i < children.getLength() ; i++) { Node node = children.item(i); if(node instanceof Element) { System.out.println("Now it is time to get the Area"); area = (edu.iris.Fissures.Area)SodUtil.load((Element)node, "edu.sc.seis.sod"); break; } } }
45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/9d17312e4c406193aea3408c921ce9d7a4878f5e/SiteArea.java/buggy/src/edu/sc/seis/sod/subsetter/networkArm/SiteArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9063, 5484, 261, 1046, 642, 13, 1216, 22196, 288, 202, 19914, 2325, 273, 642, 18, 588, 22460, 5621, 202, 3163, 18, 659, 18, 8222, 2932, 382, 9063, 5484, 315, 1769, 202, 1884, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9063, 5484, 261, 1046, 642, 13, 1216, 22196, 288, 202, 19914, 2325, 273, 642, 18, 588, 22460, 5621, 202, 3163, 18, 659, 18, 8222, 2932, 382, 9063, 5484, 315, 1769, 202, 1884, 12, ...
assertTrue("Not instanceof Mac object", keyAgr instanceof Mac);
public void testGetInstance03() throws NoSuchAlgorithmException, IllegalArgumentException, InvalidKeyException, InvalidAlgorithmParameterException { try { Mac.getInstance(null, mProv); fail("NullPointerException or NoSuchAlgorithmException should be thrown when algorithm is null"); } catch (NullPointerException e) { } catch (NoSuchAlgorithmException e) { } for (int i = 0; i < invalidValues.length; i++) { try { Mac.getInstance(invalidValues[i], mProv); fail("NoSuchAlgorithmException must be thrown (algorithm: " .concat(invalidValues[i]).concat(")")); } catch (NoSuchAlgorithmException e) { } } Provider prov = null; for (int i = 0; i < validValues.length; i++) { try { Mac.getInstance(validValues[i], prov); fail("IllegalArgumentException must be thrown when provider is null (algorithm: " .concat(invalidValues[i]).concat(")")); } catch (IllegalArgumentException e) { } } Mac keyAgr; SecretKey sk; KeySpec keySpec; for (int i = 0; i < validValues.length; i++) { keyAgr = Mac.getInstance(validValues[i], mProv); assertTrue("Not instanceof Mac object", keyAgr instanceof Mac); assertEquals("Incorrect algorithm", keyAgr.getAlgorithm(), validValues[i]); assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); checkResult(keyAgr); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/e61b543907989e0e9ba31f5cd2a1341bcd44440c/MacTest2.java/clean/modules/crypto/src/test/java/javax/crypto/MacTest2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 1442, 4630, 1435, 1216, 17684, 16, 5411, 2754, 16, 5411, 28885, 16, 5411, 1962, 6801, 14819, 288, 3639, 775, 288, 5411, 13217, 18, 588, 1442, 12, 2011, 16, 312, 626,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 1442, 4630, 1435, 1216, 17684, 16, 5411, 2754, 16, 5411, 28885, 16, 5411, 1962, 6801, 14819, 288, 3639, 775, 288, 5411, 13217, 18, 588, 1442, 12, 2011, 16, 312, 626,...
public void doTag(final XMLOutput output) throws MissingAttributeException, JellyTagException { if ( var == null ) { throw new MissingAttributeException( "var" ); } if ( rootClass == null ) { throw new MissingAttributeException( "rootClass" ); } reader.setXMLIntrospector(getIntrospector()); Class theClass = null; try { theClass = getClassLoader().loadClass( rootClass ); } catch (Exception e) { throw new JellyTagException( "Could not load class called: " + rootClass, e ); } if ( theClass == null ) { throw new JellyTagException( "Could not load class called: " + rootClass ); } try { if ( path != null ) { reader.registerBeanClass( path, theClass ); } else { reader.registerBeanClass( theClass ); } } catch (IntrospectionException e) { throw new JellyTagException(e); } Object value = null; if ( uri != null ) { invokeBody(output); try { URL url = context.getResource( uri ); value = reader.parse( url.toString() ); } catch (IOException e) { throw new JellyTagException(e); } catch (SAXException e) { throw new JellyTagException(e); } } else { // invoke the body and pass that into the reader XMLOutput newOutput = new XMLOutput( reader ); invokeBody(newOutput); value = reader.getRoot(); } context.setVariable( var, value ); }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/ParseTag.java/buggy/jelly-tags/betwixt/src/java/org/apache/commons/jelly/tags/betwixt/ParseTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1805, 12, 6385, 3167, 1447, 876, 13, 1216, 10230, 1499, 503, 16, 804, 292, 715, 1805, 503, 288, 3639, 309, 261, 569, 422, 446, 262, 288, 5411, 604, 394, 10230, 1499, 503...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1805, 12, 6385, 3167, 1447, 876, 13, 1216, 10230, 1499, 503, 16, 804, 292, 715, 1805, 503, 288, 3639, 309, 261, 569, 422, 446, 262, 288, 5411, 604, 394, 10230, 1499, 503...
Type seqType = casted.type().baseType(defs.SEQ_CLASS).typeArgs()[0];
Type seqType = casted.type().baseType(defs.SEQ_CLASS).typeArgs()[0].dropVariance();
public PatternNode enter1(Tree pat, int index, PatternNode target, Symbol casted, CaseEnv env) { //System.out.println("enter(" + pat + ", " + index + ", " + target + ", " + casted + ")"); // get pattern arguments Tree[] patArgs = patternArgs(pat); // get case fields //assert patArgs.length == nCaseComponents(pat); // advance one step in pattern Header curHeader = (Header)target.and; // check if we have to add a new header if (curHeader == null) { assert index >= 0 : casted; if (casted.pos == Position.NOPOS) { Symbol atSym = casted.type().lookup(AT_N); //System.out.println("casted type = " + typeOf(casted)); Type seqType = casted.type().baseType(defs.SEQ_CLASS).typeArgs()[0]; Tree t = make.Select( pat.pos, make.Ident(pat.pos, casted.name) .setType(typeOf(casted)) .setSymbol(casted), AT_N); switch (typeOf(atSym)) { case OverloadedType(Symbol[] alts, Type[] alttypes): infer.methodAlternative(t, alts, alttypes, new Type[]{defs.INT_TYPE}, seqType); t = make.Apply(pat.pos, t, new Tree[]{ make.Literal(pat.pos, new Integer(index)) .setType(defs.INT_TYPE) }).setType(seqType); break; default: t.setSymbol(atSym); t.setType(typeOf(atSym)); t = make.Apply(pat.pos, t, new Tree[]{ make.Literal(pat.pos, new Integer(index)) .setType(defs.INT_TYPE) }).setType(seqType); } target.and = curHeader = makeHeader(pat.pos, seqType, t); } else { Symbol ts = ((ClassSymbol) casted.type().symbol()) .caseFieldAccessor(index); target.and = curHeader = makeHeader( pat.pos, getHeaderType(typeOf0(ts)), make.Select( pat.pos, make.Ident(pat.pos, casted.name) .setType(typeOf(casted)) .setSymbol(casted), ts.name) .setType(getHeaderType(typeOf0(ts))) .setSymbol(ts)); /* target.and = curHeader = makeHeader( pat.pos, getHeaderType(typeOf0(ts)), make.Apply( pat.pos, make.Select( pat.pos, make.Ident(pat.pos, casted.name) .setType(typeOf(casted)) .setSymbol(casted), ts.name) .setType(Type.MethodType( Symbol.EMPTY_ARRAY, getHeaderType(typeOf0(ts)))) .setSymbol(ts), Tree.EMPTY_ARRAY).setType(getHeaderType(typeOf0(ts)))); */ } curHeader.or = patternNode(pat, curHeader, env); return enter(patArgs, curHeader.or, casted, env); } // find most recent header while (curHeader.next != null) curHeader = curHeader.next; // create node PatternNode patNode = patternNode(pat, curHeader, env); PatternNode next = curHeader; // enter node while (true) if (superPat(next, patNode)) return enter(patArgs, next, casted, env); else if (isDefaultPat(next) || ((next.or == null) && isDefaultPat(patNode))) return enter( patArgs, (curHeader = (curHeader.next = makeHeader(patNode.pos, curHeader.type, curHeader.selector))).or = patNode, casted, env); else if (next.or == null) return enter(patArgs, next.or = patNode, casted, env); else next = next.or; }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/a0a2c4a6571350ce1400725e68b40ab5ae03c985/PatternMatcher.java/buggy/sources/scalac/transformer/matching/PatternMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 907, 6103, 21, 12, 2471, 9670, 16, 11794, 509, 770, 16, 11794, 6830, 907, 1018, 16, 11794, 8565, 28192, 16, 11794, 12605, 3491, 1550, 13, 288, 3639, 368, 3163, 18, 659, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 907, 6103, 21, 12, 2471, 9670, 16, 11794, 509, 770, 16, 11794, 6830, 907, 1018, 16, 11794, 8565, 28192, 16, 11794, 12605, 3491, 1550, 13, 288, 3639, 368, 3163, 18, 659, 18, ...
public void testPopulate2() throws Exception{ populateAndAssert(xmlString2,0);
public void testPopulate2() throws Exception { populateAndAssert(xmlString2, 0, "b"); populateAndAssert(xmlString2, 2, "c");
public void testPopulate2() throws Exception{ populateAndAssert(xmlString2,0); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/765d47b370dd199034d591c39f10c91ebe327f1b/PopulateMinOccurs0Test.java/clean/modules/codegen/test/org/apache/axis2/schema/populate/other/PopulateMinOccurs0Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 918, 1842, 19097, 22, 1435, 1216, 1185, 95, 540, 6490, 1876, 8213, 12, 2902, 780, 22, 16, 20, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 918, 1842, 19097, 22, 1435, 1216, 1185, 95, 540, 6490, 1876, 8213, 12, 2902, 780, 22, 16, 20, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public String enum_constraint() throws RecognitionException { String text = null; Token cls=null; Token en=null; text = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1049:4: ( (cls= ID '.' en= ID ) ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1049:4: (cls= ID '.' en= ID ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1049:4: (cls= ID '.' en= ID ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1049:5: cls= ID '.' en= ID { cls=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_enum_constraint2362); if (failed) return text; match(input,33,FOLLOW_33_in_enum_constraint2364); if (failed) return text; en=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_enum_constraint2368); if (failed) return text; } if ( backtracking==0 ) { text = cls.getText() + "." + en.getText(); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2792, 67, 13364, 1435, 1216, 9539, 288, 6647, 514, 977, 273, 446, 31, 3639, 3155, 2028, 33, 2011, 31, 3639, 3155, 570, 33, 2011, 31, 1171, 202, 202, 955, 273, 446, 31, 540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2792, 67, 13364, 1435, 1216, 9539, 288, 6647, 514, 977, 273, 446, 31, 3639, 3155, 2028, 33, 2011, 31, 3639, 3155, 570, 33, 2011, 31, 1171, 202, 202, 955, 273, 446, 31, 540, ...
public CDKPluginManager(String pluginConfigDirName, CDKEditBus editBus) { this.logger = new LoggingTool(this); this.editBus = editBus; this.pluginConfigDirName = pluginConfigDirName; this.cdkPlugins = new Hashtable();
public CDKPluginManager(String pluginDirName, String pluginConfigDirName, CDKEditBus editBus) { this(pluginConfigDirName, editBus); loadPlugins(pluginDirName);
public CDKPluginManager(String pluginConfigDirName, CDKEditBus editBus) { this.logger = new LoggingTool(this); this.editBus = editBus; this.pluginConfigDirName = pluginConfigDirName; this.cdkPlugins = new Hashtable(); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/528236b87a9252791e1e5bcfb7e5783700fa0edf/CDKPluginManager.java/buggy/src/org/openscience/cdk/applications/plugin/CDKPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15257, 3773, 1318, 12, 780, 1909, 809, 28780, 16, 15257, 4666, 7086, 3874, 7086, 13, 288, 3639, 333, 18, 4901, 273, 394, 10253, 6364, 12, 2211, 1769, 3639, 333, 18, 4619, 7086, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15257, 3773, 1318, 12, 780, 1909, 809, 28780, 16, 15257, 4666, 7086, 3874, 7086, 13, 288, 3639, 333, 18, 4901, 273, 394, 10253, 6364, 12, 2211, 1769, 3639, 333, 18, 4619, 7086, 273,...
if(channelAttributeNames.indexOf(attributeName)!=-1) {
if(channelAttributeNumbers.get(attributeName)!=null) {
public void addChannelAttribute(String attributeName, String defaultValue) { if(channelAttributeNames.indexOf(attributeName)!=-1) { Logger.log(Logger.ERROR,"ThemeStylesheetUserPreferences::addChannelAttribute() : Attempting to re-add an existing channel attribute \""+attributeName+"\"."); } else { channelAttributeNames.add(attributeName); for (Enumeration e = channelAttributeValues.elements() ; e.hasMoreElements() ;) ((List) e.nextElement()).add(defaultValue); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/ee11074248b7a4f5c3a124079f9b7a559cd80a87/ThemeStylesheetUserPreferences.java/clean/source/org/jasig/portal/ThemeStylesheetUserPreferences.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2909, 1499, 12, 780, 9734, 16, 514, 4593, 13, 288, 202, 430, 12, 4327, 26080, 18, 31806, 12, 4589, 461, 13, 5, 29711, 21, 13, 288, 202, 565, 4242, 18, 1330, 12, 3328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2909, 1499, 12, 780, 9734, 16, 514, 4593, 13, 288, 202, 430, 12, 4327, 26080, 18, 31806, 12, 4589, 461, 13, 5, 29711, 21, 13, 288, 202, 565, 4242, 18, 1330, 12, 3328, ...
static void incrementNumBase() { numBase++; }
public static void incrementNumBase() { numBase++; }
static void incrementNumBase() { numBase++; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/bc7b2199e5b944257223b989beb43da8a2766a2a/VM_ControllerMemory.java/clean/rvm/src/vm/adaptive/controller/VM_ControllerMemory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 5504, 2578, 2171, 1435, 7734, 288, 818, 2171, 9904, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 5504, 2578, 2171, 1435, 7734, 288, 818, 2171, 9904, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
} else if (myChild2.getElementType() == ElementType.SEMICOLON) {
} else if (myChild2.getElementType() == ElementType.SEMICOLON) {
public void visitLocalVariable(PsiLocalVariable variable) { if (myRole1 == ChildRole.INITIALIZER_EQ || myRole2 == ChildRole.INITIALIZER_EQ) { createSpaceInCode(mySettings.SPACE_AROUND_ASSIGNMENT_OPERATORS); } else if (myRole1 == ChildRole.MODIFIER_LIST) { createSpaceInCode(true); } else if (myRole2 == ChildRole.TYPE_REFERENCE) { createSpaceInCode(true); } else if (myChild2.getElementType() == ElementType.SEMICOLON) { createSpaceProperty(false, false, 0); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1533398430214d8ae562ff3d8dcc5898351f8c45/JavaSpacePropertyProcessor.java/buggy/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 2042, 3092, 12, 52, 7722, 2042, 3092, 2190, 13, 288, 565, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 12919, 15154, 654, 67, 27247, 747, 3399, 2996, 22, 422, 7451, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 2042, 3092, 12, 52, 7722, 2042, 3092, 2190, 13, 288, 565, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 12919, 15154, 654, 67, 27247, 747, 3399, 2996, 22, 422, 7451, 2...
ZYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy)
ZYPlane(PlaneDef pDef, Pixels pixels, MappedByteBuffer data)
ZYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/b2d1563defffc9fa654271400d754843f42e2810/ZYPlane.java/buggy/components/rendering/src/omeis/providers/re/data/ZYPlane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2285, 61, 19505, 12, 7229, 8526, 501, 16, 3008, 8806, 3262, 293, 3262, 16, 509, 963, 60, 16, 509, 963, 61, 16, 2398, 509, 31148, 9037, 16, 5985, 5072, 6252, 13, 565, 288, 3639, 2240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2285, 61, 19505, 12, 7229, 8526, 501, 16, 3008, 8806, 3262, 293, 3262, 16, 509, 963, 60, 16, 509, 963, 61, 16, 2398, 509, 31148, 9037, 16, 5985, 5072, 6252, 13, 565, 288, 3639, 2240, ...
case 606: {
case 607: {
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName DOT identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type LBRACKET RBRACKET // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= AND InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= QUESTION WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName DOT identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName DOT identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName DOT identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName DOT identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName SEMICOLON // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= SEMICOLON // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= LESS TypeParameterList GREATER // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= SEMICOLON // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators SEMICOLON // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.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(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier LBRACKET IdentifierList RBRACKET // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= LBRACKET IdentifierList RBRACKET // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters COMMA FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: ExceptionType ::= TypeVariable // case 140: break; // // Rule 141: MethodBody ::= Block // case 141: break; // // Rule 142: MethodBody ::= SEMICOLON // case 142: btParser.setSym1(null); break; // // Rule 143: InstanceInitializer ::= Block // case 143: break; // // Rule 144: StaticInitializer ::= static Block // case 144: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 145: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 145: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 146: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 146: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 147: SimpleTypeName ::= identifier // case 147: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 148: ConstructorModifiers ::= ConstructorModifier // case 148: break; // // Rule 149: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 149: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 150: ConstructorModifier ::= public // case 150: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 151: ConstructorModifier ::= protected // case 151: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 152: ConstructorModifier ::= private // case 152: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 153: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 153: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 154: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 158: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 158: bad_rule = 158; break; // // Rule 159: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstants COMMA EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 162: bad_rule = 162; break; // // Rule 163: Arguments ::= LPAREN ArgumentListopt RPAREN // case 163: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 164: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 164: bad_rule = 164; break; // // Rule 165: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 165: break; // // Rule 166: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 166: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 167: InterfaceModifiers ::= InterfaceModifier // case 167: break; // // Rule 168: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 168: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 169: InterfaceModifier ::= public // case 169: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 170: InterfaceModifier ::= protected // case 170: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 171: InterfaceModifier ::= private // case 171: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 172: InterfaceModifier ::= abstract // case 172: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 173: InterfaceModifier ::= static // case 173: { btParser.setSym1(Flags.STATIC); break; } // // Rule 174: InterfaceModifier ::= strictfp // case 174: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 175: ExtendsInterfaces ::= extends InterfaceType // case 175: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 176: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 176: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 177: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 177: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 178: break; // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 179: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 180: InterfaceMemberDeclaration ::= ConstantDeclaration // case 180: break; // // Rule 181: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= ClassDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= SEMICOLON // case 184: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 185: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 185: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.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(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 186: ConstantModifiers ::= ConstantModifier // case 186: break; // // Rule 187: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 187: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 188: ConstantModifier ::= public // case 188: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 189: ConstantModifier ::= static // case 189: { btParser.setSym1(Flags.STATIC); break; } // // Rule 190: ConstantModifier ::= final // case 190: { btParser.setSym1(Flags.FINAL); break; } // // Rule 191: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 191: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifier // case 192: break; // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 193: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 194: AbstractMethodModifier ::= public // case 194: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 195: AbstractMethodModifier ::= abstract // case 195: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 196: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= SEMICOLON // case 206: bad_rule = 206; break; // // Rule 207: DefaultValue ::= default ElementValue // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotations Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= NormalAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= MarkerAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= SingleElementAnnotation // case 212: bad_rule = 212; break; // // Rule 213: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePair ::= SimpleName EQUAL ElementValue // case 216: bad_rule = 216; break; // // Rule 217: SimpleName ::= identifier // case 217: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 218: ElementValue ::= ConditionalExpression // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= Annotation // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= ElementValueArrayInitializer // case 220: bad_rule = 220; break; // // Rule 221: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValue // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValues COMMA ElementValue // case 223: bad_rule = 223; break; // // Rule 224: MarkerAnnotation ::= AT TypeName // case 224: bad_rule = 224; break; // // Rule 225: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 225: bad_rule = 225; break; // // Rule 226: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 226: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 227: VariableInitializers ::= VariableInitializer // case 227: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 228: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 228: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 229: Block ::= LBRACE BlockStatementsopt RBRACE // case 229: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 230: BlockStatements ::= BlockStatement // case 230: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 231: BlockStatements ::= BlockStatements BlockStatement // case 231: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 232: BlockStatement ::= LocalVariableDeclarationStatement // case 232: break; // // Rule 233: BlockStatement ::= ClassDeclaration // case 233: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 234: BlockStatement ::= Statement // case 234: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 235: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 235: break; // // Rule 236: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 236: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 237: Statement ::= StatementWithoutTrailingSubstatement // case 237: break; // // Rule 238: Statement ::= LabeledStatement // case 238: break; // // Rule 239: Statement ::= IfThenStatement // case 239: break; // // Rule 240: Statement ::= IfThenElseStatement // case 240: break; // // Rule 241: Statement ::= WhileStatement // case 241: break; // // Rule 242: Statement ::= ForStatement // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= Block // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= AssertStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= DoStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= BreakStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= TryStatement // case 254: break; // // Rule 255: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 255: break; // // Rule 256: StatementNoShortIf ::= LabeledStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= WhileStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= ForStatementNoShortIf // case 259: break; // // Rule 260: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 261: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: EmptyStatement ::= SEMICOLON // case 263: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 264: LabeledStatement ::= identifier COLON Statement // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: ExpressionStatement ::= StatementExpression SEMICOLON // case 266: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 267: StatementExpression ::= Assignment // case 267: break; // // Rule 268: StatementExpression ::= PreIncrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PreDecrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostIncrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostDecrementExpression // case 271: break; // // Rule 272: StatementExpression ::= MethodInvocation // case 272: break; // // Rule 273: StatementExpression ::= ClassInstanceCreationExpression // case 273: break; // // Rule 274: AssertStatement ::= assert Expression SEMICOLON // case 274: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 275: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 276: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 276: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 277: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 277: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 278: break; // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 279: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 280: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 280: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabel // case 281: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabels SwitchLabel // case 282: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 283: SwitchLabel ::= case ConstantExpression COLON // case 283: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 284: SwitchLabel ::= case EnumConstant COLON // case 284: bad_rule = 284; break; // // Rule 285: SwitchLabel ::= default COLON // case 285: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 286: EnumConstant ::= identifier // case 286: bad_rule = 286; break; // // Rule 287: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 289: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 290: ForStatement ::= BasicForStatement // case 290: break; // // Rule 291: ForStatement ::= EnhancedForStatement // case 291: break; // // Rule 292: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForInit ::= StatementExpressionList // case 294: break; // // Rule 295: ForInit ::= LocalVariableDeclaration // case 295: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 296: ForUpdate ::= StatementExpressionList // case 296: break; // // Rule 297: StatementExpressionList ::= StatementExpression // case 297: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 298: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 298: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 299: BreakStatement ::= break identifieropt SEMICOLON // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 300: ContinueStatement ::= continue identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 301: ReturnStatement ::= return Expressionopt SEMICOLON // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 302: ThrowStatement ::= throw Expression SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 303: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 303: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catches // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catchesopt Finally // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 306: Catches ::= CatchClause // case 306: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 307: Catches ::= Catches CatchClause // case 307: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 308: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 308: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 309: Finally ::= finally Block // case 309: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 310: Primary ::= PrimaryNoNewArray // case 310: break; // // Rule 311: Primary ::= ArrayCreationExpression // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Literal // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Type DOT class // case 313: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 314: PrimaryNoNewArray ::= void DOT class // case 314: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 315: PrimaryNoNewArray ::= this // case 315: { btParser.setSym1(nf.This(pos())); break; } // // Rule 316: PrimaryNoNewArray ::= ClassName DOT this // case 316: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 317: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 317: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 318: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 318: break; // // Rule 319: PrimaryNoNewArray ::= FieldAccess // case 319: break; // // Rule 320: PrimaryNoNewArray ::= MethodInvocation // case 320: break; // // Rule 321: PrimaryNoNewArray ::= ArrayAccess // case 321: break; // // Rule 322: Literal ::= IntegerLiteral // case 322: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 323: Literal ::= LongLiteral // case 323: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 324: Literal ::= FloatingPointLiteral // case 324: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 325: Literal ::= DoubleLiteral // case 325: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 326: Literal ::= BooleanLiteral // case 326: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 327: Literal ::= CharacterLiteral // case 327: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 328: Literal ::= StringLiteral // case 328: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 1))); break; } // // Rule 329: Literal ::= null // case 329: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 330: BooleanLiteral ::= true // case 330: break; // // Rule 331: BooleanLiteral ::= false // case 331: break; // // Rule 332: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 332: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 333: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 334: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 335: ArgumentList ::= Expression // case 335: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 336: ArgumentList ::= ArgumentList COMMA Expression // case 336: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExpr // case 337: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExprs DimExpr // case 338: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 339: DimExpr ::= LBRACKET Expression RBRACKET // case 339: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 340: Dims ::= LBRACKET RBRACKET // case 340: { btParser.setSym1(new Integer(1)); break; } // // Rule 341: Dims ::= Dims LBRACKET RBRACKET // case 341: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 342: FieldAccess ::= Primary DOT identifier // case 342: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 343: FieldAccess ::= super DOT identifier // case 343: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 344: FieldAccess ::= ClassName DOT super DOT identifier // case 344: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 345: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 345: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 346: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 346: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 347: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 349: PostfixExpression ::= Primary // case 349: break; // // Rule 350: PostfixExpression ::= ExpressionName // case 350: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 351: PostfixExpression ::= PostIncrementExpression // case 351: break; // // Rule 352: PostfixExpression ::= PostDecrementExpression // case 352: break; // // Rule 353: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 354: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 355: UnaryExpression ::= PreIncrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= PreDecrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PLUS UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 358: UnaryExpression ::= MINUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 360: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 361: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 362: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 362: break; // // Rule 363: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 364: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 366: MultiplicativeExpression ::= UnaryExpression // case 366: break; // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 370: AdditiveExpression ::= MultiplicativeExpression // case 370: break; // // Rule 371: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 372: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 373: ShiftExpression ::= AdditiveExpression // case 373: break; // // Rule 374: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 374: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 377: RelationalExpression ::= ShiftExpression // case 377: break; // // Rule 378: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 382: EqualityExpression ::= RelationalExpression // case 382: break; // // Rule 383: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 384: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 385: AndExpression ::= EqualityExpression // case 385: break; // // Rule 386: AndExpression ::= AndExpression AND EqualityExpression // case 386: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 387: ExclusiveOrExpression ::= AndExpression // case 387: break; // // Rule 388: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 388: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 389: InclusiveOrExpression ::= ExclusiveOrExpression // case 389: break; // // Rule 390: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 390: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 391: ConditionalAndExpression ::= InclusiveOrExpression // case 391: break; // // Rule 392: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 392: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 393: ConditionalOrExpression ::= ConditionalAndExpression // case 393: break; // // Rule 394: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 394: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 395: ConditionalExpression ::= ConditionalOrExpression // case 395: break; // // Rule 396: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 396: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 397: AssignmentExpression ::= ConditionalExpression // case 397: break; // // Rule 398: AssignmentExpression ::= Assignment // case 398: break; // // Rule 399: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 399: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 400: LeftHandSide ::= ExpressionName // case 400: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 401: LeftHandSide ::= FieldAccess // case 401: break; // // Rule 402: LeftHandSide ::= ArrayAccess // case 402: break; // // Rule 403: AssignmentOperator ::= EQUAL // case 403: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 404: AssignmentOperator ::= MULTIPLY_EQUAL // case 404: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= DIVIDE_EQUAL // case 405: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= REMAINDER_EQUAL // case 406: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= PLUS_EQUAL // case 407: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= MINUS_EQUAL // case 408: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 409: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= GREATER GREATER EQUAL // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= AND_EQUAL // case 412: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= XOR_EQUAL // case 413: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= OR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 415: Expression ::= AssignmentExpression // case 415: break; // // Rule 416: ConstantExpression ::= Expression // case 416: break; // // Rule 417: Dimsopt ::= // case 417: { btParser.setSym1(new Integer(0)); break; } // // Rule 418: Dimsopt ::= Dims // case 418: break; // // Rule 419: Catchesopt ::= // case 419: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 420: Catchesopt ::= Catches // case 420: break; // // Rule 421: identifieropt ::= // case 421: btParser.setSym1(null); break; // // Rule 422: identifieropt ::= identifier // case 422: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 423: ForUpdateopt ::= // case 423: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 424: ForUpdateopt ::= ForUpdate // case 424: break; // // Rule 425: Expressionopt ::= // case 425: btParser.setSym1(null); break; // // Rule 426: Expressionopt ::= Expression // case 426: break; // // Rule 427: ForInitopt ::= // case 427: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 428: ForInitopt ::= ForInit // case 428: break; // // Rule 429: SwitchLabelsopt ::= // case 429: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 430: SwitchLabelsopt ::= SwitchLabels // case 430: break; // // Rule 431: SwitchBlockStatementGroupsopt ::= // case 431: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 432: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 432: break; // // Rule 433: VariableModifiersopt ::= // case 433: { btParser.setSym1(Flags.NONE); break; } // // Rule 434: VariableModifiersopt ::= VariableModifiers // case 434: break; // // Rule 435: VariableInitializersopt ::= // case 435: btParser.setSym1(null); break; // // Rule 436: VariableInitializersopt ::= VariableInitializers // case 436: break; // // Rule 437: ElementValuesopt ::= // case 437: btParser.setSym1(null); break; // // Rule 438: ElementValuesopt ::= ElementValues // case 438: bad_rule = 438; break; // // Rule 439: ElementValuePairsopt ::= // case 439: btParser.setSym1(null); break; // // Rule 440: ElementValuePairsopt ::= ElementValuePairs // case 440: bad_rule = 440; break; // // Rule 441: DefaultValueopt ::= // case 441: btParser.setSym1(null); break; // // Rule 442: DefaultValueopt ::= DefaultValue // case 442: break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= // case 443: btParser.setSym1(null); break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 444: bad_rule = 444; break; // // Rule 445: AbstractMethodModifiersopt ::= // case 445: { btParser.setSym1(Flags.NONE); break; } // // Rule 446: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 446: break; // // Rule 447: ConstantModifiersopt ::= // case 447: { btParser.setSym1(Flags.NONE); break; } // // Rule 448: ConstantModifiersopt ::= ConstantModifiers // case 448: break; // // Rule 449: InterfaceMemberDeclarationsopt ::= // case 449: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 450: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 450: break; // // Rule 451: ExtendsInterfacesopt ::= // case 451: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 452: ExtendsInterfacesopt ::= ExtendsInterfaces // case 452: break; // // Rule 453: InterfaceModifiersopt ::= // case 453: { btParser.setSym1(Flags.NONE); break; } // // Rule 454: InterfaceModifiersopt ::= InterfaceModifiers // case 454: break; // // Rule 455: ClassBodyopt ::= // case 455: btParser.setSym1(null); break; // // Rule 456: ClassBodyopt ::= ClassBody // case 456: break; // // Rule 457: Argumentsopt ::= // case 457: btParser.setSym1(null); break; // // Rule 458: Argumentsopt ::= Arguments // case 458: bad_rule = 458; break; // // Rule 459: EnumBodyDeclarationsopt ::= // case 459: btParser.setSym1(null); break; // // Rule 460: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 460: bad_rule = 460; break; // // Rule 461: ,opt ::= // case 461: btParser.setSym1(null); break; // // Rule 462: ,opt ::= COMMA // case 462: break; // // Rule 463: EnumConstantsopt ::= // case 463: btParser.setSym1(null); break; // // Rule 464: EnumConstantsopt ::= EnumConstants // case 464: bad_rule = 464; break; // // Rule 465: ArgumentListopt ::= // case 465: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 466: ArgumentListopt ::= ArgumentList // case 466: break; // // Rule 467: BlockStatementsopt ::= // case 467: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 468: BlockStatementsopt ::= BlockStatements // case 468: break; // // Rule 469: ExplicitConstructorInvocationopt ::= // case 469: btParser.setSym1(null); break; // // Rule 470: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 470: break; // // Rule 471: ConstructorModifiersopt ::= // case 471: { btParser.setSym1(Flags.NONE); break; } // // Rule 472: ConstructorModifiersopt ::= ConstructorModifiers // case 472: break; // // Rule 473: ...opt ::= // case 473: btParser.setSym1(null); break; // // Rule 474: ...opt ::= ELLIPSIS // case 474: break; // // Rule 475: FormalParameterListopt ::= // case 475: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 476: FormalParameterListopt ::= FormalParameterList // case 476: break; // // Rule 477: Throwsopt ::= // case 477: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 478: Throwsopt ::= Throws // case 478: break; // // Rule 479: MethodModifiersopt ::= // case 479: { btParser.setSym1(Flags.NONE); break; } // // Rule 480: MethodModifiersopt ::= MethodModifiers // case 480: break; // // Rule 481: FieldModifiersopt ::= // case 481: { btParser.setSym1(Flags.NONE); break; } // // Rule 482: FieldModifiersopt ::= FieldModifiers // case 482: break; // // Rule 483: ClassBodyDeclarationsopt ::= // case 483: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 484: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 484: break; // // Rule 485: Interfacesopt ::= // case 485: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 486: Interfacesopt ::= Interfaces // case 486: break; // // Rule 487: Superopt ::= // case 487: btParser.setSym1(null); break; // // Rule 488: Superopt ::= Super // case 488: break; // // Rule 489: TypeParametersopt ::= // case 489: btParser.setSym1(null); break; // // Rule 490: TypeParametersopt ::= TypeParameters // case 490: break; // // Rule 491: ClassModifiersopt ::= // case 491: { btParser.setSym1(Flags.NONE); break; } // // Rule 492: ClassModifiersopt ::= ClassModifiers // case 492: break; // // Rule 493: Annotationsopt ::= // case 493: btParser.setSym1(null); break; // // Rule 494: Annotationsopt ::= Annotations // case 494: bad_rule = 494; break; // // Rule 495: TypeDeclarationsopt ::= // case 495: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 496: TypeDeclarationsopt ::= TypeDeclarations // case 496: break; // // Rule 497: ImportDeclarationsopt ::= // case 497: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 498: ImportDeclarationsopt ::= ImportDeclarations // case 498: break; // // Rule 499: PackageDeclarationopt ::= // case 499: btParser.setSym1(null); break; // // Rule 500: PackageDeclarationopt ::= PackageDeclaration // case 500: break; // // Rule 501: WildcardBoundsOpt ::= // case 501: btParser.setSym1(null); break; // // Rule 502: WildcardBoundsOpt ::= WildcardBounds // case 502: bad_rule = 502; break; // // Rule 503: AdditionalBoundListopt ::= // case 503: btParser.setSym1(null); break; // // Rule 504: AdditionalBoundListopt ::= AdditionalBoundList // case 504: bad_rule = 504; break; // // Rule 505: TypeBoundopt ::= // case 505: btParser.setSym1(null); break; // // Rule 506: TypeBoundopt ::= TypeBound // case 506: bad_rule = 506; break; // // Rule 507: TypeArgumentsopt ::= // case 507: btParser.setSym1(null); break; // // Rule 508: TypeArgumentsopt ::= TypeArguments // case 508: bad_rule = 508; break; // // Rule 509: Type ::= DataType PlaceTypeSpecifieropt // case 509: { // Just parse the placetype and drop it for now. break; } // // Rule 510: Type ::= nullable LESS Type GREATER // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 511: Type ::= future LESS Type GREATER // case 511: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 512: DataType ::= PrimitiveType // case 512: break; // // Rule 513: DataType ::= ClassOrInterfaceType // case 513: break; // // Rule 514: DataType ::= ArrayType // case 514: break; // // Rule 515: PlaceTypeSpecifier ::= AT PlaceType // case 515: break; // // Rule 516: PlaceType ::= place // case 516: break; // // Rule 517: PlaceType ::= activity // case 517: break; // // Rule 518: PlaceType ::= method // case 518: break; // // Rule 519: PlaceType ::= current // case 519: break; // // Rule 520: PlaceType ::= PlaceExpression // case 520: break; // // Rule 521: ClassOrInterfaceType ::= TypeName DepParametersopt // case 521: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 522: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 522: break; // // Rule 523: DepParameterExpr ::= ArgumentList WhereClauseopt // case 523: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 524: DepParameterExpr ::= WhereClause // case 524: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 525: WhereClause ::= COLON Expression // case 525: break; // // Rule 527: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 528: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 529: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 530: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 532: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 533: ObjectKind ::= value // case 533: bad_rule = 533; break; // // Rule 534: ObjectKind ::= reference // case 534: bad_rule = 534; break; // // Rule 535: MethodModifier ::= atomic // case 535: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 536: MethodModifier ::= extern // case 536: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 537: ClassDeclaration ::= ValueClassDeclaration // case 537: break; // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 539: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET X10ArrayInitializer // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= LPAREN FormalParameter RPAREN MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now LPAREN Clock RPAREN Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AsyncStatement ::= async LPAREN here RPAREN Statement // case 572: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 573: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 573: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 574: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 574: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 575: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 575: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 576: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 576: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 577: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 578: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 579: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 579: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 580: FinishStatement ::= finish Statement // case 580: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 581: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 581: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 582: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 582: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 583: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 584: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 584: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 585: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 585: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 586: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 586: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 587: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 587: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 588: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 588: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 589: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 589: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 590: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 590: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 591: EnhancedForStatementNoShortIf ::= for LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 591: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 592: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 592: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 593: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 593: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 594: PlaceExpression ::= here // case 594: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 595: PlaceExpression ::= this // case 595: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 596: PlaceExpression ::= Expression // case 596: break; // // Rule 597: PlaceExpression ::= ArrayAccess // case 597: bad_rule = 597; break; // // Rule 598: NextStatement ::= next SEMICOLON // case 598: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 599: AwaitStatement ::= await Expression SEMICOLON // case 599: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 600: ClockList ::= Clock // case 600: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 601: ClockList ::= ClockList COMMA Clock // case 601: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 602: Clock ::= identifier // case 602: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 603: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 603: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 604: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 604: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 605: RelationalExpression ::= RelationalExpression instanceof Type // case 605: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 606: ExpressionName ::= here // case 606: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 607: IdentifierList ::= IdentifierList COMMA identifier // case 607: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 608: IdentifierList ::= identifier // case 608: { List l = new LinkedList(); polyglot.lex.Identifier a = id(btParser.getToken(1)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: Primary ::= LBRACKET ArgumentList RBRACKET // case 610: { List a = (List) btParser.getSym(2); 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, a); btParser.setSym1(tuple); break; } // // Rule 611: AssignmentExpression ::= Expression ARROW Expression // case 611: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new LinkedList(); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 612: Primary ::= Expression COLON Expression // case 612: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); 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 LinkedList(); l.add(a); l.add(b); Call regionCall = nf.Call(pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l); btParser.setSym1(regionCall); break; } // // Rule 613: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 613: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 614: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 614: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 615: FieldModifier ::= mutable // case 615: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 616: FieldModifier ::= const // case 616: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 617: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 617: bad_rule = 617; break; // // Rule 618: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 618: bad_rule = 618; break; // // Rule 619: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 619: bad_rule = 619; break; // // Rule 620: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 620: bad_rule = 620; break; // // Rule 621: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 621: bad_rule = 621; break; // // Rule 622: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 622: bad_rule = 622; break; // // Rule 623: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 623: bad_rule = 623; break; // // Rule 624: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 624: bad_rule = 624; break; // // Rule 625: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 625: bad_rule = 625; break; // // Rule 626: PlaceTypeSpecifieropt ::= // case 626: btParser.setSym1(null); break; // // Rule 627: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 627: break; // // Rule 628: DepParametersopt ::= // case 628: btParser.setSym1(null); break; // // Rule 629: DepParametersopt ::= DepParameters // case 629: break; // // Rule 630: WhereClauseopt ::= // case 630: btParser.setSym1(null); break; // // Rule 631: WhereClauseopt ::= WhereClause // case 631: break; // // Rule 632: ObjectKindopt ::= // case 632: btParser.setSym1(null); break; // // Rule 633: ObjectKindopt ::= ObjectKind // case 633: break; // // Rule 634: ArrayInitializeropt ::= // case 634: btParser.setSym1(null); break; // // Rule 635: ArrayInitializeropt ::= ArrayInitializer // case 635: break; // // Rule 636: PlaceExpressionSingleListopt ::= // case 636: btParser.setSym1(null); break; // // Rule 637: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 637: break; // // Rule 638: ArgumentListopt ::= // case 638: btParser.setSym1(null); break; // // Rule 639: ArgumentListopt ::= ArgumentList // case 639: break; // // Rule 640: DepParametersopt ::= // case 640: btParser.setSym1(null); break; // // Rule 641: DepParametersopt ::= DepParameters // case 641: break; // // Rule 642: Unsafeopt ::= // case 642: btParser.setSym1(null); break; // // Rule 643: Unsafeopt ::= unsafe // case 643: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 644: ParamIdopt ::= // case 644: btParser.setSym1(null); break; // // Rule 645: ParamIdopt ::= identifier // case 645: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/af3f97f921355862c552fa98c4a60e77625996f2/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
vValue PointerRow(vWindow win) {
public vValue PointerRow(vWindow win) {
vValue PointerRow(vWindow win) { // return row number of mouse FontMetrics m = win.getFontMetrics(); int leading = win.Leading(); int a = m.getMaxAscent(); if (leading == 0) { iRuntime.error(204); // this is what v9 does: real division by 0 } return vInteger.New((win.getCanvas().yloc - a) / leading + 1);}
4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/d8fb5c2fb65d48f8132aa30861c0fa5a932ea413/wTTY.java/buggy/jcon/wTTY.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 331, 620, 7107, 1999, 12, 90, 3829, 5657, 13, 288, 202, 759, 327, 1027, 1300, 434, 7644, 565, 10063, 5653, 312, 273, 5657, 18, 588, 5711, 5653, 5621, 565, 509, 7676, 273, 5657, 18, 19112, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 331, 620, 7107, 1999, 12, 90, 3829, 5657, 13, 288, 202, 759, 327, 1027, 1300, 434, 7644, 565, 10063, 5653, 312, 273, 5657, 18, 588, 5711, 5653, 5621, 565, 509, 7676, 273, 5657, 18, 19112, 56...
for (; index < length; index++) { int d = Character.digit(chars[index], 10); if (d < 0) break; value += d; value /= 10; }
for (; index < length; index++) { int d = Character.digit(chars[index], 10); if (d < 0) break; value += d; value /= 10; }
private double parseFractionalPart(boolean nonEmpty) throws NumberFormatException { if (index >= length) throw new NumberFormatException(); int start = index; double value = 0.0d; for (; index < length; index++) { int d = Character.digit(chars[index], 10); if (d < 0) break; value += d; value /= 10; } if (nonEmpty && (index == start)) throw new NumberFormatException(); return value; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b2ed890086e708f00d163f3e8514bfa8b353f662/VMDouble.java/clean/core/src/classpath/vm/java/lang/VMDouble.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1645, 1109, 13724, 287, 1988, 12, 6494, 1661, 1921, 13, 202, 202, 15069, 12100, 288, 202, 202, 430, 261, 1615, 1545, 769, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 474,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 1109, 13724, 287, 1988, 12, 6494, 1661, 1921, 13, 202, 202, 15069, 12100, 288, 202, 202, 430, 261, 1615, 1545, 769, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 474,...
{
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-result-prefixes"); if (attr != null) { elementExcludeResultPrefixes = new HashSet(); StringTokenizer st = new StringTokenizer(attr.getNodeValue()); while (st.hasMoreTokens()) { elementExcludeResultPrefixes.add(st.nextToken()); } } else { elementExcludeResultPrefixes = Collections.EMPTY_SET; } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ElementNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ElementNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3010, 907, 12, 2283, 907, 508, 16, 2868, 5035, 907, 1981, 16, 514, 582, 345, 16, 2029, 1084, 13, 377, 333, 18, 529, 273, 508, 31, 565, 333, 18, 4937, 273, 1981, 31, 565, 333, 18, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 907, 12, 2283, 907, 508, 16, 2868, 5035, 907, 1981, 16, 514, 582, 345, 16, 2029, 1084, 13, 377, 333, 18, 529, 273, 508, 31, 565, 333, 18, 4937, 273, 1981, 31, 565, 333, 18, 89...
} if (deleteItems.size() == 0) return true; IResource[] deleteResources = new IResource[deleteItems.size()]; deleteItems.toArray(deleteResources); try { monitor.subTask(WorkbenchMessages.getString("CopyFilesAndFoldersOperation.deletingCollision")); destination.getWorkspace().delete( deleteResources, IResource.KEEP_HISTORY, new SubProgressMonitor(monitor, 25)); } catch (CoreException exception) { recordError(exception); return false;
private boolean validateNoNameCollisions( IContainer destination, IResource[] sourceResources, IProgressMonitor monitor) { List deleteItems = new ArrayList(); IWorkspaceRoot workspaceRoot = destination.getWorkspace().getRoot(); for (int i = 0; i < sourceResources.length; i++) { final IResource currentResource = sourceResources[i]; final IPath currentPath = destination.getFullPath().append(currentResource.getName()); IResource newResource = workspaceRoot.findMember(currentPath); if (newResource != null) { // Check to see if we would be overwriting a parent folder if (currentPath.isPrefixOf(currentResource.getFullPath())) { //Run it inside of a runnable to make sure we get to parent off of the shell as we are not //in the UI thread. Runnable notice = new Runnable() { public void run() { MessageDialog.openError(parentShell, WorkbenchMessages.getString("CopyFilesAndFoldersOperation.overwriteProblemTitle"), //$NON-NLS-1$ WorkbenchMessages.format("CopyFilesAndFoldersOperation.overwriteProblem", new Object[] { currentPath, currentResource.getFullPath()})); //$NON-NLS-1$ } }; parentShell.getDisplay().syncExec(notice); canceled = true; return false; } else { if (checkOverwrite(parentShell, newResource)) { // do not delete folders, we want to merge in this case, // not replace. if (newResource.getType() == IResource.FILE) { deleteItems.add(newResource); } } else { canceled = true; return false; } } } } //No overwrite issues if (deleteItems.size() == 0) return true; //Now try deletions IResource[] deleteResources = new IResource[deleteItems.size()]; deleteItems.toArray(deleteResources); try { monitor.subTask(WorkbenchMessages.getString("CopyFilesAndFoldersOperation.deletingCollision")); //$NON-NLS-1$ destination.getWorkspace().delete( deleteResources, IResource.KEEP_HISTORY, new SubProgressMonitor(monitor, 25)); } catch (CoreException exception) { recordError(exception); return false; } return true; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/55a0765998ffb552f84192bb2b3b6177a5c39ba5/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1954, 2279, 461, 13535, 12682, 12, 202, 202, 45, 2170, 2929, 16, 202, 202, 45, 1420, 8526, 1084, 3805, 16, 202, 202, 45, 5491, 7187, 6438, 13, 288, 202, 202, 682, 1430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1954, 2279, 461, 13535, 12682, 12, 202, 202, 45, 2170, 2929, 16, 202, 202, 45, 1420, 8526, 1084, 3805, 16, 202, 202, 45, 5491, 7187, 6438, 13, 288, 202, 202, 682, 1430,...
match(_t,AUTOENDKEY); _t = _t.getNextSibling(); break; } case DEFAULT: { AST tmp915_AST_in = (AST)_t;
public final void definebuttonstate(AST _t) throws RecognitionException { AST definebuttonstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1063 = _t; AST tmp910_AST_in = (AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case BUTTON: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case BUTTON: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp911_AST_in = (AST)_t; match(_t,BUTTON); _t = _t.getNextSibling(); AST tmp912_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop1087: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AUTOGO: { AST tmp913_AST_in = (AST)_t; match(_t,AUTOGO); _t = _t.getNextSibling(); break; } case AUTOENDKEY: { AST tmp914_AST_in = (AST)_t; match(_t,AUTOENDKEY); _t = _t.getNextSibling(); break; } case DEFAULT: { AST tmp915_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONTEXTHELPID: { AST __t1067 = _t; AST tmp916_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1067; _t = _t.getNextSibling(); break; } case DROPTARGET: { AST tmp917_AST_in = (AST)_t; match(_t,DROPTARGET); _t = _t.getNextSibling(); break; } case FONT: { AST __t1068 = _t; AST tmp918_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1068; _t = _t.getNextSibling(); break; } case IMAGEDOWN: { AST __t1069 = _t; AST tmp919_AST_in = (AST)_t; match(_t,IMAGEDOWN); _t = _t.getFirstChild(); { int _cnt1071=0; _loop1071: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_14.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt1071>=1 ) { break _loop1071; } else {throw new NoViableAltException(_t);} } _cnt1071++; } while (true); } _t = __t1069; _t = _t.getNextSibling(); break; } case IMAGE: { AST __t1072 = _t; AST tmp920_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getFirstChild(); { int _cnt1074=0; _loop1074: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_14.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt1074>=1 ) { break _loop1074; } else {throw new NoViableAltException(_t);} } _cnt1074++; } while (true); } _t = __t1072; _t = _t.getNextSibling(); break; } case IMAGEUP: { AST __t1075 = _t; AST tmp921_AST_in = (AST)_t; match(_t,IMAGEUP); _t = _t.getFirstChild(); { int _cnt1077=0; _loop1077: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_14.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt1077>=1 ) { break _loop1077; } else {throw new NoViableAltException(_t);} } _cnt1077++; } while (true); } _t = __t1075; _t = _t.getNextSibling(); break; } case IMAGEINSENSITIVE: { AST __t1078 = _t; AST tmp922_AST_in = (AST)_t; match(_t,IMAGEINSENSITIVE); _t = _t.getFirstChild(); { int _cnt1080=0; _loop1080: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_14.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt1080>=1 ) { break _loop1080; } else {throw new NoViableAltException(_t);} } _cnt1080++; } while (true); } _t = __t1078; _t = _t.getNextSibling(); break; } case MOUSEPOINTER: { AST __t1081 = _t; AST tmp923_AST_in = (AST)_t; match(_t,MOUSEPOINTER); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1081; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case LIKE: { AST __t1082 = _t; AST tmp924_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp925_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1082; _t = _t.getNextSibling(); break; } case FLATBUTTON: { AST tmp926_AST_in = (AST)_t; match(_t,FLATBUTTON); _t = _t.getNextSibling(); break; } case NOFOCUS: { AST __t1084 = _t; AST tmp927_AST_in = (AST)_t; match(_t,NOFOCUS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FLATBUTTON: { AST tmp928_AST_in = (AST)_t; match(_t,FLATBUTTON); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1084; _t = _t.getNextSibling(); break; } case NOCONVERT3DCOLORS: { AST tmp929_AST_in = (AST)_t; match(_t,NOCONVERT3DCOLORS); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MARGINEXTRA: { AST tmp930_AST_in = (AST)_t; match(_t,MARGINEXTRA); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case AUTOENDKEY: case AUTOGO: case BGCOLOR: case COLUMNLABEL: case CONTEXTHELPID: case DCOLOR: case DEFAULT: case DROPTARGET: case FGCOLOR: case FLATBUTTON: case FONT: case IMAGE: case IMAGEDOWN: case IMAGEINSENSITIVE: case IMAGEUP: case LABEL: case LIKE: case MOUSEPOINTER: case NOCONVERT3DCOLORS: case NOFOCUS: case PFCOLOR: case SIZE: case SIZECHARS: case SIZEPIXELS: case TOOLTIP: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } break; } default: { break _loop1087; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1063; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 5391, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 5391, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 5391, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 5391, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
public RamParser() {
private RamParser() {
public RamParser() { }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/9bfa6e5413a5e2132f90c560334c75bada8759f3/RamParser.java/buggy/src/org/lockss/crawler/RamParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 534, 301, 2678, 1435, 288, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 534, 301, 2678, 1435, 288, 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,...
Log.logException(Log.ERROR, MODULE, io);
Log.logException(Log.LEVEL_ERROR, MODULE, io);
public static void shutdown() { String win9x = "rundll32 user,exitwindows"; String winNT = "shutdown -s -f -t 01"; String unix = "shutdown -fh now"; String cmd = null; if (isWin9x()) { cmd = win9x; } else if (isWinNT()) { cmd = winNT; } else if (isUnix()) { cmd = unix; } else { Log.log(Log.ERROR, MODULE, "Platform not recognized; shutdown will not be performed"); } try { if (cmd != null) { Log.log(Log.TRACE, MODULE, "Executing " + cmd); Runtime.getRuntime().exec(cmd); } } catch(java.io.IOException io) { Log.logException(Log.ERROR, MODULE, io); } }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/d180d723a9e594086228e902568d740d7e8649d8/OsShutdown.java/buggy/com/gallery/GalleryRemote/util/OsShutdown.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5731, 1435, 288, 202, 202, 780, 5657, 29, 92, 273, 315, 86, 1074, 2906, 1578, 729, 16, 8593, 13226, 14432, 202, 202, 780, 5657, 1784, 273, 315, 15132, 300, 87, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5731, 1435, 288, 202, 202, 780, 5657, 29, 92, 273, 315, 86, 1074, 2906, 1578, 729, 16, 8593, 13226, 14432, 202, 202, 780, 5657, 1784, 273, 315, 15132, 300, 87, 300, ...
setInstanceVar(getRuby().intern(name), value); }
setInstanceVar(getRuby().intern(name), value); }
public void setInstanceVar(String name, RubyObject value) { setInstanceVar(getRuby().intern(name), value); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1442, 1537, 12, 780, 508, 16, 19817, 921, 460, 13, 288, 3639, 444, 1442, 1537, 12, 588, 54, 10340, 7675, 267, 798, 12, 529, 3631, 460, 1769, 565, 289, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1442, 1537, 12, 780, 508, 16, 19817, 921, 460, 13, 288, 3639, 444, 1442, 1537, 12, 588, 54, 10340, 7675, 267, 798, 12, 529, 3631, 460, 1769, 565, 289, 2, -100, -100, -...
return size() > cacheSize; }
return size() > cacheSize; }
protected boolean removeEldestEntry(Map.Entry eldest) { return size() > cacheSize; // limit size of cache }
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/LuceneQueryOptimizer.java/clean/src/java/org/apache/nutch/searcher/LuceneQueryOptimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 1250, 1206, 41, 1236, 395, 1622, 12, 863, 18, 1622, 415, 10488, 13, 288, 1850, 327, 963, 1435, 405, 1247, 1225, 31, 2868, 368, 1800, 963, 434, 1247, 3639, 289, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 1250, 1206, 41, 1236, 395, 1622, 12, 863, 18, 1622, 415, 10488, 13, 288, 1850, 327, 963, 1435, 405, 1247, 1225, 31, 2868, 368, 1800, 963, 434, 1247, 3639, 289, 2, -100, -100, -100...
for (int x = 1; x < temp.length; x++) { getCapabilities().getUserInterface().printStatus(" " + temp[x]); } } }
for (int x = 1; x < temp.length; x++) { getCapabilities().getUserInterface().printStatus(" " + temp[x]); } } }
public void processScriptWarning(ScriptWarning warn) { if (! ClientState.getClientState().isOption("script.ignoreWarnings", ClientDefaults.script_ignoreWarnings)) { String[] temp = warn.getMessage().split("\n"); String fname = warn.getNameShort(); getCapabilities().getUserInterface().printStatus("*** Script Warning: " + temp[0] + " at " + fname + ":" + warn.getLineNumber()); for (int x = 1; x < temp.length; x++) { getCapabilities().getUserInterface().printStatus(" " + temp[x]); } } }
12160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12160/493672e17417812a6aa18c6e7b2ab9edd267cfe7/ScriptManager.java/clean/rero/src/rero/client/script/ScriptManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1207, 3651, 6210, 12, 3651, 6210, 1894, 13, 282, 288, 1377, 309, 16051, 2445, 1119, 18, 588, 1227, 1119, 7675, 291, 1895, 2932, 4263, 18, 6185, 4312, 3113, 2445, 7019, 18, 4263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 3651, 6210, 12, 3651, 6210, 1894, 13, 282, 288, 1377, 309, 16051, 2445, 1119, 18, 588, 1227, 1119, 7675, 291, 1895, 2932, 4263, 18, 6185, 4312, 3113, 2445, 7019, 18, 4263...
quiescentState = true;
protected void updateQuiescenceService() { if (quiescenceReportService != null) { if (registrationComplete()) { // Tell the Q Service I'm quiescent quiescenceReportService.setQuiescentState(); if (log.isInfoEnabled()) { log.info(getAgentIdentifier() + " done with SDRegistration. Now quiescent."); quiescentState = true; } } else { for (Iterator iterator = registerTaskSubscription.iterator(); iterator.hasNext();) { Task task = (Task) iterator.next(); if (!reregistrationKludgeNeeded(task)) { // May be waiting on a callback or a community or an SCA. Say not Q quiescenceReportService.clearQuiescentState(); if (log.isInfoEnabled()) { if (quiescentState == true) { log.info(getAgentIdentifier() + " toggling quiescent state from true to false."); quiescentState = false; } log.info(getAgentIdentifier() + " waiting to complete registration - not quiescent."); } return; } } // Getting here means that all the registerTasks require the // reregistation kludge - special 'fix' for quiesence // monitor. Plugin will reregister on rehydration because it doesn't // know whether the previous registration still exists but we don't // want to perturb quiescence state. if (log.isInfoEnabled()) { log.info(getAgentIdentifier() + ": updateQuiescenceService() " + " setting quiescent state even though reregistration " + " after rehydration is not complete\n" + " rehydrated = " + rehydrated + " register tasks = " + registerTaskSubscription); } } } }
14011 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14011/0b380a4870c1f1e577662e6eaf1b100b8479910b/SDRegistrationPluginBase.java/buggy/servicediscovery/src/org/cougaar/servicediscovery/plugin/SDRegistrationPluginBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1089, 928, 606, 71, 802, 1179, 1435, 288, 565, 309, 261, 372, 606, 71, 802, 4820, 1179, 480, 446, 13, 288, 1377, 309, 261, 14170, 6322, 10756, 288, 202, 759, 29860, 326, 2238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1089, 928, 606, 71, 802, 1179, 1435, 288, 565, 309, 261, 372, 606, 71, 802, 4820, 1179, 480, 446, 13, 288, 1377, 309, 261, 14170, 6322, 10756, 288, 202, 759, 29860, 326, 2238...
text.setText( "no searchable network enabled" ); text.setEnabled( false );
aText.setText( "no searchable network enabled" ); aText.setEnabled( false );
protected Text createInputBox( Composite group, String aString ) { /* the box label */ gridData = new GridData( GridData.FILL_HORIZONTAL ); gridData.horizontalSpan = 2; label = new Label( group, SWT.NONE ); label.setLayoutData( gridData ); label.setText( aString ); /* the box */ gridData = new GridData( GridData.FILL_HORIZONTAL ); gridData.horizontalSpan = 2; text = new Text( group, SWT.SINGLE | SWT.BORDER ); text.setLayoutData( gridData ); text.setFont( JFaceResources.getTextFont() ); text.addMouseListener( new MouseListener() { public void mouseDoubleClick( MouseEvent e ) { } public void mouseUp( MouseEvent e ) { } public void mouseDown( MouseEvent e ) { setSearchButton(); } } ); text.addKeyListener( new KeyAdapter() { public void keyPressed( KeyEvent e ) { if ( e.character == SWT.CR ) performSearch(); } } ); if ( core.getNetworkInfoMap().getEnabledAndSearchable() == 0 ) { text.setText( "no searchable network enabled" ); text.setEnabled( false ); } return text; }
11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/8faa1e3eedfa1d18072af98ddbbb147776eb9013/Search.java/buggy/g2gui/src/net/mldonkey/g2gui/view/search/Search.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3867, 752, 1210, 3514, 12, 14728, 1041, 16, 514, 279, 780, 262, 288, 3639, 1748, 326, 3919, 1433, 1195, 3639, 3068, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 203...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3867, 752, 1210, 3514, 12, 14728, 1041, 16, 514, 279, 780, 262, 288, 3639, 1748, 326, 3919, 1433, 1195, 3639, 3068, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 203...
VM.sysWrite(right(hex(i),6) + "| "); VM.sysWrite(right("", PREFIX_AREA_SIZE) + " "); VM.sysWrite( left(op, OP_AREA_SIZE));
i = begin(i, op);
final void RRXD (int i, String op, byte R0, byte R1, byte X, short s, int d) { VM.sysWrite(right(hex(i),6) + "| "); VM.sysWrite(right("", PREFIX_AREA_SIZE) + " "); VM.sysWrite( left(op, OP_AREA_SIZE)); VM.sysWrite(right(isFP(op)?FPR_NAMES[R0]:GPR_NAMES[R0], DEST_AREA_SIZE)); VM.sysWrite(right("[" + decimal(d) + "+" + GPR_NAMES[R1] + "+" + GPR_NAMES[X] + "<<" + decimal(s) + "]", SOURCE_AREA_SIZE)); asm.writeLastInstruction(i); VM.sysWrite("\n"); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/1ad569337ec77cad23ab2e215870563ee6b7b90a/VM_Lister.java/clean/rvm/src/vm/arch/intel/assembler/VM_Lister.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 21618, 22953, 261, 474, 277, 16, 514, 1061, 16, 1160, 534, 20, 16, 1160, 534, 21, 16, 1160, 1139, 16, 3025, 272, 16, 509, 302, 13, 288, 565, 8251, 18, 9499, 3067, 12, 4083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 21618, 22953, 261, 474, 277, 16, 514, 1061, 16, 1160, 534, 20, 16, 1160, 534, 21, 16, 1160, 1139, 16, 3025, 272, 16, 509, 302, 13, 288, 565, 8251, 18, 9499, 3067, 12, 4083, ...
return (Node)u2; }
return (Node) u2; }
public Node getEndNode() { return (Node)u2; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/clean/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 9968, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 22, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 9968, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 22, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/
currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename);
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue("-"); } init_p = true; first_p = false; currentLineNumber = 0; } // retry : while (true) { if (next_p == 1) { next_p = 0; if (args.getLength() > 0) { String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); /*if (ruby_inplace_mode) { rb_warn("Can't do inplace edit for stdio"); rb_defout = rb_stdout; }*/ } else { File file = new File(filename); try { RubyInputStream inStream = new RubyInputStream(new BufferedInputStream(new FileInputStream(file))); // FILE *fr = rb_fopen(fn, "r"); /*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); // prep_stdio(fr, FMODE_READABLE, rb_cFile); // prep_path(current_file, fn); } catch (FileNotFoundException fnfExcptn) { throw new IOError(runtime, fnfExcptn.getMessage()); } } /*if (binmode) rb_io_binmode(current_file);*/ } else { init_p = false; return false; } } //break; //} return true; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/49c17b4ec0ae2e046650a9ace532caa461a65f20/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1024, 2615, 812, 1435, 288, 3639, 19817, 1076, 833, 273, 261, 54, 10340, 1076, 13, 9448, 18, 588, 5160, 1537, 2932, 8, 7388, 1769, 3639, 309, 16051, 2738, 67, 84, 13, 288, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1024, 2615, 812, 1435, 288, 3639, 19817, 1076, 833, 273, 261, 54, 10340, 1076, 13, 9448, 18, 588, 5160, 1537, 2932, 8, 7388, 1769, 3639, 309, 16051, 2738, 67, 84, 13, 288, 5...
if (!isEditorRemovable(oldDefaultItem)) oldDefaultItem .setText(oldDefaultItem.getText() + " " + WorkbenchMessages.FileEditorPreference_isLocked);
if (!isEditorRemovable(oldDefaultItem)) setLockedItemText(oldDefaultItem, oldDefaultItem.getText());
public void setSelectedEditorAsDefault() { TableItem[] items = editorTable.getSelection(); if (items.length > 0) { // First change the label of the old default TableItem oldDefaultItem = editorTable.getItem(0); oldDefaultItem .setText(((EditorDescriptor) oldDefaultItem.getData(DATA_EDITOR)) .getLabel()); // update the label to reflect the locked state if (!isEditorRemovable(oldDefaultItem)) oldDefaultItem .setText(oldDefaultItem.getText() + " " + WorkbenchMessages.FileEditorPreference_isLocked); //$NON-NLS-1$ // Now set the new default EditorDescriptor editor = (EditorDescriptor) items[0].getData(DATA_EDITOR); getSelectedResourceType().setDefaultEditor(editor); Boolean fromContentType = (Boolean) items[0].getData(DATA_FROM_CONTENT_TYPE); items[0].dispose(); //Table is single selection TableItem item = new TableItem(editorTable, SWT.NULL, 0); item.setData(DATA_EDITOR, editor); if (fromContentType != null) item.setData(DATA_FROM_CONTENT_TYPE, fromContentType); item .setText(editor.getLabel() + " " + WorkbenchMessages.FileEditorPreference_defaultLabel); //$NON-NLS-1$ item.setImage(getImage(editor)); if (!isEditorRemovable(item)) item .setText(item.getText() + " " + WorkbenchMessages.FileEditorPreference_isLocked); //$NON-NLS-1$ editorTable.setSelection(new TableItem[] { item }); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d3fa32bbfcb40ea2e6d5950eaa2d6bab56c82e4a/FileEditorsPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FileEditorsPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23006, 6946, 1463, 1868, 1435, 288, 3639, 3555, 1180, 8526, 1516, 273, 4858, 1388, 18, 588, 6233, 5621, 3639, 309, 261, 3319, 18, 2469, 405, 374, 13, 288, 5411, 368, 5783, 2549...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23006, 6946, 1463, 1868, 1435, 288, 3639, 3555, 1180, 8526, 1516, 273, 4858, 1388, 18, 588, 6233, 5621, 3639, 309, 261, 3319, 18, 2469, 405, 374, 13, 288, 5411, 368, 5783, 2549...
content = myContent;
content = _content;
public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consistent copy--either the current one, or one // that was the current one a few milliseconds ago. This is because // a thread setting myContent may not update main memory immediately, // and this thread may not update its copy of myContent immediately // (it may have a stale copy it read earlier). Block content = myContent; // copy to a local var in case it changes // Make sure that all the contents of "content" are up to date--that // our thread is fully synchronized with main memory, so that we don't // have a half-created version. Synchronize on anything to do this: // we will use an object we don't share with any other thread. synchronized(data) { } if (content == null) { try { synchronized(this) { // double check under the lock if (myContent == null) { parse(); } content = myContent; } } catch (Exception e) { _log.exception(e); _log.error("Template: Unable to read template: " + this); out.write("<!--\n Template failed to read. Reason: "); out.write(e.toString()); out.write(" \n-->"); } } try { content.write(out,data); } catch (InvalidContextException e) { _log.exception(e); String warning = "Template: Missing data in Map passed to template " + this; _log.warning(warning); out.write("<!--\n Could not interpret template. Reason: "); out.write(warning); out.write(e.toString()); out.write(" \n-->"); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/WMTemplate.java/buggy/webmacro/src/org/webmacro/engine/WMTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 727, 918, 1045, 12, 2289, 596, 16, 1772, 501, 13, 4202, 1216, 1860, 282, 288, 1377, 368, 2650, 3329, 30, 5016, 358, 3399, 1350, 353, 16804, 15666, 2674, 622, 4202, 368, 326, 6991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 727, 918, 1045, 12, 2289, 596, 16, 1772, 501, 13, 4202, 1216, 1860, 282, 288, 1377, 368, 2650, 3329, 30, 5016, 358, 3399, 1350, 353, 16804, 15666, 2674, 622, 4202, 368, 326, 6991, ...
handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream());
handler = new IOHandlerNio(getRuntime(), socketChannel);
public IRubyObject initialize(IRubyObject arg) { socket = extractSocket(arg); try { handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } registerIOHandler(handler); modes = handler.getModes(); return this; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/buggy/src/org/jruby/RubyBasicSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4046, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 2987, 273, 2608, 4534, 12, 3175, 1769, 7734, 775, 288, 5411, 1838, 273, 394, 1665, 1503, 50, 1594, 12, 588, 5576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4046, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 2987, 273, 2608, 4534, 12, 3175, 1769, 7734, 775, 288, 5411, 1838, 273, 394, 1665, 1503, 50, 1594, 12, 588, 5576,...
Log.logln(LOG_PROGRESS, "pop\t" + qName); if (lastChars.length() != 0 || justPopped == false) { if (includeDraft || currentFullXPath.indexOf("[@draft=\"unconfirmed\"]") < 0) { if (false && currentFullXPath.indexOf("i-klingon") >= 0) { System.out.println(currentFullXPath); } target.add(currentFullXPath, lastChars); lastLeafNode = lastActiveLeafNode = currentFullXPath; } lastChars = ""; } else { Log.logln(LOG_PROGRESS && lastActiveLeafNode != null, "pop: zeroing last leafNode: " + lastActiveLeafNode); lastActiveLeafNode = null; if (comment != null) { target.addComment(lastLeafNode, comment, XPathParts.Comments.POSTBLOCK); comment = null; } } currentFullXPath = stripAfter(currentFullXPath, qName); justPopped = true; }
Log.logln(LOG_PROGRESS, "pop\t" + qName); if (lastChars.length() != 0 || justPopped == false) { if (includeDraft || currentFullXPath.indexOf("[@draft=\"unconfirmed\"]") < 0) { if (false && currentFullXPath.indexOf("i-klingon") >= 0) { System.out.println(currentFullXPath); } target.add(currentFullXPath, lastChars); lastLeafNode = lastActiveLeafNode = currentFullXPath; } lastChars = ""; } else { Log.logln(LOG_PROGRESS && lastActiveLeafNode != null, "pop: zeroing last leafNode: " + lastActiveLeafNode); lastActiveLeafNode = null; if (comment != null) { target.addComment(lastLeafNode, comment, XPathParts.Comments.POSTBLOCK); comment = null; } } currentFullXPath = stripAfter(currentFullXPath, qName); justPopped = true; }
private void pop(String qName) { Log.logln(LOG_PROGRESS, "pop\t" + qName); if (lastChars.length() != 0 || justPopped == false) { if (includeDraft || currentFullXPath.indexOf("[@draft=\"unconfirmed\"]") < 0) { if (false && currentFullXPath.indexOf("i-klingon") >= 0) { System.out.println(currentFullXPath); } target.add(currentFullXPath, lastChars); lastLeafNode = lastActiveLeafNode = currentFullXPath; } lastChars = ""; } else { Log.logln(LOG_PROGRESS && lastActiveLeafNode != null, "pop: zeroing last leafNode: " + lastActiveLeafNode); lastActiveLeafNode = null; if (comment != null) { target.addComment(lastLeafNode, comment, XPathParts.Comments.POSTBLOCK); comment = null; } } //currentXPath = stripAfter(currentXPath, qName); currentFullXPath = stripAfter(currentFullXPath, qName); justPopped = true; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/4716264464632750d34da5032a0718e1d756a967/CLDRFile.java/buggy/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1843, 12, 780, 22914, 13, 288, 1082, 202, 1343, 18, 1330, 2370, 12, 4842, 67, 24022, 16, 315, 5120, 64, 88, 6, 397, 22914, 1769, 5411, 309, 261, 2722, 7803, 18, 2469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 1843, 12, 780, 22914, 13, 288, 1082, 202, 1343, 18, 1330, 2370, 12, 4842, 67, 24022, 16, 315, 5120, 64, 88, 6, 397, 22914, 1769, 5411, 309, 261, 2722, 7803, 18, 2469, ...
if (hasChildren(node)) _currentChild = _offsetOrChild[node]; else _currentChild = END;
_currentChild = hasChildren(node) ? _offsetOrChild[node] : END;
public NodeIterator setStartNode(int node) { if (_isRestartable) { if (node >= _firstAttributeNode) node = NULL; if (node != _startNode) _last = -1; _startNode = node; if (_includeSelf) { _currentChild = -1; } else { if (hasChildren(node)) _currentChild = _offsetOrChild[node]; else _currentChild = END; } return resetPosition(); } return this; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/092328e67038a9f04dd8f853cd233ce8dfe74569/DOMImpl.java/clean/src/org/apache/xalan/xsltc/dom/DOMImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 3198, 18171, 907, 12, 474, 756, 13, 288, 202, 565, 309, 261, 67, 291, 15057, 429, 13, 288, 202, 202, 430, 261, 2159, 1545, 389, 3645, 1499, 907, 13, 756, 273, 3206, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 3198, 18171, 907, 12, 474, 756, 13, 288, 202, 565, 309, 261, 67, 291, 15057, 429, 13, 288, 202, 202, 430, 261, 2159, 1545, 389, 3645, 1499, 907, 13, 756, 273, 3206, 31...
return this.sid;
return sid;
public short getSid() { return this.sid; }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/e1e58e515f38ac357130b8e14d9fd377be1ea1a6/SeriesRecord.java/buggy/src/java/org/apache/poi/hssf/record/SeriesRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1322, 350, 1435, 565, 288, 3639, 327, 7348, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1322, 350, 1435, 565, 288, 3639, 327, 7348, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Entry entry = (Entry) attribIterator.next();
Entry entry = (Entry)attribIterator.next();
private void encodeProjectExtensions(Document doc, Element configRootElement) { Element element; Iterator extIterator = extMap.values().iterator(); while (extIterator.hasNext()) { CExtensionReference extension[] = (CExtensionReference[]) extIterator.next(); for (int i = 0; i < extension.length; i++) { configRootElement.appendChild(element = doc.createElement(PROJECT_EXTENSION)); element.setAttribute(PROJECT_EXTENSION_ATTR_POINT, extension[i].getExtension()); element.setAttribute(PROJECT_EXTENSION_ATTR_ID, extension[i].getID()); CExtensionInfo info = (CExtensionInfo) extInfoMap.get(extension[i]); if (info != null) { Iterator attribIterator = info.getAttributes().entrySet().iterator(); while (attribIterator.hasNext()) { Entry entry = (Entry) attribIterator.next(); Element extAttributes = doc.createElement(PROJECT_EXTENSION_ATTRIBUTE); extAttributes.setAttribute(PROJECT_EXTENSION_ATTRIBUTE_KEY, (String) entry.getKey()); extAttributes.setAttribute(PROJECT_EXTENSION_ATTRIBUTE_VALUE, (String) entry.getValue()); element.appendChild(extAttributes); } } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4c924a528373621b990442c9e6ba89861f8ec542/CDescriptor.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2017, 4109, 7513, 12, 2519, 997, 16, 3010, 642, 2375, 1046, 13, 288, 202, 202, 1046, 930, 31, 202, 202, 3198, 1110, 3198, 273, 1110, 863, 18, 2372, 7675, 9838, 5621, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2017, 4109, 7513, 12, 2519, 997, 16, 3010, 642, 2375, 1046, 13, 288, 202, 202, 1046, 930, 31, 202, 202, 3198, 1110, 3198, 273, 1110, 863, 18, 2372, 7675, 9838, 5621, 202...
public RubyObject(Ruby ruby, RubyClass rubyClass) { this(ruby, rubyClass, true);
public RubyObject(Ruby ruby) { this(ruby, null, false);
public RubyObject(Ruby ruby, RubyClass rubyClass) { this(ruby, rubyClass, true); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0044a3b88a0afa22dcced1c8213002b0fb16faf4/RubyObject.java/buggy/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 12, 54, 10340, 22155, 16, 19817, 797, 22155, 797, 13, 288, 3639, 333, 12, 27768, 16, 22155, 797, 16, 638, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 12, 54, 10340, 22155, 16, 19817, 797, 22155, 797, 13, 288, 3639, 333, 12, 27768, 16, 22155, 797, 16, 638, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
packet.setOptionalFrom(_connection.getSession().getMyDestination());
packet.setOptionalFrom(con.getSession().getMyDestination());
private PacketLocal buildPacket(byte buf[], int off, int size, boolean forceIncrement) { boolean ackOnly = isAckOnly(size); PacketLocal packet = new PacketLocal(_context, _connection.getRemotePeer(), _connection); byte data[] = new byte[size]; if (size > 0) System.arraycopy(buf, off, data, 0, size); packet.setPayload(data); if (ackOnly && !forceIncrement) packet.setSequenceNum(0); else packet.setSequenceNum(_connection.getNextOutboundPacketNum()); packet.setSendStreamId(_connection.getSendStreamId()); packet.setReceiveStreamId(_connection.getReceiveStreamId()); _connection.getInputStream().updateAcks(packet); packet.setOptionalDelay(_connection.getOptions().getChoke()); packet.setOptionalMaxSize(_connection.getOptions().getMaxMessageSize()); packet.setResendDelay(_connection.getOptions().getResendDelay()); if (_connection.getOptions().getProfile() == ConnectionOptions.PROFILE_INTERACTIVE) packet.setFlag(Packet.FLAG_PROFILE_INTERACTIVE, true); else packet.setFlag(Packet.FLAG_PROFILE_INTERACTIVE, false); packet.setFlag(Packet.FLAG_SIGNATURE_REQUESTED, _connection.getOptions().getRequireFullySigned()); if ( (!ackOnly) && (packet.getSequenceNum() <= 0) ) { packet.setFlag(Packet.FLAG_SYNCHRONIZE); packet.setOptionalFrom(_connection.getSession().getMyDestination()); } // don't set the closed flag if this is a plain ACK and there are outstanding // packets sent, otherwise the other side could receive the CLOSE prematurely, // since this ACK could arrive before the unacked payload message. if (_connection.getOutputStream().getClosed() && ( (size > 0) || (_connection.getUnackedPacketsSent() <= 0) ) ) { packet.setFlag(Packet.FLAG_CLOSE); _connection.setCloseSentOn(_context.clock().now()); if (_log.shouldLog(Log.DEBUG)) _log.debug("Closed is set for a new packet on " + _connection + ": " + packet); } else { //if (_log.shouldLog(Log.DEBUG)) // _log.debug("Closed is not set for a new packet on " + _connection + ": " + packet); } return packet; }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/758293dc024e342969e9a9e179ccbdc437eb57d5/ConnectionDataReceiver.java/clean/apps/streaming/java/src/net/i2p/client/streaming/ConnectionDataReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11114, 2042, 1361, 6667, 12, 7229, 1681, 63, 6487, 509, 3397, 16, 509, 963, 16, 1250, 2944, 10798, 13, 288, 3639, 1250, 8479, 3386, 273, 353, 11931, 3386, 12, 1467, 1769, 3639, 1111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11114, 2042, 1361, 6667, 12, 7229, 1681, 63, 6487, 509, 3397, 16, 509, 963, 16, 1250, 2944, 10798, 13, 288, 3639, 1250, 8479, 3386, 273, 353, 11931, 3386, 12, 1467, 1769, 3639, 1111...
String tmpId = null;
public void checkForMigrationSupport() { String tmpId = null; boolean isExists = false; if (getSuperClass() == null) { // If 'getSuperClass()' is null, then there is no toolchain available in // plugin manifest file with the 'id' & version. // Look for the 'versionsSupported' attribute String high = (String) ManagedBuildManager .getExtensionToolChainMap().lastKey(); SortedMap subMap = null; if (superClassId.compareTo(high) <= 0) { subMap = ManagedBuildManager.getExtensionToolChainMap().subMap( superClassId, high + "\0"); //$NON-NLS-1$ } else { // It means there are no entries in the map for the given id. // make the project is invalid IConfiguration parentConfig = getParent(); IManagedProject managedProject = parentConfig.getManagedProject(); if (managedProject != null) { managedProject.setValid(false); } return; } // for each element in the 'subMap', // check the 'versionsSupported' attribute whether the given // toolChain version is supported String baseId = ManagedBuildManager.getIdFromIdAndVersion(superClassId); String version = getVersionFromId().toString(); IToolChain[] toolChainElements = (IToolChain[]) subMap.values().toArray(); for (int i = 0; i < toolChainElements.length; i++) { IToolChain toolChainElement = toolChainElements[i]; if (ManagedBuildManager.getIdFromIdAndVersion( toolChainElement.getId()).compareTo(baseId) > 0) break; // First check if both base ids are equal if (ManagedBuildManager.getIdFromIdAndVersion( toolChainElement.getId()).equals(baseId)) { // Check if 'versionsSupported' attribute is available' String versionsSupported = toolChainElement.getVersionsSupported(); if ((versionsSupported != null) && (!versionsSupported.equals(""))) { //$NON-NLS-1$ String[] tmpVersions = versionsSupported.split(","); //$NON-NLS-1$ for (int j = 0; j < tmpVersions.length; j++) { if (new PluginVersionIdentifier(version).equals(new PluginVersionIdentifier(tmpVersions[j]))) { // version is supported. // Do the automatic conversion without // prompting the user. // Get the supported version String supportedVersion = ManagedBuildManager.getVersionFromIdAndVersion( toolChainElement.getId()); setId(ManagedBuildManager.getIdFromIdAndVersion(getId()) + "_" + supportedVersion); //$NON-NLS-1$ // If control comes here means that 'superClass' is null // So, set the superClass to this toolChain element setSuperClass(toolChainElement); superClassId = getSuperClass().getId(); isExists = true; break; } } if(isExists) break; // break the outer for loop if 'isExists' is true } } } } if (getSuperClass() != null) { // If 'getSuperClass()' is not null, look for 'convertToId' attribute in plugin // manifest file for this toolchain. String convertToId = getSuperClass().getConvertToId(); if ((convertToId == null) || (convertToId.equals(""))) { //$NON-NLS-1$ // It means there is no 'convertToId' attribute available and // the version is still actively // supported by the tool integrator. So do nothing, just return return; } else { // In case the 'convertToId' attribute is available, // it means that Tool integrator currently does not support this // version of toolchain. // Look for the converters available for this toolchain version. getConverter(convertToId); } } else { // make the project is invalid // IConfiguration parentConfig = getParent(); IManagedProject managedProject = parentConfig.getManagedProject(); if (managedProject != null) { managedProject.setValid(false); } } return; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/ToolChain.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolChain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13855, 10224, 6289, 1435, 288, 202, 202, 780, 1853, 548, 273, 446, 31, 202, 202, 6494, 353, 4002, 273, 629, 31, 1082, 202, 430, 261, 588, 8051, 797, 1435, 422, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13855, 10224, 6289, 1435, 288, 202, 202, 780, 1853, 548, 273, 446, 31, 202, 202, 6494, 353, 4002, 273, 629, 31, 1082, 202, 430, 261, 588, 8051, 797, 1435, 422, 446, 13, ...
PlatformUI.getWorkbench().getHelpSystem().setHelp( outerContainer, IWorkbenchHelpContextIds.IMPORT_EXPORT_WIZARD);
initialize();
public void createControl(Composite parent) { Font font = parent.getFont(); // create composite for page. Composite outerContainer = new Composite(parent, SWT.NONE); outerContainer.setLayout(new GridLayout()); outerContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); outerContainer.setFont(font); Composite comp = createTreeViewer(outerContainer); Dialog.applyDialogFont(comp); restoreWidgetValues(); setControl(outerContainer); PlatformUI.getWorkbench().getHelpSystem().setHelp( outerContainer, IWorkbenchHelpContextIds.IMPORT_EXPORT_WIZARD); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/77083bec81b085390b9ef1215066325167b06dc1/ImportExportPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ImportExportPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 565, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 1082, 565, 368, 752, 9635, 364, 1363, 18, 202, 565, 14728, 6390, 2170, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 565, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 1082, 565, 368, 752, 9635, 364, 1363, 18, 202, 565, 14728, 6390, 2170, 273, 394, ...
if (!validToken) { startIndex += 1; } else { if (resourceMap.containsKey(token)) { replace = (String) resourceMap.get(token); } else { replace = token; }
private void translate() throws BuildException { for (int i = 0; i < filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles(); for (int j = 0; j < srcFiles.length; j++) { try { File dest = fileUtils.resolveFile(toDir, srcFiles[j]); //Make sure parent dirs exist, else, create them. try { File destDir = new File(dest.getParent()); if (!destDir.exists()) { destDir.mkdirs(); } } catch (Exception e) { log("Exception occured while trying to check/create " + " parent directory. " + e.getMessage(), Project.MSG_DEBUG); } destLastModified = dest.lastModified(); File src = fileUtils.resolveFile(ds.getBasedir(), srcFiles[j]); srcLastModified = src.lastModified(); //Check to see if dest file has to be recreated boolean needsWork = forceOverwrite || destLastModified < srcLastModified; if (!needsWork) { for (int icounter = 0; icounter < BUNDLE_MAX_ALTERNATIVES; icounter++) { needsWork = (destLastModified < bundleLastModified[icounter]); if (needsWork) { break; } } } if (needsWork) { log("Processing " + srcFiles[j], Project.MSG_DEBUG); FileOutputStream fos = new FileOutputStream(dest); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos, destEncoding)); FileInputStream fis = new FileInputStream(src); BufferedReader in = new BufferedReader(new InputStreamReader(fis, srcEncoding)); String line; LineTokenizer lineTokenizer = new LineTokenizer(); lineTokenizer.setIncludeDelims(true); line = lineTokenizer.getToken(in); while ((line) != null) { // 2003-02-21 new replace algorithm by tbee (tbee@tbee.org) // because it wasn't able to replace something like "@aaa;@bbb;" // is there a startToken // and there is still stuff following the startToken int startIndex = line.indexOf(startToken); while (startIndex >= 0 && (startIndex + startToken.length()) <= line.length()) { // the new value, this needs to be here // because it is required to calculate the next position to search from // at the end of the loop String replace = null; // we found a starttoken, is there an endtoken following? // start at token+tokenlength because start and end // token may be indentical int endIndex = line.indexOf(endToken, startIndex + startToken.length()); if (endIndex < 0) { startIndex += 1; } else { // grab the token String token = line.substring(startIndex + startToken.length(), endIndex); // If there is a white space or = or :, then // it isn't to be treated as a valid key. boolean validToken = true; for (int k = 0; k < token.length() && validToken; k++) { char c = token.charAt(k); if (c == ':' || c == '=' || Character.isSpaceChar(c)) { validToken = false; } } if (!validToken) { startIndex += 1; } else { // find the replace string if (resourceMap.containsKey(token)) { replace = (String) resourceMap.get(token); } else { replace = token; } // generate the new line line = line.substring(0, startIndex) + replace + line.substring(endIndex + endToken.length()); // set start position for next search startIndex += replace.length(); } } // find next starttoken startIndex = line.indexOf(startToken, startIndex); } out.write(line); line = lineTokenizer.getToken(in); } if (in != null) { in.close(); } if (out != null) { out.close(); } } else { log("Skipping " + srcFiles[j] + " as destination file is up to date", Project.MSG_VERBOSE); } } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), getLocation()); } } } }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/fb25c836b47f9a54bc7cb7924e40537e65d00b2b/Translate.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4204, 1435, 1216, 18463, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 2413, 18, 1467, 5621, 277, 27245, 288, 5411, 1387, 694, 2662, 273, 261, 812, 694, 13, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4204, 1435, 1216, 18463, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 2413, 18, 1467, 5621, 277, 27245, 288, 5411, 1387, 694, 2662, 273, 261, 812, 694, 13, 13...
private static MysqlPoint createPoint(String s) {
protected static MysqlPoint createPoint(String s) {
private static MysqlPoint createPoint(String s) { MysqlPoint g = new MysqlPoint(); Vector v = parseStringByToken(s, ' '); double[] d = createDoubleLatLongArray(v); g.setNorthings(d[0]); g.setEastings(d[1]); return g; }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/8fba55043209f93d531290d0c221f1cab4e75b1e/MysqlWKTGeometryFactory.java/clean/src/openmap/com/bbn/openmap/layer/mysql/MysqlWKTGeometryFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 26252, 2148, 752, 2148, 12, 780, 272, 13, 288, 3639, 26252, 2148, 314, 273, 394, 26252, 2148, 5621, 3639, 5589, 331, 273, 23659, 858, 1345, 12, 87, 16, 296, 28005, 3639, 1645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 26252, 2148, 752, 2148, 12, 780, 272, 13, 288, 3639, 26252, 2148, 314, 273, 394, 26252, 2148, 5621, 3639, 5589, 331, 273, 23659, 858, 1345, 12, 87, 16, 296, 28005, 3639, 1645, ...
log.info("Rolling back");
log.trace("Rolling back");
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { log.trace("delivery count:" + tm.getIntProperty("JMSXDeliveryCount")); if (!tm.getText().equals("a")) { log.info("Expected a but was " + tm.getText()); failed = true; latch.release(); } } if (count == 2) { log.trace("delivery count:" + tm.getIntProperty("JMSXDeliveryCount")); if (!tm.getText().equals("b")) { log.info("Expected b but was " + tm.getText()); failed = true; latch.release(); } } if (count == 3) { log.trace("delivery count:" + tm.getIntProperty("JMSXDeliveryCount")); if (!tm.getText().equals("c")) { log.info("Expected c but was " + tm.getText()); failed = true; latch.release(); } else { if (sess.getAcknowledgeMode() == Session.SESSION_TRANSACTED) { log.info("Rolling back"); sess.rollback(); } } } if (count == 4) { log.trace("delivery count:" + tm.getIntProperty("JMSXDeliveryCount")); if (!tm.getText().equals("a")) { log.info("Expected a but was " + tm.getText()); failed = true; latch.release(); } if (!tm.getJMSRedelivered()) { failed = true; latch.release(); } } if (count == 5) { log.trace("delivery count:" + tm.getIntProperty("JMSXDeliveryCount")); if (!tm.getText().equals("b")) { log.info("Expected b but was " + tm.getText()); failed = true; latch.release(); } if (!tm.getJMSRedelivered()) { log.info("Redelivered flag not set"); failed = true; latch.release(); } } if (count == 6) { log.trace("delivery count:" + tm.getIntProperty("JMSXDeliveryCount")); if (!tm.getText().equals("c")) { log.info("Expected c but was " + tm.getText()); failed = true; latch.release(); } if (!tm.getJMSRedelivered()) { log.info("Redelivered flag not set"); failed = true; latch.release(); } else { if (sess.getAcknowledgeMode() == Session.SESSION_TRANSACTED) { log.info("Committing"); sess.commit(); } latch.release(); } } } catch (JMSException e) { log.error(e); failed = true; } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/60912ca4dfe6a3b4ac833d1f3df470a757ce1107/ConnectionConsumerTest.java/clean/tests/src/org/jboss/test/messaging/jms/ConnectionConsumerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 3852, 918, 30002, 12, 1079, 883, 13, 1377, 288, 540, 775, 540, 288, 5411, 1056, 9904, 31, 7682, 3867, 1079, 6118, 273, 261, 1528, 1079, 13, 2150, 31, 13491, 613, 18, 1376, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 3852, 918, 30002, 12, 1079, 883, 13, 1377, 288, 540, 775, 540, 288, 5411, 1056, 9904, 31, 7682, 3867, 1079, 6118, 273, 261, 1528, 1079, 13, 2150, 31, 13491, 613, 18, 1376, 2932, ...
long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis();
public Object getContents() { ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (modData == null) { modData = new ModulesData(); Collection mods = chainDataManager.getModules(); Collection cats = chainDataManager.getModuleCategories(); // find uncategorized modules Iterator iter = mods.iterator(); while (iter.hasNext()) { ChainModuleData m = (ChainModuleData) iter.next(); if (m.getModuleCategory()== null) modData.addUncategorizedModule(m); } // find root categories if (cats != null) { iter = cats.iterator(); while (iter.hasNext()) { ModuleCategoryData c = (ModuleCategoryData) iter.next(); if (c.getParentCategory() == null) modData.addRootModuleCategory(c); findCategoryModules(c,mods); findCategoryChildren(c,cats); } } } return modData; }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/a806bf744289bb0eed666b235887c8680d549d94/ModuleLoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ModuleLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5748, 681, 1937, 273, 2332, 18, 2972, 28512, 5621, 309, 261, 3893, 1263, 3630, 18, 9394, 13, 681, 1937, 273, 2332, 18, 2972, 28512, 5621, 1033, 5748, 681, 1937, 273, 2332, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5748, 681, 1937, 273, 2332, 18, 2972, 28512, 5621, 309, 261, 3893, 1263, 3630, 18, 9394, 13, 681, 1937, 273, 2332, 18, 2972, 28512, 5621, 1033, 5748, 681, 1937, 273, 2332, 18, ...
if (maxInstanceId != 0) { int info = findInstanceIdInfo(name); if (info != 0) { int attr = (info >>> 16); if ((attr & PERMANENT) != 0) { return true; } int id = (info & 0xFFFF); return NOT_FOUND != getInstanceIdValue(id);
int info = findInstanceIdInfo(name); if (info != 0) { int attr = (info >>> 16); if ((attr & PERMANENT) != 0) { return true;
public boolean has(String name, Scriptable start) { if (maxInstanceId != 0) { int info = findInstanceIdInfo(name); if (info != 0) { int attr = (info >>> 16); if ((attr & PERMANENT) != 0) { return true; } int id = (info & 0xFFFF); return NOT_FOUND != getInstanceIdValue(id); } } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { return prototypeValues.has(id); } } return super.has(name, start); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/993454366a57fd32ee051c61ff3a0658292d84f2/IdScriptableObject.java/clean/js/rhino/src/org/mozilla/javascript/IdScriptableObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 12, 780, 508, 16, 22780, 787, 13, 565, 288, 3639, 309, 261, 1896, 15327, 480, 374, 13, 288, 5411, 509, 1123, 273, 1104, 15327, 966, 12, 529, 1769, 5411, 309, 261, 1376,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 12, 780, 508, 16, 22780, 787, 13, 565, 288, 3639, 309, 261, 1896, 15327, 480, 374, 13, 288, 5411, 509, 1123, 273, 1104, 15327, 966, 12, 529, 1769, 5411, 309, 261, 1376,...
if(!init) load();
public static void setReverseSearch(boolean reverse) { if(!init) load(); if(reverse == SearchAndReplace.reverse) return; SearchAndReplace.reverse = reverse; matcher = null; EditBus.send(new SearchSettingsChanged(null)); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/7aaa73ee3a42b83e5e6dd59c74c7dec2873dce1b/SearchAndReplace.java/clean/org/gjt/sp/jedit/search/SearchAndReplace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 444, 12650, 2979, 12, 6494, 4219, 13, 202, 95, 202, 202, 430, 12, 5, 2738, 13, 1082, 202, 945, 5621, 202, 202, 430, 12, 9845, 422, 5167, 1876, 5729, 18, 9845, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 444, 12650, 2979, 12, 6494, 4219, 13, 202, 95, 202, 202, 430, 12, 5, 2738, 13, 1082, 202, 945, 5621, 202, 202, 430, 12, 9845, 422, 5167, 1876, 5729, 18, 9845, 13, ...
this.main = main; processArguments();
public CommandlineParser(Main main, String[] arguments) { this.arguments = arguments; this.main = main; processArguments(); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/d38821551a58969cd2593b463d93df5f32bf3c14/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3498, 1369, 2678, 12, 6376, 2774, 16, 514, 8526, 1775, 13, 288, 3639, 333, 18, 7099, 273, 1775, 31, 3639, 333, 18, 5254, 273, 2774, 31, 3639, 1207, 4628, 5621, 565, 289, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3498, 1369, 2678, 12, 6376, 2774, 16, 514, 8526, 1775, 13, 288, 3639, 333, 18, 7099, 273, 1775, 31, 3639, 333, 18, 5254, 273, 2774, 31, 3639, 1207, 4628, 5621, 565, 289, 2, -100, ...
bugCollection.readXML(args[0], new Project());
bugCollection.readXML(fileName, new Project());
public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: " + MineBugHistory.class.getName() + " <bug collection>"); System.exit(1); } SortedBugCollection bugCollection = new SortedBugCollection(); bugCollection.readXML(args[0], new Project()); MineBugHistory mineBugHistory = new MineBugHistory(bugCollection); mineBugHistory.execute(); mineBugHistory.dump(System.out); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/5f7b07591fab5b41dfbeefae59cdfcf104b5ef00/MineBugHistory.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/MineBugHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 202, 430, 261, 1968, 18, 2469, 480, 404, 13, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 315, 397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 202, 202, 430, 261, 1968, 18, 2469, 480, 404, 13, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 315, 397,...
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } org.tn5250j.tools.system.OperatingSystem.displayURL(eb .toString()); // take out the log statement when we are sure it is // working log.info("Send to external Browser: " + eb.toString()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x, aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option. // if (gui.rubberband.isAreaSelected()) { // gui.rubberband.reset(); // gui.repaint(); // } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true; // } } } return false; }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/9e2618326f7852e9e8cc8e20eec97e0221a1caff/Screen5250.java/buggy/src/org/tn5250j/framework/tn5250/Screen5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6494, 8501, 6688, 12, 9186, 1133, 73, 16, 474, 917, 15329, 202, 202, 430, 12, 5, 83, 1155, 18, 291, 653, 22233, 8966, 10756, 95, 1082, 202, 430, 12, 917, 32, 20, 13, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6494, 8501, 6688, 12, 9186, 1133, 73, 16, 474, 917, 15329, 202, 202, 430, 12, 5, 83, 1155, 18, 291, 653, 22233, 8966, 10756, 95, 1082, 202, 430, 12, 917, 32, 20, 13, 9506, ...
containerLog.error("Could not parse the users.xml file", e);
protected synchronized void parse() { //reset the principals cache this.principals = new HashMap(); try { UserFactory.init(); UserManager factory = UserFactory.getInstance(); //this.log.debug("Reloaded the users.xml file into memory"); Map map = factory.getUsers(); //this.log.debug("Loaded " + map.size() + " users into memory"); Iterator iterator = map.keySet().iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); OpenNMSPrincipal principal = new OpenNMSPrincipal((User) map.get(key)); this.principals.put(key, principal); } //this.log.debug("Loaded the regular users into the principal cache"); } catch (MarshalException e) { //this.log.error("Could not parse the users.xml file", e); } catch (ValidationException e) { //this.log.error("Could not parse the users.xml file", e); } catch (FileNotFoundException e) { //this.log.error("Could not find the users.xml file", e); } catch (Exception e) { //this.log.error("Unexpected exception parsing users.xml file", e); } try { //load the "magic" users Map[] maps = this.parseMagicUsers(); Map magicUserToPasswordMapping = maps[0]; this.magicRoleMapping = maps[1]; //this.log.debug("Loaded the magic user config file"); Iterator iterator = magicUserToPasswordMapping.keySet().iterator(); while (iterator.hasNext()) { String name = (String) iterator.next(); String password = (String) magicUserToPasswordMapping.get(name); User magicUser = new User(); magicUser.setUserId(name); magicUser.setPassword(UserFactory.getInstance().encryptedPassword(password)); this.principals.put(name, new OpenNMSPrincipal(magicUser)); } //this.log.debug("Loaded the magic users into the principal cache"); this.magicUsersLastModified = this.magicUsersFile.lastModified(); //this.log.debug("Updated the magic user file last modified time stamp to " + this.magicUsersLastModified); } catch (FileNotFoundException e) { //this.log.error("Could not find the magic users file", e); } catch (IOException e) { //this.log.error("Could not read the magic users file", e); } catch (Exception e) { //this.log.error("Unexpected exception parsing users.xml file", e); } initialized = true; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/73011c968f8c5392428cdb423188e5bc8a628dc6/OpenNMSTomcatRealm.java/buggy/opennms-tomcat/src/main/java/org/opennms/web/authenticate/OpenNMSTomcatRealm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1478, 1343, 18, 1636, 2932, 4445, 486, 1109, 326, 3677, 18, 2902, 585, 3113, 425, 1769, 1478, 1343, 18, 1636, 2932, 4445, 486, 1109, 326, 3677, 18, 2902, 585, 3113, 425, 1769, 1478, 1343, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1478, 1343, 18, 1636, 2932, 4445, 486, 1109, 326, 3677, 18, 2902, 585, 3113, 425, 1769, 1478, 1343, 18, 1636, 2932, 4445, 486, 1109, 326, 3677, 18, 2902, 585, 3113, 425, 1769, 1478, 1343, 18, ...
privateForums.add(forum);
privateForumsSet.add(forum);
public void addPrivateForum(BaseForum forum) { if (LOG.isDebugEnabled()) { LOG.debug("addPrivateForum(forum " + forum + ")"); } if (forum == null) { throw new IllegalArgumentException("forum == null"); } forum.setArea(this); privateForums.add(forum); }
48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/b80993c30a23954268c73fd480bbb35747ca01c4/AreaImpl.java/buggy/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/dao/hibernate/AreaImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 6014, 1290, 379, 12, 2171, 1290, 379, 11283, 13, 288, 1377, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1850, 2018, 18, 4148, 2932, 1289, 6014, 1290, 379, 12, 11725, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 6014, 1290, 379, 12, 2171, 1290, 379, 11283, 13, 288, 1377, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1850, 2018, 18, 4148, 2932, 1289, 6014, 1290, 379, 12, 11725, ...
if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); System.err.println("Restart returned!?"); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); }
void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.out.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); BufferedOutputStream bos = new BufferedOutputStream(fos); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } if(node.getNodeStarter()!=null) node.getNodeStarter().restart(); else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } } }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/a2aec0a4dd6b5e1752e939d66a6d9e5157694c38/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 430, 12, 2159, 18, 588, 907, 510, 14153, 1435, 5, 33, 2011, 13, 288, 2332, 18, 370, 18, 8222, 2932, 15057, 310, 2724, 434, 1089, 8863, 756, 18, 588, 907, 510, 14153, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 430, 12, 2159, 18, 588, 907, 510, 14153, 1435, 5, 33, 2011, 13, 288, 2332, 18, 370, 18, 8222, 2932, 15057, 310, 2724, 434, 1089, 8863, 756, 18, 588, 907, 510, 14153, 7675, ...
this.eventHandler.postValueChangeEvent(node, property);
this.eventHandler.preValueChangeEvent(node, property);
void preValueChangeEvent(ASTNode node, SimplePropertyDescriptor property) { if (this.disableEvents > 0) { // doing lazy init OR already processing an event // System.out.println("[BOUNCE CHANGE]"); //$NON-NLS-1$ return; } try { this.disableEvents++; this.eventHandler.postValueChangeEvent(node, property); // N.B. even if event handler blows up, the AST is not // corrupted since node has already been changed } finally { this.disableEvents--; } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c531b3f0c052a6b596da13730fb589efa2e45e52/AST.java/buggy/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 675, 620, 20930, 12, 9053, 907, 756, 16, 4477, 1396, 3187, 1272, 13, 288, 202, 202, 430, 261, 2211, 18, 8394, 3783, 405, 374, 13, 288, 1082, 202, 759, 9957, 7962, 1208, 4869,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 675, 620, 20930, 12, 9053, 907, 756, 16, 4477, 1396, 3187, 1272, 13, 288, 202, 202, 430, 261, 2211, 18, 8394, 3783, 405, 374, 13, 288, 1082, 202, 759, 9957, 7962, 1208, 4869,...
Statement stmt = con.createStatement();
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
public void testBackward() throws SQLException { Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM testrs"); rs.afterLast(); assertTrue(rs.previous()); rs.close(); stmt.close(); }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/63188602de66fe5edda0a5bd745b1f19e18bb672/ResultSetTest.java/buggy/org/postgresql/test/jdbc2/ResultSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 26283, 1435, 1216, 6483, 202, 95, 202, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 202, 202, 13198, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 380, 4571, 268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26283, 1435, 1216, 6483, 202, 95, 202, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 202, 202, 13198, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 380, 4571, 268, ...
this.missingParameter = ReportEngineService.getInstance( ) .validateParameters( this.parameterTask, this.parameters );
public void init( HttpServletRequest request ) { String servletPath = request.getServletPath( ); if ( servletPath.indexOf( "/wr" ) != -1 ) //$NON-NLS-1$ { this.category = "ERNI"; //$NON-NLS-1$ } if ( ParameterAccessor.isGetImageOperator( request ) ) { return; } this.masterPageContent = ParameterAccessor .isMasterPageContent( request ); // Is in designer? this.isDesigner = ParameterAccessor.isDesigner( request ); // Determine the report design and doc 's timestamp this.reportDocumentName = ParameterAccessor.getReportDocument( request ); File reportDocFile = new File( reportDocumentName ); String reportDesignName = ParameterAccessor.getReport( request ); File reportDesignDocFile = new File( reportDesignName ); // If it is in designer and refresh the browser. if ( reportDesignDocFile != null && reportDesignDocFile.exists( ) && reportDesignDocFile.isFile( ) && reportDocFile != null && reportDocFile.exists( ) && reportDocFile.isFile( ) && "get".equalsIgnoreCase( request.getMethod( ) ) ) //$NON-NLS-1$ { if ( reportDesignDocFile.lastModified( ) > reportDocFile .lastModified( ) || ParameterAccessor.isOverwrite( request ) ) { reportDocFile.delete( ); } } if ( reportDocFile.exists( ) && ( reportDocFile.isFile( ) || reportDocFile.isDirectory( ) ) ) { this.reportDocumentInstance = ReportEngineService.getInstance( ) .openReportDocument( this.reportDocumentName ); if ( this.reportDocumentInstance == null ) { this.exception = new Exception( "Can not open report doc from " //$NON-NLS-1$ + ParameterAccessor.getReportDocument( request ) ); return; } this.reportRunnable = this.reportDocumentInstance .getReportRunnable( ); } else { try { this.reportRunnable = ReportEngineService.getInstance( ) .openReportDesign( ParameterAccessor.getReport( request ) ); } catch ( EngineException e ) { this.exception = e; return; } } // Double check the runnable. if ( this.reportRunnable == null ) { this.exception = new Exception( "Can not get report runnable" ); //$NON-NLS-1$ return; } // Report locale. this.locale = ParameterAccessor.getLocale( request ); // Report page. this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) ); // Report title. String title = null; if ( this.reportRunnable != null ) { title = (String) this.reportRunnable.getProperty( "title" ); //$NON-NLS-1$ } if ( title == null || title.trim( ).length( ) <= 0 ) { title = BirtResources.getString( "birt.viewer.title" ); //$NON-NLS-1$ } this.reportTitle = ParameterAccessor.htmlEncode( title ); // Bookmark. this.bookmark = ParameterAccessor.getBookmark( request ); // Prameter task. this.parameterTask = ReportEngineService.getInstance( ) .createGetParameterDefinitionTask( this.reportRunnable ); if ( this.parameterTask != null ) { this.parameterTask.setLocale( this.locale ); } // Prepare the report parameters this.parameters = ReportEngineService.getInstance( ).parseParameters( request, this.parameterTask, this.reportRunnable.getTestConfig( ), this.locale ); this.missingParameter = ReportEngineService.getInstance( ) .validateParameters( this.parameterTask, this.parameters ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/a8d6eb1b4f09b49bdb3d0ecbe2949941d1e7547e/ViewerAttributeBean.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 9984, 590, 262, 225, 202, 95, 202, 202, 780, 8100, 743, 273, 590, 18, 588, 4745, 743, 12, 11272, 202, 202, 430, 261, 8100, 743, 18, 31806, 12, 2206, 91, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 9984, 590, 262, 225, 202, 95, 202, 202, 780, 8100, 743, 273, 590, 18, 588, 4745, 743, 12, 11272, 202, 202, 430, 261, 8100, 743, 18, 31806, 12, 2206, 91, 86, ...
exceptionMembers.createSelectedObject(SelectedObjectTypeEnum.ATTRIBUTEREFERENCE);
exceptionMembers.createSelectedObject(SelectedObjectTypeEnum.ATTRIBUTE_REFERENCE);
private DimensionView createDataBasedExceptionFilter() throws OLAPException { Connection someConnection = getConnection(); DimensionView exceptionMembers = someConnection.createDimensionView(); Dimension prod = (Dimension)someConnection.getDimensions().get(0); Dimension geog = (Dimension)someConnection.getDimensions().get(1); Dimension meas = (Dimension)someConnection.getDimensions().get(2); Dimension time = (Dimension)someConnection.getDimensions().get(3); exceptionMembers.setDimension(prod); AttributeReference selectCode = (AttributeReference) exceptionMembers.createSelectedObject(SelectedObjectTypeEnum.ATTRIBUTEREFERENCE); Attribute code = (Attribute)prod.getFeature().get(0); selectCode.setAttribute(code); DimensionStepManager steps = exceptionMembers.createDimensionStepManager(); ExceptionMemberFilter prodsGT500 = (ExceptionMemberFilter) steps.createDimensionStep(DimensionStepTypeEnum.EXCEPTIONMEMBERFILTER); prodsGT500.setSetAction(SetActionTypeEnum.INITIAL); prodsGT500.setOp(OperatorTypeEnum.EQ); prodsGT500.setRhs(new Integer(500)); QualifiedMemberReference qmr1 = (QualifiedMemberReference) prodsGT500.createDataBasedMemberFilterInput(DataBasedMemberFilterInputTypeEnum.QUALIFIEDMEMBERREFERENCE); Member Sales = memberObjectFactories.createMember(meas); Member DavesStore = memberObjectFactories.createMember(geog); Member Jan2001 = memberObjectFactories.createMember(time); qmr1.addMember(Sales); qmr1.addMember(DavesStore); qmr1.addMember(Jan2001); return exceptionMembers; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/7d6a0c3d02156aab207b5017ce3ba65883fef640/JolapTest.java/buggy/src/main/mondrian/test/JolapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13037, 1767, 752, 751, 9802, 503, 1586, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 1952, 2690, 1952, 273, 6742, 5621, 202, 202, 8611, 1767, 1520, 6918, 273, 2690, 1952, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13037, 1767, 752, 751, 9802, 503, 1586, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 1952, 2690, 1952, 273, 6742, 5621, 202, 202, 8611, 1767, 1520, 6918, 273, 2690, 1952, 18,...
Matcher zMatcher = AUTHLOGINP.matcher(zTmp);
zMatcher = AUTHLOGINP.matcher(zTmp);
public static PopCommand parseUser(ByteBuffer buf) throws ParseException { ByteBuffer zDup = buf.duplicate(); String zTmp = AsciiCharBuffer.wrap(zDup).toString(); String zUser; boolean bIsAuthLogin; if (null == (zUser = getUser(zTmp, USERP)) && null == (zUser = getUser(zTmp, APOPP))) { zUser = null; Matcher zMatcher = AUTHLOGINP.matcher(zTmp); bIsAuthLogin = zMatcher.find(); } else { bIsAuthLogin = false; } String cmd = consumeToken(zDup); if (0 == cmd.length()) { throw new ParseException("cannot identify command: " + AsciiCharBuffer.wrap(buf)); } boolean space = eatSpace(zDup); String arg = consumeBuf(zDup); /* eat CRLF */ return new PopCommand(cmd, 0 == arg.length() ? null : arg, zUser, space, bIsAuthLogin); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/0fa6981be4ec9f4492fd3e8337888dc0773dfa18/PopCommand.java/clean/tran/mail/main/com/metavize/tran/mail/papi/pop/PopCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10264, 2189, 1109, 1299, 12, 12242, 1681, 13, 1216, 10616, 565, 288, 3639, 7400, 998, 30419, 273, 1681, 18, 17342, 5621, 3639, 514, 998, 9161, 273, 22475, 2835, 2156, 1892, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10264, 2189, 1109, 1299, 12, 12242, 1681, 13, 1216, 10616, 565, 288, 3639, 7400, 998, 30419, 273, 1681, 18, 17342, 5621, 3639, 514, 998, 9161, 273, 22475, 2835, 2156, 1892, 18, ...
throw Py.TypeError(_unsupportedop("**", o2));
throw Py.TypeError(_unsupportedop("**",o2));
public final PyObject _pow(PyObject o2) { PyObject x = __pow__(o2); if (x != null) return x; x = o2.__rpow__(this); if (x != null) return x; throw Py.TypeError(_unsupportedop("**", o2)); }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/c6dae27fe90bbb2da68237c71e920ecf2266a2fd/PyObject.java/buggy/src/org/python/core/PyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 4707, 921, 389, 23509, 12, 9413, 921, 320, 22, 13, 288, 3639, 4707, 921, 619, 273, 1001, 23509, 972, 12, 83, 22, 1769, 3639, 309, 261, 92, 480, 446, 13, 5411, 327, 619, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 4707, 921, 389, 23509, 12, 9413, 921, 320, 22, 13, 288, 3639, 4707, 921, 619, 273, 1001, 23509, 972, 12, 83, 22, 1769, 3639, 309, 261, 92, 480, 446, 13, 5411, 327, 619, 31,...
AST __t141 = _t;
AST __t143 = _t;
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST numericExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST plus = null; org.exist.xquery.parser.XQueryAST minus = null; org.exist.xquery.parser.XQueryAST uminus = null; org.exist.xquery.parser.XQueryAST uplus = null; org.exist.xquery.parser.XQueryAST div = null; org.exist.xquery.parser.XQueryAST idiv = null; org.exist.xquery.parser.XQueryAST mod = null; org.exist.xquery.parser.XQueryAST mult = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t140 = _t; plus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t140; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); op.setASTNode(plus); path.addPath(op); step= op; break; } case MINUS: { AST __t141 = _t; minus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t141; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); op.setASTNode(minus); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t142 = _t; uminus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t142; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.setASTNode(uminus); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t143 = _t; uplus = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t143; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.setASTNode(uplus); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t144 = _t; div = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t144; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); op.setASTNode(div); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t145 = _t; idiv = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t145; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); op.setASTNode(idiv); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t146 = _t; mod = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t146; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); op.setASTNode(mod); path.addPath(op); step= op; break; } case STAR: { AST __t147 = _t; mult = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t147; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); op.setASTNode(mult); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
protected void __execute( ) throws RemoteException { BaseAttributeBean attrBean = (BaseAttributeBean) context.getBean( ); boolean svgFlag = getSVGFlag( operation.getOprand( ) ); // First generate report document. runReport( ); String bookmark = null; boolean useBookmark = false; String docName = attrBean.getReportDocumentName( ); try { long pageNumber = getPageNumber( context.getRequest( ), operation .getOprand( ), docName ); if ( !isValidPageNumber( context.getRequest( ), pageNumber, docName ) ) { InputOptions options = new InputOptions( ); bookmark = getBookmark( operation.getOprand( ), attrBean ); if ( isToc( operation.getOprand( ), attrBean ) ) { bookmark = ( getReportService( ) ).findTocByName( docName, bookmark, options ); } if ( bookmark != null && bookmark.length( ) > 0 ) { options.setOption( InputOptions.OPT_REQUEST, context .getRequest( ) ); pageNumber = getReportService( ).getPageNumberByBookmark( docName, bookmark, options ); useBookmark = true; } if ( !isValidPageNumber( context.getRequest( ), pageNumber, docName ) ) { pageNumber = 1; useBookmark = false; } } doRenderPage( docName, pageNumber, svgFlag, attrBean .isMasterPageContent( ), useBookmark, bookmark, attrBean .getLocale( ), attrBean.isRtl( ) ); } catch ( ReportServiceException e ) { // TODO Auto-generated catch block e.printStackTrace( ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a5a3ffaa1b9c2d49e873d52a119a94b9ebf59337/AbstractChangeParameterActionHandler.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/AbstractChangeParameterActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6459, 972, 8837, 1435, 15069, 5169, 503, 202, 95, 202, 202, 2171, 1499, 3381, 1747, 3381, 28657, 2171, 1499, 3381, 13, 2472, 18, 588, 3381, 5621, 202, 202, 1075, 29510, 20105, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6459, 972, 8837, 1435, 15069, 5169, 503, 202, 95, 202, 202, 2171, 1499, 3381, 1747, 3381, 28657, 2171, 1499, 3381, 13, 2472, 18, 588, 3381, 5621, 202, 202, 1075, 29510, 20105, ...
hideWarnings = hideWarningsAction.isChecked();
hideErrors = hideErrorsAction.isChecked();
public void run() { hideWarnings = hideWarningsAction.isChecked(); resetMarkups(); VisualiserPlugin.refresh(); }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/161d965fe2e07d598d2ca2d42061de7571b0a3e6/AJDTMarkupProvider.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/ui/visualiser/AJDTMarkupProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 11248, 4312, 273, 6853, 4312, 1803, 18, 291, 11454, 5621, 6862, 202, 6208, 13111, 87, 5621, 6862, 202, 25780, 15914, 3773, 18, 9144, 5621, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 11248, 4312, 273, 6853, 4312, 1803, 18, 291, 11454, 5621, 6862, 202, 6208, 13111, 87, 5621, 6862, 202, 25780, 15914, 3773, 18, 9144, 5621, 9506, ...
return computeInstance (loc, "percentFormat", "#,##0%");
return getPercentInstance (Locale.getDefault());
public static NumberFormat getPercentInstance (Locale loc) { return computeInstance (loc, "percentFormat", "#,##0%"); }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/c787a1df99f9d2cf041902b8d17d46e564b6638a/NumberFormat.java/buggy/libjava/java/text/NumberFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 29587, 22612, 2998, 1442, 261, 3916, 1515, 13, 225, 288, 565, 327, 22612, 2998, 1442, 261, 3916, 18, 588, 1868, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 29587, 22612, 2998, 1442, 261, 3916, 1515, 13, 225, 288, 565, 327, 22612, 2998, 1442, 261, 3916, 18, 588, 1868, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -1...
return new Type(typeName, dimensions, source);
return new Type(typeName, dimensions, currentClass);
private Type createType(String typeName, int dimensions) { if (typeName == null || typeName.equals("")) return null; return new Type(typeName, dimensions, source); }
2045 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2045/4ff15e81798170244fd18295df1d13b8d68ad970/ModelBuilder.java/clean/qdox/src/java/com/thoughtworks/qdox/model/ModelBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1412, 752, 559, 12, 780, 8173, 16, 509, 5769, 13, 288, 3639, 309, 261, 723, 461, 422, 446, 747, 8173, 18, 14963, 2932, 6, 3719, 327, 446, 31, 3639, 327, 394, 1412, 12, 723, 461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1412, 752, 559, 12, 780, 8173, 16, 509, 5769, 13, 288, 3639, 309, 261, 723, 461, 422, 446, 747, 8173, 18, 14963, 2932, 6, 3719, 327, 446, 31, 3639, 327, 394, 1412, 12, 723, 461,...
form.assignSpId(new IntSelectId(id, IntSelectId.AHasPrecedence));
form.retrieveSpId().reset(id, IntSelectId.AHasPrecedence);
protected void resetEvent(PEActionForm form) { BwEvent event = form.getEditEvent(); /* Implant the current id(s) in new entries */ int id = 0; BwCategory k = event.getFirstCategory(); if (k != null) { id = k.getId(); form.setCategory(k); } /* A is the All box, B is the user preferred values. */ form.assignCategoryId(new IntSelectId(id, IntSelectId.AHasPrecedence)); BwSponsor s = event.getSponsor(); id = 0; if (s != null) { id = s.getId(); form.setSponsor(s); } form.assignSpId(new IntSelectId(id, IntSelectId.AHasPrecedence)); BwLocation l = event.getLocation(); id = 0; if (l != null) { id = l.getId(); form.setLocation(l); } form.assignLocId(new IntSelectId(id, IntSelectId.AHasPrecedence)); BwCalendar c = event.getCalendar(); id = 0; if (c != null) { id = c.getId(); form.setCalendar(c); } form.assignCalendarId(new IntSelectId(id, IntSelectId.AHasPrecedence)); }
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/6c8eff6ed7ca405e375f5e1b198cf8bf8d0ed41e/PEAbstractAction.java/buggy/calendar3/webadmin/src/org/bedework/webadmin/PEAbstractAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2715, 1133, 12, 1423, 1803, 1204, 646, 13, 288, 565, 605, 91, 1133, 871, 273, 646, 18, 588, 4666, 1133, 5621, 565, 1748, 28025, 970, 326, 783, 612, 12, 87, 13, 316, 394, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2715, 1133, 12, 1423, 1803, 1204, 646, 13, 288, 565, 605, 91, 1133, 871, 273, 646, 18, 588, 4666, 1133, 5621, 565, 1748, 28025, 970, 326, 783, 612, 12, 87, 13, 316, 394, 32...
if (evt.getType() == LayerEvent.REPLACE) { setLayers(evt.getLayers()); } }
if (evt.getType() == LayerEvent.REPLACE) { setLayers(evt.getLayers()); } }
public void setLayers(LayerEvent evt) { if (evt.getType() == LayerEvent.REPLACE) { setLayers(evt.getLayers()); } }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/8129aa34ead4526d50e88ca158f47d9dedf9c74d/MagicPlanetImageComponent.java/clean/src/openmap/com/bbn/openmap/image/MagicPlanetImageComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 9282, 12, 4576, 1133, 6324, 13, 288, 202, 202, 430, 261, 73, 11734, 18, 588, 559, 1435, 422, 12112, 1133, 18, 21726, 13, 288, 1082, 202, 542, 9282, 12, 73, 11734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 9282, 12, 4576, 1133, 6324, 13, 288, 202, 202, 430, 261, 73, 11734, 18, 588, 559, 1435, 422, 12112, 1133, 18, 21726, 13, 288, 1082, 202, 542, 9282, 12, 73, 11734, ...
if(activeEditor instanceof JavaEditor){
if (activeEditor instanceof JavaEditor) {
protected void checkOpenEditors(boolean checkNewSelection) { IEditorReference[] editorReferences = getSite().getPage().getEditorReferences(); if(editorReferences == null || editorReferences.length == 0){ deActivateView(); } else { if(checkNewSelection){ IEditorPart activeEditor = EclipseUtils.getActiveEditor(); if(activeEditor instanceof JavaEditor){ ITextSelection selection = EclipseUtils .getSelection(((JavaEditor) activeEditor) .getSelectionProvider()); handleSelectionChanged(activeEditor, selection); return; } } for (int i = 0; i < editorReferences.length; i++) { IEditorPart editor = editorReferences[i].getEditor(false); if(editor instanceof JavaEditor){ return; } } // here are all editors checked and no one is java editor deActivateView(); } }
8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/06956b11ae8b08a76d08092c252b9a202d4d1ab8/BytecodeOutlineView.java/buggy/eclipse/plugin/src/de/loskutov/bco/views/BytecodeOutlineView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 866, 3678, 4666, 1383, 12, 6494, 866, 1908, 6233, 13, 288, 3639, 467, 6946, 2404, 8526, 4858, 8221, 273, 11021, 7675, 588, 1964, 7675, 588, 6946, 8221, 5621, 3639, 309, 12, 917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 3678, 4666, 1383, 12, 6494, 866, 1908, 6233, 13, 288, 3639, 467, 6946, 2404, 8526, 4858, 8221, 273, 11021, 7675, 588, 1964, 7675, 588, 6946, 8221, 5621, 3639, 309, 12, 917...
push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray);
cfw.addPush(1); cfw.add(ByteCode.ANEWARRAY, "java/lang/Object"); cfw.addAStore(itsOneArgArray);
private void generatePrologue(Context cx, int directParameterCount) { if (inFunction && !itsUseDynamicScope && directParameterCount == -1) { // Unless we're either using dynamic scope or we're in a // direct call, use the enclosing scope of the function as our // variable object. aload(funObjLocal); classFile.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); } if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); // These locals are to be pre-allocated since they need function scope. // They are primarily used by the exception handling mechanism int localCount = scriptOrFn.getLocalCount(); if (localCount != 0) { itsLocalAllocationBase = (short)(argsLocal + 1); for (int i = 0; i < localCount; i++) { reserveWordLocal(itsLocalAllocationBase + i); } } if (inFunction && fnCurrent.getCheckThis()) { // Nested functions must check their 'this' value to // insure it is not an activation object: // see 10.1.6 Activation Object aload(thisObjLocal); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore(thisObjLocal); } hasVarsInRegs = inFunction && !fnCurrent.requiresActivation(); if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = scriptOrFn.getParamCount(); if (inFunction && parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be aload(argsLocal); addByteCode(ByteCode.ARRAYLENGTH); push(parmCount); int label = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, label); aload(argsLocal); push(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I" +")[Ljava/lang/Object;"); astore(argsLocal); markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < fnCurrent.getVarCount(); i++) { OptLocalVariable lVar = fnCurrent.getVar(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); push(0.0); dstore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); aload(argsLocal); push(i); addByteCode(ByteCode.AALOAD); astore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { pushUndefined(); firstUndefVar = lVar.getJRegister(); } else { aload(firstUndefVar); } astore(lVar.getJRegister()); } lVar.setStartPC(classFile.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = fnCurrent.getVarsArray(); // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. aload(argsLocal); push(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)[Ljava/lang/Object;"); astore(argsLocal); for (int i=0; i < directParameterCount; i++) { aload(argsLocal); push(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms aload((short) (3*i+4)); addByteCode(ByteCode.AASTORE); } } String debugVariableName; if (inFunction) { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); aload(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "activation"; } else { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); push(0); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"Z" +")Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "global"; } astore(variableObjectLocal); int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; i++) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, FunctionNode.FUNCTION_STATEMENT); } } // default is to generate debug info if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { OptLocalVariable lv = new OptLocalVariable(debugVariableName, false); lv.assignJRegister(variableObjectLocal); lv.setStartPC(classFile.getCurrentCodeOffset()); debugVars = new OptLocalVariable[1]; debugVars[0] = lv; } if (!inFunction) { // OPT: use dataflow to prove that this assignment is dead scriptResultLocal = getNewWordLocal(); pushUndefined(); astore(scriptResultLocal); } if (inFunction) { if (fnCurrent.itsContainsCalls0) { itsZeroArgArray = getNewWordLocal(); classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); astore(itsZeroArgArray); } if (fnCurrent.itsContainsCalls1) { itsOneArgArray = getNewWordLocal(); push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray); } } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 626, 1330, 344, 12, 1042, 9494, 16, 509, 2657, 1662, 1380, 13, 565, 288, 3639, 309, 261, 267, 2083, 597, 401, 1282, 3727, 9791, 3876, 597, 5411, 2657, 1662, 1380, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 626, 1330, 344, 12, 1042, 9494, 16, 509, 2657, 1662, 1380, 13, 565, 288, 3639, 309, 261, 267, 2083, 597, 401, 1282, 3727, 9791, 3876, 597, 5411, 2657, 1662, 1380, 422, ...
if ( xmlElement.getFirstChildElement("hatText").equals("true") ) {
if ( xmlElement.getFirstChildElement("hatText").getValue().equals("true") ) {
public void loadXmlElement(Element xmlElement) { super.loadXmlElement(xmlElement); Elements tmpElements; // Auslesen der Additions-Werte if (xmlElement.getFirstChildElement("addition") != null) { additionsID = xmlElement.getFirstChildElement("addition") .getAttributeValue("id"); try { additionsWert = Integer.parseInt(xmlElement .getFirstChildElement("addition") .getAttributeValue("wertigkeit")); } catch (NumberFormatException exc) { // TODO Richtige Fehlermeldung einbauen ProgAdmin.logger.severe("Fehler beim Auslesen einer Nummer: " + exc); } } // Auslesen, ob diese Fertigkeit noch Text bentigt if ( xmlElement.getFirstChildElement("hatText") != null ) { // Sicherstellen des Wertebereiches assert xmlElement.getFirstChildElement("hatText").getValue().equals("true") || xmlElement.getFirstChildElement("hatText").getValue().equals("false"); if ( xmlElement.getFirstChildElement("hatText").equals("true") ) { hatText = true; } // false ist default } // Auslesen, ob normal Whlbar oder nur ber Herkunft o.. zu bekommen if ( xmlElement.getFirstChildElement("istWaehlbar") != null ) { assert xmlElement.getFirstChildElement("istWaehlbar").getValue().equals("true") || xmlElement.getFirstChildElement("istWaehlbar").getValue().equals("false"); if ( xmlElement.getFirstChildElement("istWaehlbar").getValue().equals("false") ) { isWaehlbar = false; } // true ist default } // Auslesen fr welche CharArten die Fertigkeit ist tmpElements = xmlElement.getChildElements("fuerWelcheChars"); fuerWelcheChars = new Werte.CharArten[tmpElements.size()]; for (int i = 0; i < tmpElements.size(); i++) { fuerWelcheChars[i] = Werte.getCharArtenByXmlValue( tmpElements.get(i).getValue() ); } // Auslesen der Voraussetzungen if ( xmlElement.getFirstChildElement("voraussetzungen") != null ) { voraussetzung = new Voraussetzung(this); voraussetzung.loadXmlElement(xmlElement.getFirstChildElement("voraussetzungen")); } // Auslesen der GP Kosten try { gpKosten = Integer.parseInt(xmlElement.getAttributeValue("gp")); } catch (NumberFormatException exc) { // TODO Richtige Fehlermeldung einbauen ProgAdmin.logger.severe("Fehler beim Auslesen einer Nummer: " + exc); } }
9724 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9724/8e82ca0ff09cd4062d2ebb81c25b9cb397b3cc78/Fertigkeit.java/clean/alricg/src/org/d3s/alricg/CharKomponenten/Fertigkeit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 4432, 1046, 12, 1046, 2025, 1046, 13, 288, 377, 202, 9565, 18, 945, 4432, 1046, 12, 2902, 1046, 1769, 377, 202, 3471, 1853, 3471, 31, 377, 202, 377, 202, 759, 432, 407,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 4432, 1046, 12, 1046, 2025, 1046, 13, 288, 377, 202, 9565, 18, 945, 4432, 1046, 12, 2902, 1046, 1769, 377, 202, 3471, 1853, 3471, 31, 377, 202, 377, 202, 759, 432, 407,...
root.doCreateDirectory(99, p("dir")); Change c = new CreateFileChange(1, p("dir/name"), null);
root.doCreateDirectory(99, p("/dir")); Change c = new CreateFileChange(1, p("/dir/name"), null);
public void testAffectedEntryIdForCreateFileChange() { root.doCreateDirectory(99, p("dir")); Change c = new CreateFileChange(1, p("dir/name"), null); c.applyTo(root); assertElements(new IdPath[]{idp(99, 1)}, c.getAffectedEntryIdPaths()); assertTrue(c.affects(root.getEntry(1))); assertTrue(c.affects(root.getEntry(99))); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/ChangesTest.java/clean/LocalVcs/test/com/intellij/localvcs/ChangesTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 23775, 1622, 548, 1290, 1684, 812, 3043, 1435, 288, 565, 1365, 18, 2896, 1684, 2853, 12, 2733, 16, 293, 2932, 1214, 7923, 1769, 565, 7576, 276, 273, 394, 1788, 812, 3043,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 23775, 1622, 548, 1290, 1684, 812, 3043, 1435, 288, 565, 1365, 18, 2896, 1684, 2853, 12, 2733, 16, 293, 2932, 1214, 7923, 1769, 565, 7576, 276, 273, 394, 1788, 812, 3043,...
gf.getProgressBar().setValue(0); gf.getProgressBar().setIndeterminate(true);
public OculaFrame makeFrame(Ocula o, final Element element) { String name = element.getAttributeValue("name"); if (name == null) { name = "No Name"; } String iconName = element.getAttributeValue("icon"); if (iconName == null) { iconName = "NoIcon"; } Icon icon = Icons.getIcon(iconName); int cols = 3; try { String colValue = element.getAttributeValue("cols","3"); cols = Integer.parseInt(colValue); } catch (NumberFormatException nfe) { log.error("Tried to set columns to an invalid number, check the XML"); } final GridFrame gf = new GridFrame(name, icon, cols); String key = element.getAttributeValue("key"); if (key != null) { o.putContext(key, new FrameAndElement(gf, element)); } final Ocula ocula = o; new Thread() { public void run() { Parser parser = new Parser(ocula); gf.getProgressBar().setValue(0); gf.getProgressBar().setIndeterminate(true); try { Object result = parser.parseScript(element); if (result instanceof Object[]) { Object[] array = (Object[])result; for (int i = 0; i < array.length; i++) { final Object targetObject = array[i]; final JComponent component = ocula.getRendererHandler().getRenderer(targetObject); gf.getContents().add(component); // If there's a doubleclick action defined then register the appropriate // mouse listener... parser.parseDoubleClick(element, component, targetObject); parser.parseContextMenu(element, component, targetObject); gf.revalidate(); } } } catch (EvalError ee) { gf.getContents().add(new ErrorLabel("<html><body>Can't" + " fetch components.<p>See log output for more" + " details.</body></html>")); gf.revalidate(); log.error("Can't evaluate script", ee); } catch (Exception ex) { log.error("Unexpected exception!", ex); } gf.getProgressBar().setValue(100); gf.getProgressBar().setIndeterminate(false); } }.start(); return gf; }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/e5ee8f1d6178379b2d8f9e31fe6edc76c95ee187/GridFrameBuilder.java/clean/trunk/ocula/src/net/sf/taverna/ocula/frame/GridFrameBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 1934, 69, 3219, 1221, 3219, 12, 51, 1934, 69, 320, 16, 727, 3010, 930, 13, 288, 202, 780, 508, 273, 930, 18, 588, 14942, 2932, 529, 8863, 202, 430, 261, 529, 422, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 1934, 69, 3219, 1221, 3219, 12, 51, 1934, 69, 320, 16, 727, 3010, 930, 13, 288, 202, 780, 508, 273, 930, 18, 588, 14942, 2932, 529, 8863, 202, 430, 261, 529, 422, 446, 13, ...
AST tmp1662_AST_in = (AST)_t;
AST tmp1666_AST_in = (AST)_t;
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t106 = _t; AST tmp1617_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t106; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t107 = _t; AST tmp1618_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t107; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t108 = _t; AST tmp1619_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t108; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t109 = _t; AST tmp1620_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t109; _t = _t.getNextSibling(); break; } case ASC: { AST __t110 = _t; AST tmp1621_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t110; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t111 = _t; AST tmp1622_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t111; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t112 = _t; AST tmp1623_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t112; _t = _t.getNextSibling(); break; } case CANDO: { AST __t113 = _t; AST tmp1624_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t113; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t114 = _t; AST tmp1625_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t114; _t = _t.getNextSibling(); break; } case CANSET: { AST __t115 = _t; AST tmp1626_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t115; _t = _t.getNextSibling(); break; } case CAPS: { AST __t116 = _t; AST tmp1627_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t116; _t = _t.getNextSibling(); break; } case CHR: { AST __t117 = _t; AST tmp1628_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t117; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t118 = _t; AST tmp1629_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t118; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t119 = _t; AST tmp1630_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t119; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t120 = _t; AST tmp1631_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t120; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t121 = _t; AST tmp1632_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t121; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t122 = _t; AST tmp1633_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t122; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t123 = _t; AST tmp1634_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t123; _t = _t.getNextSibling(); break; } case DATE: { AST __t124 = _t; AST tmp1635_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t124; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t125 = _t; AST tmp1636_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t125; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t126 = _t; AST tmp1637_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t126; _t = _t.getNextSibling(); break; } case DAY: { AST __t127 = _t; AST tmp1638_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t127; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t128 = _t; AST tmp1639_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t128; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t129 = _t; AST tmp1640_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t129; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t130 = _t; AST tmp1641_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t130; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t131 = _t; AST tmp1642_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t131; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t132 = _t; AST tmp1643_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t132; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t133 = _t; AST tmp1644_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t133; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t134 = _t; AST tmp1645_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t134; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t135 = _t; AST tmp1646_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t135; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t136 = _t; AST tmp1647_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t136; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t137 = _t; AST tmp1648_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t137; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t138 = _t; AST tmp1649_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t138; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t139 = _t; AST tmp1650_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t139; _t = _t.getNextSibling(); break; } case EXP: { AST __t140 = _t; AST tmp1651_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t140; _t = _t.getNextSibling(); break; } case FILL: { AST __t141 = _t; AST tmp1652_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t141; _t = _t.getNextSibling(); break; } case FIRST: { AST __t142 = _t; AST tmp1653_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t142; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t143 = _t; AST tmp1654_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t143; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t144 = _t; AST tmp1655_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t144; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t145 = _t; AST tmp1656_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t145; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t146 = _t; AST tmp1657_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t146; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t147 = _t; AST tmp1658_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t147; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t148 = _t; AST tmp1659_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t149 = _t; AST tmp1660_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t150 = _t; AST tmp1661_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t150; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t151 = _t; AST tmp1662_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t151; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t152 = _t; AST tmp1663_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t152; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t153 = _t; AST tmp1664_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t153; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t154 = _t; AST tmp1665_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t154; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t155 = _t; AST tmp1666_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t155; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t156 = _t; AST tmp1667_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t156; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t157 = _t; AST tmp1668_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t157; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t158 = _t; AST tmp1669_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t158; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t159 = _t; AST tmp1670_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t159; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t160 = _t; AST tmp1671_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t160; _t = _t.getNextSibling(); break; } case INDEX: { AST __t161 = _t; AST tmp1672_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t161; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t162 = _t; AST tmp1673_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t162; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t163 = _t; AST tmp1674_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t163; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t164 = _t; AST tmp1675_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t164; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t165 = _t; AST tmp1676_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t165; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t166 = _t; AST tmp1677_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t166; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t167 = _t; AST tmp1678_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t167; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t168 = _t; AST tmp1679_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t168; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t169 = _t; AST tmp1680_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t169; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t170 = _t; AST tmp1681_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t170; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t171 = _t; AST tmp1682_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t171; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t172 = _t; AST tmp1683_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t172; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t173 = _t; AST tmp1684_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t173; _t = _t.getNextSibling(); break; } case LAST: { AST __t174 = _t; AST tmp1685_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t174; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t175 = _t; AST tmp1686_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t175; _t = _t.getNextSibling(); break; } case LC: { AST __t176 = _t; AST tmp1687_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t176; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t177 = _t; AST tmp1688_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t177; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t178 = _t; AST tmp1689_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t178; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t179 = _t; AST tmp1690_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t179; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t180 = _t; AST tmp1691_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t180; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t181 = _t; AST tmp1692_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t181; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t182 = _t; AST tmp1693_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t182; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t183 = _t; AST tmp1694_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t183; _t = _t.getNextSibling(); break; } case LOG: { AST __t184 = _t; AST tmp1695_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t184; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t185 = _t; AST tmp1696_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t185; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t186 = _t; AST tmp1697_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t186; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t187 = _t; AST tmp1698_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t187; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t188 = _t; AST tmp1699_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t188; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t189 = _t; AST tmp1700_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t189; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t190 = _t; AST tmp1701_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t190; _t = _t.getNextSibling(); break; } case MONTH: { AST __t191 = _t; AST tmp1702_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t191; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t192 = _t; AST tmp1703_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t192; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t193 = _t; AST tmp1704_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t193; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t194 = _t; AST tmp1705_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t194; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t195 = _t; AST tmp1706_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t195; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t196 = _t; AST tmp1707_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t196; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t197 = _t; AST tmp1708_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t197; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t198 = _t; AST tmp1709_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t198; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t199 = _t; AST tmp1710_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t199; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t200 = _t; AST tmp1711_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t200; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t201 = _t; AST tmp1712_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t201; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t202 = _t; AST tmp1713_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t202; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t203 = _t; AST tmp1714_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t203; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t204 = _t; AST tmp1715_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t204; _t = _t.getNextSibling(); break; } case ROUND: { AST __t205 = _t; AST tmp1716_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t205; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t206 = _t; AST tmp1717_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t206; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t207 = _t; AST tmp1718_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t207; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t208 = _t; AST tmp1719_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t208; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t209 = _t; AST tmp1720_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t209; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t210 = _t; AST tmp1721_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t210; _t = _t.getNextSibling(); break; } case SQRT: { AST __t211 = _t; AST tmp1722_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t211; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t212 = _t; AST tmp1723_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t212; _t = _t.getNextSibling(); break; } case STRING: { AST __t213 = _t; AST tmp1724_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t213; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t214 = _t; AST tmp1725_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t214; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t215 = _t; AST tmp1726_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t215; _t = _t.getNextSibling(); break; } case TRIM: { AST __t216 = _t; AST tmp1727_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t216; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t217 = _t; AST tmp1728_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t217; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t218 = _t; AST tmp1729_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t218; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t219 = _t; AST tmp1730_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t219; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t220 = _t; AST tmp1731_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t220; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t221 = _t; AST tmp1732_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t221; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t222 = _t; AST tmp1733_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t222; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t223 = _t; AST tmp1734_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t223; _t = _t.getNextSibling(); break; } case YEAR: { AST __t224 = _t; AST tmp1735_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t224; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1501, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1501, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1501, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1501, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
catch ( BadKind bk ) {} catch ( Bounds bounds ) {}
catch ( BadKind e ) { throw new EvaluationException(e); } catch ( Bounds e ) { throw new EvaluationException(e); }
public int compareTo( EvaluationResult other ) throws DynamicTypeException, EvaluationException { int _ret = Integer.MAX_VALUE; if ( logger_.isDebugEnabled() ) { logger_.debug( "compare " + this + ", " + other ); } if ( getValue() == null && any_ != null && other.getValue() instanceof String ) { logger_.debug( "case 1" ); try { String _l = any_.type().member_name( 0 ); String _r = other.getString(); _ret = _l.compareTo( other.getString() ); } catch ( BadKind bk ) {} catch ( Bounds bounds ) {} } else if ( isString() || other.isString() ) { _ret = getString().compareTo( other.getString() ); if ( _ret < -1 ) { _ret = -1; } else if ( _ret > 1 ) { _ret = 1; } } else if ( isFloat() || other.isFloat() ) { float _l = getFloat(); float _r = other.getFloat(); if ( _l < _r ) { _ret = -1; } else if ( _l == _r ) { _ret = 0; } else { _ret = 1; } } else { int _l = getLong(); int _r = other.getLong(); if ( _l < _r ) { _ret = -1; } else if ( _l == _r ) { _ret = 0; } else { _ret = 1; } } if ( _ret == Integer.MAX_VALUE ) { throw new DynamicTypeException(); } return _ret; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a2bc11728d871439c7c9a5660185015615f7b4a5/EvaluationResult.java/buggy/src/org/jacorb/notification/node/EvaluationResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9292, 12, 17340, 1253, 1308, 262, 1216, 12208, 14144, 16, 7734, 17340, 503, 565, 288, 3639, 509, 389, 1349, 273, 2144, 18, 6694, 67, 4051, 31, 3639, 309, 261, 1194, 27799, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9292, 12, 17340, 1253, 1308, 262, 1216, 12208, 14144, 16, 7734, 17340, 503, 565, 288, 3639, 509, 389, 1349, 273, 2144, 18, 6694, 67, 4051, 31, 3639, 309, 261, 1194, 27799, 291,...
public String[] getActionIds(String idPrefix) { if (LOG.isDebugEnabled()) { LOG.debug("enter: getActionIds(" + idPrefix + ")"); } if (idPrefix == null) { LOG.error("idPrefix cannot be null"); return null; } synchronized (myLock) { ArrayList<String> idList = new ArrayList<String>(); for (String id : myId2Action.keySet()) { if (id.startsWith(idPrefix)) { idList.add(id); } } return idList.toArray(new String[idList.size()]); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 8526, 588, 1803, 2673, 12, 780, 350, 2244, 15329, 430, 12, 4842, 18, 291, 2829, 1526, 10756, 95, 4842, 18, 4148, 2932, 2328, 30, 588, 1803, 2673, 2932, 15, 350, 2244, 9078, 2225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 8526, 588, 1803, 2673, 12, 780, 350, 2244, 15329, 430, 12, 4842, 18, 291, 2829, 1526, 10756, 95, 4842, 18, 4148, 2932, 2328, 30, 588, 1803, 2673, 2932, 15, 350, 2244, 9078, 2225, ...
Object object = context.objectAtIndex(index);
object = context.objectAtIndex(index);
protected void _prepareForIterationWithIndex(Context context, int index, WOContext wocontext, WOComponent wocomponent) { if (_item != null) { Object object = context.objectAtIndex(index); _item._setValueNoValidation(object, wocomponent); } if (_index != null) { Integer integer = ERXConstant.integerForInt(index); _index._setValueNoValidation(integer, wocomponent); } if (index != 0) wocontext.incrementLastElementIDComponent(); else wocontext.appendZeroElementIDComponent(); }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/600a43f3602974edf4e1e8d502247cd3e9fb0c23/ERXWORepetition.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXWORepetition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 9366, 1290, 10795, 1190, 1016, 12, 1042, 819, 16, 509, 770, 16, 678, 51, 1042, 341, 16550, 955, 16, 678, 51, 1841, 341, 9970, 1029, 13, 288, 3639, 309, 261, 67, 1726, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 9366, 1290, 10795, 1190, 1016, 12, 1042, 819, 16, 509, 770, 16, 678, 51, 1042, 341, 16550, 955, 16, 678, 51, 1841, 341, 9970, 1029, 13, 288, 3639, 309, 261, 67, 1726, ...
getLabelPosition( axaOverlayOrthogonal[i].getTitlePosition( ) ) ),
getLabelPosition( switchPosition( axaOverlayOrthogonal[i].getTitlePosition( ) ) ) ),
final void buildAxes( ) throws IllegalArgumentException, ChartException { final Axis[] axa = cwa.getPrimaryBaseAxes( ); final Axis axPrimaryBase = axa[0]; // NOTE: FOR REL 1 AXIS RENDERS, WE // SUPPORT A SINGLE PRIMARY BASE AXIS // ONLY if ( !axPrimaryBase.isSetOrientation( ) ) { axPrimaryBase.setOrientation( Orientation.HORIZONTAL_LITERAL ); } validateAxis( axPrimaryBase ); final Axis axPrimaryOrthogonal = cwa.getPrimaryOrthogonalAxis( axPrimaryBase ); validateAxis( axPrimaryOrthogonal ); if ( !axPrimaryOrthogonal.isSetOrientation( ) ) { axPrimaryOrthogonal.setOrientation( Orientation.VERTICAL_LITERAL ); } final Axis[] axaOverlayOrthogonal = cwa.getOrthogonalAxes( axPrimaryBase, false ); aax = new AllAxes( cwa.getPlot( ) .getClientArea( ) .getInsets( ) .scaledInstance( dPointToPixel ) ); // CONVERSION insCA = aax.getInsets( ); // SeriesDefinition sdBase = null; // // ONLY SUPPORT 1 BASE AXIS // if ( !axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) // { // // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS // sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) // .get( 0 ); // final ArrayList alRuntimeBaseSeries = sdBase.getRunTimeSeries( ); // if ( alRuntimeBaseSeries != null ) // { // // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS // seBaseRuntime = (Series) sdBase.getRunTimeSeries( ).get( 0 ); // } // } aax.swapAxes( cwa.isTransposed( ) ); // SETUP THE PRIMARY BASE-AXIS PROPERTIES AND ITS SCALE final OneAxis oaxPrimaryBase = new OneAxis( axPrimaryBase ); oaxPrimaryBase.set( getOrientation( IConstants.BASE ), transposeLabelPosition( IConstants.BASE, getLabelPosition( axPrimaryBase.getLabelPosition( ) ) ), transposeLabelPosition( IConstants.BASE, getLabelPosition( axPrimaryBase.getTitlePosition( ) ) ), axPrimaryBase.isSetCategoryAxis( ) && axPrimaryBase.isCategoryAxis( ) ); oaxPrimaryBase.setGridProperties( axPrimaryBase.getMajorGrid( ) .getLineAttributes( ), axPrimaryBase.getMinorGrid( ).getLineAttributes( ), axPrimaryBase.getMajorGrid( ).getTickAttributes( ), axPrimaryBase.getMinorGrid( ).getTickAttributes( ), transposeTickStyle( IConstants.BASE, getTickStyle( axPrimaryBase, MAJOR ) ), transposeTickStyle( IConstants.BASE, getTickStyle( axPrimaryBase, MINOR ) ), axPrimaryBase.getScale( ).getMinorGridsPerUnit( ) ); if ( cwa.isTransposed( ) ) { // TRANSPOSE ROTATION OF LABELS AS APPROPRIATE final Label laAxisLabels = (Label) EcoreUtil.copy( axPrimaryBase.getLabel( ) ); final Label laAxisTitle = (Label) EcoreUtil.copy( axPrimaryBase.getTitle( ) ); laAxisLabels.getCaption( ) .getFont( ) .setRotation( transposeAngle( laAxisLabels.getCaption( ) .getFont( ) .getRotation( ) ) ); laAxisTitle.getCaption( ) .getFont( ) .setRotation( transposeAngle( laAxisTitle.getCaption( ) .getFont( ) .getRotation( ) ) ); oaxPrimaryBase.set( laAxisLabels, laAxisTitle ); // ASSOCIATE // FONT, // ETC } else { oaxPrimaryBase.set( axPrimaryBase.getLabel( ), axPrimaryBase.getTitle( ) ); // ASSOCIATE FONT } oaxPrimaryBase.set( getIntersection( axPrimaryBase ) ); oaxPrimaryBase.set( axPrimaryBase.getLineAttributes( ) ); aax.definePrimary( oaxPrimaryBase ); // ADD TO AXIS SET // SETUP THE PRIMARY ORTHOGONAL-AXIS PROPERTIES AND ITS SCALE final OneAxis oaxPrimaryOrthogonal = new OneAxis( axPrimaryOrthogonal ); oaxPrimaryOrthogonal.set( getOrientation( IConstants.ORTHOGONAL ), transposeLabelPosition( IConstants.ORTHOGONAL, getLabelPosition( axPrimaryOrthogonal.getLabelPosition( ) ) ), transposeLabelPosition( IConstants.ORTHOGONAL, getLabelPosition( axPrimaryOrthogonal.getTitlePosition( ) ) ), axPrimaryOrthogonal.isSetCategoryAxis( ) && axPrimaryOrthogonal.isCategoryAxis( ) ); oaxPrimaryOrthogonal.setGridProperties( axPrimaryOrthogonal.getMajorGrid( ) .getLineAttributes( ), axPrimaryOrthogonal.getMinorGrid( ).getLineAttributes( ), axPrimaryOrthogonal.getMajorGrid( ).getTickAttributes( ), axPrimaryOrthogonal.getMinorGrid( ).getTickAttributes( ), transposeTickStyle( IConstants.ORTHOGONAL, getTickStyle( axPrimaryOrthogonal, MAJOR ) ), transposeTickStyle( IConstants.ORTHOGONAL, getTickStyle( axPrimaryOrthogonal, MINOR ) ), axPrimaryOrthogonal.getScale( ).getMinorGridsPerUnit( ) ); if ( cwa.isTransposed( ) ) { // TRANSPOSE ROTATION OF LABELS AS APPROPRIATE final Label laAxisLabels = (Label) EcoreUtil.copy( axPrimaryOrthogonal.getLabel( ) ); final Label laAxisTitle = (Label) EcoreUtil.copy( axPrimaryOrthogonal.getTitle( ) ); laAxisLabels.getCaption( ) .getFont( ) .setRotation( transposeAngle( laAxisLabels.getCaption( ) .getFont( ) .getRotation( ) ) ); laAxisTitle.getCaption( ) .getFont( ) .setRotation( transposeAngle( laAxisTitle.getCaption( ) .getFont( ) .getRotation( ) ) ); oaxPrimaryOrthogonal.set( laAxisLabels, laAxisTitle ); // ASSOCIATE // FONT, ETC } else { oaxPrimaryOrthogonal.set( axPrimaryOrthogonal.getLabel( ), axPrimaryOrthogonal.getTitle( ) ); // ASSOCIATE FONT, // ETC } oaxPrimaryOrthogonal.set( getIntersection( axPrimaryOrthogonal ) ); oaxPrimaryOrthogonal.set( axPrimaryOrthogonal.getLineAttributes( ) ); aax.definePrimary( oaxPrimaryOrthogonal ); // ADD TO AXIS SET // SETUP THE OVERLAY AXES aax.initOverlays( axaOverlayOrthogonal.length, getOrientation( IConstants.ORTHOGONAL ) ); OneAxis oaxOverlayOrthogonal; for ( int i = 0; i < axaOverlayOrthogonal.length; i++ ) { validateAxis( axaOverlayOrthogonal[i] ); if ( !axaOverlayOrthogonal[i].isSetOrientation( ) ) { axaOverlayOrthogonal[i].setOrientation( Orientation.VERTICAL_LITERAL ); } oaxOverlayOrthogonal = new OneAxis( axaOverlayOrthogonal[i] ); oaxOverlayOrthogonal.set( getOrientation( IConstants.ORTHOGONAL ), transposeLabelPosition( IConstants.ORTHOGONAL, getLabelPosition( axaOverlayOrthogonal[i].getLabelPosition( ) ) ), transposeLabelPosition( IConstants.ORTHOGONAL, getLabelPosition( axaOverlayOrthogonal[i].getTitlePosition( ) ) ), axaOverlayOrthogonal[i].isSetCategoryAxis( ) && axaOverlayOrthogonal[i].isCategoryAxis( ) ); oaxOverlayOrthogonal.setGridProperties( axaOverlayOrthogonal[i].getMajorGrid( ) .getLineAttributes( ), axaOverlayOrthogonal[i].getMinorGrid( ).getLineAttributes( ), axaOverlayOrthogonal[i].getMajorGrid( ).getTickAttributes( ), axaOverlayOrthogonal[i].getMinorGrid( ).getTickAttributes( ), transposeTickStyle( IConstants.ORTHOGONAL, getTickStyle( axaOverlayOrthogonal[i], MAJOR ) ), transposeTickStyle( IConstants.ORTHOGONAL, getTickStyle( axaOverlayOrthogonal[i], MINOR ) ), axaOverlayOrthogonal[i].getScale( ).getMinorGridsPerUnit( ) ); if ( cwa.isTransposed( ) ) { // TRANSPOSE ROTATION OF LABELS AS APPROPRIATE final Label laAxisLabels = (Label) EcoreUtil.copy( axaOverlayOrthogonal[i].getLabel( ) ); final Label laAxisTitle = (Label) EcoreUtil.copy( axaOverlayOrthogonal[i].getTitle( ) ); laAxisLabels.getCaption( ) .getFont( ) .setRotation( transposeAngle( laAxisLabels.getCaption( ) .getFont( ) .getRotation( ) ) ); laAxisTitle.getCaption( ) .getFont( ) .setRotation( transposeAngle( laAxisTitle.getCaption( ) .getFont( ) .getRotation( ) ) ); oaxOverlayOrthogonal.set( laAxisLabels, laAxisTitle ); // ASSOCIATE // FONT, // ETC } else { oaxOverlayOrthogonal.set( axaOverlayOrthogonal[i].getLabel( ), axaOverlayOrthogonal[i].getTitle( ) ); } oaxOverlayOrthogonal.set( axaOverlayOrthogonal[i].getLineAttributes( ) ); oaxOverlayOrthogonal.set( getIntersection( axaOverlayOrthogonal[i] ) ); aax.defineOverlay( i, oaxOverlayOrthogonal ); } // BUILD STACKED STRUCTURE (FOR STACKED SERIES) ASSOCIATED WITH EACH // ORTHOGONAL AXIS ssl = StackedSeriesLookup.create( cwa, rtc ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/536b54a46b25aa99e427a2fbd8217e09108c905a/PlotWith2DAxes.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 918, 1361, 26494, 12, 262, 1216, 2754, 16, 14804, 503, 202, 95, 202, 202, 6385, 15509, 8526, 1740, 69, 273, 14098, 69, 18, 588, 6793, 2171, 26494, 12, 11272, 202, 202, 6385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6385, 918, 1361, 26494, 12, 262, 1216, 2754, 16, 14804, 503, 202, 95, 202, 202, 6385, 15509, 8526, 1740, 69, 273, 14098, 69, 18, 588, 6793, 2171, 26494, 12, 11272, 202, 202, 6385, ...
hosts.add(fistr + "." + Integer.toString(i) + "." + thstr + "." + fostr);
testIt(fistr + "." + Integer.toString(i) + "." + thstr + "." + fostr);
public static void main(String[] argv) { try { System.out.println("Opening Logfile..."); String logname = new String("pubs"); FileOutputStream lofp = new FileOutputStream(logname); } catch(Exception e) { System.out.println("ERROR\n"); System.exit(1); } System.out.println("OK\n"); HashSet hosts = new HashSet(); System.out.println("Pub-Monkey 0.00 Alpha started\n"); String host = new String(); String fistr, sestr, thstr, fostr; if(argv[1] == "") { System.out.println("Usage: " + argv[0] + " <Hostname or IP>\n"); hosts.add("localhost"); } else { host = argv[1]; int dot; if(host.indexOf("*") != -1) { dot = host.indexOf("."); fistr = host.substring(0, dot); host = host.substring(dot+1, host.length()-dot); dot = host.indexOf("."); sestr = host.substring(0, dot); host = host.substring(dot+1, host.length()-dot); dot = host.indexOf("."); thstr = host.substring(0, dot); host = host.substring(dot+1, host.length()-dot); dot = host.indexOf("."); fostr = host.substring(0, dot); host = host.substring(dot+1, host.length()-dot); if(fistr.equals("*")) { for(int i=1; i != 256; i++) { hosts.add(Integer.toString(i) + "." + sestr + "." + thstr + "." + fostr); } } else if(sestr.equals("*")) { for(int i=1; i != 256; i++) { hosts.add(fistr + "." + Integer.toString(i) + "." + thstr + "." + fostr); } } else if(thstr.equals("*")) { for(int i=1; i != 256; i++) { hosts.add(fistr + "." + sestr + "." + Integer.toString(i) + "." + fostr); } } else if(fostr.equals("*")) { for(int i=1; i != 256; i++) { hosts.add(fistr + "." + sestr + "." + thstr + "." + Integer.toString(i)); } } else { hosts.add(host); } } else { hosts.add(host); } } Iterator it = hosts.iterator(); FtpTest affe; while(it.hasNext()) { System.out.println("\n"); affe = new FtpTest((String)it.next(), lofp); affe.work(); } }
12720 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12720/046136ab8dbd8f5d06253e1d47eb09ee454c0afc/Main.java/buggy/Java-Monkey/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 225, 288, 565, 775, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 21378, 1827, 768, 7070, 1769, 1377, 514, 613, 529, 273, 394, 514, 2932, 1017...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 225, 288, 565, 775, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 21378, 1827, 768, 7070, 1769, 1377, 514, 613, 529, 273, 394, 514, 2932, 1017...
labelRect.width = getWidthOfWidestLabel();
protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = getHeightOfTallestLabel(); } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = getWidthOfWidestLabel(); labelRect.height = contentRect.height; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4604, 2224, 6120, 1435, 225, 288, 565, 309, 261, 28372, 18, 588, 14097, 1435, 422, 804, 21824, 18, 44, 20344, 13, 1377, 288, 202, 1925, 6120, 18, 92, 273, 913, 6120, 18, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4604, 2224, 6120, 1435, 225, 288, 565, 309, 261, 28372, 18, 588, 14097, 1435, 422, 804, 21824, 18, 44, 20344, 13, 1377, 288, 202, 1925, 6120, 18, 92, 273, 913, 6120, 18, 92, ...
if (style.start > lineEnd)
if (style.start > lineEnd) {
public void lineGetStyle(LineStyleEvent event) { int lineStart = event.lineOffset; int lineEnd = lineStart + event.lineText.length(); int high = searchForStyle(lineStart, lineEnd); StyleRange style = null; Vector lineStyles = new Vector(); // index will represent a style that // -- starts after the line (end processing) // -- ends before the line (continue processing) // -- starts before the line, ends in the line (add range) // -- starts in the line, ends in the line (add range) // -- starts in the line, ends after the line (add range) // -- starts before the line, ends after the line (add range) for (int index = high; index < styleCount; index++) { style = styles[index]; if (style.start > lineEnd) // style starts after the line, end looping break; int styleEnd = style.start + style.length - 1; if (styleEnd >= lineStart) lineStyles.addElement(style); } event.styles = new StyleRange[lineStyles.size()]; lineStyles.copyInto(event.styles);}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/c79983f343427ad8099705604717bdf358ecac89/DefaultLineStyler.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/DefaultLineStyler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 980, 967, 2885, 12, 1670, 2885, 1133, 871, 13, 288, 202, 474, 29208, 273, 871, 18, 1369, 2335, 31, 202, 474, 980, 1638, 273, 29208, 397, 871, 18, 1369, 1528, 18, 2469, 5621, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 980, 967, 2885, 12, 1670, 2885, 1133, 871, 13, 288, 202, 474, 29208, 273, 871, 18, 1369, 2335, 31, 202, 474, 980, 1638, 273, 29208, 397, 871, 18, 1369, 1528, 18, 2469, 5621, 202, ...
public BaseInspectionVisitor buildVisitor() {
public BaseInspectionVisitor buildVisitor(){
public BaseInspectionVisitor buildVisitor() { return new SamePackageImportVisitor(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d6e7604c0e820eb6080db33dc4f7b731664f07e9/SamePackageImportInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/imports/SamePackageImportInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 14985, 7413, 1361, 7413, 1435, 95, 3639, 327, 394, 17795, 2261, 5010, 7413, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 14985, 7413, 1361, 7413, 1435, 95, 3639, 327, 394, 17795, 2261, 5010, 7413, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
default:
default:
public static String userTagAction(String property, ServletRequest req) { CmsFlexController controller = (CmsFlexController)req.getAttribute(CmsFlexController.ATTRIBUTE_NAME); CmsObject cms = controller.getCmsObject(); CmsUser user = cms.getRequestContext().currentUser(); if (property == null) { property = USER_PROPERTIES[0]; } String result = null; switch (USER_PROPERTIES_LIST.indexOf(property)) { case 0: // name result = user.getName(); break; case 1: // firstname result = user.getFirstname(); break; case 2: // lastname result = user.getLastname(); break; case 3: // email result = user.getEmail(); break; case 4: // street result = user.getAddress(); break; case 5: // zip result = (String)user.getAdditionalInfo(I_CmsConstants.C_ADDITIONAL_INFO_ZIPCODE); break; case 6: // city result = (String)user.getAdditionalInfo(I_CmsConstants.C_ADDITIONAL_INFO_TOWN); break; case 7: // description result = user.getDescription(); break; case 8: // group case 9: // currentgroup case 10: // defaultgroup result = ""; break; case 11: // otherstuff Iterator it = user.getAdditionalInfo().keySet().iterator(); CmsMessageContainer msgContainer = Messages.get().container(Messages.GUI_TAG_USER_ADDITIONALINFO_0); result = Messages.getLocalizedMessage(msgContainer, req); while (it.hasNext()) { Object o = it.next(); result += " " + o + "=" + user.getAdditionalInfo((String)o); } break; default: msgContainer = Messages.get().container(Messages.GUI_ERR_INVALID_USER_PROP_1, property); result = Messages.getLocalizedMessage(msgContainer, req); } return result; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ddc56fc5c5eded06965e63995ea01e3e542bccd5/CmsJspTagUser.java/buggy/src/org/opencms/jsp/CmsJspTagUser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 729, 1805, 1803, 12, 780, 1272, 16, 26470, 1111, 13, 288, 3639, 2149, 19667, 2933, 2596, 273, 261, 4747, 19667, 2933, 13, 3658, 18, 588, 1499, 12, 4747, 19667, 2933, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 729, 1805, 1803, 12, 780, 1272, 16, 26470, 1111, 13, 288, 3639, 2149, 19667, 2933, 2596, 273, 261, 4747, 19667, 2933, 13, 3658, 18, 588, 1499, 12, 4747, 19667, 2933, 18, ...
public Box layoutChildren(Context c, Box box) { //u.p("BoxLayout.layoutChildren("+box+")"); BlockBox block = (BlockBox)box; c.shrinkExtents(block); super.layoutChildren(c, block); c.unshrinkExtents(block); //u.p("BoxLayout.layoutChildren() returning children layout of: " + rt); return block; }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/buggy/src/java/org/joshy/html/BoxLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3514, 6741, 4212, 12, 1042, 71, 16, 3514, 2147, 15329, 759, 89, 18, 84, 2932, 3514, 3744, 18, 6741, 4212, 2932, 15, 2147, 9078, 2225, 1769, 1768, 3514, 2629, 28657, 1768, 3514, 13, 2147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3514, 6741, 4212, 12, 1042, 71, 16, 3514, 2147, 15329, 759, 89, 18, 84, 2932, 3514, 3744, 18, 6741, 4212, 2932, 15, 2147, 9078, 2225, 1769, 1768, 3514, 2629, 28657, 1768, 3514, 13, 2147,...
if (ChainBuilderAgent.DEBUG) System.err.println("start module links. link state is LINKING_MODULES");
private void startModuleLinks(PInputEvent e) { if (selectedModule == null) return; Point2D pos = e.getPosition(); boolean isInput = selectedModule.isOnInputSide(pos); Collection inputs = selectedModule.getInputParameters(); Collection outputs = selectedModule.getOutputParameters(); if (isInput == true || outputs.size() == 0) { // System.err.println("building module links on input side"); startModuleLinks(inputs); moduleLinksStartedAsInputs = true; } else { // System.err.println("building module links on output side"); startModuleLinks(outputs); moduleLinksStartedAsInputs = false; } //System.err.println("start module links. link state is LINKING_MODULES"); linkState = LINKING_MODULES; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 430, 261, 3893, 1263, 3630, 18, 9394, 13, 2332, 18, 370, 18, 8222, 2932, 1937, 1605, 4716, 18, 1692, 919, 353, 22926, 1360, 67, 12194, 55, 8863, 918, 430, 261, 3893, 1263, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 430, 261, 3893, 1263, 3630, 18, 9394, 13, 2332, 18, 370, 18, 8222, 2932, 1937, 1605, 4716, 18, 1692, 919, 353, 22926, 1360, 67, 12194, 55, 8863, 918, 430, 261, 3893, 1263, 36...
if (!PlatformUI.isWorkbenchRunning()) {
if (!PlatformUI.isWorkbenchRunning()) {
public void done(IJobChangeEvent event) { if (!PlatformUI.isWorkbenchRunning()) { return; } Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); //Only refresh if we are showing it removeJobInfo(info); //If there are no more left then refresh all on the last // displayed one. if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { refreshAll(); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 2731, 12, 45, 2278, 20930, 871, 13, 288, 7734, 309, 16051, 8201, 5370, 18, 291, 2421, 22144, 7051, 10756, 288, 6862, 202, 2463, 31, 9506, 202, 97, 7734, 4498, 787, 5583, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 2731, 12, 45, 2278, 20930, 871, 13, 288, 7734, 309, 16051, 8201, 5370, 18, 291, 2421, 22144, 7051, 10756, 288, 6862, 202, 2463, 31, 9506, 202, 97, 7734, 4498, 787, 5583, 273, ...
public org.quickfix.field.UnderlyingCouponPaymentDate getUnderlyingCouponPaymentDate() throws FieldNotFound { org.quickfix.field.UnderlyingCouponPaymentDate value = new org.quickfix.field.UnderlyingCouponPaymentDate();
public quickfix.field.UnderlyingCouponPaymentDate getUnderlyingCouponPaymentDate() throws FieldNotFound { quickfix.field.UnderlyingCouponPaymentDate value = new quickfix.field.UnderlyingCouponPaymentDate();
public org.quickfix.field.UnderlyingCouponPaymentDate getUnderlyingCouponPaymentDate() throws FieldNotFound { org.quickfix.field.UnderlyingCouponPaymentDate value = new org.quickfix.field.UnderlyingCouponPaymentDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteCancel.java/buggy/src/java/src/quickfix/fix44/QuoteCancel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 22744, 6032, 1626, 10833, 765, 6291, 22744, 6032, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 22744, 6032, 1626, 10833, 765, 6291, 22744, 6032, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, ...
readBufferPos = bufferPosMark; break; case ENTITY_TEXT: if (externalAllowed) { pushURL (false, name, getEntityIds (name), null, null, null, true); } else { error ("reference to external entity in attribute value.", name, null); } break; case ENTITY_NDATA: if (externalAllowed) { error ("unparsed entity reference in content", name, null); } else { error ("reference to external entity in attribute value.", name, null); } break; default: throw new RuntimeException (); } }
readBufferPos = bufferPosMark; break; case ENTITY_TEXT: if (externalAllowed) { pushURL(false, name, getEntityIds(name), null, null, null, true); } else { error("reference to external entity in attribute value.", name, null); } break; case ENTITY_NDATA: if (externalAllowed) { error("unparsed entity reference in content", name, null); } else { error("reference to external entity in attribute value.", name, null); } break; default: throw new RuntimeException(); } }
private void parseEntityRef (boolean externalAllowed) throws SAXException, IOException { String name; name = readNmtoken (true); require (';'); switch (getEntityType (name)) { case ENTITY_UNDECLARED: // NOTE: XML REC describes amazingly convoluted handling for // this case. Nothing as meaningful as being a WFness error // unless the processor might _legitimately_ not have seen a // declaration ... which is what this implements. String message; message = "reference to undeclared general entity " + name; if (skippedPE && !docIsStandalone) { handler.verror (message); // we don't know this entity, and it might be external... if (externalAllowed) handler.skippedEntity (name); } else error (message); break; case ENTITY_INTERNAL: pushString (name, getEntityValue (name)); //workaround for possible input pop before marking //the buffer reading position char t = readCh (); unread (t); int bufferPosMark = readBufferPos; int end = readBufferPos + getEntityValue (name).length(); for(int k = readBufferPos; k < end; k++){ t = readCh (); if (t == '&'){ t = readCh (); if (t == '#'){ //try to match a character ref tryReadCharRef (); //everything has been read if (readBufferPos >= end) break; k = readBufferPos; continue; } else if (Character.isLetter(t)){ //looks like an entity ref unread (t); readNmtoken (true); require (';'); //everything has been read if (readBufferPos >= end) break; k = readBufferPos; continue; } error(" malformed entity reference"); } } readBufferPos = bufferPosMark; break; case ENTITY_TEXT: if (externalAllowed) { pushURL (false, name, getEntityIds (name), null, null, null, true); } else { error ("reference to external entity in attribute value.", name, null); } break; case ENTITY_NDATA: if (externalAllowed) { error ("unparsed entity reference in content", name, null); } else { error ("reference to external entity in attribute value.", name, null); } break; default: throw new RuntimeException (); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/0820da75b03035b7198673adb4bd8108184d0cd8/XmlParser.java/clean/libraries/javalib/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1943, 1957, 261, 6494, 3903, 5042, 13, 565, 1216, 14366, 16, 1860, 565, 288, 202, 780, 508, 31, 202, 529, 273, 855, 50, 1010, 969, 261, 3767, 1769, 202, 6528, 7707, 435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 1943, 1957, 261, 6494, 3903, 5042, 13, 565, 1216, 14366, 16, 1860, 565, 288, 202, 780, 508, 31, 202, 529, 273, 855, 50, 1010, 969, 261, 3767, 1769, 202, 6528, 7707, 435...
if (needsThis > 0 || singleArgs + 1 < primArgTypes.length)
int explicitFrameArg = singleArgs + (varArgs ? 2 : 1) < primArgTypes.length ? 1 : 0; if (needsThis + explicitFrameArg > 0)
public void generateApplyMethodsWithContext(LambdaExp lexp) { int numApplyMethods = lexp.applyMethods == null ? 0 : lexp.applyMethods.size(); if (numApplyMethods == 0) return; ClassType save_class = curClass; curClass = lexp.getHeapFrameType(); if (! (curClass.getSuperclass().isSubtype(typeModuleWithContext))) curClass = moduleClass; ClassType procType = typeModuleMethod; Method save_method = method; CodeAttr code = null; Type[] applyArgs = { typeCallContext }; // First LambdaExp we seen suitable for this i. method = curClass.addMethod ("apply", applyArgs, (Type) Type.void_type, Access.PUBLIC); code = method.startCode(); Variable ctxVar = code.getArg(1); code.emitLoad(ctxVar); code.emitGetField(pcCallContextField); SwitchState aswitch = new SwitchState(code); for (int j = 0; j < numApplyMethods; ++j) { LambdaExp source = (LambdaExp) lexp.applyMethods.elementAt(j); Method[] primMethods = source.primMethods; int numMethods = primMethods.length; for (int i = 0; i < numMethods; i++) { // Select the subset of source.primMethods[*] that are suitable // for the current apply method. boolean varArgs = (i == numMethods - 1 && (source.max_args < 0 || source.max_args >= source.min_args + numMethods)); int methodIndex = i; aswitch.addCase(source.getSelectorValue(this) + i, code); int line = source.getLine(); if (line > 0) code.putLineNumber(source.getFile(), line); Method primMethod = primMethods[methodIndex]; Type[] primArgTypes = primMethod.getParameterTypes(); int singleArgs = source.min_args+methodIndex; Variable counter = null; int pendingIfEnds = 0; if (i > 4 && numMethods > 1) // FIXME { counter = code.addLocal(Type.int_type); code.emitLoad(ctxVar); code.emitGetField(typeCallContext.getDeclaredField("count")); if (source.min_args != 0) { code.emitPushInt(source.min_args); code.emitSub(Type.int_type); } code.emitStore(counter); } int needsThis = primMethod.getStaticFlag() ? 0 : 1; if (needsThis > 0 // The following is true if there is frame parameter. || singleArgs + 1 < primArgTypes.length) { code.emitPushThis(); if (curClass == moduleClass && mainClass != moduleClass) code.emitGetField(moduleInstanceMainField); } Declaration var = source.firstDecl(); for (int k = 0; k < singleArgs; k++) { if (counter != null && k >= source.min_args) { code.emitLoad(counter); code.emitIfIntLEqZero(); code.emitLoad(ctxVar); code.emitInvoke(primMethods[k - source.min_args]); code.emitElse(); pendingIfEnds++; code.emitInc(counter, (short) (-1)); } code.emitLoad(ctxVar); if (k <= 4 && ! varArgs && source.max_args <= 4) code.emitGetField(typeCallContext .getDeclaredField("value"+(k+1))); else { code.emitGetField(typeCallContext .getDeclaredField("values")); code.emitPushInt(k); code.emitArrayLoad(Type.pointer_type); } Type ptype = var.getType(); if (ptype != Type.pointer_type) CheckedTarget.emitCheckedCoerce(this, source, k+1, ptype); var = var.nextDecl(); } if (varArgs) { Type lastArgType = primArgTypes[singleArgs]; if (lastArgType instanceof ArrayType) { Type elType = ((ArrayType) lastArgType).getComponentType(); boolean mustConvert = ! "java.lang.Object".equals(elType.getName()); if (mustConvert) new Error("not implemented mustConvert restarg"); code.emitLoad(ctxVar); code.emitPushInt(singleArgs); code.emitInvokeVirtual(typeCallContext.getDeclaredMethod("getRestArgsArray", 1)); } else if ("gnu.lists.LList".equals (lastArgType.getName())) { code.emitLoad(ctxVar); code.emitPushInt(singleArgs); code.emitInvokeVirtual(typeCallContext.getDeclaredMethod("getRestArgsList", 1)); } else if (lastArgType == typeCallContext) code.emitLoad(ctxVar); else throw new RuntimeException("unsupported #!rest type:"+lastArgType); } code.emitLoad(ctxVar); // get $ctx code.emitInvoke(primMethod); while (--pendingIfEnds >= 0) code.emitFi(); if (defaultCallConvention < Compilation.CALL_WITH_CONSUMER) Target.pushObject.compileFromStack(this, source.getReturnType()); code.emitReturn(); } } aswitch.addDefault(code); Method errMethod = typeModuleMethod.getDeclaredMethod("applyError", 0); code.emitInvokeStatic(errMethod); code.emitReturn(); aswitch.finish(code); method = save_method; curClass = save_class; }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/4aea4c1122fea5b129b7c0396ebe59980295f720/Compilation.java/clean/gnu/expr/Compilation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2103, 7001, 4712, 4772, 12, 12025, 2966, 5275, 84, 13, 225, 288, 565, 509, 818, 7001, 4712, 1377, 273, 5275, 84, 18, 9010, 4712, 422, 446, 692, 374, 294, 5275, 84, 18, 9010, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 7001, 4712, 4772, 12, 12025, 2966, 5275, 84, 13, 225, 288, 565, 509, 818, 7001, 4712, 1377, 273, 5275, 84, 18, 9010, 4712, 422, 446, 692, 374, 294, 5275, 84, 18, 9010, ...
jjAddStates(13, 14);
jjAddStates(15, 16);
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7bffd0f8ffffd9ffL & l) != 0L) { if (kind > 17) kind = 17; jjCheckNAddStates(0, 6); } else if ((0x100002600L & l) != 0L) { if (kind > 6) kind = 6; } else if (curChar == 34) jjCheckNAdd(15); else if (curChar == 33) { if (kind > 9) kind = 9; } if (curChar == 38) jjstateSet[jjnewStateCnt++] = 4; break; case 4: if (curChar == 38 && kind > 7) kind = 7; break; case 5: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 4; break; case 13: if (curChar == 33 && kind > 9) kind = 9; break; case 14: if (curChar == 34) jjCheckNAdd(15); break; case 15: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddTwoStates(15, 16); break; case 16: if (curChar == 34 && kind > 16) kind = 16; break; case 18: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjstateSet[jjnewStateCnt++] = 18; break; case 19: if ((0x7bffd0f8ffffd9ffL & l) == 0L) break; if (kind > 17) kind = 17; jjCheckNAddStates(0, 6); break; case 20: if ((0x7bfff8f8ffffd9ffL & l) == 0L) break; if (kind > 17) kind = 17; jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x84002f0600000000L & l) == 0L) break; if (kind > 17) kind = 17; jjCheckNAddTwoStates(20, 21); break; case 23: if ((0x7bfff8f8ffffd9ffL & l) != 0L) jjCheckNAddStates(7, 9); break; case 24: if (curChar == 42 && kind > 20) kind = 20; break; case 26: if ((0x84002f0600000000L & l) != 0L) jjCheckNAddStates(7, 9); break; case 27: if ((0xfbfffcf8ffffd9ffL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(27, 28); break; case 29: if ((0x84002f0600000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(27, 28); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x97ffffff97ffffffL & l) != 0L) { if (kind > 17) kind = 17; jjCheckNAddStates(0, 6); } else if (curChar == 126) jjstateSet[jjnewStateCnt++] = 18; if (curChar == 92) jjCheckNAddStates(10, 12); else if (curChar == 78) jjstateSet[jjnewStateCnt++] = 11; else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 8; else if (curChar == 79) jjstateSet[jjnewStateCnt++] = 6; else if (curChar == 65) jjstateSet[jjnewStateCnt++] = 2; break; case 1: if (curChar == 68 && kind > 7) kind = 7; break; case 2: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 2; break; case 6: if (curChar == 82 && kind > 8) kind = 8; break; case 7: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 6; break; case 8: if (curChar == 124 && kind > 8) kind = 8; break; case 9: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if (curChar == 84 && kind > 9) kind = 9; break; case 11: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 10; break; case 12: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 11; break; case 15: jjAddStates(13, 14); break; case 17: if (curChar == 126) jjstateSet[jjnewStateCnt++] = 18; break; case 19: if ((0x97ffffff97ffffffL & l) == 0L) break; if (kind > 17) kind = 17; jjCheckNAddStates(0, 6); break; case 20: if ((0x97ffffff97ffffffL & l) == 0L) break; if (kind > 17) kind = 17; jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 92) jjCheckNAddTwoStates(22, 22); break; case 22: if ((0x6800000078000000L & l) == 0L) break; if (kind > 17) kind = 17; jjCheckNAddTwoStates(20, 21); break; case 23: if ((0x97ffffff97ffffffL & l) != 0L) jjCheckNAddStates(7, 9); break; case 25: if (curChar == 92) jjCheckNAddTwoStates(26, 26); break; case 26: if ((0x6800000078000000L & l) != 0L) jjCheckNAddStates(7, 9); break; case 27: if ((0x97ffffff97ffffffL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(27, 28); break; case 28: if (curChar == 92) jjCheckNAddTwoStates(29, 29); break; case 29: if ((0x6800000078000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(27, 28); break; case 30: if (curChar == 92) jjCheckNAddStates(10, 12); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 17) kind = 17; jjCheckNAddStates(0, 6); break; case 15: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(13, 14); break; case 20: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 17) kind = 17; jjCheckNAddTwoStates(20, 21); break; case 23: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(7, 9); break; case 27: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(27, 28); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/7e0155537ab810940c7534de404ae41e84cb2417/QueryParserTokenManager.java/clean/src/java/org/apache/lucene/queryParser/QueryParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 23, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 23, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
private Document handleFile(File file) { try { Set attrSet = new TreeSet(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(file); List tags = Util.getElements(doc.getDocumentElement(), "body/taglib/tag"); Iterator iter = tags.iterator(); while (iter.hasNext()) { Element tag = (Element) iter.next(); List attrList = Util.getElements(tag, "attribute"); Iterator attrIter = attrList.iterator(); while (attrIter.hasNext()) { Element attribute = (Element) attrIter.next(); String name = Util.getElementValue(attribute, "name"); attrSet.add(name); } } Element attributes = Util.addChildElement( doc.getDocumentElement(), "attributes", null); iter = attrSet.iterator(); while (iter.hasNext()) { String name = (String) iter.next(); Util.addChildElement(attributes, "attribute", name); } return doc; } catch (Exception e) { e.printStackTrace(); } return null; }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibReport.java/clean/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2519, 4110, 812, 12, 812, 768, 15329, 202, 202, 698, 95, 1082, 202, 694, 1747, 694, 33, 2704, 2471, 694, 5621, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2519, 4110, 812, 12, 812, 768, 15329, 202, 202, 698, 95, 1082, 202, 694, 1747, 694, 33, 2704, 2471, 694, 5621, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 14...
if (!(operand instanceof PsiReferenceExpression)) {
if(!(operand instanceof PsiReferenceExpression)){
public void visitPrefixExpression(PsiPrefixExpression prefixExpression) { super.visitPrefixExpression(prefixExpression); final PsiJavaToken operationSign = prefixExpression.getOperationSign(); if(operationSign == null) { return; } final IElementType tokenType = operationSign.getTokenType(); if (!tokenType.equals(JavaTokenType.PLUSPLUS) && !tokenType.equals(JavaTokenType.MINUSMINUS)) { return; } final PsiExpression operand = prefixExpression.getOperand(); if (!(operand instanceof PsiReferenceExpression)) { return; } final PsiElement referent = ((PsiReference) operand).resolve(); if (referent == null) { return; } if (referent.equals(variable)) { assigned = true; } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/VariableAssignedVisitor.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/VariableAssignedVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 2244, 2300, 12, 52, 7722, 2244, 2300, 1633, 2300, 13, 288, 3639, 2240, 18, 11658, 2244, 2300, 12, 3239, 2300, 1769, 3639, 727, 453, 7722, 5852, 1345, 1674, 2766, 273, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 2244, 2300, 12, 52, 7722, 2244, 2300, 1633, 2300, 13, 288, 3639, 2240, 18, 11658, 2244, 2300, 12, 3239, 2300, 1769, 3639, 727, 453, 7722, 5852, 1345, 1674, 2766, 273, 163...
if (vmVersion == null) return false;
if (vmVersion == null) { return false; }
private static boolean isCompatibleVersion(String vmVersion) { if (vmVersion == null) return false; StringTokenizer tokenizer = new StringTokenizer(vmVersion, " ._"); //$NON-NLS-1$ try { // make sure the running vm's major is >= the requirement if (!tokenizer.hasMoreTokens()) return true; int major = Integer.parseInt(tokenizer.nextToken()); if (major != MIN_JVM_VERSION_MAJOR) return major > MIN_JVM_VERSION_MAJOR; // make sure the running vm's minor is >= the requirement if (!tokenizer.hasMoreTokens()) return true; int minor = Integer.parseInt(tokenizer.nextToken()); if (minor != MIN_JVM_VERSION_MINOR) return minor > MIN_JVM_VERSION_MINOR; // make sure the running vm's service is >= the requirement if (!tokenizer.hasMoreTokens()) return true; int service = Integer.parseInt(tokenizer.nextToken()); return service >= MIN_JVM_VERSION_SERVICE; } catch (SecurityException e) { // If the security manager won't allow us to get the system // property, continue for now and let things fail later on // their own if necessary. return true; } catch (NumberFormatException e) { // If the version string was in a format that we don't understand, // continue and let things fail later on their own if necessary. return true; } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/IDEApplication.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 353, 14599, 1444, 12, 780, 4268, 1444, 13, 288, 3639, 309, 261, 3489, 1444, 422, 446, 13, 5411, 327, 629, 31, 3639, 16370, 10123, 273, 394, 16370, 12, 3489, 1444, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 353, 14599, 1444, 12, 780, 4268, 1444, 13, 288, 3639, 309, 261, 3489, 1444, 422, 446, 13, 5411, 327, 629, 31, 3639, 16370, 10123, 273, 394, 16370, 12, 3489, 1444, 16, 3...
Connection dbConn = Vault.getDbConnection();
Connection dbConn = m_dbConnection; if(m_dbConnection==null) dbConn = Vault.getDbConnection();
public static Element getElement(int id, int mapId) throws SQLException, MapsException { final String sqlQuery = "SELECT * FROM element WHERE elementid = ? AND mapid = ?"; Connection dbConn = Vault.getDbConnection(); PreparedStatement statement = dbConn.prepareStatement(sqlQuery); statement.setInt(1, id); statement.setInt(2, mapId); ResultSet rs = statement.executeQuery(); Element el = rs2Element(rs); rs.close(); statement.close(); Vault.releaseDbConnection(dbConn); return el; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/069d0e7b3a96289b7c94aecc6c8a14fee3498895/Factory.java/clean/opennms-webapp/src/main/java/org/opennms/web/map/db/Factory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3010, 7426, 12, 474, 612, 16, 509, 852, 548, 13, 1216, 6483, 16, 19837, 503, 288, 1377, 727, 514, 24451, 273, 315, 4803, 380, 4571, 930, 4852, 930, 350, 273, 692, 4116, 852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 7426, 12, 474, 612, 16, 509, 852, 548, 13, 1216, 6483, 16, 19837, 503, 288, 1377, 727, 514, 24451, 273, 315, 4803, 380, 4571, 930, 4852, 930, 350, 273, 692, 4116, 852, ...
for (int i=0; i<MAX_RETRY; i++) { Address result = current.allocSlowOnce(bytes, alignment, offset, inGC);
for (int i = 0; i < MAX_RETRY; i++) { Address result = current.allocSlowOnce(bytes, alignment, offset, inGC);
private Address allocSlowBody(int bytes, int alignment, int offset, boolean inGC) throws InlinePragma { int gcCountStart = Stats.gcCount(); Allocator current = this; for (int i=0; i<MAX_RETRY; i++) { Address result = current.allocSlowOnce(bytes, alignment, offset, inGC); if (!result.isZero()) return result; current = ActivePlan.mutator().getOwnAllocator(current); } Log.write("GC Warning: Possible VM range imbalance - Allocator.allocSlowBody failed on request of "); Log.write(bytes); Log.write(" on space "); Log.writeln(Plan.getSpaceNameFromAllocatorAnyLocal(this)); Log.write("gcCountStart = "); Log.writeln(gcCountStart); Log.write("gcCount (now) = "); Log.writeln(Stats.gcCount()); Space.printUsageMB(); Assert.dumpStack(); Assert.failWithOutOfMemoryError(); /* NOTREACHED */ return Address.zero(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/Allocator.java/buggy/MMTk/src/org/mmtk/utility/alloc/Allocator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5267, 4767, 28733, 2250, 12, 474, 1731, 16, 509, 8710, 16, 509, 1384, 16, 4766, 282, 1250, 316, 15396, 13, 377, 1216, 16355, 2050, 9454, 288, 377, 509, 8859, 1380, 1685, 273, 11486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5267, 4767, 28733, 2250, 12, 474, 1731, 16, 509, 8710, 16, 509, 1384, 16, 4766, 282, 1250, 316, 15396, 13, 377, 1216, 16355, 2050, 9454, 288, 377, 509, 8859, 1380, 1685, 273, 11486,...
anchorCh = (char)program[pc];
anchorCh = (char)(program[pc] & 0xFF);
executeREBytecode(REGlobalData gData, REMatchState x) { int pc = 0; byte program[] = gData.regexp.program; byte op = program[pc++]; REContinuationData currentContinuation = new REContinuationData(); REMatchState result = null; REBackTrackData backTrackData; int k, length, offset, parenIndex, parenCount, index; boolean anchor = false; char anchorCh = (char)0; char matchCh; int nextpc; char[] source; byte nextop; RECapture cap; REProgState curState; source = gData.regexp.source; currentContinuation.pc = 0; currentContinuation.op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(gData.cpbegin) + "\", start at " + x.cp);} /* * If the first node is a literal match, step the index into * the string until that match is made, or fail if it can't be * found at all. */ switch (op) { case REOP_UCFLAT1: case REOP_UCFLAT1i: anchorCh = (char)GET_ARG(pc); anchor = true; break; case REOP_FLAT1: case REOP_FLAT1i: anchorCh = (char)program[pc]; anchor = true; break; case REOP_FLAT: case REOP_FLATi: k = GET_ARG(pc); anchorCh = source[k]; anchor = true; break; default: break; } if (anchor) {if (debug) {System.out.println("Anchor ch = '" + anchorCh + "'");} anchor = false; while (x.cp < gData.cpend) { matchCh = gData.cpbegin[x.cp]; if ((matchCh == anchorCh) || (((gData.regexp.flags & JSREG_FOLD) != 0) && (canonicalize(matchCh) == canonicalize(anchorCh)))) { anchor = true; break; } else { gData.skipped++; x.cp++; } } if (!anchor) return null; } while (true) {if (debug) {System.out.println("Testing at " + x.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = x; break; case REOP_BOL: if (x.cp != 0) { RegExpImpl reImpl = getImpl(gData.cx); if (reImpl.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(gData.cpbegin[x.cp - 1])) { result = null; break; } } else { result = null; break; } } result = x; break; case REOP_EOL: if (x.cp != gData.cpend) { RegExpImpl reImpl = getImpl(gData.cx); if (reImpl.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(gData.cpbegin[x.cp])) { result = null; break; } } else { result = null; break; } } result = x; break; case REOP_WBDRY: if ((x.cp == 0 || !isWord(gData.cpbegin[x.cp - 1])) ^ !((x.cp < gData.cpend) && isWord(gData.cpbegin[x.cp]))) result = x; else result = null; break; case REOP_WNONBDRY: if ((x.cp == 0 || !isWord(gData.cpbegin[x.cp - 1])) ^ ((x.cp < gData.cpend) && isWord(gData.cpbegin[x.cp]))) result = x; else result = null; break; case REOP_DOT: if (x.cp != gData.cpend && !isLineTerm(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_DIGIT: if (x.cp != gData.cpend && isDigit(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_NONDIGIT: if (x.cp != gData.cpend && !isDigit(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_SPACE: if (x.cp != gData.cpend && Character.isWhitespace(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_NONSPACE: if (x.cp != gData.cpend && !Character.isWhitespace(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_ALNUM: if (x.cp != gData.cpend && isWord(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_NONALNUM: if (x.cp != gData.cpend && !isWord(gData.cpbegin[x.cp])) { result = x; result.cp++; } else result = null; break; case REOP_FLAT: offset = GET_ARG(pc); pc += ARG_LEN; length = GET_ARG(pc); pc += ARG_LEN; result = flatNMatcher(gData, x, offset, length); break; case REOP_FLATi: offset = GET_ARG(pc); pc += ARG_LEN; length = GET_ARG(pc); pc += ARG_LEN; result = flatNIMatcher(gData, x, offset, length); break; case REOP_FLAT1: matchCh = (char)program[pc++]; result = flatMatcher(gData, x, matchCh); break; case REOP_FLAT1i: matchCh = (char)program[pc++]; result = flatIMatcher(gData, x, matchCh); break; case REOP_UCFLAT1: matchCh = (char)GET_ARG(pc); pc += ARG_LEN; result = flatMatcher(gData, x, matchCh); break; case REOP_UCFLAT1i: matchCh = (char)GET_ARG(pc); pc += ARG_LEN; result = flatIMatcher(gData, x, matchCh); break; case REOP_ALT: nextpc = pc + GET_OFFSET(pc); nextop = program[nextpc++]; gData.stateStack[gData.stateStackTop].continuation.pc = currentContinuation.pc; gData.stateStack[gData.stateStackTop].continuation.op = currentContinuation.op; ++gData.stateStackTop; pushBackTrackState(gData, nextop, nextpc, x); pc += ARG_LEN; op = program[pc++]; continue; case REOP_JUMP: --gData.stateStackTop; currentContinuation.pc = gData.stateStack[gData.stateStackTop].continuation.pc; currentContinuation.op = gData.stateStack[gData.stateStackTop].continuation.op; offset = GET_OFFSET(pc); pc += offset; op = program[pc++]; continue; case REOP_LPAREN: parenIndex = GET_ARG(pc); pc += ARG_LEN; x.parens[parenIndex].index = x.cp; x.parens[parenIndex].length = 0; op = program[pc++]; continue; case REOP_RPAREN: parenIndex = GET_ARG(pc); pc += ARG_LEN; cap = x.parens[parenIndex]; cap.length = x.cp - cap.index; if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; continue; case REOP_BACKREF: parenIndex = GET_ARG(pc); pc += ARG_LEN; result = backrefMatcher(gData, x, parenIndex); break; case REOP_ASSERT: curState = gData.stateStack[gData.stateStackTop]; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; curState.max = gData.backTrackStackTop; curState.index = x.cp; ++gData.stateStackTop; pushBackTrackState(gData, REOP_ASSERTTEST, pc + GET_OFFSET(pc), x); pc += ARG_LEN; op = program[pc++]; continue; case REOP_ASSERT_NOT: curState = gData.stateStack[gData.stateStackTop]; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; curState.max = gData.backTrackStackTop; curState.index = x.cp; ++gData.stateStackTop; pushBackTrackState(gData, REOP_ASSERTNOTTEST, pc + GET_OFFSET(pc), x); pc += ARG_LEN; op = program[pc++]; continue; case REOP_ASSERTTEST: --gData.stateStackTop; curState = gData.stateStack[gData.stateStackTop]; x.cp = curState.index; gData.backTrackStackTop = curState.max; currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; if (result != null) result = x; break; case REOP_ASSERTNOTTEST: --gData.stateStackTop; curState = gData.stateStack[gData.stateStackTop]; x.cp = curState.index; gData.backTrackStackTop = curState.max; currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; if (result == null) result = x; else result = null; break; case REOP_CLASS: index = GET_ARG(pc); pc += ARG_LEN; result = classMatcher(gData, x, index); if (!gData.ok) return null; break; case REOP_END: if (x != null) return x; break; case REOP_STAR: curState = gData.stateStack[gData.stateStackTop]; curState.min = 0; curState.max = -1; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; currentContinuation.op = REOP_REPEAT; currentContinuation.pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc, x); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; continue; case REOP_PLUS: curState = gData.stateStack[gData.stateStackTop]; curState.min = 1; curState.max = -1; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; currentContinuation.op = REOP_REPEAT; currentContinuation.pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc, x); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; continue; case REOP_OPT: curState = gData.stateStack[gData.stateStackTop]; curState.min = 0; curState.max = 1; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; currentContinuation.op = REOP_REPEAT; currentContinuation.pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc, x); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; continue; case REOP_QUANT: curState = gData.stateStack[gData.stateStackTop]; curState.min = GET_ARG(pc); pc += ARG_LEN; curState.max = GET_ARG(pc); pc += ARG_LEN; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; currentContinuation.op = REOP_REPEAT; currentContinuation.pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc, x); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; continue; case REOP_ENDCHILD: pc = currentContinuation.pc; op = currentContinuation.op; continue; case REOP_REPEAT: --gData.stateStackTop; curState = gData.stateStack[gData.stateStackTop]; if (result == null) { /* * There's been a failure, see if we have enough children. */ currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; if (curState.min == 0) result = x; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(pc); break; } else { if ((curState.min == 0) && (x.cp == curState.index)) { /* matched an empty string, that'll get us nowhere */ result = null; currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(pc); break; } if (curState.min != 0) curState.min--; if (curState.max != -1) curState.max--; if (curState.max == 0) { result = x; currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(pc); break; } curState.index = x.cp; ++gData.stateStackTop; currentContinuation.op = REOP_REPEAT; currentContinuation.pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc, x); parenCount = GET_ARG(pc); pc += ARG_LEN; parenIndex = GET_ARG(pc); pc += 2 * ARG_LEN; op = program[pc++]; for (k = 0; k < parenCount; k++) x.parens[parenIndex + k].index = -1; } continue; case REOP_MINIMALSTAR: curState = gData.stateStack[gData.stateStackTop]; curState.min = 0; curState.max = -1; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; if (curState.min != 0) { currentContinuation.op = REOP_MINIMALREPEAT; currentContinuation.pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc, x); --gData.stateStackTop; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(pc); op = program[pc++]; } continue; case REOP_MINIMALPLUS: curState = gData.stateStack[gData.stateStackTop]; curState.min = 1; curState.max = -1; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; if (curState.min != 0) { currentContinuation.op = REOP_MINIMALREPEAT; currentContinuation.pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc, x); --gData.stateStackTop; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(pc); op = program[pc++]; } continue; case REOP_MINIMALOPT: curState = gData.stateStack[gData.stateStackTop]; curState.min = 0; curState.max = 1; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; if (curState.min != 0) { currentContinuation.op = REOP_MINIMALREPEAT; currentContinuation.pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc, x); --gData.stateStackTop; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(pc); op = program[pc++]; } continue; case REOP_MINIMALQUANT: curState = gData.stateStack[gData.stateStackTop]; curState.min = GET_ARG(pc); pc += ARG_LEN; curState.max = GET_ARG(pc); pc += ARG_LEN; curState.index = x.cp; curState.continuation.pc = currentContinuation.pc; curState.continuation.op = currentContinuation.op; ++gData.stateStackTop; if (curState.min != 0) { currentContinuation.op = REOP_MINIMALREPEAT; currentContinuation.pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc, x); --gData.stateStackTop; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(pc); op = program[pc++]; } continue; case REOP_MINIMALREPEAT: --gData.stateStackTop; curState = gData.stateStack[gData.stateStackTop]; if (result == null) { /* * Non-greedy failure - try to consume another child. */ if ((curState.max == -1) || (curState.max > 0)) { curState.index = x.cp; currentContinuation.op = REOP_MINIMALREPEAT; currentContinuation.pc = pc; parenCount = GET_ARG(pc); pc += ARG_LEN; parenIndex = GET_ARG(pc); pc += 2 * ARG_LEN; for (k = 0; k < parenCount; k++) x.parens[parenIndex + k].index = -1; ++gData.stateStackTop; op = program[pc++]; continue; } else { /* Don't need to adjust pc since we're going to pop. */ currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; break; } } else { if ((curState.min == 0) && (x.cp == curState.index)) { /* Matched an empty string, that'll get us nowhere. */ result = null; currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; break; } if (curState.min != 0) curState.min--; if (curState.max != -1) curState.max--; if (curState.min != 0) { currentContinuation.op = REOP_MINIMALREPEAT; currentContinuation.pc = pc; parenCount = GET_ARG(pc); pc += ARG_LEN; parenIndex = GET_ARG(pc); pc += 2 * ARG_LEN; for (k = 0; k < parenCount; k++) x.parens[parenIndex + k].index = -1; curState.index = x.cp; ++gData.stateStackTop; op = program[pc++]; continue; } else { currentContinuation.pc = curState.continuation.pc; currentContinuation.op = curState.continuation.op; curState.index = x.cp; ++gData.stateStackTop; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc, x); --gData.stateStackTop; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(pc); op = program[pc++]; continue; } } default: throw new RuntimeException(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (result == null) { if (gData.backTrackStackTop > 0) { gData.backTrackStackTop--; backTrackData = gData.backTrackStack[gData.backTrackStackTop]; gData.lastParen = backTrackData.lastParen; x = new REMatchState(backTrackData.state); for (k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; if (gData.stateStackTop <= 0) throw new RuntimeException(); currentContinuation.op = gData.stateStack[gData.stateStackTop - 1].continuation.op; currentContinuation.pc = gData.stateStack[gData.stateStackTop - 1].continuation.pc; pc = backTrackData.continuation.pc; op = backTrackData.continuation.op; continue; } else return null; } else x = result; /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation.pc; op = currentContinuation.op; } }// return null; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/17b4a2e105868df40a834c33bbe2c0322f42502f/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1836, 862, 858, 16651, 12, 862, 5160, 751, 314, 751, 16, 2438, 2060, 1119, 619, 13, 565, 288, 3639, 509, 6125, 273, 374, 31, 3639, 1160, 5402, 8526, 273, 314, 751, 18, 17745, 18, 12890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1836, 862, 858, 16651, 12, 862, 5160, 751, 314, 751, 16, 2438, 2060, 1119, 619, 13, 565, 288, 3639, 509, 6125, 273, 374, 31, 3639, 1160, 5402, 8526, 273, 314, 751, 18, 17745, 18, 12890,...
super(position);
super(position, NodeTypes.BLOCKNODE);
public BlockNode(ISourcePosition position) { super(position); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/6e15491217631472c05c6928672f9c7064a978b3/BlockNode.java/buggy/src/org/jruby/ast/BlockNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3914, 907, 12, 45, 1830, 2555, 1754, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 11403, 8744, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3914, 907, 12, 45, 1830, 2555, 1754, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 11403, 8744, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
IViewReference array[] = new IViewReference[fastViews.size()]; fastViews.toArray(array);
ArrayList trueFVBRefs = new ArrayList(); for (Iterator fvs = fastViews.iterator(); fvs.hasNext();) { IViewReference ref = (IViewReference) fvs.next(); if (getTrimPartForRef(ref) == null) trueFVBRefs.add(ref); } IViewReference array[] = new IViewReference[trueFVBRefs.size()]; trueFVBRefs.toArray(array);
public IViewReference[] getFastViews() { IViewReference array[] = new IViewReference[fastViews.size()]; fastViews.toArray(array); return array; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0d98e0705c30cdb00b452b4fac8f914fa706e643/Perspective.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1767, 2404, 8526, 2812, 689, 9959, 1435, 288, 3639, 467, 1767, 2404, 526, 8526, 273, 394, 467, 1767, 2404, 63, 8076, 9959, 18, 1467, 1435, 15533, 3639, 4797, 9959, 18, 31447, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1767, 2404, 8526, 2812, 689, 9959, 1435, 288, 3639, 467, 1767, 2404, 526, 8526, 273, 394, 467, 1767, 2404, 63, 8076, 9959, 18, 1467, 1435, 15533, 3639, 4797, 9959, 18, 31447, 1...
}
}
public final Object getClientProperty(Object key) { return getClientProperties().get(key); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 7635, 1396, 12, 921, 498, 13, 202, 95, 565, 327, 7635, 2297, 7675, 588, 12, 856, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 7635, 1396, 12, 921, 498, 13, 202, 95, 565, 327, 7635, 2297, 7675, 588, 12, 856, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...