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
byte[] digest = MD5Digest.encode(PG_USER, password, salt);
byte[] digest = MD5Digest.encode(PG_USER, password, md5Salt);
public void openConnection(String host, int port, Properties info, String database, String url, org.postgresql.Driver d) throws SQLException { firstWarning = null; // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if (info.getProperty("user") == null) throw new PSQLException("postgresql.con.user"); this_driver = (org.postgresql.Driver)d; this_url = url; PG_DATABASE = database; PG_USER = info.getProperty("user"); String password = info.getProperty("password", ""); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; if (info.getProperty("compatible") == null) { compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else { compatible = info.getProperty("compatible"); } //Read loglevel arg and set the loglevel based on this value //in addition to setting the log level enable output to //standard out if no other printwriter is set String l_logLevelProp = info.getProperty("loglevel","0"); int l_logLevel = 0; try { l_logLevel = Integer.parseInt(l_logLevelProp); if (l_logLevel > org.postgresql.Driver.DEBUG || l_logLevel < org.postgresql.Driver.INFO) { l_logLevel = 0; } } catch (Exception l_e) { //invalid value for loglevel ignore } if (l_logLevel > 0) { org.postgresql.Driver.setLogLevel(l_logLevel); enableDriverManagerLogging(); } //Print out the driver version number if (org.postgresql.Driver.logInfo) org.postgresql.Driver.info(org.postgresql.Driver.getVersion()); // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <[email protected]> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed", e); } // Now we need to construct and send a startup packet try { new StartupPacket(PG_PROTOCOL_LATEST_MAJOR, PG_PROTOCOL_LATEST_MINOR, PG_USER, database).writeTo(pg_stream); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); String salt = null; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pg_stream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst, 0, 2); if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { byte[] rst = new byte[4]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); rst[2] = (byte)pg_stream.ReceiveChar(); rst[3] = (byte)pg_stream.ReceiveChar(); salt = new String(rst, 0, 4); if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("MD5 salt=" + salt); } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("postgresql: PASSWORD"); pg_stream.SendInteger(5 + password.length(), 4); pg_stream.Send(password.getBytes()); pg_stream.SendInteger(0, 1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, password); pg_stream.SendInteger(5 + crypted.length(), 4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0, 1); pg_stream.flush(); break; case AUTH_REQ_MD5: if (org.postgresql.Driver.logDebug) org.postgresql.Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, password, salt); pg_stream.SendInteger(5 + digest.length, 4); pg_stream.Send(digest); pg_stream.SendInteger(0, 1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth", new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp; do { beresp = pg_stream.ReceiveChar(); switch (beresp) { case 'K': pid = pg_stream.ReceiveIntegerR(4); ckey = pg_stream.ReceiveIntegerR(4); break; case 'E': throw new PSQLException("postgresql.con.backend", pg_stream.ReceiveString(encoding)); case 'N': addWarning(pg_stream.ReceiveString(encoding)); break; default: throw new PSQLException("postgresql.con.setup"); } } while (beresp == 'N'); // Expect ReadyForQuery packet do { beresp = pg_stream.ReceiveChar(); switch (beresp) { case 'Z': break; case 'N': addWarning(pg_stream.ReceiveString(encoding)); break; case 'E': throw new PSQLException("postgresql.con.backend", pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } } while (beresp == 'N'); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. java.sql.ResultSet resultSet = ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/369e2b6afa355ddc36a9d6e3c9f71354bd1780d9/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 2358, 18, 2767, 24330, 18, 4668, 302, 13, 1216, 6483, 3639, 288, 7734, 1122, 6210, 273, 446, 31, 7734, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 7734, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 7734, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 7734, 309, 261, 1376, 18, 588, 1396, 2932, 1355, 7923, 422, 446, 13, 13491, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 7734, 333, 67, 7407, 273, 261, 3341, 18, 2767, 24330, 18, 4668, 13, 72, 31, 7734, 333, 67, 718, 273, 880, 31, 7734, 22116, 67, 22366, 273, 2063, 31, 7734, 22116, 67, 4714, 273, 1123, 18, 588, 1396, 2932, 1355, 8863, 7734, 514, 2201, 273, 1123, 18, 588, 1396, 2932, 3664, 3113, 1408, 1769, 7734, 22116, 67, 6354, 273, 1756, 31, 7734, 22116, 67, 8908, 273, 1479, 31, 7734, 22116, 67, 8608, 273, 20695, 67, 16234, 31, 7734, 309, 261, 1376, 18, 588, 1396, 2932, 10943, 7923, 422, 446, 13, 7734, 288, 13491, 7318, 273, 302, 18, 588, 17581, 1444, 1435, 397, 4585, 397, 302, 18, 588, 19549, 1444, 5621, 7734, 289, 7734, 469, 7734, 288, 13491, 7318, 273, 1123, 18, 588, 1396, 2932, 10943, 8863, 7734, 289, 7734, 368, 1994, 21252, 1501, 471, 444, 326, 21252, 2511, 603, 333, 460, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 2358, 18, 2767, 24330, 18, 4668, 302, 13, 1216, 6483, 3639, 288, 7734, 1122, 6210, 273, 446, 31, 7734, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 7734, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 7734, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 7734, 309, 261, 1376, 18, 588, 1396, 2932, 1355, 7923, 422, 446, 13, 13491, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 7734, 333, 67, 7407, 273, 261, 3341, 18, 2767, 24330, 18, 4668, 13, 2 ]
/* Moved to Opened Event IDocumentProvider provider = ECGEclipseSensor.this.activeTextEditor .getDocumentProvider(); IDocument document = provider .getDocument(ECGEclipseSensor.this.activeTextEditor .getEditorInput()); document.addDocumentListener(new DocumentListenerAdapter()); */
public void partActivated(final IWorkbenchPart part) { logger.entering(this.getClass().getName(), "partActivated", new Object[] {part}); if (part == null) { logger.log(Level.FINE, "The Parameter part is null. Ignoring event."); logger.exiting(this.getClass().getName(), "partActivated"); return; } if (part instanceof IEditorPart) { if (part instanceof ITextEditor) { ECGEclipseSensor.this.activeTextEditor = (ITextEditor) part; /* Moved to Opened Event IDocumentProvider provider = ECGEclipseSensor.this.activeTextEditor .getDocumentProvider(); IDocument document = provider .getDocument(ECGEclipseSensor.this.activeTextEditor .getEditorInput()); document.addDocumentListener(new DocumentListenerAdapter()); */ } logger.log(ECGLevel.PACKET, "An editorActivated event has been recorded."); processActivity( "msdt.editor.xsd", "<?xml version=\"1.0\"?><microActivity><commonData><username>" + ECGEclipseSensor.this.username + "</username><projectname>" + ECGEclipseSensor.this.projectname + "</projectname></commonData><editor><activity>activated</activity><editorname>" + part.getTitle() + "</editorname></editor></microActivity>"); } else if (part instanceof IViewPart) { logger.log(ECGLevel.PACKET, "A partActivated event has been recorded."); processActivity( "msdt.part.xsd", "<?xml version=\"1.0\"?><microActivity><commonData><username>" + ECGEclipseSensor.this.username + "</username><projectname>" + ECGEclipseSensor.this.projectname + "</projectname></commonData><part><activity>activated</activity><partname>" + part.getTitle() + "</partname></part></microActivity>"); } logger.exiting(this.getClass().getName(), "partActivated"); }
239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/5ed2ef19195bccf351da3a592e8e7bfd342af8fc/ECGEclipseSensor.java/clean/sensors/eclipse/ECG_EclipseSensor/src/org/electrocodeogram/sensor/eclipse/ECGEclipseSensor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1087, 28724, 12, 6385, 467, 2421, 22144, 1988, 1087, 13, 288, 5411, 1194, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 2680, 28724, 3113, 7734, 394, 1033, 8526, 288, 2680, 22938, 5411, 309, 261, 2680, 422, 446, 13, 288, 7734, 1194, 18, 1330, 12, 2355, 18, 42, 3740, 16, 10792, 315, 1986, 5498, 1087, 353, 446, 18, 467, 16997, 871, 1199, 1769, 7734, 1194, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 2680, 28724, 8863, 7734, 327, 31, 5411, 289, 5411, 309, 261, 2680, 1276, 467, 6946, 1988, 13, 288, 27573, 309, 261, 2680, 1276, 467, 1528, 6946, 13, 288, 10792, 7773, 7113, 71, 10472, 22294, 18, 2211, 18, 3535, 1528, 6946, 273, 261, 1285, 408, 6946, 13, 1087, 31, 10792, 1748, 490, 9952, 358, 3502, 329, 2587, 10792, 1599, 504, 650, 2249, 2893, 273, 7773, 7113, 71, 10472, 22294, 18, 2211, 18, 3535, 1528, 6946, 13491, 263, 588, 2519, 2249, 5621, 10792, 1599, 504, 650, 1668, 273, 2893, 13491, 263, 588, 2519, 12, 7228, 7113, 71, 10472, 22294, 18, 2211, 18, 3535, 1528, 6946, 27573, 263, 588, 6946, 1210, 10663, 10792, 1668, 18, 1289, 2519, 2223, 12, 2704, 4319, 2223, 4216, 10663, 4766, 3639, 1195, 7734, 289, 27573, 1194, 18, 1330, 12, 7228, 43, 2355, 18, 12231, 1584, 16, 10792, 315, 979, 4858, 28724, 871, 711, 2118, 16421, 1199, 1769, 7734, 1207, 6193, 12, 10792, 315, 959, 7510, 18, 9177, 18, 19144, 3113, 10792, 20410, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1087, 28724, 12, 6385, 467, 2421, 22144, 1988, 1087, 13, 288, 5411, 1194, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 2680, 28724, 3113, 7734, 394, 1033, 8526, 288, 2680, 22938, 5411, 309, 261, 2680, 422, 446, 13, 288, 7734, 1194, 18, 1330, 12, 2355, 18, 42, 3740, 16, 10792, 315, 1986, 5498, 1087, 353, 446, 18, 467, 16997, 871, 1199, 1769, 7734, 1194, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 2680, 28724, 8863, 7734, 327, 31, 5411, 289, 5411, 309, 261, 2680, 1276, 467, 6946, 1988, 13, 288, 27573, 309, 261, 2680, 1276, 467, 1528, 6946, 13, 288, 10792, 7773, 7113, 71, 10472, 22294, 18, 2211, 2 ]
if(lhs == null || rhs == null){
if(rhs == null){
private boolean isNegation(PsiExpression condition){ if(condition instanceof PsiPrefixExpression){ final PsiPrefixExpression prefixExpression = (PsiPrefixExpression) condition; final PsiJavaToken sign = prefixExpression.getOperationSign(); final IElementType tokenType = sign.getTokenType(); return tokenType.equals(JavaTokenType.EXCL); } else if(condition instanceof PsiBinaryExpression){ final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) condition; final PsiJavaToken sign = binaryExpression.getOperationSign(); final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); if(lhs == null || rhs == null){ return false; } final IElementType tokenType = sign.getTokenType(); if(tokenType.equals(JavaTokenType.NE)){ if(m_ignoreNegatedNullComparison){ final String lhsText = lhs.getText(); final String rhsText = rhs.getText(); return !"null".equals(lhsText) && !"null".equals(rhsText); } else{ return true; } } else{ return false; } } else if(condition instanceof PsiParenthesizedExpression){ final PsiExpression expression = ((PsiParenthesizedExpression) condition).getExpression(); return isNegation(expression); } else{ return false; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/10dfc0821a579a6a0ff949a64d378572f57a4625/NegatedConditionalInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/NegatedConditionalInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 8197, 1332, 367, 12, 52, 7722, 2300, 2269, 15329, 5411, 309, 12, 4175, 1276, 453, 7722, 2244, 2300, 15329, 7734, 727, 453, 7722, 2244, 2300, 1633, 2300, 273, 13491, 261, 52, 7722, 2244, 2300, 13, 2269, 31, 7734, 727, 453, 7722, 5852, 1345, 1573, 273, 1633, 2300, 18, 588, 2988, 2766, 5621, 7734, 727, 467, 17481, 22302, 273, 1573, 18, 588, 28675, 5621, 7734, 327, 22302, 18, 14963, 12, 5852, 28675, 18, 2294, 5017, 1769, 5411, 289, 469, 309, 12, 4175, 1276, 453, 7722, 5905, 2300, 15329, 7734, 727, 453, 7722, 5905, 2300, 3112, 2300, 273, 13491, 261, 52, 7722, 5905, 2300, 13, 2269, 31, 7734, 727, 453, 7722, 5852, 1345, 1573, 273, 3112, 2300, 18, 588, 2988, 2766, 5621, 7734, 727, 453, 7722, 2300, 8499, 273, 3112, 2300, 18, 588, 1502, 457, 464, 5621, 7734, 727, 453, 7722, 2300, 7711, 273, 3112, 2300, 18, 588, 1457, 457, 464, 5621, 7734, 309, 12, 86, 4487, 422, 446, 15329, 10792, 327, 629, 31, 7734, 289, 7734, 727, 467, 17481, 22302, 273, 1573, 18, 588, 28675, 5621, 7734, 309, 12, 2316, 559, 18, 14963, 12, 5852, 28675, 18, 5407, 3719, 95, 10792, 309, 12, 81, 67, 6185, 14337, 690, 2041, 16059, 15329, 13491, 727, 514, 8499, 1528, 273, 8499, 18, 588, 1528, 5621, 13491, 727, 514, 7711, 1528, 273, 7711, 18, 588, 1528, 5621, 13491, 327, 29054, 2011, 9654, 14963, 12, 80, 4487, 1528, 13, 597, 27573, 29054, 2011, 9654, 14963, 12, 86, 4487, 1528, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 8197, 1332, 367, 12, 52, 7722, 2300, 2269, 15329, 5411, 309, 12, 4175, 1276, 453, 7722, 2244, 2300, 15329, 7734, 727, 453, 7722, 2244, 2300, 1633, 2300, 273, 13491, 261, 52, 7722, 2244, 2300, 13, 2269, 31, 7734, 727, 453, 7722, 5852, 1345, 1573, 273, 1633, 2300, 18, 588, 2988, 2766, 5621, 7734, 727, 467, 17481, 22302, 273, 1573, 18, 588, 28675, 5621, 7734, 327, 22302, 18, 14963, 12, 5852, 28675, 18, 2294, 5017, 1769, 5411, 289, 469, 309, 12, 4175, 1276, 453, 7722, 5905, 2300, 15329, 7734, 727, 453, 7722, 5905, 2300, 3112, 2300, 273, 13491, 261, 52, 7722, 5905, 2300, 13, 2269, 31, 7734, 727, 453, 7722, 5852, 1345, 1573, 273, 3112, 2300, 18, 2 ]
if(dummy.length() < 2) {
if (dummy.length() < 2) {
public void paint(Graphics g) { super.paint(g); FileTextArea textArea = fileWindow.textArea; Font font = textArea.getFont(); g.setFont(font); FontMetrics metrics = getFontMetrics(font); Rectangle clip = g.getClipBounds(); g.setColor(getBackground()); g.fillRect(clip.x, clip.y, clip.width, clip.height); int left = getX(); int ascent = metrics.getMaxAscent(); int h = metrics.getHeight(); int lineCount = textArea.getLineCount() + 1; String dummy = Integer.toString(lineCount); if(dummy.length() < 2) { dummy = "99"; } int maxWidth = metrics.stringWidth(dummy); int startLine = clip.y / h; int endLine = (clip.y + clip.height) / h + 1; int width = getWidth(); if(endLine > lineCount) endLine = lineCount; for(int i = startLine; i < endLine; i++) { String text; int pos = -2; try { pos = textArea.getLineStartOffset(i); } catch(BadLocationException ignored) { } boolean isBreakPoint = false; if(fileWindow.breakpoints.get(new Integer(pos)) != null) { isBreakPoint = true; } text = Integer.toString(i + 1) + " "; int w = metrics.stringWidth(text); int y = i *h; g.setColor(Color.blue); g.drawString(text, 0, y + ascent); int x = width - ascent; if(isBreakPoint) { g.setColor(new Color(0x80, 0x00, 0x00)); int dy = y + ascent - 9; g.fillOval(x, dy, 9, 9); g.drawOval(x, dy, 8, 8); g.drawOval(x, dy, 9, 9); } if(pos == fileWindow.currentPos) { Polygon arrow = new Polygon(); int dx = x; y += ascent - 10; int dy = y; arrow.addPoint(dx, dy + 3); arrow.addPoint(dx + 5, dy + 3); for(x = dx + 5; x <= dx + 10; x++, y++) { arrow.addPoint(x, y); } for(x = dx + 9; x >= dx + 5; x--, y++) { arrow.addPoint(x, y); } arrow.addPoint(dx + 5, dy + 7); arrow.addPoint(dx, dy + 7); g.setColor(Color.yellow); g.fillPolygon(arrow); g.setColor(Color.black); g.drawPolygon(arrow); } } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 17558, 314, 13, 288, 3639, 2240, 18, 84, 1598, 12, 75, 1769, 3639, 1387, 1528, 5484, 977, 5484, 273, 585, 3829, 18, 955, 5484, 31, 3639, 10063, 3512, 273, 977, 5484, 18, 588, 5711, 5621, 3639, 314, 18, 542, 5711, 12, 5776, 1769, 3639, 10063, 5653, 4309, 273, 18776, 5653, 12, 5776, 1769, 3639, 13264, 6807, 273, 314, 18, 588, 15339, 5694, 5621, 3639, 314, 18, 542, 2957, 12, 588, 8199, 10663, 3639, 314, 18, 5935, 6120, 12, 14161, 18, 92, 16, 6807, 18, 93, 16, 6807, 18, 2819, 16, 6807, 18, 4210, 1769, 3639, 509, 2002, 273, 6538, 5621, 3639, 509, 487, 2998, 273, 4309, 18, 588, 2747, 13665, 319, 5621, 3639, 509, 366, 273, 4309, 18, 588, 2686, 5621, 3639, 509, 980, 1380, 273, 977, 5484, 18, 588, 1670, 1380, 1435, 397, 404, 31, 3639, 514, 9609, 273, 2144, 18, 10492, 12, 1369, 1380, 1769, 3639, 309, 261, 21050, 18, 2469, 1435, 411, 576, 13, 288, 5411, 9609, 273, 315, 2733, 14432, 3639, 289, 3639, 509, 17681, 273, 4309, 18, 1080, 2384, 12, 21050, 1769, 3639, 509, 24636, 273, 6807, 18, 93, 342, 366, 31, 3639, 509, 31763, 273, 261, 14161, 18, 93, 397, 6807, 18, 4210, 13, 342, 366, 397, 404, 31, 3639, 509, 1835, 273, 8557, 5621, 3639, 309, 12, 409, 1670, 405, 980, 1380, 13, 31763, 273, 980, 1380, 31, 3639, 364, 12, 474, 277, 273, 24636, 31, 277, 411, 31763, 31, 277, 27245, 288, 5411, 514, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 17558, 314, 13, 288, 3639, 2240, 18, 84, 1598, 12, 75, 1769, 3639, 1387, 1528, 5484, 977, 5484, 273, 585, 3829, 18, 955, 5484, 31, 3639, 10063, 3512, 273, 977, 5484, 18, 588, 5711, 5621, 3639, 314, 18, 542, 5711, 12, 5776, 1769, 3639, 10063, 5653, 4309, 273, 18776, 5653, 12, 5776, 1769, 3639, 13264, 6807, 273, 314, 18, 588, 15339, 5694, 5621, 3639, 314, 18, 542, 2957, 12, 588, 8199, 10663, 3639, 314, 18, 5935, 6120, 12, 14161, 18, 92, 16, 6807, 18, 93, 16, 6807, 18, 2819, 16, 6807, 18, 4210, 1769, 3639, 509, 2002, 273, 6538, 5621, 3639, 509, 487, 2998, 273, 4309, 18, 588, 2747, 13665, 319, 5621, 3639, 509, 2 ]
public void onStart() { markTime = System.currentTimeMillis(); startTime = System.currentTimeMillis(); propertyMap = ResourceUtil.getResourceBundleAsHashMap(iterationPropertyFiles[0]); // send a message to the random number server so that the random number seed will be set on all nodes PortManager pManager = PortManager.getInstance(); Port receivePort = pManager.getReceivePort(); Message waitMsg = null; Message propertyMapMsg = createMessage(); propertyMapMsg.setId(MessageID.START_INFO); propertyMapMsg.setValue(MessageID.PROPERTY_MAP_KEY, propertyMap); // set the global random number generator seed read from the properties file on the nodes // that runs the worker tasks if (LOGGING) logger.info(this.name + " starting the random number server task."); sendTo("RnServer", propertyMapMsg); // wait here until a message from the RnServer says it's heard from all RnWorkers. if (LOGGING) logger.info(this.name + " waiting to hear from RnServer that random number seeds have been set."); waitMsg = receivePort.receive(); while (!(waitMsg.getSender().equals("RnServer") && waitMsg.getId().equals(MessageID.EXIT))) { waitMsg = receivePort.receive(); } // send an exit message to the RnServer to tell it to free memory in its workers and itself. Message exitMsg = createMessage(); exitMsg.setId(MessageID.EXIT); sendTo("RnServer", exitMsg); // set the global random number generator seed read from the properties file on the node // that runs the server tasks SeededRandom.setSeed(Integer.parseInt((String) propertyMap.get("RandomSeed"))); if (LOGGING) { logger.info("Memory at end of RnServer"); showMemory(); } // set the global number of iterations read from the properties file numberOfIterations = (Integer.parseInt((String) propertyMap.get( "GlobalIterations"))); if(((String)propertyMap.get("FTA_Restart_run")).equalsIgnoreCase("true")){ ZDMTDM zdmtdm=readDiskObjectZDMTDM(propertyMap); //instantiate ZonalDataManager and TODDataManager object so that their static members are available to other classes (eg. DTMOutput) zdm=new ZonalDataManager(propertyMap); tdm=new TODDataManager(propertyMap); zdm=zdmtdm.getZDM(); showMemory(); tdm=zdmtdm.getTDM(); showMemory(); }else{ // build the zonal data table zdm = new ZonalDataManager(propertyMap); showMemory(); // build the TOD Ddata table tdm = new TODDataManager(propertyMap); showMemory(); } for (int i = 0; i < numberOfIterations; i++) { runModelIteration(i); } // Report report=new Report(); // report.generateReports(); if (LOGGING) { logger.info("Memory after running reports - end of program"); showMemory(); } if (LOGGING) { logger.info("end of MORPC Demand Models"); logger.info("full MORPC model run finished in " + ((System.currentTimeMillis() - startTime) / 60000.0) + " minutes"); } System.exit(0); }
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/010a6c5ec8eea32210f7634f9b310766c7288681/MorpcModelServer.java/clean/src/java/com/pb/morpc/daf/MorpcModelServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 603, 1685, 1435, 288, 3355, 950, 273, 2332, 18, 2972, 28512, 5621, 1937, 950, 273, 2332, 18, 2972, 28512, 5621, 4468, 863, 273, 2591, 1304, 18, 588, 18731, 1463, 8658, 12, 16108, 1396, 2697, 63, 20, 19226, 202, 202, 759, 1366, 279, 883, 358, 326, 2744, 1300, 1438, 1427, 716, 326, 2744, 1300, 5009, 903, 506, 444, 603, 777, 2199, 202, 202, 2617, 1318, 293, 1318, 273, 6008, 1318, 18, 588, 1442, 5621, 202, 202, 2617, 6798, 2617, 273, 293, 1318, 18, 588, 11323, 2617, 5621, 202, 202, 1079, 2529, 3332, 273, 446, 31, 202, 202, 1079, 1272, 863, 3332, 273, 23836, 5621, 202, 202, 4468, 863, 3332, 18, 542, 548, 12, 1079, 734, 18, 7570, 67, 5923, 1769, 202, 202, 4468, 863, 3332, 18, 542, 620, 12, 1079, 734, 18, 9900, 67, 8352, 67, 3297, 16, 1272, 863, 1769, 9506, 202, 759, 444, 326, 2552, 2744, 1300, 4456, 5009, 855, 628, 326, 1790, 585, 603, 326, 2199, 202, 202, 759, 716, 7597, 326, 4322, 4592, 202, 202, 430, 261, 28162, 13, 1082, 202, 4901, 18, 1376, 12, 2211, 18, 529, 397, 315, 5023, 326, 2744, 1300, 1438, 1562, 1199, 1769, 202, 202, 4661, 774, 2932, 54, 82, 2081, 3113, 1272, 863, 3332, 1769, 202, 202, 759, 2529, 2674, 3180, 279, 883, 628, 326, 534, 82, 2081, 20185, 518, 1807, 3904, 1060, 628, 777, 534, 82, 15252, 18, 202, 202, 430, 261, 28162, 13, 1082, 202, 4901, 18, 1376, 12, 2211, 18, 529, 397, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 603, 1685, 1435, 288, 3355, 950, 273, 2332, 18, 2972, 28512, 5621, 1937, 950, 273, 2332, 18, 2972, 28512, 5621, 4468, 863, 273, 2591, 1304, 18, 588, 18731, 1463, 8658, 12, 16108, 1396, 2697, 63, 20, 19226, 202, 202, 759, 1366, 279, 883, 358, 326, 2744, 1300, 1438, 1427, 716, 326, 2744, 1300, 5009, 903, 506, 444, 603, 777, 2199, 202, 202, 2617, 1318, 293, 1318, 273, 6008, 1318, 18, 588, 1442, 5621, 202, 202, 2617, 6798, 2617, 273, 293, 1318, 18, 588, 11323, 2617, 5621, 202, 202, 1079, 2529, 3332, 273, 446, 31, 202, 202, 1079, 1272, 863, 3332, 273, 23836, 5621, 202, 202, 4468, 863, 3332, 18, 542, 548, 12, 1079, 734, 18, 7570, 67, 2 ]
protected final List getPreviewRowData( String[] columnExpression, int rowCount, boolean isStringType ) throws ChartException { ArrayList dataList = new ArrayList( ); // Set thread context class loader so Rhino can find POJOs in workspace // projects ClassLoader oldContextLoader = Thread.currentThread( ) .getContextClassLoader( ); ClassLoader parentLoader = oldContextLoader; if ( parentLoader == null ) parentLoader = this.getClass( ).getClassLoader( ); ClassLoader newContextLoader = DataSetManager.getCustomScriptClassLoader( parentLoader ); Thread.currentThread( ).setContextClassLoader( newContextLoader ); try { DataSetHandle datasetHandle = getDataSetFromHandle( ); IQueryResults actualResultSet = DataSetManager.getCurrentInstance( ) .getCacheResult( datasetHandle, itemHandle.getPropertyHandle( ReportItemHandle.PARAM_BINDINGS_PROP ) .iterator( ), itemHandle.getPropertyHandle( ExtendedItemHandle.FILTER_PROP ) .iterator( ), columnExpression, rowCount <= 0 ? getMaxRow( ) : rowCount ); if ( actualResultSet != null ) { IBaseExpression[] expressions = extractExpressions( actualResultSet ); int columnCount = expressions.length; IResultIterator iter = actualResultSet.getResultIterator( ); while ( iter.next( ) ) { if ( isStringType ) { String[] record = new String[columnCount]; for ( int n = 0; n < columnCount; n++ ) { record[n] = iter.getString( expressions[n] ); } dataList.add( record ); } else { Object[] record = new Object[columnCount]; for ( int n = 0; n < columnCount; n++ ) { record[n] = iter.getValue( expressions[n] ); } dataList.add( record ); } } actualResultSet.close( ); } } catch ( BirtException e ) { throw new ChartException( ChartReportItemPlugin.ID, ChartException.DATA_BINDING, e ); } finally { // Restore old thread context class loader Thread.currentThread( ).setContextClassLoader( oldContextLoader ); } return dataList; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/060d4ae94338ab244ee62a019ed1b76b4cdca5eb/ReportDataServiceProvider.java/buggy/chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/ReportDataServiceProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 987, 336, 11124, 1999, 751, 12, 514, 8526, 1057, 2300, 16, 1082, 202, 474, 14888, 16, 1250, 9962, 559, 262, 1216, 14804, 503, 202, 95, 202, 202, 19558, 501, 682, 273, 394, 2407, 12, 11272, 9506, 202, 759, 1000, 2650, 819, 667, 4088, 1427, 534, 76, 15020, 848, 1104, 13803, 46, 15112, 316, 6003, 202, 202, 759, 10137, 202, 202, 7805, 1592, 1042, 2886, 273, 4884, 18, 2972, 3830, 12, 262, 9506, 202, 18, 29120, 7805, 12, 11272, 202, 202, 7805, 982, 2886, 273, 1592, 1042, 2886, 31, 202, 202, 430, 261, 982, 2886, 422, 446, 262, 1082, 202, 2938, 2886, 273, 333, 18, 588, 797, 12, 262, 18, 588, 7805, 12, 11272, 202, 202, 7805, 28210, 2886, 273, 14065, 1318, 18, 588, 3802, 3651, 7805, 12, 982, 2886, 11272, 202, 202, 3830, 18, 2972, 3830, 12, 262, 18, 542, 1042, 7805, 12, 28210, 2886, 11272, 9506, 202, 698, 202, 202, 95, 1082, 202, 13676, 3259, 3709, 3259, 273, 4303, 694, 1265, 3259, 12, 11272, 1082, 202, 45, 1138, 3447, 3214, 13198, 273, 14065, 1318, 18, 588, 3935, 1442, 12, 262, 6862, 202, 18, 588, 1649, 1253, 12, 3709, 3259, 16, 6862, 1082, 202, 1726, 3259, 18, 588, 1396, 3259, 12, 8706, 1180, 3259, 18, 8388, 67, 2739, 55, 67, 15811, 262, 6862, 6862, 202, 18, 9838, 12, 262, 16, 6862, 1082, 202, 1726, 3259, 18, 588, 1396, 3259, 12, 14094, 1180, 3259, 18, 11126, 67, 15811, 262, 6862, 6862, 202, 18, 9838, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 987, 336, 11124, 1999, 751, 12, 514, 8526, 1057, 2300, 16, 1082, 202, 474, 14888, 16, 1250, 9962, 559, 262, 1216, 14804, 503, 202, 95, 202, 202, 19558, 501, 682, 273, 394, 2407, 12, 11272, 9506, 202, 759, 1000, 2650, 819, 667, 4088, 1427, 534, 76, 15020, 848, 1104, 13803, 46, 15112, 316, 6003, 202, 202, 759, 10137, 202, 202, 7805, 1592, 1042, 2886, 273, 4884, 18, 2972, 3830, 12, 262, 9506, 202, 18, 29120, 7805, 12, 11272, 202, 202, 7805, 982, 2886, 273, 1592, 1042, 2886, 31, 202, 202, 430, 261, 982, 2886, 422, 446, 262, 1082, 202, 2938, 2886, 273, 333, 18, 588, 797, 12, 262, 18, 588, 7805, 12, 11272, 202, 202, 2 ]
final NonNullParamPropertyDatabase nonNullParamDatabase = AnalysisContext.currentAnalysisContext().getNonNullParamDatabase(); final NonNullParamPropertyDatabase possiblyNullParamDatabase = AnalysisContext.currentAnalysisContext().getPossiblyNullParamDatabase();
private void checkNonNullParam( Location location, ConstantPoolGen cpg, TypeDataflow typeDataflow, InvokeInstruction invokeInstruction, BitSet nullArgSet, BitSet definitelyNullArgSet) throws ClassNotFoundException { final NonNullParamPropertyDatabase nonNullParamDatabase = AnalysisContext.currentAnalysisContext().getNonNullParamDatabase(); final NonNullParamPropertyDatabase possiblyNullParamDatabase = AnalysisContext.currentAnalysisContext().getPossiblyNullParamDatabase(); // Go up the class hierarchy finding @NonNull and @PossiblyNull annotations // for parameters. NonNullContractCollector nonNullContractCollector = new NonNullContractCollector(nonNullParamDatabase, possiblyNullParamDatabase); nonNullContractCollector.findContractForCallSite(invokeInstruction, cpg); // See if any null arguments violate a @NonNull annotation. int numParams = new SignatureParser(invokeInstruction.getSignature(cpg)).getNumParameters(); if (DEBUG_NULLARG) { System.out.println("Checking " + numParams + " parameter(s)"); } BitSet violatedParamSet = new BitSet(); List<NonNullParamViolation> violationList = new LinkedList<NonNullParamViolation>(); nonNullContractCollector.getViolationList(numParams, nullArgSet, violationList, violatedParamSet); if (violationList.isEmpty()) return; // Issue a warning XMethod xmethod = XMethodFactory.createXMethod(invokeInstruction, cpg); WarningPropertySet propertySet = new WarningPropertySet(); MethodGen methodGen = classContext.getMethodGen(method); String sourceFile = classContext.getJavaClass().getSourceFileName(); BugInstance warning = new BugInstance("NP_NONNULL_PARAM_VIOLATION", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(methodGen, sourceFile, location.getHandle()) .addMethod(xmethod).describe("METHOD_CALLED"); addParamAnnotations(definitelyNullArgSet, violatedParamSet, propertySet, warning); for (NonNullParamViolation violation : violationList) { warning.addMethod(violation.getClassAndMethod()); warning.addInt(violation.getParam()).describe("INT_NONNULL_PARAM"); } finishWarning(location, propertySet, warning); bugReporter.reportBug(warning); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/129d8a8470a75c50da33432b9dcdffd7067b4cba/FindNullDeref.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindNullDeref.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 8921, 786, 12, 1082, 202, 2735, 2117, 16, 1875, 202, 6902, 2864, 7642, 3283, 75, 16, 1082, 202, 559, 751, 2426, 618, 751, 2426, 16, 1082, 202, 10969, 11983, 4356, 11983, 16, 1082, 202, 5775, 694, 446, 4117, 694, 16, 1082, 202, 5775, 694, 2217, 25818, 2041, 4117, 694, 13, 1216, 10403, 288, 202, 202, 6385, 7869, 786, 1396, 4254, 31062, 786, 4254, 273, 16318, 1042, 18, 2972, 9418, 1042, 7675, 588, 8921, 786, 4254, 5621, 202, 202, 6385, 7869, 786, 1396, 4254, 10016, 2041, 786, 4254, 273, 16318, 1042, 18, 2972, 9418, 1042, 7675, 588, 1616, 8781, 2041, 786, 4254, 5621, 9506, 202, 759, 4220, 731, 326, 667, 9360, 13727, 632, 8921, 471, 632, 1616, 8781, 2041, 5617, 202, 202, 759, 364, 1472, 18, 202, 202, 8921, 8924, 7134, 31062, 8924, 7134, 273, 394, 7869, 8924, 7134, 12, 5836, 2041, 786, 4254, 16, 10016, 2041, 786, 4254, 1769, 202, 202, 5836, 2041, 8924, 7134, 18, 4720, 8924, 1290, 1477, 4956, 12, 14407, 11983, 16, 3283, 75, 1769, 202, 202, 759, 2164, 309, 1281, 446, 1775, 12471, 340, 279, 632, 8921, 3204, 18, 202, 202, 474, 818, 1370, 273, 394, 9249, 2678, 12, 14407, 11983, 18, 588, 5374, 12, 4057, 75, 13, 2934, 588, 2578, 2402, 5621, 202, 202, 430, 261, 9394, 67, 8560, 10973, 13, 288, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 14294, 315, 397, 818, 1370, 397, 315, 1569, 12, 87, 2225, 1769, 202, 202, 97, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 8921, 786, 12, 1082, 202, 2735, 2117, 16, 1875, 202, 6902, 2864, 7642, 3283, 75, 16, 1082, 202, 559, 751, 2426, 618, 751, 2426, 16, 1082, 202, 10969, 11983, 4356, 11983, 16, 1082, 202, 5775, 694, 446, 4117, 694, 16, 1082, 202, 5775, 694, 2217, 25818, 2041, 4117, 694, 13, 1216, 10403, 288, 202, 202, 6385, 7869, 786, 1396, 4254, 31062, 786, 4254, 273, 16318, 1042, 18, 2972, 9418, 1042, 7675, 588, 8921, 786, 4254, 5621, 202, 202, 6385, 7869, 786, 1396, 4254, 10016, 2041, 786, 4254, 273, 16318, 1042, 18, 2972, 9418, 1042, 7675, 588, 1616, 8781, 2041, 786, 4254, 5621, 9506, 202, 759, 4220, 731, 326, 667, 9360, 13727, 632, 8921, 471, 2 ]
runnable.run();
addSupport(module);
public Module createAndCommit(ModifiableModuleModel moduleModel, boolean runFromProjectWizard) throws InvalidDataException, ConfigurationException, IOException, JDOMException, ModuleWithNameAlreadyExists, ModuleCircularDependencyException { final Module module = createModule(moduleModel); moduleModel.commit(); final Runnable runnable = new Runnable() { public void run() { addSupport(module); } }; if (runFromProjectWizard) { StartupManager.getInstance(module.getProject()).registerPostStartupActivity(runnable); } else { runnable.run(); } return module; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f099244b521a21068c5ed2cbb1d51f3530838f9f/ModuleBuilder.java/buggy/openapi/src/com/intellij/ide/util/projectWizard/ModuleBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5924, 30545, 5580, 12, 1739, 8424, 3120, 1488, 1605, 1488, 16, 1250, 1086, 1265, 4109, 27130, 13, 1216, 28524, 4766, 1962, 22480, 16, 28524, 4766, 22196, 16, 28524, 4766, 1860, 16, 28524, 4766, 804, 8168, 503, 16, 28524, 4766, 5924, 17557, 16686, 16, 28524, 4766, 5924, 25858, 7787, 503, 288, 565, 727, 5924, 1605, 273, 752, 3120, 12, 2978, 1488, 1769, 565, 1605, 1488, 18, 7371, 5621, 565, 727, 10254, 14685, 273, 394, 10254, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 540, 527, 6289, 12, 2978, 1769, 1377, 289, 565, 289, 31, 565, 309, 261, 2681, 1265, 4109, 27130, 13, 288, 1377, 3603, 416, 1318, 18, 588, 1442, 12, 2978, 18, 588, 4109, 1435, 2934, 4861, 3349, 22178, 6193, 12, 2681, 6914, 1769, 565, 289, 565, 469, 288, 1377, 527, 6289, 12, 2978, 1769, 565, 289, 565, 327, 1605, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5924, 30545, 5580, 12, 1739, 8424, 3120, 1488, 1605, 1488, 16, 1250, 1086, 1265, 4109, 27130, 13, 1216, 28524, 4766, 1962, 22480, 16, 28524, 4766, 22196, 16, 28524, 4766, 1860, 16, 28524, 4766, 804, 8168, 503, 16, 28524, 4766, 5924, 17557, 16686, 16, 28524, 4766, 5924, 25858, 7787, 503, 288, 565, 727, 5924, 1605, 273, 752, 3120, 12, 2978, 1488, 1769, 565, 1605, 1488, 18, 7371, 5621, 565, 727, 10254, 14685, 273, 394, 10254, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 540, 527, 6289, 12, 2978, 1769, 1377, 289, 565, 289, 31, 565, 309, 261, 2681, 1265, 4109, 27130, 13, 288, 1377, 3603, 416, 1318, 18, 588, 1442, 12, 2978, 18, 588, 4109, 1435, 2934, 4861, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/c6a9c5919552b91fb0c4af00afd67a30f78acfc4/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 2 ]
return signExpand(readUBits(n), n);
long val = readUBits(n); long wrap = 1L<<(n-1); if (val >= wrap) { val -= wrap << 1; } return val;
public long readSBits(int n) throws IOException { return signExpand(readUBits(n), n); }
11735 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11735/0ceb5f4f51e31a1789e4454a380541132fc1e009/BitInputStream.java/buggy/spark/src/de/tivano/flash/swf/common/BitInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 855, 55, 6495, 12, 474, 290, 13, 1216, 1860, 288, 202, 5748, 1244, 273, 855, 3457, 1282, 12, 82, 1769, 1525, 2193, 273, 404, 48, 17685, 12, 82, 17, 21, 1769, 309, 261, 1125, 1545, 2193, 13, 288, 1244, 3947, 2193, 2296, 404, 31, 289, 327, 1244, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1525, 855, 55, 6495, 12, 474, 290, 13, 1216, 1860, 288, 202, 5748, 1244, 273, 855, 3457, 1282, 12, 82, 1769, 1525, 2193, 273, 404, 48, 17685, 12, 82, 17, 21, 1769, 309, 261, 1125, 1545, 2193, 13, 288, 1244, 3947, 2193, 2296, 404, 31, 289, 327, 1244, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);}
finally { }
public void mQUESTION() throws RecognitionException { int type = QUESTION; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:58:12: ( '?' ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:58:12: '?' { match('?'); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 4740, 1146, 1435, 1216, 9539, 288, 3639, 509, 618, 273, 23328, 882, 1146, 31, 3639, 509, 787, 273, 23577, 1016, 5621, 3639, 509, 980, 273, 9851, 5621, 3639, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 3639, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 8204, 30, 2138, 30, 261, 6787, 262, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 8204, 30, 2138, 30, 6787, 3639, 288, 3639, 845, 2668, 4899, 1769, 3639, 289, 4202, 3095, 288, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 4740, 1146, 1435, 1216, 9539, 288, 3639, 509, 618, 273, 23328, 882, 1146, 31, 3639, 509, 787, 273, 23577, 1016, 5621, 3639, 509, 980, 273, 9851, 5621, 3639, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 3639, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 8204, 30, 2138, 30, 261, 6787, 262, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 2 ]
units.addLast(Jimple.v().newInvokeStmt(Jimple.v().newInterfaceInvokeExpr(resultSet,
units.addLast(Jimple.v().newInvokeStmt(Jimple.v().newVirtualInvokeExpr(resultSet,
protected SootMethod addAddBindingsDispatchMethod(SootClass constraint, SootClass disjunct, String methodName, List/*<String>*/ variables) { int varCount = variables.size(); List parameterTypes = new LinkedList(); parameterTypes.add(IntType.v()); for(int i = 0; i < varCount; i++) { parameterTypes.add(RefType.v("java.lang.Object")); } SootMethod symbolMethod = new SootMethod(methodName, parameterTypes, constraint.getType(), Modifier.PUBLIC); Body b = Jimple.v().newBody(symbolMethod); symbolMethod.setActiveBody(b); constraint.addMethod(symbolMethod); LocalGeneratorEx lgen = new LocalGeneratorEx(b); // generate 'standard' locals RefType setType = RefType.v("java.util.Set"); RefType iteratorType = RefType.v("java.util.Iterator"); SootClass hashSet = Scene.v().getSootClass("java.util.HashSet"); SootClass iteratorClass = Scene.v().getSootClass("java.util.Iterator"); Local resultSet = lgen.generateLocal(setType, "resultSet"); Local localSet = lgen.generateLocal(setType, "localSet"); Local result = lgen.generateLocal(constraint.getType(), "result"); Local thisLocal = lgen.generateLocal(constraint.getType(), "this"); Local disjunctThis = lgen.generateLocal(disjunct.getType(), "disjunctThis"); Local disjunctIt = lgen.generateLocal(iteratorType, "disjunctIt"); Local disjunctResult = lgen.generateLocal(disjunct.getType(), "disjunctResult"); Chain units = b.getUnits(); // Add identity statements for this local units.addLast(Jimple.v().newIdentityStmt(thisLocal, Jimple.v().newThisRef(constraint.getType()))); // add symbol-dependent parameters and identity statements List parameterLocals = new LinkedList(); Local parameterLocal; int parameterIndex = 0; parameterLocal = lgen.generateLocal(IntType.v(), "symbolNumber"); parameterLocals.add(parameterLocal); units.addLast(Jimple.v().newIdentityStmt(parameterLocal, Jimple.v().newParameterRef(IntType.v(), parameterIndex++))); for(Iterator it = variables.iterator(); it.hasNext(); ) { parameterLocal = lgen.generateLocal(RefType.v("java.lang.Object"), (String)it.next()); parameterLocals.add(parameterLocal); units.addLast(Jimple.v().newIdentityStmt(parameterLocal, Jimple.v().newParameterRef(RefType.v("java.lang.Object"), parameterIndex++))); } // Store this.disjuncts in a local units.addLast(Jimple.v().newAssignStmt(localSet, Jimple.v().newInstanceFieldRef( thisLocal, Scene.v().makeFieldRef(constraint, "disjuncts", setType, false)))); // Create a new HashSet for the result, as we're not changing things in-place units.addLast(Jimple.v().newAssignStmt(resultSet, Jimple.v().newNewExpr(hashSet.getType()))); // do specialinvoke of constructor units.addLast(Jimple.v().newInvokeStmt(Jimple.v().newSpecialInvokeExpr(resultSet, Scene.v().makeConstructorRef(hashSet, new LinkedList())))); // Get an iterator for this constraint's disjuncts units.addLast(Jimple.v().newAssignStmt(disjunctIt, Jimple.v().newInterfaceInvokeExpr( localSet, Scene.v().makeMethodRef(hashSet, "iterator", new LinkedList(), iteratorType, false)))); // Have to emulate loops with jumps: while(disjunctIt.hasNext()) { ... } Stmt labelLoopBegin = Jimple.v().newNopStmt(); Stmt labelLoopEnd = Jimple.v().newNopStmt(); units.addLast(labelLoopBegin); // if(!it1.hasNext()) goto labelLoopEnd; <code for loop>; <label>: Local booleanLocal = lgen.generateLocal(BooleanType.v(), "booleanLocal"); units.addLast(Jimple.v().newAssignStmt(booleanLocal, Jimple.v().newVirtualInvokeExpr(disjunctIt, Scene.v().makeMethodRef(iteratorClass, "hasNext", new LinkedList(), BooleanType.v(), false)))); units.addLast(Jimple.v().newAssignStmt(booleanLocal, Jimple.v().newNegExpr(booleanLocal))); units.addLast(Jimple.v().newIfStmt(Jimple.v().newEqExpr(booleanLocal, IntConstant.v(1)), labelLoopEnd)); // disjunctThis = (Disjunct)disjunctIt.next(); Local tmpObject = lgen.generateLocal(RefType.v("java.lang.Object"), "tmpObject"); units.addLast(Jimple.v().newAssignStmt(tmpObject, Jimple.v().newVirtualInvokeExpr(disjunctIt, Scene.v().makeMethodRef(iteratorClass, "next", new LinkedList(), RefType.v("java.lang.Object"), false)))); units.addLast(Jimple.v().newAssignStmt(disjunctThis, Jimple.v().newCastExpr(tmpObject, disjunct.getType()))); // disjunctResult = disjunct.addBindingsForSymbolX(...); units.addLast(Jimple.v().newAssignStmt(disjunctResult, Jimple.v().newVirtualInvokeExpr(disjunctThis, Scene.v().makeMethodRef(disjunct, methodName, parameterTypes, disjunct.getType(), false), parameterLocals))); // resultSet.add(disjunctResult); List parameters = new LinkedList(); parameters.add(RefType.v("java.lang.Object")); units.addLast(Jimple.v().newInvokeStmt(Jimple.v().newInterfaceInvokeExpr(resultSet, Scene.v().makeMethodRef(hashSet, "add", parameters, BooleanType.v(), false), disjunctResult))); // goto beginning of inner loop units.addLast(Jimple.v().newGotoStmt(labelLoopBegin)); units.addLast(labelLoopEnd); // We remove the false disjunct, then, if the disjunct set is empty, we return the // false constraint falseC, otherwise we return a new constraint with the // appropriate disjunct set. parameters.clear(); parameters.add(RefType.v("java.lang.Object")); // resultSet.remove(falseD); StaticFieldRef falseD = Jimple.v().newStaticFieldRef( Scene.v().makeFieldRef(disjunct, "falseD", disjunct.getType(), true)); Local falseDisjunct = lgen.generateLocal(disjunct.getType(), "falseDisjunct"); units.addLast(Jimple.v().newAssignStmt(falseDisjunct, falseD)); units.addLast(Jimple.v().newInvokeStmt(Jimple.v().newInterfaceInvokeExpr(resultSet, Scene.v().makeMethodRef(hashSet, "remove", parameters, BooleanType.v(), false), falseDisjunct))); Stmt labelReturnFalseC = Jimple.v().newNopStmt(); // if(resultSet.isEmpty) goto label; units.addLast(Jimple.v().newAssignStmt(booleanLocal, Jimple.v().newInterfaceInvokeExpr(resultSet, Scene.v().makeMethodRef(hashSet, "isEmpty", new LinkedList(), BooleanType.v(), false)))); units.addLast(Jimple.v().newIfStmt(Jimple.v().newEqExpr(booleanLocal, IntConstant.v(1)), labelReturnFalseC)); // Set is nonempty -- construct a new constraint to return units.addLast(Jimple.v().newAssignStmt(result, Jimple.v().newNewExpr(constraint.getType()))); units.addLast(Jimple.v().newInvokeStmt(Jimple.v().newSpecialInvokeExpr(result, Scene.v().makeConstructorRef(constraint, new LinkedList())))); // result.disjuncts = resultSet; units.addLast(Jimple.v().newAssignStmt(Jimple.v().newInstanceFieldRef(result, Scene.v().makeFieldRef(constraint, "disjuncts", setType, false)), resultSet)); // return result; units.addLast(Jimple.v().newReturnStmt(result)); // Label units.addLast(labelReturnFalseC); // return falseC; StaticFieldRef falseC = Jimple.v().newStaticFieldRef( Scene.v().makeFieldRef(constraint, "falseC", constraint.getType(), true)); Local falseConstraint = lgen.generateLocal(constraint.getType(), "falseConstraint"); Jimple.v().newAssignStmt(falseConstraint, falseC); units.addLast(Jimple.v().newReturnStmt(falseConstraint)); return symbolMethod; }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/c64190a94e55194b8cbbd53365b542f15bce68ee/TraceMatchCodeGen.java/buggy/aop/abc/src/abc/tm/weaving/weaver/TraceMatchCodeGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 348, 1632, 1305, 527, 986, 10497, 5325, 1305, 12, 55, 1632, 797, 4954, 16, 348, 1632, 797, 1015, 78, 6931, 16, 5411, 514, 4918, 16, 987, 20308, 32, 780, 34, 5549, 3152, 13, 288, 3639, 509, 569, 1380, 273, 3152, 18, 1467, 5621, 3639, 987, 20173, 273, 394, 10688, 5621, 3639, 20173, 18, 1289, 12, 1702, 559, 18, 90, 10663, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 569, 1380, 31, 277, 27245, 288, 5411, 20173, 18, 1289, 12, 22600, 18, 90, 2932, 6290, 18, 4936, 18, 921, 7923, 1769, 3639, 289, 3639, 348, 1632, 1305, 3273, 1305, 273, 394, 348, 1632, 1305, 12, 2039, 461, 16, 1171, 20173, 16, 4954, 18, 588, 559, 9334, 12832, 18, 14939, 1769, 3639, 5652, 324, 273, 804, 2052, 18, 90, 7675, 2704, 2250, 12, 7175, 1305, 1769, 3639, 3273, 1305, 18, 542, 3896, 2250, 12, 70, 1769, 3639, 4954, 18, 1289, 1305, 12, 7175, 1305, 1769, 7734, 3566, 3908, 424, 328, 4507, 273, 394, 3566, 3908, 424, 12, 70, 1769, 3639, 368, 2103, 296, 10005, 11, 8985, 3639, 3941, 559, 8811, 273, 3941, 559, 18, 90, 2932, 6290, 18, 1367, 18, 694, 8863, 3639, 3941, 559, 2775, 559, 273, 3941, 559, 18, 90, 2932, 6290, 18, 1367, 18, 3198, 8863, 3639, 348, 1632, 797, 1651, 694, 273, 29347, 18, 90, 7675, 588, 55, 1632, 797, 2932, 6290, 18, 1367, 18, 13482, 8863, 3639, 348, 1632, 797, 2775, 797, 273, 29347, 18, 90, 7675, 588, 55, 1632, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 348, 1632, 1305, 527, 986, 10497, 5325, 1305, 12, 55, 1632, 797, 4954, 16, 348, 1632, 797, 1015, 78, 6931, 16, 5411, 514, 4918, 16, 987, 20308, 32, 780, 34, 5549, 3152, 13, 288, 3639, 509, 569, 1380, 273, 3152, 18, 1467, 5621, 3639, 987, 20173, 273, 394, 10688, 5621, 3639, 20173, 18, 1289, 12, 1702, 559, 18, 90, 10663, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 569, 1380, 31, 277, 27245, 288, 5411, 20173, 18, 1289, 12, 22600, 18, 90, 2932, 6290, 18, 4936, 18, 921, 7923, 1769, 3639, 289, 3639, 348, 1632, 1305, 3273, 1305, 273, 394, 348, 1632, 1305, 12, 2039, 461, 16, 1171, 20173, 16, 4954, 18, 588, 559, 9334, 2 ]
public static String getEncodingOfClass(Class clazz)
public static String getEncodingOfClass(String type, boolean descriptor)
public static String getEncodingOfClass(Class clazz) { return getEncodingOfClass(clazz.getName(), true); }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/c068cbc67ac116c62e7fbf500bad6df1e8658902/TypeSignature.java/buggy/libjava/gnu/java/lang/reflect/TypeSignature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 29505, 951, 797, 12, 780, 618, 16, 1250, 4950, 13, 225, 288, 565, 327, 29505, 951, 797, 12, 830, 3638, 18, 17994, 9334, 638, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 29505, 951, 797, 12, 780, 618, 16, 1250, 4950, 13, 225, 288, 565, 327, 29505, 951, 797, 12, 830, 3638, 18, 17994, 9334, 638, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
populateTree();
public DatasetViewTree(DatasetView dsView, DatasetViewTreeWidget frame, DatasetViewAttributesTable attrTable) { super((TreeModel) null); this.dsView = dsView; this.frame = frame; this.attrTable = attrTable; addMouseListener(new DatasetViewTreeMouseListener()); addTreeSelectionListener(new DatasetViewTreeSelectionListener()); // Use horizontal and vertical lines putClientProperty("JTree.lineStyle", "Angled"); setEditable(true); // Create the first node rootNode = new DatasetViewTreeNode(dsView.getDisplayName()); rootNode.setUserObject(dsView); populateTree(); treemodel = new DatasetViewTreeModel(rootNode, dsView); setModel(treemodel); this.setSelectionInterval(0, 0); DatasetViewTreeDnDListener dndListener = new DatasetViewTreeDnDListener(this); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/082dd174b481a0310ab6715ad2ee8e75b718027c/DatasetViewTree.java/buggy/src/java/org/ensembl/mart/vieweditor/DatasetViewTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10778, 1767, 2471, 12, 10656, 1767, 3780, 1767, 16, 10778, 1767, 2471, 4609, 2623, 16, 10778, 1767, 2498, 1388, 1604, 1388, 13, 288, 3639, 2240, 12443, 2471, 1488, 13, 446, 1769, 3639, 333, 18, 2377, 1767, 273, 3780, 1767, 31, 3639, 333, 18, 3789, 273, 2623, 31, 3639, 333, 18, 1747, 1388, 273, 1604, 1388, 31, 3639, 527, 9186, 2223, 12, 2704, 10778, 1767, 2471, 9186, 2223, 10663, 3639, 527, 2471, 6233, 2223, 12, 2704, 10778, 1767, 2471, 6233, 2223, 10663, 3639, 368, 2672, 10300, 471, 9768, 2362, 3639, 1378, 1227, 1396, 2932, 46, 2471, 18, 1369, 2885, 3113, 315, 22757, 1259, 8863, 3639, 444, 15470, 12, 3767, 1769, 3639, 368, 1788, 326, 1122, 756, 3639, 10181, 273, 394, 10778, 1767, 12513, 12, 2377, 1767, 18, 588, 20524, 10663, 3639, 10181, 18, 542, 1299, 921, 12, 2377, 1767, 1769, 9079, 9787, 351, 1009, 273, 394, 10778, 1767, 2471, 1488, 12, 3085, 907, 16, 3780, 1767, 1769, 3639, 19027, 12, 27427, 351, 1009, 1769, 3639, 333, 18, 542, 6233, 4006, 12, 20, 16, 374, 1769, 3639, 10778, 1767, 2471, 19053, 40, 2223, 302, 4880, 2223, 273, 394, 10778, 1767, 2471, 19053, 40, 2223, 12, 2211, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10778, 1767, 2471, 12, 10656, 1767, 3780, 1767, 16, 10778, 1767, 2471, 4609, 2623, 16, 10778, 1767, 2498, 1388, 1604, 1388, 13, 288, 3639, 2240, 12443, 2471, 1488, 13, 446, 1769, 3639, 333, 18, 2377, 1767, 273, 3780, 1767, 31, 3639, 333, 18, 3789, 273, 2623, 31, 3639, 333, 18, 1747, 1388, 273, 1604, 1388, 31, 3639, 527, 9186, 2223, 12, 2704, 10778, 1767, 2471, 9186, 2223, 10663, 3639, 527, 2471, 6233, 2223, 12, 2704, 10778, 1767, 2471, 6233, 2223, 10663, 3639, 368, 2672, 10300, 471, 9768, 2362, 3639, 1378, 1227, 1396, 2932, 46, 2471, 18, 1369, 2885, 3113, 315, 22757, 1259, 8863, 3639, 444, 15470, 12, 3767, 1769, 3639, 368, 1788, 326, 1122, 756, 3639, 10181, 2 ]
addDragSupport(operations, dragAdapter.getSupportDragTransfers(),
addDragSupport(operations, dragAdapter.getSupportedDragTransfers(),
protected void initDragAndDrop() { /* Handle Drag and Drop */ int operations = DND.DROP_COPY | DND.DROP_MOVE; CommonDragAdapter dragAdapter = new CommonDragAdapter(contentService, this); addDragSupport(operations, dragAdapter.getSupportDragTransfers(), dragAdapter); CommonDropAdapter dropAdapter = new CommonDropAdapter(contentService, this); addDropSupport(operations, dropAdapter.getSupportedDropTransfers(), dropAdapter); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/76423e6866ed14a355f5dc7722b5b5eee2576d26/CommonViewer.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1208, 11728, 1876, 7544, 1435, 288, 202, 202, 20308, 5004, 28425, 471, 10895, 1195, 202, 202, 474, 5295, 273, 463, 2908, 18, 18768, 67, 24875, 571, 463, 2908, 18, 18768, 67, 16537, 31, 202, 202, 6517, 11728, 4216, 8823, 4216, 273, 394, 5658, 11728, 4216, 12, 1745, 1179, 16, 9506, 202, 2211, 1769, 202, 202, 1289, 11728, 6289, 12, 17542, 16, 8823, 4216, 18, 588, 6289, 11728, 1429, 18881, 9334, 9506, 202, 15997, 4216, 1769, 202, 202, 6517, 7544, 4216, 3640, 4216, 273, 394, 5658, 7544, 4216, 12, 1745, 1179, 16, 9506, 202, 2211, 1769, 202, 202, 1289, 7544, 6289, 12, 17542, 16, 3640, 4216, 18, 588, 7223, 7544, 1429, 18881, 9334, 9506, 202, 7285, 4216, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1208, 11728, 1876, 7544, 1435, 288, 202, 202, 20308, 5004, 28425, 471, 10895, 1195, 202, 202, 474, 5295, 273, 463, 2908, 18, 18768, 67, 24875, 571, 463, 2908, 18, 18768, 67, 16537, 31, 202, 202, 6517, 11728, 4216, 8823, 4216, 273, 394, 5658, 11728, 4216, 12, 1745, 1179, 16, 9506, 202, 2211, 1769, 202, 202, 1289, 11728, 6289, 12, 17542, 16, 8823, 4216, 18, 588, 6289, 11728, 1429, 18881, 9334, 9506, 202, 15997, 4216, 1769, 202, 202, 6517, 7544, 4216, 3640, 4216, 273, 394, 5658, 7544, 4216, 12, 1745, 1179, 16, 9506, 202, 2211, 1769, 202, 202, 1289, 7544, 6289, 12, 17542, 16, 3640, 4216, 18, 588, 7223, 7544, 1429, 18881, 9334, 9506, 202, 7285, 2 ]
new SurroundAction(JScrollPane.class.getName()).actionPerformed(myEditor, Collections.singletonList(myComponent), null);
ArrayList<RadComponent> targetList = new ArrayList<RadComponent>(Collections.singletonList(myComponent)); new SurroundAction(JScrollPane.class.getName()).actionPerformed(myEditor, targetList, null);
public void run() { new SurroundAction(JScrollPane.class.getName()).actionPerformed(myEditor, Collections.singletonList(myComponent), null); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/736c328215c26070bf0535d154cbf2415e9f7d17/NoScrollPaneInspection.java/buggy/ui-designer/impl/com/intellij/uiDesigner/inspections/NoScrollPaneInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 394, 16680, 2260, 1803, 12, 46, 26360, 18, 1106, 18, 17994, 1435, 2934, 1128, 13889, 12, 4811, 6946, 16, 28524, 1377, 5737, 18, 24487, 682, 12, 4811, 1841, 3631, 28524, 1377, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 394, 16680, 2260, 1803, 12, 46, 26360, 18, 1106, 18, 17994, 1435, 2934, 1128, 13889, 12, 4811, 6946, 16, 28524, 1377, 5737, 18, 24487, 682, 12, 4811, 1841, 3631, 28524, 1377, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private static void setGenreList(String value){
private void setGenreList(String value){
private static void setGenreList(String value){ if(!genreList.contains(value) && value.length()>0){ genreList.add(value); } }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/ee0f3284ba840583a4298e6d50c43c775981efd0/ControlMovieGuideTab.java/clean/jtg/control/ControlMovieGuideTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 7642, 266, 682, 12, 780, 460, 15329, 377, 202, 430, 12, 5, 4507, 266, 682, 18, 12298, 12, 1132, 13, 597, 460, 18, 2469, 1435, 34, 20, 15329, 377, 202, 202, 4507, 266, 682, 18, 1289, 12, 1132, 1769, 377, 202, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 7642, 266, 682, 12, 780, 460, 15329, 377, 202, 430, 12, 5, 4507, 266, 682, 18, 12298, 12, 1132, 13, 597, 460, 18, 2469, 1435, 34, 20, 15329, 377, 202, 202, 4507, 266, 682, 18, 1289, 12, 1132, 1769, 377, 202, 97, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public RubyInteger op_xor(RubyInteger other) {
public RubyInteger op_xor(IRubyObject other) {
public RubyInteger op_xor(RubyInteger other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("^", this); } return newFixnum(value ^ other.getLongValue()); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/db959c3e9bf8b9f3b30e1a76c6dac33d45d4abdd/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 1061, 67, 31346, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 38, 724, 379, 13, 288, 5411, 327, 261, 54, 10340, 4522, 13, 1308, 18, 1991, 1305, 2932, 66, 3113, 333, 1769, 3639, 289, 3639, 327, 394, 8585, 2107, 12, 1132, 3602, 1308, 18, 588, 3708, 620, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 1061, 67, 31346, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 38, 724, 379, 13, 288, 5411, 327, 261, 54, 10340, 4522, 13, 1308, 18, 1991, 1305, 2932, 66, 3113, 333, 1769, 3639, 289, 3639, 327, 394, 8585, 2107, 12, 1132, 3602, 1308, 18, 588, 3708, 620, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DocumentSet docs = collection.allDocs(broker, user, true);
DocumentSet docs = collection.allDocs(broker, true);
public int xupdate(User user, String collectionName, String xupdate) throws SAXException, PermissionDeniedException, EXistException, XPathException { DBBroker broker = null; try { broker = brokerPool.get(); Collection collection = broker.getCollection(collectionName); if (collection == null) throw new EXistException( "collection " + collectionName + " not found"); DocumentSet docs = collection.allDocs(broker, user, true); XUpdateProcessor processor = new XUpdateProcessor(brokerPool, user, docs); Modification modifications[] = processor.parse(new InputSource(new StringReader(xupdate))); long mods = 0; for (int i = 0; i < modifications.length; i++) { mods += modifications[i].process(); broker.flush(); } return (int) mods; } catch (ParserConfigurationException e) { throw new EXistException(e.getMessage()); } catch (IOException e) { throw new EXistException(e.getMessage()); } finally { brokerPool.release(broker); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bfcf33dba9c98234a0edaa282c8909b27b6a6ac4/RpcConnection.java/clean/src/org/exist/xmlrpc/RpcConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 619, 2725, 12, 1299, 729, 16, 514, 17137, 16, 514, 619, 2725, 13, 202, 202, 15069, 1082, 202, 55, 2501, 503, 16, 1082, 202, 5041, 15877, 16, 1082, 202, 2294, 376, 503, 16, 1082, 202, 14124, 503, 288, 202, 202, 2290, 11194, 8625, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 21722, 273, 8625, 2864, 18, 588, 5621, 1082, 202, 2532, 1849, 273, 8625, 18, 588, 2532, 12, 5548, 461, 1769, 1082, 202, 430, 261, 5548, 422, 446, 13, 9506, 202, 12849, 394, 5675, 376, 503, 12, 6862, 202, 6, 5548, 315, 397, 17137, 397, 315, 486, 1392, 8863, 1082, 202, 2519, 694, 3270, 273, 1849, 18, 454, 12656, 12, 21722, 16, 729, 16, 638, 1769, 1082, 202, 60, 1891, 5164, 6659, 273, 9506, 202, 2704, 1139, 1891, 5164, 12, 21722, 2864, 16, 729, 16, 3270, 1769, 1082, 202, 13467, 17953, 8526, 273, 9506, 202, 8700, 18, 2670, 12, 2704, 23699, 12, 2704, 26227, 12, 92, 2725, 3719, 1769, 1082, 202, 5748, 15546, 273, 374, 31, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 17953, 18, 2469, 31, 277, 27245, 288, 9506, 202, 22760, 1011, 17953, 63, 77, 8009, 2567, 5621, 9506, 202, 21722, 18, 11330, 5621, 1082, 202, 97, 1082, 202, 2463, 261, 474, 13, 15546, 31, 202, 202, 97, 1044, 261, 2678, 10737, 425, 13, 288, 1082, 202, 12849, 394, 5675, 376, 503, 12, 73, 18, 24906, 10663, 202, 202, 97, 1044, 261, 14106, 425, 13, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 619, 2725, 12, 1299, 729, 16, 514, 17137, 16, 514, 619, 2725, 13, 202, 202, 15069, 1082, 202, 55, 2501, 503, 16, 1082, 202, 5041, 15877, 16, 1082, 202, 2294, 376, 503, 16, 1082, 202, 14124, 503, 288, 202, 202, 2290, 11194, 8625, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 21722, 273, 8625, 2864, 18, 588, 5621, 1082, 202, 2532, 1849, 273, 8625, 18, 588, 2532, 12, 5548, 461, 1769, 1082, 202, 430, 261, 5548, 422, 446, 13, 9506, 202, 12849, 394, 5675, 376, 503, 12, 6862, 202, 6, 5548, 315, 397, 17137, 397, 315, 486, 1392, 8863, 1082, 202, 2519, 694, 3270, 273, 1849, 18, 454, 12656, 12, 21722, 16, 729, 16, 2 ]
public void readThemes(IExtensionRegistry in, ThemeRegistry out) throws CoreException {
public void readThemes(IExtensionRegistry in, ThemeRegistry out) {
public void readThemes(IExtensionRegistry in, ThemeRegistry out) throws CoreException { // this does not seem to really ever be throwing an the exception setRegistry(out); readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_THEMES); // support for old font definitions readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_FONT_DEFINITIONS); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ee7323193babe7ea791522f9fc143b04d4ce0258/ThemeRegistryReader.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ThemeRegistryReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 30224, 12, 45, 3625, 4243, 316, 16, 19745, 4243, 596, 13, 5411, 1216, 30015, 288, 3639, 368, 333, 1552, 486, 19264, 358, 8654, 14103, 506, 19440, 392, 326, 1520, 3639, 444, 4243, 12, 659, 1769, 3639, 855, 4243, 12, 267, 16, 11810, 5370, 18, 19415, 67, 734, 16, 467, 2421, 22144, 2918, 18, 6253, 67, 24644, 958, 55, 1769, 3639, 368, 2865, 364, 1592, 3512, 6377, 3639, 855, 4243, 12, 267, 16, 11810, 5370, 18, 19415, 67, 734, 16, 7734, 467, 2421, 22144, 2918, 18, 6253, 67, 25221, 67, 25312, 55, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 30224, 12, 45, 3625, 4243, 316, 16, 19745, 4243, 596, 13, 5411, 1216, 30015, 288, 3639, 368, 333, 1552, 486, 19264, 358, 8654, 14103, 506, 19440, 392, 326, 1520, 3639, 444, 4243, 12, 659, 1769, 3639, 855, 4243, 12, 267, 16, 11810, 5370, 18, 19415, 67, 734, 16, 467, 2421, 22144, 2918, 18, 6253, 67, 24644, 958, 55, 1769, 3639, 368, 2865, 364, 1592, 3512, 6377, 3639, 855, 4243, 12, 267, 16, 11810, 5370, 18, 19415, 67, 734, 16, 7734, 467, 2421, 22144, 2918, 18, 6253, 67, 25221, 67, 25312, 55, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
mapper.setKeyStroke((String)functions.getSelectedValue(),ke,isAltGr);
mapper.setKeyStroke(macro,ke,isAltGr);
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); if (isLinux) mapper.setKeyStroke(mnemonicData[index],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[index],ke); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[index])); } else { if (macros) { System.out.println((String)functions.getSelectedValue()); if (isLinux) mapper.setKeyStroke((String)functions.getSelectedValue(),ke,isAltGr); else mapper.setKeyStroke((String)functions.getSelectedValue(),ke); strokeDesc.setText(mapper.getKeyStrokeDesc( (String)functions.getSelectedValue())); } if (special) { System.out.println((String)functions.getSelectedValue()); String k = ""; k += ((String)functions.getSelectedValue()).charAt(7); mapper.removeKeyStroke(k); if (isLinux) { mapper.setKeyStroke(k,ke,isAltGr); } else { mapper.setKeyStroke(k,ke); } strokeDesc.setText(mapper.getKeyStrokeDesc(k)); } } mods = true; }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/c26051d0628102f582377e739b1ddc1f1c5b70fe/KeyConfigure.java/buggy/src/org/tn5250j/tools/KeyConfigure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 19469, 653, 510, 3250, 281, 12, 653, 1133, 12519, 13, 288, 1377, 309, 16051, 5821, 6973, 597, 401, 9371, 13, 288, 540, 509, 770, 273, 14015, 653, 3291, 13, 10722, 18, 588, 7416, 620, 1435, 2934, 588, 1016, 5621, 540, 309, 261, 291, 19475, 13, 5411, 5815, 18, 542, 653, 14602, 12, 13607, 20918, 751, 63, 1615, 6487, 4491, 16, 291, 10655, 20799, 1769, 540, 469, 5411, 5815, 18, 542, 653, 14602, 12, 13607, 20918, 751, 63, 1615, 6487, 4491, 1769, 540, 11040, 4217, 18, 542, 1528, 12, 13919, 18, 588, 653, 14602, 4217, 12, 21821, 12883, 20918, 751, 63, 1615, 5717, 1769, 1377, 289, 1377, 469, 288, 540, 309, 261, 5821, 6973, 13, 288, 5411, 2332, 18, 659, 18, 8222, 12443, 780, 13, 10722, 18, 588, 7416, 620, 10663, 5411, 309, 261, 291, 19475, 13, 9079, 5815, 18, 542, 653, 14602, 12, 26448, 16, 4491, 16, 291, 10655, 20799, 1769, 5411, 469, 9079, 5815, 18, 542, 653, 14602, 12443, 780, 13, 10722, 18, 588, 7416, 620, 9334, 4491, 1769, 5411, 11040, 4217, 18, 542, 1528, 12, 13919, 18, 588, 653, 14602, 4217, 12, 17311, 261, 780, 13, 10722, 18, 588, 7416, 620, 1435, 10019, 540, 289, 540, 309, 261, 9371, 13, 288, 5411, 2332, 18, 659, 18, 8222, 12443, 780, 13, 10722, 18, 588, 7416, 620, 10663, 5411, 514, 417, 273, 1408, 31, 5411, 417, 1011, 14015, 780, 13, 10722, 18, 588, 7416, 620, 1435, 2934, 3001, 861, 12, 27, 1769, 5411, 5815, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 19469, 653, 510, 3250, 281, 12, 653, 1133, 12519, 13, 288, 1377, 309, 16051, 5821, 6973, 597, 401, 9371, 13, 288, 540, 509, 770, 273, 14015, 653, 3291, 13, 10722, 18, 588, 7416, 620, 1435, 2934, 588, 1016, 5621, 540, 309, 261, 291, 19475, 13, 5411, 5815, 18, 542, 653, 14602, 12, 13607, 20918, 751, 63, 1615, 6487, 4491, 16, 291, 10655, 20799, 1769, 540, 469, 5411, 5815, 18, 542, 653, 14602, 12, 13607, 20918, 751, 63, 1615, 6487, 4491, 1769, 540, 11040, 4217, 18, 542, 1528, 12, 13919, 18, 588, 653, 14602, 4217, 12, 21821, 12883, 20918, 751, 63, 1615, 5717, 1769, 1377, 289, 1377, 469, 288, 540, 309, 261, 5821, 6973, 13, 288, 5411, 2 ]
LPCDatagram[] datagrams = (LPCDatagram[]) timeline.getDatagrams(unitStart,(long)unitSize);
Datagram[] datagrams = (Datagram[]) timeline.getDatagrams(unitStart,(long)unitSize);
public AudioInputStream getAudio(List units) throws IOException { logger.debug("Getting audio for "+units.size()+" units"); List audioStreams = new ArrayList(units.size()); LPCTimelineReader timeline = (LPCTimelineReader) database.getAudioTimeline(); int lpcOrder = timeline.getLPCOrder(); float lpcMin = timeline.getLPCMin(); float lpcRange = timeline.getLPCRange(); int totalNSamples = 0; // First loop through all units: collect information and build up preparatory structures for (Iterator it = units.iterator();it.hasNext();) { SelectedUnit unit = (SelectedUnit) it.next(); UnitLPCData lpcData = new UnitLPCData(); unit.setConcatenationData(lpcData); int nSamples = 0; int unitSize = unitToTimeline(unit.getUnit().getDuration()); // convert to timeline samples long unitStart = unitToTimeline(unit.getUnit().getStart()); // convert to timeline samples //System.out.println("Unit size "+unitSize+", pitchmarksInUnit "+pitchmarksInUnit); LPCDatagram[] datagrams = (LPCDatagram[]) timeline.getDatagrams(unitStart,(long)unitSize); // one right context period for windowing: LPCDatagram rightContextFrame = null; Unit next = database.getUnitFileReader().getNextUnit(unit.getUnit()); if (next != null && !next.isEdgeUnit()) { rightContextFrame = (LPCDatagram)timeline.getDatagram(unitStart+unitSize); } else { // no right context: add a zero frame as long as the last frame in the unit int length = datagrams[datagrams.length-1].getQuantizedResidual().length; rightContextFrame = new LPCDatagram(length, new float[lpcOrder], new short[length], lpcMin, lpcRange); } int rightContextFrameLength; int pitchmarksInUnit = datagrams.length; assert pitchmarksInUnit > 0; // First of all: Set target pitchmarks, // either by copying from units (data-driven) // or by computing from target (model-driven) int[] pitchmarks; if (unit.getTarget().isSilence()) { int targetLength = (int) Math.round(unit.getTarget().getTargetDurationInSeconds()*audioformat.getSampleRate()); int avgPeriodLength = unitSize / pitchmarksInUnit; // there will be rounding errors here int nTargetPitchmarks = Math.round((float)targetLength / avgPeriodLength); // round to the nearest integer pitchmarks = new int[nTargetPitchmarks]; lpcData.setPitchmarks(pitchmarks); for (int i=0; i<nTargetPitchmarks-1; i++) { nSamples += avgPeriodLength; pitchmarks[i] = nSamples; } // last pitchmark compensates for rounding errors nSamples += targetLength - (nTargetPitchmarks-1)*avgPeriodLength; pitchmarks[nTargetPitchmarks-1] = nSamples; assert pitchmarks[nTargetPitchmarks-1] == targetLength; rightContextFrameLength = 0; } else { pitchmarks = new int[pitchmarksInUnit+1]; lpcData.setPitchmarks(pitchmarks); for (int i = 0; i < pitchmarks.length; i++) { if (i<0 || i>=pitchmarksInUnit) throw new IllegalArgumentException("Have "+pitchmarksInUnit+" frames, requested number "+i); nSamples += datagrams[i].getResidual().length; pitchmarks[i] = nSamples; } assert pitchmarks[pitchmarks.length-2] == unitToTimeline(unit.getUnit().getDuration()): "Unexpected difference: expected "+unitToTimeline(unit.getUnit().getDuration())+" samples, found "+pitchmarks[pitchmarks.length-2]; // And the last pitchmark for windowing the right context frame: rightContextFrameLength = rightContextFrame.getQuantizedResidual().length; pitchmarks[pitchmarks.length-1] = nSamples+rightContextFrameLength; } totalNSamples += nSamples; int nPitchmarks = pitchmarks.length; //System.out.println("Unit size "+unitSize+", pitchmarks length " // +nPitchmarks); LPCDatagram[] frames = new LPCDatagram[nPitchmarks]; lpcData.setFrames(frames); float timeStretch = (float)unitSize/(float)(nSamples); // if timeStretch == 1, copy unit as it is; // if timeStretch < 1, lengthen by duplicating frames // if timeStretch > 1, shorten by skipping frames int targetResidualPosition = 0; float frameIndex = 0; //float uIndex = 0; // counter of imaginary sample position in the unit // for each pitchmark, get frame coefficients and residual for (int i=0; i < nPitchmarks-1; i++) { frames[i] = datagrams[Math.round(frameIndex)]; frameIndex += timeStretch; // i.e., increment by less than 1 for stretching, by more than 1 for shrinking // FreeTTS did this time stretching on the samples level, and retrieved the frame closest to the resulting sample position: // uIndex += ((float) targetResidualSize * m); } if (!unit.getTarget().isSilence()) { assert rightContextFrame != null; frames[nPitchmarks-1] = rightContextFrame; } // Generate audio: Residual-excited linear prediction FloatList outBuffer = FloatList.createList(timeline.getLPCOrder() + 1); double[] audio = new double[nSamples+rightContextFrameLength]; int s = 0; // For each frame: for (int i = 0; i < nPitchmarks; i++) { // get the unquantized lpc coefficients and the unquantized residual: float[] lpcCoeffs = frames[i].getCoeffs(lpcMin, lpcRange); short[] residual = frames[i].getResidual(); int nSamplesInFrame = residual.length; // For each sample: for (int j = 0; j < nSamplesInFrame; j++) { FloatList backBuffer = outBuffer.prev; float ob = residual[j]; for (int k=0; k<lpcOrder; k++) { ob += lpcCoeffs[k] * backBuffer.value; backBuffer = backBuffer.prev; } audio[s++] = ob; outBuffer.value = ob; outBuffer = outBuffer.next; } } // Now audio is the resynthesized audio signal for the unit plus the right context frame, // without any post-processing. unit.setAudio(audio); } // Second loop through all units: post-process and concatenate audio double[] totalAudio = new double[totalNSamples]; int iTotal = 0; // write position in totalAudio for (Iterator it = units.iterator();it.hasNext();) { SelectedUnit unit = (SelectedUnit) it.next(); UnitLPCData lpcData = (UnitLPCData) unit.getConcatenationData(); int nPitchmarks = lpcData.getPitchmarks().length; int rightContextFrameLength; if (unit.getTarget().isSilence()) rightContextFrameLength = 0; else rightContextFrameLength = lpcData.getPeriodLength(nPitchmarks-1); double[] audio = unit.getAudio(); int nSamples = audio.length-rightContextFrameLength; // Now apply the left half of a Hann window to the first frame and // the right half of a Hann window to the right context frame: int firstPeriodLength = lpcData.getPeriodLength(0); Window hannWindow = new HannWindow(2*firstPeriodLength); // start overlap at iTotal: for (int i=0; i<firstPeriodLength; i++, iTotal++) { totalAudio[iTotal] += audio[i] * hannWindow.value(i); } hannWindow = new HannWindow(2*rightContextFrameLength); for (int i=0; i<rightContextFrameLength; i++) { audio[nSamples+i] *= hannWindow.value(rightContextFrameLength+i); } int toCopy = Math.min(nSamples+rightContextFrameLength-firstPeriodLength, totalAudio.length-iTotal); System.out.println("Copying "+ toCopy +" from audio (total length "+audio.length+") position "+firstPeriodLength+" into totalAudio (total length "+totalAudio.length+") at position "+iTotal); System.arraycopy(audio, firstPeriodLength, totalAudio, iTotal, toCopy); iTotal += nSamples - firstPeriodLength; // TODO: or should this be iTotal += nSamples - rightContextFrameLength; ??? } return new DDSAudioInputStream(new BufferedDoubleDataSource(totalAudio), audioformat); }
18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/2ae6a4d2afba4967bb1e8dba922d54f460ecd15b/LPCOverlapUnitConcatenator.java/buggy/java/de/dfki/lt/mary/unitselection/LPCOverlapUnitConcatenator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15045, 4348, 4506, 4484, 12, 682, 4971, 13, 1216, 1860, 565, 288, 3639, 1194, 18, 4148, 2932, 19213, 7447, 364, 13773, 7705, 18, 1467, 1435, 9078, 4971, 8863, 3639, 987, 7447, 10301, 273, 394, 2407, 12, 7705, 18, 1467, 10663, 3639, 511, 52, 1268, 381, 3027, 2514, 18316, 273, 261, 14461, 1268, 381, 3027, 2514, 13, 2063, 18, 588, 12719, 31914, 5621, 3639, 509, 328, 2436, 2448, 273, 18316, 18, 588, 48, 3513, 2448, 5621, 3639, 1431, 328, 2436, 2930, 273, 18316, 18, 588, 48, 3513, 2930, 5621, 3639, 1431, 328, 2436, 2655, 273, 18316, 18, 588, 48, 3513, 2655, 5621, 7734, 509, 2078, 3156, 2995, 273, 374, 31, 3639, 368, 5783, 2798, 3059, 777, 4971, 30, 3274, 1779, 471, 1361, 731, 675, 1065, 8452, 12597, 377, 202, 1884, 261, 3198, 518, 273, 4971, 18, 9838, 5621, 305, 18, 5332, 2134, 5621, 13, 288, 377, 202, 565, 4352, 828, 2802, 2836, 273, 261, 7416, 2802, 13, 518, 18, 4285, 5621, 5411, 8380, 48, 3513, 751, 328, 2436, 751, 273, 394, 8380, 48, 3513, 751, 5621, 5411, 2836, 18, 542, 21432, 367, 751, 12, 80, 2436, 751, 1769, 5411, 509, 290, 13239, 273, 374, 31, 5411, 509, 2836, 1225, 273, 2836, 774, 31914, 12, 4873, 18, 588, 2802, 7675, 588, 5326, 10663, 368, 1765, 358, 18316, 5216, 5411, 1525, 2836, 1685, 273, 2836, 774, 31914, 12, 4873, 18, 588, 2802, 7675, 588, 1685, 10663, 368, 1765, 358, 18316, 5216, 5411, 368, 3163, 18, 659, 18, 8222, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15045, 4348, 4506, 4484, 12, 682, 4971, 13, 1216, 1860, 565, 288, 3639, 1194, 18, 4148, 2932, 19213, 7447, 364, 13773, 7705, 18, 1467, 1435, 9078, 4971, 8863, 3639, 987, 7447, 10301, 273, 394, 2407, 12, 7705, 18, 1467, 10663, 3639, 511, 52, 1268, 381, 3027, 2514, 18316, 273, 261, 14461, 1268, 381, 3027, 2514, 13, 2063, 18, 588, 12719, 31914, 5621, 3639, 509, 328, 2436, 2448, 273, 18316, 18, 588, 48, 3513, 2448, 5621, 3639, 1431, 328, 2436, 2930, 273, 18316, 18, 588, 48, 3513, 2930, 5621, 3639, 1431, 328, 2436, 2655, 273, 18316, 18, 588, 48, 3513, 2655, 5621, 7734, 509, 2078, 3156, 2995, 273, 374, 31, 3639, 368, 5783, 2798, 3059, 777, 4971, 30, 2 ]
xpp.require(xpp.START_TAG, ENV, "Header");
xpp.require(XmlPullParser.START_TAG, ENV, "Header");
private void checkTestSetPrefixSoap2(String soapEnvelope) throws Exception { xpp.setInput(new StringReader(soapEnvelope)); xpp.setFeature(xpp.FEATURE_PROCESS_NAMESPACES, true); xpp.require(xpp.START_DOCUMENT, null, null); xpp.next(); // essentially moveToContent() xpp.require(xpp.START_TAG, ENV, "Envelope"); xpp.nextTag(); xpp.require(xpp.START_TAG, ENV, "Header"); xpp.nextTag(); xpp.require(xpp.START_TAG, ALERTCONTROL, "alertcontrol"); String mustUderstand = xpp.getAttributeValue(ENV, "mustUnderstand"); assertEquals("true", mustUderstand); String role = xpp.getAttributeValue(ENV, "role"); assertEquals(ROLE, role); xpp.nextTag(); xpp.require(xpp.START_TAG, ALERTCONTROL, "priority"); String text = xpp.nextText(); assertEquals("1", text); //Integer.parseInt(text); xpp.nextTag(); xpp.require(xpp.START_TAG, ALERTCONTROL, "expires"); text = xpp.nextText(); assertEquals(EXPIRES, text); xpp.nextTag(); xpp.require(xpp.END_TAG, ALERTCONTROL, "alertcontrol"); xpp.nextTag(); xpp.require(xpp.END_TAG, ENV, "Header"); xpp.nextTag(); xpp.require(xpp.START_TAG, ENV, "Body"); xpp.nextTag(); xpp.require(xpp.START_TAG, ALERT, "alert"); xpp.nextTag(); xpp.require(xpp.START_TAG, ALERT, "msg"); text = xpp.nextText(); assertEquals(MSG, text); xpp.nextTag(); xpp.require(xpp.END_TAG, ALERT, "alert"); xpp.nextTag(); xpp.require(xpp.END_TAG, ENV, "Body"); xpp.nextTag(); xpp.require(xpp.END_TAG, ENV, "Envelope"); xpp.next(); xpp.require(xpp.END_DOCUMENT, null, null); }
3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/25be6df80154469aacea3441a8e7758596d46574/TestSerializeWithNs.java/clean/src/java/tests/org/xmlpull/v1/tests/TestSerializeWithNs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 4709, 694, 2244, 20601, 22, 12, 780, 9930, 10862, 13, 1216, 1185, 288, 3639, 619, 11858, 18, 542, 1210, 12, 2704, 26227, 12, 19215, 10862, 10019, 3639, 619, 11858, 18, 542, 4595, 12, 92, 11858, 18, 18257, 67, 16560, 67, 11368, 55, 16, 638, 1769, 7734, 619, 11858, 18, 6528, 12, 92, 11858, 18, 7570, 67, 18450, 16, 446, 16, 446, 1769, 7734, 619, 11858, 18, 4285, 5621, 368, 18518, 11220, 13863, 1350, 1435, 3639, 619, 11858, 18, 6528, 12, 92, 11858, 18, 7570, 67, 7927, 16, 15615, 16, 315, 10862, 8863, 7734, 619, 11858, 18, 4285, 1805, 5621, 3639, 619, 11858, 18, 6528, 12, 4432, 9629, 2678, 18, 7570, 67, 7927, 16, 15615, 16, 315, 1864, 8863, 7734, 619, 11858, 18, 4285, 1805, 5621, 3639, 619, 11858, 18, 6528, 12, 92, 11858, 18, 7570, 67, 7927, 16, 7981, 11539, 18248, 16, 315, 11798, 7098, 8863, 3639, 514, 1297, 57, 765, 10145, 273, 619, 11858, 18, 588, 14942, 12, 11986, 16, 315, 11926, 14655, 10145, 8863, 3639, 1815, 8867, 2932, 3767, 3113, 1297, 57, 765, 10145, 1769, 3639, 514, 2478, 273, 619, 11858, 18, 588, 14942, 12, 11986, 16, 315, 4615, 8863, 3639, 1815, 8867, 12, 16256, 16, 2478, 1769, 7734, 619, 11858, 18, 4285, 1805, 5621, 3639, 619, 11858, 18, 6528, 12, 92, 11858, 18, 7570, 67, 7927, 16, 7981, 11539, 18248, 16, 315, 8457, 8863, 3639, 514, 977, 273, 619, 11858, 18, 4285, 1528, 5621, 3639, 1815, 8867, 2932, 21, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 4709, 694, 2244, 20601, 22, 12, 780, 9930, 10862, 13, 1216, 1185, 288, 3639, 619, 11858, 18, 542, 1210, 12, 2704, 26227, 12, 19215, 10862, 10019, 3639, 619, 11858, 18, 542, 4595, 12, 92, 11858, 18, 18257, 67, 16560, 67, 11368, 55, 16, 638, 1769, 7734, 619, 11858, 18, 6528, 12, 92, 11858, 18, 7570, 67, 18450, 16, 446, 16, 446, 1769, 7734, 619, 11858, 18, 4285, 5621, 368, 18518, 11220, 13863, 1350, 1435, 3639, 619, 11858, 18, 6528, 12, 92, 11858, 18, 7570, 67, 7927, 16, 15615, 16, 315, 10862, 8863, 7734, 619, 11858, 18, 4285, 1805, 5621, 3639, 619, 11858, 18, 6528, 12, 4432, 9629, 2678, 18, 7570, 67, 7927, 16, 15615, 16, 2 ]
private boolean matchOutVerb(String source, String target, Verb verb) { Object[] verbs = acps.getOutgoingVerbs(source, target); if( verbs[0].toString()=="*" ) { //if(debug) System.out.println("SecurityAspect: got OUT * verb, so blocking "+verb+" for " + source); return true; } if(verb == null || verbs.length == 0) { if(debug)System.out.println("SecurityAspect: no out verbs for " + source + ", " + target + ", " + verb ); return false; // we have no policy so return } for(int i = 0; i < verbs.length; i++) { Verb v = null; try{ v = (Verb)verbs[i]; } catch(Exception e){ //probably a cast error, quietly skip } if (v==null) continue; if(verb.equals(v)) { if(debug)System.out.println("SecurityAspect: matched out verbs " + verbs[i] + " == " + verb); return true; // we found a match so return success } } return false; // we found no matches so return false }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/dc9fd5855e50eaadd5520fad9ce9335764830777/SecurityAspect.java/buggy/securityservices/src/com/nai/security/crypto/SecurityAspect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6494, 1916, 1182, 16281, 12, 780, 3168, 16, 780, 3299, 16, 16281, 16629, 15329, 921, 8526, 502, 2038, 33, 1077, 1121, 18, 588, 24866, 3945, 2038, 12, 3168, 16, 3299, 1769, 430, 12, 502, 2038, 63, 20, 8009, 10492, 1435, 31713, 7388, 15329, 202, 759, 430, 12, 4148, 13, 3163, 18, 659, 18, 8222, 2932, 4368, 17468, 30, 13212, 5069, 14, 16629, 16, 87, 947, 739, 310, 6, 15, 16629, 9078, 1884, 6, 15, 3168, 1769, 2463, 3767, 31, 97, 430, 12, 16629, 631, 2011, 20081, 502, 2038, 18, 2469, 631, 20, 15329, 430, 12, 4148, 13, 3163, 18, 659, 18, 8222, 2932, 4368, 17468, 30, 2135, 659, 502, 2038, 1884, 6, 9506, 202, 15, 3168, 15, 15937, 15, 3299, 15, 15937, 15, 16629, 1769, 202, 2463, 5743, 31, 202, 202, 759, 1814, 76, 7638, 556, 1590, 87, 479, 20922, 97, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 502, 2038, 18, 2469, 31, 77, 27245, 95, 202, 16281, 90, 33, 2011, 31, 202, 698, 95, 202, 90, 28657, 16281, 13, 502, 2038, 63, 77, 15533, 202, 97, 202, 14683, 12, 503, 73, 15329, 202, 759, 7748, 6906, 1077, 689, 1636, 16, 20380, 715, 7457, 202, 97, 202, 430, 12, 90, 631, 2011, 13, 17143, 31, 202, 430, 12, 16629, 18, 14963, 12, 90, 3719, 95, 202, 430, 12, 4148, 13, 3163, 18, 659, 18, 8222, 2932, 4368, 17468, 30, 11073, 659, 502, 2038, 6, 9506, 202, 15, 502, 2038, 63, 77, 3737, 6, 31713, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6494, 1916, 1182, 16281, 12, 780, 3168, 16, 780, 3299, 16, 16281, 16629, 15329, 921, 8526, 502, 2038, 33, 1077, 1121, 18, 588, 24866, 3945, 2038, 12, 3168, 16, 3299, 1769, 430, 12, 502, 2038, 63, 20, 8009, 10492, 1435, 31713, 7388, 15329, 202, 759, 430, 12, 4148, 13, 3163, 18, 659, 18, 8222, 2932, 4368, 17468, 30, 13212, 5069, 14, 16629, 16, 87, 947, 739, 310, 6, 15, 16629, 9078, 1884, 6, 15, 3168, 1769, 2463, 3767, 31, 97, 430, 12, 16629, 631, 2011, 20081, 502, 2038, 18, 2469, 631, 20, 15329, 430, 12, 4148, 13, 3163, 18, 659, 18, 8222, 2932, 4368, 17468, 30, 2135, 659, 502, 2038, 1884, 6, 9506, 202, 15, 3168, 15, 15937, 2 ]
return ComponentPackage.eINSTANCE.getAxis( );
return ComponentPackage.Literals.AXIS;
protected EClass eStaticClass( ) { return ComponentPackage.eINSTANCE.getAxis( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/AxisImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/AxisImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8233, 425, 5788, 797, 12, 262, 202, 95, 202, 202, 2463, 5435, 2261, 18, 73, 13341, 18, 588, 6558, 12, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8233, 425, 5788, 797, 12, 262, 202, 95, 202, 202, 2463, 5435, 2261, 18, 73, 13341, 18, 588, 6558, 12, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (actionListeners != null) { actionListeners.remove(l); }
if (actionListeners != null) { actionListeners.remove(l); }
public void removeActionListener(ActionListener l) { if (actionListeners != null) { actionListeners.remove(l); } }
47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/e15325f32251406dc11c2e90c9bbffba5402e0bd/JXRadioGroup.java/clean/src/java/org/jdesktop/swingx/JXRadioGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1803, 2223, 12, 1803, 2223, 328, 13, 288, 3639, 309, 261, 1128, 5583, 480, 446, 13, 288, 5411, 1301, 5583, 18, 4479, 12, 80, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1803, 2223, 12, 1803, 2223, 328, 13, 288, 3639, 309, 261, 1128, 5583, 480, 446, 13, 288, 5411, 1301, 5583, 18, 4479, 12, 80, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
isCustom = false;
public BugzillaQueryDialog(TaskRepository repository) { super(Display.getDefault().getActiveShell()); isNew = true; isCustom = false; searchOptionPage = new BugzillaSearchOptionPage(repository); title = "New Bugzilla Query"; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/e6d1f70327c8947e71c9f31651e7845d2124f3f9/BugzillaQueryDialog.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaQueryDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 6353, 12, 2174, 3305, 3352, 13, 288, 202, 202, 9565, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 10663, 202, 202, 291, 1908, 273, 638, 31, 202, 202, 291, 3802, 273, 629, 31, 202, 202, 3072, 1895, 1964, 273, 394, 16907, 15990, 2979, 1895, 1964, 12, 9071, 1769, 202, 202, 2649, 273, 315, 1908, 16907, 15990, 2770, 14432, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 6353, 12, 2174, 3305, 3352, 13, 288, 202, 202, 9565, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 10663, 202, 202, 291, 1908, 273, 638, 31, 202, 202, 291, 3802, 273, 629, 31, 202, 202, 3072, 1895, 1964, 273, 394, 16907, 15990, 2979, 1895, 1964, 12, 9071, 1769, 202, 202, 2649, 273, 315, 1908, 16907, 15990, 2770, 14432, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
KeyPairGenerator kpgen;
org.mozilla.jss.crypto.KeyPairGenerator kpgen;
public static void main(String args[]) { CryptoToken token; CryptoManager manager; byte[] data = new byte[] {1,2,3,4,5,6,7,8,9}; byte[] signature; java.security.Signature signer; PublicKey pubk; KeyPairGenerator kpgen; KeyPair keyPair; if(args.length != 2) { usage(); return; } String dbdir = args[0]; String tokenname = args[1]; try { CryptoManager.InitializationValues vals = new CryptoManager.InitializationValues ( args[0] ); CryptoManager.initialize(vals); manager = CryptoManager.getInstance(); Debug.setLevel(Debug.OBNOXIOUS); token = manager.getTokenByName(tokenname); Provider[] providers = Security.getProviders(); for(int i=0; i < providers.length; i++) { System.out.println("Provider "+i+": "+providers[i].getName()); } // Generate an RSA keypair kpgen = token.getKeyPairGenerator(KeyPairAlgorithm.RSA); kpgen.initialize(1024); keyPair = kpgen.genKeyPair(); // RSA MD5 signer = java.security.Signature.getInstance("MD5/RSA"); System.out.println("Created a signing context"); signer.initSign( (org.mozilla.jss.crypto.PrivateKey)keyPair.getPrivate()); System.out.println("initialized the signing operation"); signer.update(data); System.out.println("updated signature with data"); signature = signer.sign(); System.out.println("Successfully signed!"); signer.initVerify(keyPair.getPublic()); System.out.println("initialized verification"); signer.update(data); System.out.println("updated verification with data"); if( signer.verify(signature) ) { System.out.println("Signature Verified Successfully!"); } else { System.out.println("ERROR: Signature failed to verify."); } } catch(Exception e) { e.printStackTrace(); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/85797db2227e6699b5ed0124ea57e6120306aaf4/JCASigTest.java/buggy/security/jss/org/mozilla/jss/tests/JCASigTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 202, 202, 18048, 1345, 1147, 31, 202, 202, 18048, 1318, 3301, 31, 202, 202, 7229, 8526, 501, 273, 394, 1160, 8526, 288, 21, 16, 22, 16, 23, 16, 24, 16, 25, 16, 26, 16, 27, 16, 28, 16, 29, 20451, 202, 202, 7229, 8526, 3372, 31, 202, 202, 6290, 18, 7462, 18, 5374, 10363, 31, 202, 202, 9632, 5634, 79, 31, 202, 202, 15099, 3908, 14061, 4507, 31, 202, 202, 15099, 31527, 31, 202, 202, 430, 12, 1968, 18, 2469, 480, 576, 13, 288, 1082, 202, 9167, 5621, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 1319, 1214, 273, 833, 63, 20, 15533, 202, 202, 780, 1147, 529, 273, 833, 63, 21, 15533, 202, 202, 698, 288, 5411, 15629, 1318, 18, 17701, 1972, 5773, 273, 394, 7734, 15629, 1318, 18, 17701, 1972, 261, 833, 63, 20, 65, 11272, 5411, 15629, 1318, 18, 11160, 12, 4524, 1769, 1082, 565, 3301, 273, 15629, 1318, 18, 588, 1442, 5621, 1082, 565, 4015, 18, 542, 2355, 12, 2829, 18, 5704, 3417, 60, 4294, 3378, 1769, 1082, 202, 2316, 273, 3301, 18, 588, 1345, 5911, 12, 2316, 529, 1769, 5411, 7561, 8526, 9165, 273, 6036, 18, 588, 10672, 5621, 5411, 364, 12, 474, 277, 33, 20, 31, 277, 411, 9165, 18, 2469, 31, 277, 27245, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 2249, 13773, 77, 15, 6877, 13773, 17520, 63, 77, 8009, 17994, 10663, 5411, 289, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 202, 202, 18048, 1345, 1147, 31, 202, 202, 18048, 1318, 3301, 31, 202, 202, 7229, 8526, 501, 273, 394, 1160, 8526, 288, 21, 16, 22, 16, 23, 16, 24, 16, 25, 16, 26, 16, 27, 16, 28, 16, 29, 20451, 202, 202, 7229, 8526, 3372, 31, 202, 202, 6290, 18, 7462, 18, 5374, 10363, 31, 202, 202, 9632, 5634, 79, 31, 202, 202, 15099, 3908, 14061, 4507, 31, 202, 202, 15099, 31527, 31, 202, 202, 430, 12, 1968, 18, 2469, 480, 576, 13, 288, 1082, 202, 9167, 5621, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 1319, 1214, 273, 833, 63, 20, 15533, 202, 202, 2 ]
}
}
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { handleStartElement(element, attributes, augs); // call handlers if (fDocumentHandler != null) { fDocumentHandler.startElement(element, attributes, augs); } } // startElement(QName,XMLAttributes)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0c89615b0bdfe565e769952ce9d81b62b7cd076a/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 432, 14870, 1012, 279, 9024, 13, 565, 1216, 1139, 50, 45, 503, 288, 3639, 1640, 1685, 1046, 12, 2956, 16, 1677, 16, 279, 9024, 1769, 3639, 368, 745, 4919, 3639, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 5411, 284, 2519, 1503, 18, 1937, 1046, 12, 2956, 16, 1677, 16, 279, 9024, 1769, 3639, 289, 565, 289, 368, 13591, 12, 13688, 16, 4201, 2498, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 432, 14870, 1012, 279, 9024, 13, 565, 1216, 1139, 50, 45, 503, 288, 3639, 1640, 1685, 1046, 12, 2956, 16, 1677, 16, 279, 9024, 1769, 3639, 368, 745, 4919, 3639, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 5411, 284, 2519, 1503, 18, 1937, 1046, 12, 2956, 16, 1677, 16, 279, 9024, 1769, 3639, 289, 565, 289, 368, 13591, 12, 13688, 16, 4201, 2498, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} catch (Exception ex) { if (sipStack.isLoggingEnabled()) { sipStack .getLogWriter() .logError( "Unexpected exception caught -- carrying on bravely", ex); } } finally { if (sipStack.isLoggingEnabled()) { sipStack.getLogWriter().logDebug( "exitting event processing loop");
} } finally { if (sipStack.isLoggingEnabled()) { if (!this.isStopped) { sipStack.getLogWriter().logFatalError("Event scanner exited abnormally");
public void run() { // Ask the auditor to monitor this thread ThreadAuditor.ThreadHandle threadHandle = sipStack.getThreadAuditor().addCurrentThread(); while (true) { try { EventWrapper eventWrapper = null; LinkedList eventsToDeliver; synchronized (this.eventMutex) { // First, wait for some events to become available. while (pendingEvents.isEmpty()) { // There's nothing in the list, check to make sure we // haven't // been stopped. If we have, then let the thread die. if (this.isStopped) { if (sipStack.isLoggingEnabled()) sipStack.getLogWriter().logDebug( "Stopped event scanner!!"); return; } // We haven't been stopped, and the event list is indeed // rather empty. Wait for some events to come along. try { // Send a heartbeat to the thread auditor threadHandle.ping(); // Wait for events (with a timeout) eventMutex.wait(threadHandle.getPingIntervalInMillisecs()); } catch (InterruptedException ex) { // Let the thread die a normal death sipStack.getLogWriter().logDebug("Interrupted!"); return; } } // There are events in the 'pending events list' that need // processing. Hold onto the old 'pending Events' list, but // make a new one for the other methods to operate on. This // tap-dancing is to avoid deadlocks and also to ensure that // the list is not modified while we are iterating over it. eventsToDeliver = pendingEvents; pendingEvents = new LinkedList(); } ListIterator iterator = eventsToDeliver.listIterator(); while (iterator.hasNext()) { eventWrapper = (EventWrapper) iterator.next(); if (sipStack.isLoggingEnabled()) { sipStack.getLogWriter().logDebug( "Processing " + eventWrapper + "nevents " + eventsToDeliver.size()); } deliverEvent(eventWrapper); } } catch (Exception ex) { if (sipStack.isLoggingEnabled()) { sipStack .getLogWriter() .logError( "Unexpected exception caught -- carrying on bravely", ex); } } finally { if (sipStack.isLoggingEnabled()) { sipStack.getLogWriter().logDebug( "exitting event processing loop"); } } } // end While }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/a9cbfcf071c90f66ee1e8215941111336701b806/EventScanner.java/clean/src/gov/nist/javax/sip/EventScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 759, 25747, 326, 20232, 1811, 358, 6438, 333, 2650, 202, 202, 3830, 37, 1100, 1811, 18, 3830, 3259, 2650, 3259, 273, 10341, 2624, 18, 588, 3830, 37, 1100, 1811, 7675, 1289, 3935, 3830, 5621, 202, 202, 17523, 261, 3767, 13, 288, 1082, 202, 698, 288, 9506, 202, 1133, 3611, 871, 3611, 273, 446, 31, 9506, 202, 13174, 682, 2641, 774, 20813, 31, 9506, 202, 22043, 261, 2211, 18, 2575, 11433, 13, 288, 6862, 202, 759, 5783, 16, 2529, 364, 2690, 2641, 358, 12561, 2319, 18, 6862, 202, 17523, 261, 9561, 3783, 18, 291, 1921, 10756, 288, 25083, 202, 759, 6149, 1807, 5083, 316, 326, 666, 16, 866, 358, 1221, 3071, 732, 25083, 202, 759, 15032, 1404, 25083, 202, 759, 2118, 9627, 18, 971, 732, 1240, 16, 1508, 2231, 326, 2650, 10387, 18, 25083, 202, 430, 261, 2211, 18, 291, 15294, 13, 288, 6862, 1082, 202, 430, 261, 28477, 2624, 18, 291, 7735, 1526, 10756, 6862, 9506, 202, 28477, 2624, 18, 588, 1343, 2289, 7675, 1330, 2829, 12, 6862, 25083, 202, 6, 15294, 871, 7683, 5, 4442, 1769, 6862, 1082, 202, 2463, 31, 25083, 202, 97, 25083, 202, 759, 1660, 15032, 1404, 2118, 9627, 16, 471, 326, 871, 666, 353, 316, 323, 329, 25083, 202, 759, 9178, 1008, 18, 5838, 364, 2690, 2641, 358, 12404, 7563, 18, 25083, 202, 698, 288, 6862, 1082, 202, 759, 2479, 279, 12923, 358, 326, 2650, 20232, 1811, 6862, 1082, 202, 5930, 3259, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 759, 25747, 326, 20232, 1811, 358, 6438, 333, 2650, 202, 202, 3830, 37, 1100, 1811, 18, 3830, 3259, 2650, 3259, 273, 10341, 2624, 18, 588, 3830, 37, 1100, 1811, 7675, 1289, 3935, 3830, 5621, 202, 202, 17523, 261, 3767, 13, 288, 1082, 202, 698, 288, 9506, 202, 1133, 3611, 871, 3611, 273, 446, 31, 9506, 202, 13174, 682, 2641, 774, 20813, 31, 9506, 202, 22043, 261, 2211, 18, 2575, 11433, 13, 288, 6862, 202, 759, 5783, 16, 2529, 364, 2690, 2641, 358, 12561, 2319, 18, 6862, 202, 17523, 261, 9561, 3783, 18, 291, 1921, 10756, 288, 25083, 202, 759, 6149, 1807, 5083, 316, 326, 666, 16, 866, 358, 1221, 3071, 2 ]
case 's': return s180; default: return s45; }
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 't': return s179; case 's': return s180; default: return s45; } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 296, 88, 4278, 10792, 327, 272, 28814, 31, 7734, 648, 296, 87, 4278, 10792, 327, 272, 18278, 31, 7734, 805, 30, 10792, 327, 272, 7950, 31, 540, 202, 3639, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 296, 88, 4278, 10792, 327, 272, 28814, 31, 7734, 648, 296, 87, 4278, 10792, 327, 272, 18278, 31, 7734, 805, 30, 10792, 327, 272, 7950, 31, 540, 202, 3639, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
StringBuffer sb = new StringBuffer(80); java.util.HashSet importSet = new java.util.HashSet(); String ftype; Iterator j; Collection c = cls.getFeatures(); if (c != null) { for (j = c.iterator(); j.hasNext();) { MFeature mFeature = (MFeature)j.next(); if (mFeature instanceof MAttribute) { if ((ftype = generateImportType( ((MAttribute)mFeature).getType(), packagePath)) != null) {
StringBuffer sb = new StringBuffer(80); java.util.HashSet importSet = new java.util.HashSet(); String ftype; Iterator j; Collection c = cls.getFeatures(); if (c != null) { for(j = c.iterator(); j.hasNext(); ) { MFeature mFeature = (MFeature)j.next(); if (mFeature instanceof MAttribute) { if ((ftype = generateImportType(((MAttribute)mFeature).getType(),packagePath)) != null) { importSet.add(ftype); } } else if (mFeature instanceof MOperation) { Iterator it = ((MOperation)mFeature).getParameters().iterator(); while (it.hasNext()) { MParameter p = (MParameter)it.next(); if ((ftype = generateImportType(p.getType(),packagePath)) != null) {
public String generateImports(MClassifier cls, String packagePath) { // TODO: check also generalizations StringBuffer sb = new StringBuffer(80); java.util.HashSet importSet = new java.util.HashSet(); String ftype; Iterator j; Collection c = cls.getFeatures(); if (c != null) { // now check packages of all feature types for (j = c.iterator(); j.hasNext();) { MFeature mFeature = (MFeature)j.next(); if (mFeature instanceof MAttribute) { if ((ftype = generateImportType( ((MAttribute)mFeature).getType(), packagePath)) != null) { importSet.add(ftype); } } else if (mFeature instanceof MOperation) { // check the parameter types Iterator it = ((MOperation)mFeature).getParameters().iterator(); while (it.hasNext()) { MParameter p = (MParameter)it.next(); if ((ftype = generateImportType(p.getType(), packagePath)) != null) { importSet.add(ftype); } } // check the return parameter types it = UmlHelper .getHelper() .getCore() .getReturnParameters((MOperation)mFeature) .iterator(); while (it.hasNext()) { MParameter p = (MParameter)it.next(); if ((ftype = generateImportType(p.getType(), packagePath)) != null) { importSet.add(ftype); } } } } } c = cls.getAssociationEnds(); if (!c.isEmpty()) { // check association end types for (j = c.iterator(); j.hasNext();) { MAssociationEnd ae = (MAssociationEnd)j.next(); MAssociation a = ae.getAssociation(); Iterator connEnum = a.getConnections().iterator(); while (connEnum.hasNext()) { MAssociationEnd ae2 = (MAssociationEnd)connEnum.next(); if (ae2 != ae && ae2.isNavigable() && !ae2.getAssociation().isAbstract()) { // association end found MMultiplicity m = ae2.getMultiplicity(); if (!MMultiplicity.M1_1.equals(m) && !MMultiplicity.M0_1.equals(m)) { importSet.add("java.util.Vector"); } else if ( (ftype = generateImportType(ae2.getType(), packagePath)) != null) { importSet.add(ftype); } } } } } // finally generate the import statements for (j = importSet.iterator(); j.hasNext();) { ftype = (String)j.next(); sb.append("import ").append(ftype).append(";").append(LINE_SEPARATOR); } if (!importSet.isEmpty()) { sb.append(LINE_SEPARATOR); } return sb.toString(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8b93d53259027848aaa50e2d9d130b9175fa9357/GeneratorJava.java/buggy/src_new/org/argouml/language/java/generator/GeneratorJava.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2103, 13347, 12, 49, 13860, 2028, 16, 514, 27503, 13, 288, 3639, 368, 2660, 30, 866, 2546, 7470, 7089, 3639, 6674, 2393, 273, 394, 6674, 12, 3672, 1769, 3639, 2252, 18, 1367, 18, 13482, 1930, 694, 273, 394, 2252, 18, 1367, 18, 13482, 5621, 3639, 514, 21219, 31, 3639, 4498, 525, 31, 3639, 2200, 276, 273, 2028, 18, 588, 8696, 5621, 3639, 309, 261, 71, 480, 446, 13, 288, 5411, 368, 2037, 866, 5907, 434, 777, 2572, 1953, 5411, 364, 261, 78, 273, 276, 18, 9838, 5621, 525, 18, 5332, 2134, 5621, 13, 288, 7734, 490, 4595, 312, 4595, 273, 261, 49, 4595, 13, 78, 18, 4285, 5621, 7734, 309, 261, 81, 4595, 1276, 490, 1499, 13, 288, 10792, 309, 14015, 74, 723, 273, 13491, 2103, 5010, 559, 12, 18701, 14015, 49, 1499, 13, 81, 4595, 2934, 588, 559, 9334, 18701, 27503, 3719, 13491, 480, 446, 13, 288, 13491, 1930, 694, 18, 1289, 12, 74, 723, 1769, 10792, 289, 7734, 289, 469, 309, 261, 81, 4595, 1276, 490, 2988, 13, 288, 10792, 368, 866, 326, 1569, 1953, 10792, 4498, 518, 273, 13491, 14015, 49, 2988, 13, 81, 4595, 2934, 588, 2402, 7675, 9838, 5621, 10792, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 13491, 490, 1662, 293, 273, 261, 49, 1662, 13, 305, 18, 4285, 5621, 13491, 309, 14015, 74, 723, 273, 18701, 2103, 5010, 559, 12, 84, 18, 588, 559, 9334, 27503, 3719, 18701, 480, 446, 13, 288, 18701, 1930, 694, 18, 1289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2103, 13347, 12, 49, 13860, 2028, 16, 514, 27503, 13, 288, 3639, 368, 2660, 30, 866, 2546, 7470, 7089, 3639, 6674, 2393, 273, 394, 6674, 12, 3672, 1769, 3639, 2252, 18, 1367, 18, 13482, 1930, 694, 273, 394, 2252, 18, 1367, 18, 13482, 5621, 3639, 514, 21219, 31, 3639, 4498, 525, 31, 3639, 2200, 276, 273, 2028, 18, 588, 8696, 5621, 3639, 309, 261, 71, 480, 446, 13, 288, 5411, 368, 2037, 866, 5907, 434, 777, 2572, 1953, 5411, 364, 261, 78, 273, 276, 18, 9838, 5621, 525, 18, 5332, 2134, 5621, 13, 288, 7734, 490, 4595, 312, 4595, 273, 261, 49, 4595, 13, 78, 18, 4285, 5621, 7734, 309, 261, 81, 4595, 1276, 490, 1499, 2 ]
Logger.minor(this, "FProxy fetching "+key+" ("+maxSize+")");
Logger.minor(this, "FProxy fetching "+key+" ("+maxSize+ ')');
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); String k = httprequest.getParam("key"); FreenetURI newURI; try { newURI = new FreenetURI(k); } catch (MalformedURLException e) { sendErrorPage(ctx, 404, "Not found", "Invalid key"); return; } headers.put("Location", "/"+newURI); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = welcome; } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(' ', '+'); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; }else if(ks.equals("/favicon.ico")){ byte[] buf = new byte[1024]; int len; InputStream strm = getClass().getResourceAsStream("staticfiles/favicon.ico"); if (strm == null) { this.sendErrorPage(ctx, 404, "Path not found", "The specified path does not exist."); return; } ctx.sendReplyHeaders(200, "OK", null, "image/x-icon", strm.available()); while ( (len = strm.read(buf)) > 0) { ctx.writeData(buf, 0, len); } return; } if(ks.startsWith("/")) ks = ks.substring(1); long maxSize = httprequest.getLongParam("max-size", MAX_LENGTH); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Invalid key"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode errorInfobox = contentNode.addChild("div", "class", "infobox infobox-error"); errorInfobox.addChild("div", "class", "infobox-header", "Invalid key"); HTMLNode errorContent = errorInfobox.addChild("div", "class", "infobox-content"); errorContent.addChild("#", "Expected a freenet key, but got "); errorContent.addChild("code", ks); errorContent.addChild("br"); errorContent.addChild(ctx.getPageMaker().createBackLink(ctx)); errorContent.addChild("br"); errorContent.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node homepage" }, "Homepage"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 400, "text/html", "Invalid key", pageBuffer.toString()); return; } try { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "FProxy fetching "+key+" ("+maxSize+")"); FetchResult result = fetch(key, maxSize); // Now, is it safe? Bucket data = result.asBucket(); String mimeType = result.getMimeType(); String requestedMimeType = httprequest.getParam("type", null); handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, httprequest.getParam("force", null), httprequest.isParameterSet("forcedownload"), "/", key, maxSize != MAX_LENGTH ? "&max-size="+maxSize : ""); } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.mode == FetchException.NOT_ENOUGH_PATH_COMPONENTS) { this.writePermanentRedirect(ctx, "Not enough meta-strings", "/" + URLEncoder.encode(key.toString(false)) + "/"); } else if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, "/"+e.newURI.toString()); } else if(e.mode == FetchException.TOO_BIG) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("File information"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-information"); infobox.addChild("div", "class", "infobox-header", "Large file"); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); HTMLNode fileInformationList = infoboxContent.addChild("ul"); HTMLNode option = fileInformationList.addChild("li"); option.addChild("#", "Filename: "); option.addChild("a", "href", "/" + key.toString(false), getFilename(e, key, e.getExpectedMimeType())); boolean finalized = e.finalizedSize(); if(e.expectedSize > 0) { if (finalized) { fileInformationList.addChild("li", "Size: " + SizeUtil.formatSize(e.expectedSize)); } else { fileInformationList.addChild("li", "Size: " + SizeUtil.formatSize(e.expectedSize) + " (may change)"); } } else { fileInformationList.addChild("li", "Size: unknown"); } String mime = e.getExpectedMimeType(); if(mime != null) { if (finalized) { fileInformationList.addChild("li", "MIME type: " + mime); } else { fileInformationList.addChild("li", "Expected MIME type: " + mime); } } else { fileInformationList.addChild("li", "MIME type: unknown"); } infobox = contentNode.addChild("div", "class", "infobox infobox-information"); infobox.addChild("div", "class", "infobox-header", "Explanation"); infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "The Freenet key you requested refers to a large file. Files of this size cannot generally be sent directly to your browser since they take too long for your Freenet node to retrieve. The following options are available:"); HTMLNode optionList = infoboxContent.addChild("ul"); option = optionList.addChild("li"); HTMLNode optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] { "/" + key.toString(false), "get" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "max-size", String.valueOf(e.expectedSize == -1 ? Long.MAX_VALUE : e.expectedSize*2) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "fetch", "Fetch anyway and display file in browser" }); option = optionList.addChild("li"); optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", key.toString(false) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "return-type", "disk" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "persistence", "forever" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); if (mime != null) { optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "type", mime }); } optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "download", "Download in background and store in downloads directory" }); optionList.addChild("li").addChild("a", new String[] { "href", "title" }, new String[] { "/", "FProxy home page" }, "Abort and return to the FProxy home page"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; HTMLNode pageNode = ctx.getPageMaker().getPageNode(FetchException.getShortMessage(e.mode)); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-error"); infobox.addChild("div", "class", "infobox-header", FetchException.getShortMessage(e.mode)); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "Error: " + msg + extra); infoboxContent.addChild("br"); infoboxContent.addChild(ctx.getPageMaker().createBackLink(ctx)); infoboxContent.addChild("br"); infoboxContent.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node homepage" }, "Homepage"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", FetchException.getShortMessage(e.mode), pageBuffer.toString()); } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FProxyToadlet.java/clean/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 780, 417, 273, 1062, 2293, 18, 588, 786, 2932, 856, 8863, 9506, 202, 42, 2842, 278, 3098, 394, 3098, 31, 9506, 202, 698, 288, 6862, 202, 2704, 3098, 273, 394, 478, 2842, 278, 3098, 12, 79, 1769, 9506, 202, 97, 1044, 261, 18695, 20160, 425, 13, 288, 6862, 202, 4661, 668, 1964, 12, 5900, 16, 7709, 16, 315, 1248, 1392, 3113, 315, 1941, 498, 8863, 6862, 202, 2463, 31, 9506, 202, 97, 6862, 9506, 202, 2485, 18, 458, 2932, 2735, 3113, 4016, 15, 2704, 3098, 1769, 9506, 202, 5900, 18, 4661, 7817, 3121, 12, 23, 3103, 16, 315, 2043, 3113, 1607, 16, 446, 16, 374, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 5961, 503, 283, 273, 394, 9942, 503, 5621, 1082, 202, 698, 288, 9506, 202, 780, 20741, 273, 2003, 18, 588, 1138, 5621, 6862, 9506, 202, 430, 261, 2271, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 780, 417, 273, 1062, 2293, 18, 588, 786, 2932, 856, 8863, 9506, 202, 42, 2842, 2 ]
throw new IOError(getRuntime(), path.getValue() + " is not a directory");
throw ErrnoError.getErrnoError(getRuntime(), "ENOENT", path.getValue() + " is not a directory");
public IRubyObject initialize(RubyString path) { path.checkSafeString(); dir = new File(path.getValue()); if (!dir.isDirectory()) { path = null; dir = null; throw new IOError(getRuntime(), path.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/af80e8f70b3c6d7fab314143b5f1e641350602b1/RubyDir.java/buggy/src/org/jruby/RubyDir.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4046, 12, 54, 10340, 780, 589, 13, 288, 3639, 589, 18, 1893, 9890, 780, 5621, 3639, 1577, 273, 394, 1387, 12, 803, 18, 24805, 10663, 3639, 309, 16051, 1214, 18, 291, 2853, 10756, 288, 5411, 589, 273, 446, 31, 5411, 1577, 273, 446, 31, 5411, 604, 23768, 668, 18, 588, 2524, 2135, 668, 12, 588, 5576, 9334, 315, 1157, 51, 2222, 3113, 589, 18, 24805, 1435, 397, 315, 353, 486, 279, 1867, 8863, 3639, 289, 202, 202, 682, 4439, 682, 273, 394, 2407, 5621, 202, 202, 11171, 682, 18, 1289, 2932, 1199, 1769, 202, 202, 11171, 682, 18, 1289, 2932, 838, 8863, 202, 202, 11171, 682, 18, 1289, 1595, 12, 588, 6323, 12, 1214, 10019, 202, 202, 11171, 273, 261, 780, 63, 5717, 4439, 682, 18, 31447, 12, 2704, 514, 63, 11171, 682, 18, 1467, 1435, 19226, 202, 202, 917, 273, 374, 31, 3639, 327, 333, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4046, 12, 54, 10340, 780, 589, 13, 288, 3639, 589, 18, 1893, 9890, 780, 5621, 3639, 1577, 273, 394, 1387, 12, 803, 18, 24805, 10663, 3639, 309, 16051, 1214, 18, 291, 2853, 10756, 288, 5411, 589, 273, 446, 31, 5411, 1577, 273, 446, 31, 5411, 604, 23768, 668, 18, 588, 2524, 2135, 668, 12, 588, 5576, 9334, 315, 1157, 51, 2222, 3113, 589, 18, 24805, 1435, 397, 315, 353, 486, 279, 1867, 8863, 3639, 289, 202, 202, 682, 4439, 682, 273, 394, 2407, 5621, 202, 202, 11171, 682, 18, 1289, 2932, 1199, 1769, 202, 202, 11171, 682, 18, 1289, 2932, 838, 8863, 202, 202, 11171, 682, 18, 1289, 1595, 12, 588, 6323, 12, 1214, 2 ]
if (messageLabel == null || messageLabel.isDisposed()) return;
if (messageLabel == null || messageLabel.isDisposed()) { return; }
private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) return; messageLabel.setText(message); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/JobErrorDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 15227, 12, 780, 883, 780, 13, 288, 3639, 368, 11926, 486, 444, 446, 977, 316, 279, 1433, 3639, 883, 273, 883, 780, 422, 446, 692, 1408, 294, 883, 780, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 309, 261, 2150, 2224, 422, 446, 747, 883, 2224, 18, 291, 1669, 7423, 10756, 5411, 327, 31, 3639, 883, 2224, 18, 542, 1528, 12, 2150, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 15227, 12, 780, 883, 780, 13, 288, 3639, 368, 11926, 486, 444, 446, 977, 316, 279, 1433, 3639, 883, 273, 883, 780, 422, 446, 692, 1408, 294, 883, 780, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 309, 261, 2150, 2224, 422, 446, 747, 883, 2224, 18, 291, 1669, 7423, 10756, 5411, 327, 31, 3639, 883, 2224, 18, 542, 1528, 12, 2150, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this(); if (impl == null) throw new IOException("Cannot initialize Socket implementation"); SecurityManager s = System.getSecurityManager(); if (s != null) s.checkListen(port); if (bindAddr == null) bindAddr = InetAddress.ANY_IF;
if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl();
public ServerSocket (int port, int backlog, InetAddress bindAddr) throws IOException { this(); if (impl == null) throw new IOException("Cannot initialize Socket implementation"); SecurityManager s = System.getSecurityManager(); if (s != null) s.checkListen(port); if (bindAddr == null) bindAddr = InetAddress.ANY_IF; impl.create(true); impl.bind(bindAddr, port); impl.listen(backlog); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/6b72f5d1ec065f5206470bd31be7ddc6742749d4/ServerSocket.java/buggy/java/net/ServerSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3224, 4534, 261, 474, 1756, 16, 509, 1473, 1330, 16, 14218, 1993, 3178, 13, 565, 1216, 1860, 225, 288, 565, 333, 5621, 565, 309, 261, 11299, 422, 446, 13, 1377, 604, 394, 1860, 2932, 4515, 4046, 8758, 4471, 8863, 565, 6036, 1318, 272, 273, 2332, 18, 588, 4368, 1318, 5621, 565, 309, 261, 87, 480, 446, 13, 1377, 272, 18, 1893, 14750, 12, 655, 1769, 565, 309, 261, 4376, 3178, 422, 446, 13, 1377, 1993, 3178, 273, 14218, 18, 15409, 67, 5501, 31, 565, 9380, 18, 2640, 12, 3767, 1769, 565, 9380, 18, 4376, 12, 4376, 3178, 16, 1756, 1769, 565, 9380, 18, 18085, 12, 823, 1330, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3224, 4534, 261, 474, 1756, 16, 509, 1473, 1330, 16, 14218, 1993, 3178, 13, 565, 1216, 1860, 225, 288, 565, 333, 5621, 565, 309, 261, 11299, 422, 446, 13, 1377, 604, 394, 1860, 2932, 4515, 4046, 8758, 4471, 8863, 565, 6036, 1318, 272, 273, 2332, 18, 588, 4368, 1318, 5621, 565, 309, 261, 87, 480, 446, 13, 1377, 272, 18, 1893, 14750, 12, 655, 1769, 565, 309, 261, 4376, 3178, 422, 446, 13, 1377, 1993, 3178, 273, 14218, 18, 15409, 67, 5501, 31, 565, 9380, 18, 2640, 12, 3767, 1769, 565, 9380, 18, 4376, 12, 4376, 3178, 16, 1756, 1769, 565, 9380, 18, 18085, 12, 823, 1330, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100 ]
if (fCause != null) {
if (cause != null) {
public Throwable initCause(Throwable cause) { if (fCause != null) { throw new IllegalStateException("Can't overwrite cause"); } if (cause == this) { throw new IllegalArgumentException("Self-causation not permitted"); } fCause = cause; return this; }
25979 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25979/43921cdfb335b57735eb0acb302ee50e0a1df72d/Throwable.java/clean/user/super/com/google/gwt/emul/java/lang/Throwable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4206, 28057, 12, 15155, 4620, 13, 288, 565, 309, 261, 2700, 480, 446, 13, 288, 1377, 604, 394, 5477, 2932, 2568, 1404, 6156, 4620, 8863, 565, 289, 565, 309, 261, 2700, 422, 333, 13, 288, 1377, 604, 394, 2754, 2932, 10084, 17, 5353, 407, 367, 486, 15498, 8863, 565, 289, 565, 284, 10683, 273, 4620, 31, 565, 327, 333, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4206, 28057, 12, 15155, 4620, 13, 288, 565, 309, 261, 2700, 480, 446, 13, 288, 1377, 604, 394, 5477, 2932, 2568, 1404, 6156, 4620, 8863, 565, 289, 565, 309, 261, 2700, 422, 333, 13, 288, 1377, 604, 394, 2754, 2932, 10084, 17, 5353, 407, 367, 486, 15498, 8863, 565, 289, 565, 284, 10683, 273, 4620, 31, 565, 327, 333, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertTrue(new ExpressionInfo( "set(protected int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo( "set(static protected int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo("set(static int test.expression.Target.modifier3)", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo( "set(transient int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null)));
assertTrue(new ExpressionInfo("set(static int test.expression.Target.modifier3)", NAMESPACE).getExpression() .match(new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo("set(transient int test.expression.Target.modifier3)", NAMESPACE).getExpression() .match(new ExpressionContext(PointcutType.SET, modifier3, null)));
public void testFieldModifiers3() throws Exception { assertTrue(new ExpressionInfo("set(int test.expression.Target.modifier3)", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo( "set(protected int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo( "set(static protected int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo("set(static int test.expression.Target.modifier3)", NAMESPACE) .getExpression().match(new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo( "set(transient int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); assertTrue(new ExpressionInfo( "set(static transient protected final int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); assertFalse(new ExpressionInfo( "set(public int test.expression.Target.modifier3)", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.SET, modifier3, null))); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/35bb5086b5fd1f4fa035f3a6bbfdf7b6709824cb/ExpressionTest.java/buggy/aspectwerkz3/src/test/test/expression/ExpressionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 974, 11948, 23, 1435, 1216, 1185, 288, 3639, 1815, 5510, 12, 2704, 5371, 966, 2932, 542, 12, 474, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 18494, 13, 7734, 263, 588, 2300, 7675, 1916, 12, 2704, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 23, 16, 446, 3719, 1769, 3639, 1815, 5510, 12, 2704, 5371, 966, 12, 5411, 315, 542, 12, 1117, 509, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 5411, 18494, 2934, 588, 2300, 7675, 1916, 12, 5411, 394, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 23, 16, 446, 3719, 1769, 3639, 1815, 5510, 12, 2704, 5371, 966, 12, 5411, 315, 542, 12, 3845, 4750, 509, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 5411, 18494, 2934, 588, 2300, 7675, 1916, 12, 5411, 394, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 23, 16, 446, 3719, 1769, 3639, 1815, 5510, 12, 2704, 5371, 966, 2932, 542, 12, 3845, 509, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 18494, 13, 7734, 263, 588, 2300, 7675, 1916, 12, 2704, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 23, 16, 446, 3719, 1769, 3639, 1815, 5510, 12, 2704, 5371, 966, 12, 5411, 315, 542, 12, 22670, 509, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 5411, 18494, 2934, 588, 2300, 7675, 1916, 12, 5411, 394, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 974, 11948, 23, 1435, 1216, 1185, 288, 3639, 1815, 5510, 12, 2704, 5371, 966, 2932, 542, 12, 474, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 18494, 13, 7734, 263, 588, 2300, 7675, 1916, 12, 2704, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 23, 16, 446, 3719, 1769, 3639, 1815, 5510, 12, 2704, 5371, 966, 12, 5411, 315, 542, 12, 1117, 509, 1842, 18, 8692, 18, 2326, 18, 20597, 23, 2225, 16, 5411, 18494, 2934, 588, 2300, 7675, 1916, 12, 5411, 394, 5371, 1042, 12, 2148, 5150, 559, 18, 4043, 16, 9606, 23, 16, 446, 3719, 1769, 3639, 1815, 5510, 12, 2704, 5371, 966, 12, 5411, 315, 542, 12, 3845, 2 ]
throw new AnalysisException("Field accessed through non-object reference " + instanceType,
throw new DataflowAnalysisException("Field accessed through non-object reference " + instanceType,
private void analyzeMethod(ClassContext classContext, Method method, Set<Method> lockedMethodSet) throws CFGBuilderException, DataflowAnalysisException { InnerClassAccessMap icam = InnerClassAccessMap.instance(); ConstantPoolGen cpg = classContext.getConstantPoolGen(); MethodGen methodGen = classContext.getMethodGen(method); CFG cfg = classContext.getCFG(method); LockChecker lockChecker = classContext.getLockChecker(method); ValueNumberDataflow vnaDataflow = classContext.getValueNumberDataflow(method); boolean isGetterMethod = isGetterMethod(classContext, method); if (DEBUG) System.out.println("**** Analyzing method " + SignatureConverter.convertMethodSignature(classContext.getMethodGen(method))); for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) { Location location = i.next(); try { Instruction ins = location.getHandle().getInstruction(); XField xfield = null; boolean isWrite = false; boolean isLocal = false; if (ins instanceof FieldInstruction) { FieldInstruction fins = (FieldInstruction) ins; xfield = Hierarchy.findXField(fins, cpg); isWrite = ins.getOpcode() == Constants.PUTFIELD; isLocal = fins.getClassName(cpg).equals(classContext.getJavaClass().getClassName()); if (DEBUG) System.out.println("Handling field access: " + location.getHandle() + " (frame=" + vnaDataflow.getFactAtLocation(location) + ")"); } else if (ins instanceof INVOKESTATIC) { INVOKESTATIC inv = (INVOKESTATIC) ins; InnerClassAccess access = icam.getInnerClassAccess(inv, cpg); if (access != null && access.getMethodSignature().equals(inv.getSignature(cpg))) { xfield = access.getField(); isWrite = !access.isLoad(); isLocal = false; if (DEBUG) System.out.println("Handling inner class access: " + location.getHandle() + " (frame=" + vnaDataflow.getFactAtLocation(location) + ")"); } } if (xfield == null) continue; // We only care about mutable nonvolatile nonpublic instance fields. if (xfield.isStatic() || xfield.isPublic() || xfield.isVolatile() || xfield.isFinal()) continue; // The value number frame could be invalid if the basic // block became unreachable due to edge pruning (dead code). ValueNumberFrame frame = vnaDataflow.getFactAtLocation(location); if (!frame.isValid()) continue; // Get lock set and instance value ValueNumber thisValue = !method.isStatic() ? vnaDataflow.getAnalysis().getThisValue() : null; LockSet lockSet = lockChecker.getFactAtLocation(location); InstructionHandle handle = location.getHandle(); ValueNumber instance = frame.getInstance(handle.getInstruction(), cpg); // Is the instance locked? // We consider the access to be locked if either // - the object is explicitly locked, or // - the field is accessed through the "this" reference, // and the method is in the locked method set, or // - any value returned by a called method is locked; // the (conservative) assumption is that the return lock object // is correct for synchronizing the access boolean isExplicitlyLocked = lockSet.getLockCount(instance.getNumber()) > 0; boolean isAccessedThroughThis = thisValue != null && thisValue.equals(instance); boolean isLocked = isExplicitlyLocked || (lockedMethodSet.contains(method) && isAccessedThroughThis) || lockSet.containsReturnValue(vnaDataflow.getAnalysis().getFactory()); // Adjust the field so its class name is the same // as the type of reference it is accessed through. // This helps fix false positives produced when a // threadsafe class is extended by a subclass that // doesn't care about thread safety. if (ADJUST_SUBCLASS_ACCESSES) { // Find the type of the object instance TypeDataflow typeDataflow = classContext.getTypeDataflow(method); TypeFrame typeFrame = typeDataflow.getFactAtLocation(location); Type instanceType = typeFrame.getInstance(handle.getInstruction(), cpg); // Note: instance type can be Null, // in which case we won't adjust the field type. if (instanceType != TypeFrame.getNullType()) { if (!(instanceType instanceof ObjectType)) { throw new AnalysisException("Field accessed through non-object reference " + instanceType, methodGen, handle); } ObjectType objType = (ObjectType) instanceType; // If instance class name is not the same as that of the field, // make it so String instanceClassName = objType.getClassName(); if (!instanceClassName.equals(xfield.getClassName())) { xfield = new InstanceField(instanceClassName, xfield.getFieldName(), xfield.getFieldSignature(), xfield.getAccessFlags()); } } } int kind = 0; kind |= isLocked ? LOCKED : UNLOCKED; kind |= isWrite ? WRITE : READ; if (isLocked || !isConstructor(method.getName())) { if (DEBUG) System.out.println("IS2:\t" + SignatureConverter.convertMethodSignature(classContext.getMethodGen(method)) + "\t" + xfield + "\t" + ((isWrite ? "W" : "R") + "/" + (isLocked ? "L" : "U"))); FieldStats stats = getStats(xfield); stats.addAccess(kind); if (isExplicitlyLocked && isLocal) stats.addLocalLock(); if (isGetterMethod && !isLocked) stats.addGetterMethodAccess(); stats.addAccess(classContext, method, handle, isLocked); } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/38704e7334789f9185515a8707a67fb7989a7ae9/FindInconsistentSync2.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindInconsistentSync2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 12375, 1305, 12, 797, 1042, 667, 1042, 16, 2985, 707, 16, 1000, 32, 1305, 34, 8586, 1305, 694, 13, 202, 3639, 1216, 7577, 1263, 503, 16, 1910, 2426, 9418, 503, 288, 202, 202, 2857, 797, 1862, 863, 13579, 301, 273, 19494, 797, 1862, 863, 18, 1336, 5621, 202, 202, 6902, 2864, 7642, 3283, 75, 273, 667, 1042, 18, 588, 6902, 2864, 7642, 5621, 202, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 202, 202, 19727, 2776, 273, 667, 1042, 18, 588, 19727, 12, 2039, 1769, 202, 202, 2531, 8847, 2176, 8847, 273, 667, 1042, 18, 588, 2531, 8847, 12, 2039, 1769, 202, 202, 620, 1854, 751, 2426, 331, 6582, 751, 2426, 273, 667, 1042, 18, 24805, 1854, 751, 2426, 12, 2039, 1769, 202, 202, 6494, 353, 8461, 1305, 273, 353, 8461, 1305, 12, 1106, 1042, 16, 707, 1769, 202, 202, 430, 261, 9394, 13, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 1007, 1922, 4647, 310, 707, 315, 397, 9506, 3639, 9249, 5072, 18, 6283, 1305, 5374, 12, 1106, 1042, 18, 588, 1305, 7642, 12, 2039, 3719, 1769, 202, 202, 1884, 261, 3198, 32, 2735, 34, 277, 273, 2776, 18, 3562, 3198, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 2735, 2117, 273, 277, 18, 4285, 5621, 1082, 202, 698, 288, 9506, 202, 11983, 2763, 273, 2117, 18, 588, 3259, 7675, 588, 11983, 5621, 9506, 202, 60, 974, 619, 1518, 273, 446, 31, 9506, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 12375, 1305, 12, 797, 1042, 667, 1042, 16, 2985, 707, 16, 1000, 32, 1305, 34, 8586, 1305, 694, 13, 202, 3639, 1216, 7577, 1263, 503, 16, 1910, 2426, 9418, 503, 288, 202, 202, 2857, 797, 1862, 863, 13579, 301, 273, 19494, 797, 1862, 863, 18, 1336, 5621, 202, 202, 6902, 2864, 7642, 3283, 75, 273, 667, 1042, 18, 588, 6902, 2864, 7642, 5621, 202, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 202, 202, 19727, 2776, 273, 667, 1042, 18, 588, 19727, 12, 2039, 1769, 202, 202, 2531, 8847, 2176, 8847, 273, 667, 1042, 18, 588, 2531, 8847, 12, 2039, 1769, 202, 202, 620, 1854, 751, 2426, 331, 2 ]
if(!(value instanceof QName)) return null; boolean result; QName q = (QName)value; if (uri == null) { result = q.uri == null && localName.equals(q.localName); } else { result = uri.equals(q.uri) && localName.equals(q.localName); }
if(!(value instanceof QName)) return Scriptable.NOT_FOUND; boolean result = equals((QName)value);
public Boolean equivalentValues(Object value) { if(!(value instanceof QName)) return null; boolean result; QName q = (QName)value; if (uri == null) { result = q.uri == null && localName.equals(q.localName); } else { result = uri.equals(q.uri) && localName.equals(q.localName); } return result ? Boolean.TRUE : Boolean.FALSE; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/12c8b93408e3731a2046733a83df7e41f721225f/QName.java/clean/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3411, 7680, 1972, 12, 921, 460, 13, 565, 288, 3639, 309, 12, 5, 12, 1132, 1276, 16723, 3719, 327, 446, 31, 3639, 1250, 563, 31, 3639, 16723, 1043, 273, 261, 13688, 13, 1132, 31, 3639, 309, 261, 1650, 422, 446, 13, 288, 5411, 563, 273, 1043, 18, 1650, 422, 446, 597, 11927, 18, 14963, 12, 85, 18, 3729, 461, 1769, 3639, 289, 469, 288, 5411, 563, 273, 2003, 18, 14963, 12, 85, 18, 1650, 13, 597, 11927, 18, 14963, 12, 85, 18, 3729, 461, 1769, 3639, 289, 3639, 327, 563, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3411, 7680, 1972, 12, 921, 460, 13, 565, 288, 3639, 309, 12, 5, 12, 1132, 1276, 16723, 3719, 327, 446, 31, 3639, 1250, 563, 31, 3639, 16723, 1043, 273, 261, 13688, 13, 1132, 31, 3639, 309, 261, 1650, 422, 446, 13, 288, 5411, 563, 273, 1043, 18, 1650, 422, 446, 597, 11927, 18, 14963, 12, 85, 18, 3729, 461, 1769, 3639, 289, 469, 288, 5411, 563, 273, 2003, 18, 14963, 12, 85, 18, 1650, 13, 597, 11927, 18, 14963, 12, 85, 18, 3729, 461, 1769, 3639, 289, 3639, 327, 563, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String nodeType = LDMLUtilities.getAttributeValue(node,LDMLConstants.TYPE);
static void collectXpaths(Node root, String xpath) { for(Node node=root.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } String nodeName = node.getNodeName(); String nodeType = LDMLUtilities.getAttributeValue(node,LDMLConstants.TYPE); String newPath = xpath + "/" + nodeName; if((nodeType != null)&&(nodeType.length()>0)) { newPath = newPath + "[@type='" + nodeType + "']"; } allXpaths.put(newPath, newPath); collectXpaths(node, newPath); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/d7cb81a96592629f35ea9136f49db7073b606290/SurveyMain.java/buggy/tools/java/org/unicode/cldr/web/SurveyMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 3274, 60, 4481, 12, 907, 1365, 16, 514, 6748, 13, 288, 3639, 364, 12, 907, 756, 33, 3085, 18, 588, 3759, 1763, 5621, 756, 5, 33, 2011, 31, 756, 33, 2159, 18, 588, 2134, 10291, 10756, 95, 5411, 309, 12, 2159, 18, 588, 15101, 1435, 5, 33, 907, 18, 10976, 67, 8744, 15329, 7734, 1324, 31, 5411, 289, 5411, 514, 7553, 273, 756, 18, 588, 18948, 5621, 15604, 514, 14954, 273, 6748, 397, 4016, 397, 7553, 31, 5411, 309, 12443, 2159, 559, 480, 446, 13, 10, 10, 12, 2159, 559, 18, 2469, 1435, 34, 20, 3719, 288, 7734, 14954, 273, 14954, 397, 5158, 36, 723, 13396, 397, 9507, 397, 2491, 4279, 31, 5411, 289, 5411, 777, 60, 4481, 18, 458, 12, 2704, 743, 16, 14954, 1769, 5411, 3274, 60, 4481, 12, 2159, 16, 14954, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 3274, 60, 4481, 12, 907, 1365, 16, 514, 6748, 13, 288, 3639, 364, 12, 907, 756, 33, 3085, 18, 588, 3759, 1763, 5621, 756, 5, 33, 2011, 31, 756, 33, 2159, 18, 588, 2134, 10291, 10756, 95, 5411, 309, 12, 2159, 18, 588, 15101, 1435, 5, 33, 907, 18, 10976, 67, 8744, 15329, 7734, 1324, 31, 5411, 289, 5411, 514, 7553, 273, 756, 18, 588, 18948, 5621, 15604, 514, 14954, 273, 6748, 397, 4016, 397, 7553, 31, 5411, 309, 12443, 2159, 559, 480, 446, 13, 10, 10, 12, 2159, 559, 18, 2469, 1435, 34, 20, 3719, 288, 7734, 14954, 273, 14954, 397, 5158, 36, 723, 13396, 397, 9507, 397, 2491, 4279, 31, 5411, 289, 5411, 777, 2 ]
int noex;
Visibility noex = Visibility.PUBLIC;
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); ICallable method = rubyClass.searchMethod(iVisited.getName()); // RubyObject origin = body.getOrigin(); // if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } // } int noex; if (ruby.isScope(Constants.SCOPE_PRIVATE) || iVisited.getName().equals("initialize")) { noex = Constants.NOEX_PRIVATE; } else if (ruby.isScope(Constants.SCOPE_PROTECTED)) { noex = Constants.NOEX_PROTECTED; } else if (rubyClass == ruby.getClasses().getObjectClass()) { noex = iVisited.getNoex(); } else { noex = Constants.NOEX_PUBLIC; } if (method != null && method.getImplementationClass() == rubyClass && (method.getNoex() & Constants.NOEX_UNDEF) != 0) { noex |= Constants.NOEX_UNDEF; } // FIXME Create new method store class. // ScopeNode body = copyNodeScope((ScopeNode)iVisited.getBodyNode(), ruby.getNamespace()); DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace()); rubyClass.addMethod(iVisited.getName(), newMethod, noex); if (ruby.getCurrentMethodScope() == Constants.SCOPE_MODFUNC) { rubyClass.getSingletonClass().addMethod(iVisited.getName(), newMethod, Constants.NOEX_PUBLIC); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } if (rubyClass.isSingleton()) { rubyClass.getInstanceVariable("__attached__").callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } else { rubyClass.callMethod("method_added", builtins.toSymbol(iVisited.getName())); } }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/f05423516c2d1bfe54c4363eedb9654f7cfb6898/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 27768, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 368, 430, 261, 27768, 67, 1106, 422, 4170, 10340, 7675, 588, 921, 797, 1435, 597, 756, 18, 4880, 67, 13138, 1435, 422, 1208, 13, 288, 3639, 368, 1894, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 19363, 3639, 368, 430, 261, 2159, 18, 4880, 67, 13138, 1435, 422, 1001, 350, 972, 747, 756, 18, 4880, 67, 13138, 1435, 422, 1001, 4661, 972, 13, 288, 3639, 368, 1894, 2932, 266, 5649, 310, 12430, 87, 11, 2026, 4620, 703, 22774, 6199, 3113, 14015, 54, 10340, 548, 13, 2159, 18, 4880, 67, 13138, 1435, 2934, 869, 461, 10663, 3639, 19363, 3639, 368, 22155, 67, 1106, 18, 542, 42, 9808, 12, 3767, 1769, 3639, 467, 11452, 707, 273, 22155, 797, 18, 3072, 1305, 12, 77, 30019, 18, 17994, 10663, 3639, 368, 19817, 921, 4026, 273, 1417, 18, 588, 7571, 5621, 3639, 368, 309, 261, 3432, 480, 446, 15329, 3639, 368, 309, 261, 27768, 67, 11369, 18, 291, 5510, 1435, 597, 22155, 67, 1106, 422, 4026, 597, 1417, 18, 4880, 67, 13085, 1435, 422, 374, 13, 288, 3639, 368, 377, 24137, 18, 6731, 67, 8551, 2932, 31992, 310, 1592, 738, 87, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 27768, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 368, 430, 261, 27768, 67, 1106, 422, 4170, 10340, 7675, 588, 921, 797, 1435, 597, 756, 18, 4880, 67, 13138, 1435, 422, 1208, 13, 288, 3639, 368, 1894, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 19363, 3639, 368, 430, 261, 2159, 18, 4880, 67, 13138, 1435, 422, 1001, 350, 972, 747, 756, 18, 4880, 67, 13138, 1435, 422, 2 ]
return getConstant(id); }
return getConstant(id); }
public RubyObject m_const_get(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return getConstant(id); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 10248, 67, 588, 12, 54, 10340, 5335, 3273, 13, 288, 202, 202, 54, 10340, 548, 612, 273, 3273, 18, 869, 548, 5621, 202, 202, 430, 16051, 350, 18, 291, 9661, 548, 10756, 288, 1082, 202, 12849, 394, 19817, 26771, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 21530, 5381, 508, 315, 397, 3273, 18, 17994, 10663, 202, 202, 97, 202, 202, 2463, 24337, 12, 350, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 10248, 67, 588, 12, 54, 10340, 5335, 3273, 13, 288, 202, 202, 54, 10340, 548, 612, 273, 3273, 18, 869, 548, 5621, 202, 202, 430, 16051, 350, 18, 291, 9661, 548, 10756, 288, 1082, 202, 12849, 394, 19817, 26771, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 21530, 5381, 508, 315, 397, 3273, 18, 17994, 10663, 202, 202, 97, 202, 202, 2463, 24337, 12, 350, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
: new File(pathElement);
: new File(pathElement);
public void addPathElement(String pathElement) throws BuildException { File pathComponent = project != null ? project.resolveFile(pathElement) : new File(pathElement); try { addPathFile(pathComponent); } catch (IOException e) { throw new BuildException(e); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/a22c8c09c83a3a684cd003cf0661c7913291640f/AntClassLoader.java/buggy/src/main/org/apache/tools/ant/AntClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25505, 1046, 12, 780, 589, 1046, 13, 1216, 18463, 288, 3639, 1387, 589, 1841, 5411, 273, 1984, 480, 446, 692, 1984, 18, 10828, 812, 12, 803, 1046, 13, 17311, 294, 394, 1387, 12, 803, 1046, 1769, 3639, 775, 288, 5411, 25505, 812, 12, 803, 1841, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 394, 18463, 12, 73, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25505, 1046, 12, 780, 589, 1046, 13, 1216, 18463, 288, 3639, 1387, 589, 1841, 5411, 273, 1984, 480, 446, 692, 1984, 18, 10828, 812, 12, 803, 1046, 13, 17311, 294, 394, 1387, 12, 803, 1046, 1769, 3639, 775, 288, 5411, 25505, 812, 12, 803, 1841, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 394, 18463, 12, 73, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Debug.output(3, "Trying to connect to " +
Debug.output(3, "Trying to connect to " +
protected synchronized void connect() { if( ! connected ) { Debug.output(3, "Trying to connect to " + connection_info ); int retries = Environment.noOfRetries(); while( retries > 0 ) { try { //noffke: by now, the factory knows if to provide //ssl or not socket = socket_factory.createSocket( target_host, target_port ); // socket.setTcpNoDelay( true ); if( timeout != 0 ) { /* re-set the socket timeout */ socket.setSoTimeout( timeout ); } in_stream = socket.getInputStream(); out_stream = new BufferedOutputStream( socket.getOutputStream()); Debug.output( 1, "Connected to " + connection_info + ( socket_factory.isSSL( socket ) ? " via SSL" : "" )); connected = true; notifyAll(); return; } catch ( IOException c ) { Debug.output( 1, "Retrying to connect to " + connection_info ); try { Thread.sleep( Environment.retryInterval() ); } catch( InterruptedException i ) { } retries--; } } if( retries == 0 ) { throw new org.omg.CORBA.TRANSIENT("Retries exceeded, couldn't reconnect to " + connection_info ); } } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1b34453a0b5740742b0778a2c857924d081c3c1e/Client_TCP_IP_Transport.java/clean/src/org/jacorb/orb/giop/Client_TCP_IP_Transport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 3077, 1435, 565, 288, 3639, 309, 12, 401, 5840, 262, 3639, 288, 5411, 4015, 18, 2844, 12, 23, 16, 315, 18038, 358, 3077, 358, 315, 397, 12900, 1459, 67, 1376, 11272, 13491, 509, 9453, 273, 7518, 18, 2135, 951, 13656, 5621, 5411, 1323, 12, 9453, 405, 374, 262, 2398, 288, 7734, 775, 1171, 288, 10792, 368, 82, 3674, 4491, 30, 635, 2037, 16, 326, 3272, 21739, 309, 358, 5615, 10792, 368, 8157, 578, 486, 10792, 2987, 273, 2987, 67, 6848, 18, 2640, 4534, 12, 1018, 67, 2564, 16, 4766, 21821, 1018, 67, 655, 11272, 4766, 3639, 368, 10792, 2987, 18, 542, 27591, 2279, 6763, 12, 638, 11272, 4766, 3639, 309, 12, 2021, 480, 374, 262, 10792, 288, 13491, 1748, 283, 17, 542, 326, 2987, 2021, 1195, 13491, 2987, 18, 542, 10225, 2694, 12, 2021, 11272, 10792, 289, 10792, 316, 67, 3256, 273, 13491, 2987, 18, 588, 4348, 5621, 4766, 3639, 596, 67, 3256, 273, 7682, 394, 28649, 12, 2987, 18, 588, 4632, 10663, 10792, 4015, 18, 2844, 12, 404, 16, 315, 8932, 358, 315, 397, 21394, 1459, 67, 1376, 397, 21394, 261, 2987, 67, 6848, 18, 291, 6745, 12, 2987, 262, 692, 315, 3970, 7419, 6, 294, 1408, 262, 1769, 10792, 5840, 273, 638, 31, 10792, 5066, 1595, 5621, 10792, 327, 31, 7734, 289, 1171, 1044, 261, 1860, 276, 262, 1171, 288, 5397, 4015, 18, 2844, 12, 404, 16, 315, 7539, 310, 358, 3077, 358, 315, 397, 4766, 1377, 1459, 67, 1376, 11272, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 3077, 1435, 565, 288, 3639, 309, 12, 401, 5840, 262, 3639, 288, 5411, 4015, 18, 2844, 12, 23, 16, 315, 18038, 358, 3077, 358, 315, 397, 12900, 1459, 67, 1376, 11272, 13491, 509, 9453, 273, 7518, 18, 2135, 951, 13656, 5621, 5411, 1323, 12, 9453, 405, 374, 262, 2398, 288, 7734, 775, 1171, 288, 10792, 368, 82, 3674, 4491, 30, 635, 2037, 16, 326, 3272, 21739, 309, 358, 5615, 10792, 368, 8157, 578, 486, 10792, 2987, 273, 2987, 67, 6848, 18, 2640, 4534, 12, 1018, 67, 2564, 16, 4766, 21821, 1018, 67, 655, 11272, 4766, 3639, 368, 10792, 2987, 18, 542, 27591, 2279, 6763, 12, 638, 11272, 4766, 3639, 309, 12, 2021, 480, 374, 262, 2 ]
case FINAL: jj_consume_token(FINAL); TypeDeclaration();
case CLASS: case INTERFACE: ClassOrInterfaceDeclaration(0);
final public void BlockStatement() throws ParseException { /*@bgen(jjtree) BlockStatement */ ASTBlockStatement jjtn000 = new ASTBlockStatement(this, JJTBLOCKSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { if (isNextTokenAnAssert()) { Statement(); } else if (jj_2_36(2147483647)) { LocalVariableDeclaration(); jj_consume_token(SEMICOLON); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FINAL: jj_consume_token(FINAL); TypeDeclaration(); break; default: jj_la1[84] = jj_gen; if (jj_2_37(1)) { Statement(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case CLASS: UnmodifiedClassDeclaration(); break; case INTERFACE: UnmodifiedInterfaceDeclaration(); break; default: jj_la1[85] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 3914, 3406, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 3914, 3406, 1195, 225, 9183, 1768, 3406, 10684, 5088, 3784, 273, 394, 9183, 1768, 3406, 12, 2211, 16, 804, 46, 56, 11403, 28411, 1769, 225, 1250, 10684, 5111, 3784, 273, 638, 31, 225, 10684, 3413, 18, 3190, 907, 3876, 12, 78, 78, 5088, 3784, 1769, 565, 775, 288, 1377, 309, 261, 291, 9399, 979, 8213, 10756, 288, 3639, 8056, 5621, 1377, 289, 469, 309, 261, 78, 78, 67, 22, 67, 5718, 12, 22, 3461, 30623, 30792, 3719, 288, 3639, 3566, 26547, 5621, 3639, 10684, 67, 21224, 67, 2316, 12, 1090, 22972, 1741, 673, 1769, 1377, 289, 469, 288, 3639, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 3639, 648, 17563, 1013, 30, 1850, 10684, 67, 21224, 67, 2316, 12, 7263, 1013, 1769, 1850, 1412, 6094, 5621, 1850, 898, 31, 3639, 805, 30, 1850, 10684, 67, 11821, 21, 63, 5193, 65, 273, 10684, 67, 4507, 31, 1850, 309, 261, 78, 78, 67, 22, 67, 6418, 12, 21, 3719, 288, 5411, 8056, 5621, 1850, 289, 469, 288, 5411, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 5411, 648, 7383, 30, 2868, 1351, 7342, 797, 6094, 5621, 2868, 898, 31, 5411, 648, 11391, 11300, 30, 2868, 1351, 7342, 1358, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 3914, 3406, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 3914, 3406, 1195, 225, 9183, 1768, 3406, 10684, 5088, 3784, 273, 394, 9183, 1768, 3406, 12, 2211, 16, 804, 46, 56, 11403, 28411, 1769, 225, 1250, 10684, 5111, 3784, 273, 638, 31, 225, 10684, 3413, 18, 3190, 907, 3876, 12, 78, 78, 5088, 3784, 1769, 565, 775, 288, 1377, 309, 261, 291, 9399, 979, 8213, 10756, 288, 3639, 8056, 5621, 1377, 289, 469, 309, 261, 78, 78, 67, 22, 67, 5718, 12, 22, 3461, 30623, 30792, 3719, 288, 3639, 3566, 26547, 5621, 3639, 10684, 67, 21224, 67, 2316, 12, 1090, 22972, 1741, 673, 1769, 1377, 289, 469, 288, 3639, 1620, 2 ]
addReport( destroyEntity(entity,"could not land in crash site")); } else {
addReport(destroyEntity(entity,"could not land in crash site")); } else if(newElevation < hex.terrainLevel(Terrains.BLDG_ELEV)){ addReport(destroyEntity(entity, "crashed into building"));
private void processMovement(Entity entity, MovePath md) { Report r; boolean sideslipped = false; // for VTOL sideslipping // check for fleeing if (md.contains(MovePath.STEP_FLEE)) { // Unit has fled the battlefield. r = new Report(2005, Report.PUBLIC); r.addDesc(entity); addReport(r); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. r = new Report(2010, Report.PUBLIC); r.indent(); r.addDesc(passenger); addReport(r); game.removeEntity( passenger.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); } } // Handle any picked up MechWarriors Enumeration iter = entity.getPickedUpMechWarriors().elements(); while (iter.hasMoreElements() ) { Integer mechWarriorId = (Integer)iter.nextElement(); Entity mw = game.getEntity(mechWarriorId.intValue()); // Is the MechWarrior an enemy? int condition = IEntityRemovalConditions.REMOVE_IN_RETREAT; r = new Report(2010); if (mw.isCaptured()) { r = new Report(2015); condition = IEntityRemovalConditions.REMOVE_CAPTURED; } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); r.addDesc(mw); r.indent(); addReport(r); } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); r = new Report(2015, Report.PUBLIC); r.indent(); r.addDesc(swarmer); addReport(r); game.removeEntity( swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED) ); } game.removeEntity( entity.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); return; } if (md.contains(MovePath.STEP_EJECT)) { if (entity instanceof Mech) { r = new Report(2020); r.subject = entity.getId(); r.add(entity.getCrew().getName()); r.addDesc(entity); addReport(r); } else if (entity instanceof Tank) { r = new Report(2025); r.subject = entity.getId(); r.addDesc(entity); addReport(r); } addReport( ejectEntity(entity, false)); return; } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int curVTOLElevation = entity.getElevation(); int distance = 0; int mpUsed = 0; int moveType = IEntityMovementType.MOVE_NONE; int overallMoveType = IEntityMovementType.MOVE_NONE; // if the entity already used some MPs, // it previously tried to get up and fell, // and then got another turn. set moveType // and overallMoveType accordingly if (entity.mpUsed > 0) { moveType = IEntityMovementType.MOVE_WALK; overallMoveType = IEntityMovementType.MOVE_WALK; if (entity.mpUsed > entity.getWalkMP()) { moveType = IEntityMovementType.MOVE_RUN; overallMoveType = IEntityMovementType.MOVE_RUN; } } boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; IHex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; PilotingRollData rollTarget; // cache this here, otherwise changing MP in the turn causes // errorneous gravity PSRs int cachedGravityLimit = (IEntityMovementType.MOVE_JUMP == moveType)? entity.getOriginalJumpMP() : entity.getRunMP(false); // Compile the move md.compile(game, entity); if (md.contains(MovePath.STEP_CLEAR_MINEFIELD)) { ClearMinefieldAction cma = new ClearMinefieldAction(entity.getId()); entity.setClearingMinefield(true); game.addAction(cma); } // check for MASC failure if (entity instanceof Mech) { Vector crits = new Vector(); if (((Mech)entity).checkForMASCFailure(md, vPhaseReport, crits)) { CriticalSlot cs = null; int loc = Entity.LOC_NONE; for(Enumeration e = crits.elements();e.hasMoreElements();) { Object o = e.nextElement(); if(o instanceof Integer) loc = (Integer) o; else if (o instanceof CriticalSlot) { cs = (CriticalSlot) o; applyCriticalHit(entity, loc, cs, true); } } // no movement after that md.clear(); } } overallMoveType = md.getLastStepMovementType(); //check for starting in liquid magma if(game.getBoard().getHex(entity.getPosition()).terrainLevel(Terrains.MAGMA) == 2 && entity.getElevation() == 0) { doMagmaDamage(entity, false); } // iterate through steps firstStep = true; fellDuringMovement = false; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; Vector movePath = new Vector(); for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isPavementStep(); boolean entityFellWhileAttemptingToStand = false; // stop for illegal movement if (step.getMovementType() == IEntityMovementType.MOVE_ILLEGAL) { break; } //stop if the entity already killed itself if(entity.isDestroyed() || entity.isDoomed()) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { entity.heatBuildup += 1; entity.setProne(false); entity.setHullDown(false); wasProne = false; game.resetPSRs(entity); entityFellWhileAttemptingToStand = !doSkillCheckInPlace(entity, rollTarget); } // did the entity just fall? if (entityFellWhileAttemptingToStand) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovePath.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } if (step.getType() == MovePath.STEP_LAY_MINE) { LayMinefieldAction lma = new LayMinefieldAction(entity.getId(), step.getMineToLay()); game.addLayMinefieldAction(lma); entity.setLayingMines(true); break; } if (step.getType() == MovePath.STEP_SEARCHLIGHT && entity.hasSpotlight()) { final boolean SearchOn = !entity.isUsingSpotlight(); entity.setSpotlightState(SearchOn); sendServerChat(entity.getDisplayName() + " switched searchlight "+(SearchOn?"on":"off")+"."); } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovePath.STEP_CHARGE) { if (entity.canCharge()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(caa); game.addCharge(caa); charge = caa; } else { sendServerChat("Illegal charge!! I don't think "+entity.getDisplayName() +" should be allowed to charge,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; } break; } // check for dfa if (step.getType() == MovePath.STEP_DFA) { if (entity.canDFA()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); DfaAttackAction daa = new DfaAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(daa); game.addCharge(daa); charge = daa; } else { sendServerChat("Illegal DFA!! I don't think "+entity.getDisplayName() +" should be allowed to DFA,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; } break; } // set last step parameters curPos = step.getPosition(); if(moveType != IEntityMovementType.MOVE_JUMP || entity.getJumpType() != Mech.JUMP_BOOSTER) curFacing = step.getFacing(); curVTOLElevation = step.getElevation(); //set elevation in case of collapses entity.setElevation(step.getElevation()); final IHex curHex = game.getBoard().getHex(curPos); // check for automatic unstick if(entity.canUnstickByJumping() && entity.isStuck() && moveType == IEntityMovementType.MOVE_JUMP) { entity.setStuck(false); entity.setCanUnstickByJumping(false); } // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. boolean psrPassed = true; if ( entity instanceof Mech ) { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, true ); } else { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; IHex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; int skidDirection = prevFacing; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // Attacks against a skidding target have additional +2. moveType = IEntityMovementType.MOVE_SKID; // What is the first hex in the skid? if(step.isThisStepBackwards()) { skidDirection = (skidDirection + 3) % 6; } nextPos = curPos.translated( skidDirection ); nextHex = game.getBoard().getHex( nextPos ); // Move the entity a number hexes from curPos in the // skidDirection direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.getBoard().contains(nextPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED)); r = new Report(2030, Report.PUBLIC); r.addDesc(entity); addReport(r); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. r = new Report(2035); r.subject = entity.getId(); r.indent(); addReport(r); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. r = new Report(2040); r.subject = entity.getId(); r.indent(); r.add(nextPos.getBoardNum(), true); addReport(r); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // all units can skid over ice. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementMode() == IEntityMovementMode.HOVER ) { if ( curHex.containsTerrain(Terrains.WATER) ) { curElevation = curHex.surface(); } if ( nextHex.containsTerrain(Terrains.WATER) ) { nextElevation += nextHex.surface(); } } else { if(curHex.containsTerrain(Terrains.ICE)) { curElevation = curHex.surface(); } if(nextHex.containsTerrain(Terrains.ICE)) { nextElevation = nextHex.surface(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { r = new Report(2045); r.subject = entity.getId(); r.indent(); r.add(nextPos.getBoardNum(), true); addReport(r); // Stay in the current hex and stop skidding. break; } // Have skidding units suffer falls. else if ( curElevation > nextElevation + 1 ) { doEntityFallsInto( entity, curPos, nextPos, entity.getBasePilotingRoll() ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.getBoard().getBuildingAt(nextPos); boolean bldgSuffered = false; boolean stopTheSkid = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. targets = game.getEntities( nextPos ); if ( targets.hasMoreElements()) { boolean skidChargeHit = false; while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged, // but need to make a to-hit roll if ( target instanceof Mech || target instanceof Tank ) { ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); ToHitData toHit = caa.toHit(game, true); // Calculate hit location. if ( entity instanceof Tank && ((entity.getMovementMode() == IEntityMovementMode.HOVER) || (entity.getMovementMode() == IEntityMovementMode.NAVAL) || (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL)) && 0 < nextHex.terrainLevel(Terrains.WATER) && target.getElevation() < 0) { if ( 2 <= nextHex.terrainLevel(Terrains.WATER) || target.isProne() ) { // Hovercraft/Naval Craft can't hit the Mek. continue; } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } } else if ( entity.getHeight() < target.getHeight() ) { toHit.setHitTable(ToHitData.HIT_KICK); } else { toHit.setHitTable(ToHitData.HIT_NORMAL); } toHit.setSideTable (Compute.targetSideTable(entity, target)); // roll int roll = Compute.d6(2); // Update report. r = new Report(2050); r.subject = entity.getId(); r.indent(); r.add(target.getShortName(), true); r.add(nextPos.getBoardNum(), true); r.newlines = 0; addReport(r); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; r = new Report(2055); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; addReport(r); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { r = new Report(2060); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; addReport(r); roll = Integer.MAX_VALUE; } else { // report the roll r = new Report(2065); r.subject = entity.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; addReport(r); } // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. if (roll < toHit.getValue()) { r = new Report(2070); r.subject = entity.getId(); addReport(r); } else { // Resolve the charge. resolveChargeDamage (entity, target, toHit, skidDirection); // HACK: set the entity's location // to the original hex again, for the other targets if (targets.hasMoreElements()) { entity.setPosition(curPos); } bldgSuffered = true; skidChargeHit = true; } // The skid ends here if the target lives. if ( !target.isDoomed() && !target.isDestroyed() && !game.isOutOfGame(target) ) { stopTheSkid = true; } // if we don't do this here, // we can have a mech without a leg // standing on the field and moving // as if it still had his leg after // getting skid-charged. if (!target.isDone()) { resolvePilotingRolls(target); game.resetPSRs(target); target.applyDamage(); addNewLines(); } } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( target instanceof Infantry && bldg != null ) { // Update report. r = new Report(2075); r.subject = entity.getId(); r.indent(); r.add(target.getShortName(), true); r.add(nextPos.getBoardNum(), true); r.newlines = 0; addReport(r); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. addReport( damageEntity(target, hit, Math.round(entity.getWeight()/5))); addNewLines(); } // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isOutOfGame(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // if we missed all the entities in the hex, // move attacker to side hex if (!skidChargeHit) { Coords src = entity.getPosition(); Coords dest = Compute.getMissedChargeDisplacement (game, entity.getId(), src, skidDirection); doEntityDisplacement(entity, src, dest, null); } else { // HACK: otherwise, set the entities position to that // hex's coords, because we had to move the entity // back earlier for the other targets entity.setPosition(nextPos); } } // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. r = new Report(2080); r.subject = entity.getId(); r.indent(); r.add(bldg.getName()); r.add(nextPos.getBoardNum(), true); addReport(r); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = ChargeAttackAction.getDamageFor ( entity ); if ( !bldgSuffered ) { Report buildingReport = damageBuilding( bldg, chargeDamage ); buildingReport.indent(2); buildingReport.subject = entity.getId(); addReport(buildingReport); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, entity.sideTable(nextPos) ); addReport( damageEntity( entity, hit, toAttacker )); addNewLines(); entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // is the next hex a rubble hex? rollTarget = entity.checkRubbleMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, true); if (entity.isProne()) { // if we fell, stop the skid (see bug 1115608) break; } } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); addReport(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2) { doMagmaDamage(entity, false); } // is the next hex a swamp? rollTarget = entity.checkSwampMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, false)){ entity.setStuck(true); r = new Report(2081); r.subject = entity.getId(); r.add(entity.getDisplayName(), true); // stay here and stop skidding, see bug 1115608 break; } } // Update the position and keep skidding. entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; r = new Report(2085); r.subject = entity.getId(); r.indent(); r.add(curPos.getBoardNum(), true); addReport(r); // Get the next hex in the skid? nextPos = nextPos.translated( skidDirection ); nextHex = game.getBoard().getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), skidDirection); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } // indent displacement r = new Report(1210, Report.PUBLIC); r.indent(); r.newlines = 0; addReport(r); doEntityDisplacement(target, curPos, nextPos, null); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage r = new Report(2090); r.subject = entity.getId(); r.indent(); r.addDesc(entity); r.add(damage); addReport(r); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); addReport( damageEntity(entity, hit, cluster)); damage -= cluster; } addNewLines(); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. r = new Report(2095); r.subject = entity.getId(); r.indent(); addReport(r); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); // skid consumes all movement if (md.hasActiveMASC()) { mpUsed = entity.getRunMP(); } else { mpUsed = entity.getRunMPwithoutMASC(); } entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr if(entity instanceof VTOL) { rollTarget = ((VTOL)entity).checkSideSlip(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, distance); if(rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if(!doSkillCheckWhileMoving(entity,lastPos,curPos,rollTarget, false)) { //report sideslip sideslipped = true; r = new Report(2100); r.subject = entity.getId(); r.addDesc(entity); addReport(r); Coords newPos = lastPos.translated((prevFacing));//does this work for opposing hex? // Is the next hex off the board? if ( !game.getBoard().contains(newPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED)); r = new Report(2030); r.subject = entity.getId(); r.addDesc(entity); addReport(r); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. r = new Report(2035); r.subject = entity.getId(); addReport(r); } // Stay in the current hex and stop skidding. break; } int newElevation=(entity.calcElevation(game.getBoard().getHex(curPos),game.getBoard().getHex(newPos),curVTOLElevation,step.climbMode())); if(newElevation<=0) { r = new Report(2105); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); addReport(r); int hitSide=curFacing-prevFacing+6; hitSide=hitSide % 6; int table=0; switch(hitSide) {//quite hackish...I think it ought to work, though. case 0://can this happen? table=ToHitData.SIDE_FRONT; break; case 1: case 2: table=ToHitData.SIDE_LEFT; break; case 3: table=ToHitData.SIDE_REAR; break; case 4: case 5: table=ToHitData.SIDE_RIGHT; break; } curPos=newPos; curVTOLElevation=newElevation; addReport( crashVTOL(((VTOL)entity),true,distance,curPos,curVTOLElevation,table)); curVTOLElevation=0; IHex hex = game.getBoard().getHex(newPos); if((hex.containsTerrain(Terrains.WATER) && !hex.containsTerrain(Terrains.ICE)) || hex.containsTerrain(Terrains.WOODS) || hex.containsTerrain(Terrains.JUNGLE)) { addReport( destroyEntity(entity,"could not land in crash site")); } else { } } else { r = new Report(2110); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); addReport(r); entity.setElevation(entity.calcElevation(game.getBoard().getHex(curPos),game.getBoard().getHex(newPos),curVTOLElevation,step.climbMode())); curPos=newPos; } if(!entity.isDestroyed() && !entity.isDoomed()) { fellDuringMovement= true; //No, but it should work... } break; } } } // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1 && step.getElevation() == 0 && step.getMovementType() != IEntityMovementType.MOVE_JUMP) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); addReport(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2 && step.getElevation() == 0 && step.getMovementType() != IEntityMovementType.MOVE_JUMP) { doMagmaDamage(entity, false); } // check if we've moved into a swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, false)){ entity.setStuck(true); entity.setCanUnstickByJumping(true); r = new Report(2081); r.add(entity.getDisplayName()); r.subject = entity.getId(); addReport(r); break; } } // check to see if we are a mech and we've moved OUT of fire IHex lastHex = game.getBoard().getHex(lastPos); if (entity instanceof Mech) { if ( !lastPos.equals(curPos) && (lastHex.containsTerrain(Terrains.FIRE) || lastHex.containsTerrain(Terrains.MAGMA)) && ( step.getMovementType() != IEntityMovementType.MOVE_JUMP // Bug #828741 -- jumping bypasses fire, but not on the first step // getMpUsed -- total MP used to this step // getMp -- MP used in this step // the difference will always be 0 on the "first step" of a jump, // and >0 on a step in the midst of a jump || ( 0 == step.getMpUsed() - step.getMp() ) ) ) { int heat=0; if(lastHex.containsTerrain(Terrains.FIRE)) heat+=2; if(lastHex.terrainLevel(Terrains.MAGMA) == 1) { heat+=2; } else if(lastHex.terrainLevel(Terrains.MAGMA) == 2) { heat+=5; } entity.heatBuildup+=heat; r = new Report(2115); r.subject = entity.getId(); r.addDesc(entity); r.add(heat); addReport(r); } } // check to see if we are not a mech and we've moved INTO fire if (!(entity instanceof Mech)) { if ( game.getBoard().getHex(curPos).containsTerrain(Terrains.FIRE) && !lastPos.equals(curPos) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && step.getElevation() <= 1 ) { if(game.getOptions().booleanOption("vehicle_fires") && entity instanceof Tank) { checkForVehicleFire((Tank)entity, false); } else { doFlamingDeath(entity); } } } // check for extreme gravity movement if (!i.hasMoreElements() && !firstStep) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); } // check for minefields. if ((!lastPos.equals(curPos) && (step.getMovementType() != IEntityMovementType.MOVE_JUMP)) || ((overallMoveType == IEntityMovementType.MOVE_JUMP) && (!i.hasMoreElements()))) { checkVibrabombs(entity, curPos, false, lastPos, curPos); if (game.containsMinefield(curPos)) { Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); boolean isOnGround = (!i.hasMoreElements()); isOnGround |= (step.getMovementType() != IEntityMovementType.MOVE_JUMP); isOnGround &= step.getElevation() == 0; if (isOnGround) { enterMinefield(entity, mf, curPos, curPos, true); } else if (mf.getType() == Minefield.TYPE_THUNDER_ACTIVE) { enterMinefield(entity, mf, curPos, curPos, true, 2); } } } } // infantry discovers minefields if they end their move // in a minefield. if (!lastPos.equals(curPos) && !i.hasMoreElements() && isInfantry) { if (game.containsMinefield(curPos)) { Player owner = entity.getOwner(); Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); if (!owner.containsMinefield(mf)) { r = new Report(2120); r.subject = entity.getId(); r.add(entity.getShortName(), true); addReport(r); revealMinefield(owner, mf); } } } } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Swarmers need special handling. final int swarmerId = entity.getSwarmAttackerId(); boolean swarmerDone = true; Entity swarmer = null; if (Entity.NONE != swarmerId) { swarmer = game.getEntity( swarmerId ); swarmerDone = swarmer.isDone(); } // Now do the skill check. doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); // Swarming infantry platoons may drown. if (curHex.terrainLevel(Terrains.WATER) > 1) { drownSwarmer(entity, curPos); } // Do we need to remove a game turn for the swarmer if (!swarmerDone && ( swarmer.isDoomed() || swarmer.isDestroyed() )) { // We have to diddle with the swarmer's // status to get its turn removed. swarmer.setDone( false ); swarmer.setUnloaded( false ); // Dead entities don't take turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Return the original status. swarmer.setDone( true ); swarmer.setUnloaded( true ); } // check for inferno wash-off checkForWashedInfernos(entity, curPos); } // In water, may or may not be a new hex, neccessary to // check during movement, for breach damage, and always // set dry if appropriate //TODO: possibly make the locations local and set later doSetLocationsExposure(entity, curHex, step.getMovementType() == IEntityMovementType.MOVE_JUMP, step.getElevation()); //check for breaking ice by breaking through from below if(prevHex != null && prevStep != null && prevStep.getElevation() < 0 && step.getElevation() == 0 && prevHex.containsTerrain(Terrains.ICE) && prevHex.containsTerrain(Terrains.WATER) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && !(lastPos.equals(curPos))) { r = new Report(2410); r.addDesc(entity); addReport(r); resolveIceBroken(lastPos); } //check for breaking ice by stepping on it if(curHex.containsTerrain(Terrains.ICE) && curHex.containsTerrain(Terrains.WATER) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && !(lastPos.equals(curPos))) { if(step.getElevation() == 0 ) { int roll = Compute.d6(1); r = new Report(2118); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); addReport(r); if(roll == 6) { resolveIceBroken(curPos); doEntityFallsInto(entity, lastPos, curPos, entity.getBasePilotingRoll(), false); } } //or intersecting it else if(step.getElevation() + entity.height() == 0) { r = new Report(2410); r.addDesc(entity); addReport(r); resolveIceBroken(curPos); } } // Handle loading units. if ( step.getType() == MovePath.STEP_LOAD ) { // Find the unit being loaded. Entity loaded = null; Enumeration entities = game.getEntities( curPos ); while ( entities.hasMoreElements() ) { // Is the other unit friendly and not the current entity? loaded = (Entity)entities.nextElement(); if ( entity.getOwner() == loaded.getOwner() && !entity.equals(loaded) ) { // The moving unit should be able to load the other // unit and the other should be able to have a turn. if ( !entity.canLoad(loaded) || !loaded.isSelectableThisTurn() ) { // Something is fishy in Denmark. System.err.println( entity.getShortName() + " can not load " + loaded.getShortName() ); loaded = null; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); // Stop looking. break; } } else { // Nope. Discard it. loaded = null; } } // Handle the next entity in this hex. // We were supposed to find someone to load. if ( loaded == null ) { System.err.println( "Could not find unit for " + entity.getShortName() + " to load in " + curPos ); } } // End STEP_LOAD // Handle unloading units. if ( step.getType() == MovePath.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing, step.getElevation() ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. int buildingMove = entity.checkMovementInBuilding(step, prevStep, curPos, lastPos); if (buildingMove > 0) { // Get the building being exited. Building bldgExited = null; if((buildingMove & 1) == 1) bldgExited = game.getBoard().getBuildingAt( lastPos ); // Get the building being entered. Building bldgEntered = null; if((buildingMove & 2) == 2) bldgEntered = game.getBoard().getBuildingAt( curPos ); // Get the building being stepped on. Building bldgStepped = null; if((buildingMove & 4) == 4) bldgStepped = game.getBoard().getBuildingAt( curPos ); boolean collapsed = false; //are we passing through a building wall? if(bldgEntered != null || bldgExited != null) { // If we're not leaving a building, just handle the "entered". if ( bldgExited == null) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else if (bldgExited != null){ collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } } //stepping on roof, no PSR just check for over weight if(bldgStepped != null) { collapsed = checkBuildingCollapseWhileMoving(bldgStepped, entity, curPos); this.addAffectedBldg( bldgStepped, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovePath.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); rollTarget = entity.checkDislodgeSwarmers(step); if (rollTarget.getValue() == TargetRoll.CHECK_FALSE) { // Not being swarmed entity.setProne(true); // check to see if we washed off infernos checkForWashedInfernos(entity, curPos); break; } else { // Being swarmed entity.setPosition(curPos); if (doDislodgeSwarmerSkillCheck(entity, rollTarget, curPos)) { // Entity falls curFacing = entity.getFacing(); curPos = entity.getPosition(); fellDuringMovement = true; break; } } } //going hull down if(step.getType() == MovePath.STEP_HULL_DOWN) { mpUsed = step.getMpUsed(); entity.setHullDown(true); } // Track this step's location. movePath.addElement( new UnitLocation( entity.getId(), curPos, curFacing ) ); // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; if (!sideslipped && !fellDuringMovement) { entity.setElevation(curVTOLElevation); } entity.setClimbMode(md.getFinalClimbMode()); // if we ran with destroyed hip or gyro, we need a psr rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == IEntityMovementType.MOVE_JUMP && !entity.isMakingDfa()) { final IHex curHex = game.getBoard().getHex(curPos); // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // jumped into water? int waterLevel = curHex.terrainLevel(Terrains.WATER); if(curHex.containsTerrain(Terrains.ICE) && waterLevel > 0) { waterLevel = 0; //check for breaking ice int roll = Compute.d6(1); r = new Report(2122); r.add(entity.getDisplayName(), true); r.add(roll); r.subject = entity.getId(); addReport(r); if(roll >= 4) { //oops! resolveIceBroken(curPos); doEntityFallsInto(entity, lastPos, curPos, entity.getBasePilotingRoll(), false); } } rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } if (waterLevel > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } //check for building collapse Building bldg = game.getBoard().getBuildingAt(curPos); if(bldg != null) { checkForCollapse( bldg, game.getPositionMap() ); } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); addReport(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2) { doMagmaDamage(entity, false); } // jumped into swamp? maybe stuck! if (curHex.containsTerrain(Terrains.SWAMP) || curHex.containsTerrain(Terrains.MAGMA) || curHex.containsTerrain(Terrains.SNOW) || curHex.containsTerrain(Terrains.MUD) || curHex.containsTerrain(Terrains.TUNDRA)) { if (entity instanceof Mech) { entity.setStuck(true); r = new Report(2121); r.add(entity.getDisplayName(), true); r.subject = entity.getId(); addReport(r); } else if (entity instanceof Infantry) { PilotingRollData roll = entity.getBasePilotingRoll(); roll.addModifier(5, "infantry jumping into swamp"); if (!doSkillCheckWhileMoving(entity, curPos, curPos, roll, false)) { entity.setStuck(true); r = new Report(2081); r.add(entity.getDisplayName()); r.subject = entity.getId(); addReport(r); } } } // If the entity is being swarmed, jumping may dislodge the fleas. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); final PilotingRollData roll = entity.getBasePilotingRoll(); entity.addPilotingModifierForTerrain(roll); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info r = new Report(2125); r.subject = entity.getId(); r.addDesc(entity); addReport(r); // roll final int diceRoll = Compute.d6(2); r = new Report(2130); r.subject = entity.getId(); r.add(roll.getValueAsString()); r.add(roll.getDesc()); r.add(diceRoll); if (diceRoll < roll.getValue()) { r.choose(false); addReport(r); } else { // Dislodged swarmers don't get turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Update the report and the swarmer's status. r.choose(true); addReport(r); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? if ( curHex.terrainLevel(Terrains.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); r = new Report(2135); r.subject = entity.getId(); r.indent(); r.addDesc(swarmer); addReport(r); addReport( destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. r = new Report(2140); r.subject = entity.getId(); r.indent(); r.addDesc(swarmer); addReport(r); addReport(damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11)); addNewLines(); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers // one more check for inferno wash-off checkForWashedInfernos(entity, curPos); } // End entity-is-jumping // update entity's locations' exposure doSetLocationsExposure(entity, game.getBoard().getHex(curPos), false, entity.getElevation()); // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectableThisTurn() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertNextTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); // let everyone know about what just happened send(entity.getOwner().getId(), createSpecialReportPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.getBoard().getHex(curPos).containsTerrain(Terrains.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); r = new Report(2145); r.subject = entity.getId(); r.indent(); r.add(swarmer.getShortName(), true); addReport(r); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if (!game.isOutOfGame(entity)) { entityUpdate( entity.getId(), movePath ); if (entity.isDoomed()) { send(createRemoveEntityPacket(entity.getId(), entity.getRemovalCondition())); } } // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, 1)); } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/789c3a6e8d1de7fe998d04881196436127e609f8/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 49, 26140, 12, 1943, 1522, 16, 9933, 743, 3481, 13, 288, 3639, 8706, 436, 31, 3639, 1250, 22423, 3169, 1845, 273, 629, 31, 368, 364, 22944, 1741, 22423, 3169, 1382, 7734, 368, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 7607, 743, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 436, 273, 394, 8706, 12, 6976, 25, 16, 8706, 18, 14939, 1769, 5411, 436, 18, 1289, 4217, 12, 1096, 1769, 5411, 527, 4820, 12, 86, 1769, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 7537, 5621, 5411, 309, 261, 401, 5466, 275, 6215, 18, 291, 1921, 1435, 262, 288, 7734, 727, 13864, 1400, 273, 1342, 275, 6215, 18, 6274, 5621, 7734, 1323, 261, 1400, 18, 5332, 7417, 3471, 1435, 262, 288, 10792, 727, 3887, 1342, 14348, 273, 261, 1943, 13, 1400, 18, 4285, 1046, 5621, 10792, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 10792, 436, 273, 394, 8706, 12, 6734, 20, 16, 8706, 18, 14939, 1769, 10792, 436, 18, 9355, 5621, 10792, 436, 18, 1289, 4217, 12, 5466, 14348, 1769, 10792, 527, 4820, 12, 86, 1769, 10792, 7920, 18, 4479, 1943, 12, 1342, 14348, 18, 26321, 9334, 18701, 29202, 24543, 8545, 18, 22122, 67, 706, 67, 10238, 862, 789, 11272, 10792, 1366, 12, 752, 3288, 1943, 6667, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 49, 26140, 12, 1943, 1522, 16, 9933, 743, 3481, 13, 288, 3639, 8706, 436, 31, 3639, 1250, 22423, 3169, 1845, 273, 629, 31, 368, 364, 22944, 1741, 22423, 3169, 1382, 7734, 368, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 7607, 743, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 436, 273, 394, 8706, 12, 6976, 25, 16, 8706, 18, 14939, 1769, 5411, 436, 18, 1289, 4217, 12, 1096, 1769, 5411, 527, 4820, 12, 86, 1769, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 2 ]
GridData gridData = new GridData( );
GridData gridData = new GridData( GridData.FILL_BOTH );
private void buildUI( Composite parent ) { // sets the layout GridLayout layout = new GridLayout( ); layout.horizontalSpacing = 10; layout.verticalSpacing = 10; parent.setLayout( layout ); // create table and tableViewer table = new Table( parent, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION ); table.setLinesVisible( true ); table.setHeaderVisible( true ); GridData gridData = new GridData( ); gridData.heightHint = 100; table.setLayoutData( gridData ); for ( int i = 0; i < columnNames.length; i++ ) { TableColumn column = new TableColumn( table, SWT.LEFT ); column.setText( columnNames[i] ); if ( i == 1 ) { column.setWidth( 80 ); } else { column.setWidth( 160 ); } } createTableViewer( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/58a61a83a3786539ef48c8634a226924baa4fbcb/ReportItemParametersDialog.java/clean/chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/dialogs/ReportItemParametersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 5370, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 1678, 326, 3511, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 18396, 18006, 273, 1728, 31, 202, 202, 6741, 18, 17824, 18006, 273, 1728, 31, 202, 202, 2938, 18, 542, 3744, 12, 3511, 11272, 202, 202, 759, 752, 1014, 471, 1014, 18415, 202, 202, 2121, 273, 394, 3555, 12, 982, 16, 348, 8588, 18, 20184, 9506, 202, 96, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 18111, 67, 1090, 15445, 11272, 202, 202, 2121, 18, 542, 5763, 6207, 12, 638, 11272, 202, 202, 2121, 18, 542, 1864, 6207, 12, 638, 11272, 202, 202, 6313, 751, 3068, 751, 273, 394, 7145, 751, 12, 11272, 202, 202, 5222, 751, 18, 4210, 7002, 273, 2130, 31, 202, 202, 2121, 18, 542, 3744, 751, 12, 3068, 751, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 19975, 18, 2469, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 1388, 1494, 1057, 273, 394, 3555, 1494, 12, 1014, 16, 348, 8588, 18, 10066, 11272, 1082, 202, 2827, 18, 542, 1528, 12, 19975, 63, 77, 65, 11272, 1082, 202, 430, 261, 277, 422, 404, 262, 1082, 202, 95, 9506, 202, 2827, 18, 542, 2384, 12, 8958, 11272, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 2827, 18, 542, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 5370, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 1678, 326, 3511, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 18396, 18006, 273, 1728, 31, 202, 202, 6741, 18, 17824, 18006, 273, 1728, 31, 202, 202, 2938, 18, 542, 3744, 12, 3511, 11272, 202, 202, 759, 752, 1014, 471, 1014, 18415, 202, 202, 2121, 273, 394, 3555, 12, 982, 16, 348, 8588, 18, 20184, 9506, 202, 96, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 18111, 67, 1090, 15445, 11272, 202, 202, 2121, 18, 542, 5763, 6207, 12, 638, 2 ]
return false;
return isUsingTLS();
public boolean isSecureConnection() { return false; }
52005 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52005/2303fa33c925a897b6264f46d77ebb43306b0e6f/XMPPConnection.java/clean/source/org/jivesoftware/smack/XMPPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 12834, 1952, 1435, 288, 3639, 327, 353, 7736, 9905, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 12834, 1952, 1435, 288, 3639, 327, 353, 7736, 9905, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (testStyleBit(SHOW_GROUP_BUTTON)) { groupBtn = new FastGroupTrimButton(menuTB, this); groupBtn.setSize(20); groupItem = new ToolItem(menuTB, SWT.SEPARATOR, 0); groupItem.setControl(groupBtn.getControl()); groupItem.setWidth(20);
if (testStyleBit(SHOW_RESTORE_BUTTON)) { restoreItem = new ToolItem(menuTB, SWT.PUSH, 0); Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_RESTORE_FASTVIEW); restoreItem.setImage(tbImage); String menuTip = WorkbenchMessages.StandardSystemToolbar_Restore; restoreItem.setToolTipText(menuTip); restoreItem.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { closeGroup(); } public void widgetDefaultSelected(SelectionEvent e) { } });
protected void createChildControls() { int newSide = getSide(); int orientation = Geometry.isHorizontal(newSide) ? SWT.HORIZONTAL : SWT.VERTICAL; // Create a ControlLayout apropriate for the new orientation CellLayout controlLayout; if (Geometry.isHorizontal(newSide)) { controlLayout = new CellLayout(0) .setMargins(0, 0) .setDefaultRow(Row.growing()) .setDefaultColumn(Row.fixed()) .setColumn(1, Row.growing()); } else { controlLayout = new CellLayout(1) .setMargins(0, 3) .setDefaultColumn(Row.growing()) .setDefaultRow(Row.fixed()) .setRow(1, Row.growing()); } // Set up the composite for the new orientation fvbComposite.setLayout(controlLayout); // Create a toolbar to show an 'Add FastView' menu 'button' menuTB = new ToolBar(fvbComposite, SWT.FLAT | orientation); if (testStyleBit(SHOW_ADD_BUTTON)) { // Construct an item to act as a 'menu button' (a la the PerspectiveSwitcher) showItem = new ToolItem(menuTB, SWT.PUSH, 0); Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_FASTVIEW); showItem.setImage(tbImage); String menuTip = WorkbenchMessages.FastViewBar_0; showItem.setToolTipText(menuTip); // Bring up the 'Add Fast View' menu on a left -or- right button click // Right click (context menu) showItem.addListener(SWT.MenuDetect, addMenuListener); // Left Click... showItem.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { Rectangle bb = DragUtil.getDisplayBounds(menuTB); showAddFastViewPopup(new Point(bb.x,bb.y+bb.height)); } public void widgetDefaultSelected(SelectionEvent e) { } }); } if (testStyleBit(SHOW_GROUP_BUTTON)) { groupBtn = new FastGroupTrimButton(menuTB, this); groupBtn.setSize(20); groupItem = new ToolItem(menuTB, SWT.SEPARATOR, 0); groupItem.setControl(groupBtn.getControl()); groupItem.setWidth(20); } //new ToolItem(menuTB, SWT.SEPARATOR, 1); // Now that the ToolBar is populated calculate its size... Point size = menuTB.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); menuTB.setBounds(0, 0, size.x, size.y); // Bring up the 'Add Fast View' menu on a left -or- right button click // Right click (context menu) menuTB.addListener(SWT.MenuDetect, addMenuListener); // try to get the layout correct... toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); menuTB.setLayoutData(toolBarData); // Construct the ToolBar containing the 'Fast' views fastViewBar = new ToolBarManager(SWT.FLAT | SWT.WRAP | orientation); fastViewBar.add(new ShowFastViewContribution(this, window)); fastViewBar.createControl(fvbComposite); getToolBar().addListener(SWT.MenuDetect, menuListener); IDragOverListener fastViewDragTarget = new IDragOverListener() { public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle) { ToolItem targetItem = getToolItem(position); if (draggedObject instanceof ViewPane) { ViewPane pane = (ViewPane) draggedObject; // Can't drag views between windows if (pane.getWorkbenchWindow() != window) { return null; } List newList = new ArrayList(1); newList.add(draggedObject); return createDropTarget(newList, targetItem); } if (draggedObject instanceof ViewStack) { ViewStack folder = (ViewStack) draggedObject; if (folder.getWorkbenchWindow() != window) { return null; } List viewList = new ArrayList(folder.getItemCount()); LayoutPart[] children = folder.getChildren(); for (int idx = 0; idx < children.length; idx++) { if (!(children[idx] instanceof PartPlaceholder)) { viewList.add(children[idx]); } } return createDropTarget(viewList, targetItem); } return null; } }; toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); getToolBar().setLayoutData(toolBarData); PresentationUtil.addDragListener(getToolBar(), dragListener); DragUtil.addDragTarget(getControl(), fastViewDragTarget); update(true); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/14ff4c11ee4735038f89d4e70153748cdfff9446/FastViewBar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 1763, 16795, 1435, 288, 3639, 509, 394, 8895, 273, 1322, 831, 5621, 3639, 509, 9820, 273, 8344, 18, 291, 14457, 12, 2704, 8895, 13, 692, 348, 8588, 18, 44, 20344, 7734, 294, 348, 8588, 18, 21654, 10109, 31, 7734, 368, 1788, 279, 8888, 3744, 513, 1764, 566, 340, 364, 326, 394, 9820, 3639, 8614, 3744, 3325, 3744, 31, 7734, 309, 261, 9823, 18, 291, 14457, 12, 2704, 8895, 3719, 288, 540, 202, 7098, 3744, 273, 394, 8614, 3744, 12, 20, 13, 540, 202, 202, 18, 542, 28528, 12, 20, 16, 374, 13, 540, 202, 202, 18, 542, 1868, 1999, 12, 1999, 18, 75, 492, 310, 10756, 540, 202, 202, 18, 542, 1868, 1494, 12, 1999, 18, 12429, 10756, 540, 202, 202, 18, 542, 1494, 12, 21, 16, 6556, 18, 75, 492, 310, 10663, 3639, 289, 469, 288, 540, 202, 7098, 3744, 273, 394, 8614, 3744, 12, 21, 13, 540, 202, 202, 18, 542, 28528, 12, 20, 16, 890, 13, 540, 202, 202, 18, 542, 1868, 1494, 12, 1999, 18, 75, 492, 310, 10756, 540, 202, 202, 18, 542, 1868, 1999, 12, 1999, 18, 12429, 10756, 540, 202, 202, 18, 542, 1999, 12, 21, 16, 6556, 18, 75, 492, 310, 10663, 3639, 289, 7734, 368, 1000, 731, 326, 9635, 364, 326, 394, 9820, 3639, 10097, 70, 9400, 18, 542, 3744, 12, 7098, 3744, 1769, 3639, 368, 1788, 279, 12748, 358, 2405, 392, 296, 986, 9545, 1767, 11, 3824, 296, 5391, 11, 3639, 3824, 25730, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 1763, 16795, 1435, 288, 3639, 509, 394, 8895, 273, 1322, 831, 5621, 3639, 509, 9820, 273, 8344, 18, 291, 14457, 12, 2704, 8895, 13, 692, 348, 8588, 18, 44, 20344, 7734, 294, 348, 8588, 18, 21654, 10109, 31, 7734, 368, 1788, 279, 8888, 3744, 513, 1764, 566, 340, 364, 326, 394, 9820, 3639, 8614, 3744, 3325, 3744, 31, 7734, 309, 261, 9823, 18, 291, 14457, 12, 2704, 8895, 3719, 288, 540, 202, 7098, 3744, 273, 394, 8614, 3744, 12, 20, 13, 540, 202, 202, 18, 542, 28528, 12, 20, 16, 374, 13, 540, 202, 202, 18, 542, 1868, 1999, 12, 1999, 18, 75, 492, 310, 10756, 540, 202, 202, 18, 542, 1868, 1494, 12, 1999, 2 ]
parser.parse( fEntityHandler.expandSystemId(loc) );
parser.parse( loc );
private void resolveSchemaGrammar( String loc, String uri) throws Exception{ DOMParser parser = new DOMParser() { public void ignorableWhitespace(char ch[], int start, int length) {} public void ignorableWhitespace(int dataIdx) {} }; parser.setEntityResolver( new Resolver() ); parser.setErrorHandler( new ErrorHandler() ); try { parser.setFeature("http://xml.org/sax/features/validation", false); parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); }catch( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); }catch( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } try { parser.parse( fEntityHandler.expandSystemId(loc) ); }catch( IOException e ) { e.printStackTrace(); }catch( SAXException e ) { //e.printStackTrace(); reportRecoverableXMLError(167, 144, e.getMessage() ); } Document document = parser.getDocument(); //Our Grammar TraverseSchema tst = null; try { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("I am geting the Schema Document"); } Element root = document.getDocumentElement();// This is what we pass to TraverserSchema if (root == null) { reportRecoverableXMLError(167, 144, "Can't get back Schema document's root element :" + loc); } else { if (uri == null || !uri.equals(root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE)) ) { reportRecoverableXMLError(167,144, "Schema in " + loc + " has a different target namespace " + "from the one specified in the instance document :" + uri); } if (fGrammar == null) { fGrammar = new SchemaGrammar(); } tst = new TraverseSchema( root, fStringPool, (SchemaGrammar)fGrammar, fGrammarResolver, fErrorReporter); } } catch (Exception e) { e.printStackTrace(System.err); } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/a9b2c6bee5ba663a97594528d5ed1a0d5071a493/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 3078, 18576, 12, 514, 1515, 16, 514, 2003, 13, 1216, 1185, 95, 3639, 4703, 2678, 2082, 273, 394, 4703, 2678, 1435, 288, 5411, 1071, 918, 9750, 15514, 9431, 12, 3001, 462, 63, 6487, 509, 787, 16, 509, 769, 13, 2618, 5411, 1071, 918, 9750, 15514, 9431, 12, 474, 501, 4223, 13, 2618, 3639, 289, 31, 3639, 2082, 18, 542, 1943, 4301, 12, 394, 17183, 1435, 11272, 3639, 2082, 18, 542, 17729, 12, 225, 394, 26406, 1435, 11272, 3639, 775, 288, 5411, 2082, 18, 542, 4595, 2932, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 8685, 3113, 629, 1769, 5411, 2082, 18, 542, 4595, 2932, 2505, 2207, 19211, 18, 3341, 19, 2902, 19, 7139, 19, 9859, 19, 18974, 17, 2159, 17, 2749, 12162, 3113, 629, 1769, 3639, 289, 14683, 12, 225, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 1248, 5650, 9367, 503, 425, 262, 288, 5411, 425, 18, 1188, 6332, 5621, 3639, 289, 14683, 12, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 25482, 425, 262, 288, 5411, 425, 18, 1188, 6332, 5621, 3639, 289, 3639, 775, 288, 5411, 2082, 18, 2670, 12, 1515, 11272, 3639, 289, 14683, 12, 1860, 425, 262, 288, 5411, 425, 18, 1188, 6332, 5621, 3639, 289, 14683, 12, 14366, 425, 262, 288, 5411, 368, 73, 18, 1188, 6332, 5621, 5411, 2605, 426, 17399, 4201, 668, 12, 28120, 16, 30457, 16, 425, 18, 24906, 1435, 11272, 3639, 289, 3639, 4319, 377, 1668, 282, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 3078, 18576, 12, 514, 1515, 16, 514, 2003, 13, 1216, 1185, 95, 3639, 4703, 2678, 2082, 273, 394, 4703, 2678, 1435, 288, 5411, 1071, 918, 9750, 15514, 9431, 12, 3001, 462, 63, 6487, 509, 787, 16, 509, 769, 13, 2618, 5411, 1071, 918, 9750, 15514, 9431, 12, 474, 501, 4223, 13, 2618, 3639, 289, 31, 3639, 2082, 18, 542, 1943, 4301, 12, 394, 17183, 1435, 11272, 3639, 2082, 18, 542, 17729, 12, 225, 394, 26406, 1435, 11272, 3639, 775, 288, 5411, 2082, 18, 542, 4595, 2932, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 8685, 3113, 629, 1769, 5411, 2082, 18, 542, 4595, 2932, 2505, 2207, 19211, 18, 3341, 19, 2902, 19, 2 ]
assertQueryReturns(taglibQueries[3]);
assertQueryReturns(taglibQueries[3].query, taglibQueries[3].result);
public void testTaglib3() { assertQueryReturns(taglibQueries[3]); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/bb703add381acf854e2d5aed1045911b7ab143b4/BasicQueryTest.java/clean/testsrc/main/mondrian/test/BasicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1805, 2941, 23, 1435, 288, 3639, 1815, 1138, 1356, 12, 2692, 2941, 9592, 63, 23, 8009, 2271, 16, 1047, 2941, 9592, 63, 23, 8009, 2088, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1805, 2941, 23, 1435, 288, 3639, 1815, 1138, 1356, 12, 2692, 2941, 9592, 63, 23, 8009, 2271, 16, 1047, 2941, 9592, 63, 23, 8009, 2088, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ValidatorAction va = resources.getValidatorAction((String) i.next());
String depends = (String) i.next(); ValidatorAction va = resources.getValidatorAction(depends); if (va == null) { throw new NullPointerException( "Depends string \"" + depends + "\" was not found in validator-rules.xml."); }
public int doStartTag() throws JspException { StringBuffer results = new StringBuffer(); ModuleConfig config = RequestUtils.getModuleConfig(pageContext); ValidatorResources resources = (ValidatorResources) pageContext.getAttribute( ValidatorPlugIn.VALIDATOR_KEY + config.getPrefix(), PageContext.APPLICATION_SCOPE); Locale locale = null; try { locale = (Locale) pageContext.getAttribute(Globals.LOCALE_KEY, PageContext.SESSION_SCOPE); } catch (IllegalStateException e) { // Invalidated session locale = null; } if (locale == null) { locale = defaultLocale; } Form form = null; form = resources.get(locale, formName); if (form != null) { if ("true".equals(dynamicJavascript)) { MessageResources messages = (MessageResources) pageContext.getAttribute( bundle + config.getPrefix(), PageContext.APPLICATION_SCOPE); List lActions = new ArrayList(); List lActionMethods = new ArrayList(); // Get List of actions for this Form for (Iterator i = form.getFields().iterator(); i.hasNext();) { Field field = (Field) i.next(); for (Iterator x = field.getDependencies().iterator(); x.hasNext();) { Object o = x.next(); if (o != null && !lActionMethods.contains(o)) { lActionMethods.add(o); } } } // Create list of ValidatorActions based on lActionMethods for (Iterator i = lActionMethods.iterator(); i.hasNext();) { ValidatorAction va = resources.getValidatorAction((String) i.next()); String javascript = va.getJavascript(); if (javascript != null && javascript.length() > 0) { lActions.add(va); } else { i.remove(); } } Collections.sort(lActions, new Comparator() { public int compare(Object o1, Object o2) { ValidatorAction va1 = (ValidatorAction) o1; ValidatorAction va2 = (ValidatorAction) o2; if ((va1.getDepends() == null || va1.getDepends().length() == 0) && (va2.getDepends() == null || va2.getDepends().length() == 0)) { return 0; } else if ( (va1.getDepends() != null && va1.getDepends().length() > 0) && (va2.getDepends() == null || va2.getDepends().length() == 0)) { return 1; } else if ( (va1.getDepends() == null || va1.getDepends().length() == 0) && (va2.getDepends() != null && va2.getDepends().length() > 0)) { return -1; } else { return va1.getDependencies().size() - va2.getDependencies().size(); } } }); String methods = null; for (Iterator i = lActions.iterator(); i.hasNext();) { ValidatorAction va = (ValidatorAction) i.next(); if (methods == null) { methods = va.getMethod() + "(form)"; } else { methods += " && " + va.getMethod() + "(form)"; } } results.append(getJavascriptBegin(methods)); for (Iterator i = lActions.iterator(); i.hasNext();) { ValidatorAction va = (ValidatorAction) i.next(); String jscriptVar = null; String functionName = null; if (va.getJsFunctionName() != null && va.getJsFunctionName().length() > 0) { functionName = va.getJsFunctionName(); } else { functionName = va.getName(); } results.append(" function " + functionName + " () { \n"); for (Iterator x = form.getFields().iterator(); x.hasNext();) { Field field = (Field) x.next(); // Skip indexed fields for now until there is // a good way to handle error messages (and the length of the list (could retrieve from scope?)) if (!field.isIndexed() && field.getPage() == page && field.isDependency(va.getName())) { String message = Resources.getMessage(messages, locale, va, field); message = (message != null ? message : ""); jscriptVar = getNextVar(jscriptVar); results.append( " this." + jscriptVar + " = new Array(\"" + field.getKey() + "\", \"" + message + "\", "); results.append("new Function (\"varName\", \""); Map hVars = field.getVars(); // Loop through the field's variables. for (Iterator iVars = hVars.keySet().iterator(); iVars.hasNext();) { String varKey = (String) iVars.next(); Var var = (Var) hVars.get(varKey); String varValue = var.getValue(); String jsType = var.getJsType(); if (Var.JSTYPE_INT.equalsIgnoreCase(jsType)) { results.append( "this." + varKey + "=" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "; "); } else if (Var.JSTYPE_REGEXP.equalsIgnoreCase(jsType)) { results.append( "this." + varKey + "=/" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "/; "); } else if (Var.JSTYPE_STRING.equalsIgnoreCase(jsType)) { results.append( "this." + varKey + "='" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "'; "); // So everyone using the latest format doesn't need to change their xml files immediately. } else if ("mask".equalsIgnoreCase(varKey)) { results.append( "this." + varKey + "=/" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "/; "); } else { results.append( "this." + varKey + "='" + ValidatorUtil.replace(varValue, "\\", "\\\\") + "'; "); } } results.append(" return this[varName];\"));\n"); } } results.append(" } \n\n"); } } else if ("true".equals(staticJavascript)) { results.append(this.getStartElement()); if ("true".equals(htmlComment)) results.append(htmlBeginComment); } } if ("true".equals(staticJavascript)) { results.append(getJavascriptStaticMethods(resources)); } if (form != null && ("true".equals(dynamicJavascript) || "true".equals(staticJavascript))) { results.append(getJavascriptEnd()); } // Print this field to our output writer JspWriter writer = pageContext.getOut(); try { writer.print(results.toString()); } catch (IOException e) { throw new JspException(e.getMessage()); //throw new JspException(messages.getMessage("common.io", e.toString())); } // Continue processing this page return (EVAL_BODY_TAG); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/4cab59bf21afcac8d233074134d0354b48fb76d7/JavascriptValidatorTag.java/clean/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 6674, 1686, 273, 394, 6674, 5621, 3639, 5924, 809, 642, 273, 1567, 1989, 18, 588, 3120, 809, 12, 2433, 1042, 1769, 3639, 9150, 3805, 2703, 273, 5411, 261, 5126, 3805, 13, 21442, 18, 588, 1499, 12, 7734, 9150, 1749, 637, 382, 18, 5063, 3575, 67, 3297, 397, 642, 18, 588, 2244, 9334, 7734, 3460, 1042, 18, 25039, 67, 19444, 1769, 3639, 6458, 2573, 273, 446, 31, 3639, 775, 288, 5411, 2573, 273, 7734, 261, 3916, 13, 21442, 18, 588, 1499, 12, 19834, 18, 25368, 67, 3297, 16, 3460, 1042, 18, 7042, 67, 19444, 1769, 3639, 289, 1044, 261, 12195, 5060, 425, 13, 288, 368, 1962, 690, 1339, 5411, 2573, 273, 446, 31, 3639, 289, 3639, 309, 261, 6339, 422, 446, 13, 288, 5411, 2573, 273, 30108, 31, 3639, 289, 3639, 2748, 646, 273, 446, 31, 3639, 646, 273, 2703, 18, 588, 12, 6339, 16, 27404, 1769, 3639, 309, 261, 687, 480, 446, 13, 288, 5411, 309, 7566, 3767, 9654, 14963, 12, 14507, 27129, 3719, 288, 7734, 2350, 3805, 2743, 273, 10792, 261, 1079, 3805, 13, 21442, 18, 588, 1499, 12, 13491, 3440, 397, 642, 18, 588, 2244, 9334, 13491, 3460, 1042, 18, 25039, 67, 19444, 1769, 7734, 987, 328, 6100, 273, 394, 2407, 5621, 7734, 987, 328, 1803, 4712, 273, 394, 2407, 5621, 7734, 368, 968, 987, 434, 4209, 364, 333, 2748, 7734, 364, 261, 3198, 277, 273, 646, 18, 588, 2314, 7675, 9838, 5621, 277, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 6674, 1686, 273, 394, 6674, 5621, 3639, 5924, 809, 642, 273, 1567, 1989, 18, 588, 3120, 809, 12, 2433, 1042, 1769, 3639, 9150, 3805, 2703, 273, 5411, 261, 5126, 3805, 13, 21442, 18, 588, 1499, 12, 7734, 9150, 1749, 637, 382, 18, 5063, 3575, 67, 3297, 397, 642, 18, 588, 2244, 9334, 7734, 3460, 1042, 18, 25039, 67, 19444, 1769, 3639, 6458, 2573, 273, 446, 31, 3639, 775, 288, 5411, 2573, 273, 7734, 261, 3916, 13, 21442, 18, 588, 1499, 12, 19834, 18, 25368, 67, 3297, 16, 3460, 1042, 18, 7042, 67, 19444, 1769, 3639, 289, 1044, 261, 12195, 5060, 425, 13, 288, 368, 1962, 690, 1339, 5411, 2573, 2 ]
return (this.transfer != null && (!this.transfer.isFinished()));
return (sskGenerator != null || (transfer != null && (!transfer.isFinished())));
public boolean isUpdating() { return (this.transfer != null && (!this.transfer.isFinished())); }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/7a2d60d4ee2fad3fa70e18567771956c4f63a956/Index.java/clean/src/thaw/plugins/index/Index.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 17858, 1435, 288, 202, 202, 2463, 261, 2211, 18, 13866, 480, 446, 597, 16051, 2211, 18, 13866, 18, 291, 10577, 1435, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 17858, 1435, 288, 202, 202, 2463, 261, 2211, 18, 13866, 480, 446, 597, 16051, 2211, 18, 13866, 18, 291, 10577, 1435, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ((b.getModifiers() & InputEvent.CTRL_MASK) != 0) {
if ((b.getModifiers() & InputEvent.CTRL_MASK) != 0 || (b.getModifiers() & InputEvent.ALT_MASK) != 0) {
public void boardHexMoused(BoardEvent b) { // ignore buttons other than 1 if (!client.isMyTurn() || (b.getModifiers() & MouseEvent.BUTTON1_MASK) == 0) { return; } // control pressed means a line of sight check. if ((b.getModifiers() & InputEvent.CTRL_MASK) != 0) { return; } // check for shifty goodness if (shiftheld != ((b.getModifiers() & MouseEvent.SHIFT_MASK) != 0)) { shiftheld = (b.getModifiers() & MouseEvent.SHIFT_MASK) != 0; } if (b.getType() == BoardEvent.BOARD_HEX_DRAGGED) { if (!b.getCoords().equals(client.game.board.lastCursor) || shiftheld || gear == Compute.GEAR_TURN) { client.game.board.cursor(b.getCoords()); // either turn or move if ( ce() != null && md != null ) { cmd = md.getAppended(currentMove(md.getFinalCoords(ce().getPosition(), ce().getFacing()), md.getFinalFacing(ce().getFacing()), b.getCoords())); client.bv.drawMovementData(ce(), cmd); } } } else if (b.getType() == BoardEvent.BOARD_HEX_CLICKED) { Coords moveto = b.getCoords(); client.bv.drawMovementData(ce(), cmd); md = new MovePath(cmd); client.game.board.select(b.getCoords()); if (shiftheld || gear == Compute.GEAR_TURN) { butDone.setLabel("Move"); return; } if (gear == Compute.GEAR_CHARGE) { // check if target is valid final Targetable target = this.chooseTarget( b.getCoords() ); if (target == null || target.equals(ce())) { client.doAlertDialog("Can't perform charge", "No target!"); clearAllMoves(); return; } // check if it's a valid charge ToHitData toHit = Compute.toHitCharge( client.game, cen, target, md); if (toHit.getValue() != ToHitData.IMPOSSIBLE) { // Determine how much damage the charger will take. int toAttacker = 0; if ( target.getTargetType() == Targetable.TYPE_ENTITY ) { Entity te = (Entity) target; toAttacker = Compute.getChargeDamageTakenBy(ce(),te); } else if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { Building bldg = client.game.board.getBuildingAt ( moveto ); toAttacker = Compute.getChargeDamageTakenBy(ce(),bldg); } // Ask the player if they want to charge. if ( client.doYesNoDialog ( "Charge " + target.getDisplayName() + "?", "To Hit: " + toHit.getValueAsString() + " (" + Compute.oddsAbove(toHit.getValue()) + "%) (" + toHit.getDesc() + ")" + "\nDamage to Target: "+ Compute.getChargeDamageFor(ce(),md.getHexesMoved())+ " (in 5pt clusters)"+ toHit.getTableDesc() + "\nDamage to Self: " + toAttacker + " (in 5pt clusters)" ) ) { // if they answer yes, charge the target. md.getStep(md.length()-1).setTarget(target); moveTo(md); } else { // else clear movement clearAllMoves(); }; return; } else { // if not valid, tell why client.doAlertDialog( "Can't perform charge", toHit.getDesc() ); clearAllMoves(); return; } } else if (gear == Compute.GEAR_DFA) { // check if target is valid final Targetable target = this.chooseTarget( b.getCoords() ); if (target == null || target.equals(ce())) { client.doAlertDialog("Can't perform D.F.A.", "No target!"); clearAllMoves(); return; } // check if it's a valid DFA ToHitData toHit = Compute.toHitDfa( client.game, cen, target, md); if (toHit.getValue() != ToHitData.IMPOSSIBLE) { // if yes, ask them if they want to DFA if ( client.doYesNoDialog ( "D.F.A. " + target.getDisplayName() + "?", "To Hit: " + toHit.getValueAsString() + " (" + Compute.oddsAbove(toHit.getValue()) + "%) (" + toHit.getDesc() + ")" + "\nDamage to Target: " + Compute.getDfaDamageFor(ce()) + " (in 5pt clusters)" + toHit.getTableDesc() + "\nDamage to Self: " + Compute.getDfaDamageTakenBy(ce()) + " (in 5pt clusters) (using Kick table)" ) ) { // if they answer yes, DFA the target md.getStep(md.length()-1).setTarget(target); moveTo(md); } else { // else clear movement clearAllMoves(); }; return; } else { // if not valid, tell why client.doAlertDialog( "Can't perform D.F.A.", toHit.getDesc() ); clearAllMoves(); return; } } butDone.setLabel("Move"); updateProneButtons(); updateRACButton(); updateLoadButtons(); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/1d395dba0a63b6a69c02584230d8f918859a5fb0/MovementDisplay.java/buggy/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11094, 7037, 49, 21414, 12, 22233, 1133, 324, 13, 288, 3639, 368, 2305, 9502, 1308, 2353, 404, 3639, 309, 16051, 2625, 18, 291, 12062, 15858, 1435, 747, 261, 70, 18, 588, 11948, 1435, 473, 17013, 1133, 18, 20068, 21, 67, 11704, 13, 422, 374, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 3325, 19504, 4696, 279, 980, 434, 272, 750, 866, 18, 540, 309, 14015, 70, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 23876, 48, 67, 11704, 13, 480, 374, 747, 261, 70, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 18255, 67, 11704, 13, 480, 374, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 866, 364, 4654, 93, 7494, 4496, 3639, 309, 261, 674, 430, 451, 488, 480, 14015, 70, 18, 588, 11948, 1435, 473, 17013, 1133, 18, 23191, 67, 11704, 13, 480, 374, 3719, 288, 5411, 699, 430, 451, 488, 273, 261, 70, 18, 588, 11948, 1435, 473, 17013, 1133, 18, 23191, 67, 11704, 13, 480, 374, 31, 3639, 289, 3639, 309, 261, 70, 18, 588, 559, 1435, 422, 17980, 1060, 1133, 18, 5315, 8085, 67, 20661, 67, 6331, 1781, 31602, 13, 288, 5411, 309, 16051, 70, 18, 588, 13089, 7675, 14963, 12, 2625, 18, 13957, 18, 3752, 18, 2722, 6688, 13, 747, 699, 430, 451, 488, 747, 30142, 422, 8155, 18, 7113, 985, 67, 56, 8521, 13, 288, 7734, 1004, 18, 13957, 18, 3752, 18, 9216, 12, 70, 18, 588, 13089, 10663, 7734, 368, 3344, 7005, 578, 3635, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11094, 7037, 49, 21414, 12, 22233, 1133, 324, 13, 288, 3639, 368, 2305, 9502, 1308, 2353, 404, 3639, 309, 16051, 2625, 18, 291, 12062, 15858, 1435, 747, 261, 70, 18, 588, 11948, 1435, 473, 17013, 1133, 18, 20068, 21, 67, 11704, 13, 422, 374, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 3325, 19504, 4696, 279, 980, 434, 272, 750, 866, 18, 540, 309, 14015, 70, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 23876, 48, 67, 11704, 13, 480, 374, 747, 261, 70, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 18255, 67, 11704, 13, 480, 374, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 866, 364, 4654, 93, 7494, 4496, 3639, 309, 2 ]
long time = (new Date().getTime() - date.getTime()); status = ", " + time + " ms";
final long end = System.currentTimeMillis(); final long elapsed = end - start; Util.addDatabaseTime(elapsed); status = ", " + elapsed + " ms";
public static ResultSet executeQuery(Connection jdbcConnection, String sql, String component) throws SQLException { checkTracing(); getQuerySemaphore().enter(); Statement statement = null; ResultSet resultSet = null; String status = "failed"; if (produceDebugOut == Boolean.TRUE) { RolapUtil.debugOut.print( component + ": executing sql [" + sql + "]"); RolapUtil.debugOut.flush(); } try { statement = jdbcConnection.createStatement(); Date date = new Date(); resultSet = statement.executeQuery(sql); long time = (new Date().getTime() - date.getTime()); status = ", " + time + " ms"; return resultSet; } catch (SQLException e) { status = ", failed (" + e + ")"; try { if (statement != null) { statement.close(); } } catch (SQLException e2) { // ignore } throw (SQLException) e.fillInStackTrace(); } finally { if (produceDebugOut == Boolean.TRUE) { RolapUtil.debugOut.println(status); } if (LOGGER.isDebugEnabled()) { LOGGER.debug(component + ": executing sql [" + sql + "]" + status); } getQuerySemaphore().leave(); } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/RolapUtil.java/clean/src/main/mondrian/rolap/RolapUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10842, 14304, 12, 1952, 16579, 1952, 16, 29159, 514, 1847, 16, 29159, 514, 1794, 13, 29159, 1216, 6483, 288, 3639, 866, 3403, 5621, 3639, 6041, 13185, 18837, 7675, 2328, 5621, 3639, 8056, 3021, 273, 446, 31, 3639, 10842, 12168, 273, 446, 31, 3639, 514, 1267, 273, 315, 7307, 14432, 3639, 309, 261, 11776, 311, 2829, 1182, 422, 3411, 18, 18724, 13, 288, 5411, 11714, 438, 1304, 18, 4148, 1182, 18, 1188, 12, 7734, 1794, 397, 6398, 11274, 1847, 8247, 397, 1847, 397, 9870, 1769, 5411, 11714, 438, 1304, 18, 4148, 1182, 18, 11330, 5621, 3639, 289, 3639, 775, 288, 5411, 3021, 273, 16579, 1952, 18, 2640, 3406, 5621, 5411, 2167, 1509, 273, 394, 2167, 5621, 5411, 12168, 273, 3021, 18, 8837, 1138, 12, 4669, 1769, 5411, 1525, 813, 273, 261, 2704, 2167, 7675, 588, 950, 1435, 300, 1509, 18, 588, 950, 10663, 5411, 1267, 273, 3104, 315, 397, 813, 397, 315, 4086, 14432, 5411, 327, 12168, 31, 3639, 289, 1044, 261, 23116, 425, 13, 288, 5411, 1267, 273, 3104, 2535, 7566, 397, 425, 397, 7310, 31, 5411, 775, 288, 7734, 309, 261, 11516, 480, 446, 13, 288, 10792, 3021, 18, 4412, 5621, 7734, 289, 5411, 289, 1044, 261, 23116, 425, 22, 13, 288, 7734, 368, 2305, 5411, 289, 5411, 604, 261, 23116, 13, 425, 18, 5935, 382, 6332, 5621, 3639, 289, 3095, 288, 5411, 309, 261, 11776, 311, 2829, 1182, 422, 3411, 18, 18724, 13, 288, 7734, 11714, 438, 1304, 18, 4148, 1182, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10842, 14304, 12, 1952, 16579, 1952, 16, 29159, 514, 1847, 16, 29159, 514, 1794, 13, 29159, 1216, 6483, 288, 3639, 866, 3403, 5621, 3639, 6041, 13185, 18837, 7675, 2328, 5621, 3639, 8056, 3021, 273, 446, 31, 3639, 10842, 12168, 273, 446, 31, 3639, 514, 1267, 273, 315, 7307, 14432, 3639, 309, 261, 11776, 311, 2829, 1182, 422, 3411, 18, 18724, 13, 288, 5411, 11714, 438, 1304, 18, 4148, 1182, 18, 1188, 12, 7734, 1794, 397, 6398, 11274, 1847, 8247, 397, 1847, 397, 9870, 1769, 5411, 11714, 438, 1304, 18, 4148, 1182, 18, 11330, 5621, 3639, 289, 3639, 775, 288, 5411, 3021, 273, 16579, 1952, 18, 2640, 3406, 5621, 5411, 2167, 1509, 273, 394, 2167, 5621, 5411, 2 ]
if (value == "true")
if (value.equalsIgnoreCase("true"))
public Settings() { try { String name; String value; String sql = "SELECT * FROM settings;"; CachedRowSet rs = SQLHelper.executeResultSet(sql); while (rs.next()) { name = rs.getString("name"); value = rs.getString("value"); if (name.equalsIgnoreCase("baseuri")) baseUri = value; else if (name.equalsIgnoreCase("fsPath")) fsPath = value; else if (name.equalsIgnoreCase("contextPath")) contextPath = value; else if (name.equalsIgnoreCase("siteEnable")) { if (value == "true") siteEnable = true; else siteEnable = false; } else if (name.equalsIgnoreCase("siteName")) siteName = value; else if (name.equalsIgnoreCase("siteAdmin")) siteAdmin = value; else if (name.equalsIgnoreCase("siteAdminEmail")) siteAdminEmail = value; else if (name.equalsIgnoreCase("siteBlog")) siteBlog = value; else if (name.equalsIgnoreCase("siteSearch")) { if (value == "true") siteSearch = true; else siteSearch = false; } else if (name.equalsIgnoreCase("siteDirectory")) { if (value == "true") siteDirectory = true; else siteDirectory = false; } else if (name.equalsIgnoreCase("siteRss")) { if (value == "true") siteRss = true; else siteRss = false; } else if (name.equalsIgnoreCase("mailEnable")) { if (value == "true") mailEnable = true; else mailEnable = false; } else if (name.equalsIgnoreCase("mailHost")) mailHost = value; else if (name.equalsIgnoreCase("mailPort")) mailPort = Integer.parseInt(value); else if (name.equalsIgnoreCase("mailUser")) mailUser = value; else if (name.equalsIgnoreCase("mailPass")) mailPass = value; else if (name.equalsIgnoreCase("mailFrom")) mailFrom = value; else if (name.equalsIgnoreCase("mailSubject")) mailSubject = value; else if (name.equalsIgnoreCase("commentEnable")) { if (value == "true") commentEnable = true; else commentEnable = false; } else if (name.equalsIgnoreCase("commentMailEnable")) { if (value == "true") commentMailEnable = true; else commentMailEnable = false; } else if (name.equalsIgnoreCase("commentEnableAnonymous")) { if (value == "true") mailEnable = true; else mailEnable = false; } else if (name.equalsIgnoreCase("tzOffset")) tzOffset = Integer.parseInt(value); else if (name.equalsIgnoreCase("tzName")) tzName = value; else if (name.equalsIgnoreCase("tzLocalize")) { if (value == "true") tzLocalize = true; else tzLocalize = false; } else if (name.equalsIgnoreCase("tzUseGMT")) { if (value == "true") tzUseGMT = true; else tzUseGMT = false; } else if (name.equalsIgnoreCase("userAllowNew")) { if (value == "true") userAllowNew = true; else userAllowNew = false; } } rs.close(); } catch (Exception e) { System.out.println("Settings: " + e.getMessage()); } }
51288 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51288/abb02797f3d1e6d66966e6157fb70a03b8e33681/Settings.java/clean/src/com/justjournal/core/Settings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8709, 1435, 288, 3639, 775, 288, 5411, 514, 508, 31, 5411, 514, 460, 31, 5411, 514, 1847, 273, 315, 4803, 380, 4571, 1947, 4868, 31, 5411, 15771, 1999, 694, 3597, 273, 3063, 2276, 18, 8837, 13198, 12, 4669, 1769, 5411, 1323, 261, 5453, 18, 4285, 10756, 288, 7734, 508, 273, 3597, 18, 588, 780, 2932, 529, 8863, 7734, 460, 273, 3597, 18, 588, 780, 2932, 1132, 8863, 7734, 309, 261, 529, 18, 14963, 5556, 2932, 1969, 1650, 6, 3719, 10792, 23418, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 2556, 743, 6, 3719, 10792, 2662, 743, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 2472, 743, 6, 3719, 10792, 23154, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 4256, 8317, 6, 3719, 288, 10792, 309, 261, 1132, 18, 14963, 5556, 2932, 3767, 6, 3719, 13491, 2834, 8317, 273, 638, 31, 10792, 469, 13491, 2834, 8317, 273, 629, 31, 7734, 289, 469, 309, 261, 529, 18, 14963, 5556, 2932, 4256, 461, 6, 3719, 10792, 27712, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 4256, 4446, 6, 3719, 10792, 2834, 4446, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 4256, 4446, 4134, 6, 3719, 10792, 2834, 4446, 4134, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 4256, 24623, 6, 3719, 10792, 2834, 24623, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8709, 1435, 288, 3639, 775, 288, 5411, 514, 508, 31, 5411, 514, 460, 31, 5411, 514, 1847, 273, 315, 4803, 380, 4571, 1947, 4868, 31, 5411, 15771, 1999, 694, 3597, 273, 3063, 2276, 18, 8837, 13198, 12, 4669, 1769, 5411, 1323, 261, 5453, 18, 4285, 10756, 288, 7734, 508, 273, 3597, 18, 588, 780, 2932, 529, 8863, 7734, 460, 273, 3597, 18, 588, 780, 2932, 1132, 8863, 7734, 309, 261, 529, 18, 14963, 5556, 2932, 1969, 1650, 6, 3719, 10792, 23418, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 2556, 743, 6, 3719, 10792, 2662, 743, 273, 460, 31, 7734, 469, 309, 261, 529, 18, 14963, 5556, 2932, 2472, 743, 6, 3719, 10792, 2 ]
RubySymbol classname = RubySymbol.newSymbol(runtime, getMetaClass().getName());
RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName());
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(runtime, getMetaClass().getName()); output.dumpObject(classname); if (getInstanceVariables() == null) { output.dumpInt(0); } else { output.dumpInt(getInstanceVariables().size()); Iterator iter = instanceVariableNames(); while (iter.hasNext()) { String name = (String) iter.next(); IRubyObject value = getInstanceVariable(name); output.dumpObject(RubySymbol.newSymbol(runtime, name)); output.dumpObject(value); } } }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 876, 18, 2626, 2668, 83, 8284, 3639, 19817, 5335, 7479, 273, 19817, 5335, 18, 2704, 5335, 12, 588, 5576, 9334, 11312, 797, 7675, 17994, 10663, 3639, 876, 18, 8481, 921, 12, 18340, 1769, 3639, 309, 261, 588, 1442, 6158, 1435, 422, 446, 13, 288, 5411, 876, 18, 8481, 1702, 12, 20, 1769, 3639, 289, 469, 288, 5411, 876, 18, 8481, 1702, 12, 588, 1442, 6158, 7675, 1467, 10663, 5411, 4498, 1400, 273, 791, 3092, 1557, 5621, 5411, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 7734, 514, 508, 273, 261, 780, 13, 1400, 18, 4285, 5621, 7734, 15908, 10340, 921, 460, 273, 3694, 3092, 12, 529, 1769, 7734, 876, 18, 8481, 921, 12, 54, 10340, 5335, 18, 2704, 5335, 12, 9448, 16, 508, 10019, 7734, 876, 18, 8481, 921, 12, 1132, 1769, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 876, 18, 2626, 2668, 83, 8284, 3639, 19817, 5335, 7479, 273, 19817, 5335, 18, 2704, 5335, 12, 588, 5576, 9334, 11312, 797, 7675, 17994, 10663, 3639, 876, 18, 8481, 921, 12, 18340, 1769, 3639, 309, 261, 588, 1442, 6158, 1435, 422, 446, 13, 288, 5411, 876, 18, 8481, 1702, 12, 20, 1769, 3639, 289, 469, 288, 5411, 876, 18, 8481, 1702, 12, 588, 1442, 6158, 7675, 1467, 10663, 5411, 4498, 1400, 273, 791, 3092, 1557, 5621, 5411, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 7734, 514, 508, 273, 261, 780, 13, 1400, 18, 4285, 5621, 7734, 15908, 10340, 921, 460, 2 ]
fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier);
if (formatspecifier == null) { this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier(); fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier); } else { fsBackup = null; }
public FormatSpecifierDialog(FormatSpecifier formatspecifier) { super(); this.formatspecifier = formatspecifier; fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier); shell = new Shell(Display.getCurrent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; shell.setLayout(new FillLayout()); placeComponents(); shell.setText("Format Specifier Dialog:"); shell.setSize(332, 255); shell.setLocation(Display.getCurrent().getClientArea().width / 2 - (shell.getSize().x / 2), Display .getCurrent().getClientArea().height / 2 - (shell.getSize().y / 2)); shell.open(); while (!shell.isDisposed()) { if (!shell.getDisplay().readAndDispatch()) { shell.getDisplay().sleep(); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/258bad0d502f0759055374875005f9978172c4d7/FormatSpecifierDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4077, 21416, 6353, 12, 1630, 21416, 740, 2793, 1251, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 2139, 2793, 1251, 273, 740, 2793, 1251, 31, 3639, 309, 261, 2139, 2793, 1251, 422, 446, 13, 288, 333, 18, 2139, 2793, 1251, 273, 3601, 1733, 18, 73, 13341, 18, 2640, 1854, 1630, 21416, 5621, 2662, 6248, 273, 261, 1630, 21416, 13, 512, 3644, 1304, 18, 3530, 12, 2211, 18, 2139, 2793, 1251, 1769, 289, 469, 288, 2662, 6248, 273, 446, 31, 289, 3639, 5972, 273, 394, 19433, 12, 4236, 18, 588, 3935, 9334, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 25039, 67, 6720, 1013, 1769, 3639, 7145, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 3639, 3068, 3744, 18, 2107, 3380, 273, 576, 31, 3639, 5972, 18, 542, 3744, 12, 2704, 14192, 3744, 10663, 3639, 3166, 7171, 5621, 3639, 5972, 18, 542, 1528, 2932, 1630, 4185, 1251, 17242, 2773, 1769, 3639, 5972, 18, 542, 1225, 12, 23, 1578, 16, 4561, 1769, 3639, 5972, 18, 542, 2735, 12, 4236, 18, 588, 3935, 7675, 588, 1227, 5484, 7675, 2819, 342, 576, 300, 261, 10304, 18, 588, 1225, 7675, 92, 342, 576, 3631, 9311, 5411, 263, 588, 3935, 7675, 588, 1227, 5484, 7675, 4210, 5411, 342, 576, 300, 261, 10304, 18, 588, 1225, 7675, 93, 342, 576, 10019, 3639, 5972, 18, 3190, 5621, 3639, 1323, 16051, 10304, 18, 291, 1669, 7423, 10756, 3639, 288, 5411, 309, 16051, 10304, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4077, 21416, 6353, 12, 1630, 21416, 740, 2793, 1251, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 2139, 2793, 1251, 273, 740, 2793, 1251, 31, 3639, 309, 261, 2139, 2793, 1251, 422, 446, 13, 288, 333, 18, 2139, 2793, 1251, 273, 3601, 1733, 18, 73, 13341, 18, 2640, 1854, 1630, 21416, 5621, 2662, 6248, 273, 261, 1630, 21416, 13, 512, 3644, 1304, 18, 3530, 12, 2211, 18, 2139, 2793, 1251, 1769, 289, 469, 288, 2662, 6248, 273, 446, 31, 289, 3639, 5972, 273, 394, 19433, 12, 4236, 18, 588, 3935, 9334, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 25039, 67, 6720, 1013, 1769, 3639, 7145, 2 ]
script.getCommandLineArgs());
script.buildCommandline().getCommandline());
public void testGetCommandLineArgs_Debug() throws CruiseControlException { String[] resultDebug = { "java", "-classpath", script.getAntLauncherJarLocation(UNIX_PATH, !IS_WINDOWS), "org.apache.tools.ant.launch.Launcher", "-lib", UNIX_PATH, "-logger", "org.apache.tools.ant.XmlLogger", "-logfile", "log.xml", "-debug", "-Dlabel=200.1.23", "-buildfile", "buildfile", "target" }; script.setLoggerClassName(AntBuilder.DEFAULT_LOGGER); script.setBuildProperties(properties); script.setUseLogger(USE_LOGGER); script.setWindows(!IS_WINDOWS); script.setUseScript(!USE_SCRIPT); script.setUseDebug(true); script.setSystemClassPath(UNIX_PATH); TestUtil.assertArray( "resultDebug", resultDebug, script.getCommandLineArgs()); }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/d960a015bd7e14db7155fda4eacc8f3e9a4aff81/AntScriptTest.java/clean/main/test/net/sourceforge/cruisecontrol/builders/AntScriptTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 21391, 2615, 67, 2829, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 514, 8526, 563, 2829, 273, 5411, 288, 7734, 315, 6290, 3113, 7734, 3701, 26302, 3113, 7734, 2728, 18, 588, 14925, 28820, 10813, 2735, 12, 10377, 60, 67, 4211, 16, 401, 5127, 67, 31874, 3631, 7734, 315, 3341, 18, 19211, 18, 6642, 18, 970, 18, 20738, 18, 28820, 3113, 7734, 3701, 2941, 3113, 7734, 23160, 67, 4211, 16, 7734, 3701, 4901, 3113, 7734, 315, 3341, 18, 19211, 18, 6642, 18, 970, 18, 4432, 3328, 3113, 7734, 3701, 28806, 3113, 7734, 315, 1330, 18, 2902, 3113, 7734, 3701, 4148, 3113, 7734, 3701, 40, 1925, 33, 6976, 18, 21, 18, 4366, 3113, 7734, 3701, 3510, 768, 3113, 7734, 315, 3510, 768, 3113, 7734, 315, 3299, 6, 289, 31, 3639, 2728, 18, 542, 3328, 3834, 12, 14925, 1263, 18, 5280, 67, 8757, 1769, 3639, 2728, 18, 542, 3116, 2297, 12, 4738, 1769, 3639, 2728, 18, 542, 3727, 3328, 12, 8001, 67, 8757, 1769, 3639, 2728, 18, 542, 10399, 12, 5, 5127, 67, 31874, 1769, 3639, 2728, 18, 542, 3727, 3651, 12, 5, 8001, 67, 10885, 1769, 3639, 2728, 18, 542, 3727, 2829, 12, 3767, 1769, 3639, 2728, 18, 542, 3163, 22158, 12, 10377, 60, 67, 4211, 1769, 3639, 7766, 1304, 18, 11231, 1076, 12, 7734, 315, 2088, 2829, 3113, 7734, 563, 2829, 16, 7734, 2728, 18, 3510, 2189, 1369, 7675, 588, 2189, 1369, 10663, 5397, 289, 2, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 21391, 2615, 67, 2829, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 514, 8526, 563, 2829, 273, 5411, 288, 7734, 315, 6290, 3113, 7734, 3701, 26302, 3113, 7734, 2728, 18, 588, 14925, 28820, 10813, 2735, 12, 10377, 60, 67, 4211, 16, 401, 5127, 67, 31874, 3631, 7734, 315, 3341, 18, 19211, 18, 6642, 18, 970, 18, 20738, 18, 28820, 3113, 7734, 3701, 2941, 3113, 7734, 23160, 67, 4211, 16, 7734, 3701, 4901, 3113, 7734, 315, 3341, 18, 19211, 18, 6642, 18, 970, 18, 4432, 3328, 3113, 7734, 3701, 28806, 3113, 7734, 315, 1330, 18, 2902, 3113, 7734, 3701, 4148, 3113, 7734, 3701, 40, 1925, 33, 6976, 18, 21, 18, 4366, 3113, 7734, 3701, 2 ]
images = control.getSystemImages(); break;
images = agentCtrl.getSystemImages(); break;
private void showImages() { int selectedIndex = view.getImagesSelections().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CreateDatasetImagesPane.IMAGES_IMPORTED: images = control.getImportedImages(); break; case CreateDatasetImagesPane.IMAGES_USED: images = control.getUsedImages(); break; case CreateDatasetImagesPane.IMAGES_GROUP: images = control.getGroupImages(); break; case CreateDatasetImagesPane.IMAGES_SYSTEM: images = control.getSystemImages(); break; } if (images == null || images.size() == 0) return; view.showImages(images); } }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 8946, 1435, 565, 288, 3639, 509, 29244, 273, 1476, 18, 588, 8946, 29913, 7675, 588, 7416, 1016, 5621, 3639, 309, 261, 8109, 1016, 480, 4421, 1016, 13, 288, 5411, 4421, 1016, 273, 29244, 31, 5411, 987, 4602, 273, 446, 31, 5411, 1620, 261, 8109, 1016, 13, 288, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 30667, 30, 10792, 4602, 273, 3325, 18, 588, 24934, 8946, 5621, 898, 31, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 20093, 30, 10792, 4602, 273, 3325, 18, 588, 6668, 8946, 5621, 898, 31, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 8468, 30, 10792, 4602, 273, 3325, 18, 588, 1114, 8946, 5621, 898, 31, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 14318, 30, 10792, 4602, 273, 4040, 12418, 18, 588, 3163, 8946, 5621, 898, 31, 5411, 289, 5411, 309, 261, 7369, 422, 446, 747, 4602, 18, 1467, 1435, 422, 374, 13, 327, 31, 5411, 1476, 18, 4500, 8946, 12, 7369, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 8946, 1435, 565, 288, 3639, 509, 29244, 273, 1476, 18, 588, 8946, 29913, 7675, 588, 7416, 1016, 5621, 3639, 309, 261, 8109, 1016, 480, 4421, 1016, 13, 288, 5411, 4421, 1016, 273, 29244, 31, 5411, 987, 4602, 273, 446, 31, 5411, 1620, 261, 8109, 1016, 13, 288, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 30667, 30, 10792, 4602, 273, 3325, 18, 588, 24934, 8946, 5621, 898, 31, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 20093, 30, 10792, 4602, 273, 3325, 18, 588, 6668, 8946, 5621, 898, 31, 7734, 648, 1788, 10656, 8946, 8485, 18, 13603, 55, 67, 8468, 30, 10792, 4602, 273, 3325, 18, 588, 1114, 8946, 5621, 898, 2 ]
public void reset (double val)
public void reset ()
public void reset (double val) { reset(); includeValue(val); }
37458 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37458/12f84895c894eaad38cc5c9b1a4c314dc5833b49/Population.java/buggy/src/main/omr/math/Population.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 1832, 565, 288, 3639, 2715, 5621, 3639, 2341, 620, 12, 1125, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 1832, 565, 288, 3639, 2715, 5621, 3639, 2341, 620, 12, 1125, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertEquals("0", testDoc.getAttAnyType().getStringValue());
assertEquals(BigInteger.ZERO, testDoc.getAttAnyType().changeType(XmlInteger.type));
public void testAnyType() throws Throwable { GlobalAttrTypeT testDoc = GlobalAttrTypeDocDocument.Factory.parse("<pre:GlobalAttrTypeDoc" + " xmlns:pre=\"http://xbean/scomp/attribute/GlobalAttrType\" " + " pre:attAnyType=\" 1 \" " + " />").getGlobalAttrTypeDoc(); try { assertTrue(testDoc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } assertEquals(" 1 ", testDoc.getAttAnyType().getStringValue()); try { assertTrue(testDoc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } XmlInteger ival = XmlInteger.Factory.newInstance(); ival.setBigIntegerValue(BigInteger.ZERO); testDoc.setAttAnyType(ival); assertEquals("0", testDoc.getAttAnyType().getStringValue()); try { assertTrue(testDoc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } XmlString sval = XmlString.Factory.newInstance(); sval.setStringValue("foobar"); testDoc.setAttAnyType(sval); assertEquals("foobar", testDoc.getAttAnyType()); try { assertTrue(testDoc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } XmlDouble fval = XmlDouble.Factory.newInstance(); fval.setDoubleValue(-0.01); testDoc.setAttAnyType(fval); assertEquals("-.01", testDoc.getAttAnyType().getStringValue()); try { assertTrue(testDoc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/76b9d68187e37daece87ec597633567f635cb7d5/GlobalAttrType.java/clean/v2/test/src/scomp/attributes/detailed/GlobalAttrType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2961, 559, 1435, 1216, 4206, 288, 3639, 8510, 3843, 559, 56, 1842, 1759, 273, 7734, 8510, 3843, 559, 1759, 2519, 18, 1733, 18, 2670, 2932, 32, 1484, 30, 5160, 3843, 559, 1759, 6, 397, 7734, 315, 12302, 30, 1484, 5189, 2505, 2207, 92, 14496, 19, 87, 2919, 19, 4589, 19, 5160, 3843, 559, 2412, 315, 397, 7734, 315, 675, 30, 4558, 2961, 559, 5189, 404, 1239, 315, 397, 7734, 315, 28505, 2934, 588, 5160, 3843, 559, 1759, 5621, 3639, 775, 288, 5411, 1815, 5510, 12, 3813, 1759, 18, 5662, 12, 5662, 1320, 10019, 3639, 289, 3639, 1044, 261, 15155, 268, 13, 288, 5411, 2405, 4229, 5621, 5411, 604, 268, 31, 3639, 289, 3639, 1815, 8867, 2932, 404, 3104, 1842, 1759, 18, 588, 3075, 2961, 559, 7675, 588, 19733, 10663, 3639, 775, 288, 5411, 1815, 5510, 12, 3813, 1759, 18, 5662, 12, 5662, 1320, 10019, 3639, 289, 3639, 1044, 261, 15155, 268, 13, 288, 5411, 2405, 4229, 5621, 5411, 604, 268, 31, 3639, 289, 3639, 5714, 4522, 277, 1125, 273, 5714, 4522, 18, 1733, 18, 2704, 1442, 5621, 3639, 277, 1125, 18, 542, 24198, 620, 12, 24198, 18, 24968, 1769, 3639, 1842, 1759, 18, 542, 3075, 2961, 559, 12, 5162, 1769, 3639, 1815, 8867, 12, 24198, 18, 24968, 16, 1842, 1759, 18, 588, 3075, 2961, 559, 7675, 3427, 559, 12, 4432, 4522, 18, 723, 10019, 3639, 775, 288, 5411, 1815, 5510, 12, 3813, 1759, 18, 5662, 12, 5662, 1320, 10019, 3639, 289, 3639, 1044, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2961, 559, 1435, 1216, 4206, 288, 3639, 8510, 3843, 559, 56, 1842, 1759, 273, 7734, 8510, 3843, 559, 1759, 2519, 18, 1733, 18, 2670, 2932, 32, 1484, 30, 5160, 3843, 559, 1759, 6, 397, 7734, 315, 12302, 30, 1484, 5189, 2505, 2207, 92, 14496, 19, 87, 2919, 19, 4589, 19, 5160, 3843, 559, 2412, 315, 397, 7734, 315, 675, 30, 4558, 2961, 559, 5189, 404, 1239, 315, 397, 7734, 315, 28505, 2934, 588, 5160, 3843, 559, 1759, 5621, 3639, 775, 288, 5411, 1815, 5510, 12, 3813, 1759, 18, 5662, 12, 5662, 1320, 10019, 3639, 289, 3639, 1044, 261, 15155, 268, 13, 288, 5411, 2405, 4229, 5621, 5411, 604, 268, 31, 3639, 289, 3639, 1815, 8867, 2 ]
UnitLPCData()
public UnitLPCData()
UnitLPCData() { }
18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/9fdd55f99aad971d435b39a37f4d00fa2e6cee88/ClusterUnitConcatenator.java/clean/java/de/dfki/lt/mary/unitselection/clunits/ClusterUnitConcatenator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 8380, 48, 3513, 751, 1435, 3639, 288, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 8380, 48, 3513, 751, 1435, 3639, 288, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void testSerialize() { try { soapEnvelope.serialize(output);
public void testSerialize() throws Exception { XMLStreamWriter output = XMLOutputFactory.newInstance(). createXMLStreamWriter(System.out); soapEnvelope.serialize(output);
public void testSerialize() { try { soapEnvelope.serialize(output);// System.out.println("");// System.out.println("======================="); soapEnvelope.serializeAndConsume(output); } catch (XMLStreamException e) { log.info(e.getMessage()); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/3f8497c663dd9f57de953620be2a498d0e15d1b5/SOAP11SerializerTest.java/clean/modules/xml/test/org/apache/axis2/soap/impl/llom/soap11/SOAP11SerializerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10343, 1435, 288, 3639, 775, 288, 5411, 9930, 10862, 18, 6288, 12, 2844, 1769, 759, 5411, 2332, 18, 659, 18, 8222, 2932, 8863, 759, 5411, 2332, 18, 659, 18, 8222, 2932, 2429, 894, 631, 1546, 1769, 5411, 9930, 10862, 18, 6288, 1876, 19253, 12, 2844, 1769, 3639, 289, 1044, 261, 4201, 1228, 503, 425, 13, 288, 5411, 613, 18, 1376, 12, 73, 18, 24906, 10663, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10343, 1435, 288, 3639, 775, 288, 5411, 9930, 10862, 18, 6288, 12, 2844, 1769, 759, 5411, 2332, 18, 659, 18, 8222, 2932, 8863, 759, 5411, 2332, 18, 659, 18, 8222, 2932, 2429, 894, 631, 1546, 1769, 5411, 9930, 10862, 18, 6288, 1876, 19253, 12, 2844, 1769, 3639, 289, 1044, 261, 4201, 1228, 503, 425, 13, 288, 5411, 613, 18, 1376, 12, 73, 18, 24906, 10663, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void initializeVariables () { line = 1; column = 0;
private void initializeVariables() { line = 1; column = 0; dataBufferPos = 0; dataBuffer = new char[DATA_BUFFER_INITIAL]; nameBufferPos = 0; nameBuffer = new char[NAME_BUFFER_INITIAL];
private void initializeVariables () { // First line line = 1; column = 0; // Set up the buffers for data and names dataBufferPos = 0; dataBuffer = new char [DATA_BUFFER_INITIAL]; nameBufferPos = 0; nameBuffer = new char [NAME_BUFFER_INITIAL]; // Set up the DTD hash tables elementInfo = new Hashtable (); entityInfo = new Hashtable (); notationInfo = new Hashtable (); skippedPE = false; // Set up the variables for the current // element context. currentElement = null; currentElementContent = CONTENT_UNDECLARED; // Set up the input variables sourceType = INPUT_NONE; inputStack = new Stack (); entityStack = new Stack (); externalEntity = null; tagAttributePos = 0; tagAttributes = new String [100]; rawReadBuffer = new byte [READ_BUFFER_MAX]; readBufferOverflow = -1; scratch = new InputSource (); inLiteral = false; expandPE = false; peIsError = false; doReport = false; inCDATA = false; symbolTable = new Object [SYMBOL_TABLE_LENGTH][]; }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 6158, 1832, 565, 288, 202, 759, 5783, 980, 202, 1369, 273, 404, 31, 202, 2827, 273, 374, 31, 202, 759, 1000, 731, 326, 9664, 364, 501, 471, 1257, 202, 892, 1892, 1616, 273, 374, 31, 202, 892, 1892, 273, 394, 1149, 306, 4883, 67, 11302, 67, 28497, 15533, 202, 529, 1892, 1616, 273, 374, 31, 202, 529, 1892, 273, 394, 1149, 306, 1985, 67, 11302, 67, 28497, 15533, 202, 759, 1000, 731, 326, 10696, 40, 1651, 4606, 202, 2956, 966, 273, 394, 18559, 261, 1769, 202, 1096, 966, 273, 394, 18559, 261, 1769, 202, 1819, 966, 273, 394, 18559, 261, 1769, 202, 25346, 1423, 273, 629, 31, 202, 759, 1000, 731, 326, 3152, 364, 326, 783, 202, 759, 930, 819, 18, 202, 2972, 1046, 273, 446, 31, 202, 2972, 1046, 1350, 273, 12577, 67, 2124, 1639, 15961, 5879, 31, 202, 759, 1000, 731, 326, 810, 3152, 202, 3168, 559, 273, 12943, 67, 9826, 31, 202, 2630, 2624, 273, 394, 7283, 261, 1769, 202, 1096, 2624, 273, 394, 7283, 261, 1769, 202, 9375, 1943, 273, 446, 31, 202, 2692, 1499, 1616, 273, 374, 31, 202, 2692, 2498, 273, 394, 514, 306, 6625, 15533, 202, 1899, 1994, 1892, 273, 394, 1160, 306, 6949, 67, 11302, 67, 6694, 15533, 202, 896, 1892, 15526, 273, 300, 21, 31, 202, 24638, 505, 273, 394, 23699, 261, 1769, 202, 267, 6177, 273, 629, 31, 202, 12320, 1423, 273, 629, 31, 202, 347, 2520, 668, 273, 629, 31, 202, 2896, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 6158, 1832, 565, 288, 202, 759, 5783, 980, 202, 1369, 273, 404, 31, 202, 2827, 273, 374, 31, 202, 759, 1000, 731, 326, 9664, 364, 501, 471, 1257, 202, 892, 1892, 1616, 273, 374, 31, 202, 892, 1892, 273, 394, 1149, 306, 4883, 67, 11302, 67, 28497, 15533, 202, 529, 1892, 1616, 273, 374, 31, 202, 529, 1892, 273, 394, 1149, 306, 1985, 67, 11302, 67, 28497, 15533, 202, 759, 1000, 731, 326, 10696, 40, 1651, 4606, 202, 2956, 966, 273, 394, 18559, 261, 1769, 202, 1096, 966, 273, 394, 18559, 261, 1769, 202, 1819, 966, 273, 394, 18559, 261, 1769, 202, 25346, 1423, 273, 629, 31, 202, 759, 1000, 731, 326, 3152, 364, 326, 2 ]
if (summary != null && summaryType.equals(SummaryType.NORMAL_SUMMARY) && shift != null && lesson != null && summary.getShift().equals(shift)
if (summary != null && summaryType != null && shift != null && lesson != null && summaryType.equals(SummaryType.NORMAL_SUMMARY) && summary.getShift().equals(shift)
public Object provide(Object source, Object currentValue) { SummariesManagementBean bean = (SummariesManagementBean) source; Lesson lesson = bean.getLesson(); Shift shift = bean.getShift(); SummaryType summaryType = bean.getSummaryType(); Summary summary = bean.getSummary(); List<YearMonthDay> possibleSummaryDates = new ArrayList<YearMonthDay>(); if (lesson != null && summaryType.equals(SummaryType.NORMAL_SUMMARY)) { possibleSummaryDates.addAll(lesson.getPossibleDatesToInsertSummary()); } if (summary != null && summaryType.equals(SummaryType.NORMAL_SUMMARY) && shift != null && lesson != null && summary.getShift().equals(shift) && summary.getLesson().equals(lesson)) { possibleSummaryDates.add(bean.getSummaryDate()); } Collections.reverse(possibleSummaryDates); return possibleSummaryDates; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/80c5755405a8310b42bc14c5b5fd7963757e560e/PossibleDatesToSummariesManagementProvider.java/buggy/src/net/sourceforge/fenixedu/presentationTier/renderers/providers/PossibleDatesToSummariesManagementProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5615, 12, 921, 1084, 16, 1033, 14794, 13, 288, 202, 15944, 10998, 3381, 3931, 273, 261, 15944, 10998, 3381, 13, 1084, 31, 202, 15313, 265, 22766, 273, 3931, 18, 588, 15313, 265, 5621, 202, 10544, 4654, 273, 3931, 18, 588, 10544, 5621, 202, 4733, 559, 4916, 559, 273, 3931, 18, 588, 4733, 559, 5621, 202, 4733, 4916, 273, 3931, 18, 588, 4733, 5621, 202, 682, 32, 5593, 5445, 4245, 34, 3323, 4733, 15578, 273, 394, 2407, 32, 5593, 5445, 4245, 34, 5621, 202, 430, 261, 23818, 480, 446, 597, 4916, 559, 18, 14963, 12, 4733, 559, 18, 15480, 67, 14020, 11293, 3719, 288, 202, 565, 3323, 4733, 15578, 18, 1289, 1595, 12, 23818, 18, 588, 13576, 15578, 774, 4600, 4733, 10663, 202, 97, 202, 430, 261, 7687, 480, 446, 597, 4916, 559, 18, 14963, 12, 4733, 559, 18, 15480, 67, 14020, 11293, 13, 597, 4654, 480, 446, 202, 202, 10, 10, 22766, 480, 446, 597, 4916, 18, 588, 10544, 7675, 14963, 12, 4012, 13, 202, 202, 10, 10, 4916, 18, 588, 15313, 265, 7675, 14963, 12, 23818, 3719, 288, 202, 565, 3323, 4733, 15578, 18, 1289, 12, 14496, 18, 588, 4733, 1626, 10663, 202, 97, 202, 15150, 18, 9845, 12, 12708, 4733, 15578, 1769, 202, 2463, 3323, 4733, 15578, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5615, 12, 921, 1084, 16, 1033, 14794, 13, 288, 202, 15944, 10998, 3381, 3931, 273, 261, 15944, 10998, 3381, 13, 1084, 31, 202, 15313, 265, 22766, 273, 3931, 18, 588, 15313, 265, 5621, 202, 10544, 4654, 273, 3931, 18, 588, 10544, 5621, 202, 4733, 559, 4916, 559, 273, 3931, 18, 588, 4733, 559, 5621, 202, 4733, 4916, 273, 3931, 18, 588, 4733, 5621, 202, 682, 32, 5593, 5445, 4245, 34, 3323, 4733, 15578, 273, 394, 2407, 32, 5593, 5445, 4245, 34, 5621, 202, 430, 261, 23818, 480, 446, 597, 4916, 559, 18, 14963, 12, 4733, 559, 18, 15480, 67, 14020, 11293, 3719, 288, 202, 565, 3323, 4733, 15578, 18, 1289, 1595, 12, 23818, 18, 588, 13576, 2 ]
public void setProperties(String prefix, Properties props) { // super.setProperties(prefix, props); setPropertyPrefix(prefix); String realPrefix = PropUtils.getScopedPropertyPrefix(this); /// From Layer.java String prettyName = realPrefix + PrettyNameProperty; String defaultName = getName(); if (defaultName == null) { defaultName = "Anonymous"; } setName(props.getProperty(prettyName, defaultName)); setAddToBeanContext(PropUtils.booleanFromProperties(props, realPrefix + AddToBeanContextProperty, addToBeanContext)); autoPalette = PropUtils.booleanFromProperties(props, realPrefix + AutoPaletteProperty, autoPalette); /// end from Layer.java setSpatialIndexes(realPrefix, props); shadowX = LayerUtils.intFromProperties(props, realPrefix + shadowXProperty, 0); shadowY = LayerUtils.intFromProperties(props, realPrefix + shadowYProperty, 0); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/edbeffa6fb72058fbd5312d50c86c88fa8d47f6b/MultiShapeLayer.java/clean/src/openmap/com/bbn/openmap/layer/shape/MultiShapeLayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23126, 12, 780, 1633, 16, 6183, 3458, 13, 288, 202, 759, 2240, 18, 542, 2297, 12, 3239, 16, 3458, 1769, 202, 542, 1396, 2244, 12, 3239, 1769, 202, 780, 2863, 2244, 273, 10484, 1989, 18, 588, 25470, 1396, 2244, 12, 2211, 1769, 202, 28111, 6338, 12112, 18, 6290, 202, 780, 7517, 461, 273, 2863, 2244, 397, 22328, 461, 1396, 31, 202, 202, 780, 805, 461, 273, 1723, 5621, 225, 202, 430, 261, 1886, 461, 422, 446, 13, 288, 202, 565, 805, 461, 273, 315, 18792, 14432, 202, 97, 202, 542, 461, 12, 9693, 18, 588, 1396, 12, 19073, 461, 16, 805, 461, 10019, 202, 542, 986, 774, 3381, 1042, 12, 4658, 1989, 18, 6494, 1265, 2297, 12, 9693, 16, 2863, 2244, 397, 1436, 774, 3381, 1042, 1396, 16, 9604, 3381, 1042, 10019, 202, 6079, 25863, 273, 10484, 1989, 18, 6494, 1265, 2297, 12, 9693, 16, 2863, 2244, 397, 8064, 25863, 1396, 16, 3656, 25863, 1769, 202, 28111, 679, 628, 12112, 18, 6290, 202, 542, 24648, 8639, 12, 7688, 2244, 16, 3458, 1769, 202, 19119, 60, 273, 12112, 1989, 18, 474, 1265, 2297, 12, 9693, 16, 2863, 2244, 397, 10510, 60, 1396, 16, 374, 1769, 202, 19119, 61, 273, 12112, 1989, 18, 474, 1265, 2297, 12, 9693, 16, 2863, 2244, 397, 10510, 61, 1396, 16, 374, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23126, 12, 780, 1633, 16, 6183, 3458, 13, 288, 202, 759, 2240, 18, 542, 2297, 12, 3239, 16, 3458, 1769, 202, 542, 1396, 2244, 12, 3239, 1769, 202, 780, 2863, 2244, 273, 10484, 1989, 18, 588, 25470, 1396, 2244, 12, 2211, 1769, 202, 28111, 6338, 12112, 18, 6290, 202, 780, 7517, 461, 273, 2863, 2244, 397, 22328, 461, 1396, 31, 202, 202, 780, 805, 461, 273, 1723, 5621, 225, 202, 430, 261, 1886, 461, 422, 446, 13, 288, 202, 565, 805, 461, 273, 315, 18792, 14432, 202, 97, 202, 542, 461, 12, 9693, 18, 588, 1396, 12, 19073, 461, 16, 805, 461, 10019, 202, 542, 986, 774, 3381, 1042, 12, 4658, 1989, 18, 6494, 1265, 2297, 2 ]
isEligibleForTargetingPhase( entity ) )
entity.isEligibleForTargetingPhase() )
public boolean accept (Entity entity) { if ( owner.equals( entity.getOwner() ) && isEligibleForTargetingPhase( entity ) ) return true; return false; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c1a2b4330d7bee61044ee288aeca7685a9822fc3/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11794, 1071, 1250, 2791, 261, 1943, 1522, 13, 288, 27573, 309, 261, 3410, 18, 14963, 12, 1522, 18, 588, 5541, 1435, 262, 597, 19694, 1522, 18, 291, 4958, 16057, 1290, 20898, 11406, 1435, 262, 4766, 565, 327, 638, 31, 27573, 327, 629, 31, 18701, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11794, 1071, 1250, 2791, 261, 1943, 1522, 13, 288, 27573, 309, 261, 3410, 18, 14963, 12, 1522, 18, 588, 5541, 1435, 262, 597, 19694, 1522, 18, 291, 4958, 16057, 1290, 20898, 11406, 1435, 262, 4766, 565, 327, 638, 31, 27573, 327, 629, 31, 18701, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (in.match('=')) {
if (matchChar('=')) {
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/8d78476dde863807579dcd20202decfcfcc9f7f1/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, 13, 288, 5411, 509, 563, 273, 333, 18, 6206, 823, 1345, 31, 5411, 333, 18, 6206, 823, 1345, 273, 6431, 31, 5411, 327, 563, 31, 3639, 289, 3639, 368, 512, 270, 7983, 16, 10016, 16692, 358, 19181, 18, 3639, 741, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 2337, 82, 6134, 288, 7734, 2943, 12058, 4871, 8047, 42, 67, 4537, 5538, 5997, 31, 7734, 309, 14015, 7133, 473, 15508, 42, 67, 12917, 5997, 55, 13, 480, 374, 13, 10792, 898, 31, 5411, 289, 3639, 289, 1323, 261, 291, 46, 1260, 909, 12, 71, 13, 747, 276, 422, 2337, 82, 8284, 3639, 309, 261, 71, 422, 6431, 67, 7305, 13, 5411, 327, 6431, 31, 3639, 309, 261, 71, 480, 4014, 597, 276, 480, 2337, 82, 6134, 5411, 2943, 5626, 15508, 42, 67, 4537, 5538, 5997, 31, 3639, 368, 2756, 19, 11041, 19, 1336, 792, 35, 3639, 368, 4267, 596, 364, 5023, 598, 279, 411, 823, 12877, 34, 3639, 1250, 2756, 1685, 31, 3639, 1250, 353, 16532, 8448, 1685, 273, 629, 31, 3639, 309, 261, 71, 422, 5282, 13, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 296, 89, 6134, 288, 7734, 2756, 1685, 273, 638, 31, 7734, 353, 16532, 8448, 1685, 273, 638, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, 13, 288, 5411, 509, 563, 273, 333, 18, 6206, 823, 1345, 31, 5411, 333, 18, 6206, 823, 1345, 273, 6431, 31, 5411, 327, 563, 31, 3639, 289, 3639, 368, 512, 270, 7983, 16, 10016, 16692, 358, 19181, 18, 3639, 741, 288, 5411, 276, 273, 316, 18, 896, 5621, 5411, 309, 261, 71, 422, 2337, 82, 6134, 288, 7734, 2943, 12058, 4871, 8047, 42, 67, 4537, 5538, 5997, 31, 7734, 309, 14015, 7133, 473, 15508, 42, 67, 12917, 5997, 55, 13, 480, 374, 13, 10792, 2 ]
for (Iterator thoseStates = getQuiescenceStatesIterator(); thoseStates.hasNext(); ) { QuiescenceState thatAgentState = (QuiescenceState) thoseStates.next(); MessageAddress thatAgent = thatAgentState.getAgent(); Integer sentNumber = thisAgentState.getOutgoingMessageNumber(thatAgent); Integer rcvdNumber = thatAgentState.getIncomingMessageNumber(thisAgent); boolean match; if (sentNumber == null) { match = rcvdNumber == null; } else { match = sentNumber.equals(rcvdNumber); } if (!match) { if (logger.isDebugEnabled()) { logger.debug("Quiescence prevented by " + thisAgent + " sent " + sentNumber + ", but " + thatAgent + " rcvd " + rcvdNumber);
for (Iterator theseNumbers = thisAgentState.getOutgoingEntrySet().iterator(); theseNumbers.hasNext(); ) { Map.Entry thisNumber = (Map.Entry) theseNumbers.next(); MessageAddress thatAgent = (MessageAddress) thisNumber.getKey(); QuiescenceState thatAgentState = accessQuiescenceState(thatAgent); if (thatAgentState != null && thatAgentState.isEnabled()) { number_compares++; Integer sentNumber = thisAgentState.getOutgoingMessageNumber(thatAgent); Integer rcvdNumber = thatAgentState.getIncomingMessageNumber(thisAgent); boolean match; if (sentNumber == null) { match = rcvdNumber == null; } else { match = sentNumber.equals(rcvdNumber);
private boolean noMessagesAreOutstanding() { checkQuiescence: for (Iterator theseStates = getQuiescenceStatesIterator(); theseStates.hasNext(); ) { QuiescenceState thisAgentState = (QuiescenceState) theseStates.next(); MessageAddress thisAgent = thisAgentState.getAgent(); for (Iterator thoseStates = getQuiescenceStatesIterator(); thoseStates.hasNext(); ) { QuiescenceState thatAgentState = (QuiescenceState) thoseStates.next(); MessageAddress thatAgent = thatAgentState.getAgent(); Integer sentNumber = thisAgentState.getOutgoingMessageNumber(thatAgent); Integer rcvdNumber = thatAgentState.getIncomingMessageNumber(thisAgent); boolean match; if (sentNumber == null) { match = rcvdNumber == null; } else { match = sentNumber.equals(rcvdNumber); } if (!match) { if (logger.isDebugEnabled()) { logger.debug("Quiescence prevented by " + thisAgent + " sent " + sentNumber + ", but " + thatAgent + " rcvd " + rcvdNumber); } return false; } } } return true; }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/7f8a8db2e1ca50155aa47eaabe9e75317b2feaca/QuiescenceReportServiceProvider.java/buggy/core/src/org/cougaar/core/node/QuiescenceReportServiceProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1158, 5058, 4704, 1182, 15167, 1435, 288, 565, 866, 928, 606, 71, 802, 30, 565, 364, 261, 3198, 4259, 7629, 273, 336, 928, 606, 71, 802, 7629, 3198, 5621, 4259, 7629, 18, 5332, 2134, 5621, 262, 288, 1377, 4783, 606, 71, 802, 1119, 333, 3630, 1119, 273, 261, 928, 606, 71, 802, 1119, 13, 4259, 7629, 18, 4285, 5621, 1377, 2350, 1887, 333, 3630, 273, 333, 3630, 1119, 18, 588, 3630, 5621, 1377, 364, 261, 3198, 5348, 7629, 273, 336, 928, 606, 71, 802, 7629, 3198, 5621, 5348, 7629, 18, 5332, 2134, 5621, 262, 288, 3639, 4783, 606, 71, 802, 1119, 716, 3630, 1119, 273, 261, 928, 606, 71, 802, 1119, 13, 5348, 7629, 18, 4285, 5621, 3639, 2350, 1887, 716, 3630, 273, 716, 3630, 1119, 18, 588, 3630, 5621, 3639, 2144, 3271, 1854, 273, 333, 3630, 1119, 18, 588, 24866, 1079, 1854, 12, 19056, 3630, 1769, 3639, 2144, 4519, 16115, 1854, 273, 716, 3630, 1119, 18, 588, 20370, 1079, 1854, 12, 2211, 3630, 1769, 3639, 1250, 845, 31, 3639, 309, 261, 7569, 1854, 422, 446, 13, 288, 1850, 845, 273, 4519, 16115, 1854, 422, 446, 31, 3639, 289, 469, 288, 1850, 845, 273, 3271, 1854, 18, 14963, 12, 1310, 16115, 1854, 1769, 3639, 289, 3639, 309, 16051, 1916, 13, 288, 1850, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 2932, 928, 606, 71, 802, 5309, 329, 635, 315, 7682, 397, 333, 3630, 397, 315, 3271, 315, 397, 3271, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 1158, 5058, 4704, 1182, 15167, 1435, 288, 565, 866, 928, 606, 71, 802, 30, 565, 364, 261, 3198, 4259, 7629, 273, 336, 928, 606, 71, 802, 7629, 3198, 5621, 4259, 7629, 18, 5332, 2134, 5621, 262, 288, 1377, 4783, 606, 71, 802, 1119, 333, 3630, 1119, 273, 261, 928, 606, 71, 802, 1119, 13, 4259, 7629, 18, 4285, 5621, 1377, 2350, 1887, 333, 3630, 273, 333, 3630, 1119, 18, 588, 3630, 5621, 1377, 364, 261, 3198, 5348, 7629, 273, 336, 928, 606, 71, 802, 7629, 3198, 5621, 5348, 7629, 18, 5332, 2134, 5621, 262, 288, 3639, 4783, 606, 71, 802, 1119, 716, 3630, 1119, 273, 261, 928, 606, 71, 802, 1119, 13, 5348, 7629, 18, 4285, 2 ]
super(); }
super(); }
protected CertificateRequest() { super(); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/99ca3e1610be117c5082c69c957dba934b03b749/CertificateRequest.java/buggy/src/net/sourceforge/fenixedu/domain/serviceRequests/documentRequests/CertificateRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6660, 691, 1435, 288, 202, 202, 9565, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6660, 691, 1435, 288, 202, 202, 9565, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (jj_scan_token(SUPER)) return true; if (jj_scan_token(DOT)) return true; if (jj_scan_token(IDENTIFIER)) return true;
if (jj_3R_198()) return true;
final private boolean jj_3R_166() { if (jj_scan_token(SUPER)) return true; if (jj_scan_token(DOT)) return true; if (jj_scan_token(IDENTIFIER)) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23553, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 13272, 654, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16606, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23553, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 13272, 654, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16606, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (borderColor1 != null) borderColor1.dispose();
if (borderColor1 != null) { borderColor1.dispose(); }
private void onDispose() { /* * Usually when an item is disposed, destroyItem will change the size of the items array, * reset the bounds of all the tabs and manage the widget associated with the tab. * Since the whole folder is being disposed, this is not necessary. For speed * the inDispose flag is used to skip over this part of the item dispose. */ inDispose = true; int length = items.length; for (int i = 0; i < length; i++) { if (items[i] != null) { items[i].dispose(); } } // clean up resources if (tip != null && !tip.isDisposed()) { tip.dispose(); tip = null; label = null; } if (arrowLeftImage != null) arrowLeftImage.dispose(); arrowLeftImage = null; if (arrowRightImage != null) arrowRightImage.dispose(); arrowRightImage = null; if (closeImage != null) closeImage.dispose(); closeImage = null; gradientColors = null; gradientPercents = null; backgroundImage = null; if (borderColor1 != null) borderColor1.dispose(); borderColor1 = null; if (borderColor2 != null) borderColor2.dispose(); borderColor2 = null; if (borderColor3 != null) borderColor3.dispose(); borderColor3 = null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3a23c3b9bac4db696a0452560047155775a707b7/CTabFolder.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/widgets/CTabFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 603, 1669, 4150, 1435, 288, 3639, 1748, 540, 380, 29785, 1347, 392, 761, 353, 1015, 7423, 16, 5546, 1180, 903, 2549, 326, 963, 434, 326, 1516, 526, 16, 1850, 380, 2715, 326, 4972, 434, 777, 326, 10920, 471, 10680, 326, 3604, 3627, 598, 326, 3246, 18, 540, 380, 7897, 326, 7339, 3009, 353, 3832, 1015, 7423, 16, 333, 353, 486, 4573, 18, 225, 2457, 8632, 540, 380, 326, 316, 1669, 4150, 2982, 353, 1399, 358, 2488, 1879, 333, 1087, 434, 326, 761, 15825, 18, 540, 1195, 3639, 316, 1669, 4150, 273, 638, 31, 3639, 509, 769, 273, 1516, 18, 2469, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 5411, 309, 261, 3319, 63, 77, 65, 480, 446, 13, 288, 7734, 1516, 63, 77, 8009, 2251, 4150, 5621, 5411, 289, 3639, 289, 3639, 368, 2721, 731, 2703, 3639, 309, 261, 14587, 480, 446, 597, 401, 14587, 18, 291, 1669, 7423, 10756, 288, 5411, 9529, 18, 2251, 4150, 5621, 5411, 9529, 273, 446, 31, 5411, 1433, 273, 446, 31, 3639, 289, 3639, 309, 261, 7815, 3910, 2040, 480, 446, 13, 5411, 12274, 3910, 2040, 18, 2251, 4150, 5621, 3639, 12274, 3910, 2040, 273, 446, 31, 3639, 309, 261, 7815, 4726, 2040, 480, 446, 13, 5411, 12274, 4726, 2040, 18, 2251, 4150, 5621, 3639, 12274, 4726, 2040, 273, 446, 31, 3639, 309, 261, 4412, 2040, 480, 446, 13, 5411, 1746, 2040, 18, 2251, 4150, 5621, 3639, 1746, 2040, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 603, 1669, 4150, 1435, 288, 3639, 1748, 540, 380, 29785, 1347, 392, 761, 353, 1015, 7423, 16, 5546, 1180, 903, 2549, 326, 963, 434, 326, 1516, 526, 16, 1850, 380, 2715, 326, 4972, 434, 777, 326, 10920, 471, 10680, 326, 3604, 3627, 598, 326, 3246, 18, 540, 380, 7897, 326, 7339, 3009, 353, 3832, 1015, 7423, 16, 333, 353, 486, 4573, 18, 225, 2457, 8632, 540, 380, 326, 316, 1669, 4150, 2982, 353, 1399, 358, 2488, 1879, 333, 1087, 434, 326, 761, 15825, 18, 540, 1195, 3639, 316, 1669, 4150, 273, 638, 31, 3639, 509, 769, 273, 1516, 18, 2469, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 2 ]
Point minimumPresentationSize = presentation.computeMinimumSize(); minSize = Geometry.isHorizontal(side) ? minimumPresentationSize.y : minimumPresentationSize.x;
boolean horizontalResize = Geometry.isHorizontal(side);
public void showView(Composite newClientComposite, ViewPane pane, int newSide, float sizeRatio) { side = newSide; if (currentPane != null) { hideView(); } currentPane = pane; fastViewAction.setPane(currentPane); clientComposite = newClientComposite; clientComposite.addListener(SWT.Resize, resizeListener); // Create the control first Control ctrl = pane.getControl(); if (ctrl == null) { pane.createControl(clientComposite); ctrl = pane.getControl(); } ctrl.addListener(SWT.Traverse, escapeListener); // Temporarily use the same appearance as docked views .. eventually, fastviews will // be independently pluggable. AbstractPresentationFactory factory = ((WorkbenchWindow) pane .getWorkbenchWindow()).getWindowConfigurer() .getPresentationFactory(); StackPresentation presentation = factory.createViewPresentation( newClientComposite, site); site.setPresentation(presentation); site.setPresentationState(IStackPresentationSite.STATE_RESTORED); presentation.addPart(pane.getPresentablePart(), null); presentation.selectPart(pane.getPresentablePart()); presentation.setActive(StackPresentation.AS_ACTIVE_FOCUS); presentation.setVisible(true); Point minimumPresentationSize = presentation.computeMinimumSize(); minSize = Geometry.isHorizontal(side) ? minimumPresentationSize.y : minimumPresentationSize.x; // Show pane fast. ctrl.setEnabled(true); // Add focus support. Composite parent = ctrl.getParent(); pane.setFocus(); boolean horizontal = Geometry.isHorizontal(side); sash = new Sash(parent, Geometry .getSwtHorizontalOrVerticalConstant(horizontal)); sash.addSelectionListener(selectionListener); Rectangle clientArea = newClientComposite.getClientArea(); getPresentation().getControl().moveAbove(null); currentPane.moveAbove(null); sash.moveAbove(null); setSize((int) (Geometry.getDimension(clientArea, !horizontal) * sizeRatio)); Display display = sash.getDisplay(); display.addFilter(SWT.MouseDown, mouseDownListener); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ba0fdd9a5113101382b472bafbaa83f334f2ef9c/FastViewPane.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2405, 1767, 12, 9400, 28052, 9400, 16, 4441, 8485, 13618, 16, 5411, 509, 394, 8895, 16, 1431, 963, 8541, 13, 288, 3639, 4889, 273, 394, 8895, 31, 3639, 309, 261, 2972, 8485, 480, 446, 13, 288, 5411, 6853, 1767, 5621, 3639, 289, 3639, 783, 8485, 273, 13618, 31, 3639, 4797, 1767, 1803, 18, 542, 8485, 12, 2972, 8485, 1769, 3639, 1004, 9400, 273, 28052, 9400, 31, 3639, 1004, 9400, 18, 1289, 2223, 12, 55, 8588, 18, 12182, 16, 7041, 2223, 1769, 3639, 368, 1788, 326, 3325, 1122, 3639, 8888, 6414, 273, 13618, 18, 588, 3367, 5621, 3639, 309, 261, 16277, 422, 446, 13, 288, 5411, 13618, 18, 2640, 3367, 12, 2625, 9400, 1769, 5411, 6414, 273, 13618, 18, 588, 3367, 5621, 3639, 289, 3639, 6414, 18, 1289, 2223, 12, 55, 8588, 18, 29654, 16, 4114, 2223, 1769, 3639, 368, 3955, 3831, 10243, 999, 326, 1967, 9788, 1359, 487, 5822, 329, 7361, 6116, 18011, 16, 4797, 7061, 903, 3639, 368, 506, 14807, 715, 886, 30382, 18, 3639, 4115, 6351, 367, 1733, 3272, 273, 14015, 2421, 22144, 3829, 13, 13618, 7734, 263, 588, 2421, 22144, 3829, 1435, 2934, 588, 3829, 809, 11278, 1435, 7734, 263, 588, 6351, 367, 1733, 5621, 3639, 7283, 6351, 367, 22525, 273, 3272, 18, 2640, 1767, 6351, 367, 12, 7734, 28052, 9400, 16, 2834, 1769, 3639, 2834, 18, 542, 6351, 367, 12, 10364, 1769, 3639, 2834, 18, 542, 6351, 367, 1119, 12, 45, 2624, 6351, 367, 4956, 18, 7998, 67, 12030, 51, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2405, 1767, 12, 9400, 28052, 9400, 16, 4441, 8485, 13618, 16, 5411, 509, 394, 8895, 16, 1431, 963, 8541, 13, 288, 3639, 4889, 273, 394, 8895, 31, 3639, 309, 261, 2972, 8485, 480, 446, 13, 288, 5411, 6853, 1767, 5621, 3639, 289, 3639, 783, 8485, 273, 13618, 31, 3639, 4797, 1767, 1803, 18, 542, 8485, 12, 2972, 8485, 1769, 3639, 1004, 9400, 273, 28052, 9400, 31, 3639, 1004, 9400, 18, 1289, 2223, 12, 55, 8588, 18, 12182, 16, 7041, 2223, 1769, 3639, 368, 1788, 326, 3325, 1122, 3639, 8888, 6414, 273, 13618, 18, 588, 3367, 5621, 3639, 309, 261, 16277, 422, 446, 13, 288, 5411, 13618, 18, 2640, 3367, 12, 2625, 9400, 1769, 5411, 6414, 273, 2 ]
File file2 = new File(PLUGIN_PATH +getClassFolder( ) + INPUT_FOLDER + invalidlibraryName );
File file2 = new File(getClassFolder( ) + INPUT_FOLDER + invalidlibraryName );
public void testLibraryValidation() throws Exception { //test a valid library openDesign( libraryName ); File file = new File(PLUGIN_PATH +getClassFolder( ) + INPUT_FOLDER + libraryName ); InputStream is = new FileInputStream( file ); SessionHandle session = DesignEngine.newSession( ULocale.ENGLISH ); designHandle = session.openDesign(file.toString()); assertTrue(ModuleUtil.isValidDesign(session,libraryName,is)); //test a invalid library File file2 = new File(PLUGIN_PATH +getClassFolder( ) + INPUT_FOLDER + invalidlibraryName ); InputStream is2 = new FileInputStream( file2 ); SessionHandle session2 = DesignEngine.newSession( ULocale.ENGLISH ); assertFalse(ModuleUtil.isValidDesign(session2,invalidlibraryName,is2)); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/be89bbe9dc15ff0ab4dc1c872159ed1fafbdcb6f/ModuleUtilTest.java/buggy/testsuites/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/ModuleUtilTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9313, 4354, 1435, 1216, 1185, 225, 202, 95, 202, 202, 759, 3813, 279, 923, 5313, 3196, 202, 3190, 15478, 12, 5313, 461, 11272, 202, 202, 812, 585, 273, 394, 1387, 12, 19415, 67, 4211, 397, 588, 797, 3899, 12, 262, 397, 12943, 67, 17357, 397, 5313, 461, 11272, 202, 202, 4348, 353, 273, 394, 11907, 12, 585, 11272, 202, 202, 2157, 3259, 1339, 273, 29703, 4410, 18, 2704, 2157, 12, 29145, 18, 16324, 13462, 11272, 202, 202, 16934, 3259, 273, 1339, 18, 3190, 15478, 12, 768, 18, 10492, 10663, 202, 202, 11231, 5510, 12, 3120, 1304, 18, 26810, 15478, 12, 3184, 16, 12083, 461, 16, 291, 10019, 9506, 202, 759, 3813, 279, 2057, 5313, 202, 202, 812, 585, 22, 273, 394, 1387, 12, 19415, 67, 4211, 397, 588, 797, 3899, 12, 262, 397, 12943, 67, 17357, 397, 2057, 12083, 461, 11272, 202, 202, 4348, 353, 22, 273, 394, 11907, 12, 585, 22, 11272, 202, 202, 2157, 3259, 1339, 22, 273, 29703, 4410, 18, 2704, 2157, 12, 29145, 18, 16324, 13462, 11272, 202, 202, 11231, 8381, 12, 3120, 1304, 18, 26810, 15478, 12, 3184, 22, 16, 5387, 12083, 461, 16, 291, 22, 10019, 202, 97, 1082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9313, 4354, 1435, 1216, 1185, 225, 202, 95, 202, 202, 759, 3813, 279, 923, 5313, 3196, 202, 3190, 15478, 12, 5313, 461, 11272, 202, 202, 812, 585, 273, 394, 1387, 12, 19415, 67, 4211, 397, 588, 797, 3899, 12, 262, 397, 12943, 67, 17357, 397, 5313, 461, 11272, 202, 202, 4348, 353, 273, 394, 11907, 12, 585, 11272, 202, 202, 2157, 3259, 1339, 273, 29703, 4410, 18, 2704, 2157, 12, 29145, 18, 16324, 13462, 11272, 202, 202, 16934, 3259, 273, 1339, 18, 3190, 15478, 12, 768, 18, 10492, 10663, 202, 202, 11231, 5510, 12, 3120, 1304, 18, 26810, 15478, 12, 3184, 16, 12083, 461, 16, 291, 10019, 9506, 202, 759, 3813, 279, 2057, 5313, 2 ]
long endTime = anticipateNotificationsForGroup("interface 192.168.1.1 up.", "The interface which was previously down is up.", "UpGroup", date, 0);
long endTime = anticipateNotificationsForGroup("interface 192.168.1.1 up.", "The interface which was previously down is now up.", "UpGroup", date, 0);
public void testBug731() throws Exception { MockInterface iface = m_network.getInterface(1, "192.168.1.1"); Date downDate = new Date(); long finishedDowns = anticipateNotificationsForGroup("interface 192.168.1.1 down.", "All services are down on interface 192.168.1.1, dot1 interface alias.", "InitialGroup", downDate, 0); //bring node down now Event event = iface.createDownEvent(downDate); m_eventMgr.sendEventToListeners(event); sleep(1000); Date date = new Date(); Event upEvent = iface.createUpEvent(date); anticipateNotificationsForGroup("RESOLVED: interface 192.168.1.1 down.", "RESOLVED: All services are down on interface 192.168.1.1, dot1 interface alias.", "InitialGroup", date, 0); long endTime = anticipateNotificationsForGroup("interface 192.168.1.1 up.", "The interface which was previously down is up.", "UpGroup", date, 0); m_eventMgr.sendEventToListeners(upEvent); verifyAnticipated(endTime, 500, 5000); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/5746605da5aaba5dd7f6ce4f7245b6a93b45d41c/NotifdTest.java/clean/src/services/org/opennms/netmgt/notifd/NotifdTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19865, 27, 6938, 1435, 1216, 1185, 288, 3639, 7867, 1358, 9751, 273, 312, 67, 5185, 18, 588, 1358, 12, 21, 16, 315, 15561, 18, 23329, 18, 21, 18, 21, 8863, 3639, 2167, 2588, 1626, 273, 394, 2167, 5621, 3639, 1525, 6708, 4164, 87, 273, 17841, 24629, 340, 14111, 1290, 1114, 2932, 5831, 20217, 18, 23329, 18, 21, 18, 21, 2588, 1199, 16, 315, 1595, 4028, 854, 2588, 603, 1560, 20217, 18, 23329, 18, 21, 18, 21, 16, 3928, 21, 1560, 2308, 1199, 16, 315, 4435, 1114, 3113, 2588, 1626, 16, 374, 1769, 3639, 368, 2848, 310, 756, 2588, 2037, 3639, 2587, 871, 273, 9751, 18, 2640, 4164, 1133, 12, 2378, 1626, 1769, 3639, 312, 67, 2575, 9455, 18, 4661, 1133, 774, 5583, 12, 2575, 1769, 3639, 5329, 12, 18088, 1769, 3639, 2167, 1509, 273, 394, 2167, 5621, 3639, 2587, 731, 1133, 273, 9751, 18, 2640, 1211, 1133, 12, 712, 1769, 3639, 17841, 24629, 340, 14111, 1290, 1114, 2932, 17978, 12135, 30, 1560, 20217, 18, 23329, 18, 21, 18, 21, 2588, 1199, 16, 315, 17978, 12135, 30, 4826, 4028, 854, 2588, 603, 1560, 20217, 18, 23329, 18, 21, 18, 21, 16, 3928, 21, 1560, 2308, 1199, 16, 315, 4435, 1114, 3113, 1509, 16, 374, 1769, 3639, 1525, 13859, 273, 17841, 24629, 340, 14111, 1290, 1114, 2932, 5831, 20217, 18, 23329, 18, 21, 18, 21, 731, 1199, 16, 315, 1986, 1560, 1492, 1703, 7243, 2588, 353, 2037, 731, 1199, 16, 315, 1211, 1114, 3113, 1509, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19865, 27, 6938, 1435, 1216, 1185, 288, 3639, 7867, 1358, 9751, 273, 312, 67, 5185, 18, 588, 1358, 12, 21, 16, 315, 15561, 18, 23329, 18, 21, 18, 21, 8863, 3639, 2167, 2588, 1626, 273, 394, 2167, 5621, 3639, 1525, 6708, 4164, 87, 273, 17841, 24629, 340, 14111, 1290, 1114, 2932, 5831, 20217, 18, 23329, 18, 21, 18, 21, 2588, 1199, 16, 315, 1595, 4028, 854, 2588, 603, 1560, 20217, 18, 23329, 18, 21, 18, 21, 16, 3928, 21, 1560, 2308, 1199, 16, 315, 4435, 1114, 3113, 2588, 1626, 16, 374, 1769, 3639, 368, 2848, 310, 756, 2588, 2037, 3639, 2587, 871, 273, 9751, 18, 2640, 4164, 1133, 12, 2378, 1626, 1769, 3639, 312, 67, 2 ]
return(0);
public int containsID(int node, String value) { if (value.indexOf(' ') > -1) { StringTokenizer values = new StringTokenizer(value); while (values.hasMoreElements()) { BitArray nodes = (BitArray)_index.get(values.nextElement()); if ((nodes != null) && (nodes.getBit(node))) return(1); } return(0); } else { BitArray nodes = (BitArray)_index.get(value); if ((nodes != null) && (nodes.getBit(node))) return(1); return(0); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/be60972735dc72ea42ae9a13af0902b0d94e7e1f/KeyIndex.java/buggy/src/org/apache/xalan/xsltc/dom/KeyIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1914, 734, 12, 474, 756, 16, 514, 460, 13, 288, 225, 202, 430, 261, 1132, 18, 31806, 2668, 8624, 405, 300, 21, 13, 288, 202, 565, 16370, 924, 273, 394, 16370, 12, 1132, 1769, 202, 565, 1323, 261, 2372, 18, 5332, 7417, 3471, 10756, 288, 202, 202, 5775, 1076, 2199, 273, 261, 5775, 1076, 13, 67, 1615, 18, 588, 12, 2372, 18, 4285, 1046, 10663, 202, 202, 430, 14015, 4690, 480, 446, 13, 597, 261, 4690, 18, 588, 5775, 12, 2159, 20349, 327, 12, 21, 1769, 202, 565, 289, 202, 565, 327, 12, 20, 1769, 202, 97, 202, 12107, 288, 202, 565, 6539, 1076, 2199, 273, 261, 5775, 1076, 13, 67, 1615, 18, 588, 12, 1132, 1769, 202, 565, 309, 14015, 4690, 480, 446, 13, 597, 261, 4690, 18, 588, 5775, 12, 2159, 20349, 327, 12, 21, 1769, 202, 565, 327, 12, 20, 1769, 202, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1914, 734, 12, 474, 756, 16, 514, 460, 13, 288, 225, 202, 430, 261, 1132, 18, 31806, 2668, 8624, 405, 300, 21, 13, 288, 202, 565, 16370, 924, 273, 394, 16370, 12, 1132, 1769, 202, 565, 1323, 261, 2372, 18, 5332, 7417, 3471, 10756, 288, 202, 202, 5775, 1076, 2199, 273, 261, 5775, 1076, 13, 67, 1615, 18, 588, 12, 2372, 18, 4285, 1046, 10663, 202, 202, 430, 14015, 4690, 480, 446, 13, 597, 261, 4690, 18, 588, 5775, 12, 2159, 20349, 327, 12, 21, 1769, 202, 565, 289, 202, 565, 327, 12, 20, 1769, 202, 97, 202, 12107, 288, 202, 565, 6539, 1076, 2199, 273, 261, 5775, 1076, 13, 67, 1615, 18, 588, 12, 1132, 2 ]
setParameter(null);
private void evaluateExpressions() throws JspException { try { setCookie((String) evalAttr("cookie", getCookie(), String.class)); } catch (NullAttributeException ex) { setCookie(null); } try { setExpr((String) evalAttr("expr", getExpr(), String.class)); } catch (NullAttributeException ex) { setExpr(null); } try { setHeader((String) evalAttr("header", getHeader(), String.class)); } catch (NullAttributeException ex) { setHeader(null); } try { setLocation((String) evalAttr("location", getLocation(), String.class)); } catch (NullAttributeException ex) { setLocation(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setParameter((String) evalAttr("parameter", getParameter(), String.class)); } catch (NullAttributeException ex) { setParameter(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELNotMatchTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotMatchTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 26793, 12443, 780, 13, 5302, 3843, 2932, 8417, 3113, 24643, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 26793, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 4742, 12443, 780, 13, 5302, 3843, 2932, 8638, 3113, 336, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 4742, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 10859, 12443, 780, 13, 5302, 3843, 2932, 3374, 3113, 7911, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 10859, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 21751, 12443, 780, 13, 5302, 3843, 2932, 3562, 3113, 13312, 9334, 4766, 1850, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 21751, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 6788, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 6690, 12443, 780, 13, 5302, 3843, 2932, 6775, 3113, 5575, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 10402, 289, 3639, 775, 288, 5411, 7486, 12443, 780, 13, 5302, 3843, 2932, 4468, 3113, 3911, 9334, 4766, 1850, 514, 18, 1106, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 26793, 12443, 780, 13, 5302, 3843, 2932, 8417, 3113, 24643, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 26793, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 4742, 12443, 780, 13, 5302, 3843, 2932, 8638, 3113, 336, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 4742, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 10859, 12443, 780, 13, 5302, 3843, 2932, 3374, 3113, 7911, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 10859, 12, 2011, 1769, 3639, 2 ]
suite.addTest(new ASTConverter15Test("test0067"));
suite.addTest(new ASTConverter15Test("test0071"));
public static Test suite() { if (true) { return new Suite(ASTConverter15Test.class); } TestSuite suite = new Suite(ASTConverter15Test.class.getName()); suite.addTest(new ASTConverter15Test("test0067")); return suite; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/27bc61fa0901f87dfdd227f4fb04df89057cc681/ASTConverter15Test.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 430, 261, 3767, 13, 288, 1082, 202, 2463, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 1769, 202, 202, 97, 202, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 18, 17994, 10663, 9506, 202, 30676, 18, 1289, 4709, 12, 2704, 9183, 5072, 3600, 4709, 2932, 3813, 713, 9599, 7923, 1769, 202, 202, 2463, 11371, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 430, 261, 3767, 13, 288, 1082, 202, 2463, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 1769, 202, 202, 97, 202, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 18, 17994, 10663, 9506, 202, 30676, 18, 1289, 4709, 12, 2704, 9183, 5072, 3600, 4709, 2932, 3813, 713, 9599, 7923, 1769, 202, 202, 2463, 11371, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ruby.getIter().pop();
ruby.getIter().pop();
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject result = ruby.getNil(); try { result = ruby.getRubyFrame().getLastClass().getSuperClass().call(ruby.getRubyFrame().getSelf(), ruby.getRubyFrame().getLastFunc(), new RubyPointer(args), 3); } finally { ruby.getIter().pop(); } return result; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 8051, 12, 54, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 1435, 422, 446, 13, 288, 5411, 604, 394, 25473, 12, 27768, 16, 315, 9565, 1106, 707, 2119, 397, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 2622, 1435, 397, 2491, 1297, 506, 3696, 635, 4237, 8051, 1435, 1199, 1769, 3639, 289, 7734, 22155, 18, 588, 2360, 7675, 6206, 5621, 7734, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 775, 288, 540, 202, 2088, 273, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 7675, 588, 8051, 797, 7675, 1991, 12, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 10084, 9334, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 2622, 9334, 394, 19817, 4926, 12, 1968, 3631, 890, 1769, 3639, 289, 3095, 288, 540, 202, 27768, 18, 588, 2360, 7675, 5120, 5621, 3639, 289, 7734, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 8051, 12, 54, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 1435, 422, 446, 13, 288, 5411, 604, 394, 25473, 12, 27768, 16, 315, 9565, 1106, 707, 2119, 397, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 2622, 1435, 397, 2491, 1297, 506, 3696, 635, 4237, 8051, 1435, 1199, 1769, 3639, 289, 7734, 22155, 18, 588, 2360, 7675, 6206, 5621, 7734, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 775, 288, 540, 202, 2088, 273, 22155, 18, 588, 54, 10340, 3219, 7675, 588, 3024, 797, 7675, 588, 8051, 797, 7675, 1991, 12, 27768, 18, 588, 54, 10340, 3219, 7675, 588, 2 ]
protected void normalize(DataTypeDescriptor desiredType, String sourceValue) throws StandardException
public void normalize( DataTypeDescriptor desiredType, DataValueDescriptor source) throws StandardException
protected void normalize(DataTypeDescriptor desiredType, String sourceValue) throws StandardException { int desiredWidth = desiredType.getMaximumWidth(); int sourceWidth = sourceValue.length(); /* ** If the input is already the right length, no normalization is ** necessary. ** ** It's OK for a Varchar value to be shorter than the desired width. ** This can happen, for example, if you insert a 3-character Varchar ** value into a 10-character Varchar column. Just return the value ** in this case. */ if (sourceWidth > desiredWidth) { hasNonBlankChars(sourceValue, desiredWidth, sourceWidth); /* ** No non-blank characters will be truncated. Truncate the blanks ** to the desired width. */ sourceValue = sourceValue.substring(0, desiredWidth); } setValue(sourceValue); }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/a4e8535184551ed79c73e601f89ef2deb81d1ddc/SQLVarchar.java/buggy/java/engine/org/apache/derby/iapi/types/SQLVarchar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3883, 12, 6273, 3187, 6049, 559, 16, 514, 1084, 620, 13, 202, 202, 15069, 8263, 503, 202, 95, 202, 202, 474, 1082, 202, 30458, 2384, 273, 6049, 559, 18, 588, 13528, 2384, 5621, 202, 202, 474, 1084, 2384, 273, 1084, 620, 18, 2469, 5621, 202, 202, 20308, 202, 202, 636, 971, 326, 810, 353, 1818, 326, 2145, 769, 16, 1158, 13728, 353, 202, 202, 636, 4573, 18, 202, 202, 636, 202, 202, 636, 2597, 1807, 7791, 364, 279, 776, 22483, 460, 358, 506, 19623, 2353, 326, 6049, 1835, 18, 202, 202, 636, 1220, 848, 5865, 16, 364, 3454, 16, 309, 1846, 2243, 279, 890, 17, 11560, 776, 22483, 202, 202, 636, 460, 1368, 279, 1728, 17, 11560, 776, 22483, 1057, 18, 225, 12526, 327, 326, 460, 202, 202, 636, 316, 333, 648, 18, 202, 202, 5549, 202, 202, 430, 261, 3168, 2384, 405, 6049, 2384, 13, 288, 1082, 202, 5332, 3989, 7796, 7803, 12, 3168, 620, 16, 6049, 2384, 16, 1084, 2384, 1769, 1082, 202, 20308, 1082, 202, 636, 2631, 1661, 17, 12111, 3949, 903, 506, 15282, 18, 225, 25869, 326, 7052, 87, 1082, 202, 636, 358, 326, 6049, 1835, 18, 1082, 202, 5549, 1082, 202, 3168, 620, 273, 1084, 620, 18, 28023, 12, 20, 16, 6049, 2384, 1769, 202, 202, 97, 202, 202, 542, 620, 12, 3168, 620, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1117, 918, 3883, 12, 6273, 3187, 6049, 559, 16, 514, 1084, 620, 13, 202, 202, 15069, 8263, 503, 202, 95, 202, 202, 474, 1082, 202, 30458, 2384, 273, 6049, 559, 18, 588, 13528, 2384, 5621, 202, 202, 474, 1084, 2384, 273, 1084, 620, 18, 2469, 5621, 202, 202, 20308, 202, 202, 636, 971, 326, 810, 353, 1818, 326, 2145, 769, 16, 1158, 13728, 353, 202, 202, 636, 4573, 18, 202, 202, 636, 202, 202, 636, 2597, 1807, 7791, 364, 279, 776, 22483, 460, 358, 506, 19623, 2353, 326, 6049, 1835, 18, 202, 202, 636, 1220, 848, 5865, 16, 364, 3454, 16, 309, 1846, 2243, 279, 890, 17, 11560, 776, 22483, 202, 202, 636, 460, 1368, 279, 1728, 2 ]
private Proxy parse(String groovy) throws Exception {
private Proxy parse(String groovy,String testClassName) throws Exception {
private Proxy parse(String groovy) throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass( "import grails.orm.*;\n" + "import org.hibernate.*;\n" + "class TestClass {\n" + "@Property SessionFactory sf;\n" + "@Property Class tc;\n" + "@Property Closure test = {\n" + "def hcb = new HibernateCriteriaBuilder(tc,sf);\n" + "return hcb" + groovy +";\n" + "}\n" + "}"); GroovyObject go = (GroovyObject)clazz.newInstance(); go.setProperty("sf", this.sessionFactory); Class tc = this.grailsApplication.getGrailsDomainClasses()[0].getClazz(); go.setProperty("tc", tc); Closure closure = (Closure)go.getProperty("test"); return (Proxy)closure.call(); }
6460 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6460/5e346be01983b6deeb7c6b6c41fa8a9369f3cb54/HibernateCriteriaBuilderTests.java/buggy/test/persistence/org/codehaus/groovy/grails/orm/hibernate/HibernateCriteriaBuilderTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 7659, 1109, 12, 780, 24955, 13, 1216, 1185, 288, 6862, 202, 43, 12859, 7805, 927, 273, 394, 20841, 7805, 5621, 202, 202, 797, 4003, 273, 1875, 927, 18, 2670, 797, 12, 315, 5666, 3087, 14573, 18, 535, 4509, 9747, 82, 6, 397, 1082, 4697, 202, 6, 5666, 2358, 18, 15769, 22828, 4509, 9747, 82, 6, 397, 1082, 4697, 202, 6, 1106, 7766, 797, 18890, 82, 6, 397, 1082, 4405, 202, 6, 36, 1396, 3877, 1733, 9033, 9747, 82, 6, 397, 1082, 4405, 202, 6, 36, 1396, 1659, 1715, 9747, 82, 6, 397, 1875, 4405, 202, 6, 36, 1396, 7255, 1842, 273, 18890, 82, 6, 397, 1082, 9944, 202, 6, 536, 366, 7358, 273, 394, 670, 24360, 7231, 1263, 12, 5111, 16, 21668, 20472, 82, 6, 397, 1082, 9944, 202, 6, 2463, 366, 7358, 6, 397, 24955, 397, 6, 9747, 82, 6, 397, 1082, 4405, 202, 6, 6280, 82, 6, 397, 1082, 4697, 202, 6, 1532, 1769, 202, 202, 43, 12859, 921, 1960, 273, 261, 43, 12859, 921, 13, 830, 3638, 18, 2704, 1442, 5621, 202, 202, 3240, 18, 542, 1396, 2932, 21668, 3113, 333, 18, 3184, 1733, 1769, 9506, 202, 797, 1715, 273, 333, 18, 2752, 14573, 3208, 18, 588, 14571, 14573, 3748, 4818, 1435, 63, 20, 8009, 588, 14616, 5621, 202, 202, 3240, 18, 542, 1396, 2932, 5111, 3113, 1715, 1769, 9506, 202, 10573, 7213, 273, 261, 10573, 13, 3240, 18, 588, 1396, 2932, 3813, 8863, 202, 202, 2463, 261, 3886, 13, 20823, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 7659, 1109, 12, 780, 24955, 13, 1216, 1185, 288, 6862, 202, 43, 12859, 7805, 927, 273, 394, 20841, 7805, 5621, 202, 202, 797, 4003, 273, 1875, 927, 18, 2670, 797, 12, 315, 5666, 3087, 14573, 18, 535, 4509, 9747, 82, 6, 397, 1082, 4697, 202, 6, 5666, 2358, 18, 15769, 22828, 4509, 9747, 82, 6, 397, 1082, 4697, 202, 6, 1106, 7766, 797, 18890, 82, 6, 397, 1082, 4405, 202, 6, 36, 1396, 3877, 1733, 9033, 9747, 82, 6, 397, 1082, 4405, 202, 6, 36, 1396, 1659, 1715, 9747, 82, 6, 397, 1875, 4405, 202, 6, 36, 1396, 7255, 1842, 273, 18890, 82, 6, 397, 1082, 9944, 202, 6, 536, 366, 7358, 273, 394, 670, 24360, 2 ]
duple = ScannerUtility.createReaderDuple( new File( scannerData.getContextStack().getCurrentContext().getFilename() ).getParentFile().getAbsolutePath(), fileName, scannerData.getClientRequestor(), scannerData.getWorkingCopies() );
duple = ScannerUtility.createReaderDuple( new File( currentContext.getFilename() ).getParentFile().getAbsolutePath(), fileName, scannerData.getClientRequestor(), scannerData.getWorkingCopies() );
protected void handleInclusion(String fileName, boolean useIncludePaths, int beginOffset, int startLine, int nameOffset, int nameLine, int endOffset, int endLine ) throws ScannerException { CodeReader duple = null; totalLoop: for( int i = 0; i < 2; ++i ) { if( useIncludePaths ) // search include paths for this file { // iterate through the include paths Iterator iter = scannerData.getIncludePathNames().iterator(); while (iter.hasNext()) { String path = (String)iter.next(); duple = ScannerUtility.createReaderDuple( path, fileName, scannerData.getClientRequestor(), scannerData.getWorkingCopies() ); if( duple != null ) break totalLoop; } if (duple == null ) handleProblem( IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND, fileName, beginOffset, false, true ); } else // local inclusion { duple = ScannerUtility.createReaderDuple( new File( scannerData.getContextStack().getCurrentContext().getFilename() ).getParentFile().getAbsolutePath(), fileName, scannerData.getClientRequestor(), scannerData.getWorkingCopies() ); if( duple != null ) break totalLoop; useIncludePaths = true; continue totalLoop; } } if (duple!= null) { IASTInclusion inclusion = null; try { inclusion = scannerData.getASTFactory().createInclusion( fileName, duple.getFilename(), !useIncludePaths, beginOffset, startLine, nameOffset, nameOffset + fileName.length(), nameLine, endOffset, endLine); } catch (Exception e) { /* do nothing */ } try { scannerData.getContextStack().updateContext( duple.getUnderlyingReader(), duple.getFilename(), ScannerContext.ContextKind.INCLUSION, inclusion, scannerData.getClientRequestor() ); } catch (ContextException e1) { handleProblem( e1.getId(), fileName, beginOffset, false, true ); } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0ce4a707ab7219e9ddb15141d8f4a4ce46d3ee2a/Scanner.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 382, 15335, 12, 780, 3968, 16, 1250, 999, 8752, 4466, 16, 509, 2376, 2335, 16, 509, 24636, 16, 509, 508, 2335, 16, 509, 508, 1670, 16, 509, 25507, 16, 509, 31763, 262, 1216, 19074, 503, 288, 202, 202, 1085, 2514, 302, 2268, 273, 446, 31, 202, 202, 4963, 6452, 30, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 576, 31, 965, 77, 262, 202, 202, 95, 1082, 202, 430, 12, 999, 8752, 4466, 262, 368, 1623, 2341, 2953, 364, 333, 585, 1082, 202, 95, 9506, 202, 759, 7401, 3059, 326, 2341, 2953, 4697, 202, 3198, 1400, 273, 7683, 751, 18, 588, 8752, 743, 1557, 7675, 9838, 5621, 25083, 202, 17523, 261, 2165, 18, 5332, 2134, 10756, 288, 6862, 1082, 202, 780, 589, 273, 261, 780, 13, 2165, 18, 4285, 5621, 6862, 202, 72, 2268, 273, 19074, 6497, 18, 2640, 2514, 40, 2268, 12, 589, 16, 3968, 16, 7683, 751, 18, 588, 1227, 691, 280, 9334, 7683, 751, 18, 588, 14836, 15670, 1435, 11272, 6862, 202, 430, 12, 302, 2268, 480, 446, 262, 25083, 202, 8820, 2078, 6452, 31, 9506, 202, 97, 6862, 9506, 202, 430, 261, 72, 2268, 422, 446, 262, 6862, 202, 4110, 13719, 12, 467, 13719, 18, 3670, 16560, 916, 67, 706, 5017, 3378, 1146, 67, 4400, 67, 9294, 16, 3968, 16, 2376, 2335, 16, 629, 16, 638, 11272, 9506, 202, 97, 1082, 202, 12107, 368, 1191, 26485, 1082, 202, 95, 9506, 202, 72, 2268, 273, 19074, 6497, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 382, 15335, 12, 780, 3968, 16, 1250, 999, 8752, 4466, 16, 509, 2376, 2335, 16, 509, 24636, 16, 509, 508, 2335, 16, 509, 508, 1670, 16, 509, 25507, 16, 509, 31763, 262, 1216, 19074, 503, 288, 202, 202, 1085, 2514, 302, 2268, 273, 446, 31, 202, 202, 4963, 6452, 30, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 576, 31, 965, 77, 262, 202, 202, 95, 1082, 202, 430, 12, 999, 8752, 4466, 262, 368, 1623, 2341, 2953, 364, 333, 585, 1082, 202, 95, 9506, 202, 759, 7401, 3059, 326, 2341, 2953, 4697, 202, 3198, 1400, 273, 7683, 751, 18, 588, 8752, 743, 1557, 7675, 9838, 5621, 25083, 202, 17523, 261, 2165, 2 ]
if (lowestRtt > 0) {
if (highestRTT > 0) {
void receivePacket(Packet packet, Connection con) { boolean ok = verifyPacket(packet, con); if (!ok) return; boolean isNew = con.getInputStream().messageReceived(packet.getSequenceNum(), packet.getPayload()); // close *after* receiving the data, as well as after verifying the signatures / etc if (packet.isFlagSet(Packet.FLAG_CLOSE) && packet.isFlagSet(Packet.FLAG_SIGNATURE_INCLUDED)) con.closeReceived(); if (isNew) { con.incrementUnackedPacketsReceived(); long nextTime = con.getNextSendTime(); if (nextTime <= 0) { con.setNextSendTime(con.getOptions().getSendAckDelay() + _context.clock().now()); if (_log.shouldLog(Log.DEBUG)) _log.debug("Scheduling ack in " + con.getOptions().getSendAckDelay() + "ms for received packet " + packet); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Ack is already scheduled in " + (nextTime-_context.clock().now()) + "ms, though we just received " + packet); } } else { if (packet.getSequenceNum() > 0) { // take note of congestion con.getOptions().setResendDelay(con.getOptions().getResendDelay()*2); //con.getOptions().setWindowSize(con.getOptions().getWindowSize()/2); if (_log.shouldLog(Log.WARN)) _log.warn("congestion.. dup " + packet); con.incrementUnackedPacketsReceived(); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("ACK only packet received: " + packet); } } int numResends = 0; List acked = con.ackPackets(packet.getAckThrough(), packet.getNacks()); if ( (acked != null) && (acked.size() > 0) ) { if (_log.shouldLog(Log.DEBUG)) _log.debug(acked.size() + " of our packets acked with " + packet); // use the lowest RTT, since these would likely be bunched together, // waiting for the most recent packet received before sending the ACK int lowestRtt = -1; for (int i = 0; i < acked.size(); i++) { PacketLocal p = (PacketLocal)acked.get(i); if ( (lowestRtt < 0) || (p.getAckTime() < lowestRtt) ) { //if (p.getNumSends() <= 1) lowestRtt = p.getAckTime(); } if (p.getNumSends() > 1) numResends++; // ACK the tags we delivered so we can use them if ( (p.getKeyUsed() != null) && (p.getTagsSent() != null) && (p.getTagsSent().size() > 0) ) { _context.sessionKeyManager().tagsDelivered(p.getTo().getPublicKey(), p.getKeyUsed(), p.getTagsSent()); } if (_log.shouldLog(Log.DEBUG)) _log.debug("Packet acked after " + p.getAckTime() + "ms: " + p); } if (lowestRtt > 0) { int oldRTT = con.getOptions().getRTT(); int newRTT = (int)(RTT_DAMPENING*oldRTT + (1-RTT_DAMPENING)*lowestRtt); con.getOptions().setRTT(newRTT); } } boolean fastAck = adjustWindow(con, isNew, packet.getSequenceNum(), numResends); con.eventOccurred(); if (fastAck) { if (con.getLastSendTime() + con.getOptions().getRTT() < _context.clock().now()) { _log.error("Fast ack for dup " + packet); con.ackImmediately(); } } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/48cdf17a4f63829c28b653f83ae10d01c3f7e752/ConnectionPacketHandler.java/buggy/apps/streaming/java/src/net/i2p/client/streaming/ConnectionPacketHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 6798, 6667, 12, 6667, 4414, 16, 4050, 356, 13, 288, 3639, 1250, 1529, 273, 3929, 6667, 12, 11482, 16, 356, 1769, 3639, 309, 16051, 601, 13, 327, 31, 3639, 1250, 10783, 273, 356, 18, 588, 4348, 7675, 2150, 8872, 12, 11482, 18, 588, 4021, 2578, 9334, 4414, 18, 588, 6110, 10663, 3639, 368, 1746, 380, 5205, 14, 15847, 326, 501, 16, 487, 5492, 487, 1839, 3929, 310, 326, 14862, 342, 5527, 3639, 309, 261, 11482, 18, 291, 4678, 694, 12, 6667, 18, 9651, 67, 13384, 13, 597, 4414, 18, 291, 4678, 694, 12, 6667, 18, 9651, 67, 26587, 67, 706, 11686, 7660, 3719, 5411, 356, 18, 4412, 8872, 5621, 7734, 309, 261, 291, 1908, 13, 288, 5411, 356, 18, 15016, 984, 484, 329, 27328, 8872, 5621, 5411, 1525, 1024, 950, 273, 356, 18, 588, 2134, 3826, 950, 5621, 5411, 309, 261, 4285, 950, 1648, 374, 13, 288, 7734, 356, 18, 542, 2134, 3826, 950, 12, 591, 18, 588, 1320, 7675, 588, 3826, 11931, 6763, 1435, 397, 389, 2472, 18, 18517, 7675, 3338, 10663, 7734, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 10792, 389, 1330, 18, 4148, 2932, 25401, 8479, 316, 315, 397, 356, 18, 588, 1320, 7675, 588, 3826, 11931, 6763, 1435, 397, 315, 959, 364, 5079, 4414, 315, 397, 4414, 1769, 5411, 289, 469, 288, 7734, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 10792, 389, 1330, 18, 4148, 2932, 11931, 353, 1818, 9755, 316, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 6798, 6667, 12, 6667, 4414, 16, 4050, 356, 13, 288, 3639, 1250, 1529, 273, 3929, 6667, 12, 11482, 16, 356, 1769, 3639, 309, 16051, 601, 13, 327, 31, 3639, 1250, 10783, 273, 356, 18, 588, 4348, 7675, 2150, 8872, 12, 11482, 18, 588, 4021, 2578, 9334, 4414, 18, 588, 6110, 10663, 3639, 368, 1746, 380, 5205, 14, 15847, 326, 501, 16, 487, 5492, 487, 1839, 3929, 310, 326, 14862, 342, 5527, 3639, 309, 261, 11482, 18, 291, 4678, 694, 12, 6667, 18, 9651, 67, 13384, 13, 597, 4414, 18, 291, 4678, 694, 12, 6667, 18, 9651, 67, 26587, 67, 706, 11686, 7660, 3719, 5411, 356, 18, 4412, 8872, 5621, 7734, 309, 261, 291, 1908, 13, 288, 5411, 2 ]
if (doc.toString().endsWith("[Y/n]"))
if (console.getText().endsWith("[Y/n]"))
private void runCommand(String[] command) { StringBuilder cmdString = new StringBuilder(); cmdString.append("# "); for (String c : command) cmdString.append(c); cmdString.append('\n'); console.setText(cmdString.toString()); consoleBufferVO = Run.getConsoleBufferVO(command, null, null); new Thread() { @Override public void run() { String yellowEscape = new String(new char[] { 27, '[', '1', ';', '3', '3', 'm' }); String whiteEscape = new String(new char[] { 27, '[', '0', ';', '3', '7', 'm' }); String noEscape = new String(new char[] { 27, '[', 'm' }); boolean escape = false; int tmp; StyledDocument doc = console.getStyledDocument(); MutableAttributeSet keyword = new SimpleAttributeSet(); StyleConstants.setForeground(keyword, Color.BLACK); int offset = doc.getLength(); int preOffset = offset; StringBuilder escCode = new StringBuilder(); try { while ((tmp = consoleBufferVO.getBufferedReader().read()) != -1) { if (27 == tmp) escape = true; if (escape) escCode.append((char) tmp); else { if ('\n' == tmp) { offset = doc.getLength(); preOffset = offset + 1; } if ('\r' == tmp) offset = preOffset; else { if (offset < doc.getLength()) { doc.remove(offset, 1); } doc.insertString(offset, "" + (char) tmp, keyword); offset++; console.setCaretPosition(preOffset); } if (doc.toString().endsWith("[Y/n]")) setYesNoEnabled(true); } if (escape) { if ('m' == tmp) { String esc = escCode.toString(); if (esc.equals(yellowEscape)) { StyleConstants.setForeground(keyword, Color.YELLOW); escCode.delete(0, escCode.length()); } else if (esc.equals(whiteEscape)) { StyleConstants.setForeground(keyword, Color.GRAY); escCode.delete(0, escCode.length()); } else if (esc.equals(noEscape)) { StyleConstants.setForeground(keyword, Color.BLACK); escCode.delete(0, escCode.length()); } escape = false; } } } consoleBufferVO.getBufferedReader().close(); } catch (Exception e) { e.printStackTrace(); } System.out.println("PACMAN STD_OUT DONE"); btnCloseDialog.setEnabled(true); } }.start(); new Thread() { @Override public void run() { StyledDocument doc = console.getStyledDocument(); MutableAttributeSet errorStdOut = new SimpleAttributeSet(); StyleConstants.setForeground(errorStdOut, Color.RED); int tmp; try { while ((tmp = consoleBufferVO.getBufferedErrorReader() .read()) != -1) { doc.insertString(doc.getLength(), "" + (char) tmp, errorStdOut); } consoleBufferVO.getBufferedErrorReader().close(); } catch (Exception e) { e.printStackTrace(); } System.out.println("PACMAN ERR_OUT DONE"); } }.start(); }
9763 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9763/424f6a442056b4b998ed8177bc0bff0c80e9ec7f/ConsoleDialog.java/clean/jacman/src/andyr/jacman/console/ConsoleDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 31933, 12, 780, 8526, 1296, 13, 288, 202, 202, 21253, 1797, 780, 273, 394, 3225, 5621, 202, 202, 4172, 780, 18, 6923, 2932, 7, 315, 1769, 202, 202, 1884, 261, 780, 276, 294, 1296, 13, 1082, 202, 4172, 780, 18, 6923, 12, 71, 1769, 202, 202, 4172, 780, 18, 6923, 2668, 64, 82, 8284, 202, 202, 8698, 18, 542, 1528, 12, 4172, 780, 18, 10492, 10663, 202, 202, 8698, 1892, 16169, 273, 1939, 18, 588, 10215, 1892, 16169, 12, 3076, 16, 446, 16, 446, 1769, 202, 202, 2704, 4884, 1435, 288, 1082, 202, 36, 6618, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 780, 20614, 8448, 273, 394, 514, 12, 2704, 1149, 8526, 288, 12732, 16, 5271, 2187, 296, 21, 2187, 25083, 202, 13506, 2187, 296, 23, 2187, 296, 23, 2187, 296, 81, 11, 15549, 9506, 202, 780, 9578, 8448, 273, 394, 514, 12, 2704, 1149, 8526, 288, 12732, 16, 5271, 2187, 296, 20, 2187, 12386, 2187, 25083, 202, 11, 23, 2187, 296, 27, 2187, 296, 81, 11, 15549, 9506, 202, 780, 1158, 8448, 273, 394, 514, 12, 2704, 1149, 8526, 288, 12732, 16, 5271, 2187, 296, 81, 11, 15549, 9506, 202, 6494, 4114, 273, 629, 31, 9506, 202, 474, 1853, 31, 9506, 202, 24273, 1259, 2519, 997, 273, 2983, 18, 588, 24273, 1259, 2519, 5621, 9506, 202, 19536, 1499, 694, 4932, 273, 394, 4477, 1499, 694, 5621, 9506, 202, 2885, 2918, 18, 542, 23206, 12, 11041, 16, 5563, 18, 14618, 3649, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 31933, 12, 780, 8526, 1296, 13, 288, 202, 202, 21253, 1797, 780, 273, 394, 3225, 5621, 202, 202, 4172, 780, 18, 6923, 2932, 7, 315, 1769, 202, 202, 1884, 261, 780, 276, 294, 1296, 13, 1082, 202, 4172, 780, 18, 6923, 12, 71, 1769, 202, 202, 4172, 780, 18, 6923, 2668, 64, 82, 8284, 202, 202, 8698, 18, 542, 1528, 12, 4172, 780, 18, 10492, 10663, 202, 202, 8698, 1892, 16169, 273, 1939, 18, 588, 10215, 1892, 16169, 12, 3076, 16, 446, 16, 446, 1769, 202, 202, 2704, 4884, 1435, 288, 1082, 202, 36, 6618, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 780, 20614, 8448, 273, 394, 514, 12, 2704, 1149, 8526, 288, 2 ]
CosmoDavConstants.NAMESPACE_TICKET);
DavConstants.NAMESPACE);
private Element ticketToXml(Ticket ticket, CosmoDavResource resource) { Element ticketInfo = new Element(CosmoDavConstants.ELEMENT_TICKETINFO, CosmoDavConstants.NAMESPACE_TICKET); Element id = new Element(CosmoDavConstants.ELEMENT_ID, CosmoDavConstants.NAMESPACE_TICKET); id.addContent(ticket.getId()); ticketInfo.addContent(id); Element owner = new Element(CosmoDavConstants.ELEMENT_OWNER, CosmoDavConstants.NAMESPACE_TICKET); Element href = new Element(CosmoDavConstants.ELEMENT_HREF, CosmoDavConstants.NAMESPACE_TICKET); DavResourceLocator locator = resource.getPrincipalLocator(ticket.getOwner()); href.addContent(locator.getHref(false)); owner.addContent(href); ticketInfo.addContent(owner); Element timeout = new Element(CosmoDavConstants.ELEMENT_TIMEOUT, CosmoDavConstants.NAMESPACE_TICKET); // XXX: convert from seconds timeout.addContent(ticket.getTimeout()); ticketInfo.addContent(timeout); // visit limits are not supported; the element remains to // comply with the current draft of the spec Element visits = new Element(CosmoDavConstants.ELEMENT_VISITS, CosmoDavConstants.NAMESPACE_TICKET); visits.addContent(CosmoDavConstants.VALUE_INFINITY); ticketInfo.addContent(visits); Element privilege = new Element(CosmoDavConstants.ELEMENT_PRIVILEGE, CosmoDavConstants.NAMESPACE_TICKET); if (ticket.getPrivileges().contains(CosmoDavConstants.PRIVILEGE_READ)) { Element read = new Element(CosmoDavConstants.ELEMENT_READ, CosmoDavConstants.NAMESPACE_TICKET); privilege.addContent(read); } if (ticket.getPrivileges(). contains(CosmoDavConstants.PRIVILEGE_WRITE)) { Element write = new Element(CosmoDavConstants.ELEMENT_WRITE, CosmoDavConstants.NAMESPACE_TICKET); privilege.addContent(write); } ticketInfo.addContent(privilege); return ticketInfo; }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/767ffea34934298f8f1a3df48db87e57e83e7321/CosmoDavResponseImpl.java/clean/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavResponseImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3010, 9322, 774, 4432, 12, 13614, 9322, 16, 27573, 385, 538, 8683, 40, 842, 1420, 1058, 13, 288, 3639, 3010, 9322, 966, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 56, 16656, 1584, 5923, 16, 29159, 463, 842, 2918, 18, 11368, 1769, 3639, 3010, 612, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 734, 16, 4766, 463, 842, 2918, 18, 11368, 1769, 3639, 612, 18, 1289, 1350, 12, 16282, 18, 26321, 10663, 3639, 9322, 966, 18, 1289, 1350, 12, 350, 1769, 3639, 3010, 3410, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 29602, 16, 4766, 565, 463, 842, 2918, 18, 11368, 1769, 3639, 3010, 3897, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 44, 10771, 16, 4766, 282, 463, 842, 2918, 18, 11368, 1769, 3639, 463, 842, 1420, 5786, 8871, 273, 5411, 1058, 18, 588, 9155, 5786, 12, 16282, 18, 588, 5541, 10663, 3639, 3897, 18, 1289, 1350, 12, 20048, 18, 588, 15962, 12, 5743, 10019, 3639, 3410, 18, 1289, 1350, 12, 7547, 1769, 3639, 9322, 966, 18, 1289, 1350, 12, 8443, 1769, 3639, 3010, 2021, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 9503, 16, 4766, 1377, 463, 842, 2918, 18, 11368, 1769, 3639, 368, 11329, 30, 1765, 628, 3974, 3639, 2021, 18, 1289, 1350, 12, 16282, 18, 588, 2694, 10663, 3639, 9322, 966, 18, 1289, 1350, 12, 4538, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3010, 9322, 774, 4432, 12, 13614, 9322, 16, 27573, 385, 538, 8683, 40, 842, 1420, 1058, 13, 288, 3639, 3010, 9322, 966, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 56, 16656, 1584, 5923, 16, 29159, 463, 842, 2918, 18, 11368, 1769, 3639, 3010, 612, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 734, 16, 4766, 463, 842, 2918, 18, 11368, 1769, 3639, 612, 18, 1289, 1350, 12, 16282, 18, 26321, 10663, 3639, 9322, 966, 18, 1289, 1350, 12, 350, 1769, 3639, 3010, 3410, 273, 394, 3010, 12, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 29602, 16, 4766, 565, 463, 842, 2918, 18, 11368, 1769, 2 ]
while((item = (ArchiveStoreItem) myItems.pop()) != null) {
do{ synchronized (myItems) { item = (ArchiveStoreItem) myItems.pop(); }
public void removeAllCachedItems() { ArchiveStoreItem item; while((item = (ArchiveStoreItem) myItems.pop()) != null) { manager.removeCachedItem(item); item.finalize(); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/cbc8d02e7f68958d17b1b62385b39f3b1675daf1/ArchiveStoreContext.java/clean/src/freenet/client/ArchiveStoreContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12787, 9839, 3126, 1435, 288, 202, 202, 7465, 2257, 1180, 761, 31, 202, 202, 17523, 12443, 1726, 273, 261, 7465, 2257, 1180, 13, 3399, 3126, 18, 5120, 10756, 480, 446, 13, 288, 1082, 202, 4181, 18, 4479, 9839, 1180, 12, 1726, 1769, 1082, 202, 1726, 18, 30343, 5621, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12787, 9839, 3126, 1435, 288, 202, 202, 7465, 2257, 1180, 761, 31, 202, 202, 17523, 12443, 1726, 273, 261, 7465, 2257, 1180, 13, 3399, 3126, 18, 5120, 10756, 480, 446, 13, 288, 1082, 202, 4181, 18, 4479, 9839, 1180, 12, 1726, 1769, 1082, 202, 1726, 18, 30343, 5621, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public boolean isLightweight() {
public boolean isLightweight() {
public boolean isLightweight() { return peer instanceof LightweightPeer; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 12128, 4865, 1435, 288, 202, 202, 2463, 4261, 1276, 15992, 4865, 6813, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 12128, 4865, 1435, 288, 202, 202, 2463, 4261, 1276, 15992, 4865, 6813, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
VFS vfs = VFSManager.getVFSForPath(file.path);
VFS vfs = VFSManager.getVFSForPath(file.deletePath);
public BrowserCommandsMenu(VFSBrowser browser, VFS.DirectoryEntry file) { this.browser = browser; if(file != null) { this.file = file; VFS vfs = VFSManager.getVFSForPath(file.path); boolean delete = (vfs.getCapabilities() & VFS.DELETE_CAP) != 0; boolean rename = (vfs.getCapabilities() & VFS.RENAME_CAP) != 0; if(jEdit.getBuffer(file.path) != null) { if(browser.getMode() == VFSBrowser.BROWSER) { add(createMenuItem("open")); add(createMenuItem("insert")); add(createMenuItem("close")); } else add(createMenuItem("choose")); } else { if(file.type == VFS.DirectoryEntry.DIRECTORY || file.type == VFS.DirectoryEntry.FILESYSTEM) { add(createMenuItem("browse")); } else if(browser.getMode() != VFSBrowser.BROWSER) { add(createMenuItem("choose")); } // else if in browser mode else { add(createMenuItem("open")); add(createOpenEncodingMenu()); add(createMenuItem("insert")); } if(rename) add(createMenuItem("rename")); if(delete) add(createMenuItem("delete")); } addSeparator(); } add(createMenuItem("up")); add(createMenuItem("reload")); add(createMenuItem("roots")); add(createMenuItem("home")); add(createMenuItem("synchronize")); addSeparator(); if(browser.getMode() == VFSBrowser.BROWSER) add(createMenuItem("new-file")); add(createMenuItem("new-directory")); if(browser.getMode() == VFSBrowser.BROWSER) { addSeparator(); add(createMenuItem("search-in-directory")); } addSeparator(); JCheckBoxMenuItem showHiddenFiles = new JCheckBoxMenuItem( jEdit.getProperty("vfs.browser.commands.show-hidden-files.label")); showHiddenFiles.setActionCommand("show-hidden-files"); showHiddenFiles.setSelected(browser.getShowHiddenFiles()); showHiddenFiles.addActionListener(new ActionHandler()); add(showHiddenFiles); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/65bb6a2acf338a840d8b22d96810ba924d55277b/BrowserCommandsMenu.java/buggy/org/gjt/sp/jedit/browser/BrowserCommandsMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15408, 9127, 4599, 12, 58, 4931, 9132, 4748, 16, 23567, 18, 2853, 1622, 585, 13, 202, 95, 202, 202, 2211, 18, 11213, 273, 4748, 31, 202, 202, 430, 12, 768, 480, 446, 13, 202, 202, 95, 1082, 202, 2211, 18, 768, 273, 585, 31, 1082, 202, 58, 4931, 20682, 273, 23567, 1318, 18, 588, 58, 4931, 25589, 12, 768, 18, 803, 1769, 1082, 202, 6494, 1430, 273, 261, 90, 2556, 18, 588, 14012, 1435, 473, 23567, 18, 6460, 67, 17296, 13, 480, 374, 31, 1082, 202, 6494, 6472, 273, 261, 90, 2556, 18, 588, 14012, 1435, 473, 23567, 18, 862, 1985, 67, 17296, 13, 480, 374, 31, 1082, 202, 430, 12, 78, 4666, 18, 588, 1892, 12, 768, 18, 803, 13, 480, 446, 13, 1082, 202, 95, 9506, 202, 430, 12, 11213, 18, 588, 2309, 1435, 422, 23567, 9132, 18, 38, 24846, 13, 9506, 202, 95, 6862, 202, 1289, 12, 2640, 12958, 2932, 3190, 7923, 1769, 6862, 202, 1289, 12, 2640, 12958, 2932, 6387, 7923, 1769, 6862, 202, 1289, 12, 2640, 12958, 2932, 4412, 7923, 1769, 9506, 202, 97, 9506, 202, 12107, 6862, 202, 1289, 12, 2640, 12958, 2932, 25777, 7923, 1769, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 430, 12, 768, 18, 723, 422, 23567, 18, 2853, 1622, 18, 17229, 6862, 202, 20081, 585, 18, 723, 422, 23567, 18, 2853, 1622, 18, 3776, 14318, 13, 9506, 202, 95, 6862, 202, 1289, 12, 2640, 12958, 2932, 25731, 7923, 1769, 9506, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15408, 9127, 4599, 12, 58, 4931, 9132, 4748, 16, 23567, 18, 2853, 1622, 585, 13, 202, 95, 202, 202, 2211, 18, 11213, 273, 4748, 31, 202, 202, 430, 12, 768, 480, 446, 13, 202, 202, 95, 1082, 202, 2211, 18, 768, 273, 585, 31, 1082, 202, 58, 4931, 20682, 273, 23567, 1318, 18, 588, 58, 4931, 25589, 12, 768, 18, 803, 1769, 1082, 202, 6494, 1430, 273, 261, 90, 2556, 18, 588, 14012, 1435, 473, 23567, 18, 6460, 67, 17296, 13, 480, 374, 31, 1082, 202, 6494, 6472, 273, 261, 90, 2556, 18, 588, 14012, 1435, 473, 23567, 18, 862, 1985, 67, 17296, 13, 480, 374, 31, 1082, 202, 430, 12, 78, 4666, 18, 588, 1892, 2 ]
PsiFile psiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(myDocument);
if (!myFile.isValid()) return; final Document document = FileDocumentManager.getInstance().getDocument(myFile); if (document == null) return; PsiFile psiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(document);
public void readExternal(Element element) { mySmartPointersOrRangeMarkers.clear(); myExpandedStates.clear(); PsiFile psiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(myDocument); if (psiFile == null) return; String date = null; for (final Object o : element.getChildren()) { Element e = (Element)o; if ("element".equals(e.getName())) { String signature = e.getAttributeValue("signature"); if (signature == null) { continue; } PsiElement restoredElement = FoldingPolicy.restoreBySignature(psiFile, signature); if (restoredElement != null) { mySmartPointersOrRangeMarkers.add(SmartPointerManager.getInstance(myProject).createSmartPsiElementPointer(restoredElement)); myExpandedStates.add(Boolean.valueOf(e.getAttributeValue("expanded"))); } } else if ("marker".equals(e.getName())) { if (date == null) { date = getTimeStamp(); } if ("".equals(date)) continue; if (!date.equals(e.getAttributeValue("date")) || FileDocumentManager.getInstance().isDocumentUnsaved(myDocument)) continue; StringTokenizer tokenizer = new StringTokenizer(e.getAttributeValue("signature"), ":"); try { int start = Integer.valueOf(tokenizer.nextToken()).intValue(); int end = Integer.valueOf(tokenizer.nextToken()).intValue(); if (start < 0 || end >= myDocument.getTextLength() || start > end) continue; RangeMarker marker = myDocument.createRangeMarker(start, end); mySmartPointersOrRangeMarkers.add(marker); myExpandedStates.add(Boolean.valueOf(e.getAttributeValue("expanded"))); String placeHolderText = e.getAttributeValue("placeholder"); if (placeHolderText == null) placeHolderText = DEFAULT_PLACEHOLDER; myPlaceholderTexts.put(marker, placeHolderText); } catch (NoSuchElementException exc) { LOG.error(exc); continue; } } else { throw new IllegalStateException("unknown tag: " + e.getName()); } } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/b6c84c8175bd962a07d4ff5a1aca41d83b0ca1b1/DocumentFoldingInfo.java/buggy/source/com/intellij/codeInsight/folding/impl/DocumentFoldingInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 6841, 12, 1046, 930, 13, 288, 565, 3399, 23824, 27452, 1162, 2655, 21644, 18, 8507, 5621, 565, 3399, 17957, 7629, 18, 8507, 5621, 565, 309, 16051, 4811, 812, 18, 26810, 10756, 327, 31, 225, 727, 4319, 1668, 273, 1387, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 4811, 812, 1769, 309, 261, 5457, 422, 446, 13, 327, 31, 225, 453, 7722, 812, 23921, 812, 273, 453, 7722, 2519, 1318, 18, 588, 1442, 12, 4811, 4109, 2934, 588, 52, 7722, 812, 12, 5457, 1769, 565, 309, 261, 24275, 812, 422, 446, 13, 327, 31, 565, 514, 1509, 273, 446, 31, 565, 364, 261, 6385, 1033, 320, 294, 930, 18, 588, 4212, 10756, 288, 1377, 3010, 425, 273, 261, 1046, 13, 83, 31, 1377, 309, 7566, 2956, 9654, 14963, 12, 73, 18, 17994, 1435, 3719, 288, 3639, 514, 3372, 273, 425, 18, 588, 14942, 2932, 8195, 8863, 3639, 309, 261, 8195, 422, 446, 13, 288, 1850, 1324, 31, 3639, 289, 3639, 453, 7722, 1046, 18751, 1046, 273, 478, 1673, 310, 2582, 18, 13991, 858, 5374, 12, 24275, 812, 16, 3372, 1769, 3639, 309, 261, 13991, 72, 1046, 480, 446, 13, 288, 1850, 3399, 23824, 27452, 1162, 2655, 21644, 18, 1289, 12, 23824, 4926, 1318, 18, 588, 1442, 12, 4811, 4109, 2934, 2640, 23824, 52, 7722, 1046, 4926, 12, 13991, 72, 1046, 10019, 1850, 3399, 17957, 7629, 18, 1289, 12, 5507, 18, 1132, 951, 12, 73, 18, 588, 14942, 2932, 17336, 6, 3719, 1769, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 6841, 12, 1046, 930, 13, 288, 565, 3399, 23824, 27452, 1162, 2655, 21644, 18, 8507, 5621, 565, 3399, 17957, 7629, 18, 8507, 5621, 565, 309, 16051, 4811, 812, 18, 26810, 10756, 327, 31, 225, 727, 4319, 1668, 273, 1387, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 4811, 812, 1769, 309, 261, 5457, 422, 446, 13, 327, 31, 225, 453, 7722, 812, 23921, 812, 273, 453, 7722, 2519, 1318, 18, 588, 1442, 12, 4811, 4109, 2934, 588, 52, 7722, 812, 12, 5457, 1769, 565, 309, 261, 24275, 812, 422, 446, 13, 327, 31, 565, 514, 1509, 273, 446, 31, 565, 364, 261, 6385, 1033, 320, 294, 930, 18, 588, 4212, 10756, 288, 1377, 3010, 2 ]
try { float x = parseFloat(); pathHandler.linetoHorizontalRel(x); } catch (NumberFormatException e) { reportError("character.unexpected", new Object[] { new Integer(current) }); skipSubPath(); return; }
float x = parseFloat(); pathHandler.linetoHorizontalRel(x);
protected void parseh() throws ParseException { read(); skipSpaces(); for (;;) { switch (current) { case '+': case '-': case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': try { float x = parseFloat(); pathHandler.linetoHorizontalRel(x); } catch (NumberFormatException e) { reportError("character.unexpected", new Object[] { new Integer(current) }); skipSubPath(); return; } break; default: return; } skipCommaSpaces(); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/18cf7f4389e32536616bfa061ce5b22e568000c9/PathParser.java/buggy/sources/org/apache/batik/parser/PathParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 76, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 7457, 12077, 5621, 202, 1884, 261, 25708, 13, 288, 202, 565, 1620, 261, 2972, 13, 288, 202, 565, 648, 15126, 4278, 648, 4014, 30, 648, 2611, 30, 202, 565, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 202, 565, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 202, 202, 698, 288, 1082, 565, 1431, 619, 273, 13711, 5621, 1082, 565, 589, 1503, 18, 7511, 11453, 14457, 1971, 12, 92, 1769, 202, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 5411, 17887, 2932, 11560, 18, 21248, 3113, 13491, 394, 1033, 8526, 288, 394, 2144, 12, 2972, 13, 15549, 1082, 565, 2488, 1676, 743, 5621, 1082, 565, 327, 31, 202, 202, 97, 202, 202, 8820, 31, 202, 565, 805, 30, 202, 202, 2463, 31, 202, 565, 289, 202, 565, 2488, 15594, 12077, 5621, 202, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 76, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 7457, 12077, 5621, 202, 1884, 261, 25708, 13, 288, 202, 565, 1620, 261, 2972, 13, 288, 202, 565, 648, 15126, 4278, 648, 4014, 30, 648, 2611, 30, 202, 565, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 202, 565, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 202, 202, 698, 288, 1082, 565, 1431, 619, 273, 13711, 5621, 1082, 565, 589, 1503, 18, 7511, 11453, 14457, 1971, 12, 92, 1769, 202, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 5411, 17887, 2 ]
public org.quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { org.quickfix.field.LegSecurityID value = new org.quickfix.field.LegSecurityID();
public quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { quickfix.field.LegSecurityID value = new quickfix.field.LegSecurityID();
public org.quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { org.quickfix.field.LegSecurityID value = new org.quickfix.field.LegSecurityID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceReport.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 336, 8329, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 336, 8329, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String baseURI = this.ownerNode.getBaseURI();
String baseURI = (this.ownerNode != null) ? this.ownerNode.getBaseURI() : null ;
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } //Absolute base URI is computed according to XML Base (http://www.w3.org/TR/xmlbase/#granularity) //1. the base URI specified by an xml:base attribute on the element, if one exists if (attributes != null) { Attr attrNode = (Attr)attributes.getNamedItem("xml:base"); if (attrNode != null) { String uri = attrNode.getNodeValue(); if (uri.length() != 0 ) {// attribute value is always empty string try { uri = new URI(uri).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ // REVISIT: what should happen in this case? return null; } return uri; } } } //2.the base URI of the element's parent element within the document or external entity, //if one exists String parentElementBaseURI = this.parentNode().getBaseURI() ; //base URI of parent element is not null if(parentElementBaseURI != null){ try { //return valid absolute base URI return new URI(parentElementBaseURI).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ // REVISIT: what should happen in this case? return null; } } //3. the base URI of the document entity or external entity containing the element String baseURI = this.ownerNode.getBaseURI(); if(baseURI != null){ try { //return valid absolute base URI return new URI(baseURI).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ // REVISIT: what should happen in this case? return null; } } return null; } //getBaseURI
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0702a3bf283cca2d5f97e7f06c9755a43bf34f27/ElementImpl.java/buggy/src/org/apache/xerces/dom/ElementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8297, 3098, 1435, 288, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 368, 10368, 1026, 3699, 353, 8470, 4888, 358, 3167, 3360, 261, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 2902, 1969, 21067, 75, 27234, 13, 3639, 368, 21, 18, 225, 326, 1026, 3699, 1269, 635, 392, 2025, 30, 1969, 1566, 603, 326, 930, 16, 309, 1245, 1704, 3639, 309, 261, 4350, 480, 446, 13, 288, 5411, 11289, 1604, 907, 273, 261, 3843, 13, 4350, 18, 588, 7604, 1180, 2932, 2902, 30, 1969, 8863, 5411, 309, 261, 1747, 907, 480, 446, 13, 288, 7734, 514, 2003, 273, 225, 1604, 907, 18, 588, 907, 620, 5621, 7734, 309, 261, 1650, 18, 2469, 1435, 480, 374, 262, 288, 759, 1566, 460, 353, 3712, 1008, 533, 10792, 775, 288, 15604, 2003, 273, 394, 3699, 12, 1650, 2934, 10492, 5621, 10792, 289, 10792, 1044, 261, 3341, 18, 19211, 18, 92, 264, 764, 18, 1367, 18, 3098, 18, 18695, 3098, 503, 425, 15329, 13491, 368, 2438, 26780, 1285, 30, 4121, 1410, 5865, 316, 333, 648, 35, 13491, 327, 446, 31, 10792, 289, 10792, 327, 2003, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 368, 22, 18, 5787, 1026, 3699, 434, 326, 930, 1807, 982, 930, 3470, 326, 1668, 578, 3903, 1522, 16, 3639, 368, 430, 1245, 1704, 3639, 514, 30363, 2171, 3098, 273, 333, 18, 2938, 907, 7675, 588, 2171, 3098, 1435, 274, 3639, 368, 1969, 3699, 434, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8297, 3098, 1435, 288, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 368, 10368, 1026, 3699, 353, 8470, 4888, 358, 3167, 3360, 261, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 2902, 1969, 21067, 75, 27234, 13, 3639, 368, 21, 18, 225, 326, 1026, 3699, 1269, 635, 392, 2025, 30, 1969, 1566, 603, 326, 930, 16, 309, 1245, 1704, 3639, 309, 261, 4350, 480, 446, 13, 288, 5411, 11289, 1604, 907, 273, 261, 3843, 13, 4350, 18, 588, 7604, 1180, 2932, 2902, 30, 1969, 8863, 5411, 309, 261, 1747, 907, 480, 446, 13, 288, 7734, 514, 2003, 273, 225, 1604, 907, 18, 588, 907, 620, 5621, 2 ]
m_provisioner.addServiceHTTP("MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "202", "Home", "/index.html", null, null, null); checkHTTPConfiguration("MyHTTP", "MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "202", "Home", "/index.html", null, null, null);
m_provisioner.addServiceHTTP("MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "202", "Home", "/index.html", "user", "passwd", null); checkHTTPConfiguration("MyHTTP", "MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "202", "Home", "/index.html", "user", "passwd", null);
public void testAddServiceHTTP() throws Exception { expectUpdateEvent(); expectRrdInitialize(); m_provisioner.addServiceHTTP("MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "202", "Home", "/index.html", null, null, null); checkHTTPConfiguration("MyHTTP", "MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "202", "Home", "/index.html", null, null, null); verifyEvents(); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/c98215f624a5ab0d8d5d23cb229809d617ae738d/OpenNMSProvisionerTest.java/clean/src/services/org/opennms/netmgt/xmlrpcd/OpenNMSProvisionerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1179, 3693, 1435, 1216, 1185, 288, 3639, 4489, 1891, 1133, 5621, 3639, 4489, 54, 13623, 7520, 5621, 3639, 312, 67, 17051, 264, 18, 1289, 1179, 3693, 2932, 12062, 3693, 3113, 11201, 16, 576, 28855, 16, 576, 3787, 3787, 16, 576, 3787, 16, 576, 3787, 28855, 16, 315, 3190, 82, 959, 18, 832, 3113, 576, 2138, 16, 315, 18212, 3113, 315, 8684, 3113, 2206, 1615, 18, 2620, 3113, 446, 16, 446, 16, 446, 1769, 3639, 866, 3693, 1750, 2932, 12062, 3693, 3113, 315, 12062, 3693, 3113, 11201, 16, 576, 28855, 16, 576, 3787, 3787, 16, 576, 3787, 16, 576, 3787, 28855, 16, 315, 3190, 82, 959, 18, 832, 3113, 576, 2138, 16, 315, 18212, 3113, 315, 8684, 3113, 2206, 1615, 18, 2620, 3113, 446, 16, 446, 16, 446, 1769, 3639, 3929, 3783, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1179, 3693, 1435, 1216, 1185, 288, 3639, 4489, 1891, 1133, 5621, 3639, 4489, 54, 13623, 7520, 5621, 3639, 312, 67, 17051, 264, 18, 1289, 1179, 3693, 2932, 12062, 3693, 3113, 11201, 16, 576, 28855, 16, 576, 3787, 3787, 16, 576, 3787, 16, 576, 3787, 28855, 16, 315, 3190, 82, 959, 18, 832, 3113, 576, 2138, 16, 315, 18212, 3113, 315, 8684, 3113, 2206, 1615, 18, 2620, 3113, 446, 16, 446, 16, 446, 1769, 3639, 866, 3693, 1750, 2932, 12062, 3693, 3113, 315, 12062, 3693, 3113, 11201, 16, 576, 28855, 16, 576, 3787, 3787, 16, 576, 3787, 16, 576, 3787, 28855, 16, 315, 3190, 82, 959, 18, 832, 3113, 576, 2138, 16, 315, 18212, 3113, 2 ]
". Instead it returned " + query.size(),
". Instead it returned " + query.size(),
public void testCompareFilter() { DataQuery query = getDefaultQuery(); DataOperation operation = SessionManager.getSession() .retrieveDataOperation("examples.DataOperationWithBindVariablesAndNull"); operation.setParameter("priority", new Integer(3)); operation.setParameter("description", null); operation.execute(); query.addFilter("description is null"); long numberNull = query.size(); FilterFactory factory = query.getFilterFactory(); // test the EQUALS query = getDefaultQuery(); Filter filter = query.addFilter(factory.compare("upper(description)", FilterFactory.EQUALS, ":description")); filter.set("description", null); assert("The EQUALS filter with null should have returned " + numberNull + " but it actually returned " + query.size(), numberNull == query.size()); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.EQUALS, ":description")); filter.set("description", "Read item 0"); assert("The EQUALS filter should have returned zero rows. Instead " + "it returned " + query.size(), query.size() == 0); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.EQUALS, "upper(:description)")); filter.set("description", "Read item 0"); assert("The EQUALS filter should have returned one row. Instead " + "it returned " + query.size(), query.size() == 1); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.EQUALS, ":description")); filter.set("description", "READ ITEM 0"); assert("The EQUALS filter should have returned one row. Instead " + "it returned " + query.size(), query.size() == 1); // test the NOT_EQUALS query = getDefaultQuery(); long totalRows = query.size(); query = getDefaultQuery(); query.addFilter("description is not null"); long numberNotNull = query.size(); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.NOT_EQUALS, ":description")); filter.set("description", null); assert("The NOT_EQUALS filter with null should have returned " + numberNotNull + " but it actually returned " + query.size(), numberNotNull == query.size()); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.NOT_EQUALS, ":description")); filter.set("description", "Read item 0"); assert("The NOT_EQUALS filter should have returned " + totalRows + ". " + "Instead it returned " + query.size(), query.size() == totalRows); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.NOT_EQUALS, "upper(:description)")); filter.set("description", "Read item 0"); assert("The NOT_EQUALS filter should have returned " + (totalRows - 1) + ". Instead it returned " + query.size(), query.size() == totalRows - 1); query = getDefaultQuery(); filter = query.addFilter(factory.compare("upper(description)", FilterFactory.NOT_EQUALS, ":description")); filter.set("description", "READ ITEM 0"); assert("The NOT_EQUALS filter should have returned " + (totalRows - 1) + ". Instead it returned " + query.size(), query.size() == totalRows - 1); /* // Still need to test the following filters System.out.println(factory.compare("upper(one)", FilterFactory.LESS_THAN, "upper(two)")); System.out.println(factory.compare("upper(one)", FilterFactory.GREATER_THAN, "upper(two)")); System.out.println(factory.compare("upper(one)", FilterFactory.LESS_THAN_EQUALS, "upper(two)")); System.out.println(factory.compare("upper(one)", FilterFactory.GREATER_THAN_EQUALS, "upper(two)")); System.out.println(factory.compare("upper(one)", FilterFactory.STARTS_WITH, "upper(two)")); System.out.println(factory.compare("upper(one)", FilterFactory.ENDS_WITH, "upper(two)")); System.out.println(factory.compare("upper(one)", FilterFactory.CONTAINS, "upper(two)"));*/ } /** * We want to alllow developers to filter based on items * that are not selected from the DataQuery */ public void testFilterWithArbitraryVariables() { DataQuery dq = getSession().retrieveQuery("examples.DataQueryWithMax"); // This should be uncommented when people can filter by // variables not in their MAP statment /* assert("The query should return at least one line", dq.next()); BigDecimal maxPriority = (BigDecimal) dq.get("priority"); // s_log.info("XXXX the priroity is " + maxPriority); assert("The query should only return one line", !dq.next()); dq = getSession().retrieveQuery("examples.DataQueryWithMax"); dq.addEqualsFilter("action", "write"); assert("The query should return at least one line", dq.next()); // s_log.info("YYYYY...The item from the filter = " + (BigDecimal) dq.get("priority")); assert("The query should only return one line", !dq.next()); dq = getSession().retrieveQuery("examples.DataQueryWithMax"); dq.addEqualsFilter("action", "read"); assert("The query should return at least one line", dq.next()); // s_log.info("YYYYY...The item from the filter = " + (BigDecimal) dq.get("priority")); assert("The query should only return one line", !dq.next()); */ }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/FilterTest.java/buggy/archive/core-platform/test/src/com/arsdigita/persistence/FilterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8583, 1586, 1435, 288, 1171, 1910, 1138, 843, 273, 4829, 1138, 5621, 3639, 1910, 2988, 1674, 273, 3877, 1318, 18, 588, 2157, 1435, 5411, 263, 17466, 751, 2988, 2932, 16858, 18, 751, 2988, 1190, 3357, 6158, 1876, 2041, 8863, 3639, 1674, 18, 542, 1662, 2932, 8457, 3113, 394, 2144, 12, 23, 10019, 3639, 1674, 18, 542, 1662, 2932, 3384, 3113, 446, 1769, 3639, 1674, 18, 8837, 5621, 3639, 843, 18, 1289, 1586, 2932, 3384, 353, 446, 8863, 3639, 1525, 1300, 2041, 273, 843, 18, 1467, 5621, 3639, 4008, 1733, 3272, 273, 843, 18, 588, 1586, 1733, 5621, 7734, 368, 1842, 326, 27557, 3639, 843, 273, 4829, 1138, 5621, 3639, 4008, 1034, 273, 843, 18, 1289, 1586, 12, 6848, 18, 9877, 2932, 5797, 12, 3384, 2225, 16, 4766, 7682, 4008, 1733, 18, 12853, 55, 16, 4766, 7682, 6398, 3384, 7923, 1769, 3639, 1034, 18, 542, 2932, 3384, 3113, 446, 1769, 3639, 1815, 2932, 1986, 27557, 1034, 598, 446, 1410, 1240, 2106, 315, 397, 7734, 1300, 2041, 397, 315, 1496, 518, 6013, 2106, 315, 397, 843, 18, 1467, 9334, 9079, 1300, 2041, 422, 843, 18, 1467, 10663, 7734, 843, 273, 4829, 1138, 5621, 3639, 1034, 273, 843, 18, 1289, 1586, 12, 6848, 18, 9877, 2932, 5797, 12, 3384, 2225, 16, 4766, 5375, 4008, 1733, 18, 12853, 55, 16, 4766, 5375, 6398, 3384, 7923, 1769, 3639, 1034, 18, 542, 2932, 3384, 3113, 315, 1994, 761, 374, 8863, 3639, 1815, 2932, 1986, 27557, 1034, 1410, 1240, 2106, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8583, 1586, 1435, 288, 1171, 1910, 1138, 843, 273, 4829, 1138, 5621, 3639, 1910, 2988, 1674, 273, 3877, 1318, 18, 588, 2157, 1435, 5411, 263, 17466, 751, 2988, 2932, 16858, 18, 751, 2988, 1190, 3357, 6158, 1876, 2041, 8863, 3639, 1674, 18, 542, 1662, 2932, 8457, 3113, 394, 2144, 12, 23, 10019, 3639, 1674, 18, 542, 1662, 2932, 3384, 3113, 446, 1769, 3639, 1674, 18, 8837, 5621, 3639, 843, 18, 1289, 1586, 2932, 3384, 353, 446, 8863, 3639, 1525, 1300, 2041, 273, 843, 18, 1467, 5621, 3639, 4008, 1733, 3272, 273, 843, 18, 588, 1586, 1733, 5621, 7734, 368, 1842, 326, 27557, 3639, 843, 273, 4829, 1138, 5621, 3639, 4008, 1034, 273, 843, 18, 1289, 2 ]
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 44) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '/': alt1=37; break; case '=': alt1=29; break; case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("976:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:17: '!' { match('!'); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:23: '@' { match('@'); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:29: '$' { match('$'); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:35: '%' { match('%'); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:41: '^' { match('^'); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:47: '&' { match('&'); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:53: '*' { match('*'); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:59: '_' { match('_'); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:65: '-' { match('-'); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:977:71: '+' { match('+'); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:19: '|' { match('|'); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:25: ',' { match(','); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:31: '{' { match('{'); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:37: '}' { match('}'); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:43: '[' { match('['); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:49: ']' { match(']'); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:55: '=' { match('='); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:61: '/' { match('/'); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:67: '(' { match('('); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:73: ')' { match(')'); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:978:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:19: '||' { match("||"); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:41: '++' { match("++"); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:48: '--' { match("--"); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:63: '==' { match("=="); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:979:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:980:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:980:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 44, MISC_StartIndex); } } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 13291, 13, 262, 288, 327, 274, 289, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 29, 4700, 30, 4033, 30, 261, 15502, 571, 9175, 571, 11874, 571, 9089, 571, 19161, 571, 9824, 571, 5306, 571, 4427, 571, 4014, 571, 10058, 571, 8030, 571, 3316, 571, 9790, 571, 9571, 571, 8375, 571, 8641, 571, 5214, 571, 2023, 571, 7321, 571, 5777, 571, 15053, 571, 5282, 571, 6699, 16637, 571, 5183, 26045, 571, 2368, 17685, 11, 571, 15126, 6797, 571, 16979, 571, 296, 9778, 1870, 571, 22853, 571, 15126, 2218, 571, 15196, 6797, 571, 2400, 2218, 571, 15196, 6627, 571, 14609, 2218, 571, 15196, 4035, 571, 1173, 2218, 571, 15196, 2473, 262, 5411, 509, 3770, 21, 33, 6418, 31, 5411, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 5411, 648, 11817, 4278, 7734, 3770, 21, 33, 21, 31, 7734, 898, 31, 5411, 648, 4622, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 13291, 13, 262, 288, 327, 274, 289, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 29, 2 ]
postReplaceChild(this.optionalQualifier, name, QUALIFIER_PROPERTY);
postReplaceChild(oldChild, name, QUALIFIER_PROPERTY);
public void setQualifier(Name name) { preReplaceChild(this.optionalQualifier, name, QUALIFIER_PROPERTY); this.optionalQualifier = name; postReplaceChild(this.optionalQualifier, name, QUALIFIER_PROPERTY); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/38b81cceafabaca157320ce2793e74f4a9686fd7/SuperMethodInvocation.java/buggy/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperMethodInvocation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 16185, 12, 461, 508, 13, 288, 202, 202, 1484, 5729, 1763, 12, 2211, 18, 10444, 16185, 16, 508, 16, 10110, 1013, 10591, 67, 9900, 1769, 202, 202, 2211, 18, 10444, 16185, 273, 508, 31, 202, 202, 2767, 5729, 1763, 12, 2211, 18, 10444, 16185, 16, 508, 16, 10110, 1013, 10591, 67, 9900, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 16185, 12, 461, 508, 13, 288, 202, 202, 1484, 5729, 1763, 12, 2211, 18, 10444, 16185, 16, 508, 16, 10110, 1013, 10591, 67, 9900, 1769, 202, 202, 2211, 18, 10444, 16185, 273, 508, 31, 202, 202, 2767, 5729, 1763, 12, 2211, 18, 10444, 16185, 16, 508, 16, 10110, 1013, 10591, 67, 9900, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (m_classIsNominal) { if (t == inst.classValue())
if (m_classIsNominal) { if (t == inst.classValue()) {
private double estimateAccuracy(BitSet feature_set, int num_atts) throws Exception { int i; Instances newInstances; int [] fs = new int [num_atts]; double acc = 0.0; double [][] evalArray; double [] instA = new double [num_atts]; int classI = m_theInstances.classIndex(); int index = 0; for (i=0;i<m_numAttributes;i++) if (feature_set.get(i)) fs[index++] = i; // create new hash table m_entries = new Hashtable((int)(m_theInstances.numInstances() * 1.5)); // insert instances into the hash table for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); insertIntoTable(inst, instA); } if (m_CVFolds == 1) { // calculate leave one out error for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); double t = classifyInstanceLeaveOneOut(inst, instA); if (m_classIsNominal) { if (t == inst.classValue()) acc+=inst.weight(); } else acc += ((inst.weight() * (t - inst.classValue())) * (inst.weight() * (t - inst.classValue()))); // weight_sum += inst.weight(); } } else { m_theInstances.randomize(m_rr); m_theInstances.stratify(m_CVFolds); // calculate 10 fold cross validation error for (i=0;i<m_CVFolds;i++) { Instances insts = m_theInstances.testCV(m_CVFolds,i); acc += classifyFoldCV(insts, fs); } } if (m_classIsNominal) return (acc / m_theInstances.sumOfWeights()); else return -(Math.sqrt(acc / m_theInstances.sumOfWeights())); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/9e72041e2204a61830b9cccfa8173a6ed2c39eb5/DecisionTable.java/buggy/weka/classifiers/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1645, 11108, 37, 10988, 12, 5775, 694, 2572, 67, 542, 16, 509, 818, 67, 270, 3428, 13, 565, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 18357, 394, 5361, 31, 565, 509, 5378, 2662, 273, 394, 509, 306, 2107, 67, 270, 3428, 15533, 565, 1645, 4078, 273, 374, 18, 20, 31, 565, 1645, 5378, 8526, 5302, 1076, 31, 565, 1645, 5378, 1804, 37, 273, 394, 1645, 306, 2107, 67, 270, 3428, 15533, 565, 509, 667, 45, 273, 312, 67, 5787, 5361, 18, 1106, 1016, 5621, 3639, 509, 770, 273, 374, 31, 565, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 2107, 2498, 31, 77, 27245, 1377, 309, 261, 7238, 67, 542, 18, 588, 12, 77, 3719, 202, 2556, 63, 1615, 9904, 65, 273, 277, 31, 3639, 368, 752, 394, 1651, 1014, 565, 312, 67, 8219, 273, 394, 18559, 12443, 474, 21433, 81, 67, 5787, 5361, 18, 2107, 5361, 1435, 380, 404, 18, 25, 10019, 565, 368, 2243, 3884, 1368, 326, 1651, 1014, 565, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 2107, 5361, 31, 77, 27245, 565, 288, 1377, 5180, 1804, 273, 312, 67, 5787, 5361, 18, 1336, 12, 77, 1769, 1377, 364, 261, 474, 525, 33, 20, 31, 78, 32, 2556, 18, 2469, 31, 78, 27245, 202, 430, 261, 2556, 63, 78, 65, 422, 667, 45, 13, 202, 225, 1804, 37, 63, 78, 65, 273, 3698, 18, 6694, 67, 4051, 31, 368, 3315, 364, 326, 667, 202, 12107, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1645, 11108, 37, 10988, 12, 5775, 694, 2572, 67, 542, 16, 509, 818, 67, 270, 3428, 13, 565, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 18357, 394, 5361, 31, 565, 509, 5378, 2662, 273, 394, 509, 306, 2107, 67, 270, 3428, 15533, 565, 1645, 4078, 273, 374, 18, 20, 31, 565, 1645, 5378, 8526, 5302, 1076, 31, 565, 1645, 5378, 1804, 37, 273, 394, 1645, 306, 2107, 67, 270, 3428, 15533, 565, 509, 667, 45, 273, 312, 67, 5787, 5361, 18, 1106, 1016, 5621, 3639, 509, 770, 273, 374, 31, 565, 364, 261, 77, 33, 20, 31, 77, 32, 81, 67, 2107, 2498, 31, 77, 27245, 1377, 309, 261, 7238, 67, 542, 18, 588, 12, 2 ]
decompiler.addString(xml);
decompiler.addName(xml);
private Node xmlInitializer() throws IOException { int tt = ts.getFirstXMLToken(); if (tt != Token.XML && tt != Token.XMLEND) { reportError("msg.syntax"); return null; } /* Make a NEW node to append to. */ Node pnXML = nf.createLeaf(Token.NEW); decompiler.addToken(Token.NEW); decompiler.addToken(Token.DOT); String xml = ts.getString(); boolean fAnonymous = xml.trim().startsWith("<>"); decompiler.addName(fAnonymous ? "XMLList" : "XML"); Node pn = nf.createName(fAnonymous ? "XMLList" : "XML"); nf.addChildToBack(pnXML, pn); pn = null; Node expr; for (;;tt = ts.getNextXMLToken()) { switch (tt) { case Token.XML: xml = ts.getString(); decompiler.addString(xml); mustMatchToken(Token.LC, "msg.syntax"); decompiler.addToken(Token.LC); expr = (peekToken() == Token.RC) ? nf.createString("") : expr(false); mustMatchToken(Token.RC, "msg.syntax"); decompiler.addToken(Token.RC); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } int nodeType; if (ts.isXMLAttribute()) { nodeType = Token.ESCXMLATTR; } else { nodeType = Token.ESCXMLTEXT; } expr = nf.createUnary(nodeType, expr); pn = nf.createBinary(Token.ADD, pn, expr); break; case Token.XMLEND: xml = ts.getString(); decompiler.addString(xml); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } nf.addChildToBack(pnXML, pn); return pnXML; default: reportError("msg.syntax"); return null; } } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/b95c09649bc1271bfd1e276600f8d302777292ac/Parser.java/clean/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 2025, 14729, 1435, 1216, 1860, 565, 288, 3639, 509, 3574, 273, 3742, 18, 588, 3759, 4201, 1345, 5621, 3639, 309, 261, 748, 480, 3155, 18, 4201, 597, 3574, 480, 3155, 18, 60, 9687, 2908, 13, 288, 5411, 17887, 2932, 3576, 18, 14308, 8863, 5411, 327, 446, 31, 3639, 289, 3639, 1748, 4344, 279, 12887, 756, 358, 714, 358, 18, 1195, 3639, 2029, 11059, 4201, 273, 13958, 18, 2640, 9858, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 17591, 1769, 3639, 514, 2025, 273, 3742, 18, 588, 780, 5621, 3639, 1250, 284, 18792, 273, 2025, 18, 5290, 7675, 17514, 1190, 2932, 32, 2984, 1769, 3639, 443, 9576, 18, 1289, 461, 12, 74, 18792, 692, 315, 4201, 682, 6, 294, 315, 4201, 8863, 3639, 2029, 11059, 273, 13958, 18, 2640, 461, 12, 74, 18792, 692, 315, 4201, 682, 6, 294, 315, 4201, 8863, 3639, 13958, 18, 1289, 1763, 774, 2711, 12, 7449, 4201, 16, 11059, 1769, 3639, 11059, 273, 446, 31, 3639, 2029, 3065, 31, 3639, 364, 261, 25708, 748, 273, 3742, 18, 588, 2134, 4201, 1345, 10756, 288, 5411, 1620, 261, 748, 13, 288, 5411, 648, 3155, 18, 4201, 30, 7734, 2025, 273, 3742, 18, 588, 780, 5621, 7734, 443, 9576, 18, 1289, 461, 12, 2902, 1769, 7734, 1297, 2060, 1345, 12, 1345, 18, 13394, 16, 315, 3576, 18, 14308, 8863, 7734, 443, 9576, 18, 1289, 1345, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 2025, 14729, 1435, 1216, 1860, 565, 288, 3639, 509, 3574, 273, 3742, 18, 588, 3759, 4201, 1345, 5621, 3639, 309, 261, 748, 480, 3155, 18, 4201, 597, 3574, 480, 3155, 18, 60, 9687, 2908, 13, 288, 5411, 17887, 2932, 3576, 18, 14308, 8863, 5411, 327, 446, 31, 3639, 289, 3639, 1748, 4344, 279, 12887, 756, 358, 714, 358, 18, 1195, 3639, 2029, 11059, 4201, 273, 13958, 18, 2640, 9858, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 17591, 1769, 3639, 514, 2025, 273, 3742, 18, 588, 780, 5621, 3639, 1250, 284, 18792, 273, 2025, 18, 5290, 7675, 17514, 1190, 2 ]