rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if ( null != (String)session.getAttribute( "next_url" ) ) {
if ( null != session.getAttribute( "next_url" ) ) {
private void showChangeUserPage( String userToChangeId, IMCServiceInterface imcref, Properties tmp_userInfo, Vector tmp_phones, UserDomainObject user, HttpServletResponse res, HttpSession session, Vector phoneTypesV, boolean superadmin, boolean useradmin, HttpServletRequest req ) throws IOException { // get a user object by userToChangeId UserDomainObject userToChange = null; if ( null != userToChangeId ) { userToChange = imcref.getImcmsAuthenticatorAndUserAndRoleMapper().getUser( Integer.parseInt( userToChangeId ) ); } String login_name = ""; String password1 = ""; String new_pwd1 = ""; //hidden fildes String new_pwd2 = ""; //hidden fildes String first_name = ""; String last_name = ""; String title = ""; String company = ""; String address = ""; String city = ""; String zip = ""; String country = ""; String country_council = ""; String email = ""; //Lets set values from session if we have any if ( tmp_userInfo != null ) { login_name = tmp_userInfo.getProperty( "login_name" ); password1 = tmp_userInfo.getProperty( "password1" ); new_pwd1 = tmp_userInfo.getProperty( "new_pwd1" ); //hidden fildes new_pwd2 = tmp_userInfo.getProperty( "new_pwd2" ); //hidden fildes first_name = tmp_userInfo.getProperty( "first_name" ); last_name = tmp_userInfo.getProperty( "last_name" ); title = tmp_userInfo.getProperty( "title" ); company = tmp_userInfo.getProperty( "company" ); address = tmp_userInfo.getProperty( "address" ); city = tmp_userInfo.getProperty( "city" ); zip = tmp_userInfo.getProperty( "zip" ); country = tmp_userInfo.getProperty( "country" ); country_council = tmp_userInfo.getProperty( "country_council" ); email = tmp_userInfo.getProperty( "email" ); } else { login_name = userToChange.getLoginName(); password1 = userToChange.getPassword(); first_name = userToChange.getFirstName(); last_name = userToChange.getLastName(); title = userToChange.getTitle(); company = userToChange.getCompany(); address = userToChange.getAddress(); city = userToChange.getCity(); zip = userToChange.getZip(); country = userToChange.getCountry(); country_council = userToChange.getCountyCouncil(); email = userToChange.getEmailAddress(); // userType= tmp_userType; //active = tmp_userInfo.getProperty("active"); //userCreateDate = tmp_userInfo.getProperty("createDate") ; } // Lets get all users phone numbers from session if we have any else we get them from db // return value from db= phone_id, number, user_id, phonetype_id, typename String[][] phonesArr = imcref.sqlProcedureMulti( "GetUserPhoneNumbers", new String[]{ "" + userToChange.getId() } ); // Get a new Vector: phone_id, number, user_id, phonetype_id, typename ex. 10, 46 498 123456, 3, 1 Vector phoneNumbers = getPhonesArrayVector( phonesArr ); if ( tmp_phones.size() > 0 ) { phoneNumbers = tmp_phones; } // Get a new Vector: phone_id, (typename) number ex. { 10, (Hem) 46 498 123456 } Vector phonesV = this.getPhonesVector( phoneNumbers, "" + user.getLangId(), imcref ); String selected = ""; if ( phonesV.size() > 0 ) { selected = (String)phonesV.get( 0 ); } //System.out.println("selected= " + selected); String phones = Html.createOptionList( selected, phonesV ); Utility.setDefaultHtmlContentType( res ); // set content type Writer out = res.getWriter(); Vector vec = new Vector(); vec.add( "#CURR_USER_ID#" ); vec.add( userToChangeId ); vec.add( "#LOGIN_NAME#" ); vec.add( login_name ); // Lets fix the password string to show just **** vec.add( "#PWD1#" ); vec.add( doPasswordString( password1 ) ); vec.add( "#PWD2#" ); vec.add( doPasswordString( password1 ) ); vec.add( "#NEW_PWD1#" ); vec.add( new_pwd1 ); //hidden fildes vec.add( "#NEW_PWD2#" ); vec.add( new_pwd2 ); //hidden fildes vec.add( "#FIRST_NAME#" ); vec.add( first_name ); vec.add( "#LAST_NAME#" ); vec.add( last_name ); vec.add( "#TITLE#" ); vec.add( title ); vec.add( "#COMPANY#" ); vec.add( company ); vec.add( "#ADDRESS#" ); vec.add( address ); vec.add( "#ZIP#" ); vec.add( zip ); vec.add( "#CITY#" ); vec.add( city ); vec.add( "#COUNTRY_COUNCIL#" ); vec.add( country_council ); vec.add( "#COUNTRY#" ); vec.add( country ); vec.add( "#EMAIL#" ); vec.add( email ); vec.add( "#NEXT_URL#" ); if ( null != (String)session.getAttribute( "next_url" ) ) { vec.add( session.getAttribute( "next_url" ) ); } else { vec.add( "" ); } //add the phone nr fields vec.add( "#PHONE_ID#" ); vec.add( "" ); vec.add( "#COUNTRY_CODE#" ); vec.add( "" ); vec.add( "#AREA_CODE#" ); vec.add( "" ); vec.add( "#NUMBER#" ); vec.add( "" ); // phonetype list String phonetypes = Html.createOptionList( "1", phoneTypesV ); vec.add( "#PHONETYPES_MENU#" ); vec.add( phonetypes ); vec.add( "#PHONES_MENU#" ); vec.add( phones ); // Lets add html for admin_part in AdminUserResp vec.add( "#ADMIN_PART#" ); if ( superadmin || ( useradmin && user.getId() != userToChange.getId() ) ) { vec.add( createAdminPartHtml( user, userToChange, imcref, req, session ) ); } else { vec.add( "" ); } String adminTask = req.getParameter( "adminTask" ); if ( adminTask == null ) { adminTask = "SAVE_CHANGED_USER"; } vec.add( "#ADMIN_TASK#" ); vec.add( adminTask ); String languagesHtmlOptionList = getLanguagesHtmlOptionList( user, imcref, userToChange ); vec.add( "#LANG_TYPES#" ); vec.add( languagesHtmlOptionList ); //store all data into the session session.setAttribute( "userToChange", userToChangeId ); session.setAttribute( "Ok_phoneNumbers", phoneNumbers ); //session.setAttribute("RESET_langList", langList); //session.setAttribute("RESET_selectedLangV", selectedLangV); // Lets renove session we dont need anymore. try { session.removeAttribute( "tempUserRoles" ); session.removeAttribute( "tempUseradminRoles" ); session.removeAttribute( "tempUserType" ); session.removeAttribute( "tempUser" ); //session.getAttribute("Ok_phoneNumbers"); } catch ( IllegalStateException ise ) { log( "session has been invalidated so no need to remove parameters" ); } String outputString = imcref.getAdminTemplate( HTML_RESPONSE, user, vec ); out.write( outputString ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ebf0781020199f986e0621851cc0ceaef92969e2/AdminUserProps.java/clean/server/src/com/imcode/imcms/servlet/superadmin/AdminUserProps.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 3043, 1299, 1964, 12, 514, 729, 774, 3043, 548, 16, 6246, 39, 18348, 709, 71, 1734, 16, 6183, 1853, 67, 1355, 966, 16, 19694, 5589, 1853, 67, 844, 5322, 16, 2177, 3748, 921, 729, 16, 12446, 400, 16, 19694, 26166, 1339, 16, 5589, 7353, 2016, 58, 16, 1250, 2240, 3666, 16, 1250, 729, 3666, 16, 19694, 9984, 1111, 262, 1216, 1860, 288, 3639, 368, 336, 279, 729, 733, 635, 729, 774, 3043, 548, 3639, 2177, 3748, 921, 729, 774, 3043, 273, 446, 31, 3639, 309, 261, 446, 480, 729, 774, 3043, 548, 262, 288, 5411, 729, 774, 3043, 273, 709, 71, 1734, 18, 588, 1170, 6851, 18977, 1876, 1299, 1876, 2996, 4597, 7675, 588, 1299, 12, 2144, 18, 2670, 1702, 12, 729, 774, 3043, 548, 262, 11272, 3639, 289, 3639, 514, 3925, 67, 529, 273, 1408, 31, 3639, 514, 2201, 21, 273, 1408, 31, 3639, 514, 394, 67, 27487, 21, 273, 1408, 31, 282, 368, 6345, 284, 545, 281, 3639, 514, 394, 67, 27487, 22, 273, 1408, 31, 282, 368, 6345, 284, 545, 281, 3639, 514, 1122, 67, 529, 273, 1408, 31, 3639, 514, 1142, 67, 529, 273, 1408, 31, 3639, 514, 2077, 273, 1408, 31, 3639, 514, 9395, 273, 1408, 31, 3639, 514, 1758, 273, 1408, 31, 3639, 514, 12797, 273, 1408, 31, 3639, 514, 3144, 273, 1408, 31, 3639, 514, 5251, 273, 1408, 31, 3639, 514, 5251, 67, 71, 465, 71, 330, 273, 1408, 31, 3639, 514, 2699, 273, 1408, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 3043, 1299, 1964, 12, 514, 729, 774, 3043, 548, 16, 6246, 39, 18348, 709, 71, 1734, 16, 6183, 1853, 67, 1355, 966, 16, 19694, 5589, 1853, 67, 844, 5322, 16, 2177, 3748, 921, 729, 16, 12446, 400, 16, 19694, 26166, 1339, 16, 5589, 7353, 2016, 58, 16, 1250, 2240, 3666, 16, 1250, 729, 3666, 16, 19694, 9984, 1111, 262, 1216, 1860, 288, 3639, 368, 336, 279, 729, 733, 635, 729, 774, 3043, 548, 3639, 2177, 3748, 921, 729, 774, 3043, 273, 446, 31, 3639, 309, 261, 446, 480, 729, 774, 3043, 548, 262, 288, 5411, 729, 774, 3043, 273, 709, 71, 1734, 18, 588, 1170, 6851, 18977, 1876, 1299, 1876, 2996, 4597, 7675, 588, 1299, 2 ]
int lastExprType = 0;
private Object statementHelper(TokenStream ts) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case TokenStream.IF: { skipsemi = true; sourceAdd((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object ifTrue = statement(ts); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { sourceAdd((char)ts.RC); sourceAdd((char)ts.ELSE); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); ifFalse = statement(ts); } sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case TokenStream.SWITCH: { skipsemi = true; sourceAdd((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); sourceAdd((char)ts.LP); nf.addChildToBack(pn, expr(ts, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case TokenStream.CASE: sourceAdd((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, false)); sourceAdd((char)ts.COLON); sourceAdd((char)ts.EOL); break; case TokenStream.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); sourceAdd((char)ts.DEFAULT); sourceAdd((char)ts.COLON); sourceAdd((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); break; } case TokenStream.WHILE: { skipsemi = true; sourceAdd((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object body = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case TokenStream.DO: { sourceAdd((char)ts.DO); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts); sourceAdd((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); sourceAdd((char)ts.WHILE); Object cond = condition(ts); pn = nf.createDoWhile(body, cond, lineno); break; } case TokenStream.FOR: { skipsemi = true; sourceAdd((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); sourceAdd((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, true); } else { init = expr(ts, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); sourceAdd((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); sourceAdd((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); sourceAdd((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); sourceAdd((char)ts.RP); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); body = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case TokenStream.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; sourceAdd((char)ts.TRY); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); tryblock = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } sourceAdd((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); sourceAdd((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); sourceAddString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { sourceAdd((char)ts.IF); catchCond = expr(ts, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { sourceAdd((char)ts.FINALLY); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); finallyblock = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case TokenStream.THROW: { int lineno = ts.getLineno(); sourceAdd((char)ts.THROW); pn = nf.createThrow(expr(ts, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case TokenStream.BREAK: { int lineno = ts.getLineno(); sourceAdd((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { sourceAddString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case TokenStream.CONTINUE: { int lineno = ts.getLineno(); sourceAdd((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { sourceAddString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case TokenStream.WITH: { skipsemi = true; sourceAdd((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); sourceAdd((char)ts.LP); Object obj = expr(ts, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); sourceAdd((char)ts.RP); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object body = statement(ts); sourceAdd((char)ts.RC); sourceAdd((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.RETURN: { Object retExpr = null; sourceAdd((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; int lineno = ts.getLineno(); if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { retExpr = expr(ts, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. sourceAdd((char)ts.COLON); sourceAdd((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) { if (nf.getLeafType(pn) != ts.FUNCTION) { reportError(ts, "msg.syntax"); } nf.setFunctionExpressionStatement(pn); } pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { sourceAdd((char)ts.SEMI); sourceAdd((char)ts.EOL); } return pn; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 986, 12443, 3001, 13, 3428, 18, 5501, 1769, 5411, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 5411, 1033, 6941, 273, 2269, 12, 3428, 1769, 5411, 1084, 986, 12443, 3001, 13, 3428, 18, 13394, 1769, 5411, 1084, 986, 12443, 3001, 13, 3428, 18, 5842, 1769, 5411, 1033, 309, 5510, 273, 3021, 12, 3428, 1769, 5411, 1033, 309, 8381, 273, 446, 31, 5411, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 2247, 1090, 3719, 288, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 11529, 1769, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 2247, 1090, 1769, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 13394, 1769, 7734, 1084, 986, 12443, 3001, 13, 3428, 18, 5842, 1769, 7734, 309, 8381, 273, 3021, 12, 3428, 1769, 5411, 289, 5411, 1084, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 986, 12443, 2 ]
specs[i] = stringValue(args[i]).getValue();
specs[i] = stringValue(args[i]).toString();
private String getDelete(IRubyObject[] args) { int argc = checkArgumentCount(args, 1, -1); String[] specs = new String[argc]; for (int i = 0; i < argc; i++) { specs[i] = stringValue(args[i]).getValue(); } String table = setupTable(specs); int strLen = getValue().length(); StringBuffer sbuf = new StringBuffer(strLen); char c; for (int j = 0; j < strLen; j++) { c = getValue().charAt(j); if (table.indexOf(c) == -1) { sbuf.append(c); } } return sbuf.toString(); }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2343, 929, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 474, 1501, 71, 273, 10788, 1380, 12, 1968, 16, 404, 16, 300, 21, 1769, 202, 202, 780, 8526, 10607, 273, 394, 514, 63, 3175, 71, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1501, 71, 31, 277, 27245, 288, 1082, 202, 15115, 63, 77, 65, 273, 19721, 12, 1968, 63, 77, 65, 2934, 24805, 5621, 202, 202, 97, 202, 202, 780, 1014, 273, 3875, 1388, 12, 15115, 1769, 202, 202, 474, 609, 2891, 273, 2366, 7675, 2469, 5621, 202, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 701, 2891, 1769, 202, 202, 3001, 276, 31, 202, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 609, 2891, 31, 525, 27245, 288, 1082, 202, 71, 273, 2366, 7675, 3001, 861, 12, 78, 1769, 1082, 202, 430, 261, 2121, 18, 31806, 12, 71, 13, 422, 300, 21, 13, 288, 9506, 202, 87, 4385, 18, 6923, 12, 71, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 2393, 696, 18, 10492, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2343, 929, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 474, 1501, 71, 273, 10788, 1380, 12, 1968, 16, 404, 16, 300, 21, 1769, 202, 202, 780, 8526, 10607, 273, 394, 514, 63, 3175, 71, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1501, 71, 31, 277, 27245, 288, 1082, 202, 15115, 63, 77, 65, 273, 19721, 12, 1968, 63, 77, 65, 2934, 24805, 5621, 202, 202, 97, 202, 202, 780, 1014, 273, 3875, 1388, 12, 15115, 1769, 202, 202, 474, 609, 2891, 273, 2366, 7675, 2469, 5621, 202, 202, 780, 1892, 2393, 696, 273, 394, 6674, 12, 701, 2891, 1769, 202, 202, 3001, 276, 31, 202, 202, 1884, 2 ]
((PropertiesTableModel)tileProperties.getModel()).update(props); tileProperties.repaint();
*/ ((PropertiesTableModel)tileProperties.getModel()).update(tileProps);
public void updateTileInfo() { if (currentTile == null) { return; } tileProperties.removeAll(); Enumeration keys = currentTile.getProperties(); Properties props = new Properties(); while(keys.hasMoreElements()) { String key = (String) keys.nextElement(); props.put(key, currentTile.getPropertyValue(key)); } ((PropertiesTableModel)tileProperties.getModel()).update(props); tileProperties.repaint(); }
6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/7f76ba0e7f56569165dd7b06de5afa266f11bdec/TileDialog.java/buggy/tiled/mapeditor/TileDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 9337, 966, 1435, 288, 3639, 309, 261, 2972, 9337, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 4769, 2297, 18, 4479, 1595, 5621, 3639, 13864, 1311, 273, 783, 9337, 18, 588, 2297, 5621, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 1323, 12, 2452, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 498, 273, 261, 780, 13, 1311, 18, 4285, 1046, 5621, 2398, 3458, 18, 458, 12, 856, 16, 783, 9337, 18, 588, 16107, 12, 856, 10019, 3639, 289, 3639, 14015, 2297, 1388, 1488, 13, 15368, 2297, 18, 588, 1488, 1435, 2934, 2725, 12, 9693, 1769, 3639, 4769, 2297, 18, 14462, 1598, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 9337, 966, 1435, 288, 3639, 309, 261, 2972, 9337, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 4769, 2297, 18, 4479, 1595, 5621, 3639, 13864, 1311, 273, 783, 9337, 18, 588, 2297, 5621, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 1323, 12, 2452, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 498, 273, 261, 780, 13, 1311, 18, 4285, 1046, 5621, 2398, 3458, 18, 458, 12, 856, 16, 783, 9337, 18, 588, 16107, 12, 856, 10019, 3639, 289, 3639, 14015, 2297, 1388, 1488, 13, 15368, 2297, 18, 588, 1488, 1435, 2934, 2725, 12, 9693, 1769, 3639, 4769, 2297, 18, 14462, 1598, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void setTargetRelease(er.bugtracker.Release aValue) {
public void setTargetRelease(Release aValue) {
public void setTargetRelease(er.bugtracker.Release aValue) { takeStoredValueForKey(aValue, "targetRelease"); }
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/e2f6d086a1ca4f9bae07e93767b99fcb6f6fa2ac/_Bug.java/buggy/Common/Applications/BugTracker/Frameworks/BTBusinessLogic/Sources/er/bugtracker/_Bug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18367, 7391, 12, 7391, 24406, 13, 288, 3639, 4862, 18005, 620, 19759, 12, 69, 620, 16, 315, 3299, 7391, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18367, 7391, 12, 7391, 24406, 13, 288, 3639, 4862, 18005, 620, 19759, 12, 69, 620, 16, 315, 3299, 7391, 8863, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertFalse(this.channel1.finishConnect()); assertFalse(this.channel1.isBlocking()); assertFalse(this.channel1.isConnected()); assertTrue(this.channel1.isConnectionPending()); assertTrue(this.channel1.isOpen()); try { this.channel1.connect(localAddr1); fail("Should throw ConnectionPendingException"); } catch (ConnectionPendingException e) { } this.channel1.configureBlocking(true); try { this.channel1.connect(localAddr1); fail("Should throw ConnectionPendingException"); } catch (ConnectionPendingException e) { } tryFinish(); } catch (ConnectException e) { System.out.println(e.getMessage());
this.channel1.connect(localAddr1); fail("Should throw ConnectionPendingException"); } catch (ConnectionPendingException e) {
public void testCFII_Data_FinishConnect_ServerStartLater() throws IOException { ensureServerClosed(); java.nio.ByteBuffer[] writeBufArr = new java.nio.ByteBuffer[1]; writeBufArr[0] = java.nio.ByteBuffer.allocate(capacityNormal); this.channel1.configureBlocking(true); try { this.channel1.finishConnect(); fail("Should throw NoConnectionPendingException"); } catch (NoConnectionPendingException e) { // correct } try { this.channel1.connect(localAddr1); fail("Should throw ConnectException"); } catch (ConnectException e) { // correct } try { this.channel1.finishConnect(); fail("Should throw ClosedChannelException"); } catch (ClosedChannelException e) { // correct } assertFalse(this.channel1.isConnected()); // finish after finish OK assertFalse(this.channel1.isConnectionPending()); this.channel1 = SocketChannel.open(); this.channel1.configureBlocking(false); this.channel1.connect(localAddr1); assertFalse(this.channel1.isConnected()); ensureServerOpen(); // cannot connect? try { assertFalse(this.channel1.finishConnect()); assertFalse(this.channel1.isBlocking()); assertFalse(this.channel1.isConnected()); assertTrue(this.channel1.isConnectionPending()); assertTrue(this.channel1.isOpen()); try { this.channel1.connect(localAddr1); fail("Should throw ConnectionPendingException"); } catch (ConnectionPendingException e) { // correct } this.channel1.configureBlocking(true); try { this.channel1.connect(localAddr1); fail("Should throw ConnectionPendingException"); } catch (ConnectionPendingException e) { // correct } tryFinish(); } catch (ConnectException e) { System.out.println(e.getMessage()); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/dd7d7186a3fd62e298a4a14d517dace20da8539c/SocketChannelTest.java/buggy/modules/nio/src/test/java/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 39, 1653, 45, 67, 751, 67, 11641, 5215, 67, 2081, 1685, 20607, 1435, 5411, 1216, 1860, 288, 3639, 3387, 2081, 7395, 5621, 3639, 2252, 18, 82, 1594, 18, 12242, 8526, 1045, 5503, 5715, 273, 394, 2252, 18, 82, 1594, 18, 12242, 63, 21, 15533, 3639, 1045, 5503, 5715, 63, 20, 65, 273, 2252, 18, 82, 1594, 18, 12242, 18, 16247, 12, 16017, 5506, 1769, 3639, 333, 18, 4327, 21, 18, 14895, 8728, 12, 3767, 1769, 3639, 775, 288, 5411, 333, 18, 4327, 21, 18, 13749, 5215, 5621, 5411, 2321, 2932, 14309, 604, 2631, 1952, 8579, 503, 8863, 3639, 289, 1044, 261, 2279, 1952, 8579, 503, 425, 13, 288, 5411, 368, 3434, 3639, 289, 3639, 775, 288, 5411, 333, 18, 4327, 21, 18, 3612, 12, 3729, 3178, 21, 1769, 5411, 2321, 2932, 14309, 604, 8289, 503, 8863, 3639, 289, 1044, 261, 5215, 503, 425, 13, 288, 5411, 368, 3434, 3639, 289, 3639, 775, 288, 5411, 333, 18, 4327, 21, 18, 13749, 5215, 5621, 5411, 2321, 2932, 14309, 604, 25582, 2909, 503, 8863, 3639, 289, 1044, 261, 7395, 2909, 503, 425, 13, 288, 5411, 368, 3434, 3639, 289, 3639, 1815, 8381, 12, 2211, 18, 4327, 21, 18, 291, 8932, 10663, 3639, 368, 4076, 1839, 4076, 7791, 3639, 1815, 8381, 12, 2211, 18, 4327, 21, 18, 291, 1952, 8579, 10663, 3639, 333, 18, 4327, 21, 273, 8758, 2909, 18, 3190, 5621, 3639, 333, 18, 4327, 21, 18, 14895, 8728, 12, 5743, 1769, 3639, 333, 18, 4327, 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, 39, 1653, 45, 67, 751, 67, 11641, 5215, 67, 2081, 1685, 20607, 1435, 5411, 1216, 1860, 288, 3639, 3387, 2081, 7395, 5621, 3639, 2252, 18, 82, 1594, 18, 12242, 8526, 1045, 5503, 5715, 273, 394, 2252, 18, 82, 1594, 18, 12242, 63, 21, 15533, 3639, 1045, 5503, 5715, 63, 20, 65, 273, 2252, 18, 82, 1594, 18, 12242, 18, 16247, 12, 16017, 5506, 1769, 3639, 333, 18, 4327, 21, 18, 14895, 8728, 12, 3767, 1769, 3639, 775, 288, 5411, 333, 18, 4327, 21, 18, 13749, 5215, 5621, 5411, 2321, 2932, 14309, 604, 2631, 1952, 8579, 503, 8863, 3639, 289, 1044, 261, 2279, 1952, 8579, 503, 425, 13, 288, 5411, 368, 3434, 3639, 289, 3639, 775, 2 ]
protected void assertPoint(String expression, Point expected) throws Exception { Object answer = ConvertUtils.convert(expression, Point.class ); assertTrue( "Returned type: "+ answer.getClass() + " is-a Point", answer instanceof Point ); Point value = (Point) answer; assertEquals( "x", expected.getX(), value.getX(), delta ); assertEquals( "y", expected.getY(), value.getY(), delta ); assertEquals( expected, value ); }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/TestConverters.java/buggy/jelly-tags/swing/src/test/org/apache/commons/jelly/swing/TestConverters.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1815, 2148, 12, 780, 2652, 16, 4686, 2665, 13, 1216, 1185, 288, 3639, 1033, 5803, 273, 4037, 1989, 18, 6283, 12, 8692, 16, 4686, 18, 1106, 11272, 7734, 1815, 5510, 12, 315, 22360, 618, 30, 13773, 225, 5803, 18, 588, 797, 1435, 397, 315, 353, 17, 69, 4686, 3113, 5803, 1276, 4686, 11272, 7734, 4686, 460, 273, 261, 2148, 13, 5803, 31, 7734, 1815, 8867, 12, 315, 92, 3113, 2665, 18, 588, 60, 9334, 460, 18, 588, 60, 9334, 3622, 11272, 3639, 1815, 8867, 12, 315, 93, 3113, 2665, 18, 588, 61, 9334, 460, 18, 588, 61, 9334, 3622, 11272, 7734, 1815, 8867, 12, 2665, 16, 460, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1815, 2148, 12, 780, 2652, 16, 4686, 2665, 13, 1216, 1185, 288, 3639, 1033, 5803, 273, 4037, 1989, 18, 6283, 12, 8692, 16, 4686, 18, 1106, 11272, 7734, 1815, 5510, 12, 315, 22360, 618, 30, 13773, 225, 5803, 18, 588, 797, 1435, 397, 315, 353, 17, 69, 4686, 3113, 5803, 1276, 4686, 11272, 7734, 4686, 460, 273, 261, 2148, 13, 5803, 31, 7734, 1815, 8867, 12, 315, 92, 3113, 2665, 18, 588, 60, 9334, 460, 18, 588, 60, 9334, 3622, 11272, 3639, 1815, 8867, 12, 315, 93, 3113, 2665, 18, 588, 61, 9334, 460, 18, 588, 61, 9334, 3622, 11272, 7734, 1815, 8867, 12, 2665, 16, 460, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100 ]
exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); exceptionClass.defineMethod("initialize", CallbackFactory.getOptMethod(RubyException.class, "initialize")); exceptionClass.defineMethod("exception", CallbackFactory.getOptMethod(RubyException.class, "exception"));
public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineMethod("to_s", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("to_str", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("message", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("inspect", CallbackFactory.getMethod(RubyException.class, "inspect")); exceptionClass.defineMethod("backtrace", CallbackFactory.getMethod(RubyException.class, "backtrace")); exceptionClass.defineMethod("set_backtrace", CallbackFactory.getMethod(RubyException.class, "set_backtrace", RubyObject.class)); // exceptionClass.defineSingletonMethod("load_class", getSingletonMethod("m_load_class", RubyString.class, true)); return exceptionClass; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/7798138390a306a202dcec9bde45928dae2e852e/RubyException.java/buggy/org/jruby/RubyException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1520, 797, 18, 11255, 19571, 1305, 12, 315, 4064, 3113, 8444, 1733, 18, 588, 6179, 19571, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 2704, 1442, 7923, 1769, 225, 1520, 797, 18, 11255, 1305, 2932, 11160, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 11160, 7923, 1769, 1520, 797, 18, 11255, 1305, 2932, 4064, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 4064, 7923, 1769, 282, 1520, 797, 18, 11255, 19571, 1305, 12, 315, 4064, 3113, 8444, 1733, 18, 588, 6179, 19571, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 2704, 1442, 7923, 1769, 225, 1520, 797, 18, 11255, 1305, 2932, 11160, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 11160, 7923, 1769, 1520, 797, 18, 11255, 1305, 2932, 4064, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 4064, 7923, 1769, 282, 1520, 797, 18, 11255, 19571, 1305, 12, 315, 4064, 3113, 8444, 1733, 18, 588, 6179, 19571, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 2704, 1442, 7923, 1769, 225, 1520, 797, 18, 11255, 1305, 2932, 11160, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 11160, 7923, 1769, 1520, 797, 18, 11255, 1305, 2932, 4064, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 4064, 7923, 1769, 282, 1520, 797, 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, 1520, 797, 18, 11255, 19571, 1305, 12, 315, 4064, 3113, 8444, 1733, 18, 588, 6179, 19571, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 2704, 1442, 7923, 1769, 225, 1520, 797, 18, 11255, 1305, 2932, 11160, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 11160, 7923, 1769, 1520, 797, 18, 11255, 1305, 2932, 4064, 3113, 8444, 1733, 18, 588, 6179, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 4064, 7923, 1769, 282, 1520, 797, 18, 11255, 19571, 1305, 12, 315, 4064, 3113, 8444, 1733, 18, 588, 6179, 19571, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 2704, 1442, 7923, 1769, 225, 1520, 797, 18, 11255, 1305, 2932, 11160, 2 ]
dbcmd = "INSERT INTO " + table + " (" + join(", ", columns)
dbcmd = "INSERT INTO " + table + " (" + join(", ", insertColumns)
public void transformData(String table, String oldTable, TreeMap<String, ColumnChange> columnChanges, String[] oldColumnNames) throws SQLException, ParseException, Exception { Statement st = m_dbconnection.createStatement(); Iterator j; int i; st.setFetchSize(s_fetch_size); String[] columns = columnChanges.keySet().toArray(new String[0]); String[] questionMarks = new String[columns.length]; for (i = 0; i < oldColumnNames.length; i++) { ColumnChange c = columnChanges.get(oldColumnNames[i]); if (c != null) { c.setSelectIndex(i + 1); } } for (i = 0; i < columns.length; i++) { questionMarks[i] = "?"; ColumnChange c = columnChanges.get(columns[i]); c.setPrepareIndex(i + 1); c.setColumnType(((Column) c.getColumn()).getColumnSqlType()); } /* * Pull everything in from the old table and filter it to update the * data to any new formats. */ m_out.print(" - transforming data into the new table...\r"); ResultSet rs = st.executeQuery("SELECT count(*) FROM " + oldTable); rs.next(); long num_rows = rs.getLong(1); PreparedStatement select = null; PreparedStatement insert = null; String order; if (table.equals("outages")) { order = " ORDER BY iflostservice"; } else { order = ""; } String dbcmd = "SELECT " + join(", ", oldColumnNames) + " FROM " + oldTable + order; if (m_debug) { m_out.println(" - performing select: " + dbcmd); } select = m_dbconnection.prepareStatement(dbcmd); select.setFetchSize(s_fetch_size); // error = "Unable to prepare select from temp"; dbcmd = "INSERT INTO " + table + " (" + join(", ", columns) + ") values (" + join(", ", questionMarks) + ")"; if (m_debug) { m_out.println(" - performing insert: " + dbcmd); } insert = m_dbconnection.prepareStatement(dbcmd); // error = "Unable to prepare insert into " + table); rs = select.executeQuery(); m_dbconnection.setAutoCommit(false); String name; ColumnChange change; Object obj; SimpleDateFormat dateParser = new SimpleDateFormat( "dd-MMM-yyyy HH:mm:ss"); SimpleDateFormat dateFormatter = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss"); char spin[] = { '/', '-', '\\', '|' }; int current_row = 0; while (rs.next()) { for (j = columnChanges.keySet().iterator(); j.hasNext();) { name = (String) j.next(); change = (ColumnChange) columnChanges.get(name); if (change.getSelectIndex() > 0) { obj = rs.getObject(change.getSelectIndex()); if (rs.wasNull()) { obj = null; } } else { if (m_debug) { m_out.println(" - don't know what to do " + "for \"" + name + "\", prepared column " + change.getPrepareIndex() + ": setting to null"); } obj = null; } /* if (table.equals("outages") && name.equals("outageid")) { obj = new Integer(current_row + 1); } if (table.equals("usersnotified") && name.equals("id")) { obj = new Integer(current_row + 1); } */ if (obj == null && change.isNullReplace()) { obj = change.getNullReplace(); if (obj instanceof ColumnChangeReplacement) { obj = ((ColumnChangeReplacement) obj).getColumnReplacement(rs, columnChanges); } if (m_debug) { m_out.println(" - " + name + " was NULL but is a " + "requires NULL replacement -- " + "replacing with '" + obj + "'"); } } if (obj != null) { if (change.isUpgradeTimestamp() && !obj.getClass().equals( java.sql.Timestamp.class)) { if (m_debug) { m_out.println(" - " + name + " is an old-style timestamp"); } String newObj = dateFormatter.format(dateParser.parse((String) obj)); if (m_debug) { m_out.println(" - " + obj + " -> " + newObj); } obj = newObj; } if (m_debug) { m_out.println(" - " + name + " = " + obj); } } else { if (m_debug) { m_out.println(" - " + name + " = undefined"); } } if (obj == null) { insert.setNull(change.getPrepareIndex(), change.getColumnType()); } else { insert.setObject(change.getPrepareIndex(), obj); } } try { insert.execute(); } catch (SQLException e) { SQLException ex = new SQLException( "Statement.execute() threw an " + "SQLException while inserting a row: " + "\"" + insert.toString() + "\". " + "Original exception: " + e.toString(), e.getSQLState(), e.getErrorCode()); ex.setNextException(e); throw ex; } current_row++; if ((current_row % 20) == 0) { System.err.print(" - transforming data into the new " + "table... " + (int) Math.floor((current_row * 100) / num_rows) + "% [" + spin[(current_row / 20) % spin.length] + "]\r"); } } m_dbconnection.commit(); m_dbconnection.setAutoCommit(true); if (table.equals("events") && num_rows == 0) { st.execute("INSERT INTO events (eventid, eventuei, eventtime, " + "eventsource, eventdpname, eventcreatetime, " + "eventseverity, eventlog, eventdisplay) values " + "(0, 'http://uei.opennms.org/dummyevent', now(), " + "'OpenNMS.Eventd', 'localhost', now(), 1, 'Y', 'Y')"); } m_out.println(" - transforming data into the new table... " + "DONE "); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/28ec8d0f53c305460681fe922d064c060141774d/Installer.java/buggy/opennms-install/src/main/java/org/opennms/install/Installer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2510, 751, 12, 780, 1014, 16, 514, 1592, 1388, 16, 5411, 16381, 32, 780, 16, 4753, 3043, 34, 1057, 7173, 16, 5411, 514, 8526, 1592, 20718, 13, 1216, 6483, 16, 10616, 16, 5411, 1185, 288, 3639, 8056, 384, 273, 312, 67, 1966, 4071, 18, 2640, 3406, 5621, 3639, 4498, 525, 31, 3639, 509, 277, 31, 3639, 384, 18, 542, 5005, 1225, 12, 87, 67, 5754, 67, 1467, 1769, 3639, 514, 8526, 2168, 273, 1057, 7173, 18, 856, 694, 7675, 31447, 12, 2704, 514, 63, 20, 19226, 3639, 514, 8526, 5073, 20981, 273, 394, 514, 63, 5112, 18, 2469, 15533, 3639, 364, 261, 77, 273, 374, 31, 277, 411, 1592, 20718, 18, 2469, 31, 277, 27245, 288, 5411, 4753, 3043, 276, 273, 1057, 7173, 18, 588, 12, 1673, 20718, 63, 77, 19226, 5411, 309, 261, 71, 480, 446, 13, 288, 7734, 276, 18, 542, 3391, 1016, 12, 77, 397, 404, 1769, 5411, 289, 3639, 289, 3639, 364, 261, 77, 273, 374, 31, 277, 411, 2168, 18, 2469, 31, 277, 27245, 288, 5411, 5073, 20981, 63, 77, 65, 273, 13574, 31, 5411, 4753, 3043, 276, 273, 1057, 7173, 18, 588, 12, 5112, 63, 77, 19226, 5411, 276, 18, 542, 7543, 1016, 12, 77, 397, 404, 1769, 5411, 276, 18, 542, 28149, 12443, 12, 1494, 13, 276, 18, 588, 1494, 1435, 2934, 588, 1494, 5101, 559, 10663, 3639, 289, 3639, 1748, 540, 380, 14899, 7756, 316, 628, 326, 1592, 1014, 471, 1034, 518, 358, 1089, 326, 540, 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, 2510, 751, 12, 780, 1014, 16, 514, 1592, 1388, 16, 5411, 16381, 32, 780, 16, 4753, 3043, 34, 1057, 7173, 16, 5411, 514, 8526, 1592, 20718, 13, 1216, 6483, 16, 10616, 16, 5411, 1185, 288, 3639, 8056, 384, 273, 312, 67, 1966, 4071, 18, 2640, 3406, 5621, 3639, 4498, 525, 31, 3639, 509, 277, 31, 3639, 384, 18, 542, 5005, 1225, 12, 87, 67, 5754, 67, 1467, 1769, 3639, 514, 8526, 2168, 273, 1057, 7173, 18, 856, 694, 7675, 31447, 12, 2704, 514, 63, 20, 19226, 3639, 514, 8526, 5073, 20981, 273, 394, 514, 63, 5112, 18, 2469, 15533, 3639, 364, 261, 77, 273, 374, 31, 277, 411, 1592, 20718, 18, 2469, 31, 277, 27245, 288, 2 ]
public Polygon(int[] xpoints, int[] ypoints, int npoints)
public Polygon()
public Polygon(int[] xpoints, int[] ypoints, int npoints) { this.xpoints = new int[npoints]; this.ypoints = new int[npoints]; System.arraycopy(xpoints, 0, this.xpoints, 0, npoints); System.arraycopy(ypoints, 0, this.ypoints, 0, npoints); this.npoints = npoints; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/0f1278bde18cf23bb1c93af9b66ae79ce6d1b27a/Polygon.java/clean/libjava/java/awt/Polygon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12681, 1435, 225, 288, 565, 333, 18, 92, 4139, 273, 394, 509, 63, 82, 4139, 15533, 565, 333, 18, 879, 763, 87, 273, 394, 509, 63, 82, 4139, 15533, 565, 2332, 18, 1126, 3530, 12, 92, 4139, 16, 374, 16, 333, 18, 92, 4139, 16, 374, 16, 1130, 763, 87, 1769, 565, 2332, 18, 1126, 3530, 12, 879, 763, 87, 16, 374, 16, 333, 18, 879, 763, 87, 16, 374, 16, 1130, 763, 87, 1769, 565, 333, 18, 82, 4139, 273, 1130, 763, 87, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12681, 1435, 225, 288, 565, 333, 18, 92, 4139, 273, 394, 509, 63, 82, 4139, 15533, 565, 333, 18, 879, 763, 87, 273, 394, 509, 63, 82, 4139, 15533, 565, 2332, 18, 1126, 3530, 12, 92, 4139, 16, 374, 16, 333, 18, 92, 4139, 16, 374, 16, 1130, 763, 87, 1769, 565, 2332, 18, 1126, 3530, 12, 879, 763, 87, 16, 374, 16, 333, 18, 879, 763, 87, 16, 374, 16, 1130, 763, 87, 1769, 565, 333, 18, 82, 4139, 273, 1130, 763, 87, 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 ]
LoginException, GeneralSecurityException {
LoginException, GeneralSecurityException, BugzillaException {
public static RepositoryTaskData getBug(String repositoryUrl, String userName, String password, Proxy proxySettings, String characterEncoding, int id) throws IOException, MalformedURLException, LoginException, GeneralSecurityException { RepositoryTaskData bugReport = new RepositoryTaskData(new BugzillaAttributeFactory(), BugzillaPlugin.REPOSITORY_KIND, repositoryUrl, ""+id); setupExistingBugAttributes(repositoryUrl, bugReport); RepositoryReportFactory reportFactory = new RepositoryReportFactory(); reportFactory.populateReport(bugReport, repositoryUrl, proxySettings, userName, password, characterEncoding); updateBugAttributeOptions(repositoryUrl, proxySettings, userName, password, bugReport, characterEncoding); addValidOperations(bugReport, userName); return bugReport; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/3afdb7a3ae04999bc84ffba2a1cbb5dc7e66ab45/BugzillaRepositoryUtil.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6281, 2174, 751, 2882, 637, 12, 780, 3352, 1489, 16, 514, 12065, 16, 514, 2201, 16, 1082, 202, 3886, 2889, 2628, 16, 514, 3351, 4705, 16, 509, 612, 13, 1216, 1860, 16, 20710, 16, 1082, 202, 5358, 503, 16, 9544, 24918, 288, 202, 202, 3305, 2174, 751, 7934, 4820, 273, 394, 6281, 2174, 751, 12, 2704, 16907, 15990, 1499, 1733, 9334, 9506, 202, 19865, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1489, 16, 1408, 15, 350, 1769, 202, 202, 8401, 9895, 19865, 2498, 12, 9071, 1489, 16, 7934, 4820, 1769, 202, 202, 3305, 4820, 1733, 2605, 1733, 273, 394, 6281, 4820, 1733, 5621, 202, 202, 6006, 1733, 18, 19936, 4820, 12, 925, 4820, 16, 3352, 1489, 16, 2889, 2628, 16, 12065, 16, 2201, 16, 3351, 4705, 1769, 202, 202, 2725, 19865, 1499, 1320, 12, 9071, 1489, 16, 2889, 2628, 16, 12065, 16, 2201, 16, 7934, 4820, 16, 3351, 4705, 1769, 202, 202, 1289, 1556, 9343, 12, 925, 4820, 16, 12065, 1769, 202, 202, 2463, 7934, 4820, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6281, 2174, 751, 2882, 637, 12, 780, 3352, 1489, 16, 514, 12065, 16, 514, 2201, 16, 1082, 202, 3886, 2889, 2628, 16, 514, 3351, 4705, 16, 509, 612, 13, 1216, 1860, 16, 20710, 16, 1082, 202, 5358, 503, 16, 9544, 24918, 288, 202, 202, 3305, 2174, 751, 7934, 4820, 273, 394, 6281, 2174, 751, 12, 2704, 16907, 15990, 1499, 1733, 9334, 9506, 202, 19865, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1489, 16, 1408, 15, 350, 1769, 202, 202, 8401, 9895, 19865, 2498, 12, 9071, 1489, 16, 7934, 4820, 1769, 202, 202, 3305, 4820, 1733, 2605, 1733, 273, 394, 6281, 4820, 1733, 5621, 202, 202, 6006, 1733, 18, 19936, 4820, 12, 925, 2 ]
public void parseFields(byte[] cByte, ArrayList ffd, StringBuffer rb) { FileFieldDef f; // write out the html record information for each field that is selected for (int x = 0; x < ffd.size(); x++) { f = (FileFieldDef)ffd.get(x); if (f.isWriteField()) { switch (f.getFieldType()) { case 'P': case 'S':// rb.append(f.parseData(cByte).trim() + delimiter); rb.append(getFixedLength(cByte,f)); break; default:// rb.append(stringQualifier + f.parseData(cByte).trim() + stringQualifier + delimiter);// rb.append(f.parseData(cByte)); rb.append(getFixedLength(cByte,f)); break; } } } rb.append ('\n'); fout.println(rb); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d168ed72700f29af0ae56810df6fe5dbdb8a8a8c/FixedWidthOutputFilter.java/clean/tn5250j/src/org/tn5250j/tools/filters/FixedWidthOutputFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 1109, 2314, 12, 7229, 8526, 276, 3216, 16, 2407, 6875, 72, 16, 6674, 7138, 13, 288, 812, 974, 3262, 284, 31, 759, 1045, 596, 326, 1729, 1409, 1779, 364, 1517, 652, 716, 353, 3170, 1884, 261, 474, 619, 273, 374, 31, 619, 411, 6875, 72, 18, 1467, 5621, 619, 27245, 288, 284, 273, 261, 812, 974, 3262, 13, 1403, 72, 18, 588, 12, 92, 1769, 309, 261, 74, 18, 291, 3067, 974, 10756, 288, 9610, 261, 74, 18, 588, 13715, 10756, 288, 648, 296, 52, 4278, 648, 296, 55, 11, 2207, 6731, 18, 6923, 12, 74, 18, 2670, 751, 12, 71, 3216, 2934, 5290, 1435, 397, 5654, 1769, 6731, 18, 6923, 12, 588, 7505, 1782, 12, 71, 3216, 16, 74, 10019, 8820, 31, 805, 2207, 6731, 18, 6923, 12, 1080, 16185, 397, 284, 18, 2670, 751, 12, 71, 3216, 2934, 5290, 1435, 397, 533, 16185, 397, 5654, 1769, 759, 6731, 18, 6923, 12, 74, 18, 2670, 751, 12, 71, 3216, 10019, 6731, 18, 6923, 12, 588, 7505, 1782, 12, 71, 3216, 16, 74, 10019, 8820, 31, 97, 10523, 6731, 18, 6923, 7707, 64, 82, 8284, 617, 322, 18, 8222, 12, 6731, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 1109, 2314, 12, 7229, 8526, 276, 3216, 16, 2407, 6875, 72, 16, 6674, 7138, 13, 288, 812, 974, 3262, 284, 31, 759, 1045, 596, 326, 1729, 1409, 1779, 364, 1517, 652, 716, 353, 3170, 1884, 261, 474, 619, 273, 374, 31, 619, 411, 6875, 72, 18, 1467, 5621, 619, 27245, 288, 284, 273, 261, 812, 974, 3262, 13, 1403, 72, 18, 588, 12, 92, 1769, 309, 261, 74, 18, 291, 3067, 974, 10756, 288, 9610, 261, 74, 18, 588, 13715, 10756, 288, 648, 296, 52, 4278, 648, 296, 55, 11, 2207, 6731, 18, 6923, 12, 74, 18, 2670, 751, 12, 71, 3216, 2934, 5290, 1435, 397, 5654, 1769, 6731, 18, 6923, 12, 588, 7505, 1782, 12, 2 ]
final List inspectionClasses = m_inspectionClasses;
final List<Class> inspectionClasses = m_inspectionClasses;
private void registerSerializationInspections(){ final List inspectionClasses = m_inspectionClasses; inspectionClasses.add(SerializableHasSerializationMethodsInspection.class); inspectionClasses.add(SerializableHasSerialVersionUIDFieldInspection.class); inspectionClasses.add(ReadObjectInitializationInspection.class); inspectionClasses.add(ReadObjectAndWriteObjectPrivateInspection.class); inspectionClasses.add(SerialVersionUIDNotStaticFinalInspection.class); inspectionClasses.add(SerialPersistentFieldsWithWrongSignatureInspection.class); inspectionClasses.add(ReadResolveAndWriteReplaceProtectedInspection.class); inspectionClasses.add(TransientFieldInNonSerializableClassInspection.class); inspectionClasses.add(SerializableWithUnconstructableAncestorInspection.class); inspectionClasses.add(NonSerializableWithSerializationMethodsInspection.class); inspectionClasses.add(ExternalizableWithSerializationMethodsInspection.class); inspectionClasses.add(NonSerializableWithSerialVersionUIDFieldInspection.class); inspectionClasses.add(SerializableInnerClassHasSerialVersionUIDFieldInspection.class); inspectionClasses.add(SerializableInnerClassWithNonSerializableOuterClassInspection.class); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2d46d291193579a7564649b4881c7ea8e02eda5b/InspectionGadgetsPlugin.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1744, 16764, 14985, 87, 1435, 95, 3639, 727, 987, 32, 797, 34, 2763, 7017, 4818, 273, 312, 67, 2679, 7017, 4818, 31, 3639, 2763, 7017, 4818, 18, 1289, 12, 21682, 5582, 16764, 4712, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 21682, 5582, 6342, 1444, 3060, 974, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 1994, 921, 17701, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 1994, 921, 1876, 3067, 921, 6014, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 6342, 1444, 3060, 1248, 5788, 7951, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 6342, 11906, 2314, 1190, 13634, 5374, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 1994, 8460, 1876, 3067, 5729, 15933, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 19638, 974, 382, 3989, 21682, 797, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 21682, 1190, 984, 10062, 429, 15637, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 3989, 21682, 1190, 16764, 4712, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 6841, 6934, 1190, 16764, 4712, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 3989, 21682, 1190, 6342, 1444, 3060, 974, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 21682, 2857, 797, 5582, 6342, 1444, 3060, 974, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 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, 3238, 918, 1744, 16764, 14985, 87, 1435, 95, 3639, 727, 987, 32, 797, 34, 2763, 7017, 4818, 273, 312, 67, 2679, 7017, 4818, 31, 3639, 2763, 7017, 4818, 18, 1289, 12, 21682, 5582, 16764, 4712, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 21682, 5582, 6342, 1444, 3060, 974, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 1994, 921, 17701, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 1994, 921, 1876, 3067, 921, 6014, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 6342, 1444, 3060, 1248, 5788, 7951, 14985, 18, 1106, 1769, 3639, 2763, 7017, 4818, 18, 1289, 12, 6342, 11906, 2314, 1190, 13634, 5374, 14985, 2 ]
setLineAttributes((LineAttributes)null);
setLineAttributes((LineAttributes) null);
public void eUnset(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.STOCK_SERIES__VISIBLE: unsetVisible(); return; case TypePackage.STOCK_SERIES__LABEL: setLabel((Label)null); return; case TypePackage.STOCK_SERIES__DATA_DEFINITION: getDataDefinition().clear(); return; case TypePackage.STOCK_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier(SERIES_IDENTIFIER_EDEFAULT); return; case TypePackage.STOCK_SERIES__DATA_POINT: setDataPoint((DataPoint)null); return; case TypePackage.STOCK_SERIES__DATA_SET: setDataSet((DataSet)null); return; case TypePackage.STOCK_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)null); return; case TypePackage.STOCK_SERIES__LABEL_POSITION: unsetLabelPosition(); return; case TypePackage.STOCK_SERIES__STACKED: unsetStacked(); return; case TypePackage.STOCK_SERIES__TRIGGERS: getTriggers().clear(); return; case TypePackage.STOCK_SERIES__TRANSLUCENT: unsetTranslucent(); return; case TypePackage.STOCK_SERIES__FILL: setFill((Fill)null); return; case TypePackage.STOCK_SERIES__LINE_ATTRIBUTES: setLineAttributes((LineAttributes)null); return; } eDynamicUnset(eFeature); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/StockSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/StockSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19698, 12, 41, 14372, 4595, 425, 4595, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 29588, 30, 7734, 2646, 6207, 5621, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 13545, 30, 7734, 16558, 12443, 2224, 13, 2011, 1769, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 25312, 30, 7734, 4303, 1852, 7675, 8507, 5621, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 2123, 8805, 67, 16606, 30, 7734, 444, 6485, 3004, 12, 2123, 8805, 67, 16606, 67, 11236, 1769, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 8941, 30, 7734, 7929, 2148, 12443, 751, 2148, 13, 2011, 1769, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 4043, 30, 7734, 7929, 694, 12443, 13676, 13, 2011, 1769, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 7254, 67, 13847, 10591, 30, 7734, 26251, 21416, 12443, 1630, 21416, 13, 2011, 1769, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 13545, 67, 15258, 30, 7734, 2646, 2224, 2555, 5621, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 21971, 2056, 30, 7734, 2646, 2624, 329, 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, 19698, 12, 41, 14372, 4595, 425, 4595, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 29588, 30, 7734, 2646, 6207, 5621, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 13545, 30, 7734, 16558, 12443, 2224, 13, 2011, 1769, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 25312, 30, 7734, 4303, 1852, 7675, 8507, 5621, 7734, 327, 31, 5411, 648, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 2123, 8805, 67, 16606, 30, 7734, 444, 6485, 3004, 12, 2123, 8805, 67, 16606, 2 ]
if (newval!=null)
if (newval != null)
public static final String replEnv(String string) { if (string==null) return null; StringBuffer str = new StringBuffer(string); int idx=str.indexOf("%%"); while ( idx >= 0) { //OK, so we found a marker, look for the next one... int to = str.indexOf("%%", idx+2); if (to>=0) { // OK, we found the other marker also... String marker = str.substring(idx, to+2); String var = str.substring(idx+2, to); if (var!=null && var.length()>0) { // Get the environment variable String newval = getEnvironmentVariable(var, null); if (newval!=null) { // Replace the whole bunch str.replace(idx, to+2, newval); //System.out.println("Replaced ["+marker+"] with ["+newval+"]"); // The last position has changed... to+=newval.length()-marker.length(); } } } else // We found the start, but NOT the ending %% without closing %% { to=idx; } // Look for the next variable to replace... idx=str.indexOf("%%", to+1); } return str.toString(); }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3d662b2c7ebea403aa0721885d4e8b2ec43e4e62/Const.java/clean/kettle/src/be/ibridge/kettle/core/Const.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 514, 6831, 3491, 12, 780, 533, 13, 202, 95, 202, 202, 430, 261, 1080, 631, 2011, 13, 327, 446, 31, 202, 202, 780, 1892, 609, 273, 394, 6674, 12, 1080, 1769, 9506, 202, 474, 2067, 33, 701, 18, 31806, 2932, 11438, 8863, 202, 202, 17523, 261, 2067, 1545, 374, 13, 202, 202, 95, 1082, 202, 759, 3141, 16, 1427, 732, 1392, 279, 5373, 16, 2324, 364, 326, 1024, 1245, 2777, 1082, 202, 474, 358, 273, 609, 18, 31806, 2932, 11438, 3113, 2067, 15, 22, 1769, 1082, 202, 430, 261, 869, 34, 33, 20, 13, 1082, 202, 95, 9506, 202, 759, 7791, 16, 732, 1392, 326, 1308, 5373, 2546, 2777, 9506, 202, 780, 5373, 273, 609, 18, 28023, 12, 3465, 16, 358, 15, 22, 1769, 9506, 202, 780, 569, 565, 273, 609, 18, 28023, 12, 3465, 15, 22, 16, 358, 1769, 6862, 9506, 202, 430, 261, 1401, 5, 33, 2011, 597, 569, 18, 2469, 1435, 34, 20, 13, 9506, 202, 95, 6862, 202, 759, 968, 326, 3330, 2190, 6862, 202, 780, 394, 1125, 273, 16613, 3092, 12, 1401, 16, 446, 1769, 6862, 25083, 202, 430, 261, 2704, 1125, 5, 33, 2011, 13, 6862, 202, 95, 25083, 202, 759, 6910, 326, 7339, 25606, 25083, 202, 701, 18, 2079, 12, 3465, 16, 358, 15, 22, 16, 394, 1125, 1769, 25083, 202, 759, 3163, 18, 659, 18, 8222, 2932, 5729, 72, 8247, 15, 11145, 9078, 65, 598, 8247, 15, 2704, 1125, 9078, 4279, 1769, 25083, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 514, 6831, 3491, 12, 780, 533, 13, 202, 95, 202, 202, 430, 261, 1080, 631, 2011, 13, 327, 446, 31, 202, 202, 780, 1892, 609, 273, 394, 6674, 12, 1080, 1769, 9506, 202, 474, 2067, 33, 701, 18, 31806, 2932, 11438, 8863, 202, 202, 17523, 261, 2067, 1545, 374, 13, 202, 202, 95, 1082, 202, 759, 3141, 16, 1427, 732, 1392, 279, 5373, 16, 2324, 364, 326, 1024, 1245, 2777, 1082, 202, 474, 358, 273, 609, 18, 31806, 2932, 11438, 3113, 2067, 15, 22, 1769, 1082, 202, 430, 261, 869, 34, 33, 20, 13, 1082, 202, 95, 9506, 202, 759, 7791, 16, 732, 1392, 326, 1308, 5373, 2546, 2777, 9506, 202, 780, 5373, 273, 2 ]
if (element.hasAttribute(LABEL)) { label = element.getAttribute(LABEL);
if (element.hasAttribute(KEY_LABEL)) { label = element.getAttribute(KEY_LABEL);
public ITask readTask(Node node, TaskList tlist, ITaskContainer category, ITask parent) throws TaskExternalizationException { Element element = (Element) node; String handle; String label; if (element.hasAttribute(HANDLE)) { handle = element.getAttribute(HANDLE); } else { throw new TaskExternalizationException("Handle not stored for bug report"); } if (element.hasAttribute(LABEL)) { label = element.getAttribute(LABEL); } else { throw new TaskExternalizationException("Description not stored for bug report"); } BugzillaTask task = new BugzillaTask(handle, label, false); readTaskInfo(task, tlist, element, category, parent);// task.setBugzillaTaskState(BugzillaTaskState.FREE); task.setCurrentlyDownloading(false); task.setLastRefresh(new Date(new Long(element.getAttribute("LastDate")).longValue())); if (element.getAttribute("Dirty").compareTo("true") == 0) { task.setDirty(true); } else { task.setDirty(false); } try { if (task.readBugReport() == false) { MylarStatusHandler.log("Failed to read bug report", null); } } catch (Exception e) { MylarStatusHandler.log(e, "Failed to read bug report"); } if (element.hasAttribute(SYNC_STATE)) { String syncState = element.getAttribute(SYNC_STATE); if (syncState.compareTo(RepositoryTaskSyncState.SYNCHRONIZED.toString()) == 0) { task.setSyncState(RepositoryTaskSyncState.SYNCHRONIZED); } else if (syncState.compareTo(RepositoryTaskSyncState.INCOMING.toString()) == 0) { task.setSyncState(RepositoryTaskSyncState.INCOMING); } else if (syncState.compareTo(RepositoryTaskSyncState.OUTGOING.toString()) == 0) { task.setSyncState(RepositoryTaskSyncState.OUTGOING); } else if (syncState.compareTo(RepositoryTaskSyncState.CONFLICT.toString()) == 0) { task.setSyncState(RepositoryTaskSyncState.CONFLICT); } } AbstractRepositoryClient repositoryClient = MylarTaskListPlugin.getRepositoryManager().getRepositoryClient(BugzillaPlugin.REPOSITORY_KIND); if (repositoryClient != null) { repositoryClient.addTaskToArchive(task); } return task;// ITaskHandler taskHandler = MylarTaskListPlugin.getDefault().getHandlerForElement(task);// if (taskHandler != null) {// ITask addedTask = taskHandler.addTaskToArchive(task);// if (addedTask instanceof BugzillaTask)// task = (BugzillaTask) addedTask;// } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c3bb649beaf20783c58776a8372317553e9a7f9e/BugzillaTaskExternalizer.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 2174, 855, 2174, 12, 907, 756, 16, 3837, 682, 268, 1098, 16, 467, 2174, 2170, 3150, 16, 467, 2174, 982, 13, 1082, 202, 15069, 3837, 6841, 1588, 503, 288, 202, 202, 1046, 930, 273, 261, 1046, 13, 756, 31, 202, 202, 780, 1640, 31, 202, 202, 780, 1433, 31, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 23056, 3719, 288, 1082, 202, 4110, 273, 930, 18, 588, 1499, 12, 23056, 1769, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 3837, 6841, 1588, 503, 2932, 3259, 486, 4041, 364, 7934, 2605, 8863, 202, 202, 97, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 13545, 3719, 288, 1082, 202, 1925, 273, 930, 18, 588, 1499, 12, 13545, 1769, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 3837, 6841, 1588, 503, 2932, 3291, 486, 4041, 364, 7934, 2605, 8863, 202, 202, 97, 202, 202, 19865, 15990, 2174, 1562, 273, 394, 16907, 15990, 2174, 12, 4110, 16, 1433, 16, 629, 1769, 202, 202, 896, 2174, 966, 12, 4146, 16, 268, 1098, 16, 930, 16, 3150, 16, 982, 1769, 759, 202, 202, 4146, 18, 542, 19865, 15990, 2174, 1119, 12, 19865, 15990, 2174, 1119, 18, 28104, 1769, 202, 202, 4146, 18, 542, 3935, 715, 27217, 12, 5743, 1769, 202, 202, 4146, 18, 542, 3024, 8323, 12, 2704, 2167, 12, 2704, 3407, 12, 2956, 18, 588, 1499, 2932, 3024, 1626, 7923, 2934, 5748, 620, 1435, 10019, 202, 202, 430, 261, 2956, 18, 588, 1499, 2932, 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, 467, 2174, 855, 2174, 12, 907, 756, 16, 3837, 682, 268, 1098, 16, 467, 2174, 2170, 3150, 16, 467, 2174, 982, 13, 1082, 202, 15069, 3837, 6841, 1588, 503, 288, 202, 202, 1046, 930, 273, 261, 1046, 13, 756, 31, 202, 202, 780, 1640, 31, 202, 202, 780, 1433, 31, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 23056, 3719, 288, 1082, 202, 4110, 273, 930, 18, 588, 1499, 12, 23056, 1769, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 3837, 6841, 1588, 503, 2932, 3259, 486, 4041, 364, 7934, 2605, 8863, 202, 202, 97, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 13545, 3719, 288, 1082, 202, 1925, 273, 930, 18, 588, 2 ]
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) {
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) {
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) { // Presumably the only reason this isn't abstract is for backwards // compatibility? FIXME? return null; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e864c0d89c996e0999ad08d1701193723aaab52a/Toolkit.java/buggy/core/src/classpath/java/java/awt/Toolkit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13949, 752, 3802, 6688, 12, 2040, 3347, 16, 4686, 12811, 17292, 16, 514, 508, 13, 288, 202, 202, 759, 18346, 379, 6906, 326, 1338, 3971, 333, 5177, 1404, 8770, 353, 364, 12727, 202, 202, 759, 8926, 35, 9852, 35, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13949, 752, 3802, 6688, 12, 2040, 3347, 16, 4686, 12811, 17292, 16, 514, 508, 13, 288, 202, 202, 759, 18346, 379, 6906, 326, 1338, 3971, 333, 5177, 1404, 8770, 353, 364, 12727, 202, 202, 759, 8926, 35, 9852, 35, 202, 202, 2463, 446, 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 ]
if (timerListRef == null){ PDTimerEventList list = new PDTimerEventList(); timerListRef = task.createSO(list,null); }
public void start(SimTask task,long heartbeat) throws InstantiationException{ if (timerListRef == null){ // first time PDTimerEventList list = new PDTimerEventList(); timerListRef = task.createSO(list,null); } try { task.registerTimerEvent(ACCESS_TYPE.PEEK,heartbeat*1000,true,task.makeReference(this)); } catch (InstantiationException e) { e.printStackTrace(); } }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/bc475268315bb8440af4ed446d8d718668152c13/PDTimer.java/buggy/src/com/sun/gi/gloutils/pdtimer/PDTimer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 12, 7993, 2174, 1562, 16, 5748, 12923, 13, 1216, 19248, 95, 202, 202, 430, 261, 12542, 682, 1957, 422, 446, 15329, 368, 1122, 813, 1082, 202, 21527, 6777, 1133, 682, 666, 273, 394, 28704, 6777, 1133, 682, 5621, 1082, 202, 12542, 682, 1957, 273, 1562, 18, 2640, 3584, 12, 1098, 16, 2011, 1769, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 4146, 18, 4861, 6777, 1133, 12, 13204, 67, 2399, 18, 1423, 11325, 16, 25445, 14, 18088, 16, 3767, 16, 4146, 18, 6540, 2404, 12, 2211, 10019, 202, 202, 97, 1044, 261, 10675, 7072, 503, 425, 13, 288, 25083, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 12, 7993, 2174, 1562, 16, 5748, 12923, 13, 1216, 19248, 95, 202, 202, 430, 261, 12542, 682, 1957, 422, 446, 15329, 368, 1122, 813, 1082, 202, 21527, 6777, 1133, 682, 666, 273, 394, 28704, 6777, 1133, 682, 5621, 1082, 202, 12542, 682, 1957, 273, 1562, 18, 2640, 3584, 12, 1098, 16, 2011, 1769, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 4146, 18, 4861, 6777, 1133, 12, 13204, 67, 2399, 18, 1423, 11325, 16, 25445, 14, 18088, 16, 3767, 16, 4146, 18, 6540, 2404, 12, 2211, 10019, 202, 202, 97, 1044, 261, 10675, 7072, 503, 425, 13, 288, 25083, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 1082, 202, 97, 2, -100, -100 ]
catch (MethodCallExecutionFailedException e) { e.printStackTrace(); return null; }
catch (MethodCallExecutionFailedException e) { e.printStackTrace(); return null; } catch (Exception e) { e.printStackTrace(); return null; }
public Object reify(MethodCall c) throws InvocationTargetException, IllegalAccessException { try { Object o = c.execute (target); return o; } catch (MethodCallExecutionFailedException e) { e.printStackTrace(); return null; } }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/b5b6b2bb6ded96a8d2ca2db6f12836cec349b290/ProxyForJavaObject.java/buggy/src/org/objectweb/proactive/core/group/ProxyForJavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 283, 1164, 12, 12592, 276, 13, 1216, 15342, 16, 11900, 565, 288, 202, 698, 202, 565, 288, 202, 202, 921, 320, 273, 276, 18, 8837, 261, 3299, 1769, 202, 202, 2463, 320, 31, 202, 565, 289, 1082, 202, 14683, 261, 12592, 3210, 12417, 425, 13, 202, 565, 288, 202, 202, 73, 18, 1188, 6332, 5621, 202, 202, 2463, 446, 31, 202, 565, 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, 1033, 283, 1164, 12, 12592, 276, 13, 1216, 15342, 16, 11900, 565, 288, 202, 698, 202, 565, 288, 202, 202, 921, 320, 273, 276, 18, 8837, 261, 3299, 1769, 202, 202, 2463, 320, 31, 202, 565, 289, 1082, 202, 14683, 261, 12592, 3210, 12417, 425, 13, 202, 565, 288, 202, 202, 73, 18, 1188, 6332, 5621, 202, 202, 2463, 446, 31, 202, 565, 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 ]
Object widgetOrWidgets = elementMap.get(element); if (widgetOrWidgets == null) { return; } else if (widgetOrWidgets instanceof Widget) { if (item == widgetOrWidgets) { elementMap.remove(element); } } else { Widget[] widgets = (Widget[]) widgetOrWidgets; int indexOfItem = Arrays.asList(widgets).indexOf(item); if (indexOfItem == -1) { return; } int length = widgets.length; if (indexOfItem == 0) { if(length == 1) { elementMap.remove(element); } else { Widget[] updatedWidgets = new Widget[length - 1]; System.arraycopy(widgets, 1, updatedWidgets, 0, length -1 ); elementMap.put(element, updatedWidgets); } } else { Widget[] updatedWidgets = new Widget[length - 1]; System.arraycopy(widgets, 0, updatedWidgets, 0, indexOfItem); System.arraycopy(widgets, indexOfItem + 1, updatedWidgets, indexOfItem, length - indexOfItem - 1); elementMap.put(element, updatedWidgets); } }
elementMap.remove(element);
protected void unmapElement(Object element, Widget item) { // double-check that the element actually maps to the given item before // unmapping it if (elementMap != null) { Object widgetOrWidgets = elementMap.get(element); if (widgetOrWidgets == null) { // item was not mapped, return return; } else if (widgetOrWidgets instanceof Widget) { if (item == widgetOrWidgets) { elementMap.remove(element); } } else { Widget[] widgets = (Widget[]) widgetOrWidgets; int indexOfItem = Arrays.asList(widgets).indexOf(item); if (indexOfItem == -1) { return; } int length = widgets.length; if (indexOfItem == 0) { if(length == 1) { elementMap.remove(element); } else { Widget[] updatedWidgets = new Widget[length - 1]; System.arraycopy(widgets, 1, updatedWidgets, 0, length -1 ); elementMap.put(element, updatedWidgets); } } else { Widget[] updatedWidgets = new Widget[length - 1]; System.arraycopy(widgets, 0, updatedWidgets, 0, indexOfItem); System.arraycopy(widgets, indexOfItem + 1, updatedWidgets, indexOfItem, length - indexOfItem - 1); elementMap.put(element, updatedWidgets); } } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0208d56a7074a697c69fc2d27296bb9893549406/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 640, 1458, 1046, 12, 921, 930, 16, 11103, 761, 13, 288, 202, 202, 759, 1645, 17, 1893, 716, 326, 930, 6013, 7565, 358, 326, 864, 761, 1865, 202, 202, 759, 640, 6770, 518, 202, 202, 430, 261, 2956, 863, 480, 446, 13, 288, 1082, 202, 921, 3604, 1162, 16166, 273, 930, 863, 18, 588, 12, 2956, 1769, 1082, 202, 430, 261, 6587, 1162, 16166, 422, 446, 13, 288, 9506, 202, 759, 761, 1703, 486, 5525, 16, 327, 9506, 202, 2463, 31, 1082, 202, 97, 469, 309, 261, 6587, 1162, 16166, 1276, 11103, 13, 288, 9506, 202, 430, 261, 1726, 422, 3604, 1162, 16166, 13, 288, 6862, 202, 2956, 863, 18, 4479, 12, 2956, 1769, 9506, 202, 97, 1082, 202, 97, 469, 288, 9506, 202, 4609, 8526, 10965, 273, 261, 4609, 63, 5717, 3604, 1162, 16166, 31, 9506, 202, 474, 3133, 1180, 273, 5647, 18, 345, 682, 12, 18148, 2934, 31806, 12, 1726, 1769, 9506, 202, 430, 261, 31806, 1180, 422, 300, 21, 13, 288, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 474, 769, 273, 10965, 18, 2469, 31, 9506, 202, 430, 261, 31806, 1180, 422, 374, 13, 288, 6862, 202, 430, 12, 2469, 422, 404, 13, 288, 25083, 202, 2956, 863, 18, 4479, 12, 2956, 1769, 6862, 202, 97, 469, 288, 25083, 202, 4609, 8526, 3526, 16166, 273, 394, 11103, 63, 2469, 300, 404, 15533, 25083, 202, 3163, 18, 1126, 3530, 12, 18148, 16, 404, 16, 3526, 16166, 16, 374, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 640, 1458, 1046, 12, 921, 930, 16, 11103, 761, 13, 288, 202, 202, 759, 1645, 17, 1893, 716, 326, 930, 6013, 7565, 358, 326, 864, 761, 1865, 202, 202, 759, 640, 6770, 518, 202, 202, 430, 261, 2956, 863, 480, 446, 13, 288, 1082, 202, 921, 3604, 1162, 16166, 273, 930, 863, 18, 588, 12, 2956, 1769, 1082, 202, 430, 261, 6587, 1162, 16166, 422, 446, 13, 288, 9506, 202, 759, 761, 1703, 486, 5525, 16, 327, 9506, 202, 2463, 31, 1082, 202, 97, 469, 309, 261, 6587, 1162, 16166, 1276, 11103, 13, 288, 9506, 202, 430, 261, 1726, 422, 3604, 1162, 16166, 13, 288, 6862, 202, 2956, 863, 18, 4479, 12, 2956, 1769, 9506, 2 ]
int sql_type = Types.OTHER; for(int i=0;i<types.length;i++) if(type_name.equals(types[i])) sql_type=typei[i];
if(sql_type == -1) { type_name = (String)conn.fieldCache.get(new Integer(oid)); if(type_name==null) { ResultSet result = (org.postgresql.ResultSet) conn.ExecSQL(null, "select typname from pg_type where oid = " + oid); if (result.getColumnCount() != 1 || result.getTupleCount() != 1) throw new PSQLException("postgresql.unexpected"); result.next(); type_name = result.getString(1); conn.fieldCache.put(new Integer(oid),type_name); result.close(); } sql_type = getSQLType(type_name); }
public static int getSQLType(String type_name) { int sql_type = Types.OTHER; // default value for(int i=0;i<types.length;i++) if(type_name.equals(types[i])) sql_type=typei[i]; return sql_type; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Field.java/buggy/src/interfaces/jdbc/org/postgresql/Field.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 21708, 559, 12, 780, 618, 67, 529, 13, 225, 288, 565, 509, 1847, 67, 723, 273, 7658, 18, 23940, 31, 368, 805, 460, 565, 364, 12, 474, 277, 33, 20, 31, 77, 32, 2352, 18, 2469, 31, 77, 27245, 1377, 309, 12, 723, 67, 529, 18, 14963, 12, 2352, 63, 77, 22643, 202, 4669, 67, 723, 33, 723, 77, 63, 77, 15533, 565, 327, 1847, 67, 723, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 21708, 559, 12, 780, 618, 67, 529, 13, 225, 288, 565, 509, 1847, 67, 723, 273, 7658, 18, 23940, 31, 368, 805, 460, 565, 364, 12, 474, 277, 33, 20, 31, 77, 32, 2352, 18, 2469, 31, 77, 27245, 1377, 309, 12, 723, 67, 529, 18, 14963, 12, 2352, 63, 77, 22643, 202, 4669, 67, 723, 33, 723, 77, 63, 77, 15533, 565, 327, 1847, 67, 723, 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 ]
protected List createResourceProperties(String resourceName, String resTypeName, String title) { // create property values List properties = new ArrayList(3); // get explorer type settings for the resource type CmsExplorerTypeSettings settings = OpenCms.getWorkplaceManager().getExplorerTypeSetting(resTypeName); if (settings.isAutoSetTitle()) { // add the Title property properties.add(createPropertyObject(CmsPropertyDefinition.PROPERTY_TITLE, title)); } if (settings.isAutoSetNavigation()) { // add the NavText property properties.add(createPropertyObject(CmsPropertyDefinition.PROPERTY_NAVTEXT, title)); // calculate the new navigation position for the resource List navList = CmsJspNavBuilder.getNavigationForFolder(getCms(), resourceName); float navPos = 1; if (navList.size() > 0) { CmsJspNavElement nav = (CmsJspNavElement)navList.get(navList.size() - 1); navPos = nav.getNavPosition() + 1; } // add the NavPos property properties.add(createPropertyObject(CmsPropertyDefinition.PROPERTY_NAVPOS, String.valueOf(navPos))); } return properties; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8e5ec1587622bcff5ef3c95201cc74d091b0a04c/CmsNewResource.java/buggy/src/org/opencms/workplace/explorer/CmsNewResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 24317, 2297, 12, 780, 9546, 16, 514, 400, 7947, 16, 514, 2077, 13, 288, 7734, 368, 752, 1272, 924, 3639, 987, 1790, 273, 394, 2407, 12, 23, 1769, 3639, 368, 336, 22147, 618, 1947, 364, 326, 1058, 618, 3639, 2149, 20938, 559, 2628, 1947, 273, 10319, 18, 588, 16514, 1318, 7675, 588, 20938, 559, 5568, 12, 455, 7947, 1769, 3639, 309, 261, 4272, 18, 291, 4965, 694, 4247, 10756, 288, 5411, 368, 527, 326, 10984, 1272, 5411, 1790, 18, 1289, 12, 2640, 1396, 921, 12, 4747, 1396, 1852, 18, 9900, 67, 14123, 16, 2077, 10019, 3639, 289, 3639, 309, 261, 4272, 18, 291, 4965, 694, 14301, 10756, 288, 5411, 368, 527, 326, 423, 842, 1528, 1272, 5411, 1790, 18, 1289, 12, 2640, 1396, 921, 12, 4747, 1396, 1852, 18, 9900, 67, 50, 5856, 5151, 16, 2077, 10019, 5411, 368, 4604, 326, 394, 10394, 1754, 364, 326, 1058, 5411, 987, 8775, 682, 273, 31108, 12599, 1263, 18, 588, 14301, 1290, 3899, 12, 588, 4747, 9334, 9546, 1769, 5411, 1431, 8775, 1616, 273, 404, 31, 5411, 309, 261, 11589, 682, 18, 1467, 1435, 405, 374, 13, 288, 7734, 31108, 12599, 1046, 8775, 273, 261, 4747, 21796, 12599, 1046, 13, 11589, 682, 18, 588, 12, 11589, 682, 18, 1467, 1435, 300, 404, 1769, 7734, 8775, 1616, 273, 8775, 18, 588, 12599, 2555, 1435, 397, 404, 31, 5411, 289, 5411, 368, 527, 326, 423, 842, 1616, 1272, 5411, 1790, 18, 1289, 12, 2640, 1396, 921, 12, 4747, 1396, 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, 987, 24317, 2297, 12, 780, 9546, 16, 514, 400, 7947, 16, 514, 2077, 13, 288, 7734, 368, 752, 1272, 924, 3639, 987, 1790, 273, 394, 2407, 12, 23, 1769, 3639, 368, 336, 22147, 618, 1947, 364, 326, 1058, 618, 3639, 2149, 20938, 559, 2628, 1947, 273, 10319, 18, 588, 16514, 1318, 7675, 588, 20938, 559, 5568, 12, 455, 7947, 1769, 3639, 309, 261, 4272, 18, 291, 4965, 694, 4247, 10756, 288, 5411, 368, 527, 326, 10984, 1272, 5411, 1790, 18, 1289, 12, 2640, 1396, 921, 12, 4747, 1396, 1852, 18, 9900, 67, 14123, 16, 2077, 10019, 3639, 289, 3639, 309, 261, 4272, 18, 291, 4965, 694, 14301, 10756, 288, 5411, 368, 527, 326, 423, 842, 1528, 1272, 2 ]
+ t.functionMMFF94SumET(coords3d) ;
+ t.functionMMFF94SumET(coords3d) ;
public double energyFunction(GVector coords3d) { //System.out.println("bs.functionMMFF94SumEB(coords3d) = " + bs.functionMMFF94SumEB(coords3d)); //System.out.println("ab.functionMMFF94SumEA(coords3d) = " + ab.functionMMFF94SumEA(coords3d)); //System.out.println("sbi.functionMMFF94SumEBA(coords3d) = " + sbi.functionMMFF94SumEBA(coords3d)); //System.out.println("t.functionMMFF94SumET(coords3d) = " + t.functionMMFF94SumET(coords3d)); //System.out.println("vdwi.functionMMFF94SumEvdW(coords3d) = " + vdwi.functionMMFF94SumEvdW(coords3d)); energy = bs.functionMMFF94SumEB(coords3d) + ab.functionMMFF94SumEA(coords3d) // + sbi.functionMMFF94SumEBA(coords3d) + t.functionMMFF94SumET(coords3d) ;//+ vdwi.functionMMFF94SumEvdW(coords3d); //System.out.println("energy = " + energy); return energy; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/9adcbd5769512fe518277f87ee5cc7c84de1ccb0/MMFF94EnergyFunction.java/clean/src/org/openscience/cdk/modeling/forcefield/MMFF94EnergyFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1645, 12929, 2083, 12, 43, 5018, 6074, 23, 72, 13, 288, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 2038, 18, 915, 8206, 2246, 11290, 3495, 29258, 12, 9076, 23, 72, 13, 273, 315, 397, 7081, 18, 915, 8206, 2246, 11290, 3495, 29258, 12, 9076, 23, 72, 10019, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 378, 18, 915, 8206, 2246, 11290, 3495, 41, 37, 12, 9076, 23, 72, 13, 273, 315, 397, 1223, 18, 915, 8206, 2246, 11290, 3495, 41, 37, 12, 9076, 23, 72, 10019, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 87, 13266, 18, 915, 8206, 2246, 11290, 3495, 41, 12536, 12, 9076, 23, 72, 13, 273, 315, 397, 2393, 77, 18, 915, 8206, 2246, 11290, 3495, 41, 12536, 12, 9076, 23, 72, 10019, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 88, 18, 915, 8206, 2246, 11290, 3495, 1584, 12, 9076, 23, 72, 13, 273, 315, 397, 268, 18, 915, 8206, 2246, 11290, 3495, 1584, 12, 9076, 23, 72, 10019, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 16115, 91, 77, 18, 915, 8206, 2246, 11290, 3495, 41, 16115, 59, 12, 9076, 23, 72, 13, 273, 315, 397, 21161, 91, 77, 18, 915, 8206, 2246, 11290, 3495, 41, 16115, 59, 12, 9076, 23, 72, 10019, 9506, 202, 15358, 273, 7081, 18, 915, 8206, 2246, 11290, 3495, 29258, 12, 9076, 23, 72, 13, 1875, 202, 15, 1223, 18, 915, 8206, 2246, 11290, 3495, 41, 37, 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, 1645, 12929, 2083, 12, 43, 5018, 6074, 23, 72, 13, 288, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 2038, 18, 915, 8206, 2246, 11290, 3495, 29258, 12, 9076, 23, 72, 13, 273, 315, 397, 7081, 18, 915, 8206, 2246, 11290, 3495, 29258, 12, 9076, 23, 72, 10019, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 378, 18, 915, 8206, 2246, 11290, 3495, 41, 37, 12, 9076, 23, 72, 13, 273, 315, 397, 1223, 18, 915, 8206, 2246, 11290, 3495, 41, 37, 12, 9076, 23, 72, 10019, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 87, 13266, 18, 915, 8206, 2246, 11290, 3495, 41, 12536, 12, 9076, 23, 72, 13, 273, 315, 397, 2 ]
JMenu query = new JMenu("Query"); JMenuItem newQuery = new JMenuItem("New"); newQuery.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doNewQuery(); } }); query.add(newQuery);
JMenu query = new JMenu("Query"); JMenuItem newQuery = new JMenuItem("New"); newQuery.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doNewQuery(); } }); query.add(newQuery);
private JMenuBar createMenuBar() { JMenu file = new JMenu("File"); JMenuItem importRegistry = new JMenuItem("Import registry file"); importRegistry.setEnabled(false); file.add(importRegistry); JMenuItem exportRegistry = new JMenuItem("Export registry file"); exportRegistry.setEnabled(false); file.add(exportRegistry); file.addSeparator(); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doExit(); } }); file.add(exit); JMenu connections = new JMenu("Connections"); JMenu databases = new JMenu("Databases"); connections.add(databases); JMenuItem addDatabase = new JMenuItem("Add"); databases.add(addDatabase); addDatabase.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doAddDatabase(); } }); JMenuItem removeDatabase = new JMenuItem("Remove"); removeDatabase.setEnabled(false); databases.add(removeDatabase); removeDatabase.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doRemoveDatabase(); } }); JMenu servers = new JMenu("Servers"); connections.add(servers); JMenuItem addServer = new JMenuItem("Add"); addServer.setEnabled(false); servers.add(addServer); JMenuItem removeServer = new JMenuItem("Remove"); removeServer.setEnabled(false); servers.add(removeServer); JMenu views = new JMenu("Views"); JMenuItem removeView = new JMenuItem("Remove"); removeView.setEnabled(false); views.add(removeView); JMenuItem bind = new JMenuItem("Bind to Databases"); bind.setEnabled(false); views.add(bind); bind.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doBindViewsAndDatabases(); } }); views.addSeparator(); JMenuItem importView = new JMenuItem("Import"); views.add(importView); importView.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doLoadDatasetsFromFile(); } }); JMenu query = new JMenu("Query"); JMenuItem newQuery = new JMenuItem("New"); newQuery.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doNewQuery(); } }); query.add(newQuery); JMenuItem removeQuery = new JMenuItem("Remove"); removeQuery.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doRemoveQuery(); } }); query.add(removeQuery); JMenuItem execute = new JMenuItem("Execute"); execute.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doExecuteQuery(); } }); query.add(execute); JMenuItem save = new JMenuItem("Save Results"); save.setEnabled(false); save.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doSave(); } }); query.add(save); query.addSeparator(); JMenuItem importQuery = new JMenuItem("Import"); importQuery.setEnabled(false); query.add(importQuery); JMenuItem exportQuery = new JMenuItem("Export"); exportQuery.setEnabled(false); query.add(exportQuery); JMenu help = new JMenu("Help"); JMenuItem about = new JMenuItem("About"); about.setEnabled(false); about.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { doAbout(); } }); help.add(about); JMenuBar all = new JMenuBar(); all.add(file); all.add(connections); all.add(views); all.add(query); all.add(help); return all; }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/30eaa1dcdfd92d8695bfaf583a28e73ab5302229/MartExplorer.java/buggy/src/java/org/ensembl/mart/explorer/MartExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 804, 4599, 5190, 752, 4599, 5190, 1435, 288, 202, 202, 46, 4599, 585, 273, 394, 804, 4599, 2932, 812, 8863, 202, 202, 46, 12958, 1930, 4243, 273, 394, 804, 12958, 2932, 5010, 4023, 585, 8863, 202, 202, 5666, 4243, 18, 542, 1526, 12, 5743, 1769, 202, 202, 768, 18, 1289, 12, 5666, 4243, 1769, 202, 202, 46, 12958, 3359, 4243, 273, 394, 804, 12958, 2932, 6144, 4023, 585, 8863, 202, 202, 6530, 4243, 18, 542, 1526, 12, 5743, 1769, 202, 202, 768, 18, 1289, 12, 6530, 4243, 1769, 202, 202, 768, 18, 1289, 6581, 5621, 202, 202, 46, 12958, 2427, 273, 394, 804, 12958, 2932, 6767, 8863, 202, 202, 8593, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 1082, 202, 482, 918, 26100, 12, 1803, 1133, 871, 13, 288, 9506, 202, 2896, 6767, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 768, 18, 1289, 12, 8593, 1769, 202, 202, 46, 4599, 5921, 273, 394, 804, 4599, 2932, 9314, 8863, 202, 202, 46, 4599, 16358, 273, 394, 804, 4599, 2932, 31635, 8863, 202, 202, 13313, 18, 1289, 12, 3404, 19684, 1769, 202, 202, 46, 12958, 527, 4254, 273, 394, 804, 12958, 2932, 986, 8863, 202, 202, 3404, 19684, 18, 1289, 12, 1289, 4254, 1769, 202, 202, 1289, 4254, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 1082, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 9506, 202, 2896, 986, 4254, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 46, 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, 804, 4599, 5190, 752, 4599, 5190, 1435, 288, 202, 202, 46, 4599, 585, 273, 394, 804, 4599, 2932, 812, 8863, 202, 202, 46, 12958, 1930, 4243, 273, 394, 804, 12958, 2932, 5010, 4023, 585, 8863, 202, 202, 5666, 4243, 18, 542, 1526, 12, 5743, 1769, 202, 202, 768, 18, 1289, 12, 5666, 4243, 1769, 202, 202, 46, 12958, 3359, 4243, 273, 394, 804, 12958, 2932, 6144, 4023, 585, 8863, 202, 202, 6530, 4243, 18, 542, 1526, 12, 5743, 1769, 202, 202, 768, 18, 1289, 12, 6530, 4243, 1769, 202, 202, 768, 18, 1289, 6581, 5621, 202, 202, 46, 12958, 2427, 273, 394, 804, 12958, 2932, 6767, 8863, 202, 202, 8593, 18, 1289, 1803, 2223, 12, 2704, 2 ]
getContainer().updateButtons();
public void selectionChanged(SelectionChangedEvent event) { ISelection selection = event.getSelection(); setDescription(""); //$NON-NLS-1$ fTemplateLabel.setText(PDEUIMessages.NewExtensionWizard_PointSelectionPage_contributedTemplates_title); fPointDescription.setText(PDEUIMessages.PointSelectionPage_noDescAvailable); fDescLink.setText(NLS.bind(PDEUIMessages.PointSelectionPage_extPointDesc, "")); //$NON-NLS-1$ if (selection instanceof IStructuredSelection) { IStructuredSelection ssel = (IStructuredSelection) selection; if (ssel != null && !ssel.isEmpty()) { if (ssel.getFirstElement() instanceof IPluginExtensionPoint){ fCurrentPoint = (IPluginExtensionPoint) ssel.getFirstElement(); fTemplateViewer.setInput(fCurrentPoint); URL url = SchemaRegistry.getSchemaURL(fCurrentPoint); String fullID = fCurrentPoint.getFullId(); ISchema desc = new SchemaDescriptor(fullID, url).getSchema(false); String schemaName = desc != null ? desc.getName() : fullID; setDescription(NLS.bind(PDEUIMessages.NewExtensionWizard_PointSelectionPage_pluginDescription, schemaName)); setDescriptionText(""); //$NON-NLS-1$ fTemplateLabel.setText(NLS.bind(PDEUIMessages.NewExtensionWizard_PointSelectionPage_contributedTemplates_label, schemaName.toLowerCase(Locale.ENGLISH))); fDescLink.setText(NLS.bind(PDEUIMessages.PointSelectionPage_extPointDesc, schemaName)); if (desc != null) fPointDescription.setText(stripTags(desc.getDescription())); setSelectedNode(null); setPageComplete(true); } else if (ssel.getFirstElement() instanceof WizardElement) { WizardElement wizardSelection = (WizardElement)ssel.getFirstElement(); setSelectedNode(createWizardNode(wizardSelection)); setDescriptionText(wizardSelection.getDescription()); setDescription(NLS.bind(PDEUIMessages.NewExtensionWizard_PointSelectionPage_templateDescription, wizardSelection.getLabel())); setPageComplete(false); } } else { setSelectedNode(null); setPageComplete(false); } } getContainer().updateButtons(); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/fa0d8c81a3a2279da013b41ad329359b342e304f/PointSelectionPage.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/extension/PointSelectionPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 9506, 202, 45, 6233, 4421, 273, 871, 18, 588, 6233, 5621, 202, 202, 542, 3291, 2932, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 74, 2283, 2224, 18, 542, 1528, 12, 52, 1639, 57, 3445, 1753, 18, 1908, 3625, 27130, 67, 2148, 6233, 1964, 67, 591, 11050, 8218, 67, 2649, 1769, 202, 202, 74, 2148, 3291, 18, 542, 1528, 12, 52, 1639, 57, 3445, 1753, 18, 2148, 6233, 1964, 67, 2135, 4217, 5268, 1769, 202, 202, 74, 4217, 2098, 18, 542, 1528, 12, 5106, 18, 4376, 12, 52, 1639, 57, 3445, 1753, 18, 2148, 6233, 1964, 67, 408, 2148, 4217, 16, 1408, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 10705, 1276, 467, 30733, 6233, 13, 288, 1082, 202, 45, 30733, 6233, 272, 1786, 273, 261, 45, 30733, 6233, 13, 4421, 31, 1082, 202, 430, 261, 1049, 292, 480, 446, 597, 401, 1049, 292, 18, 291, 1921, 10756, 288, 9506, 202, 430, 261, 1049, 292, 18, 588, 3759, 1046, 1435, 1276, 467, 3773, 3625, 2148, 15329, 6862, 202, 74, 3935, 2148, 273, 261, 45, 3773, 3625, 2148, 13, 272, 1786, 18, 588, 3759, 1046, 5621, 6862, 202, 74, 2283, 18415, 18, 542, 1210, 12, 74, 3935, 2148, 1769, 6862, 202, 1785, 880, 273, 4611, 4243, 18, 588, 3078, 1785, 12, 74, 3935, 2148, 1769, 6862, 202, 780, 1983, 734, 273, 284, 3935, 2148, 18, 588, 5080, 548, 5621, 6862, 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, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 9506, 202, 45, 6233, 4421, 273, 871, 18, 588, 6233, 5621, 202, 202, 542, 3291, 2932, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 74, 2283, 2224, 18, 542, 1528, 12, 52, 1639, 57, 3445, 1753, 18, 1908, 3625, 27130, 67, 2148, 6233, 1964, 67, 591, 11050, 8218, 67, 2649, 1769, 202, 202, 74, 2148, 3291, 18, 542, 1528, 12, 52, 1639, 57, 3445, 1753, 18, 2148, 6233, 1964, 67, 2135, 4217, 5268, 1769, 202, 202, 74, 4217, 2098, 18, 542, 1528, 12, 5106, 18, 4376, 12, 52, 1639, 57, 3445, 1753, 18, 2148, 6233, 1964, 67, 408, 2148, 4217, 16, 1408, 10019, 4329, 3993, 2 ]
node.setAttribute("Notes", t.getNotes()); node.setAttribute("Elapsed", t.getElapsedTime()); node.setAttribute("Estimated", t.getEstimatedTime()); List<String> rl = t.getRelatedLinks().getLinks();
node.setAttribute("Notes", task.getNotes()); node.setAttribute("Elapsed", task.getElapsedTime()); node.setAttribute("Estimated", task.getEstimatedTime()); List<String> rl = task.getRelatedLinks().getLinks();
public static void writeTask(ITask t, Document doc, Element root) { // create node and set attributes // Element node = doc.createElement("Task"); node.setAttribute("Path", t.getPath()); node.setAttribute("Label", t.getLabel()); node.setAttribute("Handle", t.getHandle()); node.setAttribute("Priority", t.getPriority()); if (t.isCategory()) { node.setAttribute("IsCategory", "true"); } else { node.setAttribute("IsCategory", "false"); } if (t.isCompleted()) { node.setAttribute("Complete", "true"); } else { node.setAttribute("Complete", "false"); } if (t.isActive()) { node.setAttribute("Active", "true"); } else { node.setAttribute("Active", "false"); } if (t instanceof BugzillaTask) { BugzillaTask bt = (BugzillaTask) t; node.setAttribute("Bugzilla", "true"); node.setAttribute("LastDate", new Long(bt.getLastRefreshTime() .getTime()).toString()); if (bt.isDirty()) { node.setAttribute("Dirty", "true"); } else { node.setAttribute("Dirty", "false"); } bt.saveBugReport(false); } else { node.setAttribute("Bugzilla", "false"); } node.setAttribute("Notes", t.getNotes()); node.setAttribute("Elapsed", t.getElapsedTime()); node.setAttribute("Estimated", t.getEstimatedTime()); List<String> rl = t.getRelatedLinks().getLinks(); int i = 0; for (String link : rl) { node.setAttribute("link"+i, link); i++; } List<ITask> children = t.getChildren(); i = 0; for (i = 0; i < children.size(); i++) { writeTask(children.get(i), doc, node); } // append new node to root node // root.appendChild(node); return; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9fa4576e36e0ed40d7b1e9e3379eb977186a3224/XmlUtil.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/util/XmlUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1045, 2174, 12, 1285, 835, 268, 16, 4319, 997, 16, 3010, 1365, 13, 288, 202, 202, 759, 752, 756, 471, 444, 1677, 202, 202, 759, 377, 1082, 202, 1046, 756, 273, 997, 18, 2640, 1046, 2932, 2174, 8863, 202, 202, 2159, 18, 542, 1499, 2932, 743, 3113, 268, 18, 588, 743, 10663, 202, 202, 2159, 18, 542, 1499, 2932, 2224, 3113, 268, 18, 588, 2224, 10663, 202, 202, 2159, 18, 542, 1499, 2932, 3259, 3113, 268, 18, 588, 3259, 10663, 202, 202, 2159, 18, 542, 1499, 2932, 8183, 3113, 268, 18, 588, 8183, 10663, 202, 202, 430, 261, 88, 18, 291, 4457, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 2520, 4457, 3113, 315, 3767, 8863, 202, 202, 97, 469, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 2520, 4457, 3113, 315, 5743, 8863, 202, 202, 97, 202, 202, 430, 261, 88, 18, 291, 9556, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 6322, 3113, 315, 3767, 8863, 202, 202, 97, 469, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 6322, 3113, 315, 5743, 8863, 202, 202, 97, 202, 202, 430, 261, 88, 18, 291, 3896, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 3896, 3113, 315, 3767, 8863, 202, 202, 97, 469, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 3896, 3113, 315, 5743, 8863, 202, 202, 97, 202, 202, 430, 261, 88, 1276, 16907, 15990, 2174, 13, 288, 1082, 202, 19865, 15990, 2174, 10921, 273, 261, 19865, 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, 1045, 2174, 12, 1285, 835, 268, 16, 4319, 997, 16, 3010, 1365, 13, 288, 202, 202, 759, 752, 756, 471, 444, 1677, 202, 202, 759, 377, 1082, 202, 1046, 756, 273, 997, 18, 2640, 1046, 2932, 2174, 8863, 202, 202, 2159, 18, 542, 1499, 2932, 743, 3113, 268, 18, 588, 743, 10663, 202, 202, 2159, 18, 542, 1499, 2932, 2224, 3113, 268, 18, 588, 2224, 10663, 202, 202, 2159, 18, 542, 1499, 2932, 3259, 3113, 268, 18, 588, 3259, 10663, 202, 202, 2159, 18, 542, 1499, 2932, 8183, 3113, 268, 18, 588, 8183, 10663, 202, 202, 430, 261, 88, 18, 291, 4457, 10756, 288, 1082, 202, 2159, 18, 542, 1499, 2932, 2520, 4457, 3113, 2 ]
parent = ((CDATA) node).getParent();
parent = (Element) ((CDATA) node).getParent();
private int getRelativePositionOfTextNode() { Element parent; if (node instanceof Text) { parent = ((Text) node).getParent(); } else { parent = ((CDATA) node).getParent(); } if (parent == null) { return 1; } List children = parent.getContent(); int count = 0; for (int i = 0; i < children.size(); i++) { Object child = children.get(i); if (child instanceof Text || child instanceof CDATA) { count++; } if (child == node) { break; } } return count; }
52531 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52531/ad1fac2acdf18b55b550c1d953c074a2658fc43a/JDOMNodePointer.java/clean/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 336, 8574, 2555, 951, 17299, 1435, 288, 3639, 3010, 982, 31, 3639, 309, 261, 2159, 1276, 3867, 13, 288, 5411, 982, 273, 14015, 1528, 13, 756, 2934, 588, 3054, 5621, 3639, 289, 3639, 469, 288, 5411, 982, 273, 261, 1046, 13, 14015, 18375, 13, 756, 2934, 588, 3054, 5621, 3639, 289, 3639, 309, 261, 2938, 422, 446, 13, 288, 5411, 327, 404, 31, 3639, 289, 3639, 987, 2325, 273, 982, 18, 588, 1350, 5621, 3639, 509, 1056, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2325, 18, 1467, 5621, 277, 27245, 288, 5411, 1033, 1151, 273, 2325, 18, 588, 12, 77, 1769, 5411, 309, 261, 3624, 1276, 3867, 747, 1151, 1276, 28294, 13, 288, 7734, 1056, 9904, 31, 5411, 289, 5411, 309, 261, 3624, 422, 756, 13, 288, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 327, 1056, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 336, 8574, 2555, 951, 17299, 1435, 288, 3639, 3010, 982, 31, 3639, 309, 261, 2159, 1276, 3867, 13, 288, 5411, 982, 273, 14015, 1528, 13, 756, 2934, 588, 3054, 5621, 3639, 289, 3639, 469, 288, 5411, 982, 273, 261, 1046, 13, 14015, 18375, 13, 756, 2934, 588, 3054, 5621, 3639, 289, 3639, 309, 261, 2938, 422, 446, 13, 288, 5411, 327, 404, 31, 3639, 289, 3639, 987, 2325, 273, 982, 18, 588, 1350, 5621, 3639, 509, 1056, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2325, 18, 1467, 5621, 277, 27245, 288, 5411, 1033, 1151, 273, 2325, 18, 588, 12, 77, 1769, 5411, 309, 261, 3624, 1276, 3867, 747, 1151, 1276, 2 ]
}
} else expanded.add(descriptor); /* Still need the descriptor */
public static Set expand(Set descriptors) { HashSet expanded = new HashSet(); Iterator d = descriptors.iterator(); while (d.hasNext()) { Descriptor descriptor = (Descriptor) d.next(); if (descriptor instanceof SetDescriptor) { expanded.addAll(((SetDescriptor) descriptor).allSubsets()); } } expanded.addAll(descriptors); return expanded; }
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/96b569d948d8ee21758ec59cf697675335f15262/SetDescriptor.java/buggy/RepairCompiler/MCC/IR/SetDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1000, 4542, 12, 694, 14215, 13, 288, 3639, 6847, 8406, 273, 394, 6847, 5621, 3639, 4498, 302, 273, 14215, 18, 9838, 5621, 7734, 1323, 261, 72, 18, 5332, 2134, 10756, 288, 5411, 12823, 4950, 273, 261, 3187, 13, 302, 18, 4285, 5621, 13491, 309, 261, 12628, 1276, 1000, 3187, 13, 288, 7734, 8406, 18, 1289, 1595, 12443, 12, 694, 3187, 13, 4950, 2934, 454, 1676, 4424, 10663, 5411, 289, 469, 8406, 18, 1289, 12, 12628, 1769, 1748, 934, 737, 1608, 326, 4950, 1195, 3639, 289, 469, 8406, 18, 1289, 12, 12628, 1769, 1748, 934, 737, 1608, 326, 4950, 1195, 3639, 8406, 18, 1289, 1595, 12, 72, 8379, 1769, 3639, 327, 8406, 31, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1000, 4542, 12, 694, 14215, 13, 288, 3639, 6847, 8406, 273, 394, 6847, 5621, 3639, 4498, 302, 273, 14215, 18, 9838, 5621, 7734, 1323, 261, 72, 18, 5332, 2134, 10756, 288, 5411, 12823, 4950, 273, 261, 3187, 13, 302, 18, 4285, 5621, 13491, 309, 261, 12628, 1276, 1000, 3187, 13, 288, 7734, 8406, 18, 1289, 1595, 12443, 12, 694, 3187, 13, 4950, 2934, 454, 1676, 4424, 10663, 5411, 289, 469, 8406, 18, 1289, 12, 12628, 1769, 1748, 934, 737, 1608, 326, 4950, 1195, 3639, 289, 469, 8406, 18, 1289, 12, 12628, 1769, 1748, 934, 737, 1608, 326, 4950, 1195, 3639, 8406, 18, 1289, 1595, 12, 72, 8379, 1769, 3639, 327, 8406, 31, 5411, 289, 2, -100, -100 ]
Response[] res = new Response[4];
Response[] res = new Response[7];
public void testBasicGuidance() throws Exception { for (int i = 0; i < testUP.length; i++) // send a MessagesSupportedMessage testUP[i].send(MessagesSupportedVendorMessage.instance()); // spawn a query and make sure all UPs get it GUID queryGuid = new GUID(RouterService.newQueryGUID()); RouterService.query(queryGuid.bytes(), "susheel"); Thread.sleep(250); for (int i = 0; i < testUP.length; i++) { QueryRequest qr = getFirstQueryRequest(testUP[i]); assertNotNull(qr); assertEquals(new GUID(qr.getGUID()), queryGuid); } // now send back results and make sure that we get a QueryStatus // from the leaf Message m = null; assertGreaterThan(REPORT_INTERVAL, 4*testUP.length); for (int i = 0; i < testUP.length; i++) { Response[] res = new Response[4]; res[0] = new Response(10, 10, "susheel"+i); res[1] = new Response(10, 10, "susheel smells good"+i); res[2] = new Response(10, 10, "anita is sweet"+i); res[3] = new Response(10, 10, "anita is prety"+i); m = new QueryReply(queryGuid.bytes(), (byte) 1, 6355, myIP(), 0, res, GUID.makeGuid(), new byte[0], false, false, true, true, false, false, null); testUP[i].send(m); testUP[i].flush(); } // all UPs should get a QueryStatusResponse for (int i = 0; i < testUP.length; i++) { QueryStatusResponse stat = getFirstQueryStatus(testUP[i]); assertNotNull(stat); assertEquals(new GUID(stat.getGUID()), queryGuid); assertEquals(4, stat.getNumResults()); } // shut off the query.... RouterService.stopQuery(queryGuid); // all UPs should get a QueryStatusResponse with 65535 for (int i = 0; i < testUP.length; i++) { QueryStatusResponse stat = getFirstQueryStatus(testUP[i]); assertNotNull(stat); assertEquals(new GUID(stat.getGUID()), queryGuid); assertEquals(65535, stat.getNumResults()); } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/acef8c897315fea7b6c4e0479d9606a7660fac23/ClientSideLeafGuidanceTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/ClientSideLeafGuidanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8252, 22549, 1359, 1435, 1216, 1185, 288, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1842, 3079, 18, 2469, 31, 277, 27245, 5411, 368, 1366, 279, 4838, 7223, 1079, 5411, 1842, 3079, 63, 77, 8009, 4661, 12, 5058, 7223, 14786, 1079, 18, 1336, 10663, 3639, 368, 12560, 279, 843, 471, 1221, 3071, 777, 7376, 87, 336, 518, 3639, 20322, 843, 22549, 273, 394, 20322, 12, 8259, 1179, 18, 2704, 1138, 17525, 10663, 3639, 9703, 1179, 18, 2271, 12, 2271, 22549, 18, 3890, 9334, 315, 87, 407, 11648, 8863, 3639, 4884, 18, 19607, 12, 26520, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1842, 3079, 18, 2469, 31, 277, 27245, 288, 5411, 2770, 691, 12677, 273, 7521, 1138, 691, 12, 3813, 3079, 63, 77, 19226, 5411, 25395, 12, 27401, 1769, 5411, 1815, 8867, 12, 2704, 20322, 12, 27401, 18, 588, 17525, 1435, 3631, 843, 22549, 1769, 3639, 289, 3639, 368, 2037, 1366, 1473, 1686, 471, 1221, 3071, 716, 732, 336, 279, 2770, 1482, 3639, 368, 628, 326, 7839, 3639, 2350, 312, 273, 446, 31, 3639, 1815, 28130, 12, 22710, 67, 16435, 16, 1059, 14, 3813, 3079, 18, 2469, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1842, 3079, 18, 2469, 31, 277, 27245, 288, 5411, 2306, 8526, 400, 273, 394, 2306, 63, 27, 15533, 5411, 400, 63, 20, 65, 273, 394, 2306, 12, 2163, 16, 1728, 16, 315, 87, 407, 11648, 6, 15, 77, 1769, 5411, 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, 8252, 22549, 1359, 1435, 1216, 1185, 288, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1842, 3079, 18, 2469, 31, 277, 27245, 5411, 368, 1366, 279, 4838, 7223, 1079, 5411, 1842, 3079, 63, 77, 8009, 4661, 12, 5058, 7223, 14786, 1079, 18, 1336, 10663, 3639, 368, 12560, 279, 843, 471, 1221, 3071, 777, 7376, 87, 336, 518, 3639, 20322, 843, 22549, 273, 394, 20322, 12, 8259, 1179, 18, 2704, 1138, 17525, 10663, 3639, 9703, 1179, 18, 2271, 12, 2271, 22549, 18, 3890, 9334, 315, 87, 407, 11648, 8863, 3639, 4884, 18, 19607, 12, 26520, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1842, 3079, 18, 2469, 31, 277, 27245, 288, 2 ]
if (_options.getInactivityTimeout() <= 0) return; if (_activityTimer == null) return;
if (_options.getInactivityTimeout() <= 0) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Resetting the inactivity timer, but its gone!", new Exception("where did it go?")); return; } if (_activityTimer == null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Resetting the inactivity timer, but its gone!", new Exception("where did it go?")); return; }
private void resetActivityTimer() { if (_options.getInactivityTimeout() <= 0) return; if (_activityTimer == null) return; long howLong = _activityTimer.getTimeLeft(); if (_log.shouldLog(Log.DEBUG)) _log.debug("Resetting the inactivity timer to " + howLong); // this will get rescheduled, and rescheduled, and rescheduled... SimpleTimer.getInstance().addEvent(_activityTimer, howLong); }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/b9b59ff95fa26f930c7e03f11cb8de9d2416888f/Connection.java/buggy/apps/streaming/java/src/net/i2p/client/streaming/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2715, 6193, 6777, 1435, 288, 3639, 309, 261, 67, 2116, 18, 588, 382, 9653, 2694, 1435, 1648, 374, 13, 327, 31, 3639, 309, 261, 67, 9653, 6777, 422, 446, 13, 327, 31, 3639, 1525, 3661, 3708, 273, 389, 9653, 6777, 18, 588, 950, 3910, 5621, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 2932, 7013, 1787, 326, 316, 9653, 5441, 358, 315, 397, 3661, 3708, 1769, 3639, 368, 333, 903, 336, 400, 2847, 72, 16, 471, 400, 2847, 72, 16, 471, 400, 2847, 72, 2777, 3639, 4477, 6777, 18, 588, 1442, 7675, 1289, 1133, 24899, 9653, 6777, 16, 3661, 3708, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2715, 6193, 6777, 1435, 288, 3639, 309, 261, 67, 2116, 18, 588, 382, 9653, 2694, 1435, 1648, 374, 13, 327, 31, 3639, 309, 261, 67, 9653, 6777, 422, 446, 13, 327, 31, 3639, 1525, 3661, 3708, 273, 389, 9653, 6777, 18, 588, 950, 3910, 5621, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 2932, 7013, 1787, 326, 316, 9653, 5441, 358, 315, 397, 3661, 3708, 1769, 3639, 368, 333, 903, 336, 400, 2847, 72, 16, 471, 400, 2847, 72, 16, 471, 400, 2847, 72, 2777, 3639, 4477, 6777, 18, 588, 1442, 7675, 1289, 1133, 24899, 9653, 6777, 16, 3661, 3708, 1769, 565, 289, 2, -100, -100, -100 ]
private boolean isImmediatelyAssigned(PsiVariable variable) { final PsiCodeBlock containingScope = PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class); if (containingScope == null) { return false; } final PsiDeclarationStatement declarationStatement = PsiTreeUtil.getParentOfType(variable, PsiDeclarationStatement.class); if (declarationStatement == null) { return false; } PsiStatement nextStatement = null; int followingStatementNumber = 0; final PsiStatement[] statements = containingScope.getStatements(); for (int i = 0; i < statements.length - 1; i++) { if (statements[i].equals(declarationStatement)) { nextStatement = statements[i + 1]; followingStatementNumber = i + 2; } } if (nextStatement == null) { return false; } if (!(nextStatement instanceof PsiExpressionStatement)) { return false; } final PsiExpressionStatement expressionStatement = (PsiExpressionStatement) nextStatement; final PsiExpression expression = expressionStatement.getExpression(); if (expression == null) { return false; } if (!(expression instanceof PsiAssignmentExpression)) { return false; } final PsiExpression rhs = ((PsiAssignmentExpression) expression).getRExpression(); if (rhs == null) { return false; } if (!(rhs instanceof PsiReferenceExpression)) { return false; } final PsiElement referent = ((PsiReference) rhs).resolve(); if (referent == null || !referent.equals(variable)) { return false; } for (int i = followingStatementNumber; i < statements.length; i++) { if (VariableAccessUtils.variableIsUsed(statements[i], variable)) { return false; } } return true; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3a38706cda7adfde8de9d23e33827a8df31f8dde/UnnecessaryLocalVariableInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/dataflow/UnnecessaryLocalVariableInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6494, 291, 1170, 7101, 20363, 12, 52, 7722, 3092, 6105, 15329, 6385, 52, 7722, 1085, 1768, 1213, 3280, 3876, 33, 52, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 52, 7722, 1085, 1768, 18, 1106, 1769, 430, 12, 1213, 3280, 3876, 631, 2011, 15329, 2463, 5743, 31, 97, 6385, 52, 7722, 6094, 3406, 22448, 3406, 33, 52, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 52, 7722, 6094, 3406, 18, 1106, 1769, 430, 12, 22448, 3406, 631, 2011, 15329, 2463, 5743, 31, 97, 52, 7722, 3406, 4285, 3406, 33, 2011, 31, 474, 14641, 310, 3406, 1854, 33, 20, 31, 6385, 52, 7722, 3406, 8526, 18393, 33, 1213, 3280, 3876, 18, 588, 14663, 5621, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 18393, 18, 2469, 17, 21, 31, 77, 27245, 95, 430, 12, 18393, 63, 77, 8009, 14963, 12, 22448, 3406, 3719, 95, 4285, 3406, 33, 18393, 63, 77, 15, 21, 15533, 14641, 310, 3406, 1854, 33, 77, 15, 22, 31, 9090, 430, 12, 4285, 3406, 631, 2011, 15329, 2463, 5743, 31, 97, 430, 12, 5, 12, 4285, 3406, 1336, 792, 52, 7722, 2300, 3406, 3719, 95, 2463, 5743, 31, 97, 6385, 52, 7722, 2300, 3406, 8692, 3406, 28657, 52, 7722, 2300, 3406, 13, 4285, 3406, 31, 6385, 52, 7722, 2300, 8692, 33, 8692, 3406, 18, 588, 2300, 5621, 430, 12, 8692, 631, 2011, 15329, 2463, 5743, 31, 97, 430, 12, 5, 12, 8692, 1336, 792, 52, 7722, 7729, 2300, 3719, 95, 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, 291, 1170, 7101, 20363, 12, 52, 7722, 3092, 6105, 15329, 6385, 52, 7722, 1085, 1768, 1213, 3280, 3876, 33, 52, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 52, 7722, 1085, 1768, 18, 1106, 1769, 430, 12, 1213, 3280, 3876, 631, 2011, 15329, 2463, 5743, 31, 97, 6385, 52, 7722, 6094, 3406, 22448, 3406, 33, 52, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 52, 7722, 6094, 3406, 18, 1106, 1769, 430, 12, 22448, 3406, 631, 2011, 15329, 2463, 5743, 31, 97, 52, 7722, 3406, 4285, 3406, 33, 2011, 31, 474, 14641, 310, 3406, 1854, 33, 20, 31, 6385, 52, 7722, 3406, 8526, 18393, 33, 1213, 3280, 3876, 18, 588, 14663, 5621, 1884, 2 ]
AST tmp1873_AST_in = (AST)_t;
AST tmp1877_AST_in = (AST)_t;
public final void systemhandlename(AST _t) throws RecognitionException { AST systemhandlename_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AAMEMORY: { AST tmp1863_AST_in = (AST)_t; match(_t,AAMEMORY); _t = _t.getNextSibling(); break; } case ACTIVEWINDOW: { AST tmp1864_AST_in = (AST)_t; match(_t,ACTIVEWINDOW); _t = _t.getNextSibling(); break; } case AUDITCONTROL: { AST tmp1865_AST_in = (AST)_t; match(_t,AUDITCONTROL); _t = _t.getNextSibling(); break; } case AUDITPOLICY: { AST tmp1866_AST_in = (AST)_t; match(_t,AUDITPOLICY); _t = _t.getNextSibling(); break; } case CLIPBOARD: { AST tmp1867_AST_in = (AST)_t; match(_t,CLIPBOARD); _t = _t.getNextSibling(); break; } case CODEBASELOCATOR: { AST tmp1868_AST_in = (AST)_t; match(_t,CODEBASELOCATOR); _t = _t.getNextSibling(); break; } case COLORTABLE: { AST tmp1869_AST_in = (AST)_t; match(_t,COLORTABLE); _t = _t.getNextSibling(); break; } case COMPILER: { AST tmp1870_AST_in = (AST)_t; match(_t,COMPILER); _t = _t.getNextSibling(); break; } case COMSELF: { AST tmp1871_AST_in = (AST)_t; match(_t,COMSELF); _t = _t.getNextSibling(); break; } case CURRENTWINDOW: { AST tmp1872_AST_in = (AST)_t; match(_t,CURRENTWINDOW); _t = _t.getNextSibling(); break; } case DEBUGGER: { AST tmp1873_AST_in = (AST)_t; match(_t,DEBUGGER); _t = _t.getNextSibling(); break; } case DEFAULTWINDOW: { AST tmp1874_AST_in = (AST)_t; match(_t,DEFAULTWINDOW); _t = _t.getNextSibling(); break; } case ERRORSTATUS: { AST tmp1875_AST_in = (AST)_t; match(_t,ERRORSTATUS); _t = _t.getNextSibling(); break; } case FILEINFORMATION: { AST tmp1876_AST_in = (AST)_t; match(_t,FILEINFORMATION); _t = _t.getNextSibling(); break; } case FOCUS: { AST tmp1877_AST_in = (AST)_t; match(_t,FOCUS); _t = _t.getNextSibling(); break; } case FONTTABLE: { AST tmp1878_AST_in = (AST)_t; match(_t,FONTTABLE); _t = _t.getNextSibling(); break; } case LASTEVENT: { AST tmp1879_AST_in = (AST)_t; match(_t,LASTEVENT); _t = _t.getNextSibling(); break; } case LOGMANAGER: { AST tmp1880_AST_in = (AST)_t; match(_t,LOGMANAGER); _t = _t.getNextSibling(); break; } case MOUSE: { AST tmp1881_AST_in = (AST)_t; match(_t,MOUSE); _t = _t.getNextSibling(); break; } case PROFILER: { AST tmp1882_AST_in = (AST)_t; match(_t,PROFILER); _t = _t.getNextSibling(); break; } case RCODEINFORMATION: { AST tmp1883_AST_in = (AST)_t; match(_t,RCODEINFORMATION); _t = _t.getNextSibling(); break; } case SECURITYPOLICY: { AST tmp1884_AST_in = (AST)_t; match(_t,SECURITYPOLICY); _t = _t.getNextSibling(); break; } case SELF: { AST tmp1885_AST_in = (AST)_t; match(_t,SELF); _t = _t.getNextSibling(); break; } case SESSION: { AST tmp1886_AST_in = (AST)_t; match(_t,SESSION); _t = _t.getNextSibling(); break; } case SOURCEPROCEDURE: { AST tmp1887_AST_in = (AST)_t; match(_t,SOURCEPROCEDURE); _t = _t.getNextSibling(); break; } case SUPER: { AST tmp1888_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); break; } case TARGETPROCEDURE: { AST tmp1889_AST_in = (AST)_t; match(_t,TARGETPROCEDURE); _t = _t.getNextSibling(); break; } case TEXTCURSOR: { AST tmp1890_AST_in = (AST)_t; match(_t,TEXTCURSOR); _t = _t.getNextSibling(); break; } case THISOBJECT: { AST tmp1891_AST_in = (AST)_t; match(_t,THISOBJECT); _t = _t.getNextSibling(); break; } case THISPROCEDURE: { AST tmp1892_AST_in = (AST)_t; match(_t,THISPROCEDURE); _t = _t.getNextSibling(); break; } case WEBCONTEXT: { AST tmp1893_AST_in = (AST)_t; match(_t,WEBCONTEXT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2619, 2349, 14724, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 2349, 14724, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 432, 1642, 49, 3964, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2643, 4449, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 37, 1642, 49, 3964, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 21135, 23407, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2643, 1105, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 13301, 23407, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 432, 12587, 1285, 18248, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2643, 9222, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 37, 12587, 1285, 18248, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 432, 12587, 1285, 26366, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2619, 2349, 14724, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 2349, 14724, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 432, 1642, 49, 3964, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2643, 4449, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 37, 1642, 49, 3964, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 2 ]
public String getResourceName () {return this.resourceName;}
public String getResourceName () { return _resourceName; }
public String getResourceName () {return this.resourceName;}
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/db547b0d0f558c79e827ae77eca41e1fd290d7a5/CommonValidator.java/clean/src/org/hyperic/util/validator/common/CommonValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 4697, 202, 588, 19327, 1082, 202, 1435, 288, 2463, 333, 18, 3146, 461, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 4697, 202, 588, 19327, 1082, 202, 1435, 288, 2463, 333, 18, 3146, 461, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 (ruby_class == null) {
if (ruby.getRubyClass() == null) {
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyArray)obj).entry(i).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyObject eqq = ((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = getRubyFrame().getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = getRubyFrame().getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; ruby.getRubyScope().push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); getRubyFrame().setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().getRubyScope().setLocalVars(vars); getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); } else { getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.getRubyScope().pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyObject val = recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, rval); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, node.nd_value()); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().getRubyScope().setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().getRubyScope().getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.getRubyScope().getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getClasses().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); SearchMethodResult smr = ruby_class.searchMethod((RubyId)node.nd_mid()); NODE body = smr.getBody(); RubyObject origin = smr.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()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getClasses().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (actMethodScope == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getClasses().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 921, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31, 3639, 19817, 921, 460, 273, 446, 31, 3639, 19817, 921, 563, 273, 446, 31, 3639, 19817, 3120, 22155, 797, 273, 446, 31, 3639, 368, 509, 919, 31, 7734, 368, 19817, 8176, 4712, 24137, 273, 4170, 10340, 7675, 588, 8176, 4712, 5621, 7734, 1323, 261, 3767, 13, 288, 13491, 309, 261, 2159, 422, 446, 13, 288, 7734, 327, 4170, 10340, 7675, 588, 12616, 5621, 5411, 289, 13491, 1620, 261, 2159, 18, 4880, 67, 723, 10756, 288, 7734, 648, 11922, 67, 11403, 30, 10792, 1323, 261, 2159, 18, 4880, 67, 4285, 1435, 480, 446, 13, 288, 13491, 5302, 12, 2890, 16, 756, 18, 4880, 67, 1978, 10663, 13491, 756, 273, 756, 18, 4880, 67, 4285, 5621, 10792, 289, 10792, 756, 273, 756, 18, 4880, 67, 1978, 5621, 10792, 898, 31, 4766, 565, 648, 11922, 67, 3798, 2294, 41, 30, 10792, 368, 7138, 67, 74, 67, 4415, 5621, 10792, 756, 18, 4880, 67, 542, 67, 723, 12, 8744, 67, 50, 2627, 1769, 1748, 1196, 2537, 3647, 1195, 10792, 327, 4170, 10340, 7675, 588, 12616, 5621, 4766, 565, 1748, 2376, 6116, 679, 2887, 14093, 1195, 7734, 648, 11922, 67, 16061, 30, 10792, 756, 273, 756, 18, 4880, 67, 3432, 5621, 10792, 898, 31, 4766, 565, 1748, 2199, 364, 8632, 17, 416, 12, 1886, 845, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 921, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31, 3639, 19817, 921, 460, 273, 446, 31, 3639, 19817, 921, 563, 273, 446, 31, 3639, 19817, 3120, 22155, 797, 273, 446, 31, 3639, 368, 509, 919, 31, 7734, 368, 19817, 8176, 4712, 24137, 273, 4170, 10340, 7675, 588, 8176, 4712, 5621, 7734, 1323, 261, 3767, 13, 288, 13491, 309, 261, 2159, 422, 446, 13, 288, 7734, 327, 4170, 10340, 7675, 588, 12616, 5621, 5411, 289, 13491, 1620, 261, 2159, 18, 4880, 67, 723, 10756, 288, 7734, 648, 11922, 67, 11403, 30, 10792, 1323, 2 ]
Object old; if (value != null) old = super.put(key, value); else old = super.remove(key);
Object old = checkAndPut(key, value);
public Object put(Object key, Object value) { Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e637e0e30ba94f0ced0046631656001119747a/UIDefaults.java/clean/core/src/classpath/javax/javax/swing/UIDefaults.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 1378, 12, 921, 498, 16, 1033, 460, 13, 225, 288, 565, 1033, 1592, 31, 565, 309, 261, 1132, 480, 446, 13, 1377, 1592, 273, 2240, 18, 458, 12, 856, 16, 460, 1769, 565, 469, 1377, 1592, 273, 2240, 18, 4479, 12, 856, 1769, 565, 309, 261, 856, 1276, 514, 597, 1592, 480, 460, 13, 1377, 4452, 1396, 3043, 12443, 780, 13, 498, 16, 1592, 16, 460, 1769, 565, 327, 1592, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 1033, 1378, 12, 921, 498, 16, 1033, 460, 13, 225, 288, 565, 1033, 1592, 31, 565, 309, 261, 1132, 480, 446, 13, 1377, 1592, 273, 2240, 18, 458, 12, 856, 16, 460, 1769, 565, 469, 1377, 1592, 273, 2240, 18, 4479, 12, 856, 1769, 565, 309, 261, 856, 1276, 514, 597, 1592, 480, 460, 13, 1377, 4452, 1396, 3043, 12443, 780, 13, 498, 16, 1592, 16, 460, 1769, 565, 327, 1592, 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 ]
lre.setStart( LocationImpl.create( x + doaMinor[k], dY1 + pwa.getSeriesThickness( ) ) );
lre.setStart( LocationImpl.create( x + iDirection * doaMinor[k], dY1 + pwa.getSeriesThickness( ) ) );
protected void renderBackground( IPrimitiveRenderer ipr, Plot p ) throws ChartException { // PLOT BLOCK STUFF super.renderBackground( ipr, p ); final ChartWithAxes cwa = (ChartWithAxes) getModel( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); // PLOT CLIENT AREA final ClientArea ca = p.getClientArea( ); Bounds bo = pwa.getPlotBounds( ); final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), RectangleRenderEvent.class ); // render client area shadow if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( ca.getOutline( ) ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); // NOW THAT THE AXES HAVE BEEN COMPUTED, FILL THE INTERNAL PLOT AREA double dSeriesThickness = pwa.getSeriesThickness( ); double[] daX = { bo.getLeft( ) - dSeriesThickness, bo.getLeft( ) + bo.getWidth( ) - dSeriesThickness }; double[] daY = { bo.getTop( ) + bo.getHeight( ) + dSeriesThickness, bo.getTop( ) + dSeriesThickness }; final AllAxes aax = pwa.getAxes( ); AutoScale scPrimaryBase = null; AutoScale scPrimaryOrthogonal = null; AutoScale scAncillaryBase = null; double dXStart = 0; // double dXEnd = 0; double dYStart = 0; // double dYEnd = 0; double dZStart = 0; // double dZEnd = 0; int baseTickCount = 0; int ancillaryTickCount = 0; int orthogonalTickCount = 0; double xStep = 0; double yStep = 0; double zStep = 0; if ( isDimension3D( ) ) { scPrimaryBase = aax.getPrimaryBase( ).getScale( ); scPrimaryOrthogonal = aax.getPrimaryOrthogonal( ).getScale( ); scAncillaryBase = aax.getAncillaryBase( ).getScale( ); dXStart = scPrimaryBase.getStart( ); // dXEnd = scPrimaryBase.getNormalizedEnd( ); dYStart = scPrimaryOrthogonal.getStart( ); // dYEnd = scPrimaryOrthogonal.getNormalizedEnd( ); dZStart = scAncillaryBase.getStart( ); // dZEnd = scAncillaryBase.getNormalizedEnd( ); baseTickCount = scPrimaryBase.getTickCordinates( ).length; ancillaryTickCount = scAncillaryBase.getTickCordinates( ).length; orthogonalTickCount = scPrimaryOrthogonal.getTickCordinates( ).length; xStep = scPrimaryBase.getUnitSize( ); yStep = scPrimaryOrthogonal.getUnitSize( ); zStep = scAncillaryBase.getUnitSize( ); } if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { Location[] loa = null; // DRAW THE LEFT WALL if ( cwa.getWallFill( ) == null ) { renderPlane( ipr, StructureSource.createPlot( p ), new Location[]{ LocationImpl.create( daX[0], daY[0] ), LocationImpl.create( daX[0], daY[1] ) }, ca.getBackground( ), ca.getOutline( ), cwa.getDimension( ), dSeriesThickness, false ); } else { loa = new Location[4]; loa[0] = LocationImpl.create( daX[0], daY[0] ); loa[1] = LocationImpl.create( daX[0], daY[1] ); loa[2] = LocationImpl.create( daX[0] + dSeriesThickness, daY[1] - dSeriesThickness ); loa[3] = LocationImpl.create( daX[0] + dSeriesThickness, daY[0] - dSeriesThickness ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( cwa.getWallFill( ) ); pre.setOutline( ca.getOutline( ) ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); } // DRAW THE FLOOR if ( cwa.getFloorFill( ) == null ) { renderPlane( ipr, StructureSource.createPlot( p ), new Location[]{ LocationImpl.create( daX[0], daY[0] ), LocationImpl.create( daX[1], daY[0] ) }, ca.getBackground( ), ca.getOutline( ), cwa.getDimension( ), dSeriesThickness, false ); } else { if ( loa == null ) { loa = new Location[4]; } loa[0] = LocationImpl.create( daX[0], daY[0] ); loa[1] = LocationImpl.create( daX[1], daY[0] ); loa[2] = LocationImpl.create( daX[1] + dSeriesThickness, daY[0] - dSeriesThickness ); loa[3] = LocationImpl.create( daX[0] + dSeriesThickness, daY[0] - dSeriesThickness ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( cwa.getFloorFill( ) ); pre.setOutline( ca.getOutline( ) ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); } } else if ( pwa.getDimension( ) == IConstants.THREE_D ) { Location3D[] loa = null; final Polygon3DRenderEvent pre = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), Polygon3DRenderEvent.class ); pre.setDoubleSided( true ); // DRAW THE WALL if ( ( cwa.getWallFill( ) instanceof ColorDefinition && ( (ColorDefinition) cwa.getWallFill( ) ).getTransparency( ) > 0 ) || ( !( cwa.getWallFill( ) instanceof ColorDefinition ) && cwa.getWallFill( ) != null ) ) { loa = new Location3D[4]; // Left Wall // split to small planes to render. for ( int i = 0; i < orthogonalTickCount - 1; i++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { loa[0] = Location3DImpl.create( dXStart, dYStart + yStep * i, dZStart + zStep * j ); loa[1] = Location3DImpl.create( dXStart, dYStart + ( i + 1 ) * yStep, dZStart + j * zStep ); loa[2] = Location3DImpl.create( dXStart, dYStart + ( i + 1 ) * yStep, dZStart + ( j + 1 ) * zStep ); loa[3] = Location3DImpl.create( dXStart, dYStart + i * yStep, dZStart + ( j + 1 ) * zStep ); pre.setPoints3D( loa ); pre.setBackground( cwa.getWallFill( ) ); pre.setOutline( ca.getOutline( ) ); getDeferredCache( ).addPlane( pre, PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); } } // loa[0] = Location3DImpl.create( dXStart, dYStart, dZStart ); // loa[1] = Location3DImpl.create( dXStart, dYEnd, dZStart ); // loa[2] = Location3DImpl.create( dXStart, dYEnd, dZEnd ); // loa[3] = Location3DImpl.create( dXStart, dYStart, dZEnd ); // pre.setPoints3D( loa ); // pre.setBackground( cwa.getWallFill( ) ); // pre.setOutline( ca.getOutline( ) ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); leftWallFill = true; // Right Wall // split to small planes to render. for ( int i = 0; i < orthogonalTickCount - 1; i++ ) { for ( int j = 0; j < baseTickCount - 1; j++ ) { loa[0] = Location3DImpl.create( dXStart + j * xStep, dYStart + i * yStep, dZStart ); loa[1] = Location3DImpl.create( dXStart + ( j + 1 ) * xStep, dYStart + i * yStep, dZStart ); loa[2] = Location3DImpl.create( dXStart + ( j + 1 ) * xStep, dYStart + ( i + 1 ) * yStep, dZStart ); loa[3] = Location3DImpl.create( dXStart + j * xStep, dYStart + ( i + 1 ) * yStep, dZStart ); pre.setPoints3D( loa ); pre.setBackground( cwa.getWallFill( ) ); pre.setOutline( ca.getOutline( ) ); getDeferredCache( ).addPlane( pre, PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); } } // loa[0] = Location3DImpl.create( dXStart, dYStart, dZStart ); // loa[1] = Location3DImpl.create( dXStart, dYEnd, dZStart ); // loa[2] = Location3DImpl.create( dXEnd, dYEnd, dZStart ); // loa[3] = Location3DImpl.create( dXEnd, dYStart, dZStart ); // pre.setPoints3D( loa ); // pre.setBackground( cwa.getWallFill( ) ); // pre.setOutline( ca.getOutline( ) ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.DRAW // | PrimitiveRenderEvent.FILL ); rightWallFill = true; } // DRAW THE FLOOR if ( ( cwa.getFloorFill( ) instanceof ColorDefinition && ( (ColorDefinition) cwa.getFloorFill( ) ).getTransparency( ) > 0 ) || ( !( cwa.getFloorFill( ) instanceof ColorDefinition ) && cwa.getFloorFill( ) != null ) ) { if ( loa == null ) { loa = new Location3D[4]; } // split to small planes to render. for ( int i = 0; i < baseTickCount - 1; i++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { loa[0] = Location3DImpl.create( dXStart + i * xStep, dYStart, dZStart + j * zStep ); loa[1] = Location3DImpl.create( dXStart + i * xStep, dYStart, dZStart + ( j + 1 ) * zStep ); loa[2] = Location3DImpl.create( dXStart + ( i + 1 ) * xStep, dYStart, dZStart + ( j + 1 ) * zStep ); loa[3] = Location3DImpl.create( dXStart + ( i + 1 ) * xStep, dYStart, dZStart + j * zStep ); pre.setPoints3D( loa ); pre.setBackground( cwa.getFloorFill( ) ); pre.setOutline( ca.getOutline( ) ); getDeferredCache( ).addPlane( pre, PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); } } // loa[0] = Location3DImpl.create( dXStart, dYStart, dZStart ); // loa[1] = Location3DImpl.create( dXStart, dYStart, dZEnd ); // loa[2] = Location3DImpl.create( dXEnd, dYStart, dZEnd ); // loa[3] = Location3DImpl.create( dXEnd, dYStart, dZStart ); // pre.setPoints3D( loa ); // pre.setBackground( cwa.getFloorFill( ) ); // pre.setOutline( ca.getOutline( ) ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.DRAW // | PrimitiveRenderEvent.FILL ); floorFill = true; } // Draw the Zero plane // IntersectionValue iv = aax.getPrimaryBase( // ).getIntersectionValue( ); // if ( iv != null && iv.getType( ) == IntersectionValue.VALUE ) // { // if ( loa == null ) // { // loa = new Location3D[4]; // } // // double yZeroValue = Methods.getNormalizedLocation( // scPrimaryOrthogonal, // 0 ); // // for ( int i = 0; i < baseTickCount - 1; i++ ) // { // for ( int j = 0; j < ancillaryTickCount - 1; j++ ) // { // loa[0] = Location3DImpl.create( dXStart + i * xStep, // yZeroValue, // dZStart + j * zStep ); // loa[1] = Location3DImpl.create( dXStart + i * xStep, // yZeroValue, // dZStart + ( j + 1 ) * zStep ); // loa[2] = Location3DImpl.create( dXStart // + ( i + 1 ) // * xStep, yZeroValue, dZStart // + ( j + 1 ) // * zStep ); // loa[3] = Location3DImpl.create( dXStart // + ( i + 1 ) // * xStep, yZeroValue, dZStart + j * zStep ); // pre.setPoints3D( loa ); // pre.setBackground( ColorDefinitionImpl.create( 255, // 255, // 255, // 127 ) ); // pre.setOutline( null ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.FILL ); // } // } // } } // SETUP AXIS ARRAY final OneAxis[] oaxa = new OneAxis[2 + aax.getOverlayCount( ) + ( aax.getAncillaryBase( ) != null ? 1 : 0 )]; oaxa[0] = aax.getPrimaryBase( ); oaxa[1] = aax.getPrimaryOrthogonal( ); for ( int i = 0; i < aax.getOverlayCount( ); i++ ) { oaxa[2 + i] = aax.getOverlay( i ); } if ( aax.getAncillaryBase( ) != null ) { oaxa[2 + aax.getOverlayCount( )] = aax.getAncillaryBase( ); } // RENDER MARKER RANGES (MARKER LINES ARE DRAWN LATER) renderMarkerRanges( oaxa, bo ); // RENDER GRID LINES (MAJOR=DONE; MINOR=DONE) double x = 0, y = 0; LineAttributes lia; LineRenderEvent lre; final Insets insCA = aax.getInsets( ); // RENDER MINOR GRID LINES FIRST int iCount; Grid g; double[] doaMinor = null; for ( int i = 0; i < oaxa.length; i++ ) { g = oaxa[i].getGrid( ); iCount = g.getMinorCountPerMajor( ); lia = oaxa[i].getGrid( ).getLineAttributes( IConstants.MINOR ); if ( lia == null || !lia.isSetStyle( ) || !lia.isVisible( ) ) { continue; } if ( iCount <= 0 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.cannot.split.major", //$NON-NLS-1$ new Object[]{ new Integer( iCount ) }, ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } AutoScale sc = oaxa[i].getScale( ); doaMinor = sc.getMinorCoordinates( iCount ); if ( isDimension3D( ) ) { Line3DRenderEvent lre3d = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), Line3DRenderEvent.class ); lre3d.setLineAttributes( lia ); switch ( oaxa[i].getAxisType( ) ) { case IConstants.BASE_AXIS : double[] xa = scPrimaryBase.getTickCordinates( ); if ( floorFill ) { for ( int k = 0; k < xa.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < ancillaryTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart, dZStart + n * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart, dZStart + ( n + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } } if ( rightWallFill ) { for ( int k = 0; k < xa.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < orthogonalTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart + n * yStep, dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart + ( n + 1 ) * yStep, dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } } break; case IConstants.ORTHOGONAL_AXIS : double[] ya = scPrimaryOrthogonal.getTickCordinates( ); if ( leftWallFill ) { for ( int k = 0; k < ya.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < ancillaryTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, ya[k] + doaMinor[j], dZStart + n * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, ya[k] + doaMinor[j], dZStart + ( n + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } } if ( rightWallFill ) { for ( int k = 0; k < ya.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < baseTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + n * xStep, ya[k] + doaMinor[j], dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( n + 1 ) * xStep, ya[k] + doaMinor[j], dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } } break; case IConstants.ANCILLARY_AXIS : double[] za = scAncillaryBase.getTickCordinates( ); if ( leftWallFill ) { for ( int k = 0; k < za.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < orthogonalTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, dYStart + n * yStep, za[k] + doaMinor[j] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, dYStart + ( n + 1 ) * yStep, za[k] + doaMinor[j] ) ); getDeferredCache( ).addLine( lre3d ); } } } } if ( floorFill ) { for ( int k = 0; k < za.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < baseTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + n * xStep, dYStart, za[k] + doaMinor[j] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( n + 1 ) * xStep, dYStart, za[k] + doaMinor[j] ) ); getDeferredCache( ).addLine( lre3d ); } } } } break; default : break; } } else if ( oaxa[i].getOrientation( ) == IConstants.HORIZONTAL ) { double[] da = sc.getTickCordinates( ); double dY2 = bo.getTop( ) + 1, dY1 = bo.getTop( ) + bo.getHeight( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length - 1; j++ ) { x = da[j]; for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x + doaMinor[k], dY1 + pwa.getSeriesThickness( ) ) ); lre.setEnd( LocationImpl.create( x + doaMinor[k] + pwa.getSeriesThickness( ), dY1 ) ); ipr.drawLine( lre ); } } } for ( int j = 0; j < da.length - 1; j++ ) { x = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { x += pwa.getSeriesThickness( ); } for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x + doaMinor[k], dY1 ) ); lre.setEnd( LocationImpl.create( x + doaMinor[k], dY2 ) ); ipr.drawLine( lre ); } } } else if ( oaxa[i].getOrientation( ) == IConstants.VERTICAL ) { double[] da = sc.getTickCordinates( ); double dX1 = bo.getLeft( ) + 1, dX2 = bo.getLeft( ) + bo.getWidth( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length - 1; j++ ) { y = ( da[j] - pwa.getSeriesThickness( ) ); for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y - doaMinor[k] ) ); lre.setEnd( LocationImpl.create( dX1 - pwa.getSeriesThickness( ), y - doaMinor[k] + pwa.getSeriesThickness( ) ) ); ipr.drawLine( lre ); } } } for ( int j = 0; j < da.length - 1; j++ ) { y = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { y -= pwa.getSeriesThickness( ); } for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y - doaMinor[k] ) ); lre.setEnd( LocationImpl.create( dX2, y - doaMinor[k] ) ); ipr.drawLine( lre ); } } } } // RENDER MAJOR GRID LINES NEXT for ( int i = 0; i < oaxa.length; i++ ) { lia = oaxa[i].getGrid( ).getLineAttributes( IConstants.MAJOR ); if ( lia == null || !lia.isSetStyle( ) || !lia.isVisible( ) ) // GRID // LINE // UNDEFINED { continue; } AutoScale sc = oaxa[i].getScale( ); if ( isDimension3D( ) ) { Line3DRenderEvent lre3d = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), Line3DRenderEvent.class ); lre3d.setLineAttributes( lia ); switch ( oaxa[i].getAxisType( ) ) { case IConstants.BASE_AXIS : double[] xa = scPrimaryBase.getTickCordinates( ); if ( floorFill ) { for ( int k = 0; k < xa.length; k++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k], dYStart, dZStart + j * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k], dYStart, dZStart + ( j + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } if ( rightWallFill ) { for ( int k = 0; k < xa.length; k++ ) { for ( int j = 0; j < orthogonalTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k], dYStart + j * yStep, dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k], dYStart + ( j + 1 ) * yStep, dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } break; case IConstants.ORTHOGONAL_AXIS : double[] ya = scPrimaryOrthogonal.getTickCordinates( ); if ( leftWallFill ) { for ( int k = 0; k < ya.length; k++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, ya[k], dZStart + j * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, ya[k], dZStart + ( j + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } if ( rightWallFill ) { for ( int k = 0; k < ya.length; k++ ) { for ( int j = 0; j < baseTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + j * xStep, ya[k], dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( j + 1 ) * xStep, ya[k], dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } break; case IConstants.ANCILLARY_AXIS : double[] za = scAncillaryBase.getTickCordinates( ); if ( leftWallFill ) { for ( int k = 0; k < za.length; k++ ) { for ( int j = 0; j < orthogonalTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, dYStart + j * yStep, za[k] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, dYStart + ( j + 1 ) * yStep, za[k] ) ); getDeferredCache( ).addLine( lre3d ); } } } if ( floorFill ) { for ( int k = 0; k < za.length; k++ ) { for ( int j = 0; j < baseTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + j * xStep, dYStart, za[k] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( j + 1 ) * xStep, dYStart, za[k] ) ); getDeferredCache( ).addLine( lre3d ); } } } break; default : break; } } else if ( oaxa[i].getOrientation( ) == IConstants.HORIZONTAL ) { double[] da = sc.getTickCordinates( ); double dY2 = bo.getTop( ) + 1, dY1 = bo.getTop( ) + bo.getHeight( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getBottom( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getTop( ) < lia.getThickness( ) ) continue; x = da[j]; lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x, dY1 + pwa.getSeriesThickness( ) ) ); lre.setEnd( LocationImpl.create( x + pwa.getSeriesThickness( ), dY1 ) ); ipr.drawLine( lre ); } } for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getBottom( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getTop( ) < lia.getThickness( ) ) continue; x = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { x += pwa.getSeriesThickness( ); } lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x, dY1 ) ); lre.setEnd( LocationImpl.create( x, dY2 ) ); ipr.drawLine( lre ); } } else if ( oaxa[i].getOrientation( ) == IConstants.VERTICAL ) { double[] da = sc.getTickCordinates( ); double dX1 = bo.getLeft( ) + 1, dX2 = bo.getLeft( ) + bo.getWidth( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getLeft( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getRight( ) < lia.getThickness( ) ) continue; y = ( da[j] - pwa.getSeriesThickness( ) ); lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y ) ); lre.setEnd( LocationImpl.create( dX1 - pwa.getSeriesThickness( ), y + pwa.getSeriesThickness( ) ) ); ipr.drawLine( lre ); } } for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getLeft( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getRight( ) < lia.getThickness( ) ) continue; y = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { y -= pwa.getSeriesThickness( ); } lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y ) ); lre.setEnd( LocationImpl.create( dX2, y ) ); ipr.drawLine( lre ); } } } if ( p.getClientArea( ).getOutline( ).isVisible( ) ) { rre.setBounds( bo ); ipr.drawRectangle( rre ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/536b54a46b25aa99e427a2fbd8217e09108c905a/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1743, 8199, 12, 467, 9840, 6747, 277, 683, 16, 15211, 293, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 759, 453, 1502, 56, 14073, 2347, 57, 2246, 202, 202, 9565, 18, 5902, 8199, 12, 277, 683, 16, 293, 11272, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 273, 261, 7984, 1190, 26494, 13, 7454, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 759, 453, 1502, 56, 16395, 432, 29416, 202, 202, 6385, 2445, 5484, 3474, 273, 293, 18, 588, 1227, 5484, 12, 11272, 202, 202, 5694, 800, 273, 8772, 69, 18, 588, 11532, 5694, 12, 11272, 202, 202, 6385, 13264, 3420, 1133, 436, 266, 273, 261, 19463, 3420, 1133, 13, 261, 261, 1133, 921, 1649, 13, 277, 683, 262, 18, 588, 1133, 921, 12, 13348, 1830, 18, 2640, 11532, 12, 293, 262, 16, 9506, 202, 19463, 3420, 1133, 18, 1106, 11272, 202, 202, 759, 1743, 1004, 5091, 10510, 202, 202, 430, 261, 3474, 18, 588, 12957, 2957, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 86, 266, 18, 542, 5694, 12, 800, 18, 13929, 1442, 12, 890, 16, 890, 262, 11272, 1082, 202, 86, 266, 18, 542, 8199, 12, 3474, 18, 588, 12957, 2957, 12, 262, 11272, 1082, 202, 625, 86, 18, 5935, 19463, 12, 436, 266, 11272, 202, 202, 97, 202, 202, 759, 1743, 1004, 5091, 202, 202, 86, 266, 18, 542, 5694, 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, 1743, 8199, 12, 467, 9840, 6747, 277, 683, 16, 15211, 293, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 759, 453, 1502, 56, 14073, 2347, 57, 2246, 202, 202, 9565, 18, 5902, 8199, 12, 277, 683, 16, 293, 11272, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 273, 261, 7984, 1190, 26494, 13, 7454, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 759, 453, 1502, 56, 16395, 432, 29416, 202, 202, 6385, 2445, 5484, 3474, 273, 293, 18, 588, 1227, 5484, 12, 11272, 202, 202, 5694, 800, 273, 8772, 69, 18, 588, 11532, 5694, 12, 11272, 202, 202, 2 ]
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http:
public double getMargin() { return field_1_margin; }
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache POI" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * "Apache POI", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */package org.apache.poi.hssf.record;import org.apache.poi.util.*;/** * Record for the right margin. * NOTE: This source was automatically generated. * @author Shawn Laubach (slaubach at apache dot org) */public class RightMarginRecord extends Record implements Margin{ public final static short sid = 0x27; private double field_1_margin; public RightMarginRecord() { } /** * Constructs a RightMargin record and sets its fields appropriately. * * @param id id must be 0x27 or an exception * will be throw upon validation * @param size size the size of the data area of the record * @param data data of the record (should not contain sid/len) */ public RightMarginRecord(short id, short size, byte [] data) { super(id, size, data); } /** * Constructs a RightMargin record and sets its fields appropriately. * * @param id id must be 0x27 or an exception * will be throw upon validation * @param size size the size of the data area of the record * @param data data of the record (should not contain sid/len) * @param offset of the record's data */ public RightMarginRecord(short id, short size, byte [] data, int offset) { super(id, size, data, offset); } /** * Checks the sid matches the expected side for this record * * @param id the expected sid. */ protected void validateSid(short id) { if (id != sid) { throw new RecordFormatException("Not a RightMargin record"); } } protected void fillFields(byte [] data, short size, int offset) { field_1_margin = LittleEndian.getDouble(data, 0x0 + offset); } public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("[RightMargin]\n"); buffer.append(" .margin = ") .append(" (").append(getMargin()).append(" )\n"); buffer.append("[/RightMargin]\n"); return buffer.toString(); } public int serialize(int offset, byte[] data) { LittleEndian.putShort(data, 0 + offset, sid); LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4)); LittleEndian.putDouble(data, 4 + offset, field_1_margin); return getRecordSize(); } /** * Size of record (exluding 4 byte header) */ public int getRecordSize() { return 4 + 8; } public short getSid() { return this.sid; } /** * Get the margin field for the RightMargin record. */ public double getMargin() { return field_1_margin; } /** * Set the margin field for the RightMargin record. */ public void setMargin(double field_1_margin) { this.field_1_margin = field_1_margin; } public Object clone() { RightMarginRecord rec = new RightMarginRecord(); rec.field_1_margin = this.field_1_margin; return rec; }} // END OF CLASS
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/1ca7c27245671f0121bee15cb122cb1f399c98c8/RightMarginRecord.java/buggy/src/java/org/apache/poi/hssf/record/RightMarginRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 422, 9917, 631, 380, 1021, 24840, 24199, 16832, 16, 4049, 404, 18, 21, 380, 380, 25417, 261, 71, 13, 4044, 23, 1021, 24840, 24199, 31289, 18, 225, 4826, 14989, 380, 8735, 18, 380, 380, 8505, 4027, 471, 999, 316, 1084, 471, 3112, 10138, 16, 598, 578, 2887, 380, 11544, 16, 854, 15498, 2112, 716, 326, 3751, 4636, 380, 854, 5100, 30, 380, 380, 404, 18, 8505, 15326, 434, 1084, 981, 1297, 15096, 326, 5721, 22245, 380, 565, 11690, 16, 333, 666, 434, 4636, 471, 326, 3751, 1015, 830, 69, 4417, 18, 380, 380, 576, 18, 8505, 15326, 316, 3112, 646, 1297, 283, 11776, 311, 326, 5721, 22245, 380, 565, 11690, 16, 333, 666, 434, 4636, 471, 326, 3751, 1015, 830, 69, 4417, 316, 380, 565, 326, 7323, 471, 19, 280, 1308, 31824, 2112, 598, 326, 380, 565, 7006, 18, 380, 380, 890, 18, 1021, 679, 17, 1355, 7323, 5849, 598, 326, 5813, 4027, 16, 380, 565, 309, 1281, 16, 1297, 2341, 326, 3751, 23262, 75, 475, 30, 380, 4202, 315, 2503, 3017, 6104, 17888, 17196, 329, 635, 326, 380, 3639, 24840, 24199, 31289, 261, 2505, 2207, 5591, 18, 19211, 18, 3341, 19, 14944, 380, 565, 21498, 5173, 16, 333, 23262, 75, 475, 2026, 9788, 316, 326, 17888, 6174, 16, 380, 565, 309, 471, 1625, 502, 4123, 12126, 17, 21214, 23262, 75, 1346, 15849, 9788, 18, 380, 380, 1059, 18, 1021, 1257, 315, 1294, 807, 6, 471, 315, 1294, 807, 24199, 31289, 6, 471, 380, 565, 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, 1748, 422, 9917, 631, 380, 1021, 24840, 24199, 16832, 16, 4049, 404, 18, 21, 380, 380, 25417, 261, 71, 13, 4044, 23, 1021, 24840, 24199, 31289, 18, 225, 4826, 14989, 380, 8735, 18, 380, 380, 8505, 4027, 471, 999, 316, 1084, 471, 3112, 10138, 16, 598, 578, 2887, 380, 11544, 16, 854, 15498, 2112, 716, 326, 3751, 4636, 380, 854, 5100, 30, 380, 380, 404, 18, 8505, 15326, 434, 1084, 981, 1297, 15096, 326, 5721, 22245, 380, 565, 11690, 16, 333, 666, 434, 4636, 471, 326, 3751, 1015, 830, 69, 4417, 18, 380, 380, 576, 18, 8505, 15326, 316, 3112, 646, 1297, 283, 11776, 311, 326, 5721, 22245, 380, 565, 11690, 16, 333, 666, 434, 4636, 471, 326, 3751, 2 ]
break;
continue Loop;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/34e9dc56b7553f450b9015c8f4135584139686cf/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701, 16717, 2083, 2295, 1162, 3651, 16, 18701, 5294, 11599, 751, 612, 396, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 612, 396, 18, 7462, 3748, 13, 288, 5411, 309, 261, 1968, 40, 3083, 480, 446, 13, 288, 7734, 833, 273, 30169, 1076, 12, 1968, 16, 833, 40, 3083, 16, 1501, 10544, 16, 1501, 1380, 1769, 5411, 289, 5411, 6036, 2933, 888, 273, 612, 396, 18, 7462, 2933, 31, 5411, 1033, 5198, 3748, 273, 9494, 18, 2761, 11599, 4368, 3748, 31, 5411, 9494, 18, 2761, 11599, 4368, 3748, 273, 612, 396, 18, 7462, 3748, 31, 5411, 775, 288, 7734, 327, 888, 18, 1991, 1190, 3748, 12, 350, 396, 18, 7462, 3748, 16, 9494, 16, 2295, 1162, 3651, 16, 29159, 2146, 16, 15261, 16, 833, 1769, 5411, 289, 3095, 288, 7734, 9494, 18, 2761, 11599, 4368, 3748, 273, 5198, 3748, 31, 5411, 289, 3639, 289, 3639, 727, 1033, 2383, 48, 67, 23464, 47, 273, 5294, 11599, 18, 2290, 48, 67, 23464, 47, 31, 3639, 727, 22780, 3109, 273, 22243, 18, 1336, 31, 3639, 727, 509, 8350, 67, 2664, 4464, 273, 374, 31, 3639, 727, 509, 943, 5555, 273, 612, 396, 18, 1282, 2747, 5555, 31, 3639, 727, 509, 15234, 67, 2664, 4464, 273, 8350, 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, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701, 16717, 2083, 2295, 1162, 3651, 16, 18701, 5294, 11599, 751, 612, 396, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 612, 396, 18, 7462, 3748, 13, 288, 5411, 309, 261, 1968, 40, 3083, 480, 446, 13, 288, 7734, 833, 273, 30169, 1076, 12, 1968, 16, 833, 40, 3083, 16, 1501, 10544, 16, 1501, 1380, 1769, 5411, 289, 5411, 6036, 2933, 888, 273, 612, 396, 18, 7462, 2933, 31, 5411, 1033, 5198, 3748, 273, 9494, 2 ]
defineProperty(scope, name, ctor, ScriptableObject.DONTENUM);
defineProperty(scope, getClassName(), ctor, ScriptableObject.DONTENUM);
public void scopeInit(Context cx, Scriptable scope, boolean sealed) { activateIdMap(cx, sealed); int constructorId = mapNameToId("constructor"); if (constructorId > 0) { setPrototype(getObjectPrototype(scope)); String name = getClassName(); IdFunction ctor = newIdFunction(constructorId); ctor.setFunctionType(IdFunction.FUNCTION_AND_CONSTRUCTOR); ctor.setParentScope(scope); ctor.setPrototype(getFunctionPrototype(scope)); setParentScope(ctor); ctor.setImmunePrototypeProperty(this); fillConstructorProperties(cx, ctor, sealed); if (!name.equals("With")) { // A "With" object would delegate these calls to the prototype: // not the right thing to do here! cacheIdValue(constructorId, ctor); } else { cacheIdValue(constructorId, NOT_FOUND); } if (sealed) { ctor.sealObject(); ctor.addPropertyAttribute(READONLY); sealObject(); } defineProperty(scope, name, ctor, ScriptableObject.DONTENUM); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/928693eace09b35abc87ca019dc5f34f56e7de88/IdScriptable.java/clean/js/rhino/src/org/mozilla/javascript/IdScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2146, 2570, 12, 1042, 9494, 16, 22780, 2146, 16, 1250, 695, 18931, 13, 288, 3639, 10235, 548, 863, 12, 71, 92, 16, 695, 18931, 1769, 3639, 509, 3885, 548, 273, 852, 28455, 548, 2932, 12316, 8863, 3639, 309, 261, 12316, 548, 405, 374, 13, 288, 5411, 444, 15846, 12, 588, 921, 15846, 12, 4887, 10019, 5411, 514, 508, 273, 11819, 5621, 5411, 3124, 2083, 15120, 273, 27598, 2083, 12, 12316, 548, 1769, 5411, 15120, 18, 542, 2083, 559, 12, 548, 2083, 18, 7788, 67, 4307, 67, 26935, 916, 1769, 5411, 15120, 18, 542, 3054, 3876, 12, 4887, 1769, 5411, 15120, 18, 542, 15846, 12, 588, 2083, 15846, 12, 4887, 10019, 5411, 12548, 3876, 12, 30206, 1769, 5411, 15120, 18, 542, 1170, 81, 7556, 15846, 1396, 12, 2211, 1769, 5411, 3636, 6293, 2297, 12, 71, 92, 16, 15120, 16, 695, 18931, 1769, 5411, 309, 16051, 529, 18, 14963, 2932, 1190, 6, 3719, 288, 7734, 368, 432, 315, 1190, 6, 733, 4102, 7152, 4259, 4097, 358, 326, 4409, 30, 7734, 368, 486, 326, 2145, 7757, 358, 741, 2674, 5, 7734, 21367, 620, 12, 12316, 548, 16, 15120, 1769, 5411, 289, 5411, 469, 288, 7734, 21367, 620, 12, 12316, 548, 16, 4269, 67, 9294, 1769, 5411, 289, 5411, 309, 261, 307, 18931, 13, 288, 7734, 15120, 18, 307, 287, 921, 5621, 7734, 15120, 18, 1289, 1396, 1499, 12, 6949, 10857, 1769, 7734, 28144, 921, 5621, 5411, 289, 5411, 14007, 12, 4887, 16, 11819, 9334, 15120, 16, 22780, 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, 2146, 2570, 12, 1042, 9494, 16, 22780, 2146, 16, 1250, 695, 18931, 13, 288, 3639, 10235, 548, 863, 12, 71, 92, 16, 695, 18931, 1769, 3639, 509, 3885, 548, 273, 852, 28455, 548, 2932, 12316, 8863, 3639, 309, 261, 12316, 548, 405, 374, 13, 288, 5411, 444, 15846, 12, 588, 921, 15846, 12, 4887, 10019, 5411, 514, 508, 273, 11819, 5621, 5411, 3124, 2083, 15120, 273, 27598, 2083, 12, 12316, 548, 1769, 5411, 15120, 18, 542, 2083, 559, 12, 548, 2083, 18, 7788, 67, 4307, 67, 26935, 916, 1769, 5411, 15120, 18, 542, 3054, 3876, 12, 4887, 1769, 5411, 15120, 18, 542, 15846, 12, 588, 2083, 15846, 12, 4887, 10019, 5411, 12548, 3876, 12, 30206, 1769, 2 ]
return NameValue.valueOf(((QName) val).toJCRName(nsResolver));
return NameValue.valueOf(NameFormat.format((QName) val, nsResolver));
public Value toJCRValue(NamespaceResolver nsResolver) throws RepositoryException { switch (type) { case PropertyType.BINARY: return new BinaryValue(((BLOBFileValue) val).getStream()); case PropertyType.BOOLEAN: return new BooleanValue(((Boolean) val)); case PropertyType.DATE: return new DateValue((Calendar) val); case PropertyType.DOUBLE: return new DoubleValue((Double) val); case PropertyType.LONG: return new LongValue((Long) val); case PropertyType.REFERENCE: return ReferenceValue.valueOf(((UUID) val).toString()); case PropertyType.PATH: try { return PathValue.valueOf(((Path) val).toJCRPath(nsResolver)); } catch (NoPrefixDeclaredException npde) { // should never get here... throw new RepositoryException("internal error: encountered unregistered namespace", npde); } case PropertyType.NAME: try { return NameValue.valueOf(((QName) val).toJCRName(nsResolver)); } catch (NoPrefixDeclaredException npde) { // should never get here... throw new RepositoryException("internal error: encountered unregistered namespace", npde); } case PropertyType.STRING: return new StringValue((String) val); default: throw new RepositoryException("illegal internal value type"); } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/9001843d9e8a7049ff256b4c8dfa532cd6eabc25/InternalValue.java/buggy/jackrabbit/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1445, 358, 46, 5093, 620, 12, 3402, 4301, 3153, 4301, 13, 5411, 1216, 13367, 288, 3639, 1620, 261, 723, 13, 288, 5411, 648, 22983, 18, 16813, 30, 7734, 327, 394, 7896, 620, 12443, 12, 38, 6038, 812, 620, 13, 1244, 2934, 588, 1228, 10663, 5411, 648, 22983, 18, 17900, 30, 7734, 327, 394, 3411, 620, 12443, 12, 5507, 13, 1244, 10019, 5411, 648, 22983, 18, 4594, 30, 7734, 327, 394, 2167, 620, 12443, 7335, 13, 1244, 1769, 5411, 648, 22983, 18, 17088, 30, 7734, 327, 394, 3698, 620, 12443, 5265, 13, 1244, 1769, 5411, 648, 22983, 18, 14639, 30, 7734, 327, 394, 3407, 620, 12443, 3708, 13, 1244, 1769, 5411, 648, 22983, 18, 14617, 30, 7734, 327, 6268, 620, 18, 1132, 951, 12443, 12, 5562, 13, 1244, 2934, 10492, 10663, 5411, 648, 22983, 18, 4211, 30, 7734, 775, 288, 10792, 327, 2666, 620, 18, 1132, 951, 12443, 12, 743, 13, 1244, 2934, 869, 46, 5093, 743, 12, 2387, 4301, 10019, 7734, 289, 1044, 261, 2279, 2244, 18888, 503, 1130, 323, 13, 288, 10792, 368, 1410, 5903, 336, 2674, 2777, 10792, 604, 394, 13367, 2932, 7236, 555, 30, 9919, 24352, 1981, 3113, 1130, 323, 1769, 7734, 289, 5411, 648, 22983, 18, 1985, 30, 7734, 775, 288, 10792, 327, 1770, 620, 18, 1132, 951, 12, 461, 1630, 18, 2139, 12443, 13688, 13, 1244, 16, 3153, 4301, 10019, 7734, 289, 1044, 261, 2279, 2244, 18888, 503, 1130, 323, 13, 288, 10792, 368, 1410, 5903, 336, 2674, 2777, 10792, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1445, 358, 46, 5093, 620, 12, 3402, 4301, 3153, 4301, 13, 5411, 1216, 13367, 288, 3639, 1620, 261, 723, 13, 288, 5411, 648, 22983, 18, 16813, 30, 7734, 327, 394, 7896, 620, 12443, 12, 38, 6038, 812, 620, 13, 1244, 2934, 588, 1228, 10663, 5411, 648, 22983, 18, 17900, 30, 7734, 327, 394, 3411, 620, 12443, 12, 5507, 13, 1244, 10019, 5411, 648, 22983, 18, 4594, 30, 7734, 327, 394, 2167, 620, 12443, 7335, 13, 1244, 1769, 5411, 648, 22983, 18, 17088, 30, 7734, 327, 394, 3698, 620, 12443, 5265, 13, 1244, 1769, 5411, 648, 22983, 18, 14639, 30, 7734, 327, 394, 3407, 620, 12443, 3708, 13, 1244, 1769, 5411, 648, 22983, 18, 14617, 30, 7734, 327, 2 ]
protected Composite getComponent( Composite parent ) { // Layout for the main composite GridLayout glContent = new GridLayout( ); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; glContent.marginHeight = 7; glContent.marginWidth = 7; cmpContent = new Composite( parent, SWT.NONE ); cmpContent.setLayout( glContent ); // Layout for the List composite GridLayout glList = new GridLayout( ); glList.numColumns = 3; glList.horizontalSpacing = 5; glList.verticalSpacing = 5; glList.marginHeight = 0; glList.marginWidth = 0; cmpList = new Composite( cmpContent, SWT.NONE ); GridData gdCMPList = new GridData( GridData.FILL_BOTH ); gdCMPList.horizontalSpan = 2; cmpList.setLayoutData( gdCMPList ); cmpList.setLayout( glList ); // Layout for the buttons composite GridLayout glButtons = new GridLayout( ); glButtons.numColumns = 3; glButtons.horizontalSpacing = 5; glButtons.verticalSpacing = 5; glButtons.marginHeight = 5; glButtons.marginWidth = 0; Composite cmpButtons = new Composite( cmpList, SWT.NONE ); GridData gdCMPButtons = new GridData( GridData.FILL_HORIZONTAL ); gdCMPButtons.horizontalSpan = 3; cmpButtons.setLayoutData( gdCMPButtons ); cmpButtons.setLayout( glButtons ); btnAddRange = new Button( cmpButtons, SWT.PUSH ); GridData gdBTNAddRange = new GridData( GridData.FILL_HORIZONTAL ); btnAddRange.setLayoutData( gdBTNAddRange ); btnAddRange.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.AddRegion" ) ); //$NON-NLS-1$ btnAddRange.addSelectionListener( this ); btnRemove = new Button( cmpButtons, SWT.PUSH ); GridData gdBTNRemove = new GridData( GridData.FILL_HORIZONTAL ); btnRemove.setLayoutData( gdBTNRemove ); btnRemove.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.RemoveEntry" ) ); //$NON-NLS-1$ btnRemove.addSelectionListener( this ); lstMarkers = new List( cmpList, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL ); GridData gdLSTMarkers = new GridData( GridData.FILL_HORIZONTAL ); gdLSTMarkers.horizontalSpan = 3; gdLSTMarkers.heightHint = 100; lstMarkers.setLayoutData( gdLSTMarkers ); lstMarkers.addSelectionListener( this ); grpGeneral = new Group( cmpContent, SWT.NONE ); GridData gdCMPGeneral = new GridData( GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL ); gdCMPGeneral.widthHint = 180; grpGeneral.setLayoutData( gdCMPGeneral ); grpGeneral.setLayout( new GridLayout( ) ); grpGeneral.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.DialProperties" ) ); //$NON-NLS-1$ // Layout for the Marker Range composite GridLayout glMarkerRange = new GridLayout( ); glMarkerRange.numColumns = 3; glMarkerRange.horizontalSpacing = 5; glMarkerRange.verticalSpacing = 5; glMarkerRange.marginHeight = 7; glMarkerRange.marginWidth = 7; cmpRange = new Composite( grpGeneral, SWT.NONE ); GridData gdGRPRange = new GridData( GridData.FILL_HORIZONTAL ); cmpRange.setLayoutData( gdGRPRange ); cmpRange.setLayout( glMarkerRange ); // Layout for Value composite GridLayout glRangeValue = new GridLayout( ); glRangeValue.numColumns = 3; glRangeValue.horizontalSpacing = 2; glRangeValue.verticalSpacing = 5; glRangeValue.marginHeight = 0; glRangeValue.marginWidth = 0; Composite cmpRangeValue = new Composite( cmpRange, SWT.NONE ); GridData gdCMPRangeValue = new GridData( GridData.FILL_HORIZONTAL ); gdCMPRangeValue.horizontalSpan = 3; cmpRangeValue.setLayoutData( gdCMPRangeValue ); cmpRangeValue.setLayout( glRangeValue ); lblStartValue = new Label( cmpRangeValue, SWT.NONE ); GridData gdLBLStartValue = new GridData( ); gdLBLStartValue.horizontalIndent = 5; lblStartValue.setLayoutData( gdLBLStartValue ); lblStartValue.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.StartValue" ) ); //$NON-NLS-1$ txtStartValue = new TextEditorComposite( cmpRangeValue, SWT.BORDER | SWT.SINGLE ); GridData gdTXTStartValue = new GridData( GridData.FILL_HORIZONTAL ); txtStartValue.setLayoutData( gdTXTStartValue ); txtStartValue.addListener( this ); btnStartFormatSpecifier = new Button( cmpRangeValue, SWT.PUSH ); GridData gdBTNStartFormatSpecifier = new GridData( ); gdBTNStartFormatSpecifier.heightHint = 18; gdBTNStartFormatSpecifier.widthHint = 18; btnStartFormatSpecifier.setLayoutData( gdBTNStartFormatSpecifier ); btnStartFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); //$NON-NLS-1$ btnStartFormatSpecifier.addSelectionListener( this ); btnStartFormatSpecifier.getImage( ) .setBackground( btnStartFormatSpecifier.getBackground( ) ); lblEndValue = new Label( cmpRangeValue, SWT.NONE ); GridData gdLBLEndValue = new GridData( ); gdLBLEndValue.horizontalIndent = 5; lblEndValue.setLayoutData( gdLBLEndValue ); lblEndValue.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.EndValue" ) ); //$NON-NLS-1$ txtEndValue = new TextEditorComposite( cmpRangeValue, SWT.BORDER | SWT.SINGLE ); GridData gdTXTEndValue = new GridData( GridData.FILL_HORIZONTAL ); txtEndValue.setLayoutData( gdTXTEndValue ); txtEndValue.addListener( this ); btnEndFormatSpecifier = new Button( cmpRangeValue, SWT.PUSH ); GridData gdBTNEndFormatSpecifier = new GridData( ); gdBTNEndFormatSpecifier.heightHint = 18; gdBTNEndFormatSpecifier.widthHint = 18; btnEndFormatSpecifier.setLayoutData( gdBTNEndFormatSpecifier ); btnEndFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); //$NON-NLS-1$ btnEndFormatSpecifier.addSelectionListener( this ); btnEndFormatSpecifier.getImage( ) .setBackground( btnEndFormatSpecifier.getBackground( ) ); // Radius lblInnerRadius = new Label( cmpRangeValue, SWT.NONE ); GridData gdLBLInnerRadius = new GridData( ); gdLBLInnerRadius.horizontalIndent = 5; lblInnerRadius.setLayoutData( gdLBLInnerRadius ); lblInnerRadius.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.InnerRadius" ) ); //$NON-NLS-1$ txtInnerRadius = new TextEditorComposite( cmpRangeValue, SWT.BORDER | SWT.SINGLE ); GridData gdTXTInnerRadius = new GridData( GridData.FILL_HORIZONTAL ); gdTXTInnerRadius.horizontalSpan = 2; txtInnerRadius.setLayoutData( gdTXTInnerRadius ); txtInnerRadius.addListener( this ); lblOuterRadius = new Label( cmpRangeValue, SWT.NONE ); GridData gdLBLOuterRadius = new GridData( ); gdLBLOuterRadius.horizontalIndent = 5; lblOuterRadius.setLayoutData( gdLBLOuterRadius ); lblOuterRadius.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.OuterRadius" ) ); //$NON-NLS-1$ txtOuterRadius = new TextEditorComposite( cmpRangeValue, SWT.BORDER | SWT.SINGLE ); GridData gdTXTOuterRadius = new GridData( GridData.FILL_HORIZONTAL ); gdTXTOuterRadius.horizontalSpan = 2; txtOuterRadius.setLayoutData( gdTXTOuterRadius ); txtOuterRadius.addListener( this ); // Fill lblRangeFill = new Label( cmpRange, SWT.NONE ); GridData gdLBLRangeFill = new GridData( ); gdLBLRangeFill.horizontalIndent = 5; lblRangeFill.setLayoutData( gdLBLRangeFill ); lblRangeFill.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.Fill" ) ); //$NON-NLS-1$ fccRange = new FillChooserComposite( cmpRange, SWT.NONE, getContext( ), null, true, true ); GridData gdFCCRange = new GridData( GridData.FILL_HORIZONTAL ); gdFCCRange.horizontalSpan = 2; fccRange.setLayoutData( gdFCCRange ); fccRange.addListener( this ); // Range Outline grpMarkerRange = new Group( cmpRange, SWT.NONE ); GridData gdGRPMarkerRange = new GridData( GridData.FILL_HORIZONTAL ); gdGRPMarkerRange.horizontalSpan = 3; grpMarkerRange.setLayoutData( gdGRPMarkerRange ); grpMarkerRange.setLayout( new FillLayout( ) ); grpMarkerRange.setText( Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.RangeOutline" ) ); //$NON-NLS-1$ liacMarkerRange = new LineAttributesComposite( grpMarkerRange, SWT.NONE, null, true, true, true ); liacMarkerRange.addListener( this ); // Label Properties// lacLabel = new LabelAttributesComposite( cmpContent,// SWT.NONE,// Messages.getString( "BaseAxisMarkerAttributeSheetImpl.Lbl.DialLabelProperties" ), //$NON-NLS-1$// LabelImpl.create( ),// chart.getUnits( ),// false,// false,// serviceprovider,// false,// false );// GridData gdLACLabel = new GridData( GridData.FILL_BOTH );// lacLabel.setLayoutData( gdLACLabel );// lacLabel.addListener( this );// lacLabel.setEnabled( false ); populateLists( ); refreshButtons( ); return cmpContent; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e89bee61a969154f0d074fedf34da17dd208f822/SeriesRegionSheet.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesRegionSheet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 9995, 364, 326, 2774, 9635, 202, 202, 6313, 3744, 5118, 1350, 273, 394, 7145, 3744, 12, 11272, 202, 202, 7043, 1350, 18, 2107, 3380, 273, 576, 31, 202, 202, 7043, 1350, 18, 18396, 18006, 273, 1381, 31, 202, 202, 7043, 1350, 18, 17824, 18006, 273, 1381, 31, 202, 202, 7043, 1350, 18, 10107, 2686, 273, 2371, 31, 202, 202, 7043, 1350, 18, 10107, 2384, 273, 2371, 31, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 9625, 1350, 18, 542, 3744, 12, 5118, 1350, 11272, 202, 202, 759, 9995, 364, 326, 987, 9635, 202, 202, 6313, 3744, 5118, 682, 273, 394, 7145, 3744, 12, 11272, 202, 202, 7043, 682, 18, 2107, 3380, 273, 890, 31, 202, 202, 7043, 682, 18, 18396, 18006, 273, 1381, 31, 202, 202, 7043, 682, 18, 17824, 18006, 273, 1381, 31, 202, 202, 7043, 682, 18, 10107, 2686, 273, 374, 31, 202, 202, 7043, 682, 18, 10107, 2384, 273, 374, 31, 202, 202, 9625, 682, 273, 394, 14728, 12, 9411, 1350, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 15551, 39, 4566, 682, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 11272, 202, 202, 19016, 39, 4566, 682, 18, 18396, 6952, 273, 576, 31, 202, 202, 9625, 682, 18, 542, 3744, 751, 12, 15551, 39, 4566, 682, 11272, 202, 202, 9625, 682, 18, 542, 3744, 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, 14728, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 9995, 364, 326, 2774, 9635, 202, 202, 6313, 3744, 5118, 1350, 273, 394, 7145, 3744, 12, 11272, 202, 202, 7043, 1350, 18, 2107, 3380, 273, 576, 31, 202, 202, 7043, 1350, 18, 18396, 18006, 273, 1381, 31, 202, 202, 7043, 1350, 18, 17824, 18006, 273, 1381, 31, 202, 202, 7043, 1350, 18, 10107, 2686, 273, 2371, 31, 202, 202, 7043, 1350, 18, 10107, 2384, 273, 2371, 31, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 9625, 1350, 18, 542, 3744, 12, 5118, 1350, 11272, 202, 202, 759, 9995, 364, 326, 987, 9635, 202, 202, 6313, 3744, 2 ]
sb.append(" color: " + color + " background-color: " + background_color + " ");
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); /*if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); }*/ sb.append(" (" + x + "," + y + ")->(" + width + " Xx " + height + ")"); // CLN: (PWW 13/08/04) sb.append(" color: " + color + " background-color: " + background_color + " "); return sb.toString(); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/7e8f8975a39606e0ad272f1e0bed6839ad1d9fc8/Box.java/buggy/src/java/org/xhtmlrenderer/render/Box.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 2393, 18, 6923, 2932, 3514, 30, 315, 1769, 3639, 1748, 430, 261, 588, 1350, 1435, 422, 446, 13, 288, 5411, 2393, 18, 6923, 2932, 446, 913, 16, 315, 1769, 3639, 289, 469, 288, 5411, 2393, 18, 6923, 12, 588, 1350, 7675, 588, 797, 7675, 17994, 1435, 397, 315, 7566, 397, 5154, 7675, 2816, 1085, 1435, 397, 7310, 1769, 3639, 289, 5549, 3639, 2393, 18, 6923, 2932, 7566, 397, 619, 397, 5753, 397, 677, 397, 9369, 2122, 2932, 397, 1835, 397, 315, 1139, 92, 315, 397, 2072, 397, 7310, 1769, 3639, 368, 14934, 50, 30, 261, 52, 19989, 5958, 19, 6840, 19, 3028, 13, 7734, 327, 2393, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 2393, 18, 6923, 2932, 3514, 30, 315, 1769, 3639, 1748, 430, 261, 588, 1350, 1435, 422, 446, 13, 288, 5411, 2393, 18, 6923, 2932, 446, 913, 16, 315, 1769, 3639, 289, 469, 288, 5411, 2393, 18, 6923, 12, 588, 1350, 7675, 588, 797, 7675, 17994, 1435, 397, 315, 7566, 397, 5154, 7675, 2816, 1085, 1435, 397, 7310, 1769, 3639, 289, 5549, 3639, 2393, 18, 6923, 2932, 7566, 397, 619, 397, 5753, 397, 677, 397, 9369, 2122, 2932, 397, 1835, 397, 315, 1139, 92, 315, 397, 2072, 397, 7310, 1769, 3639, 368, 14934, 50, 30, 261, 52, 19989, 5958, 19, 6840, 19, 3028, 13, 7734, 327, 2 ]
}));
})));
public void _invokeinterface( int pc, int index, byte nargs, IConstantPoolEntry constantInterfaceMethodref) { dumpPcNumber(pc); if (isCompact()) { buffer.append(Util.bind("classformat.invokeinterface.compact", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKEINTERFACE], Integer.toString(index), Integer.toString(nargs), Util.toString( constantInterfaceMethodref.getClassName(), constantInterfaceMethodref.getMethodName(), constantInterfaceMethodref.getMethodDescriptor(), true) })); } else { buffer.append(Util.bind("classformat.invokeinterface", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKEINTERFACE], Integer.toString(index), Integer.toString(nargs), returnDeclaringClassName(constantInterfaceMethodref), new String(constantInterfaceMethodref.getMethodName()), new String(constantInterfaceMethodref.getMethodDescriptor()), })); } writeNewLine(); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7ed8fb3f335f5407b01a590a0c668733ebc19aa6/DefaultBytecodeVisitor.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 14407, 5831, 12, 202, 202, 474, 6125, 16, 202, 202, 474, 770, 16, 202, 202, 7229, 14440, 16, 202, 202, 45, 6902, 2864, 1622, 5381, 1358, 1305, 1734, 13, 288, 202, 202, 8481, 28136, 1854, 12, 2436, 1769, 202, 202, 430, 261, 291, 16863, 10756, 288, 1082, 202, 4106, 18, 6923, 12, 1304, 18, 4376, 2932, 1106, 2139, 18, 14407, 5831, 18, 21038, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2704, 514, 8526, 288, 6862, 202, 22808, 780, 1972, 18, 15377, 5572, 67, 16257, 63, 45, 22808, 29668, 4758, 2102, 18, 706, 17691, 41, 18865, 6487, 6862, 202, 4522, 18, 10492, 12, 1615, 3631, 6862, 202, 4522, 18, 10492, 12, 82, 1968, 3631, 6862, 202, 1304, 18, 10492, 12, 25083, 202, 14384, 1358, 1305, 1734, 18, 588, 3834, 9334, 25083, 202, 14384, 1358, 1305, 1734, 18, 588, 11666, 9334, 25083, 202, 14384, 1358, 1305, 1734, 18, 588, 1305, 3187, 9334, 25083, 202, 3767, 13, 9506, 202, 6792, 1769, 202, 202, 97, 469, 288, 1082, 202, 4106, 18, 6923, 12, 1304, 18, 4376, 2932, 1106, 2139, 18, 14407, 5831, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2704, 514, 8526, 288, 6862, 202, 22808, 780, 1972, 18, 15377, 5572, 67, 16257, 63, 45, 22808, 29668, 4758, 2102, 18, 706, 17691, 41, 18865, 6487, 6862, 202, 4522, 18, 10492, 12, 1615, 3631, 6862, 202, 4522, 18, 10492, 12, 82, 1968, 3631, 6862, 202, 2463, 3456, 5968, 3834, 12, 14384, 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, 389, 14407, 5831, 12, 202, 202, 474, 6125, 16, 202, 202, 474, 770, 16, 202, 202, 7229, 14440, 16, 202, 202, 45, 6902, 2864, 1622, 5381, 1358, 1305, 1734, 13, 288, 202, 202, 8481, 28136, 1854, 12, 2436, 1769, 202, 202, 430, 261, 291, 16863, 10756, 288, 1082, 202, 4106, 18, 6923, 12, 1304, 18, 4376, 2932, 1106, 2139, 18, 14407, 5831, 18, 21038, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2704, 514, 8526, 288, 6862, 202, 22808, 780, 1972, 18, 15377, 5572, 67, 16257, 63, 45, 22808, 29668, 4758, 2102, 18, 706, 17691, 41, 18865, 6487, 6862, 202, 4522, 18, 10492, 12, 1615, 3631, 6862, 202, 4522, 18, 10492, 12, 82, 2 ]
requeue(Router.CLOCK_FUDGE_FACTOR);
long timeToDrop = _dropAfter - getContext().clock().now(); requeue(timeToDrop);
public void runJob() { if (!_leaseUpdated) { _pool.removeTunnel(_cfg); _leaseUpdated = true; _pool.refreshLeaseSet(); requeue(Router.CLOCK_FUDGE_FACTOR); } else { // already removed/refreshed, but now lets make it // so we dont even honor the tunnel anymore getContext().tunnelDispatcher().remove(_cfg); } }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/7a6a7490047079dfb11fa5f423561ab1e6cf4d18/ExpireJob.java/buggy/router/java/src/net/i2p/router/tunnel/pool/ExpireJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 2278, 1435, 288, 3639, 309, 16051, 67, 2508, 7381, 13, 288, 5411, 389, 6011, 18, 4479, 20329, 24899, 7066, 1769, 5411, 389, 2508, 7381, 273, 638, 31, 5411, 389, 6011, 18, 9144, 17746, 694, 5621, 5411, 1525, 23813, 7544, 273, 389, 7285, 4436, 300, 6474, 7675, 18517, 7675, 3338, 5621, 1111, 1455, 12, 957, 774, 7544, 1769, 3639, 289, 469, 288, 5411, 368, 1818, 3723, 19, 9144, 329, 16, 1496, 2037, 14557, 1221, 518, 5411, 368, 1427, 732, 14046, 5456, 24338, 280, 326, 14825, 16828, 5411, 6474, 7675, 19878, 6681, 7675, 4479, 24899, 7066, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1086, 2278, 1435, 288, 3639, 309, 16051, 67, 2508, 7381, 13, 288, 5411, 389, 6011, 18, 4479, 20329, 24899, 7066, 1769, 5411, 389, 2508, 7381, 273, 638, 31, 5411, 389, 6011, 18, 9144, 17746, 694, 5621, 5411, 1525, 23813, 7544, 273, 389, 7285, 4436, 300, 6474, 7675, 18517, 7675, 3338, 5621, 1111, 1455, 12, 957, 774, 7544, 1769, 3639, 289, 469, 288, 5411, 368, 1818, 3723, 19, 9144, 329, 16, 1496, 2037, 14557, 1221, 518, 5411, 368, 1427, 732, 14046, 5456, 24338, 280, 326, 14825, 16828, 5411, 6474, 7675, 19878, 6681, 7675, 4479, 24899, 7066, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!(o instanceof QueryComparator)) return false;
if (!(o instanceof QueryComparator)) { return false; }
public boolean equals(Object o) { if (!(o instanceof QueryComparator)) return false; return true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerHelpRegistry.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1606, 12, 921, 320, 13, 288, 5411, 309, 16051, 12, 83, 1276, 2770, 5559, 3719, 7734, 327, 629, 31, 5411, 327, 638, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1606, 12, 921, 320, 13, 288, 5411, 309, 16051, 12, 83, 1276, 2770, 5559, 3719, 7734, 327, 629, 31, 5411, 327, 638, 31, 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 ]
protected BridgeContext createBridgeContext() {
protected BridgeContext createBridgeContext(SVGOMDocument doc) {
protected BridgeContext createBridgeContext() { InterpreterPool pool = new InterpreterPool(); pool.putInterpreterFactory("text/ecmascript", this); BridgeContext context = super.createBridgeContext(); // This doesn't work, because setInterpreterPool is protected: // // context.setInterpreterPool(pool); // return context; // // Instead, make a new context. BridgeContext newContext = new BridgeContext(context.getUserAgent(), pool, context.getDocumentLoader()); newContext.setDynamic(true); return newContext; }
49579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49579/e6246d57d7f25805d991992f9942a16d9e13968a/SVGCanvas.java/buggy/Javolin/source/org/volity/client/SVGCanvas.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 24219, 1042, 752, 13691, 1042, 12, 26531, 1872, 2519, 997, 13, 288, 565, 5294, 11599, 2864, 2845, 273, 394, 5294, 11599, 2864, 5621, 565, 2845, 18, 458, 30010, 1733, 2932, 955, 19, 557, 81, 6407, 3113, 333, 1769, 565, 24219, 1042, 819, 273, 2240, 18, 2640, 13691, 1042, 5621, 565, 368, 1220, 3302, 1404, 1440, 16, 2724, 444, 30010, 2864, 353, 4750, 30, 565, 368, 565, 368, 819, 18, 542, 30010, 2864, 12, 6011, 1769, 565, 368, 327, 819, 31, 565, 368, 565, 368, 17561, 16, 1221, 279, 394, 819, 18, 565, 24219, 1042, 28210, 273, 1377, 394, 24219, 1042, 12, 2472, 18, 588, 12276, 9334, 13491, 2845, 16, 13491, 819, 18, 588, 2519, 2886, 10663, 565, 28210, 18, 542, 9791, 12, 3767, 1769, 565, 327, 28210, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 24219, 1042, 752, 13691, 1042, 12, 26531, 1872, 2519, 997, 13, 288, 565, 5294, 11599, 2864, 2845, 273, 394, 5294, 11599, 2864, 5621, 565, 2845, 18, 458, 30010, 1733, 2932, 955, 19, 557, 81, 6407, 3113, 333, 1769, 565, 24219, 1042, 819, 273, 2240, 18, 2640, 13691, 1042, 5621, 565, 368, 1220, 3302, 1404, 1440, 16, 2724, 444, 30010, 2864, 353, 4750, 30, 565, 368, 565, 368, 819, 18, 542, 30010, 2864, 12, 6011, 1769, 565, 368, 327, 819, 31, 565, 368, 565, 368, 17561, 16, 1221, 279, 394, 819, 18, 565, 24219, 1042, 28210, 273, 1377, 394, 24219, 1042, 12, 2472, 18, 588, 12276, 9334, 13491, 2845, 16, 13491, 819, 18, 588, 2519, 2886, 10663, 565, 2 ]
verifyProjectInWorkspace(true, workspaceProjects[0], ARCHIVE_FILE_LIST);
verifyProjectInWorkspace(true, workspaceProjects[0], ARCHIVE_FILE_LIST, true);
public void testImportSingleTar() { try { IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IProject[] workspaceProjects = root.getProjects(); for (int i = 0; i < workspaceProjects.length; i++) FileUtil.deleteProject(workspaceProjects[i]); URL helloworld = Platform.asLocalURL(Platform.find(TestPlugin.getDefault().getBundle(), new Path(DATA_PATH_PREFIX+"helloworld.tar"))); WizardProjectsImportPage wpip = getNewWizard(); HashSet projects = new HashSet(); projects.add("HelloWorld"); wpip.getProjectFromDirectoryRadio().setSelection((false)); //We want the other one selected wpip.updateProjectsList(helloworld.getPath()); ProjectRecord[] selectedProjects= wpip.getValidProjects(); ArrayList projectNames = new ArrayList(); for (int i = 0; i < selectedProjects.length; i++) { projectNames.add(selectedProjects[i].getProjectName()); } assertTrue("Not all projects were found correctly in tar", projectNames.containsAll(projects)); CheckboxTreeViewer projectsList= wpip.getProjectsList(); projectsList.setCheckedElements(selectedProjects); wpip.createProjects(); // Try importing all the projects we found // "HelloWorld" should be the only project in the workspace workspaceProjects = root.getProjects(); if (workspaceProjects.length != 1) fail("Incorrect Number of projects imported"); IFolder helloFolder = workspaceProjects[0].getFolder("HelloWorld"); if (helloFolder.exists()) fail("Project was imported as a folder into itself"); verifyProjectInWorkspace(true, workspaceProjects[0], ARCHIVE_FILE_LIST); } catch (IOException e) { fail(e.toString()); } catch (CoreException e) { fail(e.toString()); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4a7312174452257babeaec70e83a087325c0dcc2/ImportExistingTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5010, 5281, 20464, 1435, 288, 202, 202, 698, 288, 1082, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 25083, 202, 45, 4109, 8526, 6003, 15298, 273, 1365, 18, 588, 15298, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6003, 15298, 18, 2469, 31, 277, 27245, 2868, 202, 812, 1304, 18, 3733, 4109, 12, 14915, 15298, 63, 77, 19226, 5411, 1976, 366, 11394, 6245, 273, 11810, 18, 345, 2042, 1785, 12, 8201, 18, 4720, 12, 4709, 3773, 18, 588, 1868, 7675, 588, 3405, 9334, 2868, 202, 202, 2704, 2666, 12, 4883, 67, 4211, 67, 6307, 9078, 76, 11394, 6245, 18, 11718, 6, 3719, 1769, 1082, 202, 27130, 15298, 5010, 1964, 6357, 625, 273, 12654, 27130, 5621, 1082, 202, 13482, 10137, 273, 394, 6847, 5621, 1082, 202, 13582, 18, 1289, 2932, 18601, 18071, 8863, 25083, 202, 8612, 625, 18, 588, 4109, 1265, 2853, 19984, 7675, 542, 6233, 12443, 5743, 10019, 368, 3218, 2545, 326, 1308, 1245, 3170, 1082, 202, 8612, 625, 18, 2725, 15298, 682, 12, 76, 11394, 6245, 18, 588, 743, 10663, 25083, 202, 4109, 2115, 8526, 3170, 15298, 33, 6357, 625, 18, 588, 1556, 15298, 5621, 1082, 202, 19558, 1984, 1557, 273, 394, 2407, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3170, 15298, 18, 2469, 31, 277, 27245, 288, 9506, 202, 4406, 1557, 18, 1289, 12, 8109, 15298, 63, 77, 8009, 588, 4109, 461, 10663, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5010, 5281, 20464, 1435, 288, 202, 202, 698, 288, 1082, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 25083, 202, 45, 4109, 8526, 6003, 15298, 273, 1365, 18, 588, 15298, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6003, 15298, 18, 2469, 31, 277, 27245, 2868, 202, 812, 1304, 18, 3733, 4109, 12, 14915, 15298, 63, 77, 19226, 5411, 1976, 366, 11394, 6245, 273, 11810, 18, 345, 2042, 1785, 12, 8201, 18, 4720, 12, 4709, 3773, 18, 588, 1868, 7675, 588, 3405, 9334, 2868, 202, 202, 2704, 2666, 12, 4883, 67, 4211, 67, 6307, 9078, 76, 11394, 6245, 18, 11718, 6, 3719, 1769, 1082, 2 ]
if(!(constraintParameter instanceof Boolean)) throw new IllegalArgumentException("Parameter for constraint ["+BLANK_CONSTRAINT+"] of property ["+constraintPropertyName+"] of class ["+constraintOwningClass+"] must be a boolean value"); this.blank = ((Boolean)constraintParameter).booleanValue(); super.setParameter(constraintParameter); }
if(!(constraintParameter instanceof Boolean)) throw new IllegalArgumentException("Parameter for constraint ["+BLANK_CONSTRAINT+"] of property ["+constraintPropertyName+"] of class ["+constraintOwningClass+"] must be a boolean value"); this.blank = ((Boolean)constraintParameter).booleanValue(); super.setParameter(constraintParameter); }
public void setParameter(Object constraintParameter) { if(!(constraintParameter instanceof Boolean)) throw new IllegalArgumentException("Parameter for constraint ["+BLANK_CONSTRAINT+"] of property ["+constraintPropertyName+"] of class ["+constraintOwningClass+"] must be a boolean value"); this.blank = ((Boolean)constraintParameter).booleanValue(); super.setParameter(constraintParameter); }
51763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51763/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/buggy/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 6690, 12, 921, 4954, 1662, 13, 288, 1082, 202, 430, 12, 5, 12, 13364, 1662, 1276, 3411, 3719, 4697, 202, 12849, 394, 2754, 2932, 1662, 364, 4954, 8247, 15, 38, 24307, 67, 15199, 9078, 65, 434, 1272, 8247, 15, 13364, 13073, 9078, 65, 434, 667, 8247, 15, 13364, 3494, 2093, 797, 9078, 65, 1297, 506, 279, 1250, 460, 8863, 25083, 202, 2211, 18, 12111, 273, 14015, 5507, 13, 13364, 1662, 2934, 6494, 620, 5621, 1082, 202, 9565, 18, 542, 1662, 12, 13364, 1662, 1769, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 6690, 12, 921, 4954, 1662, 13, 288, 1082, 202, 430, 12, 5, 12, 13364, 1662, 1276, 3411, 3719, 4697, 202, 12849, 394, 2754, 2932, 1662, 364, 4954, 8247, 15, 38, 24307, 67, 15199, 9078, 65, 434, 1272, 8247, 15, 13364, 13073, 9078, 65, 434, 667, 8247, 15, 13364, 3494, 2093, 797, 9078, 65, 1297, 506, 279, 1250, 460, 8863, 25083, 202, 2211, 18, 12111, 273, 14015, 5507, 13, 13364, 1662, 2934, 6494, 620, 5621, 1082, 202, 9565, 18, 542, 1662, 12, 13364, 1662, 1769, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case ParserTreeConstants.JJTINTEGERLITERAL :
case ParserTreeConstants.JJTINTEGERLITERAL :
private void setup() { switch( type ) { case ParserTreeConstants.JJTINTEGERRANGE : case ParserTreeConstants.JJTREFERENCE : case ParserTreeConstants.JJTOBJECTARRAY : case ParserTreeConstants.JJTMAP : case ParserTreeConstants.JJTSTRINGLITERAL : case ParserTreeConstants.JJTTEXT : { /* * dynamic types, just render */ constant = false; try { /* * fakie : wrap in directive to get the parser to treat our args as args * it doesn't matter that #include() can't take all these types, because we * just want the parser to consider our arg as a Directive/VM arg rather than * as if inline in schmoo */ String buff ="#include(" + callerReference + " ) "; //ByteArrayInputStream inStream = new ByteArrayInputStream( buff.getBytes() ); BufferedReader br = new BufferedReader( new StringReader( buff ) ); nodeTree = rsvc.parse(br, "VMProxyArg:" + callerReference, true); /* * now, our tree really is the first DirectiveArg(), and only one */ nodeTree = (SimpleNode) nodeTree.jjtGetChild(0).jjtGetChild(0); /* * sanity check */ if ( nodeTree != null && nodeTree.getType() != type ) { rsvc.error( "VMProxyArg.setup() : programmer error : type doesn't match node type."); } /* * init. be a good citizen and give it an ICA */ InternalContextAdapter ica = new InternalContextAdapterImpl(new VelocityContext()); ica.pushCurrentTemplateName("VMProxyArg : " + ParserTreeConstants.jjtNodeName[type]); nodeTree.init(ica, rsvc); } catch ( Exception e ) { rsvc.error("VMProxyArg.setup() : exception " + callerReference + " : " + StringUtils.stackTrace(e)); } break; } case ParserTreeConstants.JJTTRUE : { constant = true; staticObject = new Boolean(true); break; } case ParserTreeConstants.JJTFALSE : { constant = true; staticObject = new Boolean(false); break; } case ParserTreeConstants.JJTINTEGERLITERAL : { constant = true; staticObject = new Integer(callerReference); break; } case ParserTreeConstants.JJTFLOATINGPOINTLITERAL : { constant = true; staticObject = new Double(callerReference); break; } case ParserTreeConstants.JJTWORD : { /* * this is technically an error... */ rsvc.error("Unsupported arg type : " + callerReference + " You most likely intended to call a VM with a string literal, so enclose with ' or \" characters. (VMProxyArg.setup())"); constant = true; staticObject = new String( callerReference ); break; } default : { rsvc.error(" VMProxyArg.setup() : unsupported type : " + callerReference ); } } }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/db561fa3a70ed2d8e5214b27d7905e75cbaa2125/VMProxyArg.java/clean/src/java/org/apache/velocity/runtime/directive/VMProxyArg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 1435, 565, 288, 3639, 1620, 12, 618, 262, 288, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14217, 15928, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14617, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 4296, 38, 5304, 8552, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 8352, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 5804, 23225, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 5151, 294, 5411, 288, 7734, 1748, 1171, 380, 225, 5976, 1953, 16, 2537, 1743, 1171, 1195, 27573, 5381, 273, 629, 31, 7734, 775, 7734, 288, 10792, 1748, 5397, 380, 225, 284, 581, 1385, 294, 2193, 316, 225, 8655, 358, 336, 326, 2082, 358, 10116, 3134, 833, 487, 833, 5397, 380, 282, 518, 3302, 1404, 15177, 716, 468, 6702, 1435, 848, 1404, 4862, 777, 4259, 1953, 16, 2724, 732, 8227, 380, 282, 2537, 2545, 326, 2082, 358, 5260, 3134, 1501, 487, 279, 31081, 19, 7397, 1501, 9178, 2353, 5397, 380, 282, 487, 309, 6370, 316, 18551, 81, 5161, 5397, 1195, 10792, 514, 6139, 273, 6, 7, 6702, 2932, 397, 4894, 2404, 397, 315, 262, 13636, 10792, 368, 8826, 4348, 28987, 273, 394, 16180, 12, 6139, 18, 588, 2160, 1435, 11272, 10792, 10633, 5186, 273, 394, 10633, 12, 394, 26227, 12, 6139, 262, 11272, 10792, 756, 2471, 273, 3597, 4227, 18, 2670, 12, 2848, 16, 315, 7397, 3886, 4117, 2773, 397, 4894, 2404, 16, 638, 1769, 10792, 1748, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 1435, 565, 288, 3639, 1620, 12, 618, 262, 288, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14217, 15928, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14617, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 4296, 38, 5304, 8552, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 8352, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 5804, 23225, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 5151, 294, 5411, 288, 7734, 1748, 1171, 380, 225, 5976, 1953, 16, 2537, 1743, 1171, 1195, 27573, 5381, 273, 629, 31, 7734, 775, 7734, 288, 10792, 1748, 5397, 380, 225, 284, 581, 1385, 294, 2193, 316, 225, 8655, 2 ]
public void run() { try { // Do the changes. MartBuilderUtils.editKeyColumns(martTab.getMart(), key, columns); SwingUtilities.invokeLater(new Runnable() { public void run() { // Recalculate the schema diagram this key appears // in, as // the table components will have changed size, and // some // relations may have disappeared. recalculateSchemaDiagram(key.getTable().getSchema()); // The same may have happened in the all-schemas // diagram if // this key had any external relations, or belonged // to a // table which had external relations on some other // key. recalculateOverviewDiagram(); // This may have caused new dimensions or subclass // tables to // appear in datasets referring to tables in this // schema, so // we need to recalculate all dataset diagrams just // in case. martTab.getDataSetTabSet() .recalculateAllDataSetDiagrams(); // Set the dataset tabset status to modified. martTab.getMartTabSet().setModifiedStatus(true); } }); } catch (final Throwable t) { SwingUtilities.invokeLater(new Runnable() { public void run() { martTab.getMartTabSet().getMartBuilder() .showStackTrace(t); } }); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/19521fd367bf26d4d0ea72196452fdfcef75b440/SchemaTabSet.java/buggy/src/java/org/biomart/builder/view/gui/SchemaTabSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 759, 2256, 326, 3478, 18, 6862, 202, 49, 485, 1263, 1989, 18, 4619, 653, 3380, 12, 81, 485, 5661, 18, 588, 49, 485, 9334, 498, 16, 6862, 1082, 202, 5112, 1769, 6862, 202, 6050, 310, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 25083, 202, 482, 918, 1086, 1435, 288, 6862, 1082, 202, 759, 868, 11162, 326, 1963, 19750, 333, 498, 14606, 6862, 1082, 202, 759, 316, 16, 487, 6862, 1082, 202, 759, 326, 1014, 4085, 903, 1240, 3550, 963, 16, 471, 6862, 1082, 202, 759, 2690, 6862, 1082, 202, 759, 7467, 2026, 1240, 1015, 438, 347, 2258, 18, 6862, 1082, 202, 266, 11162, 3078, 14058, 1940, 12, 856, 18, 588, 1388, 7675, 588, 3078, 10663, 6862, 1082, 202, 759, 1021, 1967, 2026, 1240, 17497, 316, 326, 777, 17, 17928, 6862, 1082, 202, 759, 19750, 309, 6862, 1082, 202, 759, 333, 498, 9323, 1281, 3903, 7467, 16, 578, 10957, 329, 6862, 1082, 202, 759, 358, 279, 6862, 1082, 202, 759, 1014, 1492, 9323, 3903, 7467, 603, 2690, 1308, 6862, 1082, 202, 759, 498, 18, 6862, 1082, 202, 266, 11162, 26648, 14058, 1940, 5621, 6862, 1082, 202, 759, 1220, 2026, 1240, 15848, 394, 5769, 578, 10177, 6862, 1082, 202, 759, 4606, 358, 6862, 1082, 202, 759, 9788, 316, 11109, 1278, 20245, 358, 4606, 316, 333, 6862, 1082, 202, 759, 1963, 16, 1427, 6862, 1082, 202, 759, 732, 1608, 358, 26657, 777, 3709, 19750, 87, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 759, 2256, 326, 3478, 18, 6862, 202, 49, 485, 1263, 1989, 18, 4619, 653, 3380, 12, 81, 485, 5661, 18, 588, 49, 485, 9334, 498, 16, 6862, 1082, 202, 5112, 1769, 6862, 202, 6050, 310, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 25083, 202, 482, 918, 1086, 1435, 288, 6862, 1082, 202, 759, 868, 11162, 326, 1963, 19750, 333, 498, 14606, 6862, 1082, 202, 759, 316, 16, 487, 6862, 1082, 202, 759, 326, 1014, 4085, 903, 1240, 3550, 963, 16, 471, 6862, 1082, 202, 759, 2690, 6862, 1082, 202, 759, 7467, 2026, 1240, 1015, 438, 347, 2258, 18, 6862, 1082, 202, 266, 11162, 3078, 2 ]
throw new ArgumentError(recv.getRuntime(), "negative level(" + level + ')');
throw recv.getRuntime().newArgumentError("negative level(" + level + ')');
public static IRubyObject caller(IRubyObject recv, IRubyObject[] args) { int level = args.length > 0 ? RubyFixnum.fix2int(args[0]) : 1; if (level < 0) { throw new ArgumentError(recv.getRuntime(), "negative level(" + level + ')'); } return RaiseException.createBacktrace(recv.getRuntime(), level, false); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 4894, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 509, 1801, 273, 833, 18, 2469, 405, 374, 692, 19817, 8585, 2107, 18, 904, 22, 474, 12, 1968, 63, 20, 5717, 294, 404, 31, 3639, 309, 261, 2815, 411, 374, 13, 288, 5411, 604, 10665, 18, 588, 5576, 7675, 2704, 1379, 668, 2932, 13258, 1801, 2932, 397, 1801, 397, 5777, 1769, 3639, 289, 3639, 327, 20539, 503, 18, 2640, 2711, 5129, 12, 18334, 18, 588, 5576, 9334, 1801, 16, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 4894, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 509, 1801, 273, 833, 18, 2469, 405, 374, 692, 19817, 8585, 2107, 18, 904, 22, 474, 12, 1968, 63, 20, 5717, 294, 404, 31, 3639, 309, 261, 2815, 411, 374, 13, 288, 5411, 604, 10665, 18, 588, 5576, 7675, 2704, 1379, 668, 2932, 13258, 1801, 2932, 397, 1801, 397, 5777, 1769, 3639, 289, 3639, 327, 20539, 503, 18, 2640, 2711, 5129, 12, 18334, 18, 588, 5576, 9334, 1801, 16, 629, 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 ]
if (flt == null) stopEventHandlers(); else terminateEventHandlers();
if (flt == null) stopEventHandlers(); else terminateEventHandlers();
public void completed(FaultData flt, Set<CompensationHandler> compenstations) { // Set the fault to the activity's choice, if and only if no previous fault // has been detected (first fault wins). if (flt != null && _fault == null) _fault = flt; _child = null; _compensations.addAll(compenstations); if (flt == null) stopEventHandlers(); else terminateEventHandlers(); instance(ACTIVE.this); }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/5a424b5c30fb33ea6a31f42e354ed700333c104e/SCOPE.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/SCOPE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 5951, 12, 7083, 751, 26901, 16, 1000, 32, 2945, 25159, 1503, 34, 1161, 275, 31478, 13, 288, 2868, 368, 1000, 326, 12530, 358, 326, 5728, 1807, 6023, 16, 309, 471, 1338, 309, 1158, 2416, 12530, 2868, 368, 711, 2118, 8316, 261, 3645, 12530, 31307, 2934, 2868, 309, 261, 31864, 480, 446, 597, 389, 643, 422, 446, 13, 7734, 389, 643, 273, 26901, 31, 2868, 389, 3624, 273, 446, 31, 2868, 389, 2919, 773, 1012, 18, 1289, 1595, 12, 832, 1907, 31478, 1769, 2868, 309, 261, 31864, 422, 446, 13, 7734, 2132, 1133, 6919, 5621, 2868, 469, 7734, 10850, 1133, 6919, 5621, 2868, 791, 12, 13301, 18, 2211, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 5951, 12, 7083, 751, 26901, 16, 1000, 32, 2945, 25159, 1503, 34, 1161, 275, 31478, 13, 288, 2868, 368, 1000, 326, 12530, 358, 326, 5728, 1807, 6023, 16, 309, 471, 1338, 309, 1158, 2416, 12530, 2868, 368, 711, 2118, 8316, 261, 3645, 12530, 31307, 2934, 2868, 309, 261, 31864, 480, 446, 597, 389, 643, 422, 446, 13, 7734, 389, 643, 273, 26901, 31, 2868, 389, 3624, 273, 446, 31, 2868, 389, 2919, 773, 1012, 18, 1289, 1595, 12, 832, 1907, 31478, 1769, 2868, 309, 261, 31864, 422, 446, 13, 7734, 2132, 1133, 6919, 5621, 2868, 469, 7734, 10850, 1133, 6919, 5621, 2868, 791, 12, 13301, 18, 2211, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100 ]
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
IPackageFragment pack1= this.sourceFolder.createPackageFragment("test1", false, null);
public void testInsert1Before() throws Exception { // insert first and last IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class C {\n"); buf.append("//c1\n"); buf.append("\n"); buf.append(" public int x1;\n"); buf.append("\n"); buf.append("//c2\n"); buf.append("\n"); buf.append(" public int x2;\n"); buf.append("\n"); buf.append("//c3\n"); buf.append("\n"); buf.append(" public int x3;\n"); buf.append("\n"); buf.append("//c4\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("C.java", buf.toString(), false, null); CompilationUnit astRoot= createAST(cu); AST ast= astRoot.getAST(); ASTRewrite rewrite= ASTRewrite.create(astRoot.getAST()); TypeDeclaration type= findTypeDeclaration(astRoot, "C"); FieldDeclaration decl1= newFieldDeclaration(ast, "new1"); FieldDeclaration decl2= newFieldDeclaration(ast, "new2"); ListRewrite listRewrite= rewrite.getListRewrite(type, TypeDeclaration.BODY_DECLARATIONS_PROPERTY); listRewrite.insertFirst(decl1, null); listRewrite.insertLast(decl2, null); String preview= evaluateRewrite(cu, rewrite); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class C {\n"); buf.append("//c1\n"); buf.append("\n"); buf.append(" int new1;\n"); buf.append("\n"); buf.append(" public int x1;\n"); buf.append("\n"); buf.append("//c2\n"); buf.append("\n"); buf.append(" public int x2;\n"); buf.append("\n"); buf.append("//c3\n"); buf.append("\n"); buf.append(" public int x3;\n"); buf.append("\n"); buf.append(" int new2;\n"); buf.append("\n"); buf.append("//c4\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/40ace06b6f9aaa2f71ebf049ffa37ed745fa6ef3/ASTRewritingInsertBoundTest.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingInsertBoundTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4600, 21, 4649, 1435, 1216, 1185, 288, 202, 202, 759, 2243, 1122, 471, 1142, 9506, 202, 45, 2261, 7456, 2298, 21, 33, 284, 1830, 3899, 18, 2640, 2261, 7456, 2932, 3813, 21, 3113, 629, 16, 446, 1769, 202, 202, 780, 1892, 1681, 33, 394, 6674, 5621, 202, 202, 4385, 18, 6923, 2932, 5610, 1842, 21, 9747, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 482, 667, 385, 18890, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 759, 71, 21, 64, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 565, 1071, 509, 619, 21, 9747, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 759, 71, 22, 64, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 565, 1071, 509, 619, 22, 9747, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 759, 71, 23, 64, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 565, 1071, 509, 619, 23, 9747, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 759, 71, 24, 64, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 6280, 82, 8863, 1082, 202, 45, 19184, 2802, 15985, 33, 2298, 21, 18, 2640, 19184, 2802, 2932, 39, 18, 6290, 3113, 1681, 18, 10492, 9334, 629, 16, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4600, 21, 4649, 1435, 1216, 1185, 288, 202, 202, 759, 2243, 1122, 471, 1142, 9506, 202, 45, 2261, 7456, 2298, 21, 33, 284, 1830, 3899, 18, 2640, 2261, 7456, 2932, 3813, 21, 3113, 629, 16, 446, 1769, 202, 202, 780, 1892, 1681, 33, 394, 6674, 5621, 202, 202, 4385, 18, 6923, 2932, 5610, 1842, 21, 9747, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 482, 667, 385, 18890, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 759, 71, 21, 64, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 4385, 18, 6923, 2932, 565, 1071, 509, 619, 21, 9747, 82, 8863, 202, 202, 4385, 18, 6923, 31458, 82, 8863, 202, 202, 2 ]
for ( int i = 0; i < report.getStyleCount( ); i++ ) { StyleDesign cachedStyle = (StyleDesign) report.getStyle( i ); if ( cachedStyle.equals( style ) ) { style = cachedStyle; break; } } if ( style.getName( ) == null ) { style.setName( "style_" + report.getStyleCount( ) ); report.addStyle( style ); }
assignStyleName( style );
private StyleDesign createStyleDesign( StyleHandle styleHandle ) { if ( styleHandle != null ) { StyleDesign style = new StyleDesign( ); style.setHandle( styleHandle ); setupStyle( style, styleHandle ); // Check if the style is already in report's style list for ( int i = 0; i < report.getStyleCount( ); i++ ) { //Cast the type mandatorily StyleDesign cachedStyle = (StyleDesign) report.getStyle( i ); if ( cachedStyle.equals( style ) ) { //There exist a style which has same properties with this // one, style = cachedStyle; break; } } if ( style.getName( ) == null ) { //the style is a new style, we need create a unique name for // it, and //add it into the report's style list. style.setName( "style_" + report.getStyleCount( ) ); //$NON-NLS-1$ report.addStyle( style ); } return style; } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1081f24e79f49c3bac41704178dac2b472b9f72b/EngineIRVisitor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 9767, 15478, 752, 2885, 15478, 12, 9767, 3259, 2154, 3259, 262, 202, 95, 202, 202, 430, 261, 2154, 3259, 480, 446, 262, 202, 202, 95, 1082, 202, 2885, 15478, 2154, 273, 394, 9767, 15478, 12, 11272, 1082, 202, 4060, 18, 542, 3259, 12, 2154, 3259, 11272, 1082, 202, 8401, 2885, 12, 2154, 16, 2154, 3259, 11272, 1082, 202, 759, 2073, 309, 326, 2154, 353, 1818, 316, 2605, 1807, 2154, 666, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 2605, 18, 588, 2885, 1380, 12, 11272, 277, 9904, 262, 1082, 202, 95, 9506, 202, 759, 9735, 326, 618, 312, 464, 639, 3220, 9506, 202, 2885, 15478, 3472, 2885, 273, 261, 2885, 15478, 13, 2605, 18, 588, 2885, 12, 277, 11272, 9506, 202, 430, 261, 3472, 2885, 18, 14963, 12, 2154, 262, 262, 9506, 202, 95, 6862, 202, 759, 9828, 1005, 279, 2154, 1492, 711, 1967, 1790, 598, 333, 6862, 202, 759, 1245, 16, 6862, 202, 4060, 273, 3472, 2885, 31, 6862, 202, 8820, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 430, 261, 2154, 18, 17994, 12, 262, 422, 446, 262, 1082, 202, 95, 9506, 202, 759, 5787, 2154, 353, 279, 394, 2154, 16, 732, 1608, 752, 279, 3089, 508, 364, 9506, 202, 759, 518, 16, 471, 9506, 202, 759, 1289, 518, 1368, 326, 2605, 1807, 2154, 666, 18, 9506, 202, 4060, 18, 542, 461, 12, 315, 4060, 9548, 397, 2605, 18, 588, 2885, 1380, 12, 262, 11272, 4329, 3993, 17, 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, 9767, 15478, 752, 2885, 15478, 12, 9767, 3259, 2154, 3259, 262, 202, 95, 202, 202, 430, 261, 2154, 3259, 480, 446, 262, 202, 202, 95, 1082, 202, 2885, 15478, 2154, 273, 394, 9767, 15478, 12, 11272, 1082, 202, 4060, 18, 542, 3259, 12, 2154, 3259, 11272, 1082, 202, 8401, 2885, 12, 2154, 16, 2154, 3259, 11272, 1082, 202, 759, 2073, 309, 326, 2154, 353, 1818, 316, 2605, 1807, 2154, 666, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 2605, 18, 588, 2885, 1380, 12, 11272, 277, 9904, 262, 1082, 202, 95, 9506, 202, 759, 9735, 326, 618, 312, 464, 639, 3220, 9506, 202, 2885, 15478, 3472, 2885, 273, 261, 2885, 15478, 13, 2605, 2 ]
super(new URL[] {});
super(new URL[] {});
public MOPClassLoader(){ super(new URL[] {}); }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/9fa66c1d1db7b036a2ba07fed7d7dc075d0c505a/MOPClassLoader.java/clean/src/org/objectweb/proactive/core/mop/MOPClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 490, 3665, 7805, 1435, 95, 282, 202, 9565, 12, 2704, 1976, 8526, 2618, 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, 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, 282, 1071, 490, 3665, 7805, 1435, 95, 282, 202, 9565, 12, 2704, 1976, 8526, 2618, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
recordLengths = ParserUtils.calculateRecordLengths(columnMD);
final Map recordLengths = ParserUtils.calculateRecordLengths(columnMD);
private void doFixedLengthFile(final InputStream dataSource) throws Exception { String line = null; InputStreamReader isr = null; BufferedReader br = null; Row row = null; int recordLength = 0; int lineCount = 0; int recPosition = 0; // map of record lengths corrisponding to the ID's in the columnMD array Map recordLengths = null; String mdkey = null; List cmds = null; try { rows = new ArrayList(); errors = new ArrayList(); recordLengths = ParserUtils.calculateRecordLengths(columnMD); // Read in the flat file isr = new InputStreamReader(dataSource); br = new BufferedReader(isr); // loop through each line in the file while ((line = br.readLine()) != null) { lineCount++; // empty line skip past it if (line.trim().length() == 0) { continue; } mdkey = ParserUtils.getCMDKeyForFixedLengthFile(columnMD, line); recordLength = ((Integer) recordLengths.get(mdkey)).intValue(); cmds = ParserUtils.getColumnMetaData(mdkey, columnMD); // Incorrect record length on line log the error. Line will not // be included in the // dataset if (line.length() > recordLength) { addError("LINE TOO LONG. LINE IS " + line.length() + " LONG. SHOULD BE " + recordLength, lineCount, 2); continue; } else if (line.length() < recordLength) { if (handleShortLines) { // We can pad this line out line += ParserUtils.padding(recordLength-line.length(), ' '); // log a warning addError("PADDED LINE TO CORRECT RECORD LENGTH", lineCount, 1); } else { addError("LINE TOO SHORT. LINE IS " + line.length() + " LONG. SHOULD BE " + recordLength, lineCount, 2); continue; } } recPosition = 1; row = new Row(); row.setMdkey(mdkey.equals("detail") ? null : mdkey); // try // to // limit // the // memory // use // Build the columns for the row for (int i = 0; i < cmds.size(); i++) { String tempValue = null; tempValue = line .substring(recPosition - 1, recPosition + (((ColumnMetaData) cmds.get(i)).getColLength() - 1)); recPosition += ((ColumnMetaData) cmds.get(i)).getColLength(); row.addColumn(tempValue.trim()); } row.setRowNumber(lineCount); // add the row to the array rows.add(row); } } finally { if (isr != null) { isr.close(); } if (br != null) { br.close(); } } }
6117 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6117/5a6896006e49a5079d7d6e3ae50a27e4b849dea1/DataSet.java/clean/PZFileReader/src/main/java/net/sf/pzfilereader/DataSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7505, 1782, 812, 12, 6385, 5037, 10233, 13, 1216, 1185, 288, 3639, 514, 980, 273, 446, 31, 3639, 15322, 353, 86, 273, 446, 31, 3639, 10633, 5186, 273, 446, 31, 3639, 6556, 1027, 273, 446, 31, 3639, 509, 1409, 1782, 273, 374, 31, 3639, 509, 980, 1380, 273, 374, 31, 3639, 509, 1950, 2555, 273, 374, 31, 3639, 368, 852, 434, 1409, 10917, 1858, 18387, 3111, 310, 358, 326, 1599, 1807, 316, 326, 1057, 6188, 526, 3639, 1635, 1409, 22406, 273, 446, 31, 3639, 514, 3481, 856, 273, 446, 31, 3639, 987, 13446, 273, 446, 31, 3639, 775, 288, 5411, 2595, 273, 394, 2407, 5621, 5411, 1334, 273, 394, 2407, 5621, 5411, 727, 1635, 1409, 22406, 273, 6783, 1989, 18, 11162, 2115, 22406, 12, 2827, 6188, 1769, 5411, 368, 2720, 316, 326, 3569, 585, 5411, 353, 86, 273, 394, 15322, 12, 892, 1830, 1769, 5411, 5186, 273, 394, 10633, 12, 291, 86, 1769, 5411, 368, 2798, 3059, 1517, 980, 316, 326, 585, 5411, 1323, 14015, 1369, 273, 5186, 18, 896, 1670, 10756, 480, 446, 13, 288, 7734, 980, 1380, 9904, 31, 7734, 368, 1008, 980, 2488, 8854, 518, 7734, 309, 261, 1369, 18, 5290, 7675, 2469, 1435, 422, 374, 13, 288, 10792, 1324, 31, 7734, 289, 7734, 3481, 856, 273, 6783, 1989, 18, 588, 19473, 653, 1290, 7505, 1782, 812, 12, 2827, 6188, 16, 980, 1769, 7734, 1409, 1782, 273, 14015, 4522, 13, 1409, 22406, 18, 588, 12, 1264, 856, 13, 2934, 474, 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, 741, 7505, 1782, 812, 12, 6385, 5037, 10233, 13, 1216, 1185, 288, 3639, 514, 980, 273, 446, 31, 3639, 15322, 353, 86, 273, 446, 31, 3639, 10633, 5186, 273, 446, 31, 3639, 6556, 1027, 273, 446, 31, 3639, 509, 1409, 1782, 273, 374, 31, 3639, 509, 980, 1380, 273, 374, 31, 3639, 509, 1950, 2555, 273, 374, 31, 3639, 368, 852, 434, 1409, 10917, 1858, 18387, 3111, 310, 358, 326, 1599, 1807, 316, 326, 1057, 6188, 526, 3639, 1635, 1409, 22406, 273, 446, 31, 3639, 514, 3481, 856, 273, 446, 31, 3639, 987, 13446, 273, 446, 31, 3639, 775, 288, 5411, 2595, 273, 394, 2407, 5621, 5411, 1334, 273, 394, 2407, 5621, 5411, 727, 1635, 1409, 2 ]
suite.addTestSuite(BasicQueryTest.class); suite.addTestSuite(FunctionTest.class); suite.addTestSuite(ScheduleTest.class); suite.addTestSuite(UtilTestCase.class); if (isRunOnce()) suite.addTestSuite(TestAggregationManager.class); suite.addTestSuite(ParameterTest.class); suite.addTestSuite(AccessControlTest.class);
suite.addTestSuite(BasicQueryTest.class); suite.addTestSuite(FunctionTest.class); suite.addTestSuite(ScheduleTest.class); suite.addTestSuite(UtilTestCase.class); if (isRunOnce()) suite.addTestSuite(TestAggregationManager.class); suite.addTestSuite(ParameterTest.class); suite.addTestSuite(AccessControlTest.class);
public static Test suite() throws Exception { RolapUtil.checkTracing(); MondrianProperties properties = MondrianProperties.instance(); String testName = properties.getTestName(); String testClass = properties.getTestClass(); System.out.println("testName: " + testName); System.out.println("testClass: " + testClass); TestSuite suite = new TestSuite(); if (testClass != null) { Class clazz = Class.forName(testClass); if (Test.class.isAssignableFrom(clazz)) { // e.g. testClass = "mondrian.test.FoodMartTestCase", // the name of a class which extends TestCase. We will invoke // every method which starts with 'test'. (If "testName" is set, // we'll filter this list later.) suite.addTestSuite(clazz); } else { // e.g. testClass = "mondrian.olap.fun.BuiltinFunTable". Class // does not implement Test, so look for a 'public [static] // Test suite()' method. Method method = clazz.getMethod("suite", new Class[0]); Object target; if (Modifier.isStatic(method.getModifiers())) { target = null; } else { target = clazz.newInstance(); } Object o = method.invoke(target, new Object[0]); suite.addTest((Test) o); } } else { // suite.addTestSuite(RolapConnectionTest.class); suite.addTest(ResultComparatorTest.suite()); suite.addTestSuite(BasicQueryTest.class); suite.addTestSuite(FunctionTest.class); suite.addTestSuite(ScheduleTest.class); suite.addTestSuite(UtilTestCase.class); if (isRunOnce()) suite.addTestSuite(TestAggregationManager.class); suite.addTestSuite(ParameterTest.class); suite.addTestSuite(AccessControlTest.class); suite.addTestSuite(ParserTest.class); suite.addTestSuite(ParentChildHierarchyTest.class); if (false) suite.addTestSuite(XmlaTest.class); if (isRunOnce()) suite.addTestSuite(TestCalculatedMembers.class); suite.addTestSuite(RaggedHierarchyTest.class); } if (testName != null) { // Filter the suite, so that only tests whose names match // "testName" (in its entirety) will be run. Pattern testPattern = Pattern.compile(testName); suite = copySuite(suite, testPattern); } return suite; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/Main.java/clean/testsrc/main/mondrian/test/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 1216, 1185, 288, 202, 202, 4984, 438, 1304, 18, 1893, 3403, 5621, 202, 202, 49, 1434, 566, 304, 2297, 1790, 273, 490, 1434, 566, 304, 2297, 18, 1336, 5621, 202, 202, 780, 1842, 461, 273, 1790, 18, 588, 4709, 461, 5621, 202, 202, 780, 1842, 797, 273, 1790, 18, 588, 4709, 797, 5621, 3639, 2332, 18, 659, 18, 8222, 2932, 3813, 461, 30, 315, 397, 1842, 461, 1769, 3639, 2332, 18, 659, 18, 8222, 2932, 3813, 797, 30, 315, 397, 1842, 797, 1769, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 5621, 202, 202, 430, 261, 3813, 797, 480, 446, 13, 288, 1082, 202, 797, 4003, 273, 1659, 18, 1884, 461, 12, 3813, 797, 1769, 1082, 202, 430, 261, 4709, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 3719, 288, 9506, 202, 759, 425, 18, 75, 18, 1842, 797, 273, 315, 81, 1434, 566, 304, 18, 3813, 18, 42, 4773, 49, 485, 4709, 2449, 3113, 9506, 202, 759, 326, 508, 434, 279, 667, 1492, 3231, 7766, 2449, 18, 1660, 903, 4356, 9506, 202, 759, 3614, 707, 1492, 2542, 598, 296, 3813, 10332, 261, 2047, 315, 3813, 461, 6, 353, 444, 16, 9506, 202, 759, 732, 5614, 1034, 333, 666, 5137, 12998, 9506, 202, 30676, 18, 1289, 4709, 13587, 12, 830, 3638, 1769, 1082, 202, 97, 469, 288, 9506, 202, 759, 425, 18, 75, 18, 1842, 797, 273, 315, 81, 1434, 566, 304, 18, 355, 438, 18, 12125, 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, 760, 7766, 11371, 1435, 1216, 1185, 288, 202, 202, 4984, 438, 1304, 18, 1893, 3403, 5621, 202, 202, 49, 1434, 566, 304, 2297, 1790, 273, 490, 1434, 566, 304, 2297, 18, 1336, 5621, 202, 202, 780, 1842, 461, 273, 1790, 18, 588, 4709, 461, 5621, 202, 202, 780, 1842, 797, 273, 1790, 18, 588, 4709, 797, 5621, 3639, 2332, 18, 659, 18, 8222, 2932, 3813, 461, 30, 315, 397, 1842, 461, 1769, 3639, 2332, 18, 659, 18, 8222, 2932, 3813, 797, 30, 315, 397, 1842, 797, 1769, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 5621, 202, 202, 430, 261, 3813, 797, 480, 446, 13, 288, 1082, 202, 797, 4003, 273, 1659, 18, 1884, 461, 2 ]
if(keywordReferences == null) return Collections.EMPTY_LIST;
if (keywordLabelCache != null) return keywordLabelCache;
public Collection getKeywordLabels() { if(keywordReferences == null) return Collections.EMPTY_LIST; // TODO: this value should be cached and the keywords extension point // should be monitored for changes. Doing this will require adding // lifecycle to this class so that listeners can be cleaned up. Collection keywordLabels = new ArrayList(keywordReferences.size()); Iterator referenceIterator = keywordReferences.iterator(); while(referenceIterator.hasNext()){ Object label = KeywordRegistry.getInstance().getKeywordLabel( (String) referenceIterator.next()); if(label != null) keywordLabels.add(label); } return keywordLabels; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/WorkbenchPreferenceExtensionNode.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/WorkbenchPreferenceExtensionNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 3579, 1095, 5888, 1435, 288, 202, 202, 430, 12, 11041, 8221, 422, 446, 13, 1082, 202, 2463, 5737, 18, 13625, 67, 7085, 31, 9506, 202, 759, 2660, 30, 333, 460, 1410, 506, 3472, 471, 326, 7093, 2710, 1634, 202, 202, 759, 1410, 506, 28651, 364, 3478, 18, 2256, 310, 333, 903, 2583, 6534, 202, 202, 759, 6596, 358, 333, 667, 1427, 716, 4679, 848, 506, 9426, 731, 18, 202, 202, 2532, 4932, 5888, 273, 394, 2407, 12, 11041, 8221, 18, 1467, 10663, 202, 202, 3198, 2114, 3198, 273, 4932, 8221, 18, 9838, 5621, 202, 202, 17523, 12, 6180, 3198, 18, 5332, 2134, 10756, 95, 1082, 202, 921, 1433, 273, 18317, 4243, 18, 588, 1442, 7675, 588, 8736, 2224, 12, 6862, 202, 12, 780, 13, 2114, 3198, 18, 4285, 10663, 1082, 202, 430, 12, 1925, 480, 446, 13, 9506, 202, 11041, 5888, 18, 1289, 12, 1925, 1769, 202, 202, 97, 9506, 202, 2463, 4932, 5888, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 2200, 3579, 1095, 5888, 1435, 288, 202, 202, 430, 12, 11041, 8221, 422, 446, 13, 1082, 202, 2463, 5737, 18, 13625, 67, 7085, 31, 9506, 202, 759, 2660, 30, 333, 460, 1410, 506, 3472, 471, 326, 7093, 2710, 1634, 202, 202, 759, 1410, 506, 28651, 364, 3478, 18, 2256, 310, 333, 903, 2583, 6534, 202, 202, 759, 6596, 358, 333, 667, 1427, 716, 4679, 848, 506, 9426, 731, 18, 202, 202, 2532, 4932, 5888, 273, 394, 2407, 12, 11041, 8221, 18, 1467, 10663, 202, 202, 3198, 2114, 3198, 273, 4932, 8221, 18, 9838, 5621, 202, 202, 17523, 12, 6180, 3198, 18, 5332, 2134, 10756, 95, 1082, 202, 921, 1433, 273, 18317, 4243, 18, 588, 1442, 7675, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/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, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 7508, 461, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 6549, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 2 ]
public int getDefaultPadding() { return default_padding; }
public int getDefaultPadding() { return default_padding; }
public int getDefaultPadding() { return default_padding; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/bab75ebdd98a0bd5024d5811d4e9443431e6c9a2/GlassPane.java/clean/JSynthLib/org/jsynthlib/editorbuilder/GlassPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 4829, 9485, 1435, 288, 327, 805, 67, 9598, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 4829, 9485, 1435, 288, 327, 805, 67, 9598, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fPlain = Font.decode("SansSerif-12"); fBold = Font.decode("SansSerif-bold-12");
fPlain = new Font("Helvetica", Font.PLAIN, 12); fBold = new Font("Helvetica", Font.BOLD, 12);
public FolderCellRenderer() { fPlain = Font.decode("SansSerif-12"); fBold = Font.decode("SansSerif-bold-12"); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/4f7450bf631ca499b16ad64427fa68962c2a3e07/MasterPanel.java/buggy/grendel/ui/MasterPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12623, 4020, 6747, 1435, 288, 565, 284, 13360, 273, 10063, 18, 3922, 2932, 55, 634, 827, 430, 17, 2138, 8863, 565, 284, 38, 1673, 273, 10063, 18, 3922, 2932, 55, 634, 827, 430, 17, 16390, 17, 2138, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 12623, 4020, 6747, 1435, 288, 565, 284, 13360, 273, 10063, 18, 3922, 2932, 55, 634, 827, 430, 17, 2138, 8863, 565, 284, 38, 1673, 273, 10063, 18, 3922, 2932, 55, 634, 827, 430, 17, 16390, 17, 2138, 8863, 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 ]
InitializerService is = (InitializerService) sb.getService(this, InitializerService.class, null);
InitializerService is = (InitializerService) sb.getService(this, InitializerService.class, null);
protected ComponentDescriptions findExternalComponentDescriptions() { // display the agent id String cname = getIdentifier(); ServiceBroker sb = getBindingSite().getServiceBroker(); InitializerService is = (InitializerService) sb.getService(this, InitializerService.class, null); try { String cp = specifyContainmentPoint(); ComponentDescription[] cds = is.getComponentDescriptions(cname, specifyContainmentPoint()); return new ComponentDescriptions(cds); } catch (Exception e) { System.err.println("\nUnable to add "+cname+"'s child Components: "+e); e.printStackTrace(); return null; } finally { sb.releaseService(this, InitializerService.class, is); } }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/58e8bb8b6b85c3ba06f165be059c1b105683d23c/SimpleAgent.java/buggy/core/src/org/cougaar/core/agent/SimpleAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5435, 16844, 1104, 6841, 1841, 16844, 1435, 288, 565, 368, 2562, 326, 4040, 612, 565, 514, 18290, 273, 9650, 5621, 565, 1956, 11194, 2393, 273, 29471, 4956, 7675, 588, 1179, 11194, 5621, 565, 4378, 3926, 1179, 353, 273, 261, 14729, 1179, 13, 2393, 18, 588, 1179, 12, 2211, 16, 4378, 3926, 1179, 18, 1106, 16, 446, 1769, 565, 775, 288, 1377, 514, 3283, 273, 4800, 22928, 475, 2148, 5621, 1377, 5435, 3291, 8526, 19697, 273, 353, 18, 588, 1841, 16844, 12, 71, 529, 16, 4800, 22928, 475, 2148, 10663, 1377, 327, 394, 5435, 16844, 12, 71, 2377, 1769, 565, 289, 1044, 261, 503, 425, 13, 288, 1377, 2332, 18, 370, 18, 8222, 31458, 82, 3370, 358, 527, 13773, 71, 529, 15, 5187, 87, 1151, 25286, 30, 13773, 73, 1769, 1377, 425, 18, 1188, 6332, 5621, 1377, 327, 446, 31, 565, 289, 3095, 288, 1377, 2393, 18, 9340, 1179, 12, 2211, 16, 4378, 3926, 1179, 18, 1106, 16, 353, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5435, 16844, 1104, 6841, 1841, 16844, 1435, 288, 565, 368, 2562, 326, 4040, 612, 565, 514, 18290, 273, 9650, 5621, 565, 1956, 11194, 2393, 273, 29471, 4956, 7675, 588, 1179, 11194, 5621, 565, 4378, 3926, 1179, 353, 273, 261, 14729, 1179, 13, 2393, 18, 588, 1179, 12, 2211, 16, 4378, 3926, 1179, 18, 1106, 16, 446, 1769, 565, 775, 288, 1377, 514, 3283, 273, 4800, 22928, 475, 2148, 5621, 1377, 5435, 3291, 8526, 19697, 273, 353, 18, 588, 1841, 16844, 12, 71, 529, 16, 4800, 22928, 475, 2148, 10663, 1377, 327, 394, 5435, 16844, 12, 71, 2377, 1769, 565, 289, 1044, 261, 503, 425, 13, 288, 1377, 2332, 18, 370, 18, 8222, 31458, 82, 3370, 358, 527, 2 ]
public vValue Pop() { return this.Deref().Pop(); }
public vValue Pop() { return Deref().Pop(); }
public vValue Pop() { return this.Deref().Pop(); }
4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/5718ec67373e063580a493dcbb6445df289ef446/vIndirect.java/buggy/jcon/vIndirect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 331, 620, 10264, 1435, 1082, 202, 95, 327, 333, 18, 40, 822, 74, 7675, 7049, 5621, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 331, 620, 10264, 1435, 1082, 202, 95, 327, 333, 18, 40, 822, 74, 7675, 7049, 5621, 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 ]
if (sessionId == null) { log.warn("Session id is null for client " + client); } else {
if (sessionId != null) {
public void handleConnectionException(Throwable t, Client client) { String sessionId = client.getSessionId(); if (sessionId == null) { log.warn("Session id is null for client " + client); } else { if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace("client " + client + " has disconnected"); } } else { log.info("Broken client connection, clearing up its state " + sessionId, t); if (log.isTraceEnabled()) { log.trace("Clearing up server resources for this connection"); } ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint)connections.remove(sessionId); if (endpoint == null) { log.error("Cannot find ServerConnectionEndpoint for session id " + sessionId); } else { try { endpoint.close(); } catch (JMSException e) { log.error("Failed to close connection", e); } } log.info("Cleared up state for connection"); } } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/a77fe392c3f64eb567083053c9268411a0f71d29/ConnectionManagerImpl.java/buggy/src/main/org/jboss/jms/server/connectionmanager/ConnectionManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1640, 28461, 12, 15155, 268, 16, 2445, 1004, 13, 282, 288, 1377, 514, 10338, 273, 1004, 18, 588, 18030, 5621, 1377, 309, 261, 3184, 548, 422, 446, 13, 1377, 288, 540, 613, 18, 8935, 2932, 2157, 612, 353, 446, 364, 1004, 315, 397, 1004, 1769, 1377, 289, 1377, 469, 1377, 288, 540, 309, 261, 88, 1276, 2445, 26303, 503, 13, 540, 288, 5411, 368, 1220, 353, 7791, 5411, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 2625, 315, 397, 1004, 397, 315, 711, 17853, 8863, 289, 540, 289, 540, 469, 540, 288, 5411, 613, 18, 1376, 2932, 29559, 1004, 1459, 16, 29820, 731, 2097, 919, 315, 397, 10338, 16, 268, 1769, 5411, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 4756, 5968, 731, 1438, 2703, 364, 333, 1459, 8863, 289, 5411, 3224, 1952, 3293, 2494, 273, 9079, 261, 2081, 1952, 3293, 13, 13313, 18, 4479, 12, 3184, 548, 1769, 5411, 309, 261, 8003, 422, 446, 13, 5411, 288, 9079, 613, 18, 1636, 2932, 4515, 1104, 3224, 1952, 3293, 364, 1339, 612, 315, 397, 10338, 1769, 5411, 289, 5411, 469, 5411, 288, 9079, 775, 9079, 288, 5375, 2494, 18, 4412, 5621, 9079, 289, 9079, 1044, 261, 46, 3537, 503, 425, 13, 9079, 288, 5375, 613, 18, 1636, 2932, 2925, 358, 1746, 1459, 3113, 425, 1769, 9079, 289, 5411, 289, 5411, 613, 18, 1376, 2932, 4756, 2258, 731, 919, 364, 1459, 8863, 540, 289, 1377, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1640, 28461, 12, 15155, 268, 16, 2445, 1004, 13, 282, 288, 1377, 514, 10338, 273, 1004, 18, 588, 18030, 5621, 1377, 309, 261, 3184, 548, 422, 446, 13, 1377, 288, 540, 613, 18, 8935, 2932, 2157, 612, 353, 446, 364, 1004, 315, 397, 1004, 1769, 1377, 289, 1377, 469, 1377, 288, 540, 309, 261, 88, 1276, 2445, 26303, 503, 13, 540, 288, 5411, 368, 1220, 353, 7791, 5411, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 2625, 315, 397, 1004, 397, 315, 711, 17853, 8863, 289, 540, 289, 540, 469, 540, 288, 5411, 613, 18, 1376, 2932, 29559, 1004, 1459, 16, 29820, 731, 2097, 919, 315, 397, 10338, 16, 268, 1769, 2 ]
print("[" + toC.getString() + "]");
print("[" + toC.getString() + "]");
private void printLocalArrayDecl(JNewArrayExpression expr) { JExpression[] dims = expr.getDims(); for (int i = 0 ; i < dims.length; i++) { FlatIRToCluster toC = new FlatIRToCluster(); dims[i].accept(toC); print("[" + toC.getString() + "]"); } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/6c5983f4c048ed0e3b722606d7333deba6790d3b/FlatIRToCluster.java/clean/streams/src/at/dms/kjc/cluster/FlatIRToCluster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 2042, 1076, 3456, 12, 46, 1908, 1076, 2300, 3065, 13, 377, 288, 202, 46, 2300, 8526, 9914, 273, 3065, 18, 588, 25006, 5621, 202, 1884, 261, 474, 277, 273, 374, 274, 277, 411, 9914, 18, 2469, 31, 277, 27245, 288, 202, 565, 20396, 7937, 774, 3629, 358, 39, 273, 394, 20396, 7937, 774, 3629, 5621, 202, 565, 9914, 63, 77, 8009, 9436, 12, 869, 39, 1769, 202, 565, 1172, 2932, 9614, 397, 358, 39, 18, 588, 780, 1435, 397, 9870, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1172, 2042, 1076, 3456, 12, 46, 1908, 1076, 2300, 3065, 13, 377, 288, 202, 46, 2300, 8526, 9914, 273, 3065, 18, 588, 25006, 5621, 202, 1884, 261, 474, 277, 273, 374, 274, 277, 411, 9914, 18, 2469, 31, 277, 27245, 288, 202, 565, 20396, 7937, 774, 3629, 358, 39, 273, 394, 20396, 7937, 774, 3629, 5621, 202, 565, 9914, 63, 77, 8009, 9436, 12, 869, 39, 1769, 202, 565, 1172, 2932, 9614, 397, 358, 39, 18, 588, 780, 1435, 397, 9870, 1769, 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 ]
while(!(line=br.readLine()).equals(BLK)); while((line=br.readLine()).equals(BLK));
while(!BLK.equals(line=readLineFromInputStream(input))); while(BLK.equals(line=readLineFromInputStream(input)));
public static String readAll(BufferedReader br, StringBuffer xml, StringBuffer acl, StringBuffer type) throws IOException { //For the Control of sintaxis String host = null; //boolean foundMime = false; boolean foundBoundary = false; boolean findContentType = false; String boundary = null; //String line = null; String typeConnection = null; //Reset the Buffers // NL: Not supported on PJava /* if(xml.length()>0) xml.delete(0,xml.length()); if(acl.length()>0) acl.delete(0,acl.length()); if(connection.length()>0) connection.delete(0,connection.length()); */ //try { String line; while(BLK.equals(line=br.readLine())); // skip empty lines if(line==null) throw new IOException(); StringTokenizer st = new StringTokenizer(line); try { if(!(st.nextToken()).equalsIgnoreCase(POST) ) { logger.log(Logger.WARNING,"Malformed POST"); type.append(CLOSE); return ERROR; } st.nextToken(); // Consumme a token if(!(st.nextToken().toUpperCase().startsWith("HTTP/1."))) { logger.log(Logger.WARNING,"Malformed HTTP/1.1 "); type.append(CLOSE); return ERROR; } } catch(NoSuchElementException nsee) { logger.log(Logger.WARNING,"Malformed start line !: "+line); type.append(CLOSE); return ERROR; } //Process rest of header while (!(line=br.readLine()).equals(BLK)) { if (line.startsWith(HOST)) { host = processLine(line); //De momento solo controlamos que este } /* // NL do not test MIME version for interoperability with other MTP if (line.toLowerCase().startsWith(MIME.toLowerCase())) { foundMime = true; } */ if (line.toLowerCase().startsWith(CONN.toLowerCase())) { typeConnection= processLine(line); } if (line.toLowerCase().startsWith(CONTENT.toLowerCase())) { //Process the left part if (!(processLine(line).toLowerCase().startsWith(MM))) { logger.log(Logger.WARNING,"MULTIPART/MIXED"); type.append(CLOSE); return ERROR; } //Process the right part int pos = line.indexOf(BND); if (pos == -1) { // Boundary on next line line=br.readLine(); if ((pos = line.indexOf(BND)) == -1) { // Bounday not found logger.log(Logger.WARNING,"MIME boundary not found"); type.append(CLOSE); return ERROR; } } line = line.substring(pos+BND.length()); pos = line.indexOf("\"")+1; boundary = DL+line.substring(pos,line.indexOf("\"",pos)); foundBoundary = true; } }//end while //if( !foundBoundary || !foundMime) { if(!foundBoundary) { logger.log(Logger.WARNING,"Mime header error"); type.append(CLOSE); return ERROR; } if (typeConnection == null) { type.append(KA); //Default Connection } else { type.append(typeConnection); //Connection of request } //jump to first "--Boundary" while((line=br.readLine()).equals(BLK)); // skip empty lines do { if (line.startsWith(boundary)) { break; } } while(!(line=br.readLine()).equals(BLK)); while((line=br.readLine()).equals(BLK)); // skip empty lines // Skip content-type do { if(line.toLowerCase().startsWith(CONTENT.toLowerCase())) { break; } } while(!(line=br.readLine()).equals(BLK)); //Capture the XML part //Capture the message envelope while(!(line=br.readLine()).equals(boundary)) { if (! line.equals(BLK)) { xml.append(line); } } //Capture the ACL part //JMP to ACLMessage while((line=br.readLine()).equals(BLK)); // skip empty lines // Skip content-type do { if(line.toLowerCase().startsWith(CONTENT.toLowerCase())) { break; } } while(!(line=br.readLine()).equals(BLK)); //Create last boundary for capture the ACLMessage boundary = boundary+DL; //Capture the acl part. // skip blank lines while((line=br.readLine()).equals(BLK)); // handle first line separately if (!line.equals(boundary)) { acl.append(line); } // then handle following lines and append a separator while(!(line=br.readLine()).equals(boundary)) { if (! line.equals(BLK)) { acl.append(" ").append(line); } } return OK; /* } catch(NullPointerException npe) { // readLine returns null <--> EOF System.out.println("null pointer in readAll"); //npe.printStackTrace(); type.append(CLOSE); return ERROR; } */ }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/4596fdc09bf47df374e15fc0f9ef4b9837aa589d/HTTPIO.java/buggy/src/jade/mtp/http/HTTPIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 31267, 12, 17947, 2514, 5186, 16, 6674, 2025, 16, 6674, 7895, 16, 6674, 618, 13, 377, 1216, 1860, 288, 3639, 368, 1290, 326, 8888, 434, 272, 474, 4890, 1377, 514, 225, 1479, 273, 446, 31, 565, 368, 6494, 1392, 13320, 4202, 273, 629, 31, 565, 1250, 1392, 11941, 282, 273, 629, 31, 565, 1250, 1104, 8046, 273, 629, 31, 565, 514, 225, 7679, 273, 446, 31, 565, 368, 780, 225, 980, 273, 446, 31, 565, 514, 225, 618, 1952, 273, 446, 31, 3639, 368, 7013, 326, 605, 3809, 414, 565, 368, 18520, 30, 2288, 3260, 603, 453, 5852, 565, 1748, 1377, 309, 12, 2902, 18, 2469, 1435, 34, 20, 13, 1377, 2025, 18, 3733, 12, 20, 16, 2902, 18, 2469, 10663, 1377, 309, 12, 10150, 18, 2469, 1435, 34, 20, 13, 1377, 7895, 18, 3733, 12, 20, 16, 10150, 18, 2469, 10663, 202, 540, 309, 12, 4071, 18, 2469, 1435, 34, 20, 13, 1377, 1459, 18, 3733, 12, 20, 16, 4071, 18, 2469, 10663, 565, 1195, 565, 368, 698, 288, 565, 514, 980, 31, 565, 1323, 12, 14618, 47, 18, 14963, 12, 1369, 33, 2848, 18, 896, 1670, 1435, 10019, 368, 2488, 1008, 2362, 3639, 309, 12, 1369, 631, 2011, 13, 604, 394, 1860, 5621, 6647, 16370, 384, 273, 394, 16370, 12, 1369, 1769, 565, 775, 288, 1377, 309, 12, 5, 12, 334, 18, 4285, 1345, 1435, 2934, 14963, 5556, 12, 3798, 13, 262, 288, 540, 1194, 18, 1330, 12, 3328, 18, 9511, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 31267, 12, 17947, 2514, 5186, 16, 6674, 2025, 16, 6674, 7895, 16, 6674, 618, 13, 377, 1216, 1860, 288, 3639, 368, 1290, 326, 8888, 434, 272, 474, 4890, 1377, 514, 225, 1479, 273, 446, 31, 565, 368, 6494, 1392, 13320, 4202, 273, 629, 31, 565, 1250, 1392, 11941, 282, 273, 629, 31, 565, 1250, 1104, 8046, 273, 629, 31, 565, 514, 225, 7679, 273, 446, 31, 565, 368, 780, 225, 980, 273, 446, 31, 565, 514, 225, 618, 1952, 273, 446, 31, 3639, 368, 7013, 326, 605, 3809, 414, 565, 368, 18520, 30, 2288, 3260, 603, 453, 5852, 565, 1748, 1377, 309, 12, 2902, 18, 2469, 1435, 34, 20, 13, 1377, 2025, 18, 3733, 12, 2 ]
Rectangle2D nodeBounds = node.getBounds(gnrc); Rectangle2D patternBounds = patternTile; tileX = patternBounds.getX(); tileY = patternBounds.getY(); tileWidth = patternBounds.getWidth(); tileHeight = patternBounds.getHeight(); AffineTransform adjustTxf = new AffineTransform(); adjustTxf.translate(patternBounds.getX(), patternBounds.getY()); adjustTxf.concatenate(nodeTxf); GraphicsNodeRable gnr = new GraphicsNodeRable8Bit(node, gnrc); AffineRable atr = new AffineRable8Bit(gnr, adjustTxf); Shape aoiShape = (Shape)hints.get(RenderingHintsKeyExt.KEY_AREA_OF_INTEREST); Rectangle2D tiledRegion = (aoiShape == null? null : aoiShape.getBounds2D()); Rectangle2D padBounds = (Rectangle2D)patternBounds.clone(); if(overflow){ Rectangle2D adjustedNodeBounds = adjustTxf.createTransformedShape(nodeBounds).getBounds2D(); padBounds.add(adjustedNodeBounds); } PadRable pad = new PadRable8Bit(atr, padBounds, PadMode.ZERO_PAD); TileRable tileRable = new TileRable8Bit(pad, tiledRegion, patternBounds, overflow); RenderContext rc = new RenderContext(usr2dev, tiledRegion, hints);
RenderContext rc = new RenderContext(usr2dev, userBounds, hints);
public PatternPaintContext(ColorModel destCM, AffineTransform usr2dev, RenderingHints hints, GraphicsNode node, GraphicsNodeRenderContext gnrc, AffineTransform nodeTxf, Rectangle2D patternTile, boolean overflow){ if(usr2dev == null){ throw new IllegalArgumentException(); } if(hints == null){ hints = new RenderingHints(null); } if(node == null){ throw new IllegalArgumentException(); } if(patternTile == null){ throw new IllegalArgumentException(); } if(nodeTxf == null){ nodeTxf = new AffineTransform(); } Rectangle2D nodeBounds = node.getBounds(gnrc); Rectangle2D patternBounds = patternTile; tileX = patternBounds.getX(); tileY = patternBounds.getY(); tileWidth = patternBounds.getWidth(); tileHeight = patternBounds.getHeight(); // // adjustTxf applies the nodeTransform first, then // the translation to move the node rendering into // the pattern region space // AffineTransform adjustTxf = new AffineTransform(); adjustTxf.translate(patternBounds.getX(), patternBounds.getY()); adjustTxf.concatenate(nodeTxf); GraphicsNodeRable gnr = new GraphicsNodeRable8Bit(node, gnrc); AffineRable atr = new AffineRable8Bit(gnr, adjustTxf); Shape aoiShape = (Shape)hints.get(RenderingHintsKeyExt.KEY_AREA_OF_INTEREST); Rectangle2D tiledRegion = (aoiShape == null? null : aoiShape.getBounds2D()); Rectangle2D padBounds = (Rectangle2D)patternBounds.clone(); if(overflow){ // // When there is overflow, make sure we take the // full node bounds into account. // Rectangle2D adjustedNodeBounds = adjustTxf.createTransformedShape(nodeBounds).getBounds2D(); //System.out.println("adjustedBounds : " + adjustedNodeBounds); padBounds.add(adjustedNodeBounds); } PadRable pad = new PadRable8Bit(atr, padBounds, PadMode.ZERO_PAD); TileRable tileRable = new TileRable8Bit(pad, tiledRegion, patternBounds, overflow); RenderContext rc = new RenderContext(usr2dev, tiledRegion, hints); tiled = tileRable.createRendering(rc); //System.out.println("Created rendering"); if(tiled == null){ //System.out.println("Tile was null"); WritableRaster wr = rasterCM.createCompatibleWritableRaster(32, 32); tiled = new BufferedImage(rasterCM, wr, false, null); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/130e369b703b6025342ecf9e73e1eb5ddf948e80/PatternPaintContext.java/clean/sources/org/apache/batik/gvt/PatternPaintContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 12699, 1042, 12, 2957, 1488, 1570, 9611, 16, 1171, 9079, 23906, 558, 4059, 16575, 22, 5206, 16, 1171, 9079, 22391, 13442, 16, 1171, 9079, 16830, 907, 756, 16, 1171, 9079, 16830, 907, 3420, 1042, 22908, 1310, 16, 1171, 9079, 23906, 558, 4059, 756, 4188, 74, 16, 1171, 9079, 13264, 22, 40, 1936, 9337, 16, 1171, 9079, 1250, 9391, 15329, 3639, 309, 12, 13640, 22, 5206, 422, 446, 15329, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 12, 24598, 422, 446, 15329, 5411, 13442, 273, 394, 22391, 12, 2011, 1769, 3639, 289, 3639, 309, 12, 2159, 422, 446, 15329, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 12, 4951, 9337, 422, 446, 15329, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 12, 2159, 4188, 74, 422, 446, 15329, 5411, 756, 4188, 74, 273, 394, 23906, 558, 4059, 5621, 3639, 289, 3639, 13264, 22, 40, 756, 5694, 273, 756, 18, 588, 5694, 12, 1600, 1310, 1769, 3639, 13264, 22, 40, 1936, 5694, 273, 1936, 9337, 31, 3639, 4769, 60, 273, 1936, 5694, 18, 588, 60, 5621, 3639, 4769, 61, 273, 1936, 5694, 18, 588, 61, 5621, 3639, 4769, 2384, 273, 1936, 5694, 18, 588, 2384, 5621, 3639, 4769, 2686, 273, 1936, 5694, 18, 588, 2686, 5621, 3639, 368, 3639, 368, 5765, 4188, 74, 10294, 326, 756, 4059, 1122, 16, 1508, 3639, 368, 326, 4794, 358, 3635, 326, 756, 9782, 1368, 3639, 368, 326, 1936, 3020, 3476, 3639, 368, 3639, 23906, 558, 4059, 5765, 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, 6830, 12699, 1042, 12, 2957, 1488, 1570, 9611, 16, 1171, 9079, 23906, 558, 4059, 16575, 22, 5206, 16, 1171, 9079, 22391, 13442, 16, 1171, 9079, 16830, 907, 756, 16, 1171, 9079, 16830, 907, 3420, 1042, 22908, 1310, 16, 1171, 9079, 23906, 558, 4059, 756, 4188, 74, 16, 1171, 9079, 13264, 22, 40, 1936, 9337, 16, 1171, 9079, 1250, 9391, 15329, 3639, 309, 12, 13640, 22, 5206, 422, 446, 15329, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 12, 24598, 422, 446, 15329, 5411, 13442, 273, 394, 22391, 12, 2011, 1769, 3639, 289, 3639, 309, 12, 2159, 422, 446, 15329, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 12, 4951, 9337, 422, 446, 15329, 5411, 604, 2 ]
int count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF);
int count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF);
private static void dumpICode(InterpreterData theData) { if (printICode) { try { int iCodeLength = theData.itsICodeTop; byte iCode[] = theData.itsICode; out = new PrintWriter(new FileOutputStream("icode.txt", true)); out.println("ICode dump, for " + theData.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + theData.itsMaxStack); for (int pc = 0; pc < iCodeLength; ) { out.print("[" + pc + "] "); switch ((int)(iCode[pc] & 0xff)) { case TokenStream.SCOPE : case TokenStream.GETPROTO : case TokenStream.GETPARENT : case TokenStream.GETSCOPEPARENT : case TokenStream.SETPROTO : case TokenStream.SETPARENT : case TokenStream.DELPROP : case TokenStream.TYPEOF : case TokenStream.NEWSCOPE : case TokenStream.ENTERWITH : case TokenStream.LEAVEWITH : case TokenStream.ENDTRY : case TokenStream.THROW : case TokenStream.JTHROW : case TokenStream.GETTHIS : case TokenStream.SETELEM : case TokenStream.GETELEM : case TokenStream.SETPROP : case TokenStream.GETPROP : case TokenStream.PROPINC : case TokenStream.PROPDEC : case TokenStream.ELEMINC : case TokenStream.ELEMDEC : case TokenStream.BITNOT : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.NEG : case TokenStream.POS : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : case TokenStream.ADD : case TokenStream.POPV : case TokenStream.POP : case TokenStream.DUP : case TokenStream.LT : case TokenStream.GT : case TokenStream.LE : case TokenStream.GE : case TokenStream.IN : case TokenStream.INSTANCEOF : case TokenStream.EQ : case TokenStream.NE : case TokenStream.SHEQ : case TokenStream.SHNE : case TokenStream.ZERO : case TokenStream.ONE : case TokenStream.NULL : case TokenStream.THIS : case TokenStream.FALSE : case TokenStream.TRUE : case TokenStream.UNDEFINED : case TokenStream.SOURCEFILE : out.println(TokenStream.tokenToName(iCode[pc] & 0xff)); break; case TokenStream.GOSUB : case TokenStream.RETURN : case TokenStream.GOTO : case TokenStream.IFEQ : case TokenStream.IFNE : { int newPC = getTarget(iCode, pc + 1); out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " " + newPC); pc += 2; } break; case TokenStream.TRY : { int newPC1 = getTarget(iCode, pc + 1); int newPC2 = getTarget(iCode, pc + 3); out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " " + newPC1 + " " + newPC2); pc += 4; } break; case TokenStream.RETSUB : case TokenStream.ENUMINIT : case TokenStream.ENUMNEXT : case TokenStream.VARINC : case TokenStream.VARDEC : case TokenStream.GETVAR : case TokenStream.SETVAR : case TokenStream.NEWTEMP : case TokenStream.USETEMP : { int slot = (iCode[pc + 1] & 0xFF); out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " " + slot); pc++; } break; case TokenStream.CALLSPECIAL : { int line = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); String name = getString(theData.itsStringTable, iCode, pc + 3); int count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " " + count + " " + line + " " + name); pc += 6; } break; case TokenStream.OBJECT : case TokenStream.CLOSURE : case TokenStream.NEW : case TokenStream.CALL : { int count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " " + count); pc += 2; } break; case TokenStream.NUMBER : out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " " + getNumber(theData.itsNumberTable, iCode, pc + 1)); pc += 2; break; case TokenStream.TYPEOFNAME : case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.SETNAME : case TokenStream.NAME : case TokenStream.NAMEINC : case TokenStream.NAMEDEC : case TokenStream.STRING : out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " \"" + getString(theData.itsStringTable, iCode, pc + 1) + "\""); pc += 2; break; case TokenStream.LINE : { int line = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); out.println( TokenStream.tokenToName(iCode[pc] & 0xff) + " : " + line); pc += 2; } break; default : out.close(); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } out.close(); } catch (IOException x) {} } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/a2be2fadf4efc33207a5521fe260b2f18111ea2a/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 326, 751, 13, 288, 3639, 309, 261, 1188, 45, 1085, 13, 288, 5411, 775, 288, 7734, 509, 277, 1085, 1782, 273, 326, 751, 18, 1282, 45, 1085, 3401, 31, 7734, 1160, 277, 1085, 8526, 273, 326, 751, 18, 1282, 45, 1085, 31, 27573, 596, 273, 394, 14071, 12, 2704, 12942, 2932, 3487, 18, 5830, 3113, 638, 10019, 7734, 596, 18, 8222, 2932, 45, 1085, 4657, 16, 364, 315, 397, 326, 751, 18, 1282, 461, 397, 3104, 769, 273, 315, 397, 277, 1085, 1782, 1769, 7734, 596, 18, 8222, 2932, 2747, 2624, 273, 315, 397, 326, 751, 18, 1282, 2747, 2624, 1769, 27573, 364, 261, 474, 6125, 273, 374, 31, 6125, 411, 277, 1085, 1782, 31, 262, 288, 10792, 596, 18, 1188, 2932, 9614, 397, 6125, 397, 9850, 315, 1769, 10792, 1620, 14015, 474, 21433, 77, 1085, 63, 2436, 65, 473, 374, 5297, 3719, 288, 13491, 648, 3155, 1228, 18, 19444, 294, 13491, 648, 3155, 1228, 18, 3264, 25455, 294, 13491, 648, 3155, 1228, 18, 3264, 14943, 294, 13491, 648, 3155, 1228, 18, 3264, 19444, 14943, 294, 13491, 648, 3155, 1228, 18, 4043, 25455, 294, 13491, 648, 3155, 1228, 18, 4043, 14943, 294, 13491, 648, 3155, 1228, 18, 24733, 15811, 294, 13491, 648, 3155, 1228, 18, 2399, 3932, 294, 13491, 648, 3155, 1228, 18, 12917, 19444, 294, 13491, 648, 3155, 1228, 18, 12278, 9147, 294, 13491, 648, 3155, 1228, 18, 900, 26714, 9147, 294, 13491, 648, 3155, 1228, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 326, 751, 13, 288, 3639, 309, 261, 1188, 45, 1085, 13, 288, 5411, 775, 288, 7734, 509, 277, 1085, 1782, 273, 326, 751, 18, 1282, 45, 1085, 3401, 31, 7734, 1160, 277, 1085, 8526, 273, 326, 751, 18, 1282, 45, 1085, 31, 27573, 596, 273, 394, 14071, 12, 2704, 12942, 2932, 3487, 18, 5830, 3113, 638, 10019, 7734, 596, 18, 8222, 2932, 45, 1085, 4657, 16, 364, 315, 397, 326, 751, 18, 1282, 461, 397, 3104, 769, 273, 315, 397, 277, 1085, 1782, 1769, 7734, 596, 18, 8222, 2932, 2747, 2624, 273, 315, 397, 326, 751, 18, 1282, 2747, 2624, 1769, 27573, 364, 261, 474, 6125, 273, 374, 31, 2 ]
public static void main(String[] args) { try { FileInputStream fis = new FileInputStream(args[0]); EMFInputStream emf = new EMFInputStream(fis); long start = System.currentTimeMillis(); EMFHeader header = emf.readHeader(); System.out.println(header); Tag tag = emf.readTag(); while (tag != null) { System.out.println(tag); tag = emf.readTag(); } System.out.println("Parsed file in: "+(System.currentTimeMillis()-start)+" ms."); } catch (IOException e) { e.printStackTrace(); } }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/EMFDump.java/clean/freehep-graphicsio-emf/src/test/java/org/freehep/graphicsio/emf/test/EMFDump.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 775, 288, 5411, 11907, 15324, 273, 394, 11907, 12, 1968, 63, 20, 19226, 5411, 7141, 42, 4348, 801, 74, 273, 394, 7141, 42, 4348, 12, 74, 291, 1769, 5411, 1525, 787, 273, 2332, 18, 2972, 28512, 5621, 5411, 7141, 42, 1864, 1446, 273, 801, 74, 18, 896, 1864, 5621, 5411, 2332, 18, 659, 18, 8222, 12, 3374, 1769, 13491, 4034, 1047, 273, 801, 74, 18, 896, 1805, 5621, 5411, 1323, 261, 2692, 480, 446, 13, 288, 7734, 2332, 18, 659, 18, 8222, 12, 2692, 1769, 7734, 1047, 273, 801, 74, 18, 896, 1805, 5621, 5411, 289, 5411, 2332, 18, 659, 18, 8222, 2932, 11257, 585, 316, 30, 13773, 12, 3163, 18, 2972, 28512, 1435, 17, 1937, 13, 9078, 4086, 1199, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 425, 18, 1188, 6332, 5621, 3639, 289, 377, 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, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 775, 288, 5411, 11907, 15324, 273, 394, 11907, 12, 1968, 63, 20, 19226, 5411, 7141, 42, 4348, 801, 74, 273, 394, 7141, 42, 4348, 12, 74, 291, 1769, 5411, 1525, 787, 273, 2332, 18, 2972, 28512, 5621, 5411, 7141, 42, 1864, 1446, 273, 801, 74, 18, 896, 1864, 5621, 5411, 2332, 18, 659, 18, 8222, 12, 3374, 1769, 13491, 4034, 1047, 273, 801, 74, 18, 896, 1805, 5621, 5411, 1323, 261, 2692, 480, 446, 13, 288, 7734, 2332, 18, 659, 18, 8222, 12, 2692, 1769, 7734, 1047, 273, 801, 74, 18, 896, 1805, 5621, 5411, 289, 5411, 2332, 18, 659, 18, 8222, 2932, 11257, 585, 316, 30, 2 ]
return CmdLineNotify.Status.unknown;
return CmdLineNotifyStatus.unknown;
private int getStatus(char statusChar) { if (statusChar == ' ') return CmdLineNotify.Status.unchanged; else if (statusChar == 'C') return CmdLineNotify.Status.conflicted; else if (statusChar == 'G') return CmdLineNotify.Status.merged; else if (statusChar == 'U') return CmdLineNotify.Status.changed; else return CmdLineNotify.Status.unknown; }
12019 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12019/56c5116b48685a639c0805f45de56cae28917361/SvnActionRE.java/clean/src/main/org/tigris/subversion/svnclientadapter/commandline/parser/SvnActionRE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 5870, 12, 3001, 1267, 2156, 13, 288, 202, 202, 430, 261, 2327, 2156, 422, 296, 8624, 1082, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 4384, 2330, 31, 202, 202, 12107, 202, 565, 309, 261, 2327, 2156, 422, 296, 39, 6134, 202, 377, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 20340, 329, 31, 202, 565, 469, 202, 202, 430, 261, 2327, 2156, 422, 296, 43, 6134, 1082, 565, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 15459, 31, 1082, 377, 202, 565, 469, 202, 565, 309, 261, 2327, 2156, 422, 296, 57, 6134, 1082, 565, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 6703, 31, 202, 565, 469, 202, 377, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 8172, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 5870, 12, 3001, 1267, 2156, 13, 288, 202, 202, 430, 261, 2327, 2156, 422, 296, 8624, 1082, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 4384, 2330, 31, 202, 202, 12107, 202, 565, 309, 261, 2327, 2156, 422, 296, 39, 6134, 202, 377, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 20340, 329, 31, 202, 565, 469, 202, 202, 430, 261, 2327, 2156, 422, 296, 43, 6134, 1082, 565, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 15459, 31, 1082, 377, 202, 565, 469, 202, 565, 309, 261, 2327, 2156, 422, 296, 57, 6134, 1082, 565, 202, 2463, 13328, 1670, 9168, 18, 1482, 18, 6703, 31, 202, 565, 469, 202, 377, 202, 2463, 13328, 1670, 2 ]
public boolean completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { long now = System.currentTimeMillis(); arkFetcher.stop(); synchronized(this) { completedHandshake = true; handshakeCount = 0; bogusNoderef = false; try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); // Treat as invalid version } if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(lastGoodVersion)); } catch (NumberFormatException e) { // ignore } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+lastGoodVersion); verifiedIncompatibleNewerVersion = true; isConnected = false; } else { verifiedIncompatibleNewerVersion = false; } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); verifiedIncompatibleOlderVersion = true; isConnected = false; } else { verifiedIncompatibleOlderVersion = false; } setPeerNodeStatus(now); KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { connectedTime = System.currentTimeMillis(); Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); isConnected = false; // Will be reset below setPeerNodeStatus(now); if(previousTracker != null) { KeyTracker old = previousTracker; previousTracker = null; old.completelyDeprecated(newTracker); } previousTracker = null; if(currentTracker != null) { KeyTracker old = currentTracker; currentTracker = null; old.completelyDeprecated(newTracker); } this.bootID = thisBootID; node.lm.lostOrRestartedNode(this); } // else it's a rekey if(unverified) { unverifiedTracker = newTracker; ctx = null; Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); neverConnected = false; peerAddedTime = 0; // don't store anymore setPeerNodeStatus(now); ctx = null; } if(!isConnected()) node.peers.disconnected(this); Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" myName: "+myName); try { receivedPacket(unverified); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; // i suppose } if(isConnected) node.peers.addConnectedPeer(this); sentInitialMessages = false; return true; } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/f18d01b1fb86ddf4053d90e1f337f99ccd2ec255/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 5951, 14545, 12, 5748, 333, 15817, 734, 16, 1160, 8526, 501, 16, 509, 1384, 16, 509, 769, 16, 3914, 13896, 2446, 13896, 16, 1160, 8526, 2446, 653, 16, 10669, 30934, 16, 1250, 640, 19685, 13, 288, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 1313, 16855, 18, 5681, 5621, 202, 22043, 12, 2211, 13, 288, 202, 202, 13615, 14545, 273, 638, 31, 202, 202, 2349, 7478, 1380, 273, 374, 31, 202, 70, 28774, 50, 369, 822, 74, 273, 629, 31, 202, 698, 288, 202, 202, 759, 5783, 16, 326, 394, 14003, 822, 74, 202, 202, 2567, 1908, 50, 369, 822, 74, 12, 892, 16, 1384, 16, 769, 1769, 202, 97, 1044, 261, 4931, 13047, 425, 21, 13, 288, 202, 202, 70, 28774, 50, 369, 822, 74, 273, 638, 31, 202, 202, 3328, 18, 1636, 12, 2211, 16, 315, 2925, 358, 1109, 394, 14003, 822, 74, 364, 13773, 2211, 15, 6877, 13773, 73, 21, 16, 425, 21, 1769, 202, 202, 759, 26564, 487, 2057, 1177, 202, 97, 202, 430, 12, 9845, 1941, 1444, 10756, 288, 202, 202, 698, 288, 1082, 202, 2159, 18, 542, 1908, 395, 6813, 3024, 18195, 1444, 12, 1444, 18, 588, 686, 3682, 3345, 3116, 1854, 12, 2722, 18195, 1444, 10019, 202, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 1082, 202, 759, 2305, 202, 202, 97, 202, 202, 3328, 18, 6130, 12, 2211, 16, 315, 1248, 14244, 358, 13773, 2211, 9078, 300, 4219, 2057, 1177, 13773, 1444, 18, 588, 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, 1250, 5951, 14545, 12, 5748, 333, 15817, 734, 16, 1160, 8526, 501, 16, 509, 1384, 16, 509, 769, 16, 3914, 13896, 2446, 13896, 16, 1160, 8526, 2446, 653, 16, 10669, 30934, 16, 1250, 640, 19685, 13, 288, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 1313, 16855, 18, 5681, 5621, 202, 22043, 12, 2211, 13, 288, 202, 202, 13615, 14545, 273, 638, 31, 202, 202, 2349, 7478, 1380, 273, 374, 31, 202, 70, 28774, 50, 369, 822, 74, 273, 629, 31, 202, 698, 288, 202, 202, 759, 5783, 16, 326, 394, 14003, 822, 74, 202, 202, 2567, 1908, 50, 369, 822, 74, 12, 892, 16, 1384, 16, 769, 1769, 202, 97, 1044, 261, 4931, 13047, 425, 2 ]
throw new DataSizeException("String attribute " + attribute.getName() + " too large");
throw new DataSizeException("String attribute " + attribute.getQName() + " too large");
protected void validateAttribute(Attribute attribute, Object value) { if (value == null) return; if (attribute instanceof BinaryAttribute) { byte[] v = (byte[]) value; if (v.length > MAX_BINARY_ATTR_SIZE) throw new DataSizeException("Binary attribute " + attribute.getName() + " too large"); } if (attribute instanceof StringAttribute) { String v = (String) value; if (v.length() > MAX_STRING_ATTR_SIZE) throw new DataSizeException("String attribute " + attribute.getName() + " too large"); } }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/9aa23e64f4789c81954f3edca5bc3549ccb46ffe/Item.java/buggy/src/main/java/org/osaf/cosmo/model/Item.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1954, 1499, 12, 1499, 1566, 16, 19694, 1033, 460, 13, 288, 3639, 309, 261, 1132, 422, 446, 13, 5411, 327, 31, 3639, 309, 261, 4589, 1276, 7896, 1499, 13, 288, 5411, 1160, 8526, 331, 273, 261, 7229, 63, 5717, 460, 31, 5411, 309, 261, 90, 18, 2469, 405, 4552, 67, 16813, 67, 12043, 67, 4574, 13, 7734, 604, 394, 1910, 1225, 503, 2932, 5905, 1566, 315, 397, 1566, 18, 17994, 1435, 397, 315, 4885, 7876, 8863, 3639, 289, 3639, 309, 261, 4589, 1276, 514, 1499, 13, 288, 5411, 514, 331, 273, 261, 780, 13, 460, 31, 5411, 309, 261, 90, 18, 2469, 1435, 405, 4552, 67, 5804, 67, 12043, 67, 4574, 13, 7734, 604, 394, 1910, 1225, 503, 2932, 780, 1566, 315, 397, 1566, 18, 588, 13688, 1435, 397, 315, 4885, 7876, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1954, 1499, 12, 1499, 1566, 16, 19694, 1033, 460, 13, 288, 3639, 309, 261, 1132, 422, 446, 13, 5411, 327, 31, 3639, 309, 261, 4589, 1276, 7896, 1499, 13, 288, 5411, 1160, 8526, 331, 273, 261, 7229, 63, 5717, 460, 31, 5411, 309, 261, 90, 18, 2469, 405, 4552, 67, 16813, 67, 12043, 67, 4574, 13, 7734, 604, 394, 1910, 1225, 503, 2932, 5905, 1566, 315, 397, 1566, 18, 17994, 1435, 397, 315, 4885, 7876, 8863, 3639, 289, 3639, 309, 261, 4589, 1276, 514, 1499, 13, 288, 5411, 514, 331, 273, 261, 780, 13, 460, 31, 5411, 309, 261, 90, 18, 2469, 1435, 405, 4552, 67, 5804, 67, 12043, 67, 4574, 13, 7734, 604, 394, 1910, 2 ]
public ChatWindow(MainFrame mainFrame) { this.mainFrame = mainFrame; this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); this.setSize(550, 450); this.setIconImage(ImageLoader.getImage(ImageLoader.SIP_LOGO)); menusPanel = new MenusPanel(this); this.setSizeAndLocation(); this.init(); ActionMap amap = this.getRootPane().getActionMap(); amap.put("close", new CloseAction()); amap.put("changeTabForword", new ForwordTabAction()); amap.put("changeTabBackword", new BackwordTabAction()); amap.put("sendMessage", new SendMessageAction()); amap.put("openSmilies", new OpenSmileyAction()); amap.put("changeProtocol", new ChangeProtocolAction()); amap.put("copy", new CopyAction()); amap.put("paste", new PasteAction()); amap.put("openHistory", new OpenHistoryAction()); InputMap imap = this.getRootPane().getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "close"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.ALT_DOWN_MASK), "changeTabForword"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.ALT_DOWN_MASK), "changeTabBackword"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_INSERT, KeyEvent.CTRL_DOWN_MASK), "copy"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_INSERT, KeyEvent.SHIFT_DOWN_MASK), "paste"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_MASK), "copy"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_MASK), "paste"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, KeyEvent.CTRL_DOWN_MASK), "sendMessage"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_M, KeyEvent.CTRL_DOWN_MASK), "openSmilies"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_P, KeyEvent.CTRL_DOWN_MASK), "changeProtocol"); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_H, KeyEvent.CTRL_DOWN_MASK), "openHistory"); this.addWindowListener(new ChatWindowAdapter()); }
27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/b3a51d312fc7887736a173eb7b8e5292b081a15d/ChatWindow.java/clean/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16903, 3829, 12, 6376, 3219, 2774, 3219, 13, 288, 3639, 333, 18, 5254, 3219, 273, 2774, 3219, 31, 3639, 333, 18, 542, 1868, 4605, 2988, 12, 46, 3219, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 7734, 333, 18, 542, 1225, 12, 2539, 20, 16, 1059, 3361, 1769, 3639, 333, 18, 542, 5554, 2040, 12, 2040, 2886, 18, 588, 2040, 12, 2040, 2886, 18, 17739, 67, 4842, 51, 10019, 3639, 21374, 5537, 273, 394, 490, 11797, 5537, 12, 2211, 1769, 3639, 333, 18, 542, 1225, 1876, 2735, 5621, 7734, 333, 18, 2738, 5621, 7734, 4382, 863, 279, 1458, 273, 333, 18, 588, 2375, 8485, 7675, 588, 1803, 863, 5621, 7734, 279, 1458, 18, 458, 2932, 4412, 3113, 394, 3527, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 3427, 5661, 1290, 1095, 3113, 394, 2457, 1095, 5661, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 3427, 5661, 2711, 1095, 3113, 394, 4297, 1095, 5661, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 4661, 1079, 3113, 394, 28405, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 3190, 9552, 330, 606, 3113, 394, 3502, 9552, 398, 93, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 3427, 5752, 3113, 394, 7576, 5752, 1803, 10663, 7734, 279, 1458, 18, 458, 2932, 3530, 3113, 394, 5631, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 29795, 3113, 394, 453, 14725, 1803, 10663, 3639, 279, 1458, 18, 458, 2932, 3190, 5623, 3113, 394, 3502, 5623, 1803, 10663, 7734, 2741, 863, 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, 16903, 3829, 12, 6376, 3219, 2774, 3219, 13, 288, 3639, 333, 18, 5254, 3219, 273, 2774, 3219, 31, 3639, 333, 18, 542, 1868, 4605, 2988, 12, 46, 3219, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 7734, 333, 18, 542, 1225, 12, 2539, 20, 16, 1059, 3361, 1769, 3639, 333, 18, 542, 5554, 2040, 12, 2040, 2886, 18, 588, 2040, 12, 2040, 2886, 18, 17739, 67, 4842, 51, 10019, 3639, 21374, 5537, 273, 394, 490, 11797, 5537, 12, 2211, 1769, 3639, 333, 18, 542, 1225, 1876, 2735, 5621, 7734, 333, 18, 2738, 5621, 7734, 4382, 863, 279, 1458, 273, 333, 18, 588, 2375, 8485, 7675, 588, 1803, 863, 5621, 7734, 279, 1458, 18, 458, 2 ]
String server = "<unknown server>";
public static BugzillaSearchHit createHit(RegularExpression regularExpression, IProgressMonitor monitor, BufferedReader in, Match match, int id) throws IOException { String line; String severity = null; String priority = null; String platform = null; String owner = null; String state = null; String result = null; for (int i = 0; i < 6; i++) { do { if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } line = in.readLine(); if (line == null) break; line = line.trim(); } while (!regularExpression.matches(line, match)); switch (i) { case 0: severity = match.getCapturedText(1); break; case 1: priority = match.getCapturedText(1); break; case 2: platform = match.getCapturedText(1); break; case 3: owner = match.getCapturedText(1); break; case 4: state = match.getCapturedText(1); break; case 5: result = match.getCapturedText(1); break; } } // two more line = in.readLine(); line = in.readLine(); String description = "<activate to view description>"; if (line != null) description = line.substring(8); String query = ""; String server = "<unknown server>"; try { String recentQuery = BugzillaPlugin.getMostRecentQuery(); if (recentQuery != null) query = recentQuery; server = BugzillaPlugin.getDefault().getServerName(); } catch (Exception e) { // ignore, for testing } BugzillaSearchHit hit = new BugzillaSearchHit(id, description, severity, priority, platform, state, result, owner, query, server); return hit; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/832f772c9bfbe1db8eeb7662bd96232584598cee/BugzillaSearchEngine.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/search/BugzillaSearchEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 16907, 15990, 2979, 13616, 752, 13616, 12, 17974, 2300, 6736, 2300, 16, 467, 5491, 7187, 6438, 16, 10633, 316, 16, 4639, 845, 16, 509, 612, 13, 1216, 1860, 288, 202, 202, 780, 980, 31, 202, 202, 780, 11426, 273, 446, 31, 202, 202, 780, 4394, 273, 446, 31, 202, 202, 780, 4072, 273, 446, 31, 202, 202, 780, 3410, 273, 446, 31, 202, 202, 780, 919, 273, 446, 31, 202, 202, 780, 563, 273, 446, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1666, 31, 277, 27245, 288, 1082, 202, 2896, 288, 9506, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 6862, 202, 12849, 394, 4189, 23163, 503, 2932, 2979, 13927, 8863, 9506, 202, 97, 9506, 202, 1369, 273, 316, 18, 896, 1670, 5621, 9506, 202, 430, 261, 1369, 422, 446, 13, 898, 31, 9506, 202, 1369, 273, 980, 18, 5290, 5621, 1082, 202, 97, 1323, 16051, 16819, 2300, 18, 8436, 12, 1369, 16, 845, 10019, 9506, 202, 9610, 261, 77, 13, 288, 6862, 202, 3593, 374, 30, 9944, 202, 27341, 273, 845, 18, 588, 26294, 2862, 1528, 12, 21, 1769, 25083, 202, 8820, 31, 6862, 202, 3593, 404, 30, 25083, 202, 8457, 273, 845, 18, 588, 26294, 2862, 1528, 12, 21, 1769, 25083, 202, 8820, 31, 6862, 202, 3593, 576, 30, 25083, 202, 9898, 273, 845, 18, 588, 26294, 2862, 1528, 12, 21, 1769, 25083, 202, 8820, 31, 6862, 202, 3593, 890, 30, 25083, 202, 8443, 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, 225, 202, 482, 760, 16907, 15990, 2979, 13616, 752, 13616, 12, 17974, 2300, 6736, 2300, 16, 467, 5491, 7187, 6438, 16, 10633, 316, 16, 4639, 845, 16, 509, 612, 13, 1216, 1860, 288, 202, 202, 780, 980, 31, 202, 202, 780, 11426, 273, 446, 31, 202, 202, 780, 4394, 273, 446, 31, 202, 202, 780, 4072, 273, 446, 31, 202, 202, 780, 3410, 273, 446, 31, 202, 202, 780, 919, 273, 446, 31, 202, 202, 780, 563, 273, 446, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1666, 31, 277, 27245, 288, 1082, 202, 2896, 288, 9506, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 6862, 202, 12849, 394, 4189, 23163, 503, 2932, 2979, 2 ]
{ offset = 0; top = 0; dssLengthLocation = 0; correlationID = DssConstants.CORRELATION_ID_UNKNOWN; nextCorrelationID = 1; isDRDAProtocol = true; }
{ offset = 0; top = 0; dssLengthLocation = 0; correlationID = DssConstants.CORRELATION_ID_UNKNOWN; nextCorrelationID = 1; isDRDAProtocol = true; }
protected void clearBuffer() { offset = 0; top = 0; dssLengthLocation = 0; correlationID = DssConstants.CORRELATION_ID_UNKNOWN; nextCorrelationID = 1; isDRDAProtocol = true; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2424, 1892, 1435, 202, 95, 202, 202, 3348, 273, 374, 31, 202, 202, 3669, 273, 374, 31, 202, 202, 72, 1049, 1782, 2735, 273, 374, 31, 202, 202, 27325, 734, 273, 463, 1049, 2918, 18, 9428, 27822, 67, 734, 67, 14737, 31, 202, 202, 4285, 31685, 734, 273, 404, 31, 202, 202, 291, 6331, 9793, 5752, 273, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2424, 1892, 1435, 202, 95, 202, 202, 3348, 273, 374, 31, 202, 202, 3669, 273, 374, 31, 202, 202, 72, 1049, 1782, 2735, 273, 374, 31, 202, 202, 27325, 734, 273, 463, 1049, 2918, 18, 9428, 27822, 67, 734, 67, 14737, 31, 202, 202, 4285, 31685, 734, 273, 404, 31, 202, 202, 291, 6331, 9793, 5752, 273, 638, 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 ]
if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); }
if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); }
public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? RubyId id = getRuby().toId(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } RubyObject value = (RubyObject) getInstanceVariables().remove(id); if (value != null) { return value; } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 1206, 39, 1401, 12, 54, 10340, 921, 508, 13, 288, 368, 24668, 5498, 692, 202, 202, 54, 10340, 548, 612, 273, 4170, 10340, 7675, 869, 548, 12, 529, 1769, 202, 202, 430, 16051, 350, 18, 291, 797, 548, 10756, 288, 1082, 202, 12849, 394, 19817, 26771, 12, 588, 54, 10340, 9334, 315, 21530, 667, 2190, 508, 315, 397, 508, 1769, 202, 202, 97, 202, 202, 430, 16051, 291, 29048, 1435, 597, 4170, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 13, 288, 1082, 202, 12849, 394, 19817, 24918, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 382, 8869, 30, 848, 1404, 1206, 667, 2190, 8863, 202, 202, 97, 202, 202, 430, 261, 291, 42, 9808, 10756, 288, 1082, 202, 12849, 394, 19817, 42, 9808, 503, 12, 588, 54, 10340, 9334, 315, 1106, 19, 2978, 8863, 202, 202, 97, 202, 202, 54, 10340, 921, 460, 273, 261, 54, 10340, 921, 13, 3694, 6158, 7675, 4479, 12, 350, 1769, 202, 202, 430, 261, 1132, 480, 446, 13, 288, 1082, 202, 2463, 460, 31, 202, 202, 97, 202, 202, 430, 261, 291, 797, 1537, 8116, 12, 350, 3719, 288, 1082, 202, 12849, 394, 19817, 26771, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 12892, 1206, 315, 397, 612, 18, 869, 461, 1435, 397, 315, 364, 315, 397, 358, 461, 10663, 202, 202, 97, 202, 202, 12849, 394, 19817, 26771, 12, 1082, 202, 588, 54, 10340, 9334, 1082, 202, 6, 1106, 2190, 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, 19817, 921, 1206, 39, 1401, 12, 54, 10340, 921, 508, 13, 288, 368, 24668, 5498, 692, 202, 202, 54, 10340, 548, 612, 273, 4170, 10340, 7675, 869, 548, 12, 529, 1769, 202, 202, 430, 16051, 350, 18, 291, 797, 548, 10756, 288, 1082, 202, 12849, 394, 19817, 26771, 12, 588, 54, 10340, 9334, 315, 21530, 667, 2190, 508, 315, 397, 508, 1769, 202, 202, 97, 202, 202, 430, 16051, 291, 29048, 1435, 597, 4170, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 13, 288, 1082, 202, 12849, 394, 19817, 24918, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 382, 8869, 30, 848, 1404, 1206, 667, 2190, 8863, 202, 202, 97, 202, 202, 430, 261, 2 ]
if (rp != null) return rp.getCall(id); else
if (rp != null) { CallData cd = rp.getCall(id); return new CallData(this.getRefMapper().swapId(cd.id), cd.callState, cd.connections); }else
public CallData getCall(CallId id) throws RemoteException { TelephonyProvider rp = this.getDelegate(); if (rp != null) return rp.getCall(id); else throw new RemoteException();}
49033 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49033/c89f258266c13c299a5f83beaa88615bc3f18e44/RemoteProviderImpl.java/clean/src/src/net/sourceforge/gjtapi/raw/remote/RemoteProviderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3049, 751, 336, 1477, 12, 1477, 548, 612, 13, 1216, 18361, 225, 288, 202, 56, 6516, 20086, 2249, 8715, 273, 333, 18, 588, 9586, 5621, 202, 202, 430, 261, 13832, 480, 446, 13, 202, 202, 2463, 8715, 18, 588, 1477, 12, 350, 1769, 202, 12107, 202, 202, 12849, 394, 18361, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 3049, 751, 336, 1477, 12, 1477, 548, 612, 13, 1216, 18361, 225, 288, 202, 56, 6516, 20086, 2249, 8715, 273, 333, 18, 588, 9586, 5621, 202, 202, 430, 261, 13832, 480, 446, 13, 202, 202, 2463, 8715, 18, 588, 1477, 12, 350, 1769, 202, 12107, 202, 202, 12849, 394, 18361, 5621, 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 ]
Level l = makeLevel(block.getRetryCount()); if(l == null) throw new IllegalArgumentException(); int levelNumber = l.level; l.remove(block);
int levelNumber = block.getRetryCount();
public synchronized void nonfatalError(SplitfileBlock block, int reasonCode) { nonfatalErrors.inc(reasonCode); runningBlocks.remove(block); Level l = makeLevel(block.getRetryCount()); if(l == null) throw new IllegalArgumentException(); int levelNumber = l.level; l.remove(block); levelNumber++; if(levelNumber > maxLevel) { failedBlocksTooManyRetries.add(block); Logger.minor(this, "Finished with "+block); } else { Level newLevel = makeLevel(levelNumber); newLevel.add(block); } maybeStart(false); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/b7133fb27d8a7d18085bd1d9ba428adcdbe21b69/RetryTracker.java/clean/src/freenet/client/RetryTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1661, 30709, 668, 12, 5521, 768, 1768, 1203, 16, 509, 3971, 1085, 13, 288, 202, 202, 5836, 30709, 4229, 18, 9523, 12, 10579, 1085, 1769, 202, 202, 8704, 6450, 18, 4479, 12, 2629, 1769, 202, 202, 2355, 328, 273, 1221, 2355, 12, 2629, 18, 588, 7539, 1380, 10663, 202, 202, 430, 12, 80, 422, 446, 13, 604, 394, 2754, 5621, 202, 202, 474, 1801, 1854, 273, 328, 18, 2815, 31, 202, 202, 80, 18, 4479, 12, 2629, 1769, 202, 202, 2815, 1854, 9904, 31, 202, 202, 430, 12, 2815, 1854, 405, 943, 2355, 13, 288, 1082, 202, 7307, 6450, 10703, 5594, 13656, 18, 1289, 12, 2629, 1769, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 10577, 598, 13773, 2629, 1769, 202, 202, 97, 469, 288, 1082, 202, 2355, 394, 2355, 273, 1221, 2355, 12, 2815, 1854, 1769, 1082, 202, 2704, 2355, 18, 1289, 12, 2629, 1769, 202, 202, 97, 202, 202, 19133, 1685, 12, 5743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 3852, 918, 1661, 30709, 668, 12, 5521, 768, 1768, 1203, 16, 509, 3971, 1085, 13, 288, 202, 202, 5836, 30709, 4229, 18, 9523, 12, 10579, 1085, 1769, 202, 202, 8704, 6450, 18, 4479, 12, 2629, 1769, 202, 202, 2355, 328, 273, 1221, 2355, 12, 2629, 18, 588, 7539, 1380, 10663, 202, 202, 430, 12, 80, 422, 446, 13, 604, 394, 2754, 5621, 202, 202, 474, 1801, 1854, 273, 328, 18, 2815, 31, 202, 202, 80, 18, 4479, 12, 2629, 1769, 202, 202, 2815, 1854, 9904, 31, 202, 202, 430, 12, 2815, 1854, 405, 943, 2355, 13, 288, 1082, 202, 7307, 6450, 10703, 5594, 13656, 18, 1289, 12, 2629, 1769, 1082, 202, 3328, 18, 17364, 12, 2211, 2 ]
nutchConf.setObject(IndexingFilter.class.getName(), (IndexingFilter[]) filterMap.values().toArray(new IndexingFilter[0]));
conf.setObject(IndexingFilter.class.getName(), (IndexingFilter[]) filterMap.values().toArray(new IndexingFilter[0]));
public IndexingFilters(NutchConf nutchConf) { this.indexingFilters =(IndexingFilter[]) nutchConf.getObject(IndexingFilter.class.getName()); if (this.indexingFilters == null) { try { ExtensionPoint point = nutchConf.getPluginRepository().getExtensionPoint(IndexingFilter.X_POINT_ID); if (point == null) throw new RuntimeException(IndexingFilter.X_POINT_ID + " not found."); Extension[] extensions = point.getExtensions(); HashMap filterMap = new HashMap(); for (int i = 0; i < extensions.length; i++) { Extension extension = extensions[i]; IndexingFilter filter = (IndexingFilter) extension.getExtensionInstance(); System.out.println("-adding " + filter.getClass().getName()); if (!filterMap.containsKey(filter.getClass().getName())) { filterMap.put(filter.getClass().getName(), filter); } } nutchConf.setObject(IndexingFilter.class.getName(), (IndexingFilter[]) filterMap.values().toArray(new IndexingFilter[0])); } catch (PluginRuntimeException e) { throw new RuntimeException(e); } this.indexingFilters =(IndexingFilter[]) nutchConf.getObject(IndexingFilter.class.getName()); } }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/IndexingFilters.java/buggy/src/java/org/apache/nutch/indexer/IndexingFilters.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3340, 310, 5422, 12, 50, 322, 343, 3976, 290, 322, 343, 3976, 13, 288, 1377, 333, 18, 1615, 310, 5422, 273, 12, 24465, 1586, 63, 5717, 290, 322, 343, 3976, 18, 588, 921, 12, 24465, 1586, 18, 1106, 18, 17994, 10663, 4202, 309, 261, 2211, 18, 1615, 310, 5422, 422, 446, 13, 288, 5411, 775, 288, 7734, 10021, 2148, 1634, 273, 290, 322, 343, 3976, 18, 588, 3773, 3305, 7675, 588, 3625, 2148, 12, 24465, 1586, 18, 60, 67, 8941, 67, 734, 1769, 7734, 309, 261, 1153, 422, 446, 13, 10792, 604, 394, 3235, 12, 24465, 1586, 18, 60, 67, 8941, 67, 734, 397, 315, 486, 1392, 1199, 1769, 7734, 10021, 8526, 4418, 273, 1634, 18, 588, 7513, 5621, 7734, 4317, 1034, 863, 273, 394, 4317, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4418, 18, 2469, 31, 277, 27245, 288, 10792, 10021, 2710, 273, 4418, 63, 77, 15533, 10792, 3340, 310, 1586, 1034, 273, 261, 24465, 1586, 13, 2710, 18, 588, 3625, 1442, 5621, 10792, 2332, 18, 659, 18, 8222, 2932, 17, 3439, 315, 397, 1034, 18, 588, 797, 7675, 17994, 10663, 10792, 309, 16051, 2188, 863, 18, 12298, 653, 12, 2188, 18, 588, 797, 7675, 17994, 1435, 3719, 288, 13491, 1034, 863, 18, 458, 12, 2188, 18, 588, 797, 7675, 17994, 9334, 1034, 1769, 10792, 289, 7734, 289, 7734, 2195, 18, 542, 921, 12, 24465, 1586, 18, 1106, 18, 17994, 9334, 261, 24465, 1586, 63, 5717, 1034, 863, 18, 2372, 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, 3340, 310, 5422, 12, 50, 322, 343, 3976, 290, 322, 343, 3976, 13, 288, 1377, 333, 18, 1615, 310, 5422, 273, 12, 24465, 1586, 63, 5717, 290, 322, 343, 3976, 18, 588, 921, 12, 24465, 1586, 18, 1106, 18, 17994, 10663, 4202, 309, 261, 2211, 18, 1615, 310, 5422, 422, 446, 13, 288, 5411, 775, 288, 7734, 10021, 2148, 1634, 273, 290, 322, 343, 3976, 18, 588, 3773, 3305, 7675, 588, 3625, 2148, 12, 24465, 1586, 18, 60, 67, 8941, 67, 734, 1769, 7734, 309, 261, 1153, 422, 446, 13, 10792, 604, 394, 3235, 12, 24465, 1586, 18, 60, 67, 8941, 67, 734, 397, 315, 486, 1392, 1199, 1769, 7734, 10021, 8526, 4418, 273, 1634, 18, 588, 2 ]
info = new MP3Info(file[18] );
info = newMP3Info(file[18] );
public void testMP3() throws Exception { MP3Info info = null; /* mpg1layI_0h_448k_frame14_48000hz_dual_fl5Orig.mp3 */ info = new MP3Info(file[1]); assertEquals(info.getFileSize(), 21952L); assertEquals(info.getBitRate() , 448); assertTrue(!info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 48000); assertEquals(info.getHeaderBitRate() , 448); assertEquals(info.getLayer_Numeric() , 1); assertEquals(info.getLengthInSeconds() , 0); assertEquals(info.getMode() , "Dual Channel"); assertEquals(info.getVersion_Numeric() , 1.0d, 0D); assertEquals(info.getNumberOfFrames() , 1); //14-encspot 16-winamp////////////////////////////////////// assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); /* mpg1layI_32k_f256_441hz_dual_5015emph_CRCcopyOrig_sectest.mp3 */ info = new MP3Info(file[2]); assertEquals(info.getFileSize(), 26645L); assertEquals(info.getBitRate() , 32); assertTrue(info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(info.isPrivate()); assertTrue(info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 44100); assertEquals(info.getHeaderBitRate() , 32); assertEquals(info.getLayer_Numeric() , 1); assertEquals(info.getLengthInSeconds() , 6); assertEquals(info.getMode() , "Dual Channel"); assertEquals(info.getVersion_Numeric() , 1.0d, 0D); assertEquals(info.getNumberOfFrames() , 2); //256-winamp no encspot///////////////////////////////////// assertEquals(info.getEmphasis() , "50/15 ms"); assertTrue(!info.hasVariableBitRate()); /* mpg1layII_384k_f24_48hz_stereo_CRCOrig_Gogo1sectest.mp3 */ info = new MP3Info(file[3]); assertEquals(info.getFileSize(), 31104L); assertEquals(info.getBitRate() , 384); assertTrue(!info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 48000); assertEquals(info.getHeaderBitRate() , 384); assertEquals(info.getLayer_Numeric() , 2); assertEquals(info.getLengthInSeconds() , 0); assertEquals(info.getMode() , "Stereo"); assertEquals(info.getVersion_Numeric() , 1.0d, 0D); assertEquals(info.getNumberOfFrames() , 27); //24-encspot 27-winamp///////////////////////////////////// assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); /* mpg1layIII_58k-VBRq30_f1211_441hz_joint_XingTAG_sample.mp3 */ info = new MP3Info(file[5]); assertEquals(info.getFileSize(), 232295L); assertEquals(info.getBitRate() , 58); //59-winamp(wrong) 58-encspot assertTrue(info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(!info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 44100); assertEquals(info.getHeaderBitRate() , 48); assertEquals(info.getLayer_Numeric() , 3); assertEquals(info.getLengthInSeconds() , 31); assertEquals(info.getMode() , "Joint Stereo"); assertEquals(info.getVersion_Numeric() , 1.0d, 0D); assertEquals(info.getNumberOfFrames() , 1212); assertEquals(info.getEmphasis() , "none"); assertTrue(info.hasVariableBitRate()); assertEquals(info.getVBRHeader().getScale() , 30); assertNotNull(info.getVBRHeader().getTableOfContents()); /* mpg1layII_0h_192k_frame44_44100hz_joint_CRCfl11.mp2 */ info = new MP3Info(file[8]); assertEquals(info.getFileSize(), 30720L); assertEquals(info.getBitRate() , 192); assertTrue(!info.isCoprighted()); assertTrue(!info.isOriginal()); assertTrue(info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 44100); assertEquals(info.getHeaderBitRate() , 192); assertEquals(info.getLayer_Numeric() , 2); assertEquals(info.getLengthInSeconds() , 1); assertEquals(info.getMode() , "Stereo"); assertEquals(info.getVersion_Numeric() , 1.0d, 0D); assertEquals(info.getNumberOfFrames() , 48); //44-encspot 49-winamp///////////////////////////////////// assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); /* mpg2.5layIII_8k-VBRq95_f149_8khz_mono_ID3v2Orig_XingTAGLame.mp3 !!Can't find Xing tag!! which is why stuff is messed up */ info = new MP3Info(file[9]); assertEquals(info.getFileSize(), 14336L); assertEquals(info.getBitRate() , 32); //18-winamp 8-encspot///////////////////////////////////////////// assertTrue(!info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(!info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 8000); assertEquals(info.getHeaderBitRate() , 32); //18-winamp 8-encspot////////////////////////////////////// assertEquals(info.getLayer_Numeric() , 3); assertEquals(info.getLengthInSeconds() , 3); //5-winamp 10-encspot///////////////////////////////////// assertEquals(info.getMode() , "Single Channel"); assertEquals(info.getVersion_Numeric() , 2.5d, 0D); assertEquals(info.getNumberOfFrames() , 24); //149-winamp&encspot////////////////////////////////////// assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); // assertEquals(info.getVBRHeader().getScale() , 95); // assertNotNull(info.getVBRHeader().getTableOfContents()); /* mpg2layI_128k_f54_22050hz_joint_CRCOrig_test33.mp3 */ info = new MP3Info(file[10]); assertEquals(info.getFileSize(), 22572L); assertEquals(info.getBitRate() , 128); assertTrue(!info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 22050); assertEquals(info.getHeaderBitRate() , 128); assertEquals(info.getLayer_Numeric() , 1); assertEquals(info.getLengthInSeconds() , 1); assertEquals(info.getMode() , "Joint Stereo"); assertEquals(info.getVersion_Numeric() , 2.0d, 0D); assertEquals(info.getNumberOfFrames() , 1); //54-winamp no encspot////////////////////////////////////// assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); /* mpg2layII_16k_f56_24000hz_joint_CRCOrigID3v1&2_test27.mp3 */ info = new MP3Info(file[11]); assertEquals(info.getFileSize(), 4224L); assertEquals(info.getBitRate() , 16); assertTrue(!info.isCoprighted()); assertTrue(info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 24000); assertEquals(info.getHeaderBitRate() , 16); assertEquals(info.getLayer_Numeric() , 2); assertEquals(info.getLengthInSeconds() , 2); //1-winamp 43-musicmatch(correct)////////////////////////// assertEquals(info.getMode() , "Joint Stereo"); assertEquals(info.getVersion_Numeric() , 2.0d, 0D); assertEquals(info.getNumberOfFrames() , 44); // 56-winamp no encspot////////////////////////////////// assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); /* mpgPlus_210k-VBR_f1149_441hz_joint_protectedUnt_NOTm1lay-448k-f540-5015.mpc */ info = new MP3Info(file[14]); assertEquals(info.getFileSize(), 789752L); assertEquals(info.getBitRate() , 448); //448-winamp 210-encspot assertTrue(info.isCoprighted()); assertTrue(!info.isOriginal()); assertTrue(info.isPadded()); assertTrue(!info.isPrivate()); assertTrue(!info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 44100); assertEquals(info.getHeaderBitRate() , 448); //448-winamp 210-encspot assertEquals(info.getLayer_Numeric() , 1); assertEquals(info.getLengthInSeconds() , 14); //30-encspot assertEquals(info.getMode() , "Joint Stereo"); assertEquals(info.getVersion_Numeric() , 1.0d, 0D); assertEquals(info.getNumberOfFrames() , 65); // 540-winamp 1149-encspot assertEquals(info.getEmphasis() , "50/15 ms"); assertTrue(!info.hasVariableBitRate()); //encspot true /* mpg4_golem160x90first120.avi MPEG 4 files contain a 'possible' MP3 header info = new MP3Info(file[18] ); assertEquals(info.getFileSize(), 743933L); assertEquals(info.getBitRate() , 40); assertTrue(!info.isCoprighted()); assertTrue(!info.isOriginal()); assertTrue(!info.isPadded()); assertTrue(info.isPrivate()); assertTrue(!info.isProtected()); assertTrue(!info.isRiffWav()); assertEquals(info.getFrequency() , 8000); assertEquals(info.getHeaderBitRate() , 40); assertEquals(info.getLayer_Numeric() , 2); assertEquals(info.getLengthInSeconds() , 555); assertEquals(info.getMode() , "Joint Stereo"); assertEquals(info.getVersion_Numeric() , 2.5d, 0D); assertEquals(info.getNumberOfFrames() , 3857); //39626us - 39624 winamp assertEquals(info.getEmphasis() , "none"); assertTrue(!info.hasVariableBitRate()); */ /* corruptFileWithBadHeaders.mp3 */ try { info = new MP3Info(file[19]); fail("Corrupt file with headers passed!"); //shouldn't make it } catch (Exception e) {} }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/7b7166c08927f8e1ad821f107acc1a6f63d391ee/MP3Test.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/mp3/MP3Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4566, 23, 1435, 3639, 1216, 1185, 288, 7734, 13480, 23, 966, 1123, 273, 446, 31, 7734, 1748, 1850, 6749, 75, 21, 5544, 45, 67, 20, 76, 67, 6334, 28, 79, 67, 3789, 3461, 67, 8875, 3784, 76, 94, 67, 72, 1462, 67, 2242, 25, 4741, 18, 1291, 23, 3639, 1195, 3639, 1123, 225, 273, 394, 13480, 23, 966, 12, 768, 63, 21, 19226, 3639, 1815, 8867, 12, 1376, 18, 588, 15100, 9334, 576, 3657, 9401, 48, 1769, 3639, 1815, 8867, 12, 1376, 18, 588, 5775, 4727, 1435, 269, 1059, 8875, 1769, 1082, 3639, 1815, 5510, 12, 5, 1376, 18, 291, 11635, 4083, 329, 10663, 1082, 3639, 1815, 5510, 12, 1376, 18, 291, 8176, 10663, 202, 3639, 1815, 5510, 12, 5, 1376, 18, 291, 52, 9665, 10663, 3196, 3639, 1815, 5510, 12, 5, 1376, 18, 291, 6014, 10663, 202, 3639, 1815, 5510, 12, 1376, 18, 291, 15933, 10663, 202, 3639, 1815, 5510, 12, 5, 1376, 18, 291, 54, 3048, 59, 842, 10663, 1082, 3639, 1815, 8867, 12, 1376, 18, 588, 13865, 1435, 269, 9934, 3784, 1769, 202, 3639, 1815, 8867, 12, 1376, 18, 588, 1864, 5775, 4727, 1435, 269, 1059, 8875, 1769, 3639, 1815, 8867, 12, 1376, 18, 588, 4576, 67, 9902, 1435, 269, 404, 1769, 1875, 3639, 1815, 8867, 12, 1376, 18, 588, 1782, 17840, 1435, 269, 374, 1769, 540, 1815, 8867, 12, 1376, 18, 588, 2309, 1435, 269, 315, 40, 1462, 5307, 8863, 202, 3639, 1815, 8867, 12, 1376, 18, 588, 1444, 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, 4566, 23, 1435, 3639, 1216, 1185, 288, 7734, 13480, 23, 966, 1123, 273, 446, 31, 7734, 1748, 1850, 6749, 75, 21, 5544, 45, 67, 20, 76, 67, 6334, 28, 79, 67, 3789, 3461, 67, 8875, 3784, 76, 94, 67, 72, 1462, 67, 2242, 25, 4741, 18, 1291, 23, 3639, 1195, 3639, 1123, 225, 273, 394, 13480, 23, 966, 12, 768, 63, 21, 19226, 3639, 1815, 8867, 12, 1376, 18, 588, 15100, 9334, 576, 3657, 9401, 48, 1769, 3639, 1815, 8867, 12, 1376, 18, 588, 5775, 4727, 1435, 269, 1059, 8875, 1769, 1082, 3639, 1815, 5510, 12, 5, 1376, 18, 291, 11635, 4083, 329, 10663, 1082, 3639, 1815, 5510, 12, 1376, 18, 291, 8176, 10663, 202, 2 ]
username + "@" + hostname + ":" + port + "\":\n\n" + errorMsg);
username + "@" + hostname + ":" + port + "\"\n\n" + errorMsg);
private static void errorHandling(String errorText, String errorMsg, boolean mode, boolean severe) { if (!mode) { Splash.dispose(); int icon = SWT.ICON_WARNING; if (severe) icon = SWT.ICON_ERROR; MessageBox box = new MessageBox(shell, icon | SWT.OK | SWT.CANCEL); box.setText(errorText); box.setMessage(G2GuiResources.getString("G2_CONNECTION_ERROR_HEADER") + " \"" + username + "@" + hostname + ":" + port + "\":\n\n" + errorMsg); int rc = box.open(); if (rc == SWT.CANCEL) { closeApp(); } else if ( myPrefs.open(shell, null) == 0 ) { relaunchSelf(); } } else { myPrefs = new Preferences(PreferenceLoader.getPreferenceStore()); shell = new Shell(); if ( myPrefs.open(shell, null) == 0 ) { relaunchSelf(); } } }
11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/4a004f1cb52fde8ea9e9dae5df163d6c5e61c913/G2Gui.java/clean/g2gui/src/net/mldonkey/g2gui/view/G2Gui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 555, 14701, 12, 780, 555, 1528, 16, 514, 16949, 16, 1250, 1965, 16, 1250, 25882, 13, 288, 202, 202, 430, 16051, 3188, 13, 288, 1082, 202, 16881, 961, 18, 2251, 4150, 5621, 1082, 202, 474, 4126, 273, 348, 8588, 18, 21745, 67, 9511, 31, 1082, 202, 430, 261, 307, 502, 73, 13, 4126, 273, 348, 8588, 18, 21745, 67, 3589, 31, 1082, 202, 27647, 3919, 273, 394, 2350, 3514, 12, 10304, 16, 4126, 571, 348, 8588, 18, 3141, 571, 348, 8588, 18, 25268, 1769, 1082, 202, 2147, 18, 542, 1528, 12, 1636, 1528, 1769, 1082, 202, 2147, 18, 542, 1079, 12, 43, 22, 18070, 3805, 18, 588, 780, 2932, 43, 22, 67, 15461, 67, 3589, 67, 7557, 7923, 397, 315, 11843, 397, 9506, 202, 5053, 397, 18265, 397, 5199, 397, 6153, 397, 1756, 397, 7023, 5581, 82, 64, 82, 6, 397, 16949, 1769, 9506, 202, 474, 4519, 273, 3919, 18, 3190, 5621, 9506, 202, 430, 261, 1310, 422, 348, 8588, 18, 25268, 13, 288, 9506, 202, 4412, 3371, 5621, 1082, 202, 97, 469, 309, 261, 3399, 1386, 2556, 18, 3190, 12, 10304, 16, 446, 13, 422, 374, 262, 288, 9506, 202, 2878, 4760, 10084, 5621, 1082, 202, 97, 202, 202, 97, 469, 288, 1082, 202, 4811, 1386, 2556, 273, 394, 28310, 12, 9624, 2886, 18, 588, 9624, 2257, 10663, 1082, 202, 10304, 273, 394, 19433, 5621, 1082, 202, 430, 261, 3399, 1386, 2556, 18, 3190, 12, 10304, 16, 446, 13, 422, 374, 262, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 555, 14701, 12, 780, 555, 1528, 16, 514, 16949, 16, 1250, 1965, 16, 1250, 25882, 13, 288, 202, 202, 430, 16051, 3188, 13, 288, 1082, 202, 16881, 961, 18, 2251, 4150, 5621, 1082, 202, 474, 4126, 273, 348, 8588, 18, 21745, 67, 9511, 31, 1082, 202, 430, 261, 307, 502, 73, 13, 4126, 273, 348, 8588, 18, 21745, 67, 3589, 31, 1082, 202, 27647, 3919, 273, 394, 2350, 3514, 12, 10304, 16, 4126, 571, 348, 8588, 18, 3141, 571, 348, 8588, 18, 25268, 1769, 1082, 202, 2147, 18, 542, 1528, 12, 1636, 1528, 1769, 1082, 202, 2147, 18, 542, 1079, 12, 43, 22, 18070, 3805, 18, 588, 780, 2932, 43, 22, 67, 15461, 67, 3589, 2 ]
uiManager.removeCollectionInstance(BASE_SERIES_SHEET_COLLECTION);
for (int iBS = iBaseSeriesCount; iBS < iNewBaseSeriesCount; iBS++) { uiManager.addCollectionInstance(BASE_SERIES_SHEET_COLLECTION_FOR_CHARTS_WITHOUT_AXES); } } else { for (int iBS = iBaseSeriesCount; iBS > iNewBaseSeriesCount; iBS--) { uiManager.removeCollectionInstance(BASE_SERIES_SHEET_COLLECTION_FOR_CHARTS_WITHOUT_AXES); } } if (iNewOrthogonalSeriesCount >= iOrthogonalSeriesCount) { for (int iOS = iOrthogonalSeriesCount; iOS < iNewOrthogonalSeriesCount; iOS++) { uiManager.addCollectionInstance(ORTHOGONAL_SERIES_SHEET_COLLECTION_FOR_CHARTS_WITHOUT_AXES); } } else { for (int iOS = iOrthogonalSeriesCount; iOS > iNewOrthogonalSeriesCount; iOS--) { uiManager.removeCollectionInstance(ORTHOGONAL_SERIES_SHEET_COLLECTION_FOR_CHARTS_WITHOUT_AXES); }
public void chartModified(IUIManager uiManager) { Chart cModel = uiManager.getCurrentModelState(); int iNewBaseAxisCount = 0; int iNewOrthogonalAxisCount = 0; int iNewBaseSeriesCount = 0; int iNewOrthogonalSeriesCount = 0; int iNewLabelBlockCount = 0; if (cModel instanceof ChartWithAxes) { iNewBaseAxisCount = ((ChartWithAxes) cModel).getAxes().size(); iNewOrthogonalAxisCount = 0; iNewBaseSeriesCount = 0; iNewOrthogonalSeriesCount = 0; for (int i = 0; i < iNewBaseAxisCount; i++) { iNewBaseSeriesCount += ((Axis) ((ChartWithAxes) cModel).getAxes().get(i)).getSeriesDefinitions().size(); iNewOrthogonalAxisCount += ((Axis) ((ChartWithAxes) cModel).getAxes().get(i)).getAssociatedAxes() .size(); for (int iS = 0; iS < iNewOrthogonalAxisCount; iS++) { iNewOrthogonalSeriesCount += ((Axis) ((Axis) ((ChartWithAxes) cModel).getAxes().get(i)) .getAssociatedAxes().get(iS)).getSeriesDefinitions().size(); } } // Start from 1 because there will always be at least 1 entry for each registered sheet when this method is // called if (iNewBaseAxisCount >= iBaseAxisCount) { for (int iBA = iBaseAxisCount; iBA < iNewBaseAxisCount; iBA++) { uiManager.addCollectionInstance(BASE_AXIS_SHEET_COLLECTION); } } else { for (int iBA = iBaseAxisCount; iBA > iNewBaseAxisCount; iBA--) { uiManager.removeCollectionInstance(BASE_AXIS_SHEET_COLLECTION); } } if (iNewOrthogonalAxisCount >= iOrthogonalAxisCount) { for (int iOA = iOrthogonalAxisCount; iOA < iNewOrthogonalAxisCount; iOA++) { uiManager.addCollectionInstance(ORTHOGONAL_AXIS_SHEET_COLLECTION); } } else { for (int iOA = iOrthogonalAxisCount; iOA > iNewOrthogonalAxisCount; iOA--) { uiManager.removeCollectionInstance(ORTHOGONAL_AXIS_SHEET_COLLECTION); } } } else { iNewBaseAxisCount = 0; iNewOrthogonalAxisCount = 0; iNewBaseSeriesCount = ((ChartWithoutAxes) cModel).getSeriesDefinitions().size(); iNewOrthogonalSeriesCount = 0; for (int iS = 0; iS < iNewBaseSeriesCount; iS++) { iNewOrthogonalSeriesCount += ((SeriesDefinition) ((ChartWithoutAxes) cModel).getSeriesDefinitions() .get(iS)).getSeriesDefinitions().size(); } } Iterator iter = cModel.getBlock().getChildren().iterator(); while (iter.hasNext()) { Block block = (Block) iter.next(); if (block instanceof LabelBlock && !(block instanceof TitleBlock)) { iNewLabelBlockCount++; } } // Start from 1 because there will always be at least 1 entry for each registered sheet when this method is // called if (iNewBaseSeriesCount >= iBaseSeriesCount) { for (int iBS = iBaseSeriesCount; iBS < iNewBaseSeriesCount; iBS++) { uiManager.addCollectionInstance(BASE_SERIES_SHEET_COLLECTION); } } else { for (int iBS = iBaseSeriesCount; iBS > iNewBaseSeriesCount; iBS--) { uiManager.removeCollectionInstance(BASE_SERIES_SHEET_COLLECTION); } } if (iNewOrthogonalSeriesCount >= iOrthogonalSeriesCount) { for (int iOS = iOrthogonalSeriesCount; iOS < iNewOrthogonalSeriesCount; iOS++) { uiManager.addCollectionInstance(ORTHOGONAL_SERIES_SHEET_COLLECTION); } } else { for (int iOS = iOrthogonalSeriesCount; iOS > iNewOrthogonalSeriesCount; iOS--) { uiManager.removeCollectionInstance(ORTHOGONAL_SERIES_SHEET_COLLECTION); } } /* * for (int iLB = 1; iLB < iLabelBlockCount; iLB++) { * uiManager.addCollectionInstance(LABEL_BLOCK_SHEET_COLLECTION); } */ // Update the stored counts iBaseAxisCount = iNewBaseAxisCount; iOrthogonalAxisCount = iNewOrthogonalAxisCount; iBaseSeriesCount = iNewBaseSeriesCount; iOrthogonalSeriesCount = iNewOrthogonalSeriesCount; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/54f8ce112ac8d3e9ab4caff6a4f4253ff2888daa/ChangeListenerImpl.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/event/ChangeListenerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4980, 4575, 12, 45, 5370, 1318, 5915, 1318, 13, 565, 288, 3639, 14804, 276, 1488, 273, 5915, 1318, 18, 588, 3935, 1488, 1119, 5621, 3639, 509, 277, 1908, 2171, 6558, 1380, 273, 374, 31, 3639, 509, 277, 1908, 1162, 451, 28396, 6558, 1380, 273, 374, 31, 3639, 509, 277, 1908, 2171, 6485, 1380, 273, 374, 31, 3639, 509, 277, 1908, 1162, 451, 28396, 6485, 1380, 273, 374, 31, 3639, 509, 277, 1908, 2224, 1768, 1380, 273, 374, 31, 3639, 309, 261, 71, 1488, 1276, 14804, 1190, 26494, 13, 3639, 288, 5411, 277, 1908, 2171, 6558, 1380, 273, 14015, 7984, 1190, 26494, 13, 276, 1488, 2934, 588, 26494, 7675, 1467, 5621, 5411, 277, 1908, 1162, 451, 28396, 6558, 1380, 273, 374, 31, 5411, 277, 1908, 2171, 6485, 1380, 273, 374, 31, 5411, 277, 1908, 1162, 451, 28396, 6485, 1380, 273, 374, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 277, 1908, 2171, 6558, 1380, 31, 277, 27245, 5411, 288, 7734, 277, 1908, 2171, 6485, 1380, 1011, 14015, 6558, 13, 14015, 7984, 1190, 26494, 13, 276, 1488, 2934, 588, 26494, 7675, 588, 12, 77, 13, 2934, 588, 6485, 7130, 7675, 1467, 5621, 7734, 277, 1908, 1162, 451, 28396, 6558, 1380, 1011, 14015, 6558, 13, 14015, 7984, 1190, 26494, 13, 276, 1488, 2934, 588, 26494, 7675, 588, 12, 77, 13, 2934, 588, 19233, 26494, 1435, 10792, 263, 1467, 5621, 7734, 364, 261, 474, 277, 55, 273, 374, 31, 277, 55, 411, 277, 1908, 1162, 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, 4980, 4575, 12, 45, 5370, 1318, 5915, 1318, 13, 565, 288, 3639, 14804, 276, 1488, 273, 5915, 1318, 18, 588, 3935, 1488, 1119, 5621, 3639, 509, 277, 1908, 2171, 6558, 1380, 273, 374, 31, 3639, 509, 277, 1908, 1162, 451, 28396, 6558, 1380, 273, 374, 31, 3639, 509, 277, 1908, 2171, 6485, 1380, 273, 374, 31, 3639, 509, 277, 1908, 1162, 451, 28396, 6485, 1380, 273, 374, 31, 3639, 509, 277, 1908, 2224, 1768, 1380, 273, 374, 31, 3639, 309, 261, 71, 1488, 1276, 14804, 1190, 26494, 13, 3639, 288, 5411, 277, 1908, 2171, 6558, 1380, 273, 14015, 7984, 1190, 26494, 13, 276, 1488, 2934, 588, 26494, 7675, 1467, 5621, 5411, 277, 1908, 1162, 451, 28396, 2 ]
while (isSpace(c)) { c = nextc(); } pushback(c);
while (isSpace(c)) { c = nextc(); } pushback(c);
private int parseQuotedWords(int closeQuote, int openQuote) { int c = nextc(); ISourcePosition position = support.getPosition(); // Skip preceding spaces. while (isSpace(c)) { c = nextc(); } pushback(c); ArrayNode qwords = new ArrayNode(position); // FIX int nest = 0; StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } if (!isSpace(c)) { stringToken.append('\\'); } break; } } else if (isSpace(c)) { qwords.add(new StrNode(support.getPosition(), stringToken.toString())); stringToken.setLength(0); //Benoit: reset the buffer // skip continuous spaces c = nextc(); while (isSpace(c)) { c = nextc(); } pushback(c); continue; } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } if (stringToken.length() > 0) { qwords.add(new StrNode(support.getPosition(), stringToken.toString())); } lexState = LexState.EXPR_END; yaccValue = qwords; return Token.tARRAY; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 15919, 7363, 12, 474, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 474, 276, 273, 1024, 71, 5621, 202, 202, 45, 1830, 2555, 1754, 273, 2865, 18, 588, 2555, 5621, 202, 202, 759, 6611, 19969, 7292, 18, 202, 202, 17523, 261, 291, 3819, 12, 71, 3719, 288, 1082, 202, 71, 273, 1024, 71, 5621, 202, 202, 97, 202, 202, 6206, 823, 12, 71, 1769, 202, 202, 1076, 907, 1043, 3753, 273, 394, 1510, 907, 12, 3276, 1769, 368, 8563, 202, 202, 474, 15095, 273, 374, 31, 202, 202, 780, 1892, 533, 1345, 273, 394, 6674, 5621, 202, 202, 17523, 14015, 71, 273, 1024, 71, 10756, 480, 1746, 10257, 747, 15095, 405, 374, 13, 288, 1082, 202, 430, 261, 71, 422, 300, 21, 13, 288, 9506, 202, 1636, 1503, 18, 4110, 668, 12, 45, 4229, 18, 31075, 900, 67, 3589, 16, 1754, 16, 4838, 18, 588, 780, 2932, 318, 29133, 67, 1080, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2463, 374, 31, 1082, 202, 97, 1082, 202, 430, 261, 71, 422, 5282, 13, 288, 9506, 202, 71, 273, 1024, 71, 5621, 9506, 202, 9610, 261, 71, 13, 288, 6862, 202, 3593, 2337, 82, 11, 294, 25083, 202, 17143, 31, 6862, 202, 3593, 5282, 294, 25083, 202, 71, 273, 5282, 31, 25083, 202, 8820, 31, 6862, 202, 1886, 294, 25083, 202, 430, 261, 71, 422, 1746, 10257, 747, 261, 3190, 10257, 480, 374, 597, 276, 422, 1696, 10257, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 15919, 7363, 12, 474, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 474, 276, 273, 1024, 71, 5621, 202, 202, 45, 1830, 2555, 1754, 273, 2865, 18, 588, 2555, 5621, 202, 202, 759, 6611, 19969, 7292, 18, 202, 202, 17523, 261, 291, 3819, 12, 71, 3719, 288, 1082, 202, 71, 273, 1024, 71, 5621, 202, 202, 97, 202, 202, 6206, 823, 12, 71, 1769, 202, 202, 1076, 907, 1043, 3753, 273, 394, 1510, 907, 12, 3276, 1769, 368, 8563, 202, 202, 474, 15095, 273, 374, 31, 202, 202, 780, 1892, 533, 1345, 273, 394, 6674, 5621, 202, 202, 17523, 14015, 71, 273, 1024, 71, 10756, 480, 1746, 10257, 747, 15095, 405, 374, 2 ]
public void setLinkedFile(String name) {
public void setLinkedFile( String name ) {
public void setLinkedFile(String name) { link = name; mode = getMode(mode); }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/AsiExtraField.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/AsiExtraField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 13174, 812, 12, 514, 508, 262, 288, 3639, 1692, 273, 508, 31, 3639, 1965, 273, 24588, 12, 3188, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 13174, 812, 12, 514, 508, 262, 288, 3639, 1692, 273, 508, 31, 3639, 1965, 273, 24588, 12, 3188, 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 ]
m_data = convert(strOid); if(m_data == null) { m_data = new int[2]; m_data[0] = m_data[1] = 0; }
m_data = new int[2]; m_data[0] = m_data[1] = 0;
public SnmpObjectId(String strOid) { m_data = convert(strOid); if(m_data == null) { m_data = new int[2]; m_data[0] = m_data[1] = 0; } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/b3612967cb053036bdb295ee74cb2e369c6ca18d/SnmpObjectId.java/buggy/src/joesnmp/org/opennms/protocols/snmp/SnmpObjectId.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18961, 1291, 16661, 12, 780, 609, 19105, 13, 202, 95, 202, 202, 81, 67, 892, 273, 1765, 12, 701, 19105, 1769, 202, 202, 430, 12, 81, 67, 892, 422, 446, 13, 202, 202, 95, 1082, 202, 81, 67, 892, 273, 394, 509, 63, 22, 15533, 1082, 202, 81, 67, 892, 63, 20, 65, 273, 312, 67, 892, 63, 21, 65, 273, 374, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18961, 1291, 16661, 12, 780, 609, 19105, 13, 202, 95, 202, 202, 81, 67, 892, 273, 1765, 12, 701, 19105, 1769, 202, 202, 430, 12, 81, 67, 892, 422, 446, 13, 202, 202, 95, 1082, 202, 81, 67, 892, 273, 394, 509, 63, 22, 15533, 1082, 202, 81, 67, 892, 63, 20, 65, 273, 312, 67, 892, 63, 21, 65, 273, 374, 31, 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 ]
Double issuedQuantity = (Double)resultService.get("issuedQuantity");
Double issuedQuantity = (Double)resultService.get("quantityIssued");
public static Map decomposeInventoryItem(DispatchContext ctx, Map context) { Map result = new HashMap(); GenericDelegator delegator = ctx.getDelegator(); LocalDispatcher dispatcher = ctx.getDispatcher(); Timestamp now = UtilDateTime.nowTimestamp(); List msgResult = new LinkedList(); Locale locale = (Locale) context.get("locale"); GenericValue userLogin = (GenericValue) context.get("userLogin"); // Mandatory input fields String inventoryItemId = (String)context.get("inventoryItemId"); Double quantity = (Double)context.get("quantity"); try { GenericValue inventoryItem = delegator.findByPrimaryKey("InventoryItem", UtilMisc.toMap("inventoryItemId", inventoryItemId)); if (inventoryItem == null) { return ServiceUtil.returnError("Error decomposing inventory item: inventory item with id [" + inventoryItemId + "] not found."); } // the work effort (disassemble order) is created Map serviceContext = UtilMisc.toMap("workEffortTypeId", "PROD_ORDER_HEADER", "workEffortPurposeTypeId", "WEPT_PRODUCTION_RUN", "currentStatusId", "PRUN_CREATED"); serviceContext.put("workEffortName", "Decompose inventory item [" + inventoryItem.getString("inventoryItemId") + "]"); serviceContext.put("facilityId", inventoryItem.getString("facilityId")); serviceContext.put("estimatedStartDate", now); serviceContext.put("userLogin", userLogin); Map resultService = dispatcher.runSync("createWorkEffort", serviceContext); String workEffortId = (String)resultService.get("workEffortId"); // the inventory (marketing package) is issued serviceContext.clear(); serviceContext = UtilMisc.toMap("inventoryItem", inventoryItem, "workEffortId", workEffortId, "userLogin", userLogin); if (quantity != null) { serviceContext.put("quantity", quantity); } resultService = dispatcher.runSync("issueInventoryItemToWorkEffort", serviceContext); Double issuedQuantity = (Double)resultService.get("issuedQuantity"); // TODO: get the package's unit cost serviceContext.clear(); serviceContext = UtilMisc.toMap("productId", inventoryItem.getString("productId"), "currencyUomId", inventoryItem.getString("currencyUomId"), "costComponentTypePrefix", "EST_STD_", "userLogin", userLogin); resultService = dispatcher.runSync("getProductCost", serviceContext); Double packageCost = (Double)resultService.get("productCost"); if (packageCost == null || packageCost.doubleValue() == 0) { packageCost = new Double(1.0); } Double inventoryItemCost = (Double)inventoryItem.getDouble("unitCost"); if (inventoryItemCost == null) { inventoryItemCost = new Double(1.0); } Double costCoefficient = new Double(inventoryItemCost.doubleValue() / packageCost.doubleValue()); // the components are retrieved serviceContext.clear(); serviceContext = UtilMisc.toMap("productId", inventoryItem.getString("productId"), "quantity", issuedQuantity, "userLogin", userLogin); resultService = dispatcher.runSync("getManufacturingComponents", serviceContext); List components = (List)resultService.get("componentsMap"); if (components == null || components.isEmpty()) { return ServiceUtil.returnError("Error decomposing inventory item: no components found for marketing package [" + inventoryItem.getString("productId") + "]."); } Iterator componentsIt = components.iterator(); while (componentsIt.hasNext()) { Map component = (Map)componentsIt.next(); // get the component's unit cost serviceContext.clear(); serviceContext = UtilMisc.toMap("productId", ((GenericValue)component.get("product")).getString("productId"), "currencyUomId", inventoryItem.getString("currencyUomId"), "costComponentTypePrefix", "EST_STD_", "userLogin", userLogin); resultService = dispatcher.runSync("getProductCost", serviceContext); Double componentCost = (Double)resultService.get("productCost"); Double componentInventoryItemCost = new Double(costCoefficient.doubleValue() * componentCost.doubleValue()); serviceContext.clear(); serviceContext = UtilMisc.toMap("productId", ((GenericValue)component.get("product")).getString("productId"), "quantity", component.get("quantity"), "facilityId", inventoryItem.getString("facilityId"), "unitCost", componentInventoryItemCost, "userLogin", userLogin); serviceContext.put("workEffortId", workEffortId); resultService = dispatcher.runSync("productionRunTaskProduce", serviceContext); } // the components are put in warehouse } catch (GenericEntityException e) { Debug.logError(e, "Problem calling the createWorkEffort service", module); return ServiceUtil.returnError(e.getMessage()); } catch (GenericServiceException e) { Debug.logError(e, "Problem calling the createWorkEffort service", module); return ServiceUtil.returnError(e.getMessage()); } return result; }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/129e7808302a8388013c0efbf8ef54811606a4e0/ProductionRunServices.java/buggy/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 24476, 15059, 1180, 12, 5325, 1042, 1103, 16, 1635, 819, 13, 288, 3639, 1635, 563, 273, 394, 4317, 5621, 3639, 7928, 15608, 639, 11158, 639, 273, 1103, 18, 588, 15608, 639, 5621, 3639, 3566, 6681, 7393, 273, 1103, 18, 588, 6681, 5621, 3639, 8159, 2037, 273, 3564, 5096, 18, 3338, 4921, 5621, 3639, 987, 1234, 1253, 273, 394, 10688, 5621, 3639, 6458, 2573, 273, 261, 3916, 13, 819, 18, 588, 2932, 6339, 8863, 3639, 7928, 620, 729, 5358, 273, 261, 7014, 620, 13, 819, 18, 588, 2932, 1355, 5358, 8863, 3639, 368, 490, 10018, 810, 1466, 3639, 514, 13086, 17673, 273, 261, 780, 13, 2472, 18, 588, 2932, 26024, 17673, 8863, 3639, 3698, 10457, 273, 261, 5265, 13, 2472, 18, 588, 2932, 16172, 8863, 3639, 775, 288, 5411, 7928, 620, 13086, 1180, 273, 11158, 639, 18, 4720, 858, 11575, 2932, 15059, 1180, 3113, 3564, 11729, 71, 18, 869, 863, 2932, 26024, 17673, 3113, 13086, 17673, 10019, 5411, 309, 261, 26024, 1180, 422, 446, 13, 288, 7734, 327, 1956, 1304, 18, 2463, 668, 2932, 668, 9862, 24014, 13086, 761, 30, 13086, 761, 598, 612, 8247, 397, 13086, 17673, 397, 9850, 486, 1392, 1199, 1769, 5411, 289, 5411, 368, 326, 1440, 23445, 261, 2251, 29676, 1353, 13, 353, 2522, 5411, 1635, 1156, 1042, 273, 3564, 11729, 71, 18, 869, 863, 2932, 1252, 41, 1403, 499, 11731, 3113, 315, 8025, 1212, 67, 7954, 67, 7557, 3113, 4766, 315, 1252, 41, 1403, 499, 10262, 4150, 11731, 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, 760, 1635, 24476, 15059, 1180, 12, 5325, 1042, 1103, 16, 1635, 819, 13, 288, 3639, 1635, 563, 273, 394, 4317, 5621, 3639, 7928, 15608, 639, 11158, 639, 273, 1103, 18, 588, 15608, 639, 5621, 3639, 3566, 6681, 7393, 273, 1103, 18, 588, 6681, 5621, 3639, 8159, 2037, 273, 3564, 5096, 18, 3338, 4921, 5621, 3639, 987, 1234, 1253, 273, 394, 10688, 5621, 3639, 6458, 2573, 273, 261, 3916, 13, 819, 18, 588, 2932, 6339, 8863, 3639, 7928, 620, 729, 5358, 273, 261, 7014, 620, 13, 819, 18, 588, 2932, 1355, 5358, 8863, 3639, 368, 490, 10018, 810, 1466, 3639, 514, 13086, 17673, 273, 261, 780, 13, 2472, 18, 588, 2932, 26024, 17673, 8863, 3639, 3698, 10457, 273, 2 ]
if (sealed) { setupFlags |= SEAL_FUNCTIONS_FLAG; } else { setupFlags &= ~SEAL_FUNCTIONS_FLAG; }
setSetupFlag(SEAL_FUNCTIONS_FLAG, sealed);
protected void setSealFunctionsFlag(boolean sealed) { if (sealed) { setupFlags |= SEAL_FUNCTIONS_FLAG; } else { setupFlags &= ~SEAL_FUNCTIONS_FLAG; } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/c4cf22c5146896fb10846ccaa0ff365034c4e832/IdScriptable.java/clean/src/org/mozilla/javascript/IdScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 1761, 287, 7503, 4678, 12, 6494, 695, 18931, 13, 288, 3639, 309, 261, 307, 18931, 13, 288, 3875, 5094, 5626, 3174, 1013, 67, 7788, 55, 67, 9651, 31, 289, 3639, 469, 288, 3875, 5094, 12058, 4871, 1090, 1013, 67, 7788, 55, 67, 9651, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 1761, 287, 7503, 4678, 12, 6494, 695, 18931, 13, 288, 3639, 309, 261, 307, 18931, 13, 288, 3875, 5094, 5626, 3174, 1013, 67, 7788, 55, 67, 9651, 31, 289, 3639, 469, 288, 3875, 5094, 12058, 4871, 1090, 1013, 67, 7788, 55, 67, 9651, 31, 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 ]
System.out.println("Name = \"" + name + "\", value = \"" + value + "\"");
System.out.println("Name = \"" + name + "\", value = \"" + value + "\"");
public void testUsingProperties() throws SQLException { System.out.println("*** testUsingProperties()"); Statement stmt = m_connection.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name, value FROM propertyExample()"); while(rs.next()) { String name = rs.getString(1); String value = rs.getString(2); System.out.println("Name = \"" + name + "\", value = \"" + value + "\""); } rs.close(); }
7270 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7270/efa76a6b7645e410731c10cec532ef6e6ea9f3f1/Tester.java/buggy/src/java/test/org/postgresql/pljava/test/Tester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 7736, 2297, 1435, 202, 15069, 6483, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 14465, 1842, 7736, 2297, 1435, 8863, 202, 202, 3406, 3480, 273, 312, 67, 4071, 18, 2640, 3406, 5621, 202, 202, 13198, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 508, 16, 460, 4571, 1272, 10908, 1435, 8863, 202, 202, 17523, 12, 5453, 18, 4285, 10756, 202, 202, 95, 1082, 202, 780, 508, 273, 3597, 18, 588, 780, 12, 21, 1769, 1082, 202, 780, 460, 273, 3597, 18, 588, 780, 12, 22, 1769, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 461, 273, 11843, 397, 508, 397, 1548, 3113, 460, 273, 11843, 397, 460, 397, 11143, 1769, 202, 202, 97, 202, 202, 5453, 18, 4412, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 7736, 2297, 1435, 202, 15069, 6483, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 14465, 1842, 7736, 2297, 1435, 8863, 202, 202, 3406, 3480, 273, 312, 67, 4071, 18, 2640, 3406, 5621, 202, 202, 13198, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 508, 16, 460, 4571, 1272, 10908, 1435, 8863, 202, 202, 17523, 12, 5453, 18, 4285, 10756, 202, 202, 95, 1082, 202, 780, 508, 273, 3597, 18, 588, 780, 12, 21, 1769, 1082, 202, 780, 460, 273, 3597, 18, 588, 780, 12, 22, 1769, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 461, 273, 11843, 397, 508, 397, 1548, 3113, 460, 273, 11843, 397, 460, 397, 11143, 1769, 202, 202, 2 ]
element = element.getExtendsElement( );
if ( DesignElement.NO_BASE_ID != element.getBaseId( ) ) { element = element.getVirtualParent( ); } else { element = element.getExtendsElement( ); }
private static String searchForExternalizedValue( DesignElement element, String propIDName, ULocale locale ) { while ( element != null ) { Module root = element.getRoot( ); String textKey = (String) element.getLocalProperty( root, propIDName ); if ( !StringUtil.isBlank( textKey ) ) { String externalizedText = root.getMessage( textKey, locale ); return externalizedText; } element = element.getExtendsElement( ); } return null; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a961107161bf3c7fbb712ccc81a80f2becaa378a/ModelUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 1623, 1290, 6841, 1235, 620, 12, 29703, 1046, 930, 16, 1082, 202, 780, 2270, 734, 461, 16, 29145, 2573, 262, 202, 95, 202, 202, 17523, 261, 930, 480, 446, 262, 202, 202, 95, 1082, 202, 3120, 1365, 273, 930, 18, 588, 2375, 12, 11272, 1082, 202, 780, 977, 653, 273, 261, 780, 13, 930, 18, 588, 2042, 1396, 12, 1365, 16, 6862, 202, 5986, 734, 461, 11272, 1082, 202, 430, 261, 401, 13565, 18, 291, 7796, 12, 977, 653, 262, 262, 1082, 202, 95, 9506, 202, 780, 3903, 1235, 1528, 273, 1365, 18, 24906, 12, 977, 653, 16, 2573, 11272, 9506, 202, 2463, 3903, 1235, 1528, 31, 1082, 202, 97, 1082, 202, 2956, 273, 930, 18, 588, 19581, 1046, 12, 11272, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 1623, 1290, 6841, 1235, 620, 12, 29703, 1046, 930, 16, 1082, 202, 780, 2270, 734, 461, 16, 29145, 2573, 262, 202, 95, 202, 202, 17523, 261, 930, 480, 446, 262, 202, 202, 95, 1082, 202, 3120, 1365, 273, 930, 18, 588, 2375, 12, 11272, 1082, 202, 780, 977, 653, 273, 261, 780, 13, 930, 18, 588, 2042, 1396, 12, 1365, 16, 6862, 202, 5986, 734, 461, 11272, 1082, 202, 430, 261, 401, 13565, 18, 291, 7796, 12, 977, 653, 262, 262, 1082, 202, 95, 9506, 202, 780, 3903, 1235, 1528, 273, 1365, 18, 24906, 12, 977, 653, 16, 2573, 11272, 9506, 202, 2463, 3903, 1235, 1528, 31, 1082, 202, 97, 1082, 202, 2956, 273, 2 ]
q = new StringBuffer("SELECT ").append(table).append('.') .append(idfield).append(" FROM ") .append(table).append(" ") .append(home.getSubnodeRelation()) .toString();
q = b.append(" ").append(home.getSubnodeRelation()).toString();
public List getNodeIDs(Node home, Relation rel) throws Exception { // Transactor tx = (Transactor) Thread.currentThread (); // tx.timer.beginEvent ("getNodeIDs "+home); if ((rel == null) || (rel.otherType == null) || !rel.otherType.isRelational()) { // this should never be called for embedded nodes throw new RuntimeException("NodeMgr.getNodeIDs called for non-relational node " + home); } else { List retval = new ArrayList(); // if we do a groupby query (creating an intermediate layer of groupby nodes), // retrieve the value of that field instead of the primary key String idfield = (rel.groupby == null) ? rel.otherType.getIDField() : rel.groupby; Connection con = rel.otherType.getConnection(); String table = rel.otherType.getTableName(); Statement stmt = null; try { String q = null; if (home.getSubnodeRelation() != null) { // subnode relation was explicitly set q = new StringBuffer("SELECT ").append(table).append('.') .append(idfield).append(" FROM ") .append(table).append(" ") .append(home.getSubnodeRelation()) .toString(); } else { // let relation object build the query q = new StringBuffer("SELECT ").append(idfield).append(" FROM ") .append(table) .append(rel.buildQuery(home, home.getNonVirtualParent(), null, " WHERE ", true)) .toString(); } if (logSql) { app.logEvent("### getNodeIDs: " + q); } stmt = con.createStatement(); if (rel.maxSize > 0) { stmt.setMaxRows(rel.maxSize); } ResultSet result = stmt.executeQuery(q); // problem: how do we derive a SyntheticKey from a not-yet-persistent Node? Key k = (rel.groupby != null) ? home.getKey() : null; while (result.next()) { String kstr = result.getString(1); // jump over null values - this can happen especially when the selected // column is a group-by column. if (kstr == null) { continue; } // make the proper key for the object, either a generic DB key or a groupby key Key key = (rel.groupby == null) ? (Key) new DbKey(rel.otherType, kstr) : (Key) new SyntheticKey(k, kstr); retval.add(new NodeHandle(key)); // if these are groupby nodes, evict nullNode keys if (rel.groupby != null) { Node n = (Node) cache.get(key); if ((n != null) && n.isNullNode()) { evictKey(key); } } } } finally { // tx.timer.endEvent ("getNodeIDs "+home); if (stmt != null) { try { stmt.close(); } catch (Exception ignore) { } } } return retval; } }
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/507949310c616f1c639b071ea7f27f7c17ec21ff/NodeManager.java/clean/src/helma/objectmodel/db/NodeManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 5973, 5103, 12, 907, 6382, 16, 7317, 1279, 13, 1216, 1185, 288, 3639, 368, 2604, 3362, 2229, 273, 261, 1429, 3362, 13, 4884, 18, 2972, 3830, 261, 1769, 3639, 368, 2229, 18, 12542, 18, 10086, 1133, 7566, 588, 907, 5103, 13773, 8712, 1769, 3639, 309, 14015, 2878, 422, 446, 13, 747, 261, 2878, 18, 3011, 559, 422, 446, 13, 747, 401, 2878, 18, 3011, 559, 18, 291, 15060, 10756, 288, 5411, 368, 333, 1410, 5903, 506, 2566, 364, 7488, 2199, 5411, 604, 394, 3235, 2932, 907, 9455, 18, 588, 907, 5103, 2566, 364, 1661, 17, 5488, 287, 756, 315, 397, 4766, 4202, 6382, 1769, 3639, 289, 469, 288, 5411, 987, 5221, 273, 394, 2407, 5621, 5411, 368, 309, 732, 741, 279, 13126, 843, 261, 23799, 392, 12110, 3018, 434, 13126, 2199, 3631, 5411, 368, 4614, 326, 460, 434, 716, 652, 3560, 434, 326, 3354, 498, 5411, 514, 612, 1518, 273, 261, 2878, 18, 1655, 1637, 422, 446, 13, 692, 1279, 18, 3011, 559, 18, 588, 734, 974, 1435, 4766, 10402, 294, 1279, 18, 1655, 1637, 31, 5411, 4050, 356, 273, 1279, 18, 3011, 559, 18, 588, 1952, 5621, 5411, 514, 1014, 273, 1279, 18, 3011, 559, 18, 588, 7147, 5621, 5411, 8056, 3480, 273, 446, 31, 5411, 775, 288, 7734, 514, 1043, 273, 446, 31, 7734, 309, 261, 8712, 18, 588, 1676, 2159, 3963, 1435, 480, 446, 13, 288, 10792, 368, 28300, 2533, 1703, 8122, 444, 10792, 1043, 273, 394, 6674, 2932, 4803, 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, 377, 1071, 987, 5973, 5103, 12, 907, 6382, 16, 7317, 1279, 13, 1216, 1185, 288, 3639, 368, 2604, 3362, 2229, 273, 261, 1429, 3362, 13, 4884, 18, 2972, 3830, 261, 1769, 3639, 368, 2229, 18, 12542, 18, 10086, 1133, 7566, 588, 907, 5103, 13773, 8712, 1769, 3639, 309, 14015, 2878, 422, 446, 13, 747, 261, 2878, 18, 3011, 559, 422, 446, 13, 747, 401, 2878, 18, 3011, 559, 18, 291, 15060, 10756, 288, 5411, 368, 333, 1410, 5903, 506, 2566, 364, 7488, 2199, 5411, 604, 394, 3235, 2932, 907, 9455, 18, 588, 907, 5103, 2566, 364, 1661, 17, 5488, 287, 756, 315, 397, 4766, 4202, 6382, 1769, 3639, 289, 469, 288, 5411, 987, 5221, 273, 394, 2407, 5621, 5411, 2 ]
main(String args[]) { System.out.println("TestNotification");
public static void main(String args[]) { System.out.println("TestNotification"); int cnt = 20; Mailbox mailbox = new Mailbox(cnt); Flag flag = new Flag(); Task tasks[] = new Task[cnt]; for (int i = 0; i < cnt; ++i) tasks[i] = new Task(mailbox, flag, i); TestNotification test = new TestNotification(tasks); test.run(); mailbox.await(); for (int i = 0; i < cnt; ++i) System.out.println("main: " + mailbox.messages[i] + " replied");
main(String args[]) { System.out.println("TestNotification"); int cnt = 20; Mailbox mailbox = new Mailbox(cnt); Flag flag = new Flag(); Task tasks[] = new Task[cnt]; for (int i = 0; i < cnt; ++i) tasks[i] = new Task(mailbox, flag); TestNotification test = new TestNotification(tasks); test.run(); // wait for mailbox to fill up mailbox.await(); // display mail for (int i = 0; i < cnt; ++i) System.out.println("main: " + mailbox.messages[i] + " replied"); // pause to allow tasks to queue up on flag System.out.println("main: sleeping"); try { Thread.currentThread().sleep(1000); } catch (InterruptedException e) {} System.out.println("main: running"); // release tasks waiting on flag, letting them terminate flag.set(); // wait for them to terminate for (int i = 0; i < cnt; ++i) { System.out.println("main: joining " + tasks[i].getName()); try { tasks[i].join(); } catch (InterruptedException e) { } } System.out.println("main: bye"); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/662b904498196fc2a7a8bf73fb850a0e3a3639d3/TestNotification.java/clean/rvm/src/examples/threads/TestNotification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 2774, 12, 780, 833, 63, 5717, 1377, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 4709, 4386, 8863, 1377, 509, 377, 7599, 377, 273, 4200, 31, 1377, 11542, 2147, 14187, 273, 394, 11542, 2147, 12, 13085, 1769, 1377, 9960, 565, 2982, 565, 273, 394, 9960, 5621, 1377, 3837, 565, 4592, 8526, 273, 394, 3837, 63, 13085, 15533, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7599, 31, 965, 77, 13, 540, 4592, 63, 77, 65, 273, 394, 3837, 12, 4408, 2147, 16, 2982, 1769, 5411, 7766, 4386, 1842, 273, 394, 7766, 4386, 12, 9416, 1769, 1377, 1842, 18, 2681, 5621, 5411, 368, 2529, 364, 14187, 358, 3636, 731, 1377, 14187, 18, 30515, 5621, 5411, 368, 2562, 4791, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7599, 31, 965, 77, 13, 540, 2332, 18, 659, 18, 8222, 2932, 5254, 30, 315, 397, 14187, 18, 6833, 63, 77, 65, 397, 315, 283, 3110, 8863, 1377, 368, 11722, 358, 1699, 4592, 358, 2389, 731, 603, 2982, 1377, 2332, 18, 659, 18, 8222, 2932, 5254, 30, 5329, 310, 8863, 1377, 775, 288, 4884, 18, 2972, 3830, 7675, 19607, 12, 18088, 1769, 289, 1044, 261, 24485, 503, 425, 13, 2618, 1377, 2332, 18, 659, 18, 8222, 2932, 5254, 30, 3549, 8863, 540, 368, 3992, 4592, 7336, 603, 2982, 16, 2231, 1787, 2182, 10850, 1377, 2982, 18, 542, 5621, 5411, 368, 2529, 364, 2182, 358, 10850, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7599, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 2774, 12, 780, 833, 63, 5717, 1377, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 4709, 4386, 8863, 1377, 509, 377, 7599, 377, 273, 4200, 31, 1377, 11542, 2147, 14187, 273, 394, 11542, 2147, 12, 13085, 1769, 1377, 9960, 565, 2982, 565, 273, 394, 9960, 5621, 1377, 3837, 565, 4592, 8526, 273, 394, 3837, 63, 13085, 15533, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7599, 31, 965, 77, 13, 540, 4592, 63, 77, 65, 273, 394, 3837, 12, 4408, 2147, 16, 2982, 1769, 5411, 7766, 4386, 1842, 273, 394, 7766, 4386, 12, 9416, 1769, 1377, 1842, 18, 2681, 5621, 5411, 368, 2529, 364, 14187, 358, 3636, 731, 1377, 14187, 18, 30515, 5621, 5411, 368, 2562, 2 ]
public static void updateTaskDetails(String repositoryUrl, TracTask task, TracTicket ticket) {
public static void updateTaskDetails(String repositoryUrl, TracTask task, TracTicket ticket, boolean notify) {
public static void updateTaskDetails(String repositoryUrl, TracTask task, TracTicket ticket) { if (ticket.isValid()) { String url = repositoryUrl + ITracClient.TICKET_URL + ticket.getId(); task.setUrl(url); if (ticket.getValue(Key.SUMMARY) != null) { task.setDescription(ticket.getId() + ": " + ticket.getValue(Key.SUMMARY)); } } if (ticket.getValue(Key.STATUS) != null) { TracTask.Status status = TracTask.Status.fromStatus(ticket.getValue(Key.STATUS)); task.setCompleted(status != null && status == TracTask.Status.CLOSED); } else { task.setCompleted(false); } if (ticket.getValue(Key.PRIORITY) != null) { PriorityLevel priority = TracTask.PriorityLevel.fromPriority(ticket.getValue(Key.PRIORITY)); task.setPriority((priority != null) ? priority.toString() : ticket.getValue(Key.PRIORITY)); } if (ticket.getValue(Key.TYPE) != null) { Kind kind = TracTask.Kind.fromType(ticket.getValue(Key.TYPE)); task.setKind((kind != null) ? kind.toString() : ticket.getValue(Key.TYPE)); } if (ticket.getCreated() != null) { task.setCreationDate(ticket.getCreated()); } TasksUiPlugin.getTaskListManager().getTaskList().notifyLocalInfoChanged(task); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/95e3c8e358667a06de71ee1d0edb6466fef9e7c0/TracRepositoryConnector.java/buggy/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/TracRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1089, 2174, 3790, 12, 780, 3352, 1489, 16, 2197, 71, 2174, 1562, 16, 2197, 71, 13614, 9322, 13, 288, 202, 202, 430, 261, 16282, 18, 26810, 10756, 288, 1082, 202, 780, 880, 273, 3352, 1489, 397, 467, 1609, 71, 1227, 18, 56, 16656, 1584, 67, 1785, 397, 9322, 18, 26321, 5621, 1082, 202, 4146, 18, 542, 1489, 12, 718, 1769, 1082, 202, 430, 261, 16282, 18, 24805, 12, 653, 18, 14020, 11293, 13, 480, 446, 13, 288, 9506, 202, 4146, 18, 542, 3291, 12, 16282, 18, 26321, 1435, 397, 6398, 315, 397, 9322, 18, 24805, 12, 653, 18, 14020, 11293, 10019, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 16282, 18, 24805, 12, 653, 18, 8608, 13, 480, 446, 13, 288, 1082, 202, 1609, 71, 2174, 18, 1482, 1267, 273, 2197, 71, 2174, 18, 1482, 18, 2080, 1482, 12, 16282, 18, 24805, 12, 653, 18, 8608, 10019, 1082, 202, 4146, 18, 542, 9556, 12, 2327, 480, 446, 597, 1267, 422, 2197, 71, 2174, 18, 1482, 18, 28475, 1769, 202, 202, 97, 469, 288, 1082, 202, 4146, 18, 542, 9556, 12, 5743, 1769, 202, 202, 97, 202, 202, 430, 261, 16282, 18, 24805, 12, 653, 18, 19804, 13, 480, 446, 13, 288, 1082, 202, 8183, 2355, 4394, 273, 2197, 71, 2174, 18, 8183, 2355, 18, 2080, 8183, 12, 16282, 18, 24805, 12, 653, 18, 19804, 10019, 1082, 202, 4146, 18, 542, 8183, 12443, 8457, 480, 446, 13, 692, 4394, 18, 10492, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1089, 2174, 3790, 12, 780, 3352, 1489, 16, 2197, 71, 2174, 1562, 16, 2197, 71, 13614, 9322, 13, 288, 202, 202, 430, 261, 16282, 18, 26810, 10756, 288, 1082, 202, 780, 880, 273, 3352, 1489, 397, 467, 1609, 71, 1227, 18, 56, 16656, 1584, 67, 1785, 397, 9322, 18, 26321, 5621, 1082, 202, 4146, 18, 542, 1489, 12, 718, 1769, 1082, 202, 430, 261, 16282, 18, 24805, 12, 653, 18, 14020, 11293, 13, 480, 446, 13, 288, 9506, 202, 4146, 18, 542, 3291, 12, 16282, 18, 26321, 1435, 397, 6398, 315, 397, 9322, 18, 24805, 12, 653, 18, 14020, 11293, 10019, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 16282, 18, 24805, 2 ]
butLoad = new Button("Load");
butLoad = new Button(Messages.getString("MovementDisplay.butLoad"));
public MovementDisplay(ClientGUI clientgui) { this.clientgui = clientgui; this.client = clientgui.getClient(); client.addGameListener(this); gear = MovementDisplay.GEAR_LAND; shiftheld = false; client.game.board.addBoardListener(this); setupStatusBar("Waiting to begin Movement phase..."); butClear = new Button("Clear mines"); butClear.addActionListener(this); butClear.setEnabled(false); butClear.setActionCommand(MOVE_CLEAR); butWalk = new Button("Walk"); butWalk.addActionListener(this); butWalk.setEnabled(false); butWalk.setActionCommand(MOVE_WALK); butJump = new Button("Jump"); butJump.addActionListener(this); butJump.setEnabled(false); butJump.setActionCommand(MOVE_JUMP); butBackup = new Button("Back Up"); butBackup.addActionListener(this); butBackup.setEnabled(false); butBackup.setActionCommand(MOVE_BACK_UP); butTurn = new Button("Turn"); butTurn.addActionListener(this); butTurn.setEnabled(false); butTurn.setActionCommand(MOVE_TURN); butUp = new Button("Get Up"); butUp.addActionListener(this); butUp.setEnabled(false); butUp.setActionCommand(MOVE_GET_UP); butDown = new Button("Go Prone"); butDown.addActionListener(this); butDown.setEnabled(false); butDown.setActionCommand(MOVE_GO_PRONE); butCharge = new Button("Charge"); butCharge.addActionListener(this); butCharge.setEnabled(false); butCharge.setActionCommand(MOVE_CHARGE); butDfa = new Button("D.F.A."); butDfa.addActionListener(this); butDfa.setEnabled(false); butDfa.setActionCommand(MOVE_DFA); butFlee = new Button("Flee"); butFlee.addActionListener(this); butFlee.setEnabled(false); butFlee.setActionCommand(MOVE_FLEE); butEject = new Button("Eject"); butEject.addActionListener(this); butEject.setEnabled(false); butEject.setActionCommand(MOVE_EJECT); butRAC = new Button("Unjam RAC"); butRAC.addActionListener(this); butRAC.setEnabled(false); butRAC.setActionCommand(MOVE_UNJAM); butMore = new Button("More..."); butMore.addActionListener(this); butMore.setEnabled(false); butNext = new Button("Next Unit"); butNext.addActionListener(this); butNext.setEnabled(false); butNext.setActionCommand(MOVE_NEXT); butDone = new Button("Move"); butDone.addActionListener(this); butDone.setEnabled(false); butLoad = new Button("Load"); butLoad.addActionListener(this); butLoad.setEnabled(false); butLoad.setActionCommand(MOVE_LOAD); butUnload = new Button("Unload"); butUnload.addActionListener(this); butUnload.setEnabled(false); butUnload.setActionCommand(MOVE_UNLOAD); butSpace = new Button("."); butSpace.setEnabled(false); // layout button grid panButtons = new Panel(); buttonLayout = 0; setupButtonPanel(); // layout screen GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.weightx = 1.0; c.weighty = 1.0; c.insets = new Insets(1, 1, 1, 1);// c.gridwidth = GridBagConstraints.REMAINDER;// addBag(clientgui.bv, gridbag, c);// c.weightx = 1.0; c.weighty = 0;// c.gridwidth = 1;// addBag(client.cb.getComponent(), gridbag, c); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 0.0; c.weighty = 0.0; addBag(panButtons, gridbag, c); c.weightx = 1.0; c.weighty = 0.0; c.gridwidth = GridBagConstraints.REMAINDER; addBag(panStatus, gridbag, c); clientgui.bv.addKeyListener( this ); addKeyListener( this ); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/MovementDisplay.java/buggy/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 26140, 4236, 12, 1227, 43, 5370, 1004, 20292, 13, 288, 3639, 333, 18, 2625, 20292, 273, 1004, 20292, 31, 3639, 333, 18, 2625, 273, 1004, 20292, 18, 588, 1227, 5621, 3639, 1004, 18, 1289, 12496, 2223, 12, 2211, 1769, 3639, 30142, 273, 490, 26140, 4236, 18, 7113, 985, 67, 48, 4307, 31, 3639, 699, 430, 451, 488, 273, 629, 31, 3639, 1004, 18, 13957, 18, 3752, 18, 1289, 22233, 2223, 12, 2211, 1769, 3639, 3875, 1482, 5190, 2932, 15946, 358, 2376, 490, 26140, 6855, 7070, 1769, 3639, 1496, 9094, 273, 394, 12569, 2932, 9094, 1131, 281, 8863, 3639, 1496, 9094, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1496, 9094, 18, 542, 1526, 12, 5743, 1769, 3639, 1496, 9094, 18, 542, 1803, 2189, 12, 16537, 67, 23181, 985, 1769, 3639, 1496, 9463, 273, 394, 12569, 2932, 9463, 8863, 3639, 1496, 9463, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1496, 9463, 18, 542, 1526, 12, 5743, 1769, 3639, 1496, 9463, 18, 542, 1803, 2189, 12, 16537, 67, 59, 1013, 47, 1769, 3639, 1496, 26743, 273, 394, 12569, 2932, 26743, 8863, 3639, 1496, 26743, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1496, 26743, 18, 542, 1526, 12, 5743, 1769, 3639, 1496, 26743, 18, 542, 1803, 2189, 12, 16537, 67, 46, 23942, 1769, 3639, 1496, 6248, 273, 394, 12569, 2932, 2711, 1948, 8863, 3639, 1496, 6248, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1496, 6248, 18, 542, 1526, 12, 5743, 1769, 3639, 1496, 6248, 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, 490, 26140, 4236, 12, 1227, 43, 5370, 1004, 20292, 13, 288, 3639, 333, 18, 2625, 20292, 273, 1004, 20292, 31, 3639, 333, 18, 2625, 273, 1004, 20292, 18, 588, 1227, 5621, 3639, 1004, 18, 1289, 12496, 2223, 12, 2211, 1769, 3639, 30142, 273, 490, 26140, 4236, 18, 7113, 985, 67, 48, 4307, 31, 3639, 699, 430, 451, 488, 273, 629, 31, 3639, 1004, 18, 13957, 18, 3752, 18, 1289, 22233, 2223, 12, 2211, 1769, 3639, 3875, 1482, 5190, 2932, 15946, 358, 2376, 490, 26140, 6855, 7070, 1769, 3639, 1496, 9094, 273, 394, 12569, 2932, 9094, 1131, 281, 8863, 3639, 1496, 9094, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1496, 9094, 18, 542, 1526, 12, 5743, 1769, 2 ]
titleArea.setBackground(background); final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB);
titleArea.setBackground(background);
private Composite createTitleArea(Composite parent) { // Create the title area which will contain // a title, message, and image. int margins = 2; titleArea = new Composite(parent, SWT.NONE); FormLayout layout = new FormLayout(); layout.marginHeight = margins; layout.marginWidth = margins; titleArea.setLayout(layout); // Get the background color for the title area Display display = parent.getDisplay(); Color background = JFaceColors.getBannerBackground(display); GridData layoutData = new GridData(GridData.FILL_HORIZONTAL); layoutData.heightHint = JFaceResources.getImage(PREF_DLG_TITLE_IMG) .getBounds().height + (margins * 3); titleArea.setLayoutData(layoutData); titleArea.setBackground(background); final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setForeground(borderColor); Rectangle bounds = titleArea.getClientArea(); bounds.height = bounds.height - 2; bounds.width = bounds.width - 1; e.gc.drawRectangle(bounds); } }); // Add a dispose listener titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (titleAreaColor != null) titleAreaColor.dispose(); borderColor.dispose(); } }); // Message label messageArea = new DialogMessageArea(); messageArea.createContents(titleArea); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (JFaceResources.BANNER_FONT.equals(event.getProperty())) updateMessage(); if (JFaceResources.DIALOG_FONT.equals(event.getProperty())) { updateMessage(); Font dialogFont = JFaceResources.getDialogFont(); updateTreeFont(dialogFont); Control[] children = ((Composite) buttonBar).getChildren(); for (int i = 0; i < children.length; i++) children[i].setFont(dialogFont); } } }; titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); JFaceResources.getFontRegistry().addListener(fontListener); // Title image titleImage = new Label(titleArea, SWT.LEFT); titleImage.setBackground(background); titleImage.setImage(JFaceResources.getImage(PREF_DLG_TITLE_IMG)); FormData imageData = new FormData(); imageData.right = new FormAttachment(100); imageData.top = new FormAttachment(0); imageData.bottom = new FormAttachment(100); titleImage.setLayoutData(imageData); messageArea.setTitleLayoutData(createMessageAreaData()); messageArea.setMessageLayoutData(createMessageAreaData()); return titleArea; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/996e7202acba48fa3b9272f625853040691c7095/PreferenceDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14728, 752, 4247, 5484, 12, 9400, 982, 13, 288, 202, 202, 759, 1788, 326, 2077, 5091, 1492, 903, 912, 202, 202, 759, 279, 2077, 16, 883, 16, 471, 1316, 18, 202, 202, 474, 24889, 273, 576, 31, 202, 202, 2649, 5484, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1204, 3744, 3511, 273, 394, 2748, 3744, 5621, 202, 202, 6741, 18, 10107, 2686, 273, 24889, 31, 202, 202, 6741, 18, 10107, 2384, 273, 24889, 31, 202, 202, 2649, 5484, 18, 542, 3744, 12, 6741, 1769, 202, 202, 759, 968, 326, 5412, 2036, 364, 326, 2077, 5091, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 2957, 5412, 273, 804, 11824, 12570, 18, 588, 27398, 8199, 12, 5417, 1769, 202, 202, 6313, 751, 3511, 751, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 1769, 202, 202, 6741, 751, 18, 4210, 7002, 273, 804, 11824, 3805, 18, 588, 2040, 12, 3670, 42, 67, 8914, 43, 67, 14123, 67, 3445, 43, 13, 9506, 202, 18, 588, 5694, 7675, 4210, 9506, 202, 15, 261, 10107, 87, 380, 890, 1769, 202, 202, 2649, 5484, 18, 542, 3744, 751, 12, 6741, 751, 1769, 202, 202, 2649, 5484, 18, 542, 8199, 12, 9342, 1769, 202, 202, 6385, 5563, 5795, 2957, 273, 394, 5563, 12, 2649, 5484, 18, 588, 4236, 9334, 9506, 202, 1767, 1204, 18, 8815, 28018, 11343, 1769, 202, 202, 2649, 5484, 18, 1289, 12699, 2223, 12, 2704, 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, 14728, 752, 4247, 5484, 12, 9400, 982, 13, 288, 202, 202, 759, 1788, 326, 2077, 5091, 1492, 903, 912, 202, 202, 759, 279, 2077, 16, 883, 16, 471, 1316, 18, 202, 202, 474, 24889, 273, 576, 31, 202, 202, 2649, 5484, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1204, 3744, 3511, 273, 394, 2748, 3744, 5621, 202, 202, 6741, 18, 10107, 2686, 273, 24889, 31, 202, 202, 6741, 18, 10107, 2384, 273, 24889, 31, 202, 202, 2649, 5484, 18, 542, 3744, 12, 6741, 1769, 202, 202, 759, 968, 326, 5412, 2036, 364, 326, 2077, 5091, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 2957, 5412, 273, 2 ]
public void setRSeqNumber(int rSeqNumber) throws InvalidArgumentException { if (rSeqNumber <= 0)
public void setRSeqNumber(long rSeqNumber) throws InvalidArgumentException { if (rSeqNumber <= 0 || cSeqNumber > ((long)1)<<32 - 1)
public void setRSeqNumber(int rSeqNumber) throws InvalidArgumentException { if (rSeqNumber <= 0) throw new InvalidArgumentException("Bad rSeq # " + rSeqNumber); this.rSeqNumber = rSeqNumber; }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/RAck.java/buggy/src/gov/nist/javax/sip/header/RAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 54, 6926, 1854, 12, 474, 436, 6926, 1854, 13, 1216, 3226, 288, 202, 202, 430, 261, 86, 6926, 1854, 1648, 374, 13, 1082, 202, 12849, 394, 3226, 2932, 6434, 436, 6926, 468, 315, 397, 436, 6926, 1854, 1769, 202, 202, 2211, 18, 86, 6926, 1854, 273, 436, 6926, 1854, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 54, 6926, 1854, 12, 474, 436, 6926, 1854, 13, 1216, 3226, 288, 202, 202, 430, 261, 86, 6926, 1854, 1648, 374, 13, 1082, 202, 12849, 394, 3226, 2932, 6434, 436, 6926, 468, 315, 397, 436, 6926, 1854, 1769, 202, 202, 2211, 18, 86, 6926, 1854, 273, 436, 6926, 1854, 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 ]
public void run() { Category log = ThreadCategory.getInstance(getClass()); if (suspendCollection) { log.debug("DiscoveryLink.run: Suspended!"); } else { LinkableNode[] all_snmplinknodes = Linkd.getInstance() .getSnmpLinkableNodes(); List routerNodes = new ArrayList(); List cdpNodes = new ArrayList(); List macsParsed = new ArrayList(); Iterator ite = null; for (int i = 0; i < all_snmplinknodes.length; i++) { LinkableNode curNode = all_snmplinknodes[i]; if (curNode == null) { if (log.isEnabledFor(Priority.ERROR)) log.error("run: null linkable node found for iterator " + i); continue; } int curNodeId = curNode.getNodeId(); String curIpAddr = curNode.getSnmpPrimaryIpAddr(); activenode.add(curNode); if (curNode.isBridgeNode) m_bridge.put(new Integer(curNodeId), curNode); if (curNode.hasCdpInterfaces()) cdpNodes.add(curNode); if (curNode.hasRouteInterfaces()) routerNodes.add(curNode); } if (log.isDebugEnabled()) log .debug("run: finding links among nodes using Cisco Discovery Protocol"); // First of all use quick methods to get backbone ports for speeding // up // the link discovery!!!!! // Try Cisco Discovery Protocol to found link among all nodes // Add CDP info for backbones // complete discovery!!!!! ite = cdpNodes.iterator(); while (ite.hasNext()) { LinkableNode curNode = (LinkableNode) ite.next(); int curCdpNodeId = curNode.getNodeId(); String curCdpIpAddr = curNode.getSnmpPrimaryIpAddr(); if (log.isDebugEnabled()) log.debug("run: parsing bridge nodeid " + curCdpNodeId + " ip address " + curCdpIpAddr); if (log.isDebugEnabled()) log.debug("run: parsing " + curNode.getCdpInterfaces().size() + " Cdp Interfaces. "); Iterator sub_ite = curNode.getCdpInterfaces().iterator(); while (sub_ite.hasNext()) { CdpInterface cdpIface = (CdpInterface) sub_ite.next(); InetAddress targetIpAddr = cdpIface.getCdpTargetIpAddr(); int targetCdpNodeId = cdpIface.getCdpTargetNodeId(); if (targetCdpNodeId == -1) { if (log.isDebugEnabled()) log.debug("run: no node id found for ip address " + targetIpAddr.getHostAddress() + ". Skipping"); continue; } if (targetCdpNodeId == curCdpNodeId) { if (log.isDebugEnabled()) log.debug("run: node id found for ip address " + targetIpAddr.getHostAddress() + " is itself. Skipping"); continue; } int cdpIfIndex = cdpIface.getCdpIfIndex(); if (cdpIfIndex < 0) { log.warn("run: found not valid CDP IfIndex " + cdpIfIndex + " . Skipping"); continue; } int cdpDestIfindex = cdpIface.getCdpTargetIfIndex(); if (cdpDestIfindex < 0) { log .warn("run: found not valid CDP destination IfIndex " + cdpDestIfindex + " . Skipping"); continue; } if (log.isDebugEnabled()) log.debug("run: found link: nodeid " + curCdpNodeId + " ifindex " + cdpIfIndex + " other nodeid " + targetCdpNodeId + " ifindex " + cdpDestIfindex); if (curNode.isBridgeNode() && isBridgeNode(targetCdpNodeId)) { int bridgeport1 = curNode.getBridgePort(cdpIfIndex); if (curNode.isBackBoneBridgePort(bridgeport1)) { if (log.isDebugEnabled()) log.debug("run: backbone bridge port " + bridgeport1 + " already parsed. Skipping"); continue; } LinkableNode targetNode = (LinkableNode) m_bridge .get(new Integer(targetCdpNodeId)); int bridgeport2 = targetNode .getBridgePort(cdpDestIfindex); if (targetNode.isBackBoneBridgePort(bridgeport2)) { if (log.isDebugEnabled()) log.debug("run: backbone bridge port " + bridgeport2 + " already parsed. Skipping"); continue; } if (isNearestBridgeLink(curNode, bridgeport1, targetNode, bridgeport2)) { curNode.addBackBoneBridgePorts(bridgeport1); targetNode.addBackBoneBridgePorts(bridgeport2); m_bridge.put(new Integer(curCdpNodeId), curNode); m_bridge.put(new Integer(targetCdpNodeId), targetNode); List temp_macs = getMacsOnBridgeLink(curNode, bridgeport1, targetNode, bridgeport2); if (temp_macs == null || temp_macs.isEmpty()) { if (log.isDebugEnabled()) log .debug("run: mac's list on link is empty."); } else { Iterator mac_ite = temp_macs.iterator(); if (log.isDebugEnabled()) log .debug("run: finding ethernet link on founded bridge node link"); while (mac_ite.hasNext()) { String curMacAddress = (String) mac_ite .next(); if (macsParsed.contains(curMacAddress)) { log .warn("run: mac address " + curMacAddress + " just found on other bridge port! Possible Ethernet Loop. "); continue; } macsParsed.add(curMacAddress); if (log.isDebugEnabled()) log .debug("run: find ethernet mac address " + curMacAddress + " on bridge link"); MacToNodeLink lMac = new MacToNodeLink( curMacAddress); lMac.setNodeparentid(curCdpNodeId); lMac.setParentifindex(cdpIfIndex); maclinks.add(lMac); } } } else { if (log.isDebugEnabled()) log .debug("run: link found not on nearest. Skipping"); continue; } } else if (curNode.isBridgeNode || isBridgeNode(targetCdpNodeId)) { if (log.isDebugEnabled()) log .debug("run: ethernet link found not on bridge nodes. Skipping"); continue; } NodeToNodeLink lk = new NodeToNodeLink(targetCdpNodeId, cdpDestIfindex); lk.setNodeparentid(curCdpNodeId); lk.setParentifindex(cdpIfIndex); links.add(lk); if (log.isDebugEnabled()) log.debug("run: link found added."); } } // try get backbone links between switches using STP info // and store information in Bridge class if (log.isDebugEnabled()) log .debug("run: try to found backbone ethernet links among bridge nodes using Spanning Tree Protocol"); ite = m_bridge.values().iterator(); while (ite.hasNext()) { LinkableNode curNode = (LinkableNode) ite.next(); int curNodeId = curNode.getNodeId(); String cupIpAddr = curNode.getSnmpPrimaryIpAddr(); if (log.isDebugEnabled()) log.debug("run: parsing bridge nodeid " + curNodeId + " ip address " + cupIpAddr); Iterator sub_ite = curNode.getStpInterfaces().entrySet() .iterator(); if (log.isDebugEnabled()) log.debug("run: parsing " + curNode.getStpInterfaces().size() + " Vlan. "); while (sub_ite.hasNext()) { Map.Entry me = (Map.Entry) sub_ite.next(); String vlan = (String) me.getKey(); String curBaseBridgeAddress = curNode .getBridgeIdentifier(vlan); if (log.isDebugEnabled()) log.debug("run: found bridge identifier " + curBaseBridgeAddress); String designatedRoot = null; if (curNode.hasStpRoot(vlan)) { designatedRoot = curNode.getStpRoot(vlan); } else { if (log.isDebugEnabled()) log .debug("run: desigated root bridge identifier not found. Skipping" + curBaseBridgeAddress); continue; } if (designatedRoot.equals("0000000000000000")) { log.warn("run: designated root is invalid. Skipping"); continue; } // check if designated // bridge is it self // if bridge is STP root bridge itself exiting // searching on linkablesnmpnodes if (curNode.isBridgeIdentifier(designatedRoot.substring(4))) { if (log.isDebugEnabled()) log .debug("run: STP designated root is the bridge itself. Skipping"); continue; } Iterator stp_ite = ((List) me.getValue()).iterator(); // Now parse STP bridge port info to get designated bridge if (log.isDebugEnabled()) log .debug("run: STP designated root is another bridge. Parsing Stp Interface"); while (stp_ite.hasNext()) { BridgeStpInterface stpIface = (BridgeStpInterface) stp_ite .next(); // the bridge port number int stpbridgeport = stpIface.getBridgeport(); // if port is a backbone port continue if (curNode.isBackBoneBridgePort(stpbridgeport)) { if (log.isDebugEnabled()) log.debug("run: bridge port " + stpbridgeport + " already found .... Skipping"); continue; } String stpPortDesignatedPort = stpIface .getStpPortDesignatedPort(); String stpPortDesignatedBridge = stpIface .getStpPortDesignatedBridge(); if (log.isDebugEnabled()) log.debug("run: parsing bridge port " + stpbridgeport + " with stp designated bridge " + stpPortDesignatedBridge + " and with stp designated port " + stpPortDesignatedPort); if (stpPortDesignatedBridge.equals("0000000000000000")) { log.warn("run: designated bridge is invalid " + stpPortDesignatedBridge); continue; } if (curNode.isBridgeIdentifier(stpPortDesignatedBridge .substring(4))) { if (log.isDebugEnabled()) log.debug("run: designated bridge for port " + stpbridgeport + " is bridge itself "); continue; } if (stpPortDesignatedPort.equals("0000")) { log.warn("run: designated port is invalid " + stpPortDesignatedPort); continue; } //A Port Identifier shall be encoded as two octets, // taken to represent an unsigned binary number. If two // Port //Identifiers are numerically compared, the lesser // number denotes the Port of better priority. The more //significant octet of a Port Identifier is a settable // priority component that permits the relative priority // of Ports //on the same Bridge to be managed (17.13.7 and Clause // 14). The less significant twelve bits is the Port //Number expressed as an unsigned binary number. The // value 0 is not used as a Port Number. //NOTEThe number of bits that are considered to be // part of the Port Number (12 bits) differs from the // 1998 and prior //versions of this standard (formerly, the priority // component was 8 bits and the Port Number component // also 8 bits). This //change acknowledged that modern switched LAN // infrastructures call for increasingly large numbers // of Ports to be //supported in a single Bridge. To maintain management // compatibility with older implementations, the // priority //component is still considered, for management // purposes, to be an 8-bit value, but the values that // it can be set to are //restricted to those where the least significant 4 // bits are zero (i.e., only the most significant 4 bits // are settable). int designatedbridgeport = Integer.parseInt( stpPortDesignatedPort.substring(1), 16); // try to see if designated bridge is linkable // snmp node LinkableNode designatedNode = getNodeFromMacIdentifierOfBridgeNode(stpPortDesignatedBridge .substring(4)); int designatednodeid = designatedNode.getNodeId(); if (designatedNode == null) { log .warn("run: no nodeid found for stp bridge address " + stpPortDesignatedBridge + " . Nothing to save to db"); continue; // no saving info if no nodeid } if (log.isDebugEnabled()) log.debug("run: found designated nodeid " + designatednodeid); // test if there are other bridges between this link // USING MAC ADDRESS FORWARDING TABLE if (!isNearestBridgeLink(curNode, stpbridgeport, designatedNode, designatedbridgeport)) { if (log.isDebugEnabled()) log .debug("run: other bridge found between nodes. Nothing to save to db"); continue; // no saving info if no nodeid } // this is a backbone port so try adding to Bridge class // get the ifindex on node int curIfIndex = curNode.getIfindex(stpbridgeport); if (curIfIndex == -1) { log.warn("run: got invalid ifindex"); continue; } int designatedifindex = designatedNode .getIfindex(designatedbridgeport); if (designatedifindex == -1) { log .warn("run: got invalid ifindex on designated node"); continue; } if (log.isDebugEnabled()) log.debug("run: backbone port found for node " + curNodeId + ". Adding to bridge" + stpbridgeport); curNode.addBackBoneBridgePorts(stpbridgeport); m_bridge.put(new Integer(curNodeId), curNode); if (log.isDebugEnabled()) log.debug("run: backbone port found for node " + designatednodeid + " .Adding to helper class bb port " + " bridge port " + designatedbridgeport); designatedNode .addBackBoneBridgePorts(designatedbridgeport); m_bridge.put(new Integer(designatednodeid), designatedNode); // writing to db using class // DbDAtaLinkInterfaceEntry NodeToNodeLink lk = new NodeToNodeLink(curNodeId, curIfIndex); lk.setNodeparentid(designatednodeid); lk.setParentifindex(designatedifindex); links.add(lk); // finding links between two backbone ports List temp_macs = getMacsOnBridgeLink(curNode, stpbridgeport, designatedNode, designatedbridgeport); if (temp_macs == null || temp_macs.isEmpty()) { if (log.isDebugEnabled()) log.debug("run: macs list on link is empty."); continue; } Iterator mac_ite = temp_macs.iterator(); if (log.isDebugEnabled()) log .debug("run: try to found ethernet links on bridge node link"); while (mac_ite.hasNext()) { String curMacAddress = (String) mac_ite.next(); if (macsParsed.contains(curMacAddress)) { log .warn("run: mac address " + curMacAddress + " just found on other bridge port! Possible Ethernet Loop. "); continue; } macsParsed.add(curMacAddress); if (log.isDebugEnabled()) log.debug("run: find ethernet mac address " + curMacAddress + " on bridge link"); MacToNodeLink lMac = new MacToNodeLink( curMacAddress); lMac.setNodeparentid(designatednodeid); lMac.setParentifindex(designatedifindex); maclinks.add(lMac); } } } } // finding backbone links using mac address on ports if (log.isDebugEnabled()) log .debug("run: try to found remaining links using Mac Address Forwarding Table"); ite = m_bridge.values().iterator(); while (ite.hasNext()) { LinkableNode curNode = (LinkableNode) ite.next(); int curNodeId = curNode.getNodeId(); if (log.isDebugEnabled()) log.debug("run: parsing node bridge " + curNodeId); Iterator sub_ite = curNode.getPortMacs().keySet().iterator(); while (sub_ite.hasNext()) { Integer intePort = (Integer) sub_ite.next(); int curBridgePort = intePort.intValue(); if (log.isDebugEnabled()) log.debug("run: parsing bridge port " + curBridgePort + " with mac addresses " + curNode.getMacAddressesOnBridgePort( curBridgePort).toString()); if (curNode.isBackBoneBridgePort(curBridgePort)) { if (log.isDebugEnabled()) log.debug("run: parsing backbone bridge port " + curBridgePort + " .... Skipping"); continue; } // operazione A cerco ottengo la lista dei bridge sulla // porta List macs = new ArrayList(); macs = curNode.getMacAddressesOnBridgePort(curBridgePort); HashMap bridgesOnPort = new HashMap(); bridgesOnPort = getBridgesFromMacs(macs); if (bridgesOnPort.isEmpty()) { if (log.isDebugEnabled()) log.debug("run: no bridge info found on port " + curBridgePort + " .... Saving Macs"); Iterator mac_ite = macs.iterator(); // this is the point where you can test what are the // macs // learned on port while (mac_ite.hasNext()) { String macAddress = (String) mac_ite.next(); if (macsParsed.contains(macAddress)) { log .warn("run: mac address " + macAddress + " just found on other bridge port! Possible Ethernet Loop. "); continue; } macsParsed.add(macAddress); int curIfIndex = curNode.getIfindex(curBridgePort); MacToNodeLink lkm = new MacToNodeLink(macAddress); lkm.setNodeparentid(curNodeId); lkm.setParentifindex(curIfIndex); maclinks.add(lkm); } } else { Iterator bridge_ite = bridgesOnPort.values().iterator(); BRIDGE: while (bridge_ite.hasNext()) { LinkableNode endNode = (LinkableNode) bridge_ite .next(); int endNodeid = endNode.getNodeId(); int endBridgePort = getBridgePortOnEndBridge( curNode, endNode); if (endNode.isBackBoneBridgePort(endBridgePort)) { if (log.isDebugEnabled()) log .debug("run: testing backbone bridge port " + endBridgePort + " .... Skipping"); continue; } if (log.isDebugEnabled()) log .debug("run: using mac address table found bridge port " + endBridgePort + " on node " + endNodeid); if (endBridgePort == -1) { if (log.isDebugEnabled()) log .debug("run: no port found on bridge nodeid " + endNodeid + " for node bridge identifiers nodeid " + curNodeId + " . .....Skipping"); continue; } while (true) { LinkableNode targetNode = findNearestBridgeLink( curNode, curBridgePort, endNode, endBridgePort); if (targetNode.getNodeId() == endNode .getNodeId()) { // port found save break; } else { endNode = targetNode; endNodeid = endNode.getNodeId(); endBridgePort = getBridgePortOnEndBridge( curNode, endNode); if (endNode .isBackBoneBridgePort(endBridgePort)) { if (log.isDebugEnabled()) log .debug("run: testing backbone bridge port " + endBridgePort + " .... Skipping"); continue BRIDGE; } if (log.isDebugEnabled()) log .debug("run: using mac address table found bridge port " + endBridgePort + " on node " + endNodeid); if (endBridgePort == -1) { if (log.isDebugEnabled()) log .debug("run: no port found on bridge nodeid " + endNodeid + " for node bridge identifiers nodeid " + curNodeId + " . .....Skipping"); continue BRIDGE; } if (log.isDebugEnabled()) log .debug("run: other bridge found between nodes. Iteration on bridge node"); } } // this is a backbone port so adding to Bridge class // get the ifindex int curIfIndex = curNode.getIfindex(curBridgePort); if (curIfIndex == -1) { log .warn("run: got invalid ifindex on bridge port " + curBridgePort); continue; } int endIfindex = endNode.getIfindex(endBridgePort); if (endIfindex == -1) { log .warn("run: got invalid ifindex o designated bridge port " + endBridgePort); continue; } if (log.isDebugEnabled()) log.debug("run: backbone port found for node " + curNodeId + ". Adding backbone port " + curBridgePort + " to bridge"); curNode.addBackBoneBridgePorts(curBridgePort); m_bridge.put(new Integer(curNodeId), curNode); if (log.isDebugEnabled()) log.debug("run: backbone port found for node " + endNodeid + " .Adding to helper class bb port " + " bridge port " + endBridgePort); endNode.addBackBoneBridgePorts(endBridgePort); m_bridge.put(new Integer(endNodeid), endNode); // writing to db using class // DbDAtaLinkInterfaceEntry NodeToNodeLink lk = new NodeToNodeLink(curNodeId, curIfIndex); lk.setNodeparentid(endNodeid); lk.setParentifindex(endIfindex); links.add(lk); // finding links between two backbone ports List temp_macs = getMacsOnBridgeLink(curNode, curBridgePort, endNode, endBridgePort); if (temp_macs == null || temp_macs.isEmpty()) { if (log.isDebugEnabled()) log .debug("run: macs list on link is empty."); continue; } Iterator mac_ite = temp_macs.iterator(); if (log.isDebugEnabled()) log .debug("run: try to found ethernet links on bridge node link"); while (mac_ite.hasNext()) { String curMacAddress = (String) mac_ite.next(); if (macsParsed.contains(curMacAddress)) { log .warn("run: mac address " + curMacAddress + " just found on other bridge port! Possible Ethernet Loop. "); continue; } macsParsed.add(curMacAddress); if (log.isDebugEnabled()) log .debug("run: find ethernet mac address " + curMacAddress + " on bridge link"); MacToNodeLink lkm = new MacToNodeLink( curMacAddress); lkm.setNodeparentid(endNodeid); lkm.setParentifindex(endIfindex); maclinks.add(lkm); } break BRIDGE; } } } } // now found remaing links (not yet parsed) present on one side of backbone link ite = m_bridge.values().iterator(); while (ite.hasNext()) { LinkableNode curNode = (LinkableNode) ite.next(); Iterator sub_ite = curNode.getBackBoneBridgePorts().iterator(); while (sub_ite.hasNext()) { Integer intePort = (Integer) sub_ite.next(); int bridgePort = intePort.intValue(); if (log.isDebugEnabled()) log.debug("run: parsing backbone bridge port " + bridgePort + " on node " + curNode.getSnmpPrimaryIpAddr()); if (!curNode.hasMacAddressesOnBridgePort(bridgePort)) { log .warn("run: bridge port has no mac address defined. Skipping. "); continue; } Iterator mac_ite = curNode.getMacAddressesOnBridgePort( bridgePort).iterator(); while (mac_ite.hasNext()) { String macAddress = (String) mac_ite.next(); if (macsParsed.contains(macAddress)) { log.info("run: mac address " + macAddress + " already parsed! Skipping. "); continue; } if (isMacIdentifierOfBridgeNode(macAddress)) { log.info("run: mac address " + macAddress + " identifies a bridge node! Skipping. "); continue; } if (log.isDebugEnabled()) log.debug("run: found mac addresses " + macAddress + " on link "); macsParsed.add(macAddress); int curIfIndex = curNode.getIfindex(bridgePort); // get the ifindex if (curIfIndex == -1) { log .warn("run: got invalid ifindex on backbone bridge port " + bridgePort); continue; } MacToNodeLink lkm = new MacToNodeLink(macAddress); lkm.setNodeparentid(curNode.getNodeId()); lkm.setParentifindex(curIfIndex); maclinks.add(lkm); } } } // fourth find inter router links, // this part could have several special function to get inter router // links, but at the moment we worked much on switches. // In future we can try to extend this part. if (log.isDebugEnabled()) log .debug("run: try to found not ethernet links on Router nodes"); ite = routerNodes.iterator(); while (ite.hasNext()) { LinkableNode curNode = (LinkableNode) ite.next(); int curNodeId = curNode.getNodeId(); String curIpAddr = curNode.getSnmpPrimaryIpAddr(); if (log.isDebugEnabled()) log.debug("run: parsing router nodeid " + curNodeId + " ip address " + curIpAddr); Iterator sub_ite = curNode.getRouteInterfaces().iterator(); if (log.isDebugEnabled()) log.debug("run: parsing " + curNode.getRouteInterfaces().size() + " Route Interface. "); while (sub_ite.hasNext()) { RouterInterface routeIface = (RouterInterface) sub_ite .next(); if (routeIface.getMetric() == -1) { if (log.isDebugEnabled()) log .debug("run: Router interface has invalid metric " + routeIface.getMetric() + ". Skipping"); continue; } int ifindex = routeIface.getIfindex(); if (ifindex == -1) { if (log.isDebugEnabled()) log .debug("run: route interface has invalid ifindex " + ifindex + " . Skipping"); continue; } int snmpiftype = routeIface.getSnmpiftype(); // no processing ethernet type if (snmpiftype == SNMP_IF_TYPE_ETHERNET) { if (log.isDebugEnabled()) log .debug("run: Ethernet interface for nodeid. Skipping "); continue; } // no processing unknown type if (snmpiftype == -1) { if (log.isDebugEnabled()) log.debug("run: interface has unknown snmpiftype " + snmpiftype + " . Skipping "); continue; } InetAddress nexthop = routeIface.getNextHop(); if (nexthop.getHostAddress().equals("/0.0.0.0")) { if (log.isDebugEnabled()) log .debug("run: nexthop address is broadcast address " + nexthop.getHostAddress() + " . Skipping "); continue; } if (nexthop.getHostAddress().equals("127.0.0.1")) { if (log.isDebugEnabled()) log .debug("run: nexthop address is localhost address " + nexthop.getHostAddress() + " . Skipping "); continue; } int nodeparentid = routeIface.getNodeparentid(); if (nodeparentid == -1) { if (log.isDebugEnabled()) log .debug("run: no node id found for ip next hop address " + nexthop.getHostAddress() + " , skipping "); continue; } if (nodeparentid == curNodeId) { if (log.isDebugEnabled()) log .debug("run: node id found for ip next hop address " + nexthop.getHostAddress() + " is itself, skipping "); continue; } //find ifindex on parent node int parentifindex = -1; LinkableNode nodeparent = getLinkableNodeFromNodeId(nodeparentid); if (nodeparent != null) { parentifindex = getIfIndexFromParentRouter(nodeparent, curNodeId); } NodeToNodeLink lk = new NodeToNodeLink(nodeparentid, parentifindex); lk.setNodeparentid(curNodeId); lk.setParentifindex(ifindex); links.add(lk); } } // making clean activenode.clear(); m_bridge.clear(); routerNodes.clear(); cdpNodes.clear(); macsParsed.clear(); Linkd.getInstance().updateDiscoveryLinkCollection(this); links.clear(); maclinks.clear(); } // rescheduling activities isRunned = true; reschedule(); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/f3e13aa5f29f79fb74c5975bb7cf59814d4d4cb1/DiscoveryLink.java/clean/opennms-services/src/main/java/org/opennms/netmgt/linkd/DiscoveryLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 202, 202, 430, 261, 87, 18815, 2532, 13, 288, 1082, 202, 1330, 18, 4148, 2932, 11918, 2098, 18, 2681, 30, 348, 22942, 4442, 1769, 202, 202, 97, 469, 288, 1082, 202, 2098, 429, 907, 8526, 777, 67, 8134, 10514, 754, 4690, 273, 4048, 72, 18, 588, 1442, 1435, 6862, 202, 18, 588, 10461, 1291, 2098, 429, 3205, 5621, 1082, 202, 682, 4633, 3205, 273, 394, 2407, 5621, 1082, 202, 682, 7976, 84, 3205, 273, 394, 2407, 5621, 1082, 202, 682, 5318, 87, 11257, 273, 394, 2407, 5621, 1082, 202, 3198, 518, 73, 273, 446, 31, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 777, 67, 8134, 10514, 754, 4690, 18, 2469, 31, 277, 27245, 288, 9506, 202, 2098, 429, 907, 662, 907, 273, 777, 67, 8134, 10514, 754, 4690, 63, 77, 15533, 9506, 202, 430, 261, 1397, 907, 422, 446, 13, 288, 6862, 202, 430, 261, 1330, 18, 291, 1526, 1290, 12, 8183, 18, 3589, 3719, 25083, 202, 1330, 18, 1636, 2932, 2681, 30, 446, 1692, 429, 756, 1392, 364, 2775, 315, 6862, 9506, 202, 15, 277, 1769, 6862, 202, 17143, 31, 9506, 202, 97, 9506, 202, 474, 662, 15883, 273, 662, 907, 18, 588, 15883, 5621, 9506, 202, 780, 662, 5273, 3178, 273, 662, 907, 18, 588, 10461, 1291, 6793, 5273, 3178, 5621, 9506, 202, 621, 837, 390, 18, 1289, 12, 1397, 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, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 202, 202, 430, 261, 87, 18815, 2532, 13, 288, 1082, 202, 1330, 18, 4148, 2932, 11918, 2098, 18, 2681, 30, 348, 22942, 4442, 1769, 202, 202, 97, 469, 288, 1082, 202, 2098, 429, 907, 8526, 777, 67, 8134, 10514, 754, 4690, 273, 4048, 72, 18, 588, 1442, 1435, 6862, 202, 18, 588, 10461, 1291, 2098, 429, 3205, 5621, 1082, 202, 682, 4633, 3205, 273, 394, 2407, 5621, 1082, 202, 682, 7976, 84, 3205, 273, 394, 2407, 5621, 1082, 202, 682, 5318, 87, 11257, 273, 394, 2407, 5621, 1082, 202, 3198, 518, 73, 273, 446, 31, 1082, 202, 1884, 2 ]
if (exp instanceof FunCall) { FunCall f = (FunCall) exp;
if (defaultExp instanceof FunCall) { FunCall f = (FunCall) defaultExp;
public Object getValue() { switch (category) { case Category.Numeric: // exp can be a unary minus FunCall if (exp instanceof FunCall) { FunCall f = (FunCall) exp; if (f.getFunName().equals("-")) { Literal lit = (Literal)f.getArg(0); Object o = lit.getValue(); if (o instanceof Double) { return new Double(-((Double)o).doubleValue()); } else if (o instanceof Integer) { // probably impossible return new Integer(-((Integer)o).intValue()); } else if (o instanceof Integer) { // probably impossible return o; } } else { //unexpected funcall in parameter definition throw Util.newInternal("bad FunCall " + f); } } return ((Literal)exp).getValue(); case Category.String: return ((Literal)exp).getValue(); default: return (Member)exp; } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/9a688e588ec59e84012f03e73f06a05a27fccd8e/Parameter.java/buggy/src/main/mondrian/olap/Parameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2366, 1435, 288, 3639, 1620, 261, 4743, 13, 288, 3639, 648, 9856, 18, 9902, 30, 5411, 368, 1329, 848, 506, 279, 19017, 12647, 478, 318, 1477, 5411, 309, 261, 2749, 1276, 478, 318, 1477, 13, 288, 7734, 478, 318, 1477, 284, 273, 261, 22783, 1477, 13, 1329, 31, 7734, 309, 261, 74, 18, 588, 22783, 461, 7675, 14963, 2932, 10951, 3719, 288, 10792, 14392, 16297, 273, 261, 6177, 13, 74, 18, 588, 4117, 12, 20, 1769, 10792, 1033, 320, 273, 16297, 18, 24805, 5621, 10792, 309, 261, 83, 1276, 3698, 13, 288, 13491, 327, 394, 3698, 19236, 12443, 5265, 13, 83, 2934, 9056, 620, 10663, 10792, 289, 469, 309, 261, 83, 1276, 2144, 13, 288, 13491, 368, 8656, 23343, 13491, 327, 394, 2144, 19236, 12443, 4522, 13, 83, 2934, 474, 620, 10663, 10792, 289, 469, 309, 261, 83, 1276, 2144, 13, 288, 13491, 368, 8656, 23343, 13491, 327, 320, 31, 10792, 289, 7734, 289, 469, 288, 10792, 368, 21248, 1326, 454, 316, 1569, 2379, 10792, 604, 3564, 18, 2704, 3061, 2932, 8759, 478, 318, 1477, 315, 397, 284, 1769, 7734, 289, 5411, 289, 5411, 327, 14015, 6177, 13, 2749, 2934, 24805, 5621, 3639, 648, 9856, 18, 780, 30, 5411, 327, 14015, 6177, 13, 2749, 2934, 24805, 5621, 3639, 805, 30, 5411, 327, 261, 4419, 13, 2749, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2366, 1435, 288, 3639, 1620, 261, 4743, 13, 288, 3639, 648, 9856, 18, 9902, 30, 5411, 368, 1329, 848, 506, 279, 19017, 12647, 478, 318, 1477, 5411, 309, 261, 2749, 1276, 478, 318, 1477, 13, 288, 7734, 478, 318, 1477, 284, 273, 261, 22783, 1477, 13, 1329, 31, 7734, 309, 261, 74, 18, 588, 22783, 461, 7675, 14963, 2932, 10951, 3719, 288, 10792, 14392, 16297, 273, 261, 6177, 13, 74, 18, 588, 4117, 12, 20, 1769, 10792, 1033, 320, 273, 16297, 18, 24805, 5621, 10792, 309, 261, 83, 1276, 3698, 13, 288, 13491, 327, 394, 3698, 19236, 12443, 5265, 13, 83, 2934, 9056, 620, 10663, 10792, 289, 469, 309, 261, 83, 1276, 2144, 13, 288, 13491, 2 ]
final JMenuItem showTen = new JMenuItem(Resources .get("showFirstTenRowsTitle")); showTen.setMnemonic(Resources.get("showFirstTenRowsMnemonic") .charAt(0)); showTen.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.getMartTab().getSchemaTabSet() .requestShowRows(table, 0, 10); } }); contextMenu.add(showTen); contextMenu.addSeparator();
public void populateContextMenu(final JPopupMenu contextMenu, final Object object) { // The background area of the diagram has some simple menu items // that refer to all schemas. if (object == null) { // Add a separator if the menu is not empty. if (contextMenu.getComponentCount() > 0) contextMenu.addSeparator(); // Synchronise all schemas in the mart. final JMenuItem syncAll = new JMenuItem( Resources.get("synchroniseAllSchemasTitle"), new ImageIcon( Resources .getResourceAsURL("org/biomart/builder/resources/refresh.gif"))); syncAll.setMnemonic(Resources.get("synchroniseAllSchemasMnemonic") .charAt(0)); syncAll.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestSynchroniseAllSchemas(); } }); contextMenu.add(syncAll); contextMenu.addSeparator(); // Add a new schema to the mart. final JMenuItem add = new JMenuItem( Resources.get("addSchemaTitle"), new ImageIcon( Resources .getResourceAsURL("org/biomart/builder/resources/add.gif"))); add.setMnemonic(Resources.get("addSchemaMnemonic").charAt(0)); add.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestAddSchema(); } }); contextMenu.add(add); contextMenu.addSeparator(); // Menu option to suggest a bunch of datasets. final JMenuItem suggest = new JMenuItem(Resources .get("suggestDataSetsTitle")); suggest.setMnemonic(Resources.get("suggestDataSetsMnemonic") .charAt(0)); suggest.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getDataSetTabSet() .requestSuggestDataSets(null); } }); contextMenu.add(suggest); } // Table objects have their own menus too. else if (object instanceof Table) { // Add a separator if the menu is not empty. if (contextMenu.getComponentCount() > 0) contextMenu.addSeparator(); // Work out what table we are using. final Table table = (Table) object; // Show the first 10 rows on a table. final JMenuItem showTen = new JMenuItem(Resources .get("showFirstTenRowsTitle")); showTen.setMnemonic(Resources.get("showFirstTenRowsMnemonic") .charAt(0)); showTen.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.getMartTab().getSchemaTabSet() .requestShowRows(table, 0, 10); } }); contextMenu.add(showTen); contextMenu.addSeparator(); // Menu option to suggest a bunch of datasets based around that // table. final JMenuItem suggest = new JMenuItem(Resources.get( "suggestDataSetsTableTitle", table.getName())); suggest.setMnemonic(Resources.get("suggestDataSetsTableMnemonic") .charAt(0)); suggest.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getDataSetTabSet() .requestSuggestDataSets(table); } }); contextMenu.add(suggest); // Separator. contextMenu.addSeparator(); // Menu item to create a primary key. If it already has one, disable // the option. final JMenuItem pk = new JMenuItem(Resources .get("createPrimaryKeyTitle")); pk.setMnemonic(Resources.get("createPrimaryKeyMnemonic").charAt(0)); pk.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestCreatePrimaryKey(table); } }); if (table.getPrimaryKey() != null) pk.setEnabled(false); contextMenu.add(pk); // Menu item to create a foreign key. final JMenuItem fk = new JMenuItem(Resources .get("createForeignKeyTitle")); fk.setMnemonic(Resources.get("createForeignKeyMnemonic").charAt(0)); fk.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestCreateForeignKey(table); } }); contextMenu.add(fk); } // Schema objects have different menus to the background. else if (object instanceof Schema) { // Add a separator if the menu is not already empty. if (contextMenu.getComponentCount() > 0) contextMenu.addSeparator(); // What schema is this? final Schema schema = (Schema) object; // Add an option to synchronise this schema against it's datasource // or database. final JMenuItem sync = new JMenuItem( Resources.get("synchroniseSchemaTitle"), new ImageIcon( Resources .getResourceAsURL("org/biomart/builder/resources/refresh.gif"))); sync.setMnemonic(Resources.get("synchroniseSchemaMnemonic").charAt( 0)); sync.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestSynchroniseSchema(schema); } }); contextMenu.add(sync); // Add a checkbox menu item to turn keyguessing on/off. final JCheckBoxMenuItem keyguess = new JCheckBoxMenuItem(Resources .get("enableKeyGuessingTitle")); keyguess.setMnemonic(Resources.get("enableKeyGuessingMnemonic") .charAt(0)); keyguess.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { if (keyguess.isSelected()) SchemaContext.this.martTab.getSchemaTabSet() .requestEnableKeyGuessing(schema); else SchemaContext.this.martTab.getSchemaTabSet() .requestDisableKeyGuessing(schema); } }); contextMenu.add(keyguess); if (schema.getKeyGuessing()) keyguess.setSelected(true); contextMenu.addSeparator(); // Add an option to rename this schema. final JMenuItem rename = new JMenuItem(Resources .get("renameSchemaTitle")); rename.setMnemonic(Resources.get("renameSchemaMnemonic").charAt(0)); rename.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestRenameSchema(schema, null); } }); contextMenu.add(rename); // If this schema is NOT a schema group, there are more options! if (!(schema instanceof SchemaGroup)) { // Option to modify the schema details. final JMenuItem modify = new JMenuItem(Resources .get("modifySchemaTitle")); modify.setMnemonic(Resources.get("modifySchemaMnemonic") .charAt(0)); modify.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestModifySchema(schema); } }); contextMenu.add(modify); // Option to test the schema to see if it works. final JMenuItem test = new JMenuItem(Resources .get("testSchemaTitle")); test.setMnemonic(Resources.get("testSchemaMnemonic").charAt(0)); test.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestTestSchema(schema); } }); contextMenu.add(test); // Option to remove the schema from the mart. final JMenuItem remove = new JMenuItem( Resources.get("removeSchemaTitle"), new ImageIcon( Resources .getResourceAsURL("org/biomart/builder/resources/cut.gif"))); remove.setMnemonic(Resources.get("removeSchemaMnemonic") .charAt(0)); remove.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestRemoveSchema(schema); } }); contextMenu.add(remove); contextMenu.addSeparator(); // Option to replicate the schema. final JMenuItem replicate = new JMenuItem(Resources .get("replicateSchemaTitle")); replicate.setMnemonic(Resources.get("replicateSchemaMnemonic") .charAt(0)); replicate.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestReplicateSchema(schema); } }); contextMenu.add(replicate); contextMenu.addSeparator(); // Option to add the schema to a schema group. final JMenuItem addToGroup = new JMenuItem(Resources .get("addToGroupTitle")); addToGroup.setMnemonic(Resources.get("addToGroupMnemonic") .charAt(0)); addToGroup.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestAddSchemaToSchemaGroup(schema); } }); contextMenu.add(addToGroup); contextMenu.addSeparator(); // Menu option to suggest a bunch of datasets. final JMenuItem suggest = new JMenuItem(Resources .get("suggestDataSetsTitle")); suggest.setMnemonic(Resources.get("suggestDataSetsMnemonic") .charAt(0)); suggest.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getDataSetTabSet() .requestSuggestDataSets(null); } }); contextMenu.add(suggest); } } // Relations have their own menus too. else if (object instanceof Relation) { // Add a separator if the menu is not empty. if (contextMenu.getComponentCount() > 0) contextMenu.addSeparator(); // What relation is this? And is it correct? final Relation relation = (Relation) object; final boolean relationIncorrect = relation.getStatus().equals( ComponentStatus.INFERRED_INCORRECT); // Set up a radio group for the cardinality. final ButtonGroup cardGroup = new ButtonGroup(); // Set the relation to be 1:1, but only if it is correct. final JRadioButtonMenuItem oneToOne = new JRadioButtonMenuItem( Resources.get("oneToOneTitle")); oneToOne.setMnemonic(Resources.get("oneToOneMnemonic").charAt(0)); oneToOne.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeRelationCardinality(relation, Cardinality.ONE); } }); cardGroup.add(oneToOne); contextMenu.add(oneToOne); if (relationIncorrect) oneToOne.setEnabled(false); if (relation.isOneToOne()) oneToOne.setSelected(true); // Set the relation to be 1:M, but only if it is correct. final JRadioButtonMenuItem oneToMany = new JRadioButtonMenuItem( Resources.get("oneToManyTitle")); oneToMany.setMnemonic(Resources.get("oneToManyMnemonic").charAt(0)); oneToMany.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeRelationCardinality(relation, Cardinality.MANY); } }); cardGroup.add(oneToMany); contextMenu.add(oneToMany); if (relationIncorrect || !relation.isOneToManyAllowed()) oneToMany.setEnabled(false); if (relation.isOneToMany()) oneToMany.setSelected(true); // Set the relation to be M:M, but only if it is correct. final JRadioButtonMenuItem manyToMany = new JRadioButtonMenuItem( Resources.get("manyToManyTitle")); manyToMany.setMnemonic(Resources.get("manyToManyMnemonic") .charAt(0)); manyToMany.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeRelationCardinality(relation, Cardinality.MANY); } }); cardGroup.add(manyToMany); contextMenu.add(manyToMany); if (relationIncorrect || !relation.isManyToManyAllowed()) manyToMany.setEnabled(false); if (relation.isManyToMany()) manyToMany.setSelected(true); // Separator. contextMenu.addSeparator(); // Set up a radio button group for the correct/incorrect options. final ButtonGroup correctGroup = new ButtonGroup(); // Mark relation as correct, but only if not handmade. final JRadioButtonMenuItem correct = new JRadioButtonMenuItem( Resources.get("correctRelationTitle")); correct.setMnemonic(Resources.get("correctRelationMnemonic") .charAt(0)); correct.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeRelationStatus(relation, ComponentStatus.INFERRED); } }); correctGroup.add(correct); contextMenu.add(correct); if (relation.getStatus().equals(ComponentStatus.INFERRED)) correct.setSelected(true); else if (relation.getStatus().equals(ComponentStatus.HANDMADE)) correct.setEnabled(false); // Mark relation as incorrect, but only if not handmade. final JRadioButtonMenuItem incorrect = new JRadioButtonMenuItem( Resources.get("incorrectRelationTitle")); incorrect.setMnemonic(Resources.get("incorrectRelationMnemonic") .charAt(0)); incorrect.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeRelationStatus(relation, ComponentStatus.INFERRED_INCORRECT); } }); correctGroup.add(incorrect); contextMenu.add(incorrect); if (relation.getStatus().equals(ComponentStatus.INFERRED_INCORRECT)) incorrect.setSelected(true); else if (relation.getStatus().equals(ComponentStatus.HANDMADE)) incorrect.setEnabled(false); // Separator contextMenu.addSeparator(); // Remove the relation from the schema, but only if handmade. final JMenuItem remove = new JMenuItem(Resources .get("removeRelationTitle"), new ImageIcon(Resources .getResourceAsURL("org/biomart/builder/resources/cut.gif"))); remove.setMnemonic(Resources.get("removeRelationMnemonic") .charAt(0)); remove.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestRemoveRelation(relation); } }); contextMenu.add(remove); if (!relation.getStatus().equals(ComponentStatus.HANDMADE)) remove.setEnabled(false); } // Keys have menus too. else if (object instanceof Key) { // First, work out what table this key is on, and add options // relating to that table. final Table table = ((Key) object).getTable(); this.populateContextMenu(contextMenu, table); // Then work out what key this is. final Key key = (Key) object; // Add a separator if the menu is not empty. if (contextMenu.getComponentCount() > 0) contextMenu.addSeparator(); // Option to edit an existing key. final JMenuItem editkey = new JMenuItem(Resources .get("editKeyTitle")); editkey.setMnemonic(Resources.get("editKeyMnemonic").charAt(0)); editkey.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestEditKey(key); } }); contextMenu.add(editkey); // Remove the key from the table, but only if handmade. final JMenuItem remove = new JMenuItem(Resources .get("removeKeyTitle"), new ImageIcon(Resources .getResourceAsURL("org/biomart/builder/resources/cut.gif"))); remove.setMnemonic(Resources.get("removeKeyMnemonic").charAt(0)); remove.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestRemoveKey(key); } }); contextMenu.add(remove); if (!key.getStatus().equals(ComponentStatus.HANDMADE)) remove.setEnabled(false); // Separator. contextMenu.addSeparator(); // Set up a radio group for the correct/incorrect buttons. final ButtonGroup correctGroup = new ButtonGroup(); // Mark the key as correct, but not if handmade. final JRadioButtonMenuItem correct = new JRadioButtonMenuItem( Resources.get("correctKeyTitle")); correct.setMnemonic(Resources.get("correctKeyMnemonic").charAt(0)); correct.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeKeyStatus(key, ComponentStatus.INFERRED); } }); correctGroup.add(correct); contextMenu.add(correct); if (key.getStatus().equals(ComponentStatus.INFERRED)) correct.setSelected(true); else if (key.getStatus().equals(ComponentStatus.HANDMADE)) correct.setEnabled(false); // Mark the key as incorrect, but not if handmade. final JRadioButtonMenuItem incorrect = new JRadioButtonMenuItem( Resources.get("incorrectKeyTitle")); incorrect.setMnemonic(Resources.get("incorrectKeyMnemonic").charAt( 0)); incorrect.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestChangeKeyStatus(key, ComponentStatus.INFERRED_INCORRECT); } }); correctGroup.add(incorrect); contextMenu.add(incorrect); if (key.getStatus().equals(ComponentStatus.INFERRED_INCORRECT)) incorrect.setSelected(true); else if (key.getStatus().equals(ComponentStatus.HANDMADE)) incorrect.setEnabled(false); // Separator contextMenu.addSeparator(); // Option to establish a relation between this key and another. final JMenuItem createrel = new JMenuItem(Resources .get("createRelationTitle")); createrel.setMnemonic(Resources.get("createRelationMnemonic") .charAt(0)); createrel.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent evt) { SchemaContext.this.martTab.getSchemaTabSet() .requestCreateRelation(key); } }); contextMenu.add(createrel); if (key.getStatus().equals(ComponentStatus.INFERRED_INCORRECT)) createrel.setEnabled(false); } // Columns too, finally. else if (object instanceof Column) { // Columns just show their table menus. final Table table = ((Column) object).getTable(); this.populateContextMenu(contextMenu, table); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/c76d481210454f27e1173655b5a81de5e759e689/SchemaContext.java/clean/src/java/org/biomart/builder/view/gui/diagrams/contexts/SchemaContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6490, 27315, 12, 6385, 804, 13770, 4599, 819, 4599, 16, 1082, 202, 6385, 1033, 733, 13, 288, 202, 202, 759, 1021, 5412, 5091, 434, 326, 19750, 711, 2690, 4143, 3824, 1516, 202, 202, 759, 716, 8884, 358, 777, 12783, 18, 202, 202, 430, 261, 1612, 422, 446, 13, 288, 1082, 202, 759, 1436, 279, 4182, 309, 326, 3824, 353, 486, 1008, 18, 1082, 202, 430, 261, 2472, 4599, 18, 588, 1841, 1380, 1435, 405, 374, 13, 9506, 202, 2472, 4599, 18, 1289, 6581, 5621, 1082, 202, 759, 26535, 784, 777, 12783, 316, 326, 312, 485, 18, 1082, 202, 6385, 804, 12958, 3792, 1595, 273, 394, 804, 12958, 12, 6862, 202, 3805, 18, 588, 2932, 87, 2600, 784, 1595, 16749, 4247, 6, 3631, 6862, 202, 2704, 3421, 5554, 12, 6862, 1082, 202, 3805, 6862, 6862, 202, 18, 588, 1420, 1463, 1785, 2932, 3341, 19, 13266, 362, 485, 19, 9574, 19, 4683, 19, 9144, 18, 13905, 6, 3719, 1769, 1082, 202, 8389, 1595, 18, 542, 29668, 20918, 12, 3805, 18, 588, 2932, 87, 2600, 784, 1595, 16749, 29668, 20918, 7923, 6862, 202, 18, 3001, 861, 12, 20, 10019, 1082, 202, 8389, 1595, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 9506, 202, 482, 918, 26100, 12, 6385, 19641, 6324, 13, 288, 6862, 202, 3078, 1042, 18, 2211, 18, 81, 485, 5661, 18, 588, 3078, 5661, 694, 1435, 6862, 1082, 202, 18, 2293, 19298, 784, 1595, 16749, 5621, 9506, 202, 97, 1082, 202, 22938, 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, 918, 6490, 27315, 12, 6385, 804, 13770, 4599, 819, 4599, 16, 1082, 202, 6385, 1033, 733, 13, 288, 202, 202, 759, 1021, 5412, 5091, 434, 326, 19750, 711, 2690, 4143, 3824, 1516, 202, 202, 759, 716, 8884, 358, 777, 12783, 18, 202, 202, 430, 261, 1612, 422, 446, 13, 288, 1082, 202, 759, 1436, 279, 4182, 309, 326, 3824, 353, 486, 1008, 18, 1082, 202, 430, 261, 2472, 4599, 18, 588, 1841, 1380, 1435, 405, 374, 13, 9506, 202, 2472, 4599, 18, 1289, 6581, 5621, 1082, 202, 759, 26535, 784, 777, 12783, 316, 326, 312, 485, 18, 1082, 202, 6385, 804, 12958, 3792, 1595, 273, 394, 804, 12958, 12, 6862, 202, 3805, 18, 588, 2932, 87, 2 ]
fContextService.activateContext(scopes[i]);
fEnabledContexts.add(fContextService.activateContext(scopes[i], new LegacyHandlerSubmissionExpression(null, null, getPartSite())));
public void setScopes(String[] scopes) { for (int i = 0; i < scopes.length; i++) { fContextService.activateContext(scopes[i]); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e9c58682e4f81b59dc0271ec616739eb127cb1a6/ProxyKeyBindingService.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProxyKeyBindingService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 12668, 12, 780, 8526, 8124, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8124, 18, 2469, 31, 277, 27245, 288, 1082, 202, 74, 1042, 1179, 18, 10014, 1042, 12, 17915, 63, 77, 19226, 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, 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, 225, 202, 482, 918, 444, 12668, 12, 780, 8526, 8124, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8124, 18, 2469, 31, 277, 27245, 288, 1082, 202, 74, 1042, 1179, 18, 10014, 1042, 12, 17915, 63, 77, 19226, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
namespace = namespace.intern();
if (namespace != null) namespace = namespace.intern();
public XSObject getNSItem(String namespace, String localName) { namespace = namespace.intern(); for (int i = 0; i < fNSNum; i++) { if (namespace == fNamespaces[i]) { XSTypeDefinition type = (XSTypeDefinition)fMaps[i].get(localName); // only return it if it mataches the required type if (type.getTypeCategory() == fType) return type; return null; } } return null; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/35fe2882143c2ad3973e1d4e76951c3ccc6807b6/XSNamedMap4Types.java/clean/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 55, 921, 336, 3156, 1180, 12, 780, 1981, 16, 514, 11927, 13, 288, 3639, 309, 261, 4937, 480, 446, 13, 1981, 273, 1981, 18, 267, 798, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 284, 3156, 2578, 31, 277, 27245, 288, 5411, 309, 261, 4937, 422, 284, 13180, 63, 77, 5717, 288, 7734, 1139, 55, 559, 1852, 618, 273, 261, 60, 55, 559, 1852, 13, 74, 8903, 63, 77, 8009, 588, 12, 3729, 461, 1769, 7734, 368, 1338, 327, 518, 309, 518, 312, 396, 11163, 326, 1931, 618, 7734, 309, 261, 723, 18, 588, 559, 4457, 1435, 422, 284, 559, 13, 10792, 327, 618, 31, 7734, 327, 446, 31, 5411, 289, 3639, 289, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 55, 921, 336, 3156, 1180, 12, 780, 1981, 16, 514, 11927, 13, 288, 3639, 309, 261, 4937, 480, 446, 13, 1981, 273, 1981, 18, 267, 798, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 284, 3156, 2578, 31, 277, 27245, 288, 5411, 309, 261, 4937, 422, 284, 13180, 63, 77, 5717, 288, 7734, 1139, 55, 559, 1852, 618, 273, 261, 60, 55, 559, 1852, 13, 74, 8903, 63, 77, 8009, 588, 12, 3729, 461, 1769, 7734, 368, 1338, 327, 518, 309, 518, 312, 396, 11163, 326, 1931, 618, 7734, 309, 261, 723, 18, 588, 559, 4457, 1435, 422, 284, 559, 13, 10792, 327, 618, 31, 7734, 327, 446, 31, 5411, 289, 3639, 289, 2 ]