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
|
|---|---|---|---|---|---|---|
boolean synPredMatched363 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_13.member(LA(2))) && (_tokenSet_14.member(LA(3))))) { int _m363 = mark(); synPredMatched363 = true; inputState.guessing++; try { { mDECIMAL_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched363 = false; } rewind(_m363); inputState.guessing--; } if ( synPredMatched363 ) { mDOUBLE_LITERAL(false);
|
if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_7.member(LA(3)))) { mEXPR_COMMENT(false);
|
public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } case '&': { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } break; } default: boolean synPredMatched363 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_13.member(LA(2))) && (_tokenSet_14.member(LA(3))))) { int _m363 = mark(); synPredMatched363 = true; inputState.guessing++; try { { mDECIMAL_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched363 = false; } rewind(_m363); inputState.guessing--; } if ( synPredMatched363 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>')) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)=='<') && (LA(2)=='!')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT; } } else { boolean synPredMatched354 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m354 = mark(); synPredMatched354 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched354 = false; } rewind(_m354); inputState.guessing--; } if ( synPredMatched354 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched356 = false; if (((LA(1)=='.') && (LA(2)=='.') && (true))) { int _m356 = mark(); synPredMatched356 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched356 = false; } rewind(_m356); inputState.guessing--; } if ( synPredMatched356 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else { boolean synPredMatched358 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_12.member(LA(2))) && (true))) { int _m358 = mark(); synPredMatched358 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched358 = false; } rewind(_m358); inputState.guessing--; } if ( synPredMatched358 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched365 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_12.member(LA(2))) && (true))) { int _m365 = mark(); synPredMatched365 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched365 = false; } rewind(_m365); inputState.guessing--; } if ( synPredMatched365 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((LA(1)=='/') && (LA(2)=='/') && (true)) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if ((LA(1)=='|') && (LA(2)=='=') && (true)) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if ((LA(1)=='!') && (LA(2)=='=') && (true)) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if ((LA(1)=='>') && (LA(2)=='=') && (true)) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_15.member(LA(1))) && (true) && (true))&&( inAttributeContent )) { mATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((_tokenSet_16.member(LA(1))) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) _ttype = WS; else _ttype = Token.SKIP; } } else if ((_tokenSet_17.member(LA(1))) && (true) && (true)) { mNCNAME(false); if ( inputState.guessing==0 ) { _ttype = NCNAME; } } else { boolean synPredMatched360 = false; if (((LA(1)=='.') && (true) && (true))) { int _m360 = mark(); synPredMatched360 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched360 = false; } rewind(_m360); inputState.guessing--; } if ( synPredMatched360 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else if ((_tokenSet_3.member(LA(1))) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='+') && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/542794bb5fd4ba67897c2c2677f4f663483ba69d/XPathLexer2.java/buggy/src/org/exist/parser/XPathLexer2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
5183,
4278,
202,
202,
95,
1082,
202,
81,
1258,
1639,
53,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
8175,
1639,
53,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
6494,
6194,
10391,
15400,
23,
4449,
273,
629,
31,
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,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
2
] |
final String exceptionName = (String) iterator.next();
|
final String exceptionName = (String) aNameList;
|
private void formatNameCheckString(){ final StringBuffer buffer = new StringBuffer(); boolean first = true; for(Iterator iterator = nameList.iterator(); iterator.hasNext();){ if(first){ first = false; } else{ buffer.append(','); } final String exceptionName = (String) iterator.next(); buffer.append(exceptionName); } nameCheckString = buffer.toString(); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2d46d291193579a7564649b4881c7ea8e02eda5b/NonBooleanMethodNameMayNotStartWithQuestionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/naming/NonBooleanMethodNameMayNotStartWithQuestionInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
740,
461,
1564,
780,
1435,
95,
3639,
727,
6674,
1613,
273,
394,
6674,
5621,
3639,
1250,
1122,
273,
638,
31,
3639,
364,
12,
3198,
2775,
273,
508,
682,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
15329,
5411,
309,
12,
3645,
15329,
7734,
1122,
273,
629,
31,
5411,
289,
469,
95,
7734,
1613,
18,
6923,
12,
2187,
8284,
5411,
289,
5411,
727,
514,
1520,
461,
273,
261,
780,
13,
279,
461,
682,
31,
5411,
1613,
18,
6923,
12,
4064,
461,
1769,
3639,
289,
3639,
508,
1564,
780,
273,
1613,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
740,
461,
1564,
780,
1435,
95,
3639,
727,
6674,
1613,
273,
394,
6674,
5621,
3639,
1250,
1122,
273,
638,
31,
3639,
364,
12,
3198,
2775,
273,
508,
682,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
15329,
5411,
309,
12,
3645,
15329,
7734,
1122,
273,
629,
31,
5411,
289,
469,
95,
7734,
1613,
18,
6923,
12,
2187,
8284,
5411,
289,
5411,
727,
514,
1520,
461,
273,
261,
780,
13,
279,
461,
682,
31,
5411,
1613,
18,
6923,
12,
4064,
461,
1769,
3639,
289,
3639,
508,
1564,
780,
273,
1613,
18,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
projectNameField.setFocus();
|
this.locationPathField.setFocus();
|
public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); WorkbenchHelp.setHelp(composite, IHelpContextIds.NEW_PROJECT_WIZARD_PAGE); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); createProjectNameGroup(composite); createProjectLocationGroup(composite); projectNameField.setFocus(); validatePage(); // Show description on opening setErrorMessage(null); setMessage(null); setControl(composite); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/712fddb5e27c68525c0df5ce7d3bf8f2cee73714/WizardExternalProjectImportPage.java/clean/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/wizards/datatransfer/WizardExternalProjectImportPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
27676,
16,
467,
6696,
1042,
2673,
18,
12917,
67,
17147,
67,
59,
6867,
8085,
67,
11219,
1769,
202,
202,
27676,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
2640,
4109,
461,
1114,
12,
27676,
1769,
202,
202,
2640,
4109,
2735,
1114,
12,
27676,
1769,
202,
202,
4406,
461,
974,
18,
542,
9233,
5621,
202,
202,
5662,
1964,
5621,
202,
202,
759,
9674,
2477,
603,
10890,
202,
202,
542,
14935,
12,
2011,
1769,
202,
202,
542,
1079,
12,
2011,
1769,
202,
202,
542,
3367,
12,
27676,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
27676,
16,
467,
6696,
1042,
2673,
18,
12917,
67,
17147,
67,
59,
6867,
8085,
67,
11219,
1769,
202,
202,
27676,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
2640,
4109,
461,
1114,
12,
27676,
1769,
202,
202,
2640,
4109,
2735,
1114,
12,
27676,
1769,
202,
202,
4406,
461,
974,
18,
542,
9233,
5621,
202,
202,
5662,
1964,
5621,
202,
202,
759,
9674,
2
] |
RefreshBugzillaReportsAction.this.view.getViewer().refresh();
|
if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh();
|
public void run() { bqc.refreshBugs(); for(BugzillaHit hit: bqc.getChildren()){ if(hit.hasCorrespondingActivatableTask()){ BugzillaTask task = ((BugzillaTask)hit.getOrCreateCorrespondingTask()); if(!task.isCompleted()){ task.refresh(); } } } RefreshBugzillaReportsAction.this.view.getViewer().refresh(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/40a2f3c097a428c2e7bf80c35f83d2e2a58e8463/RefreshBugzillaReportsAction.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
918,
1086,
1435,
288,
6862,
1082,
202,
70,
30675,
18,
9144,
31559,
5621,
6862,
1082,
202,
1884,
12,
19865,
15990,
13616,
6800,
30,
324,
30675,
18,
588,
4212,
10756,
95,
6862,
9506,
202,
430,
12,
15989,
18,
5332,
6217,
17863,
310,
12241,
8163,
2174,
10756,
95,
6862,
6862,
202,
19865,
15990,
2174,
1562,
273,
14015,
19865,
15990,
2174,
13,
15989,
18,
588,
17717,
6217,
17863,
310,
2174,
10663,
6862,
6862,
202,
430,
12,
5,
4146,
18,
291,
9556,
10756,
95,
6862,
25083,
202,
4146,
18,
9144,
5621,
6862,
6862,
202,
97,
6862,
9506,
202,
97,
6862,
1082,
202,
97,
6862,
1082,
202,
8323,
19865,
15990,
18631,
1803,
18,
2211,
18,
1945,
18,
588,
18415,
7675,
9144,
5621,
25083,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
918,
1086,
1435,
288,
6862,
1082,
202,
70,
30675,
18,
9144,
31559,
5621,
6862,
1082,
202,
1884,
12,
19865,
15990,
13616,
6800,
30,
324,
30675,
18,
588,
4212,
10756,
95,
6862,
9506,
202,
430,
12,
15989,
18,
5332,
6217,
17863,
310,
12241,
8163,
2174,
10756,
95,
6862,
6862,
202,
19865,
15990,
2174,
1562,
273,
14015,
19865,
15990,
2174,
13,
15989,
18,
588,
17717,
6217,
17863,
310,
2174,
10663,
6862,
6862,
202,
430,
12,
5,
4146,
18,
291,
9556,
10756,
95,
6862,
25083,
202,
4146,
18,
9144,
5621,
6862,
6862,
202,
97,
6862,
9506,
202,
97,
6862,
1082,
202,
97,
6862,
1082,
202,
8323,
19865,
15990,
18631,
1803,
18,
2211,
18,
1945,
18,
588,
18415,
7675,
9144,
2
] |
StringWriter writer = new StringWriter(); writer.write("class A { \n"); writer.write(" int var; \n"); writer.write(" void f(); \n"); writer.write("}; \n"); writer.write("void A::f(){ \n"); writer.write(" v[^] \n"); writer.write("} \n"); String code = writer.toString(); IFile t = importFile( "testMemberCompletion.cpp", code ); ICompletionProposal [] results = getResults( t, code.indexOf( "[^]" ) ); assertEquals( 4, results.length); assertEquals( "var : int", results[0].getDisplayString()); assertEquals( "virtual", results[1].getDisplayString()); assertEquals( "void", results[2].getDisplayString()); assertEquals( "volatile", results[3].getDisplayString()); }
|
StringWriter writer = new StringWriter(); writer.write("class A { \n"); writer.write(" int var; \n"); writer.write(" void f(); \n"); writer.write("}; \n"); writer.write("void A::f(){ \n"); writer.write(" v[^] \n"); writer.write("} \n"); String code = writer.toString(); IFile t = importFile( "testMemberCompletion.cpp", code ); ICompletionProposal [] results = getResults( t, code.indexOf( "[^]" ) ); assertEquals( 4, results.length); assertEquals( "var : int", results[0].getDisplayString()); assertEquals( "virtual", results[1].getDisplayString()); assertEquals( "void", results[2].getDisplayString()); assertEquals( "volatile", results[3].getDisplayString()); }
|
public void testMemberCompletion() throws Exception { StringWriter writer = new StringWriter(); writer.write("class A { \n"); //$NON-NLS-1$ writer.write(" int var; \n"); //$NON-NLS-1$ writer.write(" void f(); \n"); //$NON-NLS-1$ writer.write("}; \n"); //$NON-NLS-1$ writer.write("void A::f(){ \n"); //$NON-NLS-1$ writer.write(" v[^] \n"); //$NON-NLS-1$ writer.write("} \n"); //$NON-NLS-1$ String code = writer.toString(); IFile t = importFile( "testMemberCompletion.cpp", code ); //$NON-NLS-1$ ICompletionProposal [] results = getResults( t, code.indexOf( "[^]" ) ); //$NON-NLS-1$ assertEquals( 4, results.length); assertEquals( "var : int", results[0].getDisplayString()); //$NON-NLS-1$ assertEquals( "virtual", results[1].getDisplayString()); //$NON-NLS-1$ assertEquals( "void", results[2].getDisplayString()); //$NON-NLS-1$ assertEquals( "volatile", results[3].getDisplayString()); //$NON-NLS-1$ }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b385ee2234c666c7eff7f048393323fa087f1353/ContentAssistRegressionTests.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/regression/ContentAssistRegressionTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4419,
11238,
1435,
1216,
1185,
288,
3639,
17436,
2633,
273,
394,
17436,
5621,
3639,
2633,
18,
2626,
2932,
1106,
432,
288,
1171,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
282,
509,
569,
31,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
282,
918,
284,
5621,
2868,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
20451,
13491,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
6459,
432,
2866,
74,
1435,
95,
2868,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
282,
331,
5969,
65,
10402,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
97,
7682,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
514,
981,
273,
2633,
18,
10492,
5621,
3639,
467,
812,
268,
273,
1930,
812,
12,
315,
3813,
4419,
11238,
18,
4057,
84,
3113,
981,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
467,
11238,
14592,
5378,
1686,
273,
21955,
12,
268,
16,
981,
18,
31806,
12,
5158,
66,
4279,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
1815,
8867,
12,
1059,
16,
1686,
18,
2469,
1769,
3639,
1815,
8867,
12,
315,
1401,
294,
509,
3113,
1686,
63,
20,
8009,
588,
4236,
780,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4419,
11238,
1435,
1216,
1185,
288,
3639,
17436,
2633,
273,
394,
17436,
5621,
3639,
2633,
18,
2626,
2932,
1106,
432,
288,
1171,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
282,
509,
569,
31,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
282,
918,
284,
5621,
2868,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
20451,
13491,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2932,
6459,
432,
2866,
74,
1435,
95,
2868,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
2
] |
return constructSpecific(cx, scope, this, args, ctors[index], ctorTypes[index]);
|
return constructSpecific(cx, scope, this, args, ctors[index]);
|
public Scriptable construct(Context cx, Scriptable scope, Object[] args) throws JavaScriptException { Class classObject = getClassObject(); int modifiers = classObject.getModifiers(); if (! (Modifier.isInterface(modifiers) || Modifier.isAbstract(modifiers))) { Constructor[] ctors = members.ctors; Class[][] ctorTypes = members.ctorTypes; int index = NativeJavaMethod.findFunction(ctors, ctorTypes, args); if (index < 0) { String sig = NativeJavaMethod.scriptSignature(args); throw Context.reportRuntimeError2( "msg.no.java.ctor", classObject.getName(), sig); } // Found the constructor, so try invoking it. return constructSpecific(cx, scope, this, args, ctors[index], ctorTypes[index]); } else { Scriptable topLevel = ScriptableObject.getTopLevelScope(this); String msg = ""; try { // trying to construct an interface; use JavaAdapter to // construct a new class on the fly that implements this // interface. Object v = topLevel.get("JavaAdapter", topLevel); if (v != NOT_FOUND) { Function f = (Function) v; Object[] adapterArgs = { this, args[0] }; return (Scriptable) f.construct(cx, topLevel, adapterArgs); } } catch (Exception ex) { // fall through to error String m = ex.getMessage(); if (m != null) msg = m; } throw Context.reportRuntimeError2( "msg.cant.instantiate", msg, classObject.getName()); } }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/2d7d723eefd13d815225702c9924a8c553325f33/NativeJavaClass.java/clean/js/rhino/src/org/mozilla/javascript/NativeJavaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22780,
4872,
12,
1042,
9494,
16,
22780,
2146,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1659,
667,
921,
273,
2900,
921,
5621,
3639,
509,
10429,
273,
667,
921,
18,
588,
11948,
5621,
3639,
309,
16051,
261,
9829,
18,
291,
1358,
12,
15432,
13,
747,
9079,
12832,
18,
291,
7469,
12,
15432,
20349,
3639,
288,
5411,
11417,
8526,
5691,
1383,
273,
4833,
18,
299,
1383,
31,
5411,
1659,
63,
6362,
65,
15120,
2016,
273,
4833,
18,
30206,
2016,
31,
5411,
509,
770,
273,
16717,
5852,
1305,
18,
4720,
2083,
12,
299,
1383,
16,
15120,
2016,
16,
833,
1769,
5411,
309,
261,
1615,
411,
374,
13,
288,
7734,
514,
3553,
273,
16717,
5852,
1305,
18,
4263,
5374,
12,
1968,
1769,
7734,
604,
1772,
18,
6006,
5576,
668,
22,
12,
10792,
315,
3576,
18,
2135,
18,
6290,
18,
30206,
3113,
667,
921,
18,
17994,
9334,
3553,
1769,
5411,
289,
5411,
368,
10750,
326,
3885,
16,
1427,
775,
15387,
518,
18,
5411,
327,
4872,
9969,
12,
71,
92,
16,
2146,
16,
333,
16,
833,
16,
19694,
5691,
1383,
63,
1615,
6487,
15120,
2016,
63,
1615,
19226,
3639,
289,
469,
288,
5411,
22780,
21289,
273,
22780,
921,
18,
588,
27046,
3876,
12,
2211,
1769,
5411,
514,
1234,
273,
1408,
31,
5411,
775,
288,
7734,
368,
8374,
358,
4872,
392,
1560,
31,
999,
5110,
4216,
358,
7734,
368,
4872,
279,
394,
667,
603,
326,
21434,
716,
4792,
333,
7734,
368,
1560,
18,
7734,
1033,
331,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22780,
4872,
12,
1042,
9494,
16,
22780,
2146,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1659,
667,
921,
273,
2900,
921,
5621,
3639,
509,
10429,
273,
667,
921,
18,
588,
11948,
5621,
3639,
309,
16051,
261,
9829,
18,
291,
1358,
12,
15432,
13,
747,
9079,
12832,
18,
291,
7469,
12,
15432,
20349,
3639,
288,
5411,
11417,
8526,
5691,
1383,
273,
4833,
18,
299,
1383,
31,
5411,
1659,
63,
6362,
65,
15120,
2016,
273,
4833,
18,
30206,
2016,
31,
5411,
509,
770,
273,
16717,
5852,
1305,
18,
4720,
2083,
12,
299,
1383,
16,
15120,
2016,
16,
833,
1769,
5411,
309,
261,
1615,
411,
374,
13,
288,
7734,
514,
3553,
273,
16717,
5852,
1305,
2
] |
this( focusFirstElement, null, -1, -1 );
|
this( null, focusFirstElement, null, -1, -1 );
|
public Container( boolean focusFirstElement ) { this( focusFirstElement, null, -1, -1 ); }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/4e8983ac96e4e1a995d9f8434572c31f4d05d76c/Container.java/buggy/enough-polish-j2me/source/src/de/enough/polish/ui/Container.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4039,
12,
1250,
7155,
3759,
1046,
262,
288,
202,
202,
2211,
12,
7155,
3759,
1046,
16,
446,
16,
300,
21,
16,
300,
21,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4039,
12,
1250,
7155,
3759,
1046,
262,
288,
202,
202,
2211,
12,
7155,
3759,
1046,
16,
446,
16,
300,
21,
16,
300,
21,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
FilePopupMenu(FileTextArea w) { super();
|
public FilePopupMenu(FileTextArea w) {
|
FilePopupMenu(FileTextArea w) { super(); this.w = w; JMenuItem item; add(item = new JMenuItem("Set Breakpoint")); item.addActionListener(w); add(item = new JMenuItem("Clear Breakpoint")); item.addActionListener(w); add(item = new JMenuItem("Run")); item.addActionListener(w); }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/SwingGui.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1387,
13770,
4599,
12,
812,
1528,
5484,
341,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
91,
273,
341,
31,
3639,
804,
12958,
761,
31,
3639,
527,
12,
1726,
273,
394,
804,
12958,
2932,
694,
17030,
1153,
7923,
1769,
3639,
761,
18,
1289,
1803,
2223,
12,
91,
1769,
3639,
527,
12,
1726,
273,
394,
804,
12958,
2932,
9094,
17030,
1153,
7923,
1769,
3639,
761,
18,
1289,
1803,
2223,
12,
91,
1769,
3639,
527,
12,
1726,
273,
394,
804,
12958,
2932,
1997,
7923,
1769,
3639,
761,
18,
1289,
1803,
2223,
12,
91,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1387,
13770,
4599,
12,
812,
1528,
5484,
341,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
91,
273,
341,
31,
3639,
804,
12958,
761,
31,
3639,
527,
12,
1726,
273,
394,
804,
12958,
2932,
694,
17030,
1153,
7923,
1769,
3639,
761,
18,
1289,
1803,
2223,
12,
91,
1769,
3639,
527,
12,
1726,
273,
394,
804,
12958,
2932,
9094,
17030,
1153,
7923,
1769,
3639,
761,
18,
1289,
1803,
2223,
12,
91,
1769,
3639,
527,
12,
1726,
273,
394,
804,
12958,
2932,
1997,
7923,
1769,
3639,
761,
18,
1289,
1803,
2223,
12,
91,
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
] |
setCompletionValues( scope, CompletionKind.NO_SUCH_KIND, Key.EMPTY );
|
setCompletionValues( scope, CompletionKind.NO_SUCH_KIND, KeywordSetKey.EMPTY );
|
protected void declaration( IASTScope scope, IASTTemplate ownerTemplate, CompletionKind overideKind) throws EndOfFileException, BacktrackException { IASTCompletionNode.CompletionKind kind = getCompletionKindForDeclaration(scope, overideKind); setCompletionValues(scope, kind, Key.DECLARATION ); IASTDeclaration resultDeclaration = null; switch (LT(1)) { case IToken.t_asm : IToken first = consume(IToken.t_asm); setCompletionValues( scope, CompletionKind.NO_SUCH_KIND, Key.EMPTY ); consume(IToken.tLPAREN); String assembly = consume(IToken.tSTRING).getImage(); consume(IToken.tRPAREN); IToken last = consume(IToken.tSEMI); try { resultDeclaration = astFactory.createASMDefinition( scope, assembly, first.getOffset(), first.getLineNumber(), last.getEndOffset(), last.getLineNumber()); } catch (Exception e) { logException( "declaration:createASMDefinition", e ); //$NON-NLS-1$ throw backtrack; } // if we made it this far, then we have all we need // do the callback resultDeclaration.acceptElement(requestor, astFactory.getReferenceManager()); setCompletionValues(scope, kind, Key.DECLARATION ); break; case IToken.t_namespace : resultDeclaration = namespaceDefinition(scope); break; case IToken.t_using : resultDeclaration = usingClause(scope); break; case IToken.t_export : case IToken.t_template : resultDeclaration = templateDeclaration(scope); break; case IToken.t_extern : if (LT(2) == IToken.tSTRING) { resultDeclaration = linkageSpecification(scope); break; } default : resultDeclaration = simpleDeclarationStrategyUnion(scope, ownerTemplate, overideKind, Key.DECLARATION ); } setCompletionValues(scope, kind, Key.DECLARATION ); endDeclaration( resultDeclaration ); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/fb57293d470c0087b6edd9673084d38ceb95e5c2/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
8266,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
467,
9053,
2283,
3410,
2283,
16,
20735,
5677,
1879,
831,
5677,
13,
3639,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
565,
288,
377,
202,
377,
202,
45,
9053,
11238,
907,
18,
11238,
5677,
3846,
273,
336,
11238,
5677,
1290,
6094,
12,
4887,
16,
1879,
831,
5677,
1769,
377,
202,
542,
11238,
1972,
12,
4887,
16,
3846,
16,
1929,
18,
23956,
985,
2689,
11272,
377,
202,
45,
9053,
6094,
563,
6094,
273,
446,
31,
377,
202,
9610,
261,
12050,
12,
21,
3719,
3639,
288,
5411,
648,
467,
1345,
18,
88,
67,
23522,
294,
7734,
467,
1345,
1122,
273,
7865,
12,
1285,
969,
18,
88,
67,
23522,
1769,
7734,
444,
11238,
1972,
12,
2146,
16,
20735,
5677,
18,
3417,
67,
19958,
67,
47,
2356,
16,
18317,
30267,
18,
13625,
11272,
7734,
7865,
12,
1285,
969,
18,
88,
48,
15111,
1769,
7734,
514,
19931,
273,
7865,
12,
1285,
969,
18,
88,
5804,
2934,
588,
2040,
5621,
7734,
7865,
12,
1285,
969,
18,
88,
54,
15111,
1769,
7734,
467,
1345,
1142,
273,
7865,
12,
1285,
969,
18,
88,
1090,
7492,
1769,
27573,
775,
7734,
288,
10792,
563,
6094,
225,
273,
13491,
3364,
1733,
18,
2640,
3033,
49,
1852,
12,
18701,
2146,
16,
18701,
19931,
16,
18701,
1122,
18,
588,
2335,
9334,
18701,
1122,
18,
588,
31063,
9334,
1142,
18,
588,
1638,
2335,
9334,
1142,
18,
588,
31063,
10663,
7734,
289,
7734,
1044,
261,
503,
425,
13,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
8266,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
467,
9053,
2283,
3410,
2283,
16,
20735,
5677,
1879,
831,
5677,
13,
3639,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
565,
288,
377,
202,
377,
202,
45,
9053,
11238,
907,
18,
11238,
5677,
3846,
273,
336,
11238,
5677,
1290,
6094,
12,
4887,
16,
1879,
831,
5677,
1769,
377,
202,
542,
11238,
1972,
12,
4887,
16,
3846,
16,
1929,
18,
23956,
985,
2689,
11272,
377,
202,
45,
9053,
6094,
563,
6094,
273,
446,
31,
377,
202,
9610,
261,
12050,
12,
21,
3719,
3639,
288,
5411,
648,
467,
1345,
18,
88,
67,
23522,
294,
7734,
467,
1345,
1122,
273,
7865,
12,
1285,
969,
18,
88,
67,
23522,
2
] |
public static void preloadSpecialClass( OPT_Options options ) { String klassName = "L"+options.PRELOAD_CLASS+";"; if (options.PRELOAD_AS_BOOT ) { setBootOptions( options ); // Make a local copy so that some options can be altered to mimic options // during boot build options = (OPT_Options)options.clone(); } try { loadSpecialClass(klassName, options); } catch (Throwable e) { e.printStackTrace(); VM.sysWrite("Ignoring failure of preloadSpecialClass of "+klassName+"\n"); } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/12eb5722bb90f24db4ec2d2cf68e285fa9395033/OPT_Compiler.java/clean/rvm/src/vm/compilers/optimizing/driver/OPT_Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
1484,
945,
12193,
797,
12,
15620,
67,
1320,
2116,
15329,
780,
22626,
461,
1546,
48,
6,
15,
2116,
18,
3670,
7783,
67,
5237,
9078,
4868,
31,
430,
12,
2116,
18,
3670,
7783,
67,
3033,
67,
30124,
15329,
542,
15817,
1320,
12,
2116,
1769,
759,
6464,
287,
23735,
3530,
87,
10370,
2323,
1742,
2116,
4169,
2196,
22628,
329,
3599,
381,
335,
2116,
759,
72,
4017,
7137,
3510,
2116,
28657,
15620,
67,
1320,
13,
2116,
18,
14056,
5621,
97,
698,
95,
945,
12193,
797,
12,
22626,
461,
16,
2116,
1769,
97,
14683,
12,
15155,
73,
15329,
73,
18,
1188,
6332,
5621,
7397,
18,
9499,
3067,
2932,
21702,
12251,
792,
1484,
945,
12193,
797,
792,
6,
15,
22626,
461,
9078,
64,
82,
8863,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3845,
6459,
1484,
945,
12193,
797,
12,
15620,
67,
1320,
2116,
15329,
780,
22626,
461,
1546,
48,
6,
15,
2116,
18,
3670,
7783,
67,
5237,
9078,
4868,
31,
430,
12,
2116,
18,
3670,
7783,
67,
3033,
67,
30124,
15329,
542,
15817,
1320,
12,
2116,
1769,
759,
6464,
287,
23735,
3530,
87,
10370,
2323,
1742,
2116,
4169,
2196,
22628,
329,
3599,
381,
335,
2116,
759,
72,
4017,
7137,
3510,
2116,
28657,
15620,
67,
1320,
13,
2116,
18,
14056,
5621,
97,
698,
95,
945,
12193,
797,
12,
22626,
461,
16,
2116,
1769,
97,
14683,
12,
15155,
73,
15329,
73,
18,
1188,
6332,
5621,
7397,
18,
9499,
3067,
2932,
21702,
12251,
792,
1484,
945,
12193,
797,
792,
6,
15,
22626,
461,
2
] |
||
if(intersector.rayUnknownGeometry(locationPoint,
|
if(terrainIntersect.rayUnknownGeometry(locationPoint,
|
private boolean checkTerrainFollowing() { boolean ret_val = true; viewTg.getLocalToVworld(worldEyeTransform); worldEyeTransform.mul(viewTx); worldEyeTransform.get(locationVector); worldEyeTransform.transform(Y_DOWN, downVector); locationPoint.add(locationVector, oneFrameTranslation); terrainPicker.set(locationPoint, downVector); SceneGraphPath[] ground = terrain.pickAllSorted(terrainPicker); // if there is no ground below us, do nothing. if((ground == null) || (ground.length == 0)) { return ret_val; } double shortest_length = -1; for(int i = 0; i < ground.length; i++) { Transform3D local_tx = ground[i].getTransform(); local_tx.get(locationVector); Shape3D i_shape = (Shape3D)ground[i].getObject(); Enumeration geom_list = i_shape.getAllGeometries(); while(geom_list.hasMoreElements()) { GeometryArray geom = (GeometryArray)geom_list.nextElement(); if(geom == null) continue; if(intersector.rayUnknownGeometry(locationPoint, downVector, 0, geom, local_tx, wkPoint, false)) { diffVec.sub(locationPoint, wkPoint); if((shortest_length == -1) || (diffVec.length() < shortest_length)) { shortest_length = diffVec.length(); intersectionPoint.set(wkPoint); } } } } // No intersection!!!! How did that happen? Well, just exit and // pretend there was nothing below us if(shortest_length == -1) return true; // Is the difference in world Y values greater than the step height? // If so, then jump the viewpoint to the new terrain height plus the // avatar height above ground. Handles both rising and descending // terrain. If the difference is greater than the step height, we set // the translation to nothing in the Z direction. double terrain_step = intersectionPoint.y - lastTerrainHeight; double height_above_terrain = locationPoint.y - intersectionPoint.y; // Do we need to adjust the height? If so the check if the height is a // step that is too high or not if(height_above_terrain != avatarHeight) { if(terrain_step == 0) { // Flat surface. Check to see the avatar height is correct oneFrameTranslation.y = avatarHeight - height_above_terrain; } else if(terrain_step < avatarStep) { oneFrameTranslation.y += terrain_step; ret_val = true; } else { // prevent it. Set the transform to 0. ret_val = false; } } lastTerrainHeight = (float)intersectionPoint.y; return ret_val; }
|
46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/7ba69bcae2b5e8d543a43c6dcb453a7539fadbfd/NavigationHandler.java/clean/src/java/org/j3d/ui/navigation/NavigationHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
866,
56,
264,
7596,
8328,
310,
1435,
565,
288,
3639,
1250,
325,
67,
1125,
273,
638,
31,
3639,
1476,
56,
75,
18,
588,
2042,
774,
58,
18179,
12,
18179,
41,
20513,
4059,
1769,
3639,
9117,
41,
20513,
4059,
18,
16411,
12,
1945,
4188,
1769,
3639,
9117,
41,
20513,
4059,
18,
588,
12,
3562,
5018,
1769,
3639,
9117,
41,
20513,
4059,
18,
6547,
12,
61,
67,
12711,
16,
2588,
5018,
1769,
3639,
2117,
2148,
18,
1289,
12,
3562,
5018,
16,
1245,
3219,
6717,
1769,
3639,
19272,
7596,
13194,
18,
542,
12,
3562,
2148,
16,
2588,
5018,
1769,
3639,
29347,
4137,
743,
8526,
19209,
273,
19272,
7596,
18,
11503,
1595,
11739,
12,
387,
7596,
13194,
1769,
3639,
368,
309,
1915,
353,
1158,
19209,
5712,
584,
16,
741,
5083,
18,
3639,
309,
12443,
2915,
422,
446,
13,
747,
261,
2915,
18,
2469,
422,
374,
3719,
3639,
288,
5411,
327,
325,
67,
1125,
31,
3639,
289,
3639,
1645,
20579,
67,
2469,
273,
300,
21,
31,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
19209,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
11514,
23,
40,
1191,
67,
978,
273,
19209,
63,
77,
8009,
588,
4059,
5621,
5411,
1191,
67,
978,
18,
588,
12,
3562,
5018,
1769,
5411,
12383,
23,
40,
277,
67,
4867,
273,
261,
8500,
23,
40,
13,
2915,
63,
77,
8009,
588,
921,
5621,
5411,
13864,
7364,
67,
1098,
273,
277,
67,
4867,
18,
588,
1595,
16972,
9407,
5621,
5411,
1323,
12,
10049,
67,
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,
1250,
866,
56,
264,
7596,
8328,
310,
1435,
565,
288,
3639,
1250,
325,
67,
1125,
273,
638,
31,
3639,
1476,
56,
75,
18,
588,
2042,
774,
58,
18179,
12,
18179,
41,
20513,
4059,
1769,
3639,
9117,
41,
20513,
4059,
18,
16411,
12,
1945,
4188,
1769,
3639,
9117,
41,
20513,
4059,
18,
588,
12,
3562,
5018,
1769,
3639,
9117,
41,
20513,
4059,
18,
6547,
12,
61,
67,
12711,
16,
2588,
5018,
1769,
3639,
2117,
2148,
18,
1289,
12,
3562,
5018,
16,
1245,
3219,
6717,
1769,
3639,
19272,
7596,
13194,
18,
542,
12,
3562,
2148,
16,
2588,
5018,
1769,
3639,
29347,
4137,
743,
8526,
19209,
273,
19272,
7596,
18,
11503,
1595,
11739,
12,
387,
7596,
13194,
1769,
3639,
368,
2
] |
socket = new Socket();
|
private void connectToStateProvider(StateHeader hdr) { Socket socket = null; IpAddress address = hdr.bind_addr; String tmp_state_id = hdr.getStateId(); StreamingInputStreamWrapper wrapper = null; StateTransferInfo sti = null; try { socket = new Socket(); socket.bind(new InetSocketAddress(bind_addr, 0)); int bufferSize = socket.getReceiveBufferSize(); socket.setReceiveBufferSize(socket_buffer_size); if (log.isDebugEnabled()) log.debug("Connecting to state provider " + address.getIpAddress() + ":" + address.getPort() + ", original buffer size was " + bufferSize + " and was reset to " + socket.getReceiveBufferSize()); socket.connect(new InetSocketAddress(address.getIpAddress(), address.getPort())); if (log.isDebugEnabled()) log.debug("Connected to state provider, my end of the socket is " + socket.getLocalAddress() + ":" + socket.getLocalPort() + " passing inputstream up..."); //write out our state_id and address so state provider can clear this request ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream()); out.writeObject(tmp_state_id); out.writeObject(local_addr); wrapper = new StreamingInputStreamWrapper(socket); sti = new StateTransferInfo(hdr.sender, wrapper, tmp_state_id); } catch (IOException e) { if (warn) { log.warn("State reader socket thread spawned abnormaly", e); } //pass null stream up so that JChannel.getState() returns false InputStream is = null; sti = new StateTransferInfo(hdr.sender, is, tmp_state_id); } finally { if (!socket.isConnected()) { if (warn) log.warn("Could not connect to state provider. Closing socket..."); try { if (wrapper != null) { wrapper.close(); } else { socket.close(); } } catch (IOException e) { } //since socket did not connect properly we have to //clear our entry in state providers hashmap "manually" Message m = new Message(hdr.sender); StateHeader mhdr = new StateHeader(StateHeader.STATE_REMOVE_REQUESTER, local_addr, tmp_state_id); m.putHeader(NAME, mhdr); passDown(new Event(Event.MSG, m)); } passStreamUp(sti); } }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/77021c656b9606e68e7ab2a1fee125c3e494a1e1/STREAMING_STATE_TRANSFER.java/buggy/src/org/jgroups/protocols/pbcast/STREAMING_STATE_TRANSFER.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
3077,
774,
1119,
2249,
12,
1119,
1864,
7723,
13,
282,
288,
1377,
8758,
2987,
273,
446,
31,
1377,
14709,
1887,
1758,
273,
7723,
18,
4376,
67,
4793,
31,
1377,
514,
1853,
67,
2019,
67,
350,
273,
7723,
18,
588,
1119,
548,
5621,
1377,
18722,
4348,
3611,
4053,
273,
446,
31,
1377,
3287,
5912,
966,
384,
77,
273,
446,
31,
1377,
775,
1377,
288,
1171,
2987,
18,
4376,
12,
2704,
17943,
12,
4376,
67,
4793,
16,
374,
10019,
540,
509,
16939,
273,
2987,
18,
588,
11323,
15384,
5621,
540,
2987,
18,
542,
11323,
15384,
12,
7814,
67,
4106,
67,
1467,
1769,
540,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
613,
18,
4148,
2932,
30049,
358,
919,
2893,
315,
397,
1758,
18,
588,
16875,
1435,
397,
6153,
397,
1758,
18,
588,
2617,
1435,
5375,
397,
3104,
2282,
1613,
963,
1703,
315,
397,
16939,
397,
315,
471,
1703,
2715,
358,
315,
397,
2987,
18,
588,
11323,
15384,
10663,
540,
2987,
18,
3612,
12,
2704,
17943,
12,
2867,
18,
588,
16875,
9334,
1758,
18,
588,
2617,
1435,
10019,
540,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
613,
18,
4148,
2932,
8932,
358,
919,
2893,
16,
3399,
679,
434,
326,
2987,
353,
315,
397,
2987,
18,
588,
2042,
1887,
1435,
397,
6153,
5375,
397,
2987,
18,
588,
2042,
2617,
1435,
397,
315,
9588,
810,
3256,
731,
7070,
1769,
540,
368,
2626,
596,
3134,
919,
67,
350,
471,
1758,
1427,
919,
2893,
848,
2424,
333,
590,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
3077,
774,
1119,
2249,
12,
1119,
1864,
7723,
13,
282,
288,
1377,
8758,
2987,
273,
446,
31,
1377,
14709,
1887,
1758,
273,
7723,
18,
4376,
67,
4793,
31,
1377,
514,
1853,
67,
2019,
67,
350,
273,
7723,
18,
588,
1119,
548,
5621,
1377,
18722,
4348,
3611,
4053,
273,
446,
31,
1377,
3287,
5912,
966,
384,
77,
273,
446,
31,
1377,
775,
1377,
288,
1171,
2987,
18,
4376,
12,
2704,
17943,
12,
4376,
67,
4793,
16,
374,
10019,
540,
509,
16939,
273,
2987,
18,
588,
11323,
15384,
5621,
540,
2987,
18,
542,
11323,
15384,
12,
7814,
67,
4106,
67,
1467,
1769,
540,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
613,
18,
4148,
2932,
30049,
358,
2
] |
|
entity.addAttribute(newAttribute);
|
newAttribute.setUserInfo(attribute.userInfo());
|
protected void createLocalizedAttributes(EOEntity entity) { NSArray attributes = entity.attributes(); NSArray classProperties = entity.classProperties(); NSArray attributesUsedForLocking = entity.attributesUsedForLocking(); if(attributes == null) attributes = NSArray.EmptyArray; if(classProperties == null) classProperties = NSArray.EmptyArray; if(attributesUsedForLocking == null) attributesUsedForLocking = NSArray.EmptyArray; NSMutableArray mutableClassProperties = classProperties.mutableClone(); NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone(); for(Enumeration e = attributes.objectEnumerator(); e.hasMoreElements(); ) { EOAttribute attribute = (EOAttribute)e.nextElement(); NSDictionary userInfo = attribute.userInfo(); String name = attribute.name(); if(userInfo != null) { NSArray languages = (NSArray)userInfo.objectForKey("ERXLanguages"); if(languages != null && languages.count() > 0) { String columnName = attribute.columnName(); for (int i = 0; i < languages.count(); i++) { String language = (String) languages.objectAtIndex(i); String newName = name + "_" +language; String newColumnName = columnName + "_" +language; EOAttribute newAttribute = new EOAttribute(); newAttribute.setPrototype(attribute.prototype()); newAttribute.setName(newName); newAttribute.setColumnName(newColumnName); newAttribute.setAllowsNull(attribute.allowsNull()); newAttribute.setClassName(attribute.className()); newAttribute.setExternalType(attribute.externalType()); newAttribute.setWidth(attribute.width()); entity.addAttribute(newAttribute); if(classProperties.containsObject(attribute)) { mutableClassProperties.addObject(newAttribute); } if(attributesUsedForLocking.containsObject(attribute)) { mutableAttributesUsedForLocking.addObject(newAttribute); } } entity.removeAttribute(attribute); mutableClassProperties.removeObject(attribute); mutableAttributesUsedForLocking.removeObject(attribute); } } entity.setClassProperties(mutableClassProperties); entity.setAttributesUsedForLocking(mutableAttributesUsedForLocking); } }
|
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/e1911f4c5115b90d758107b1cc90245a05b2477f/EOFSQLGenerator.java/buggy/wolips/core/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/sql/EOFSQLGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
2042,
1235,
2498,
12,
41,
51,
1943,
1522,
13,
288,
202,
202,
3156,
1076,
1677,
273,
1522,
18,
4350,
5621,
202,
202,
3156,
1076,
667,
2297,
273,
1522,
18,
1106,
2297,
5621,
202,
202,
3156,
1076,
1677,
6668,
1290,
2531,
310,
273,
1522,
18,
4350,
6668,
1290,
2531,
310,
5621,
202,
202,
430,
12,
4350,
422,
446,
13,
1677,
273,
11472,
1076,
18,
1921,
1076,
31,
202,
202,
430,
12,
1106,
2297,
422,
446,
13,
667,
2297,
273,
11472,
1076,
18,
1921,
1076,
31,
202,
202,
430,
12,
4350,
6668,
1290,
2531,
310,
422,
446,
13,
1677,
6668,
1290,
2531,
310,
273,
11472,
1076,
18,
1921,
1076,
31,
202,
202,
3156,
19536,
1076,
16074,
797,
2297,
273,
667,
2297,
18,
5146,
10930,
5621,
202,
202,
3156,
19536,
1076,
16074,
2498,
6668,
1290,
2531,
310,
273,
1677,
6668,
1290,
2531,
310,
18,
5146,
10930,
5621,
202,
202,
1884,
12,
21847,
425,
273,
1677,
18,
1612,
3572,
7385,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
1082,
202,
41,
51,
1499,
1566,
273,
261,
41,
51,
1499,
13,
73,
18,
4285,
1046,
5621,
1082,
202,
3156,
10905,
16753,
273,
1566,
18,
1355,
966,
5621,
1082,
202,
780,
508,
273,
1566,
18,
529,
5621,
1082,
202,
430,
12,
1355,
966,
480,
446,
13,
288,
9506,
202,
3156,
1076,
8191,
273,
261,
3156,
1076,
13,
1355,
966,
18,
1612,
19759,
2932,
654,
60,
12912,
8863,
9506,
202,
430,
12,
14045,
480,
446,
597,
8191,
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,
1117,
918,
752,
2042,
1235,
2498,
12,
41,
51,
1943,
1522,
13,
288,
202,
202,
3156,
1076,
1677,
273,
1522,
18,
4350,
5621,
202,
202,
3156,
1076,
667,
2297,
273,
1522,
18,
1106,
2297,
5621,
202,
202,
3156,
1076,
1677,
6668,
1290,
2531,
310,
273,
1522,
18,
4350,
6668,
1290,
2531,
310,
5621,
202,
202,
430,
12,
4350,
422,
446,
13,
1677,
273,
11472,
1076,
18,
1921,
1076,
31,
202,
202,
430,
12,
1106,
2297,
422,
446,
13,
667,
2297,
273,
11472,
1076,
18,
1921,
1076,
31,
202,
202,
430,
12,
4350,
6668,
1290,
2531,
310,
422,
446,
13,
1677,
6668,
1290,
2531,
310,
273,
11472,
1076,
18,
1921,
1076,
31,
202,
202,
3156,
19536,
1076,
16074,
2
] |
_t = __t1650;
|
_t = __t1651;
|
public final void on___phrase(AST _t) throws RecognitionException { AST on___phrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1647 = _t; AST tmp139_AST_in = (AST)_t; match(_t,ON); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ENDKEY: { AST tmp140_AST_in = (AST)_t; match(_t,ENDKEY); _t = _t.getNextSibling(); break; } case ERROR: { AST tmp141_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getNextSibling(); break; } case STOP: { AST tmp142_AST_in = (AST)_t; match(_t,STOP); _t = _t.getNextSibling(); break; } case QUIT: { AST tmp143_AST_in = (AST)_t; match(_t,QUIT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNDO: { AST __t1650 = _t; AST tmp144_AST_in = (AST)_t; match(_t,UNDO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp145_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1650; _t = _t.getNextSibling(); break; } case 3: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST tmp146_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEAVE: { AST __t1654 = _t; AST tmp147_AST_in = (AST)_t; match(_t,LEAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp148_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1654; _t = _t.getNextSibling(); break; } case NEXT: { AST __t1656 = _t; AST tmp149_AST_in = (AST)_t; match(_t,NEXT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp150_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1656; _t = _t.getNextSibling(); break; } case RETRY: { AST __t1658 = _t; AST tmp151_AST_in = (AST)_t; match(_t,RETRY); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp152_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1658; _t = _t.getNextSibling(); break; } case RETURN: { AST __t1660 = _t; AST tmp153_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { return_options(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t1660; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1647; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/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,
603,
31268,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
603,
31268,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
23147,
27,
273,
389,
88,
31,
202,
202,
9053,
1853,
24347,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
673,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
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,
7273,
3297,
30,
202,
202,
95,
1082,
202,
9053,
1853,
27092,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4415,
3297,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
5475,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3461,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
3589,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
17815,
30,
202,
202,
95,
1082,
202,
9053,
1853,
29126,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
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,
603,
31268,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
603,
31268,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
23147,
27,
273,
389,
88,
31,
202,
202,
9053,
1853,
24347,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
673,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
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,
2
] |
else if (key.equals("cc")) {
|
else if (key.equals("newcc")) {
|
protected void createAttributeLayout() { String title = getTitleString(); String keywords = ""; String url = ""; // Attributes Composite- this holds all the combo fiels and text // fields Composite attributesComposite = new Composite(infoArea, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); attributesComposite.setBackground(background); // End Attributes Composite // Attributes Title Area Composite attributesTitleComposite = new Composite(attributesComposite, SWT.NONE); GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; attributesTitleComposite.setLayout(attributesTitleLayout); attributesTitleComposite.setBackground(background); GridData attributesTitleData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; attributesTitleComposite.setLayoutData(attributesTitleData); // End Attributes Title // Set the Attributes Title newAttributesLayout(attributesTitleComposite); titleLabel.setText(title); bugzillaInput.setToolTipText(title); int currentCol = 1; // Populate Attributes for (Iterator<Attribute> it = getBug().getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // make sure we don't try to display a hidden field if (attribute.isHidden() || (key != null && key.equals("status_whiteboard"))) continue; if (values == null) values = new HashMap<String, String>(); if (key == null) key = ""; GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (key.equals("short_desc") || key.equals("keywords")) { keywords = value; } else if (key.equals("cc")) { // XXX we don't do anything with the cc yet } else if (key.equals("bug_file_loc")) { url = value; } else if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setLayoutData(data); oSCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } oSCombo.select(oSCombo.indexOf(value)); oSCombo.addListener(SWT.Modify, this); comboListenerMap.put(oSCombo, name); oSCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setLayoutData(data); versionCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } versionCombo.select(versionCombo.indexOf(value)); versionCombo.addListener(SWT.Modify, this); versionCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(versionCombo, name); currentCol += 2; } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setLayoutData(data); priorityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } priorityCombo.select(priorityCombo.indexOf(value)); priorityCombo.addListener(SWT.Modify, this); priorityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(priorityCombo, name); currentCol += 2; } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setLayoutData(data); severityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } severityCombo.select(severityCombo.indexOf(value)); severityCombo.addListener(SWT.Modify, this); severityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(severityCombo, name); currentCol += 2; } else if (key.equals("target_milestone")) { newLayout(attributesComposite, 1, name, PROPERTY); milestoneCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); milestoneCombo.setLayoutData(data); milestoneCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { milestoneCombo.add(a[i]); } milestoneCombo.select(milestoneCombo.indexOf(value)); milestoneCombo.addListener(SWT.Modify, this); milestoneCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(milestoneCombo, name); currentCol += 2; } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setLayoutData(data); platformCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } platformCombo.select(platformCombo.indexOf(value)); platformCombo.addListener(SWT.Modify, this); platformCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(platformCombo, name); currentCol += 2; } else if (key.equals("product")) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setLayoutData(data); componentCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } componentCombo.select(componentCombo.indexOf(value)); componentCombo.addListener(SWT.Modify, this); componentCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(componentCombo, name); currentCol += 2; } else if (name.equals("Summary")) { // Don't show the summary here. continue; } else if (values.isEmpty()) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // End Populate Attributes // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // URL, Keywords, Summary Text Fields addUrlText(url, attributesComposite); // keywords text field (not editable) addKeywordsList(keywords, attributesComposite); addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/faa423f26976e96af5ca44822c8e820d7e9c08df/AbstractBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
9506,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
9506,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
3196,
202,
759,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
1376,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
202,
202,
6313,
751,
1677,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
4350,
751,
18,
18396,
6952,
273,
404,
31,
202,
202,
4350,
751,
18,
2752,
70,
424,
614,
15704,
3819,
273,
629,
31,
202,
202,
4350,
9400,
18,
542,
3744,
751,
12,
4350,
751,
1769,
202,
202,
4350,
9400,
18,
542,
8199,
12,
9342,
1769,
202,
202,
759,
4403,
9055,
14728,
9506,
202,
759,
9055,
10984,
16668,
202,
202,
9400,
1677,
4247,
9400,
273,
1082,
202,
2704,
14728,
12,
4350,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
4247,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
4247,
3744,
18,
18396,
18006,
273,
374,
31,
202,
202,
4350,
4247,
3744,
18,
10107,
2384,
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,
752,
1499,
3744,
1435,
288,
9506,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
9506,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
3196,
202,
759,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
1376,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
2
] |
public org.quickfix.field.AgreementDate getAgreementDate() throws FieldNotFound { org.quickfix.field.AgreementDate value = new org.quickfix.field.AgreementDate();
|
public quickfix.field.AgreementDate getAgreementDate() throws FieldNotFound { quickfix.field.AgreementDate value = new quickfix.field.AgreementDate();
|
public org.quickfix.field.AgreementDate getAgreementDate() throws FieldNotFound { org.quickfix.field.AgreementDate value = new org.quickfix.field.AgreementDate(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17420,
1626,
336,
17420,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17420,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17420,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17420,
1626,
336,
17420,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17420,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17420,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
GdkGraphics (GtkComponentPeer component)
|
GdkGraphics (GdkGraphics g)
|
GdkGraphics (GtkComponentPeer component) { this.component = component; font = component.awtComponent.getFont (); if (font == null) font = new Font ("Dialog", Font.PLAIN, 12); color = Color.black; if (component.isRealized ()) initComponentGraphics (); else connectSignals (component); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/83aa427eb7d76e0c9b8f944c66dc76a2d4383728/GdkGraphics.java/buggy/gnu/java/awt/peer/gtk/GdkGraphics.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
611,
2883,
17558,
261,
43,
2883,
17558,
314,
13,
225,
288,
565,
333,
18,
4652,
273,
1794,
31,
565,
3512,
273,
1794,
18,
2219,
88,
1841,
18,
588,
5711,
261,
1769,
565,
309,
261,
5776,
422,
446,
13,
1377,
3512,
273,
394,
10063,
7566,
6353,
3113,
10063,
18,
26549,
16,
2593,
1769,
565,
2036,
273,
5563,
18,
11223,
31,
565,
309,
261,
4652,
18,
291,
6955,
1235,
1832,
13,
1377,
1208,
1841,
17558,
261,
1769,
565,
469,
1377,
3077,
23346,
261,
4652,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
611,
2883,
17558,
261,
43,
2883,
17558,
314,
13,
225,
288,
565,
333,
18,
4652,
273,
1794,
31,
565,
3512,
273,
1794,
18,
2219,
88,
1841,
18,
588,
5711,
261,
1769,
565,
309,
261,
5776,
422,
446,
13,
1377,
3512,
273,
394,
10063,
7566,
6353,
3113,
10063,
18,
26549,
16,
2593,
1769,
565,
2036,
273,
5563,
18,
11223,
31,
565,
309,
261,
4652,
18,
291,
6955,
1235,
1832,
13,
1377,
1208,
1841,
17558,
261,
1769,
565,
469,
1377,
3077,
23346,
261,
4652,
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
] |
int _m463 = mark(); synPredMatched463 = true;
|
int _m464 = mark(); synPredMatched464 = true;
|
public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: boolean synPredMatched454 = false; if (((LA(1)=='(') && (LA(2)==':') && (LA(3)==':') && (LA(4)=='p'))) { int _m454 = mark(); synPredMatched454 = true; inputState.guessing++; try { { match("(::"); } } catch (RecognitionException pe) { synPredMatched454 = false; } rewind(_m454); inputState.guessing--; } if ( synPredMatched454 ) { mPRAGMA(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched468 = false; if (((_tokenSet_18.member(LA(1))) && (_tokenSet_19.member(LA(2))) && (_tokenSet_20.member(LA(3))) && (true))) { int _m468 = mark(); synPredMatched468 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_3.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched468 = false; } rewind(_m468); inputState.guessing--; } if ( synPredMatched468 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched452 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m452 = mark(); synPredMatched452 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched452 = false; } rewind(_m452); inputState.guessing--; } if ( synPredMatched452 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched456 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m456 = mark(); synPredMatched456 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched456 = false; } rewind(_m456); inputState.guessing--; } if ( synPredMatched456 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_21.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent )) { mATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((_tokenSet_22.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_23.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched459 = false; if (((_tokenSet_18.member(LA(1))) && (true) && (true) && (true))) { int _m459 = mark(); synPredMatched459 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched459 = false; } rewind(_m459); inputState.guessing--; } if ( synPredMatched459 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched461 = false; if (((_tokenSet_18.member(LA(1))) && (true) && (true) && (true))) { int _m461 = mark(); synPredMatched461 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched461 = false; } rewind(_m461); inputState.guessing--; } if ( synPredMatched461 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched463 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m463 = mark(); synPredMatched463 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched463 = false; } rewind(_m463); inputState.guessing--; } if ( synPredMatched463 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched470 = false; if (((_tokenSet_18.member(LA(1))) && (true) && (true) && (true))) { int _m470 = mark(); synPredMatched470 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched470 = false; } rewind(_m470); inputState.guessing--; } if ( synPredMatched470 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_3.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/00430aa4dd6963441696c4ac7250593b74a38b39/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
6494,
6194,
10391,
15400,
24,
6564,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2668,
13,
597,
261,
2534,
12,
22,
13,
18920,
2497,
13,
597,
261,
2534,
12,
23,
13,
18920,
2497,
13,
597,
261,
2534,
12,
24,
13,
18920,
84,
11,
20349,
288,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
2
] |
ent.setMethod(fbody.getBodyNode());
|
ent.setMethod(fbody.getHeadNode());
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getBodyNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getBodyNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/c7f13fd014f31b83985a27d44855459fd7abe0c5/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
968,
1305,
2250,
1253,
6272,
2250,
12,
54,
10340,
548,
612,
16,
509,
1158,
338,
13,
288,
202,
202,
967,
1305,
2250,
1253,
563,
273,
394,
968,
1305,
2250,
1253,
12,
2211,
16,
612,
16,
1158,
338,
1769,
202,
202,
1305,
907,
707,
907,
273,
1623,
1305,
12,
350,
1769,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
39,
970,
1104,
707,
11843,
397,
612,
18,
869,
461,
1435,
397,
7023,
316,
667,
315,
397,
358,
461,
10663,
1082,
202,
54,
10340,
1305,
27630,
18,
5688,
1921,
1622,
12,
588,
54,
10340,
9334,
333,
16,
612,
1769,
1082,
202,
2463,
563,
31,
202,
202,
97,
202,
202,
54,
10340,
1305,
27630,
3281,
273,
394,
19817,
1305,
27630,
12,
2211,
16,
707,
907,
18,
588,
2279,
338,
10663,
202,
202,
907,
1417,
273,
707,
907,
18,
588,
2250,
907,
5621,
202,
202,
430,
261,
3432,
1276,
478,
2250,
907,
13,
288,
1082,
202,
42,
2250,
907,
284,
3432,
273,
261,
42,
2250,
907,
13,
1417,
31,
1082,
202,
319,
18,
542,
20711,
12,
350,
1769,
1082,
202,
319,
18,
542,
7571,
12443,
54,
10340,
3120,
13,
284,
3432,
18,
588,
7571,
10663,
1082,
202,
319,
18,
542,
20711,
20,
12,
74,
3432,
18,
588,
49,
548,
10663,
1082,
202,
319,
18,
542,
1305,
12,
74,
3432,
18,
588,
2250,
907,
10663,
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,
968,
1305,
2250,
1253,
6272,
2250,
12,
54,
10340,
548,
612,
16,
509,
1158,
338,
13,
288,
202,
202,
967,
1305,
2250,
1253,
563,
273,
394,
968,
1305,
2250,
1253,
12,
2211,
16,
612,
16,
1158,
338,
1769,
202,
202,
1305,
907,
707,
907,
273,
1623,
1305,
12,
350,
1769,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
39,
970,
1104,
707,
11843,
397,
612,
18,
869,
461,
1435,
397,
7023,
316,
667,
315,
397,
358,
461,
10663,
1082,
202,
54,
10340,
1305,
27630,
18,
5688,
1921,
1622,
12,
588,
54,
10340,
9334,
2
] |
public org.quickfix.field.UnderlyingMaturityMonthYear getUnderlyingMaturityMonthYear() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityMonthYear value = new org.quickfix.field.UnderlyingMaturityMonthYear();
|
public quickfix.field.UnderlyingMaturityMonthYear getUnderlyingMaturityMonthYear() throws FieldNotFound { quickfix.field.UnderlyingMaturityMonthYear value = new quickfix.field.UnderlyingMaturityMonthYear();
|
public org.quickfix.field.UnderlyingMaturityMonthYear getUnderlyingMaturityMonthYear() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityMonthYear value = new org.quickfix.field.UnderlyingMaturityMonthYear(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequestReject.java/buggy/src/java/src/quickfix/fix44/QuoteRequestReject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
5445,
5593,
10833,
765,
6291,
15947,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
5445,
5593,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
5445,
5593,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
5445,
5593,
10833,
765,
6291,
15947,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
5445,
5593,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
15947,
2336,
5445,
5593,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
info = Xml.loadStream(zis);
|
info = Xml.loadStream(isb);
|
private static void handleXml(File mefFile, MEFVisitor v) throws Exception { ZipInputStream zis = new ZipInputStream(new FileInputStream(mefFile)); ZipEntry entry; Element md = null; Element info = null; try { while ((entry=zis.getNextEntry()) != null) { String name = entry.getName(); if (name.equals(FILE_METADATA)) md = Xml.loadStream(zis); else if (name.equals(FILE_INFO)) info = Xml.loadStream(zis); zis.closeEntry(); } } finally { safeClose(zis); } if (md == null) throw new BadFormatEx("Missing metadata file : "+ FILE_METADATA); if (info == null) throw new BadFormatEx("Missing info file : "+ FILE_INFO); v.handleMetadata(md); v.handleInfo(info); }
|
55092 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55092/4b42a1d47b8071948e047c57ad42f3c9a5c46663/Visitor.java/clean/src/org/fao/geonet/kernel/mef/Visitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1640,
4432,
12,
812,
1791,
74,
812,
16,
7733,
42,
7413,
331,
13,
1216,
1185,
202,
95,
202,
202,
9141,
4348,
998,
291,
273,
394,
8603,
4348,
12,
2704,
11907,
12,
3501,
74,
812,
10019,
202,
202,
9141,
1622,
1241,
31,
202,
202,
1046,
3481,
282,
273,
446,
31,
202,
202,
1046,
1123,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
17523,
14015,
4099,
33,
94,
291,
18,
588,
2134,
1622,
10756,
480,
446,
13,
1082,
202,
95,
9506,
202,
780,
508,
273,
1241,
18,
17994,
5621,
9506,
202,
430,
261,
529,
18,
14963,
12,
3776,
67,
22746,
3719,
6862,
202,
1264,
273,
5714,
18,
945,
1228,
12,
94,
291,
1769,
9506,
202,
12107,
309,
261,
529,
18,
14963,
12,
3776,
67,
5923,
3719,
6862,
202,
1376,
273,
5714,
18,
945,
1228,
12,
94,
291,
1769,
9506,
202,
94,
291,
18,
4412,
1622,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
23417,
202,
202,
95,
1082,
202,
4626,
4605,
12,
94,
291,
1769,
202,
202,
97,
202,
202,
430,
261,
1264,
422,
446,
13,
1082,
202,
12849,
394,
6107,
1630,
424,
2932,
4841,
1982,
585,
294,
13773,
7527,
67,
22746,
1769,
202,
202,
430,
261,
1376,
422,
446,
13,
1082,
202,
12849,
394,
6107,
1630,
424,
2932,
4841,
1123,
585,
294,
13773,
7527,
67,
5923,
1769,
202,
202,
90,
18,
4110,
2277,
12,
1264,
1769,
202,
202,
90,
18,
4110,
966,
12,
1376,
1769,
202,
97,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1640,
4432,
12,
812,
1791,
74,
812,
16,
7733,
42,
7413,
331,
13,
1216,
1185,
202,
95,
202,
202,
9141,
4348,
998,
291,
273,
394,
8603,
4348,
12,
2704,
11907,
12,
3501,
74,
812,
10019,
202,
202,
9141,
1622,
1241,
31,
202,
202,
1046,
3481,
282,
273,
446,
31,
202,
202,
1046,
1123,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
17523,
14015,
4099,
33,
94,
291,
18,
588,
2134,
1622,
10756,
480,
446,
13,
1082,
202,
95,
9506,
202,
780,
508,
273,
1241,
18,
17994,
5621,
9506,
202,
430,
261,
529,
18,
14963,
12,
3776,
67,
22746,
3719,
6862,
202,
1264,
273,
5714,
18,
945,
1228,
12,
94,
291,
1769,
2
] |
user.setHomeDirectory(new File(m_directoryTxt.getText()).getCanonicalPath()); user.setEnabled(m_enabledChkBox.isSelected()); user.setWritePermission(m_writeChkBox.isSelected()); user.setMaxIdleTime(getMaxIdleTime(m_uploadLst)); user.setMaxUploadRate(getBytesTransferRate(m_uploadLst)); user.setMaxDownloadRate(getBytesTransferRate(m_downloadLst)); m_fconfig.getUserManager().save(user); refresh(m_fconfig);
|
user.setHomeDirectory(new File(directoryTxt.getText()).getCanonicalPath()); user.setEnabled(enabledChkBox.isSelected()); user.setWritePermission(writeChkBox.isSelected()); user.setMaxIdleTime(getMaxIdleTime(uploadLst)); user.setMaxUploadRate(getBytesTransferRate(uploadLst)); user.setMaxDownloadRate(getBytesTransferRate(downloadLst)); fconfig.getUserManager().save(user); refresh(fconfig);
|
private void save() { // check user name field String userName = m_nameTxt.getText().trim(); if(userName.equals("")) { GuiUtils.showErrorMessage(this, "Please enter an user name"); return; } try { BaseUser user = new BaseUser(); user.setName(userName); if(setPassword(user)) { user.setHomeDirectory(new File(m_directoryTxt.getText()).getCanonicalPath()); user.setEnabled(m_enabledChkBox.isSelected()); user.setWritePermission(m_writeChkBox.isSelected()); user.setMaxIdleTime(getMaxIdleTime(m_uploadLst)); user.setMaxUploadRate(getBytesTransferRate(m_uploadLst)); user.setMaxDownloadRate(getBytesTransferRate(m_downloadLst)); m_fconfig.getUserManager().save(user); refresh(m_fconfig); GuiUtils.showInformationMessage(this, "Saved user - " + user.getName()); } } catch(Exception ex) { GuiUtils.showErrorMessage(this, ex.getMessage()); } }
|
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/UserManagerPanel.java/buggy/src/java/org/apache/ftpserver/gui/UserManagerPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
1435,
288,
3639,
368,
866,
729,
508,
652,
3639,
514,
12065,
273,
312,
67,
529,
21811,
18,
588,
1528,
7675,
5290,
5621,
3639,
309,
12,
1355,
461,
18,
14963,
2932,
6,
3719,
288,
5411,
611,
4881,
1989,
18,
4500,
14935,
12,
2211,
16,
315,
8496,
6103,
392,
729,
508,
8863,
5411,
327,
31,
3639,
289,
7734,
775,
288,
5411,
3360,
1299,
729,
273,
394,
3360,
1299,
5621,
5411,
729,
18,
542,
461,
12,
1355,
461,
1769,
5411,
309,
12,
542,
3913,
12,
1355,
3719,
288,
7734,
729,
18,
542,
8684,
2853,
12,
2704,
1387,
12,
81,
67,
5149,
21811,
18,
588,
1528,
1435,
2934,
588,
15512,
743,
10663,
7734,
729,
18,
542,
1526,
12,
81,
67,
5745,
782,
79,
3514,
18,
291,
7416,
10663,
7734,
729,
18,
542,
3067,
5041,
12,
81,
67,
2626,
782,
79,
3514,
18,
291,
7416,
10663,
7734,
729,
18,
542,
2747,
13834,
950,
12,
588,
2747,
13834,
950,
12,
81,
67,
6327,
28134,
10019,
7734,
729,
18,
542,
2747,
4777,
4727,
12,
588,
2160,
5912,
4727,
12,
81,
67,
6327,
28134,
10019,
7734,
729,
18,
542,
2747,
7109,
4727,
12,
588,
2160,
5912,
4727,
12,
81,
67,
7813,
28134,
10019,
7734,
312,
67,
74,
1425,
18,
588,
1299,
1318,
7675,
5688,
12,
1355,
1769,
7734,
4460,
12,
81,
67,
74,
1425,
1769,
7734,
611,
4881,
1989,
18,
4500,
5369,
1079,
12,
2211,
16,
315,
16776,
729,
300,
315,
397,
729,
18,
17994,
10663,
5411,
289,
3639,
289,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
1435,
288,
3639,
368,
866,
729,
508,
652,
3639,
514,
12065,
273,
312,
67,
529,
21811,
18,
588,
1528,
7675,
5290,
5621,
3639,
309,
12,
1355,
461,
18,
14963,
2932,
6,
3719,
288,
5411,
611,
4881,
1989,
18,
4500,
14935,
12,
2211,
16,
315,
8496,
6103,
392,
729,
508,
8863,
5411,
327,
31,
3639,
289,
7734,
775,
288,
5411,
3360,
1299,
729,
273,
394,
3360,
1299,
5621,
5411,
729,
18,
542,
461,
12,
1355,
461,
1769,
5411,
309,
12,
542,
3913,
12,
1355,
3719,
288,
7734,
729,
18,
542,
8684,
2853,
12,
2704,
1387,
12,
81,
67,
5149,
21811,
18,
588,
1528,
1435,
2934,
588,
15512,
743,
10663,
7734,
729,
18,
542,
1526,
12,
81,
2
] |
imageCH = new ImageIcon("lang" + FILESEP + "flags" + FILESEP + "ch.gif"); imageIT = new ImageIcon("lang" + FILESEP + "flags" + FILESEP + "it.gif"); imageDE = new ImageIcon("lang" + FILESEP + "flags" + FILESEP + "de.gif"); imageAT = new ImageIcon("lang" + FILESEP + "flags" + FILESEP + "at.gif");
|
public NumberCellRenderer() { super(); imagePhone = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/phone.png"))); //$NON-NLS-1$ imageHandy = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/handy.png"))); //$NON-NLS-1$ imageHome = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/home.png"))); //$NON-NLS-1$ imageWorld = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/world.png"))); //$NON-NLS-1$ imageD1 = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/d1.png"))); //$NON-NLS-1$ imageD2 = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/d2.png"))); //$NON-NLS-1$ imageO2 = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/o2.png"))); //$NON-NLS-1$ imageEplus = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/eplus.png"))); //$NON-NLS-1$ imageSipgate = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/sipgate.png"))); //$NON-NLS-1$ imageFreeCall = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/freecall.png"))); //$NON-NLS-1$ }
|
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/8897bb9e4f58a6bdb5c1704d1aba0da4b6382129/NumberCellRenderer.java/buggy/jfritz/src/de/moonflower/jfritz/cellrenderer/NumberCellRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1316,
1792,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
343,
18,
13905,
8863,
225,
1316,
1285,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
305,
18,
13905,
8863,
225,
1316,
1639,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
323,
18,
13905,
8863,
225,
1316,
789,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
270,
18,
13905,
8863,
3588,
4020,
6747,
1435,
1316,
1792,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
343,
18,
13905,
8863,
225,
1316,
1285,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
305,
18,
13905,
8863,
225,
1316,
1639,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
323,
18,
13905,
8863,
225,
1316,
789,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
270,
18,
13905,
8863,
288,
202,
202,
9565,
5621,
202,
202,
2730,
9451,
1316,
1792,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
343,
18,
13905,
8863,
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,
1316,
1792,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
343,
18,
13905,
8863,
225,
1316,
1285,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
305,
18,
13905,
8863,
225,
1316,
1639,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
323,
18,
13905,
8863,
225,
1316,
789,
273,
394,
3421,
5554,
2932,
4936,
6,
397,
7527,
28610,
397,
315,
7133,
6,
397,
7527,
28610,
397,
315,
270,
18,
13905,
8863,
3588,
4020,
6747,
1435,
1316,
1792,
273,
394,
3421,
5554,
2932,
4936,
6,
2
] |
|
public static IPath canonicalizedPath(IPath externalPath) { if (externalPath == null) return null;// if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonicalizing " + externalPath.toString()); //$NON-NLS-1$// } if (IS_CASE_SENSITIVE) {// if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonical path is original path (file system is case sensitive)"); //$NON-NLS-1$// } return externalPath; } // if not external path, return original path IWorkspace workspace = ResourcesPlugin.getWorkspace(); if (workspace == null) return externalPath; // protection during shutdown (30487) if (workspace.getRoot().findMember(externalPath) != null) {// if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonical path is original path (member of workspace)"); //$NON-NLS-1$// } return externalPath; } IPath canonicalPath = null; try { canonicalPath = new Path(new File(externalPath.toOSString()).getCanonicalPath()); } catch (IOException e) { // default to original path// if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonical path is original path (IOException)"); //$NON-NLS-1$// } return externalPath; } IPath result; int canonicalLength = canonicalPath.segmentCount(); if (canonicalLength == 0) { // the java.io.File canonicalization failed// if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonical path is original path (canonical path is empty)"); //$NON-NLS-1$// } return externalPath; } else if (externalPath.isAbsolute()) { result = canonicalPath; } else { // if path is relative, remove the first segments that were added by the java.io.File canonicalization // e.g. 'lib/classes.zip' was converted to 'd:/myfolder/lib/classes.zip' int externalLength = externalPath.segmentCount(); if (canonicalLength >= externalLength) { result = canonicalPath.removeFirstSegments(canonicalLength - externalLength); } else {// if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonical path is original path (canonical path is " + canonicalPath.toString() + ")"); //$NON-NLS-1$ //$NON-NLS-2$// } return externalPath; } } // keep device only if it was specified (this is because File.getCanonicalPath() converts '/lib/classed.zip' to 'd:/lib/classes/zip') if (externalPath.getDevice() == null) { result = result.setDevice(null); } // if (JavaModelManager.VERBOSE) {// System.out.println("JAVA MODEL - Canonical path is " + result.toString()); //$NON-NLS-1$// } return result; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/8915ec2bb74e44419be85002d7c3a4c9f8582635/JavaProject.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
743,
7378,
1235,
743,
12,
45,
743,
3903,
743,
13,
288,
9506,
202,
430,
261,
9375,
743,
422,
446,
13,
1082,
202,
2463,
446,
31,
759,
202,
202,
430,
261,
5852,
1488,
1318,
18,
21900,
13,
288,
759,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
27264,
21700,
300,
19413,
6894,
315,
397,
3903,
743,
18,
10492,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
759,
202,
202,
97,
202,
202,
430,
261,
5127,
67,
13415,
67,
26753,
16325,
13,
288,
759,
1082,
202,
430,
261,
5852,
1488,
1318,
18,
21900,
13,
288,
759,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
27264,
21700,
300,
19413,
589,
353,
2282,
589,
261,
768,
2619,
353,
648,
16692,
2225,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
759,
1082,
202,
97,
1082,
202,
2463,
3903,
743,
31,
202,
202,
97,
202,
202,
759,
309,
486,
3903,
589,
16,
327,
2282,
589,
202,
202,
45,
8241,
6003,
273,
8128,
3773,
18,
588,
8241,
5621,
202,
202,
430,
261,
14915,
422,
446,
13,
327,
3903,
743,
31,
368,
17862,
4982,
5731,
261,
23,
3028,
11035,
13,
202,
202,
430,
261,
14915,
18,
588,
2375,
7675,
4720,
4419,
12,
9375,
743,
13,
480,
446,
13,
288,
759,
1082,
202,
430,
261,
5852,
1488,
1318,
18,
21900,
13,
288,
759,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
27264,
21700,
300,
19413,
589,
353,
2282,
589,
261,
5990,
434,
6003,
2225,
1769,
4329,
3993,
17,
5106,
17,
21,
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,
467,
743,
7378,
1235,
743,
12,
45,
743,
3903,
743,
13,
288,
9506,
202,
430,
261,
9375,
743,
422,
446,
13,
1082,
202,
2463,
446,
31,
759,
202,
202,
430,
261,
5852,
1488,
1318,
18,
21900,
13,
288,
759,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
27264,
21700,
300,
19413,
6894,
315,
397,
3903,
743,
18,
10492,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
759,
202,
202,
97,
202,
202,
430,
261,
5127,
67,
13415,
67,
26753,
16325,
13,
288,
759,
1082,
202,
430,
261,
5852,
1488,
1318,
18,
21900,
13,
288,
759,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
27264,
21700,
300,
19413,
589,
353,
2282,
589,
261,
768,
2619,
353,
2
] |
||
Locale locale = iwc.getCurrentLocale(); if (value != null) { return TextSoap.findAndCut((new IWTimestamp((java.sql.Date)value)).getLocaleDate(locale),"GMT"); } else { return null; } }
|
Locale locale = iwc.getCurrentLocale(); if (value != null) { return TextSoap.findAndCut((new IWTimestamp((java.sql.Date) value)) .getLocaleDate(locale), "GMT"); } else { return null; } }
|
public String getDisplayForResultingObject(Object value, IWContext iwc) { Locale locale = iwc.getCurrentLocale(); if (value != null) { return TextSoap.findAndCut((new IWTimestamp((java.sql.Date)value)).getLocaleDate(locale),"GMT"); } else { return null; } }
|
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/921601aa5f013a60a71b0a345f50c0a956889b0c/DateInput.java/clean/src/java/com/idega/presentation/ui/DateInput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
13854,
1290,
1253,
310,
921,
12,
921,
460,
16,
467,
59,
1042,
25522,
71,
13,
288,
202,
202,
3916,
2573,
273,
25522,
71,
18,
588,
3935,
3916,
5621,
202,
202,
430,
261,
1132,
480,
446,
13,
288,
1082,
202,
2463,
3867,
20601,
18,
4720,
1876,
15812,
12443,
2704,
467,
59,
4921,
12443,
6290,
18,
4669,
18,
1626,
13,
1132,
13,
2934,
588,
3916,
1626,
12,
6339,
3631,
6,
25315,
8863,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
2463,
446,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
514,
13854,
1290,
1253,
310,
921,
12,
921,
460,
16,
467,
59,
1042,
25522,
71,
13,
288,
202,
202,
3916,
2573,
273,
25522,
71,
18,
588,
3935,
3916,
5621,
202,
202,
430,
261,
1132,
480,
446,
13,
288,
1082,
202,
2463,
3867,
20601,
18,
4720,
1876,
15812,
12443,
2704,
467,
59,
4921,
12443,
6290,
18,
4669,
18,
1626,
13,
1132,
13,
2934,
588,
3916,
1626,
12,
6339,
3631,
6,
25315,
8863,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
2463,
446,
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
] |
public void requestFocus();
|
void requestFocus();
|
public void requestFocus();
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ComponentPeer.java/buggy/core/src/classpath/java/java/awt/peer/ComponentPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
590,
9233,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
590,
9233,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void readExternal(ObjectInput in) throws IOException { try { super.readExternal(in); content = (ArrayList) in.readObject(); position = in.readInt(); offset = in.readInt(); size = in.readInt(); //deserialised = true; } catch (ClassNotFoundException e) { log.error("Failed to find class", e); throw new IOException(e.getMessage()); } }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/f7221d281ba7a07fb4ac87aab18e01ea4018e629/JBossStreamMessage.java/clean/src/main/org/jboss/jms/message/JBossStreamMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
896,
6841,
12,
921,
1210,
267,
13,
15069,
14106,
95,
698,
95,
9565,
18,
896,
6841,
12,
267,
1769,
1745,
28657,
19558,
13,
267,
18,
896,
921,
5621,
3276,
33,
267,
18,
896,
1702,
5621,
3348,
33,
267,
18,
896,
1702,
5621,
1467,
33,
267,
18,
896,
1702,
5621,
759,
5489,
24662,
5918,
33,
3767,
31,
97,
14683,
12,
797,
3990,
73,
15329,
1330,
18,
1636,
2932,
2925,
88,
792,
728,
1106,
3113,
73,
1769,
12849,
2704,
14106,
12,
73,
18,
24906,
10663,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6459,
896,
6841,
12,
921,
1210,
267,
13,
15069,
14106,
95,
698,
95,
9565,
18,
896,
6841,
12,
267,
1769,
1745,
28657,
19558,
13,
267,
18,
896,
921,
5621,
3276,
33,
267,
18,
896,
1702,
5621,
3348,
33,
267,
18,
896,
1702,
5621,
1467,
33,
267,
18,
896,
1702,
5621,
759,
5489,
24662,
5918,
33,
3767,
31,
97,
14683,
12,
797,
3990,
73,
15329,
1330,
18,
1636,
2932,
2925,
88,
792,
728,
1106,
3113,
73,
1769,
12849,
2704,
14106,
12,
73,
18,
24906,
10663,
9090,
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
] |
||
public InputStream retrieveInformation(String uuid) { // sendRequest(ANYPEER, INFO_REQ, UUID, uuid); return null; }
|
9764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9764/937b0295ed09359b9de488a0ecf4842885a96232/ServiceManagerImpl.java/buggy/jadabs/bundles/service-manager/impl/src/ch/ethz/jadabs/servicemanager/impl/ServiceManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
4348,
17466,
5369,
12,
780,
7080,
15329,
759,
4661,
691,
12,
1258,
28190,
16,
5923,
67,
20373,
16,
5562,
16,
7080,
1769,
2463,
2011,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
4348,
17466,
5369,
12,
780,
7080,
15329,
759,
4661,
691,
12,
1258,
28190,
16,
5923,
67,
20373,
16,
5562,
16,
7080,
1769,
2463,
2011,
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
] |
||
TypeX enclosingType = shadow.getEnclosingType();
|
ResolvedTypeX enclosingType = shadow.getIWorld().resolve(shadow.getEnclosingType());
|
public FuzzyBoolean match(Shadow shadow) { TypeX enclosingType = shadow.getEnclosingType();// if (shadow.getKind() == Shadow.FieldSet) {// System.err.println("within?" + type + " matches " + enclosingType + " on " + shadow);// } while (enclosingType != null) { if (type.matchesStatically(shadow.getIWorld().resolve(enclosingType))) { return FuzzyBoolean.YES; } enclosingType = enclosingType.getDeclaringType(); } return FuzzyBoolean.NO; }
|
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/56dc485bfd516e3a9b04c9bc22595ce8fea517c3/WithinPointcut.java/buggy/org.aspectj/modules/weaver/src/org/aspectj/weaver/patterns/WithinPointcut.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
13903,
5507,
845,
12,
12957,
10510,
13,
288,
202,
202,
559,
60,
16307,
559,
273,
10510,
18,
588,
21594,
559,
5621,
759,
202,
202,
430,
261,
19119,
18,
588,
5677,
1435,
422,
24915,
18,
974,
694,
13,
288,
759,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
25850,
7225,
397,
618,
225,
397,
315,
1885,
315,
397,
16307,
559,
397,
315,
603,
315,
397,
10510,
1769,
759,
202,
202,
97,
9506,
202,
17523,
261,
1331,
10910,
559,
480,
446,
13,
288,
1082,
202,
430,
261,
723,
18,
8436,
5788,
1230,
12,
19119,
18,
588,
45,
18071,
7675,
10828,
12,
1331,
10910,
559,
20349,
288,
9506,
202,
2463,
478,
13903,
5507,
18,
29081,
31,
1082,
202,
97,
1082,
202,
1331,
10910,
559,
273,
16307,
559,
18,
588,
3456,
5968,
559,
5621,
202,
202,
97,
202,
202,
2463,
478,
13903,
5507,
18,
3417,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
13903,
5507,
845,
12,
12957,
10510,
13,
288,
202,
202,
559,
60,
16307,
559,
273,
10510,
18,
588,
21594,
559,
5621,
759,
202,
202,
430,
261,
19119,
18,
588,
5677,
1435,
422,
24915,
18,
974,
694,
13,
288,
759,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
25850,
7225,
397,
618,
225,
397,
315,
1885,
315,
397,
16307,
559,
397,
315,
603,
315,
397,
10510,
1769,
759,
202,
202,
97,
9506,
202,
17523,
261,
1331,
10910,
559,
480,
446,
13,
288,
1082,
202,
430,
261,
723,
18,
8436,
5788,
1230,
12,
19119,
18,
588,
45,
18071,
7675,
10828,
12,
1331,
10910,
559,
20349,
288,
9506,
202,
2463,
478,
13903,
5507,
18,
29081,
31,
1082,
202,
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 char[] textToCharArray() { synchronized (PsiLock.LOCK) { char[] buffer = new char[getTextLength()]; SourceUtil.toBuffer(this, buffer, 0); return buffer; } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/618abf69beebe8ca5f0db1e24631b6f764e428b4/CompositeElement.java/clean/source/com/intellij/psi/impl/source/tree/CompositeElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1149,
8526,
977,
774,
15936,
1435,
288,
225,
3852,
261,
52,
7722,
2531,
18,
6589,
13,
288,
565,
1149,
8526,
1613,
273,
394,
1149,
63,
588,
1528,
1782,
1435,
15533,
565,
4998,
1304,
18,
869,
1892,
12,
2211,
16,
1613,
16,
374,
1769,
565,
327,
1613,
31,
282,
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,
282,
1071,
1149,
8526,
977,
774,
15936,
1435,
288,
225,
3852,
261,
52,
7722,
2531,
18,
6589,
13,
288,
565,
1149,
8526,
1613,
273,
394,
1149,
63,
588,
1528,
1782,
1435,
15533,
565,
4998,
1304,
18,
869,
1892,
12,
2211,
16,
1613,
16,
374,
1769,
565,
327,
1613,
31,
282,
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
] |
|
void setAttribute( String name, boolean value ) { if ( value )
|
void setAttribute( String name, boolean value ) { if ( value ) {
|
void setAttribute( String name, boolean value ) { if ( value ) setAttribute( name, name ); else removeAttribute( name ); }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/d40922cee15442d7e2b69a1b40e8663d02f7a1cd/HTMLElementImpl.java/clean/src/org/apache/html/dom/HTMLElementImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4730,
12,
514,
508,
16,
1250,
460,
262,
565,
288,
3639,
309,
261,
460,
262,
5411,
4730,
12,
508,
16,
508,
11272,
3639,
469,
5411,
18831,
12,
508,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4730,
12,
514,
508,
16,
1250,
460,
262,
565,
288,
3639,
309,
261,
460,
262,
5411,
4730,
12,
508,
16,
508,
11272,
3639,
469,
5411,
18831,
12,
508,
11272,
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
] |
protected void genArrayCreate(Context ctx, Primitive prim, Tree size) {
|
protected void genArrayCreate(Context ctx, Primitive prim, Tree size) throws JCode.OffsetTooBigException {
|
protected void genArrayCreate(Context ctx, Primitive prim, Tree size) { genLoad(ctx, size, JType.INT); JType type; switch (prim) { case NEW_ZARRAY : type = JType.BOOLEAN; break; case NEW_BARRAY : type = JType.BYTE; break; case NEW_SARRAY : type = JType.SHORT; break; case NEW_CARRAY : type = JType.CHAR; break; case NEW_IARRAY : type = JType.INT; break; case NEW_LARRAY : type = JType.LONG; break; case NEW_FARRAY : type = JType.FLOAT; break; case NEW_DARRAY : type = JType.DOUBLE; break; default: throw Debug.abort("unexpected primitive", prim); } ctx.code.emitNEWARRAY(type); }
|
55146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55146/c77d194dd13b0993bfe9967759f9164c47156bc8/GenJVM.java/buggy/sources/scalac/backend/jvm/GenJVM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3157,
1076,
1684,
12,
1042,
1103,
16,
14488,
15610,
16,
4902,
963,
13,
1216,
804,
1085,
18,
2335,
10703,
9901,
503,
288,
3639,
3157,
2563,
12,
5900,
16,
963,
16,
804,
559,
18,
3217,
1769,
3639,
804,
559,
618,
31,
3639,
1620,
261,
30438,
13,
288,
3639,
648,
12887,
67,
62,
8552,
294,
618,
273,
804,
559,
18,
17900,
31,
898,
31,
3639,
648,
12887,
67,
38,
8552,
294,
618,
273,
804,
559,
18,
15377,
31,
565,
898,
31,
3639,
648,
12887,
67,
55,
8552,
294,
618,
273,
804,
559,
18,
15993,
31,
282,
898,
31,
3639,
648,
12887,
67,
39,
8552,
294,
618,
273,
804,
559,
18,
7305,
31,
565,
898,
31,
3639,
648,
12887,
67,
45,
8552,
294,
618,
273,
804,
559,
18,
3217,
31,
377,
898,
31,
3639,
648,
12887,
67,
48,
8552,
294,
618,
273,
804,
559,
18,
14639,
31,
565,
898,
31,
3639,
648,
12887,
67,
42,
8552,
294,
618,
273,
804,
559,
18,
15640,
31,
282,
898,
31,
3639,
648,
12887,
67,
40,
8552,
294,
618,
273,
804,
559,
18,
17088,
31,
225,
898,
31,
3639,
805,
30,
604,
4015,
18,
18623,
2932,
21248,
8225,
3113,
15610,
1769,
3639,
289,
3639,
1103,
18,
710,
18,
18356,
12917,
8552,
12,
723,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3157,
1076,
1684,
12,
1042,
1103,
16,
14488,
15610,
16,
4902,
963,
13,
1216,
804,
1085,
18,
2335,
10703,
9901,
503,
288,
3639,
3157,
2563,
12,
5900,
16,
963,
16,
804,
559,
18,
3217,
1769,
3639,
804,
559,
618,
31,
3639,
1620,
261,
30438,
13,
288,
3639,
648,
12887,
67,
62,
8552,
294,
618,
273,
804,
559,
18,
17900,
31,
898,
31,
3639,
648,
12887,
67,
38,
8552,
294,
618,
273,
804,
559,
18,
15377,
31,
565,
898,
31,
3639,
648,
12887,
67,
55,
8552,
294,
618,
273,
804,
559,
18,
15993,
31,
282,
898,
31,
3639,
648,
12887,
67,
39,
8552,
294,
618,
273,
804,
559,
18,
7305,
31,
565,
898,
31,
3639,
648,
12887,
2
] |
m_ClassFilters[i].setAttributeIndex(insts.classIndex() + 1); m_ClassFilters[i].setValueIndex(i + 1);
|
m_ClassFilters[i].setAttributeIndex(insts.classIndex()); m_ClassFilters[i].setValueIndex(i);
|
public void buildClassifier(Instances insts) throws Exception { Instances newInsts; if (m_BaseClassifier == null) { throw new Exception("No base classifier has been set!"); } if (!insts.classAttribute().isNominal()) { throw new Exception("MultiClassClassifier needs a nominal class!"); } if (Class.forName(m_BaseClassifier).newInstance() instanceof WeightedInstancesHandler) { // Base classifier can handle weights insts = new Instances(insts); } else { // Use resampling if base classifer can't handle weights and weights not all one double[] weights = new double[insts.numInstances()]; boolean foundOne = false; for (int i = 0; i < weights.length; i++) { weights[i] = insts.instance(i).weight(); if (!Utils.eq(weights[i], weights[0])) { foundOne = true; } } if (foundOne) { insts = insts.resampleWithWeights(new Random(42), weights); } } insts.deleteWithMissingClass(); if (insts.numInstances() == 0) { throw new Exception("No train instances without missing class!"); } m_ZeroR = new ZeroR(); m_ZeroR.buildClassifier(insts); m_Classifiers = new DistributionClassifier[insts.numClasses()]; m_ClassFilters = new MakeIndicatorFilter[insts.numClasses()]; for (int i = 0; i < insts.numClasses(); i++) { m_Classifiers[i] = (DistributionClassifier)Class. forName(m_BaseClassifier).newInstance(); if (m_Classifiers[i] instanceof OptionHandler) { String[] copy = new String[m_Options.length]; System.arraycopy(m_Options, 0, copy, 0, m_Options.length); ((OptionHandler)m_Classifiers[i]).setOptions(copy); } m_ClassFilters[i] = new MakeIndicatorFilter(); m_ClassFilters[i].setAttributeIndex(insts.classIndex() + 1); m_ClassFilters[i].setValueIndex(i + 1); m_ClassFilters[i].setNumeric(false); m_ClassFilters[i].inputFormat(insts); newInsts = Filter.useFilter(insts, m_ClassFilters[i]); m_Classifiers[i].buildClassifier(newInsts); } }
|
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/cda0e11a5a37e91d026594d506cc5433742c7b77/MultiClassClassifier.java/buggy/weka/classifiers/MultiClassClassifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
13860,
12,
5361,
1804,
87,
13,
1216,
1185,
288,
565,
18357,
394,
10773,
87,
31,
565,
309,
261,
81,
67,
2171,
13860,
422,
446,
13,
288,
1377,
604,
394,
1185,
2932,
2279,
1026,
14622,
711,
2118,
444,
4442,
1769,
565,
289,
565,
309,
16051,
8591,
87,
18,
1106,
1499,
7675,
291,
26685,
1490,
10756,
288,
1377,
604,
394,
225,
202,
503,
2932,
5002,
797,
13860,
4260,
279,
12457,
1490,
667,
4442,
1769,
565,
289,
565,
309,
261,
797,
18,
1884,
461,
12,
81,
67,
2171,
13860,
2934,
2704,
1442,
1435,
1276,
225,
202,
6544,
329,
5361,
1503,
13,
288,
1377,
368,
3360,
14622,
848,
1640,
5376,
1377,
1804,
87,
273,
394,
18357,
12,
8591,
87,
1769,
565,
289,
469,
288,
1377,
368,
2672,
400,
7639,
309,
1026,
667,
21549,
848,
1404,
1640,
5376,
471,
5376,
486,
777,
1245,
1377,
1645,
8526,
5376,
273,
394,
1645,
63,
8591,
87,
18,
2107,
5361,
1435,
15533,
1377,
1250,
1392,
3335,
273,
629,
31,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5376,
18,
2469,
31,
277,
27245,
288,
202,
9727,
63,
77,
65,
273,
1804,
87,
18,
1336,
12,
77,
2934,
4865,
5621,
202,
430,
16051,
1989,
18,
11253,
12,
9727,
63,
77,
6487,
5376,
63,
20,
22643,
288,
202,
225,
1392,
3335,
273,
638,
31,
202,
97,
1377,
289,
1377,
309,
261,
7015,
3335,
13,
288,
202,
8591,
87,
273,
1804,
87,
18,
455,
1511,
1190,
16595,
12,
2704,
8072,
12,
9452,
3631,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
13860,
12,
5361,
1804,
87,
13,
1216,
1185,
288,
565,
18357,
394,
10773,
87,
31,
565,
309,
261,
81,
67,
2171,
13860,
422,
446,
13,
288,
1377,
604,
394,
1185,
2932,
2279,
1026,
14622,
711,
2118,
444,
4442,
1769,
565,
289,
565,
309,
16051,
8591,
87,
18,
1106,
1499,
7675,
291,
26685,
1490,
10756,
288,
1377,
604,
394,
225,
202,
503,
2932,
5002,
797,
13860,
4260,
279,
12457,
1490,
667,
4442,
1769,
565,
289,
565,
309,
261,
797,
18,
1884,
461,
12,
81,
67,
2171,
13860,
2934,
2704,
1442,
1435,
1276,
225,
202,
6544,
329,
5361,
1503,
13,
288,
1377,
368,
3360,
14622,
848,
1640,
5376,
1377,
1804,
87,
273,
394,
18357,
12,
8591,
87,
2
] |
private void __builtin_unsigned_long() { //unsigned long ICASTSimpleDeclSpecifier parmSds = new CASTSimpleDeclSpecifier(); parmSds.setType(IASTSimpleDeclSpecifier.t_unspecified); parmSds.setUnsigned(true); parmSds.setLong(true); IType c_unsigned_long = new CQualifierType(parmSds); IType cpp_unsigned_long = new CPPBasicType(IBasicType.t_unspecified, CPPBasicType.IS_UNSIGNED & CPPBasicType.IS_LONG); //int __builtin_ffsl(unsigned int x) IBinding temp = null; IFunctionType functionType = null; IParameter[] theParms = new IParameter[1]; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_int); IType returnType = new CBasicType(sds); IType[] parms = new IType[1]; parms[0] = c_unsigned_long; functionType = new CFunctionType(returnType, parms); theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_FFSL, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_int, 0 ); IType[] parms = new IType[1]; parms[0] = cpp_unsigned_long; functionType = new CPPFunctionType(returnType, parms); theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_FFSL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_clzl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_CLZL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_CLZL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_ctzl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_CTZL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_CTZL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_popcountl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_POPCOUNTL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_POPCOUNTL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_parityl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_PARITYL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_PARITYL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e5e342776ddb4235e342044729523a01bf8c688b/GCCBuiltinSymbolProvider.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/GCCBuiltinSymbolProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
972,
24553,
67,
22297,
67,
5748,
1435,
95,
759,
22297,
5748,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
202,
202,
1065,
81,
55,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
318,
13827,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
13290,
12,
3767,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
3708,
12,
3767,
1769,
202,
202,
45,
559,
71,
67,
22297,
67,
5748,
33,
2704,
39,
16185,
559,
12,
1065,
81,
55,
2377,
1769,
202,
202,
45,
559,
4057,
84,
67,
22297,
67,
5748,
33,
2704,
4258,
52,
8252,
559,
12,
45,
8252,
559,
18,
88,
67,
318,
13827,
16,
4258,
52,
8252,
559,
18,
5127,
67,
2124,
21049,
10,
4258,
52,
8252,
559,
18,
5127,
67,
14639,
1769,
9506,
202,
759,
474,
972,
24553,
67,
1403,
2069,
12,
22297,
474,
92,
13,
202,
202,
45,
5250,
5814,
33,
2011,
31,
202,
202,
45,
2083,
559,
915,
559,
33,
2011,
31,
202,
202,
45,
1662,
8526,
5787,
28572,
33,
2704,
45,
1662,
63,
21,
15533,
202,
202,
430,
12,
4936,
631,
2678,
3779,
18,
39,
15329,
1082,
202,
2871,
9053,
5784,
3456,
1990,
3383,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
1082,
202,
87,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
474,
1769,
1082,
202,
1285,
8300,
851,
559,
33,
2704,
39,
8252,
559,
12,
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,
225,
202,
1152,
6459,
972,
24553,
67,
22297,
67,
5748,
1435,
95,
759,
22297,
5748,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
202,
202,
1065,
81,
55,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
318,
13827,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
13290,
12,
3767,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
3708,
12,
3767,
1769,
202,
202,
45,
559,
71,
67,
22297,
67,
5748,
33,
2704,
39,
16185,
559,
12,
1065,
81,
55,
2377,
1769,
202,
202,
45,
559,
4057,
84,
67,
22297,
67,
5748,
33,
2704,
4258,
52,
8252,
559,
12,
45,
8252,
559,
18,
2
] |
||
if(_dragStartSelectionPosition == null) { _dragStartSelectionPosition = selectionCurrentPosition;
|
if(dragStartSelectionPosition == null) { dragStartSelectionPosition = selectionCurrentPosition;
|
private void handleMouseDragged(boolean restrict45) { int deltaMouseX = _deltaMouseX; int deltaMouseY = _deltaMouseY; if(restrict45 && deltaMouseY != 0) { double degrees = Math.atan2(deltaMouseY, deltaMouseX); degrees = degrees45 * Math.round(degrees / degrees45); double r = Math.sqrt(deltaMouseX * deltaMouseX + deltaMouseY * deltaMouseY); deltaMouseX = (int)(r * Math.cos(degrees)); deltaMouseY = (int)(r * Math.sin(degrees)); } SelectionManager selectionManager = getEditor().getSelectionManager(); if(selectionManager.getLocked()) { Globals.showStatus("Cannot Modify Locked Objects"); return; } if(_dragStartSelectionPosition == null) { selectionManager.startDrag(); } Point selectionCurrentPosition = null; if(selectionManager.size() == 1 && ((selectionManager.getFigs().get(0) instanceof FigEdge) || _curHandle.index > 0)) { selectionCurrentPosition = new Point(_dragStartMousePosition); } else { selectionCurrentPosition = selectionManager.getDragLocation(); } if(_dragStartSelectionPosition == null) { _dragStartSelectionPosition = selectionCurrentPosition; } Point selectionNewPosition = new Point(_dragStartSelectionPosition); selectionNewPosition.translate(deltaMouseX, deltaMouseY); getEditor().snap(selectionNewPosition); selectionNewPosition.x = Math.max(0, selectionNewPosition.x); selectionNewPosition.y = Math.max(0, selectionNewPosition.y); int deltaSelectionX = selectionNewPosition.x - selectionCurrentPosition.x; int deltaSelectionY = selectionNewPosition.y - selectionCurrentPosition.y; if(deltaSelectionX != 0 || deltaSelectionY != 0) { if (LOG.isDebugEnabled()) LOG.debug("handle index = " + _curHandle.index); if(_curHandle.index == -1) { setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR)); if(legal(deltaSelectionX, deltaSelectionY, selectionManager)) { selectionManager.drag(deltaSelectionX, deltaSelectionY); } } else { if(_curHandle.index >= 0) { setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR)); selectionManager.dragHandle(selectionNewPosition.x, selectionNewPosition.y, _dragStartMousePosition.x, _dragStartMousePosition.y, _curHandle); selectionManager.endTrans(); } } // Note: if _curHandle.index == -2 then do nothing } }
|
1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/1f5ee0f5d025e456168e1aeda6aced243ede2a36/ModeModify.java/buggy/src/org/tigris/gef/base/ModeModify.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
9186,
11728,
2423,
12,
6494,
13108,
7950,
13,
288,
3639,
509,
3622,
9186,
60,
273,
389,
9878,
9186,
60,
31,
3639,
509,
3622,
9186,
61,
273,
389,
9878,
9186,
61,
31,
3639,
309,
12,
30604,
7950,
597,
3622,
9186,
61,
480,
374,
13,
288,
5411,
1645,
10904,
273,
2361,
18,
270,
304,
22,
12,
9878,
9186,
61,
16,
3622,
9186,
60,
1769,
5411,
10904,
273,
10904,
7950,
380,
2361,
18,
2260,
12,
26943,
342,
10904,
7950,
1769,
5411,
1645,
436,
273,
2361,
18,
24492,
12,
9878,
9186,
60,
380,
3622,
9186,
60,
397,
3622,
9186,
61,
380,
3622,
9186,
61,
1769,
5411,
3622,
9186,
60,
273,
261,
474,
21433,
86,
380,
2361,
18,
14445,
12,
26943,
10019,
5411,
3622,
9186,
61,
273,
261,
474,
21433,
86,
380,
2361,
18,
21861,
12,
26943,
10019,
3639,
289,
3639,
12977,
1318,
4421,
1318,
273,
336,
6946,
7675,
588,
6233,
1318,
5621,
3639,
309,
12,
10705,
1318,
18,
588,
8966,
10756,
288,
5411,
18901,
1031,
18,
4500,
1482,
2932,
4515,
9518,
3488,
329,
8487,
8863,
5411,
327,
31,
3639,
289,
3639,
309,
24899,
15997,
1685,
6233,
2555,
422,
446,
13,
288,
5411,
4421,
1318,
18,
1937,
11728,
5621,
3639,
289,
3639,
4686,
4421,
3935,
2555,
273,
446,
31,
3639,
309,
12,
10705,
1318,
18,
1467,
1435,
422,
404,
597,
14015,
10705,
1318,
18,
588,
42,
360,
87,
7675,
588,
12,
20,
13,
1276,
478,
360,
6098,
13,
747,
389,
1397,
3259,
18,
1615,
405,
374,
3719,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
9186,
11728,
2423,
12,
6494,
13108,
7950,
13,
288,
3639,
509,
3622,
9186,
60,
273,
389,
9878,
9186,
60,
31,
3639,
509,
3622,
9186,
61,
273,
389,
9878,
9186,
61,
31,
3639,
309,
12,
30604,
7950,
597,
3622,
9186,
61,
480,
374,
13,
288,
5411,
1645,
10904,
273,
2361,
18,
270,
304,
22,
12,
9878,
9186,
61,
16,
3622,
9186,
60,
1769,
5411,
10904,
273,
10904,
7950,
380,
2361,
18,
2260,
12,
26943,
342,
10904,
7950,
1769,
5411,
1645,
436,
273,
2361,
18,
24492,
12,
9878,
9186,
60,
380,
3622,
9186,
60,
397,
3622,
9186,
61,
380,
3622,
9186,
61,
1769,
5411,
3622,
9186,
60,
273,
261,
474,
21433,
86,
380,
2361,
18,
14445,
12,
2
] |
public void setListData(final Object[] listData) {
|
public void setListData(final Vector<?> listData) {
|
public void setListData(final Object[] listData) { DefaultListModel defaultModel = new DefaultListModel(); putListData(defaultModel, listData); setModel(defaultModel); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/93751c545701cb40a0af8c9ca92feff746e99d79/JList.java/buggy/modules/swing/src/main/java/common/javax/swing/JList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
682,
751,
12,
6385,
5589,
12880,
34,
666,
751,
13,
288,
3639,
2989,
682,
1488,
805,
1488,
273,
394,
2989,
682,
1488,
5621,
3639,
1378,
682,
751,
12,
1886,
1488,
16,
666,
751,
1769,
3639,
19027,
12,
1886,
1488,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
682,
751,
12,
6385,
5589,
12880,
34,
666,
751,
13,
288,
3639,
2989,
682,
1488,
805,
1488,
273,
394,
2989,
682,
1488,
5621,
3639,
1378,
682,
751,
12,
1886,
1488,
16,
666,
751,
1769,
3639,
19027,
12,
1886,
1488,
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
] |
if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) { sbuf.append("infinity"); } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) { sbuf.append("-infinity"); } else { appendDate(sbuf, cal); sbuf.append(' '); appendTime(sbuf, cal, x.getNanos()); appendTimeZone(sbuf, x); appendEra(sbuf, cal); } return sbuf.toString(); }
|
cal.setTime(x); sbuf.setLength(0); if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) { sbuf.append("infinity"); } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) { sbuf.append("-infinity"); } else { appendDate(sbuf, cal); sbuf.append(' '); appendTime(sbuf, cal, x.getNanos()); appendTimeZone(sbuf, cal); appendEra(sbuf, cal);
|
public static String toString(StringBuffer sbuf, GregorianCalendar cal, Timestamp x) { synchronized(sbuf) { synchronized(cal) { cal.setTime(x); sbuf.setLength(0); if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) { sbuf.append("infinity"); } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) { sbuf.append("-infinity"); } else { appendDate(sbuf, cal); sbuf.append(' '); appendTime(sbuf, cal, x.getNanos()); appendTimeZone(sbuf, x); appendEra(sbuf, cal); } return sbuf.toString(); } } }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/5f914eecf19be3010f83754829f88173846f521a/TimestampUtils.java/clean/org/postgresql/jdbc2/TimestampUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1762,
12,
780,
1892,
2393,
696,
16,
28033,
1443,
16,
8159,
619,
13,
288,
3639,
3852,
12,
87,
4385,
13,
288,
5411,
3852,
12,
771,
13,
288,
7734,
1443,
18,
542,
950,
12,
92,
1769,
7734,
2393,
696,
18,
542,
1782,
12,
20,
1769,
7734,
309,
261,
92,
18,
588,
950,
1435,
422,
22116,
3406,
18,
4594,
67,
7057,
16325,
67,
17716,
13,
288,
10792,
2393,
696,
18,
6923,
2932,
267,
7850,
8863,
7734,
289,
469,
309,
261,
92,
18,
588,
950,
1435,
422,
22116,
3406,
18,
4594,
67,
5407,
22421,
67,
17716,
13,
288,
10792,
2393,
696,
18,
6923,
2932,
17,
267,
7850,
8863,
7734,
289,
469,
288,
10792,
714,
1626,
12,
87,
4385,
16,
1443,
1769,
10792,
2393,
696,
18,
6923,
2668,
28005,
10792,
714,
950,
12,
87,
4385,
16,
1443,
16,
619,
18,
588,
15739,
10663,
10792,
714,
16760,
12,
87,
4385,
16,
619,
1769,
10792,
714,
30200,
12,
87,
4385,
16,
1443,
1769,
7734,
289,
7734,
327,
2393,
696,
18,
10492,
5621,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
514,
1762,
12,
780,
1892,
2393,
696,
16,
28033,
1443,
16,
8159,
619,
13,
288,
3639,
3852,
12,
87,
4385,
13,
288,
5411,
3852,
12,
771,
13,
288,
7734,
1443,
18,
542,
950,
12,
92,
1769,
7734,
2393,
696,
18,
542,
1782,
12,
20,
1769,
7734,
309,
261,
92,
18,
588,
950,
1435,
422,
22116,
3406,
18,
4594,
67,
7057,
16325,
67,
17716,
13,
288,
10792,
2393,
696,
18,
6923,
2932,
267,
7850,
8863,
7734,
289,
469,
309,
261,
92,
18,
588,
950,
1435,
422,
22116,
3406,
18,
4594,
67,
5407,
22421,
67,
17716,
13,
288,
10792,
2393,
696,
18,
6923,
2932,
17,
267,
7850,
8863,
7734,
289,
469,
288,
10792,
714,
1626,
12,
87,
4385,
2
] |
PNodeI valueOf(Constant coeff,PNodeI terms[],PNodeI pows[]) throws ParseException
|
PNodeI valueOf(Constant coefficient,PNodeI terms[],PNodeI pows[])
|
PNodeI valueOf(Constant coeff,PNodeI terms[],PNodeI pows[]) throws ParseException { if(coeff.isZero()) return pc.zeroConstant; if(terms.length ==0) return coeff; return new Monomial(pc,coeff,terms,pows); }
|
54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/5d181473dd1ee3caca86484e98ff7c44ed644489/Monomial.java/clean/src/org/lsmp/djep/sjep/Monomial.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
52,
907,
45,
4323,
12,
6902,
11943,
16,
52,
907,
45,
6548,
63,
6487,
52,
907,
45,
7602,
87,
63,
5717,
1216,
10616,
202,
95,
202,
202,
430,
12,
18132,
18,
291,
7170,
10756,
327,
6125,
18,
7124,
6902,
31,
202,
202,
430,
12,
10112,
18,
2469,
422,
20,
13,
327,
11943,
31,
202,
202,
2463,
394,
490,
4708,
649,
12,
2436,
16,
18132,
16,
10112,
16,
23509,
87,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
52,
907,
45,
4323,
12,
6902,
11943,
16,
52,
907,
45,
6548,
63,
6487,
52,
907,
45,
7602,
87,
63,
5717,
1216,
10616,
202,
95,
202,
202,
430,
12,
18132,
18,
291,
7170,
10756,
327,
6125,
18,
7124,
6902,
31,
202,
202,
430,
12,
10112,
18,
2469,
422,
20,
13,
327,
11943,
31,
202,
202,
2463,
394,
490,
4708,
649,
12,
2436,
16,
18132,
16,
10112,
16,
23509,
87,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Logger.minor(this, "Sending: "+mi+" length "+messageData[i].length+" cb "+mi.cb);
|
Logger.minor(this, "Sending: "+mi+" length "+messageData[x].length+" cb "+mi.cb);
|
public void processOutgoingOrRequeue(MessageItem[] messages, PeerNode pn, boolean neverWaitForPacketNumber) { Logger.minor(this, "processOutgoingOrRequeue "+messages.length+" messages for "+pn+" ("+neverWaitForPacketNumber+")"); byte[][] messageData = new byte[messages.length][]; int length = 1; int callbacksCount = 0; int x = 0; for(int i=0;i<messageData.length;i++) { MessageItem mi = messages[i]; if(mi.formatted) { try { byte[] buf = mi.getData(this, pn); KeyTracker kt = pn.getCurrentKeyTracker(); if(kt == null) { Logger.minor(this, "kt = null"); pn.requeueMessageItems(messages, i, messages.length-i, false); return; } int packetNumber = kt.allocateOutgoingPacketNumberNeverBlock(); this.processOutgoingPreformatted(buf, 0, buf.length, pn.getCurrentKeyTracker(), packetNumber, mi.cb); } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } catch (WouldBlockException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } catch (KeyChangedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } } else { messageData[x++] = mi.getData(this, pn); if(mi.cb != null) callbacksCount += mi.cb.length; Logger.minor(this, "Sending: "+mi+" length "+messageData[i].length+" cb "+mi.cb); length += (messageData[i].length + 2); } } if(x != messageData.length) { byte[][] newMessageData = new byte[x][]; System.arraycopy(messageData, 0, newMessageData, 0, x); messageData = newMessageData; } AsyncMessageCallback callbacks[] = new AsyncMessageCallback[callbacksCount]; x=0; for(int i=0;i<messages.length;i++) { if(messages[i].formatted) continue; if(messages[i].cb != null) { System.arraycopy(messages[i].cb, 0, callbacks, x, messages[i].cb.length); x += messages[i].cb.length; } } if(x != callbacksCount) throw new IllegalStateException(); if(length < node.usm.getMaxPacketSize() && messages.length < 256) { try { innerProcessOutgoing(messageData, 0, messageData.length, length, pn, neverWaitForPacketNumber, callbacks); } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, 0, messages.length, false); return; } catch (WouldBlockException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, 0, messages.length, false); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, 0, messages.length, false); return; } } else { length = 1; int count = 0; int lastIndex = 0; for(int i=0;i<=messages.length;i++) { int thisLength; if(i == messages.length) thisLength = 0; else thisLength = (messageData[i].length + 2); int newLength = length + thisLength; if(thisLength > node.usm.getMaxPacketSize()) { Logger.error(this, "Message exceeds packet size: "+messages[i]); // Send the last lot, then send this } count++; if(newLength > node.usm.getMaxPacketSize() || count > 255 || i == messages.length) { // lastIndex up to the message right before this one // e.g. lastIndex = 0, i = 1, we just send message 0 if(lastIndex != i) { try { innerProcessOutgoing(messageData, lastIndex, i-lastIndex, length, pn, neverWaitForPacketNumber, callbacks); } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false); return; } catch (WouldBlockException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false); return; } } lastIndex = i; if(i != messages.length) length = 1 + (messageData[i].length + 2); count = 0; } else length = newLength; } } }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/b88d8b040fa3f6a7c8985cf83a44f5cd06fcf42d/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
24866,
1162,
426,
4000,
12,
1079,
1180,
8526,
2743,
16,
10669,
907,
11059,
16,
1250,
5903,
29321,
6667,
1854,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
2567,
24866,
1162,
426,
4000,
13773,
6833,
18,
2469,
9078,
2743,
364,
13773,
7449,
9078,
7566,
15,
4644,
502,
29321,
6667,
1854,
9078,
2225,
1769,
3639,
1160,
63,
6362,
65,
883,
751,
273,
394,
1160,
63,
6833,
18,
2469,
6362,
15533,
3639,
509,
769,
273,
404,
31,
3639,
509,
6689,
1380,
273,
374,
31,
3639,
509,
619,
273,
374,
31,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
2150,
751,
18,
2469,
31,
77,
27245,
288,
5411,
2350,
1180,
12837,
273,
2743,
63,
77,
15533,
5411,
309,
12,
9197,
18,
14897,
13,
288,
7734,
775,
288,
10792,
1160,
8526,
1681,
273,
12837,
18,
588,
751,
12,
2211,
16,
11059,
1769,
10792,
1929,
8135,
417,
88,
273,
11059,
18,
588,
3935,
653,
8135,
5621,
10792,
309,
12,
8629,
422,
446,
13,
288,
13491,
4242,
18,
17364,
12,
2211,
16,
315,
8629,
273,
446,
8863,
13491,
11059,
18,
3658,
1455,
1079,
3126,
12,
6833,
16,
277,
16,
2743,
18,
2469,
17,
77,
16,
629,
1769,
13491,
327,
31,
10792,
289,
10792,
509,
4414,
1854,
273,
417,
88,
18,
16247,
24866,
6667,
1854,
50,
6084,
1768,
5621,
10792,
333,
18,
2567,
24866,
1386,
14897,
12,
4385,
16,
374,
16,
1681,
18,
2469,
16,
11059,
18,
588,
3935,
653,
8135,
9334,
4414,
1854,
16,
12837,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
24866,
1162,
426,
4000,
12,
1079,
1180,
8526,
2743,
16,
10669,
907,
11059,
16,
1250,
5903,
29321,
6667,
1854,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
2567,
24866,
1162,
426,
4000,
13773,
6833,
18,
2469,
9078,
2743,
364,
13773,
7449,
9078,
7566,
15,
4644,
502,
29321,
6667,
1854,
9078,
2225,
1769,
3639,
1160,
63,
6362,
65,
883,
751,
273,
394,
1160,
63,
6833,
18,
2469,
6362,
15533,
3639,
509,
769,
273,
404,
31,
3639,
509,
6689,
1380,
273,
374,
31,
3639,
509,
619,
273,
374,
31,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
2150,
751,
18,
2469,
31,
77,
27245,
288,
5411,
2350,
1180,
12837,
273,
2743,
63,
77,
2
] |
yy_r = false;
|
yyFlexR = false;
|
public Symbol next_token() throws java.io.IOException { int yy_input; int yy_action; int [] yytrans_l = yytrans; int [] yy_rowMap_l = yy_rowMap; byte [] yy_attr_l = YY_ATTRIBUTE; int yy_pushbackPos_l = yy_pushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yy_currentPos_l; int yy_startRead_l; int yy_markedPos_l = yy_markedPos; int yy_endRead_l = yy_endRead; char [] yy_buffer_l = yy_buffer; char [] yycmap_l = yycmap; boolean yy_r = false; for (yy_currentPos_l = yy_startRead; yy_currentPos_l < yy_markedPos_l; yy_currentPos_l++) { switch (yy_buffer_l[yy_currentPos_l]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yy_r = false; break; case '\r': yyline++; yycolumn = 0; yy_r = true; break; case '\n': if (yy_r) yy_r = false; else { yyline++; yycolumn = 0; } break; default: yy_r = false; yycolumn++; } } if (yy_r) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yy_peek; if (yy_markedPos_l < yy_endRead_l) yy_peek = yy_buffer_l[yy_markedPos_l] == '\n'; else if (yy_atEOF) yy_peek = false; else { boolean eof = yy_refill(); yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; if (eof) yy_peek = false; else yy_peek = yy_buffer_l[yy_markedPos_l] == '\n'; } if (yy_peek) yyline--; } if (yy_markedPos_l > yy_startRead) { switch (yy_buffer_l[yy_markedPos_l-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yy_atBOL = true; break; case '\r': if (yy_markedPos_l < yy_endRead_l) yy_atBOL = yy_buffer_l[yy_markedPos_l] != '\n'; else if (yy_atEOF) yy_atBOL = false; else { boolean eof = yy_refill(); yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; if (eof) yy_atBOL = false; else yy_atBOL = yy_buffer_l[yy_markedPos_l] != '\n'; } break; default: yy_atBOL = false; } } yy_action = -1; yy_startRead_l = yy_currentPos_l = yy_currentPos = yy_startRead = yy_markedPos_l; if (yy_atBOL) yy_state = YY_LEXSTATE[yy_lexical_state+1]; else yy_state = YY_LEXSTATE[yy_lexical_state]; yy_was_pushback = false; yy_forAction: { while (true) { if (yy_currentPos_l < yy_endRead_l) yy_input = yy_buffer_l[yy_currentPos_l++]; else if (yy_atEOF) { yy_input = YYEOF; break yy_forAction; } else { // store back cached positions yy_currentPos = yy_currentPos_l; yy_markedPos = yy_markedPos_l; yy_pushbackPos = yy_pushbackPos_l; boolean eof = yy_refill(); // get translated positions and possibly new buffer yy_currentPos_l = yy_currentPos; yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; yy_endRead_l = yy_endRead; yy_pushbackPos_l = yy_pushbackPos; if (eof) { yy_input = YYEOF; break yy_forAction; } else { yy_input = yy_buffer_l[yy_currentPos_l++]; } } int yy_next = yytrans_l[ yy_rowMap_l[yy_state] + yycmap_l[yy_input] ]; if (yy_next == -1) break yy_forAction; yy_state = yy_next; int yy_attributes = yy_attr_l[yy_state]; if ( (yy_attributes & 2) == 2 ) yy_pushbackPos_l = yy_currentPos_l; if ( (yy_attributes & 1) == 1 ) { yy_was_pushback = (yy_attributes & 4) == 4; yy_action = yy_state; yy_markedPos_l = yy_currentPos_l; if ( (yy_attributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yy_markedPos = yy_markedPos_l; if (yy_was_pushback) yy_markedPos = yy_pushbackPos_l; switch (yy_action) { case 708: case 727: case 728: case 738: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 745: break; case 539: case 589: case 590: case 633: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 746: break; case 559: case 560: case 602: case 603: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 747: break; case 637: case 673: case 674: case 705: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 748: break; case 670: case 703: case 704: case 725: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 749: break; case 679: case 710: case 711: case 729: { scanErrorException = yytext().substring(11).trim(); } case 750: break; case 723: case 724: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 751: break; case 700: case 701: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 752: break; case 666: case 667: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 753: break; case 68: { yybegin(REGEXP); return symbol(MORETHAN); } case 754: break; case 375: { packed = false; useRowMap = true; } case 755: break; case 137: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 756: break; case 88: { yybegin(REGEXP); return symbol(RBRACE); } case 757: break; case 32: { yybegin(REGEXP); return symbol(EQUALS); } case 758: break; case 45: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 759: break; case 418: case 419: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 760: break; case 548: { isAbstract = true; } case 761: break; case 99: case 100: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 119: case 121: case 180: case 183: case 184: case 185: case 186: case 187: case 188: case 189: case 190: case 191: case 192: case 193: case 194: case 195: case 196: case 197: case 198: case 199: case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: case 208: case 209: case 210: case 216: case 219: case 246: case 247: case 249: case 250: case 251: case 252: case 253: case 254: case 255: case 256: case 257: case 258: case 259: case 260: case 261: case 262: case 263: case 264: case 265: case 266: case 267: case 268: case 270: case 271: case 272: case 273: case 274: case 275: case 276: case 277: case 278: case 282: case 283: case 304: case 305: case 306: case 307: case 308: case 309: case 310: case 311: case 312: case 313: case 314: case 315: case 316: case 317: case 318: case 319: case 321: case 322: case 323: case 325: case 326: case 327: case 328: case 329: case 330: case 331: case 333: case 334: case 335: case 336: case 337: case 338: case 340: case 343: case 344: case 364: case 365: case 366: case 367: case 368: case 369: case 370: case 371: case 372: case 374: case 376: case 377: case 378: case 379: case 380: case 383: case 384: case 385: case 386: case 387: case 388: case 389: case 390: case 391: case 392: case 393: case 394: case 395: case 396: case 399: case 400: case 423: case 424: case 425: case 426: case 427: case 428: case 429: case 430: case 431: case 433: case 434: case 435: case 436: case 437: case 438: case 439: case 440: case 441: case 443: case 444: case 445: case 448: case 449: case 450: case 453: case 454: case 480: case 483: case 484: case 485: case 491: case 492: case 493: case 494: case 495: case 496: case 497: case 498: case 499: case 502: case 504: case 507: case 534: case 536: case 537: case 543: case 544: case 546: case 547: case 549: case 550: case 551: case 586: case 587: case 588: case 595: case 596: case 597: case 598: case 599: case 632: case 640: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 762: break; case 86: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 763: break; case 76: { balance++; return symbol(OPENCLASS); } case 764: break; case 75: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 765: break; case 31: case 34: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 766: break; case 19: case 20: case 21: case 30: case 36: case 61: case 62: case 63: case 70: case 82: case 85: case 87: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 767: break; case 214: case 215: { inclusive_states = false; yybegin(STATELIST); } case 768: break; case 223: case 286: case 346: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 769: break; case 240: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 770: break; case 241: case 242: { classCode = conc(classCode,string); yybegin(MACROS); } case 771: break; case 285: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 772: break; case 339: { packed = true; useRowMap = true; } case 773: break; case 442: { packed = false; useRowMap = false; } case 774: break; case 503: case 556: { className = yytext().substring(7).trim(); } case 775: break; case 127: case 130: case 221: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 776: break; case 126: case 128: case 129: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 777: break; case 74: case 79: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 778: break; case 39: case 40: case 50: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 779: break; case 49: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 780: break; case 58: { lookAheadUsed = true; return symbol(DOLLAR); } case 781: break; case 175: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 782: break; case 473: case 474: { initCode = conc(initCode,string); yybegin(MACROS); } case 783: break; case 487: case 488: case 538: case 540: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 784: break; case 500: case 501: case 552: case 554: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 785: break; case 592: case 593: case 636: case 638: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 786: break; case 37: { return symbol_countUpdate(RBRACE, null); } case 787: break; case 676: case 677: case 707: case 709: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 788: break; case 1: case 18: { /* ignore */ } case 789: break; case 397: { debugOption = true; } case 790: break; case 505: case 506: case 558: case 561: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 791: break; case 630: case 631: case 669: case 671: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 792: break; case 643: case 644: case 678: case 680: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 793: break; case 15: case 16: { userCode.append(yytext()); } case 794: break; case 446: { columnCount = true; } case 795: break; case 583: case 584: { eofVal = string.toString(); yybegin(MACROS); } case 796: break; case 80: { return symbol(HAT); } case 797: break; case 0: case 14: case 17: { return symbol(EOF); } case 798: break; case 51: { return symbol(BAR); } case 799: break; case 38: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 800: break; case 57: { return symbol(QUESTION); } case 801: break; case 398: case 479: { return symbol(UNICODE); } case 802: break; case 672: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 803: break; case 77: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 804: break; case 545: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 805: break; case 135: { return symbol(CHAR,new Character('\b')); } case 806: break; case 134: { return symbol(CHAR,new Character('\f')); } case 807: break; case 133: { return symbol(CHAR,new Character('\r')); } case 808: break; case 132: { return symbol(CHAR,new Character('\t')); } case 809: break; case 131: { return symbol(CHAR,new Character('\n')); } case 810: break; case 47: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 811: break; case 59: { bolUsed = true; return symbol(HAT); } case 812: break; case 60: case 232: case 408: case 409: case 462: case 466: case 515: case 522: case 568: case 569: case 574: case 575: case 609: case 612: case 613: case 618: case 621: case 622: case 652: case 653: case 654: case 655: case 659: case 660: case 661: case 662: case 688: case 689: case 690: case 696: case 697: case 698: case 718: case 722: case 734: case 737: { actionText.append(yytext()); } case 813: break; case 155: case 157: case 158: { string.append(yytext().charAt(1)); } case 814: break; case 156: case 159: case 237: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 815: break; case 160: { string.append('\"'); } case 816: break; case 161: { string.append('\n'); } case 817: break; case 162: { string.append('\t'); } case 818: break; case 163: { string.append('\r'); } case 819: break; case 164: { string.append('\f'); } case 820: break; case 165: { string.append('\b'); } case 821: break; case 217: case 218: { inclusive_states = true; yybegin(STATELIST); } case 822: break; case 239: case 300: case 358: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 823: break; case 299: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 824: break; case 461: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 825: break; case 83: case 84: { string.append(yytext()); } case 826: break; case 69: { string.append(yytext()); } case 827: break; case 567: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 828: break; case 81: { return symbol(DASH); } case 829: break; case 73: { yybegin(nextState); return symbol(STRING, string.toString()); } case 830: break; case 67: { return symbol(COMMA); } case 831: break; case 44: { return symbol(POINT); } case 832: break; case 46: { return symbol(STAR); } case 833: break; case 52: { return symbol(BANG); } case 834: break; case 53: { return symbol(TILDE); } case 835: break; case 56: { return symbol(PLUS); } case 836: break; case 320: case 341: { return symbol(FULL); } case 837: break; case 95: { commentbalance++; } case 838: break; case 71: case 72: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 839: break; case 65: { balance++; actionText.append('{'); } case 840: break; case 123: { nextState = REGEXPSTART; yybegin(COMMENT); } case 841: break; case 89: { yybegin(REGEXP); } case 842: break; case 35: { yybegin(REGEXP); } case 843: break; case 24: case 25: { yybegin(MACROS); } case 844: break; case 650: { return symbol(JLETTERCLASS); } case 845: break; case 140: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 846: break; case 78: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 847: break; case 743: { return symbol(JLETTERDIGITCLASS); } case 848: break; case 120: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 849: break; case 27: { return symbol(IDENT, yytext()); } case 850: break; case 42: case 43: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 851: break; case 55: { return symbol(CLOSEBRACKET); } case 852: break; case 169: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 853: break; case 118: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 854: break; case 229: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 855: break; case 382: { isYYEOF = true; } case 856: break; case 486: { notUnix = true; } case 857: break; case 139: { nextState = REGEXP; yybegin(COMMENT); } case 858: break; case 97: { nextState = MACROS; yybegin(COMMENT); } case 859: break; case 181: case 182: { string.setLength(0); yybegin(COPY); } case 860: break; case 269: { cupCompatible = true; isImplementing = concExc(isImplementing, "java_cup.runtime.Scanner"); if (functionName == null) functionName = "next_token"; if (tokenType == null) tokenType = "java_cup.runtime.Symbol"; if (eofVal == null) eofVal = "return new java_cup.runtime.Symbol("+cupSymbol+".EOF);"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 861: break; case 432: case 489: case 541: { tokenType = yytext().substring(6).trim(); } case 862: break; case 591: case 635: { isExtending = yytext().substring(9).trim(); } case 863: break; case 639: case 675: { functionName = yytext().substring(10).trim(); } case 864: break; case 713: { return symbol(LOWERCLASS); } case 865: break; case 712: { return symbol(UPPERCLASS); } case 866: break; case 22: { states.insert(yytext(),inclusive_states); } case 867: break; case 54: { return symbol(OPENBRACKET); } case 868: break; case 566: { return symbol(DIGITCLASS); } case 869: break; case 606: { return symbol(LETTERCLASS); } case 870: break; case 124: { } case 871: break; case 94: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 872: break; case 90: case 177: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 873: break; case 66: { } case 874: break; case 41: { } case 875: break; case 29: { } case 876: break; case 28: case 33: { } case 877: break; case 23: case 26: { } case 878: break; case 48: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 879: break; case 64: { if (balance > 0) { balance--; actionText.append('}'); } else { yybegin(REGEXPSTART); Action a = new Action(actionText.toString(), action_line); actions.addElement(a); return symbol(ACTION, a); } } case 880: break; case 145: case 146: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 881: break; case 178: case 179: { } case 882: break; case 248: case 482: { isInteger = true; } case 883: break; case 324: { lineCount = true; } case 884: break; case 332: { charCount = true; } case 885: break; case 381: { isFinal = true; } case 886: break; case 451: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 887: break; case 452: { isPublic = true; } case 888: break; case 481: { isIntWrap = true; } case 889: break; case 508: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 890: break; case 535: { File f = new File(yytext().substring(9).trim()); if ( !f.canRead() ) throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); // check for cycle if (files.search(f) > 0) throw new ScannerException(file,ErrorMessages.FILE_CYCLE, yyline); try { yypushStream( new FileReader(f) ); files.push(file); file = f; Out.println("Including \""+file+"\""); } catch (FileNotFoundException e) { throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); } } case 891: break; case 553: case 600: case 601: case 645: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 892: break; case 555: { cupDebug = true; } case 893: break; case 557: { caseless = true; } case 894: break; case 641: { visibility = "private"; Skeleton.makePrivate(); } case 895: break; case 642: { standalone = true; isInteger = true; } case 896: break; default: if (yy_input == YYEOF && yy_startRead == yy_currentPos) { yy_atEOF = true; yy_do_eof(); switch (yy_lexical_state) { case STRING_CONTENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_STRING); } case 745: break; case MACROS: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 746: break; case STATELIST: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 747: break; case CHARCLASS: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 748: break; case JAVA_CODE: { throw new ScannerException(file,ErrorMessages.EOF_IN_ACTION, action_line-1); } case 749: break; case REPEATEXP: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 750: break; case COMMENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_COMMENT); } case 751: break; case STATES: { throw new ScannerException(file,ErrorMessages.EOF_IN_STATES); } case 752: break; case COPY: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 753: break; default: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else return symbol(EOF); } } } else { yy_ScanError(YY_NO_MATCH); } } } }
|
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/c5b664099369e6ab7a60ec6354a7dd4322f53873/LexScan.java/buggy/jflex/src/JFlex/LexScan.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
1024,
67,
2316,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
509,
5378,
9016,
2338,
67,
80,
273,
9016,
2338,
31,
565,
509,
5378,
9016,
67,
492,
863,
67,
80,
273,
9016,
67,
492,
863,
31,
565,
1160,
5378,
9016,
67,
1747,
67,
80,
273,
1624,
61,
67,
11616,
31,
565,
509,
9016,
67,
6206,
823,
1616,
67,
80,
273,
9016,
67,
6206,
823,
1616,
273,
300,
21,
31,
565,
1250,
9016,
67,
17416,
67,
6206,
823,
31,
565,
1323,
261,
3767,
13,
288,
1377,
368,
3472,
1466,
30,
1377,
509,
9016,
67,
2972,
1616,
67,
80,
31,
1377,
509,
9016,
67,
1937,
1994,
67,
80,
31,
1377,
509,
9016,
67,
3355,
329,
1616,
67,
80,
273,
9016,
67,
3355,
329,
1616,
31,
1377,
509,
9016,
67,
409,
1994,
67,
80,
273,
9016,
67,
409,
1994,
31,
1377,
1149,
5378,
9016,
67,
4106,
67,
80,
273,
9016,
67,
4106,
31,
1377,
1149,
5378,
9016,
22738,
67,
80,
273,
9016,
22738,
31,
1377,
1250,
9016,
19667,
54,
273,
629,
31,
1377,
364,
261,
6795,
67,
2972,
1616,
67,
80,
273,
9016,
67,
1937,
1994,
31,
9016,
67,
2972,
1616,
67,
80,
411,
9016,
67,
3355,
329,
1616,
67,
80,
31,
4766,
11794,
9016,
67,
2972,
1616,
67,
80,
27245,
288,
3639,
1620,
261,
6795,
67,
4106,
67,
80,
63,
6795,
67,
2972,
1616,
67,
80,
5717,
288,
3639,
648,
2337,
89,
3784,
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,
8565,
1024,
67,
2316,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
509,
5378,
9016,
2338,
67,
80,
273,
9016,
2338,
31,
565,
509,
5378,
9016,
67,
492,
863,
67,
80,
273,
9016,
67,
492,
863,
31,
565,
1160,
5378,
9016,
67,
1747,
67,
80,
273,
1624,
61,
67,
11616,
31,
565,
509,
9016,
67,
6206,
823,
1616,
67,
80,
273,
9016,
67,
6206,
823,
1616,
273,
300,
21,
31,
565,
1250,
9016,
67,
17416,
67,
6206,
823,
31,
565,
1323,
261,
3767,
13,
288,
1377,
368,
3472,
1466,
30,
1377,
509,
9016,
67,
2972,
1616,
67,
80,
31,
1377,
509,
9016,
67,
1937,
2
] |
VmType arrCls;
|
final String arrClsName = vmClass.getArrayClassName(); final VmType arrCls;
|
public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); //Screen.debug(vmClass.getName()); if (arrCls == null) { throw new NoClassDefFoundError(); } } catch (ClassNotFoundException ex) { throw new NoClassDefFoundError(); } VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getVm().getHeapManager(); } final Object result = hm.newArray((VmArrayClass) arrCls, elements); //Screen.debug("}"); return result; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c2a519140737c4d249f6c5d568256db2030112e9/SoftByteCodes.java/buggy/core/src/core/org/jnode/vm/SoftByteCodes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
392,
359,
1126,
12,
22143,
1305,
783,
1305,
16,
776,
81,
559,
4268,
797,
16,
509,
2186,
13,
1216,
2301,
9454,
984,
31847,
1523,
288,
202,
202,
22143,
559,
2454,
20822,
31,
202,
202,
698,
288,
1082,
202,
7469,
22143,
7805,
662,
2886,
273,
783,
1305,
18,
588,
3456,
14682,
7675,
588,
2886,
5621,
1082,
202,
5399,
20822,
273,
662,
2886,
18,
945,
797,
12,
3489,
797,
18,
588,
1076,
3834,
9334,
638,
1769,
1082,
202,
759,
7956,
18,
4148,
2932,
304,
2028,
95,
8863,
1082,
202,
759,
7956,
18,
4148,
12,
3489,
797,
18,
17994,
10663,
1082,
202,
430,
261,
5399,
20822,
422,
446,
13,
288,
9506,
202,
12849,
394,
2631,
797,
3262,
2043,
668,
5621,
1082,
202,
97,
202,
202,
97,
1044,
261,
797,
3990,
431,
13,
288,
1082,
202,
12849,
394,
2631,
797,
3262,
2043,
668,
5621,
202,
202,
97,
202,
202,
22143,
15648,
1318,
16349,
273,
10500,
1318,
31,
202,
202,
430,
261,
76,
81,
422,
446,
13,
288,
1082,
202,
25506,
1318,
273,
16349,
273,
776,
81,
18,
588,
22143,
7675,
588,
15648,
1318,
5621,
202,
202,
97,
202,
202,
6385,
1033,
563,
273,
16349,
18,
2704,
1076,
12443,
22143,
1076,
797,
13,
2454,
20822,
16,
2186,
1769,
202,
202,
759,
7956,
18,
4148,
2932,
1532,
1769,
202,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
760,
1033,
392,
359,
1126,
12,
22143,
1305,
783,
1305,
16,
776,
81,
559,
4268,
797,
16,
509,
2186,
13,
1216,
2301,
9454,
984,
31847,
1523,
288,
202,
202,
22143,
559,
2454,
20822,
31,
202,
202,
698,
288,
1082,
202,
7469,
22143,
7805,
662,
2886,
273,
783,
1305,
18,
588,
3456,
14682,
7675,
588,
2886,
5621,
1082,
202,
5399,
20822,
273,
662,
2886,
18,
945,
797,
12,
3489,
797,
18,
588,
1076,
3834,
9334,
638,
1769,
1082,
202,
759,
7956,
18,
4148,
2932,
304,
2028,
95,
8863,
1082,
202,
759,
7956,
18,
4148,
12,
3489,
797,
18,
17994,
10663,
1082,
202,
430,
261,
5399,
20822,
422,
446,
13,
288,
9506,
202,
12849,
394,
2631,
797,
3262,
2
] |
boolean transformResponse = false;
|
HttpResponse response = null;
|
public void run() { boolean keepAlive = ((HttpConnector) connector).isKeepAlive(); try { dataIn = new DataInputStream(new BufferedInputStream(socket.getInputStream())); dataOut = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream())); do { Properties headers = new Properties(); Object payload = parseRequest(dataIn, headers); if (payload == null) { break; } UMOMessageAdapter adapter = connector.getMessageAdapter(new Object[]{payload, headers}); //Removed the keep alive monitoring stuff for now //nstead just wait for the client to disconnect //keepAlive = adapter.getBooleanProperty(HttpConstants.HEADER_KEEP_ALIVE, keepAlive);// if (keepAlive && !keepAliveRegistered) {// keepAliveRegistered = true;// if (keepAliveMonitor != null) {// keepAliveMonitor.addExpirable(((HttpConnector) connector).getKeepAliveTimeout(), this);// } else {// logger.info("Request has Keep alive set but the HttpConnector has keep alive disables");// keepAlive = false;// }// } UMOMessage message = new MuleMessage(adapter); if (logger.isDebugEnabled()) { logger.debug(message.getProperty(HttpConnector.HTTP_REQUEST_PROPERTY)); } OutputStream os = new ResponseOutputStream(dataOut, socket); //determine if the request path on this request denotes a different receiver AbstractMessageReceiver receiver = getTargetReceiver(message, endpoint); UMOMessage returnMessage = null; //the respone only needs to be transformed explicitly if A) the request was not served or a null result was returned boolean transformResponse = false; if (receiver != null) { returnMessage = receiver.routeMessage(message, endpoint.isSynchronous(), os); if (returnMessage == null) { returnMessage = new MuleMessage(""); transformResponse = true; RequestContext.rewriteEvent(returnMessage); } } else { transformResponse = true; String failedPath = endpoint.getEndpointURI().getScheme() + "://" + endpoint.getEndpointURI().getHost() + ":" + endpoint.getEndpointURI().getPort() + getRequestPath(message); logger.debug("Failed to bind to " + failedPath); returnMessage = new MuleMessage(new Message(Messages.CANNOT_BIND_TO_ADDRESS_X, failedPath).toString()); returnMessage.setIntProperty(HttpConnector.HTTP_STATUS_PROPERTY, HttpConstants.SC_NOT_FOUND); RequestContext.setEvent(new MuleEvent(returnMessage, endpoint, new MuleSession(), true)); } Object response = returnMessage.getPayload(); if(transformResponse) { response = connector.getDefaultResponseTransformer().transform(response); } if (response instanceof byte[]) { dataOut.write((byte[]) response); } else { dataOut.write(response.toString().getBytes()); } dataOut.flush();// if (keepAliveMonitor != null) {// keepAliveMonitor.resetExpirable(this);// } } while (!socket.isClosed() && !disposing.get() && keepAlive); if (logger.isDebugEnabled() && socket.isClosed()) { logger.debug("Peer closed connection"); } } catch (Exception e) { handleException(e); } finally {// if (keepAliveMonitor != null) {// keepAliveMonitor.removeExpirable(this);// } dispose(); } }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/b656e0806058d87c5db05880209b51a8d57416d0/HttpMessageReceiver.java/clean/providers/http/src/java/org/mule/providers/http/HttpMessageReceiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1250,
24115,
273,
14015,
2940,
7487,
13,
8703,
2934,
291,
24456,
5621,
5411,
775,
288,
7734,
501,
382,
273,
394,
29382,
12,
2704,
24742,
12,
7814,
18,
588,
4348,
1435,
10019,
7734,
501,
1182,
273,
394,
28680,
12,
2704,
28649,
12,
7814,
18,
588,
4632,
1435,
10019,
7734,
741,
288,
10792,
6183,
1607,
273,
394,
6183,
5621,
10792,
1033,
2385,
273,
1109,
691,
12,
892,
382,
16,
1607,
1769,
10792,
309,
261,
7648,
422,
446,
13,
288,
13491,
898,
31,
10792,
289,
10792,
587,
5980,
1079,
4216,
4516,
273,
8703,
18,
24906,
4216,
12,
2704,
1033,
63,
7073,
7648,
16,
1607,
22938,
10792,
368,
10026,
326,
3455,
13714,
16309,
10769,
364,
2037,
10792,
368,
82,
334,
684,
2537,
2529,
364,
326,
1004,
358,
9479,
10792,
368,
10102,
10608,
273,
4516,
18,
588,
5507,
1396,
12,
2940,
2918,
18,
7557,
67,
6859,
10541,
67,
1013,
5354,
16,
24115,
1769,
759,
10792,
309,
261,
10102,
10608,
597,
401,
10102,
10608,
10868,
13,
288,
759,
13491,
24115,
10868,
273,
638,
31,
759,
13491,
309,
261,
10102,
10608,
7187,
480,
446,
13,
288,
759,
18701,
24115,
7187,
18,
1289,
2966,
26063,
12443,
12,
2940,
7487,
13,
8703,
2934,
588,
24456,
2694,
9334,
333,
1769,
759,
13491,
289,
469,
288,
759,
18701,
1194,
18,
1376,
2932,
691,
711,
10498,
13714,
444,
1496,
326,
2541,
7487,
711,
3455,
13714,
24960,
8863,
759,
18701,
24115,
273,
629,
31,
759,
13491,
289,
759,
10792,
289,
10792,
587,
5980,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1250,
24115,
273,
14015,
2940,
7487,
13,
8703,
2934,
291,
24456,
5621,
5411,
775,
288,
7734,
501,
382,
273,
394,
29382,
12,
2704,
24742,
12,
7814,
18,
588,
4348,
1435,
10019,
7734,
501,
1182,
273,
394,
28680,
12,
2704,
28649,
12,
7814,
18,
588,
4632,
1435,
10019,
7734,
741,
288,
10792,
6183,
1607,
273,
394,
6183,
5621,
10792,
1033,
2385,
273,
1109,
691,
12,
892,
382,
16,
1607,
1769,
10792,
309,
261,
7648,
422,
446,
13,
288,
13491,
898,
31,
10792,
289,
10792,
587,
5980,
1079,
4216,
4516,
273,
8703,
18,
24906,
4216,
12,
2704,
1033,
63,
7073,
7648,
16,
1607,
22938,
10792,
368,
10026,
326,
3455,
13714,
16309,
10769,
364,
2037,
2
] |
AST tmp1305_AST_in = (AST)_t;
|
AST tmp1315_AST_in = (AST)_t;
|
public final void functionstate(AST _t) throws RecognitionException { AST functionstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST f = null; AST id = null; AST __t848 = _t; f = _t==ASTNULL ? null :(AST)_t; match(_t,FUNCTION); _t = _t.getFirstChild(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.scopeAdd(f); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RETURNS: { AST tmp1299_AST_in = (AST)_t; match(_t,RETURNS); _t = _t.getNextSibling(); break; } case RETURN: { AST tmp1300_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp1301_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp1302_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case TYPE_NAME: { datatype_var(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: { AST tmp1303_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case PERIOD: case FORWARDS: case IN_KW: case MAP: case LEXCOLON: case Parameter_list: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { function_params(_t); _t = _retTree; break; } case PERIOD: case FORWARDS: case IN_KW: case MAP: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORWARDS: { AST tmp1304_AST_in = (AST)_t; match(_t,FORWARDS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp1305_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp1306_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp1307_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.funcForward(id); } break; } case PERIOD: case LEXCOLON: { block_colon(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.funcDef(f, id); } code_block(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EOF: { AST tmp1308_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } case END: { AST __t862 = _t; AST tmp1309_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FUNCTION: { AST tmp1310_AST_in = (AST)_t; match(_t,FUNCTION); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t862; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } break; } default: boolean synPredMatched856 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==IN_KW))) { AST __t856 = _t; synPredMatched856 = true; inputState.guessing++; try { { AST tmp1311_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1312_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched856 = false; } _t = __t856;inputState.guessing--; } if ( synPredMatched856 ) { AST tmp1313_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1314_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp1315_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp1316_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp1317_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.funcForward(id); } } else if ((_t.getType()==IN_KW||_t.getType()==MAP)) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAP: { AST tmp1318_AST_in = (AST)_t; match(_t,MAP); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp1319_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1320_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1321_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp1322_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp1323_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp1324_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.funcForward(id); } } else { throw new NoViableAltException(_t); } } } _t = __t848; _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.scopeClose(f); } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
445,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
445,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
284,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
9506,
202,
9053,
1001,
88,
5193,
28,
273,
389,
88,
31,
202,
202,
74,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7788,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
350,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
734,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
1128,
18,
4887,
986,
12,
74,
1769,
202,
202,
97,
202,
202,
95,
202,
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,
10366,
1099,
3156,
30,
202,
202,
95,
1082,
202,
9053,
1853,
2138,
2733,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
19392,
3156,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
14780,
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,
445,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
445,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
284,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
9506,
202,
9053,
1001,
88,
5193,
28,
273,
389,
88,
31,
202,
202,
74,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7788,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
350,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
2
] |
w.write( "( NULL ");
|
w.write( "NULL ");
|
public void dump( CodeWriter w) { w.write( "( NULL "); dumpNodeInfo( w); w.write( ")"); }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/a09f0b7976561d3eee38c023d7cfbffad6a36a8b/NullLiteral.java/clean/src/polyglot/ast/NullLiteral.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4657,
12,
3356,
2289,
341,
13,
225,
288,
565,
341,
18,
2626,
12,
315,
8560,
315,
1769,
565,
4657,
25392,
12,
341,
1769,
565,
341,
18,
2626,
12,
7310,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4657,
12,
3356,
2289,
341,
13,
225,
288,
565,
341,
18,
2626,
12,
315,
8560,
315,
1769,
565,
4657,
25392,
12,
341,
1769,
565,
341,
18,
2626,
12,
7310,
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
] |
if ( ! StringUtil.isBlank( value ) )
|
if ( !StringUtil.isBlank( value ) )
|
public void setSince( String value ) { if ( ! StringUtil.isBlank( value ) ) since = value; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/bae958113338cacae23d9ea64b3cf95561391b25/ObjectDefn.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ObjectDefn.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
9673,
12,
514,
460,
262,
202,
95,
202,
202,
430,
261,
401,
14205,
18,
291,
7796,
12,
460,
262,
262,
1082,
202,
9256,
273,
460,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
9673,
12,
514,
460,
262,
202,
95,
202,
202,
430,
261,
401,
14205,
18,
291,
7796,
12,
460,
262,
262,
1082,
202,
9256,
273,
460,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pstmt.setNull(1, Types.BLOB);
|
pstmt.setObject(1, null, Types.BLOB);
|
public void testBlobSetNull5() throws Exception { Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #blobsetnull5 (data IMAGE NULL)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #blobsetnull5 (data) VALUES (?)"); // Test PreparedStatement.setNull() pstmt.setNull(1, Types.BLOB); assertTrue(pstmt.executeUpdate() == 1); pstmt.close(); Statement stmt2 = con.createStatement(); ResultSet rs = stmt2.executeQuery("SELECT data FROM #blobsetnull5"); assertTrue(rs.next()); // Test ResultSet.getBinaryStream() assertTrue(rs.getBinaryStream(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getBlob() assertTrue(rs.getBlob(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getBytes() assertTrue(rs.getBytes(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getObject() assertTrue(rs.getObject(1) == null); assertTrue(rs.wasNull()); assertTrue(!rs.next()); stmt2.close(); rs.close(); }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/7853f833efd6459adefa1047fa954e26689a0006/LOBTest.java/buggy/src/test/net/sourceforge/jtds/test/LOBTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9405,
694,
2041,
25,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
10721,
542,
2011,
25,
261,
892,
10757,
3206,
2225,
1769,
3639,
3480,
18,
4412,
5621,
3639,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
10721,
542,
2011,
25,
261,
892,
13,
13477,
13590,
2225,
1769,
3639,
368,
7766,
16913,
18,
542,
2041,
1435,
3639,
293,
10589,
18,
542,
921,
12,
21,
16,
446,
16,
7658,
18,
38,
6038,
1769,
3639,
1815,
5510,
12,
84,
10589,
18,
8837,
1891,
1435,
422,
404,
1769,
3639,
293,
10589,
18,
4412,
5621,
3639,
8056,
3480,
22,
273,
356,
18,
2640,
3406,
5621,
3639,
10842,
3597,
273,
3480,
22,
18,
8837,
1138,
2932,
4803,
501,
4571,
468,
10721,
542,
2011,
25,
8863,
3639,
1815,
5510,
12,
5453,
18,
4285,
10663,
3639,
368,
7766,
10842,
18,
588,
5905,
1228,
1435,
3639,
1815,
5510,
12,
5453,
18,
588,
5905,
1228,
12,
21,
13,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
3639,
368,
7766,
10842,
18,
588,
9405,
1435,
3639,
1815,
5510,
12,
5453,
18,
588,
9405,
12,
21,
13,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
3639,
368,
7766,
10842,
18,
588,
2160,
1435,
3639,
1815,
5510,
12,
5453,
18,
588,
2160,
12,
21,
13,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
3639,
368,
7766,
10842,
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,
9405,
694,
2041,
25,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
10721,
542,
2011,
25,
261,
892,
10757,
3206,
2225,
1769,
3639,
3480,
18,
4412,
5621,
3639,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
10721,
542,
2011,
25,
261,
892,
13,
13477,
13590,
2225,
1769,
3639,
368,
7766,
16913,
18,
542,
2041,
1435,
3639,
293,
10589,
18,
542,
921,
12,
21,
16,
446,
16,
7658,
18,
38,
6038,
1769,
3639,
1815,
5510,
12,
84,
10589,
18,
8837,
1891,
1435,
422,
404,
1769,
3639,
293,
10589,
18,
4412,
5621,
3639,
8056,
3480,
22,
273,
356,
18,
2640,
2
] |
Integer id = reverse.get(cl);
|
Integer id = reverse.get(t);
|
public synchronized int intern(T cl) { if(cl==null) return 0; // bootstrap classloader Integer id = reverse.get(cl); if(id==null) { id = iota++; table.put(id,new WeakReference<T>(cl)); reverse.put(cl,id); } return id; }
|
27266 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27266/d249d5246d33855ab3bcbce28c0828dd02dfad0d/ExportTable.java/buggy/remoting/src/main/java/hudson/remoting/ExportTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
8216,
12,
56,
927,
13,
288,
3639,
309,
12,
830,
631,
2011,
13,
565,
327,
374,
31,
282,
368,
7065,
20595,
3639,
2144,
612,
273,
4219,
18,
588,
12,
88,
1769,
3639,
309,
12,
350,
631,
2011,
13,
288,
5411,
612,
273,
277,
25441,
9904,
31,
5411,
1014,
18,
458,
12,
350,
16,
2704,
23632,
2404,
32,
56,
34,
12,
830,
10019,
5411,
4219,
18,
458,
12,
830,
16,
350,
1769,
3639,
289,
3639,
327,
612,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
8216,
12,
56,
927,
13,
288,
3639,
309,
12,
830,
631,
2011,
13,
565,
327,
374,
31,
282,
368,
7065,
20595,
3639,
2144,
612,
273,
4219,
18,
588,
12,
88,
1769,
3639,
309,
12,
350,
631,
2011,
13,
288,
5411,
612,
273,
277,
25441,
9904,
31,
5411,
1014,
18,
458,
12,
350,
16,
2704,
23632,
2404,
32,
56,
34,
12,
830,
10019,
5411,
4219,
18,
458,
12,
830,
16,
350,
1769,
3639,
289,
3639,
327,
612,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
targetElement.removeDisposeListener(disposeLitener);
|
mediatorMap.remove(targetElement); targetElement.removeDisposeListener(this);
|
public void moduleDisposed( ModuleHandle targetElement, DisposeEvent ev ) { ReportMediator media = (ReportMediator)mediatorMap.get(targetElement); if (media != null) { media.dispose(); mediatorMap.remove(targetElement); } targetElement.removeDisposeListener(disposeLitener); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b97243816b5e6a0657e44d3f9ed52189a65aaf65/SessionHandleAdapter.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/SessionHandleAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1605,
1669,
7423,
12,
5924,
3259,
1018,
1046,
16,
3035,
4150,
1133,
2113,
262,
202,
202,
95,
1082,
202,
4820,
13265,
10620,
3539,
273,
261,
4820,
13265,
10620,
13,
17113,
863,
18,
588,
12,
3299,
1046,
1769,
1082,
202,
430,
261,
5829,
480,
446,
13,
1082,
202,
95,
9506,
202,
5829,
18,
2251,
4150,
5621,
9506,
202,
17113,
863,
18,
4479,
12,
3299,
1046,
1769,
1082,
202,
97,
1082,
202,
3299,
1046,
18,
4479,
1669,
4150,
2223,
12,
2251,
4150,
23707,
708,
1769,
202,
202,
97,
202,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1605,
1669,
7423,
12,
5924,
3259,
1018,
1046,
16,
3035,
4150,
1133,
2113,
262,
202,
202,
95,
1082,
202,
4820,
13265,
10620,
3539,
273,
261,
4820,
13265,
10620,
13,
17113,
863,
18,
588,
12,
3299,
1046,
1769,
1082,
202,
430,
261,
5829,
480,
446,
13,
1082,
202,
95,
9506,
202,
5829,
18,
2251,
4150,
5621,
9506,
202,
17113,
863,
18,
4479,
12,
3299,
1046,
1769,
1082,
202,
97,
1082,
202,
3299,
1046,
18,
4479,
1669,
4150,
2223,
12,
2251,
4150,
23707,
708,
1769,
202,
202,
97,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
config = new NullConfiguration();
|
config = new GnuConfiguration();
|
static Configuration getConfig() { if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } }); try { if (conf != null) config = (Configuration) Class.forName (conf).newInstance(); else config = new NullConfiguration(); } catch (Exception x) { config = new NullConfiguration(); } } return config; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/Configuration.java/clean/core/src/classpath/javax/javax/security/auth/login/Configuration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
4659,
4367,
1435,
225,
288,
565,
309,
261,
1425,
422,
446,
13,
1377,
288,
3639,
514,
2195,
273,
261,
780,
13,
25556,
18,
2896,
18845,
1850,
261,
2704,
24897,
1435,
5411,
288,
2868,
1071,
1033,
1086,
1435,
2868,
288,
7734,
327,
6036,
18,
588,
1396,
7566,
5819,
18,
7025,
18,
6778,
8863,
2868,
289,
5411,
15549,
3639,
775,
1850,
288,
5411,
309,
261,
3923,
480,
446,
13,
2868,
642,
273,
261,
1750,
13,
1659,
18,
1884,
461,
261,
3923,
2934,
2704,
1442,
5621,
5411,
469,
2868,
642,
273,
394,
611,
13053,
1750,
5621,
1850,
289,
3639,
1044,
261,
503,
619,
13,
1850,
288,
5411,
642,
273,
394,
611,
13053,
1750,
5621,
1850,
289,
1377,
289,
565,
327,
642,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
4659,
4367,
1435,
225,
288,
565,
309,
261,
1425,
422,
446,
13,
1377,
288,
3639,
514,
2195,
273,
261,
780,
13,
25556,
18,
2896,
18845,
1850,
261,
2704,
24897,
1435,
5411,
288,
2868,
1071,
1033,
1086,
1435,
2868,
288,
7734,
327,
6036,
18,
588,
1396,
7566,
5819,
18,
7025,
18,
6778,
8863,
2868,
289,
5411,
15549,
3639,
775,
1850,
288,
5411,
309,
261,
3923,
480,
446,
13,
2868,
642,
273,
261,
1750,
13,
1659,
18,
1884,
461,
261,
3923,
2934,
2704,
1442,
5621,
5411,
469,
2868,
642,
273,
394,
611,
13053,
1750,
5621,
1850,
289,
3639,
1044,
261,
503,
619,
13,
1850,
288,
5411,
642,
273,
394,
611,
13053,
1750,
5621,
1850,
289,
1377,
289,
565,
327,
2
] |
if (isExpanded) expanded.add(path.getLastPathComponent()); else expanded.remove(path.getLastPathComponent()); dirty = true;
|
public void setExpandedState(TreePath value0, boolean value1) throws NotImplementedException { // TODO }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f3624012d1a6fce8a3f0ae863dc5768ded8e8454/FixedHeightLayoutCache.java/buggy/javax/swing/tree/FixedHeightLayoutCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
309,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
1071,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
918,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
444,
17957,
1119,
12,
2471,
743,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
460,
20,
16,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
1250,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
460,
21,
13,
430,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
309,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
1071,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
18,
4479,
12,
803,
18,
588,
3024,
743,
1841,
10663,
225,
9603,
273,
638,
31,
918,
430,
261,
291,
17957,
13,
8406,
18,
1289,
12,
803,
18,
588,
3024,
743,
1841,
10663,
469,
8406,
2
] |
|
if (e.getDocument() == _nameField.getDocument()) setTargetName();
|
if (e.getDocument() == _nameField.getDocument() && _target != null) { _target.setText(_nameField.getText()); _target.damage(); }
|
public void insertUpdate(DocumentEvent e) { //System.out.println(getClass().getName() + " insert"); if (e.getDocument() == _nameField.getDocument()) setTargetName(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/7e071908303156a4909ef9f4cea1501d452216c3/PropPanelString.java/buggy/src_new/org/argouml/uml/diagram/ui/PropPanelString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
1891,
12,
2519,
1133,
425,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
12,
588,
797,
7675,
17994,
1435,
397,
315,
2243,
8863,
565,
309,
261,
73,
18,
588,
2519,
1435,
422,
389,
529,
974,
18,
588,
2519,
1435,
597,
389,
3299,
480,
446,
13,
288,
389,
3299,
18,
542,
1528,
24899,
529,
974,
18,
588,
1528,
10663,
389,
3299,
18,
72,
301,
410,
5621,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
1891,
12,
2519,
1133,
425,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
12,
588,
797,
7675,
17994,
1435,
397,
315,
2243,
8863,
565,
309,
261,
73,
18,
588,
2519,
1435,
422,
389,
529,
974,
18,
588,
2519,
1435,
597,
389,
3299,
480,
446,
13,
288,
389,
3299,
18,
542,
1528,
24899,
529,
974,
18,
588,
1528,
10663,
389,
3299,
18,
72,
301,
410,
5621,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
debug( "lastSuccessfulBuild = [" + getFormatedTime(lastSuccessfulBuild) + "]");
|
debug("lastSuccessfulBuild = [" + getFormatedTime(lastSuccessfulBuild) + "]");
|
protected void init() throws CruiseControlException { log("reading settings from config file [" + configFile.getAbsolutePath() + "]"); ProjectXMLHelper helper = getProjectXMLHelper(); logDir = helper.getLogDir(); checkLogDirectory(); logXmlEncoding = helper.getLogXmlEncoding(); bootstrappers = helper.getBootstrappers(); schedule = helper.getSchedule(); buildInterval = schedule.getInterval(); modificationSet = helper.getModificationSet(); labelIncrementer = helper.getLabelIncrementer(); if (label == null) { label = labelIncrementer.getDefaultLabel(); } validateLabel(label, labelIncrementer); auxLogs = helper.getAuxLogs(); publishers = helper.getPublishers(); buildAfterFailed = helper.getBuildAfterFailed(); debug("buildInterval = [" + buildInterval + "]"); debug("buildForced = [" + buildForced + "]"); debug("buildAfterFailed = [" + buildAfterFailed + "]"); debug("buildCounter = [" + buildCounter + "]"); debug("isPaused = [" + isPaused + "]"); debug("label = [" + label + "]"); debug("lastBuild = [" + getFormatedTime(lastBuild) + "]"); debug( "lastSuccessfulBuild = [" + getFormatedTime(lastSuccessfulBuild) + "]"); debug("logDir = [" + logDir + "]"); debug("logFileName = [" + logFileName + "]"); debug("logXmlEncoding = [" + logXmlEncoding + "]"); debug("wasLastBuildSuccessful = [" + wasLastBuildSuccessful + "]"); }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/92bfabe06582efb22f08132fad350d7ed3f98702/Project.java/buggy/main/src/net/sourceforge/cruisecontrol/Project.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
613,
2932,
21803,
1947,
628,
642,
585,
8247,
397,
12247,
18,
588,
10368,
743,
1435,
397,
9870,
1769,
3639,
5420,
4201,
2276,
4222,
273,
11080,
4201,
2276,
5621,
3639,
31101,
273,
4222,
18,
588,
1343,
1621,
5621,
3639,
866,
1343,
2853,
5621,
3639,
613,
4432,
4705,
273,
4222,
18,
588,
1343,
4432,
4705,
5621,
3639,
4835,
701,
2910,
414,
273,
4222,
18,
588,
15817,
701,
2910,
414,
5621,
3639,
4788,
273,
4222,
18,
588,
6061,
5621,
3639,
1361,
4006,
273,
4788,
18,
588,
4006,
5621,
3639,
11544,
694,
273,
4222,
18,
588,
13467,
694,
5621,
3639,
1433,
10798,
264,
273,
4222,
18,
588,
2224,
10798,
264,
5621,
3639,
309,
261,
1925,
422,
446,
13,
288,
5411,
1433,
273,
1433,
10798,
264,
18,
588,
1868,
2224,
5621,
3639,
289,
3639,
1954,
2224,
12,
1925,
16,
1433,
10798,
264,
1769,
3639,
9397,
7777,
273,
4222,
18,
588,
21981,
7777,
5621,
3639,
3808,
414,
273,
4222,
18,
588,
6024,
414,
5621,
3639,
1361,
4436,
2925,
273,
4222,
18,
588,
3116,
4436,
2925,
5621,
3639,
1198,
2932,
3510,
4006,
1850,
273,
8247,
397,
1361,
4006,
397,
9870,
1769,
3639,
1198,
2932,
3510,
1290,
3263,
5411,
273,
8247,
397,
1361,
1290,
3263,
397,
9870,
1769,
3639,
1198,
2932,
3510,
4436,
2925,
4202,
273,
8247,
397,
1361,
4436,
2925,
397,
9870,
1769,
3639,
1198,
2932,
3510,
4789,
6647,
273,
8247,
397,
1361,
4789,
397,
9870,
1769,
3639,
1198,
2932,
291,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
613,
2932,
21803,
1947,
628,
642,
585,
8247,
397,
12247,
18,
588,
10368,
743,
1435,
397,
9870,
1769,
3639,
5420,
4201,
2276,
4222,
273,
11080,
4201,
2276,
5621,
3639,
31101,
273,
4222,
18,
588,
1343,
1621,
5621,
3639,
866,
1343,
2853,
5621,
3639,
613,
4432,
4705,
273,
4222,
18,
588,
1343,
4432,
4705,
5621,
3639,
4835,
701,
2910,
414,
273,
4222,
18,
588,
15817,
701,
2910,
414,
5621,
3639,
4788,
273,
4222,
18,
588,
6061,
5621,
3639,
1361,
4006,
273,
4788,
18,
588,
4006,
5621,
3639,
11544,
694,
273,
4222,
18,
588,
13467,
694,
5621,
3639,
1433,
10798,
264,
273,
4222,
18,
588,
2224,
10798,
264,
2
] |
} } }else{
|
} } }else{
|
public void renewCA(Admin admin, int caid, IResponseMessage responsemessage) throws CADoesntExistsException, AuthorizationDeniedException, CertPathValidatorException, CATokenOfflineException{ debug(">CAAdminSession, renewCA(), caid=" + caid); Collection cachain = null; Certificate cacertificate = null; // check authorization try{ getAuthorizationSession().isAuthorizedNoLog(admin,"/super_administrator"); }catch(AuthorizationDeniedException e){ getLogSession().log(admin, caid, LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,"Administrator isn't authorized to renew CA",e); throw new AuthorizationDeniedException("Not authorized to renew CA with caid = " + caid); } // Get CA info. CADataLocal cadata = null; try{ cadata = this.cadatahome.findByPrimaryKey(new Integer(caid)); CA ca = cadata.getCA(); try{ // if issuer is insystem CA or selfsigned, then generate new certificate. if(ca.getSignedBy() != CAInfo.SIGNEDBYEXTERNALCA){ if(ca.getSignedBy() == CAInfo.SELFSIGNED){ // create selfsigned certificate if( ca instanceof X509CA){ UserAuthData cainfodata = new UserAuthData("nobody", null, ca.getSubjectDN(), ca.getSubjectDN().hashCode(), ((X509CA) ca).getSubjectAltName(), null, 0, ca.getCertificateProfileId(), null); CertificateProfile certprofile = getCertificateStoreSession().getCertificateProfile(admin, ca.getCertificateProfileId()); cacertificate = ca.generateCertificate(cainfodata, ca.getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN),-1, ca.getValidity(), certprofile); } // Build Certificate Chain cachain = new ArrayList(); cachain.add(cacertificate); }else{ // Resign with CA above. if(ca.getSignedBy() > CAInfo.SPECIALCAIDBORDER || ca.getSignedBy() < 0){ // Create CA signed by other internal CA. CADataLocal signcadata = cadatahome.findByPrimaryKey(new Integer(ca.getSignedBy())); CA signca = signcadata.getCA(); // Check validity of signers certificate X509Certificate signcert = (X509Certificate) signca.getCACertificate(); try{ signcert.checkValidity(); }catch(CertificateExpiredException ce){ // Signers Certificate has expired. signcadata.setStatus(SecConst.CA_EXPIRED); getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " has expired",ce); throw new EJBException(ce); }catch(CertificateNotYetValidException cve){ getLogSession().log(admin, signcadata.getCAId().intValue(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Signing CA " + signcadata.getSubjectDN() + " is not yet valid",cve); throw new EJBException(cve); } // Create cacertificate if( ca instanceof X509CA){ UserAuthData cainfodata = new UserAuthData("nobody", null, ca.getSubjectDN(), ca.getSubjectDN().hashCode(), ((X509CA) ca).getSubjectAltName(), null, 0, ca.getCertificateProfileId(), null); CertificateProfile certprofile = getCertificateStoreSession().getCertificateProfile(admin, ca.getCertificateProfileId()); cacertificate = signca.generateCertificate(cainfodata, ca.getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN),-1, ca.getValidity(), certprofile); } // Build Certificate Chain Collection rootcachain = signca.getCertificateChain(); cachain = new ArrayList(); cachain.add(cacertificate); cachain.addAll(rootcachain); } } }else{ // if external signer then use signed certificate. // check the validity of the certificate chain. if(responsemessage instanceof X509ResponseMessage){ cacertificate = ((X509ResponseMessage) responsemessage).getCertificate(); }else{ getLogSession().log(admin, caid, LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error: illegal response message."); throw new EJBException(new EjbcaException("Error: illegal response message.")); } // Check that DN is the equals the request. if(!CertTools.getSubjectDN((X509Certificate) cacertificate).equals(CertTools.stringToBCDNString(ca.getSubjectDN()))){ getLogSession().log(admin, caid, LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error: Subject DN of recieved certificate doesn't match request"); throw new EJBException(new EjbcaException("Error: Subject DN of recieved certificate doesn't match request")); } cachain = new ArrayList(); cachain.add(cacertificate); cachain.addAll(ca.getRequestCertificateChain()); cachain = createCertChain(cachain); } // Set statuses. if(cacertificate instanceof X509Certificate) cadata.setExpireTime(((X509Certificate) cacertificate).getNotAfter().getTime()); cadata.setStatus(SecConst.CA_ACTIVE); ca.setCertificateChain(cachain); cadata.setCA(ca); // Publish the new CA certificate int certtype = SecConst.CERTTYPE_SUBCA; if(ca.getSignedBy() == CAInfo.SELFSIGNED) certtype = SecConst.CERTTYPE_ROOTCA; ArrayList cacert = new ArrayList(); cacert.add(ca.getCACertificate()); getSignSession().publishCACertificate(admin, cacert, ca.getCRLPublishers(), certtype); }catch(CATokenOfflineException e){ ca.setStatus(SecConst.CA_OFFLINE); getLogSession().log(admin, caid, LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Couldn't Renew CA.",e); throw e; } }catch(Exception e){ getLogSession().log(admin, caid, LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Couldn't Renew CA.",e); throw new EJBException(e); } getLogSession().log(admin, caid, LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CAEDITED,"CA Renew Successfully."); debug("<CAAdminSession, renewCA(), caid=" + caid); } // renewCA
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/6f27459e8db7a9efb8cf0588695ad6fd28539506/CAAdminSessionBean.java/clean/src/java/se/anatom/ejbca/ca/caadmin/CAAdminSessionBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15723,
3587,
12,
4446,
3981,
16,
509,
3474,
350,
16,
467,
1064,
1079,
766,
2150,
13,
225,
1216,
385,
1880,
83,
281,
496,
4002,
503,
16,
10234,
15877,
16,
11921,
743,
5126,
503,
16,
30210,
969,
23106,
503,
95,
377,
202,
4148,
2932,
34,
3587,
4446,
2157,
16,
15723,
3587,
9334,
3474,
350,
1546,
397,
3474,
350,
1769,
377,
202,
2532,
7122,
530,
273,
446,
31,
377,
202,
4719,
276,
1077,
2543,
273,
446,
31,
377,
202,
759,
866,
6093,
2398,
202,
698,
95,
377,
202,
202,
588,
6063,
2157,
7675,
291,
15341,
2279,
1343,
12,
3666,
10837,
19,
9565,
67,
3666,
14207,
8863,
377,
202,
97,
14683,
12,
6063,
15877,
425,
15329,
377,
202,
202,
588,
1343,
2157,
7675,
1330,
12,
3666,
16,
3474,
350,
16,
30039,
18,
12194,
67,
3587,
16,
225,
394,
2252,
18,
1367,
18,
1626,
9334,
446,
16,
446,
16,
30039,
18,
10454,
67,
3589,
67,
4400,
28383,
4296,
11395,
10837,
4446,
14207,
5177,
1404,
10799,
358,
15723,
6425,
3113,
73,
1769,
377,
202,
202,
12849,
394,
10234,
15877,
2932,
1248,
10799,
358,
15723,
6425,
598,
3474,
350,
273,
315,
397,
3474,
350,
1769,
377,
202,
97,
377,
202,
377,
202,
759,
968,
6425,
1123,
18,
377,
202,
3587,
751,
2042,
28451,
396,
273,
446,
31,
377,
202,
698,
95,
377,
202,
202,
71,
361,
396,
273,
333,
18,
71,
361,
396,
8712,
18,
4720,
858,
11575,
12,
2704,
2144,
12,
5353,
350,
10019,
377,
202,
202,
3587,
3474,
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,
15723,
3587,
12,
4446,
3981,
16,
509,
3474,
350,
16,
467,
1064,
1079,
766,
2150,
13,
225,
1216,
385,
1880,
83,
281,
496,
4002,
503,
16,
10234,
15877,
16,
11921,
743,
5126,
503,
16,
30210,
969,
23106,
503,
95,
377,
202,
4148,
2932,
34,
3587,
4446,
2157,
16,
15723,
3587,
9334,
3474,
350,
1546,
397,
3474,
350,
1769,
377,
202,
2532,
7122,
530,
273,
446,
31,
377,
202,
4719,
276,
1077,
2543,
273,
446,
31,
377,
202,
759,
866,
6093,
2398,
202,
698,
95,
377,
202,
202,
588,
6063,
2157,
7675,
291,
15341,
2279,
1343,
12,
3666,
10837,
19,
9565,
67,
3666,
14207,
8863,
377,
202,
97,
14683,
12,
6063,
15877,
425,
15329,
377,
202,
202,
2
] |
m_useDefaultListeners = f;
|
m_useDefaultListeners= f;
|
public void setUseDefaultListeners(String f) { m_useDefaultListeners = f; }
|
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/buggy/src/main/org/testng/TestNGAntTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
24581,
1868,
5583,
12,
780,
284,
13,
288,
565,
312,
67,
1202,
1868,
5583,
33,
284,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
24581,
1868,
5583,
12,
780,
284,
13,
288,
565,
312,
67,
1202,
1868,
5583,
33,
284,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final Frame currentFrame = runtime.getCurrentFrame(); final Block currentBlock = runtime.getBlockStack().getCurrent();
|
private static RubyThread startThread(final IRubyObject recv, final IRubyObject[] args, boolean callInit) { final Ruby runtime = recv.getRuntime(); if (! runtime.isBlockGiven()) { throw new ThreadError(runtime, "must be called with a block"); } final RubyThread result = new RubyThread(runtime, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(runtime, runtime.getClasses().getProcClass()); final Frame currentFrame = runtime.getCurrentFrame(); final Block currentBlock = runtime.getBlockStack().getCurrent(); result.jvmThread = new Thread(new Runnable() { public void run() { ThreadContext context = runtime.getCurrentContext(); context.getFrameStack().push(currentFrame); context.getBlockStack().setCurrent(currentBlock); context.setCurrentThread(result); proc.call(args); } }); result.jvmThread.start(); return result; }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/1ceedf02ac15d7325cfcf505ca74f35c5bc4a258/RubyThread.java/clean/org/jruby/RubyThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
19817,
3830,
787,
3830,
12,
6385,
15908,
10340,
921,
10665,
16,
727,
15908,
10340,
921,
8526,
833,
16,
1250,
745,
2570,
13,
288,
3639,
727,
19817,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
309,
16051,
3099,
18,
291,
1768,
6083,
10756,
288,
5411,
604,
394,
4884,
668,
12,
9448,
16,
315,
11926,
506,
2566,
598,
279,
1203,
8863,
3639,
289,
3639,
727,
19817,
3830,
563,
273,
394,
19817,
3830,
12,
9448,
16,
261,
54,
10340,
797,
13,
10665,
1769,
3639,
309,
261,
1991,
2570,
13,
288,
5411,
563,
18,
1991,
2570,
12,
1968,
1769,
3639,
289,
3639,
727,
19817,
15417,
5418,
273,
19817,
15417,
18,
2704,
15417,
12,
9448,
16,
3099,
18,
588,
4818,
7675,
588,
15417,
797,
10663,
3639,
727,
8058,
783,
3219,
273,
3099,
18,
588,
3935,
3219,
5621,
3639,
727,
3914,
30610,
273,
3099,
18,
588,
1768,
2624,
7675,
588,
3935,
5621,
3639,
563,
18,
78,
3489,
3830,
273,
394,
4884,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
4884,
1042,
819,
273,
3099,
18,
588,
3935,
1042,
5621,
7734,
819,
18,
588,
3219,
2624,
7675,
6206,
12,
2972,
3219,
1769,
7734,
819,
18,
588,
1768,
2624,
7675,
542,
3935,
12,
2972,
1768,
1769,
7734,
819,
18,
542,
3935,
3830,
12,
2088,
1769,
7734,
5418,
18,
1991,
12,
1968,
1769,
5411,
289,
3639,
15549,
3639,
563,
18,
78,
3489,
3830,
18,
1937,
5621,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
19817,
3830,
787,
3830,
12,
6385,
15908,
10340,
921,
10665,
16,
727,
15908,
10340,
921,
8526,
833,
16,
1250,
745,
2570,
13,
288,
3639,
727,
19817,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
309,
16051,
3099,
18,
291,
1768,
6083,
10756,
288,
5411,
604,
394,
4884,
668,
12,
9448,
16,
315,
11926,
506,
2566,
598,
279,
1203,
8863,
3639,
289,
3639,
727,
19817,
3830,
563,
273,
394,
19817,
3830,
12,
9448,
16,
261,
54,
10340,
797,
13,
10665,
1769,
3639,
309,
261,
1991,
2570,
13,
288,
5411,
563,
18,
1991,
2570,
12,
1968,
1769,
3639,
289,
3639,
727,
19817,
15417,
5418,
273,
19817,
15417,
18,
2704,
15417,
12,
9448,
16,
3099,
18,
588,
4818,
7675,
2
] |
|
DocumentBuilder documentBuilder; try { documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); } catch (ParserConfigurationException e) { throw new RuntimeException(e); }
|
DocumentBuilder documentBuilder = getDOMDocumentBuilder();
|
private QName generateReferenceQname(String outerName,Message wsdl4jMessage,boolean isWrappable) { QName referenceQName = null; //find the xsd prefix String xsdPrefix = findSchemaPrefix(); //do the wrapping if required if (isWrappable) { Map parts = wsdl4jMessage.getParts(); // Multipart Message // NOTE (gdaniels) : It appears this code is taking multiple // part declarations and "wrapping" them into a single schema // type. This is fine for RPC style stuff, but should not be // happening for document style. // TODO : sanity check // Check whether this message parts have been made to a type Iterator multipartListIterator = this.resolvedMultipartMessageList.iterator(); boolean multipartAlreadyResolved = false; while (multipartListIterator.hasNext() && !multipartAlreadyResolved) { QName temp = (QName) multipartListIterator.next(); multipartAlreadyResolved = wsdl4jMessage.getQName().equals(temp); } if (multipartAlreadyResolved) { //This message with multiple parts has resolved and a new type has been //made out of it earlier. //FIXME Actual element name should it be xs:, if yes change the qname added to the //resolvedmessage list too. referenceQName = wsdl4jMessage.getQName(); } else { //Get the list of multiparts of the message and create a new Element //out of it and add it to the schema. Element schemaElement; WSDLTypes types = womDefinition.getTypes(); //If types is null create a new one to be used for multipart //resolution if any. if (null == types) { //create a new types section types = wsdlComponentFactory.createTypes(); this.womDefinition.setTypes(types); } //create a new Schema extensions element ExtensionFactory extensionFactory = wsdlComponentFactory.createExtensionFactory(); org.apache.wsdl.extensions.Schema schemaExtensibilityElement = (org.apache.wsdl.extensions.Schema) extensionFactory.getExtensionElement( ExtensionConstants.SCHEMA); types.addExtensibilityElement(schemaExtensibilityElement); //add a schema DOM element DocumentBuilder documentBuilder; try { documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } Document newDoc = documentBuilder.newDocument(); schemaElement = newDoc.createElementNS(XMLSCHEMA_NAMESPACE_URI, xsdPrefix + ":"+XML_SCHEMA_LOCAL_NAME); schemaExtensibilityElement.setElement(schemaElement); //add this to the imported stack as well Stack stack = new Stack(); stack.push(schemaElement); schemaExtensibilityElement.setImportedSchemaStack(stack); //add the namespace declarations String targetNamespaceUri = wsdl4jMessage.getQName().getNamespaceURI(); if (targetNamespaceUri.trim().equals("")){ targetNamespaceUri = getTemporaryNamespaceUri(); } // Note - The DOM level2 API does not support getting a local name from Attrib Node!! // And XmlSchema fails miserably with this "xmlns:" attribs so to avoid the problem //i have no choice but to remove the NS declarations! schemaElement.setAttribute(XMLNS_AXIS2WRAPPED, targetNamespaceUri); schemaElement.setAttribute(XSD_TARGETNAMESPACE,targetNamespaceUri); //schemaElement.setAttribute("xmlns:"+XMLSCHEMA_NAMESPACE_PREFIX,XMLSCHEMA_NAMESPACE_URI); //add the complex type Document doc = schemaElement.getOwnerDocument(); String name = wsdl4jMessage.getQName().getLocalPart(); Element newComplexType = doc.createElementNS(WSDLPump.XMLSCHEMA_NAMESPACE_URI, xsdPrefix + ":"+ XML_SCHEMA_COMPLEX_TYPE_LOCAL_NAME); newComplexType.setAttribute(WSDLPump.XSD_NAME, name); // add the sequence // Note - we model the complex type as a sequence! Element cmplxContentSequence = doc.createElementNS(WSDLPump.XMLSCHEMA_NAMESPACE_URI, xsdPrefix + ":"+ XML_SCHEMA_SEQUENCE_LOCAL_NAME); Element child; Element relaventElementInSchemaReferedByPart = null; Iterator iterator = parts.keySet().iterator(); while (iterator.hasNext()) { Part part = (Part) parts.get(iterator.next()); //the part name String elementName = part.getName(); //the type name QName schemaTypeName = part.getTypeName(); //see whether this type is already present in one of the schemas NodeList allSchemaElements = schemaElement.getChildNodes(); for(int idx = 0; idx < allSchemaElements.getLength(); idx++){ if(allSchemaElements.item(idx).getNodeType() == Node.ELEMENT_NODE && allSchemaElements.item(idx).getLocalName().equals(xsdPrefix + ":"+ XML_SCHEMA_ELEMENT_LOCAL_NAME) && elementName.equals(((Element)allSchemaElements.item(idx)).getAttribute(WSDLPump.XSD_NAME))){ relaventElementInSchemaReferedByPart = (Element)allSchemaElements.item(idx); break; } } child = doc.createElementNS(XMLSCHEMA_NAMESPACE_URI, xsdPrefix + ":"+ XML_SCHEMA_ELEMENT_LOCAL_NAME); child.setAttribute(WSDLPump.XSD_NAME, elementName); if(null != relaventElementInSchemaReferedByPart){ child.setAttribute(WSDLPump.XSD_TYPE, relaventElementInSchemaReferedByPart.getAttribute(WSDLPump.XSD_TYPE)); }else{ String prefix; if (XMLSCHEMA_NAMESPACE_URI.equals(schemaTypeName.getNamespaceURI())){ prefix = xsdPrefix; }else{ prefix = schemaTypeName.getPrefix(); } child.setAttribute(WSDLPump.XSD_TYPE, prefix +":"+schemaTypeName.getLocalPart()); } cmplxContentSequence.appendChild(child); } newComplexType.appendChild(cmplxContentSequence); schemaElement.appendChild(newComplexType); Element newElement = doc.createElementNS(XMLSCHEMA_NAMESPACE_URI, xsdPrefix + ":"+ XML_SCHEMA_ELEMENT_LOCAL_NAME); newElement.setAttribute(WSDLPump.XSD_NAME, outerName); newElement.setAttribute(WSDLPump.XSD_TYPE, AXIS2WRAPPED +":"+//whats the prefix to put here!!! wsdl4jMessage.getQName().getLocalPart()); schemaElement.appendChild(newElement); //Now since a new type is created augmenting the parts add the QName //of the newly created Element as the messageReference's name. //coincidentally it'll be the messages QName! referenceQName = wsdl4jMessage.getQName(); //Add this message as a resolved message, so that incase some other //operation refer to the same message the if above will take a hit //and the cashed QName can be used instead of creating another type //for the same message. this.resolvedMultipartMessageList.add(referenceQName); } } else { //Only one part so copy the QName of the referenced type. Iterator outputIterator = wsdl4jMessage.getParts().values().iterator(); if (outputIterator.hasNext()) { Part outPart = ((Part) outputIterator.next()); QName typeName; if (null != (typeName = outPart.getTypeName())) { referenceQName = typeName; } else { referenceQName = outPart.getElementName(); } } } return referenceQName; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/7141a335c18525a16e98cb1d17f5e9c7732e215a/WSDLPump.java/buggy/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
16723,
2103,
2404,
53,
529,
12,
780,
6390,
461,
16,
1079,
17642,
24,
78,
1079,
16,
6494,
353,
2964,
19586,
13,
288,
3639,
16723,
2114,
13688,
273,
446,
31,
3639,
368,
4720,
326,
14802,
1633,
3639,
514,
14802,
2244,
273,
1104,
3078,
2244,
5621,
3639,
368,
2896,
326,
14702,
309,
1931,
3639,
309,
261,
291,
2964,
19586,
13,
288,
5411,
1635,
2140,
273,
17642,
24,
78,
1079,
18,
588,
4305,
5621,
5411,
368,
19919,
2350,
5411,
368,
5219,
261,
19016,
28662,
10558,
13,
294,
2597,
14606,
333,
981,
353,
13763,
3229,
5411,
368,
1087,
12312,
471,
315,
4113,
1382,
6,
2182,
1368,
279,
2202,
1963,
5411,
368,
618,
18,
225,
1220,
353,
11079,
364,
8295,
2154,
10769,
16,
1496,
1410,
486,
506,
5411,
368,
5865,
310,
364,
1668,
2154,
18,
5411,
368,
2660,
294,
16267,
866,
5411,
368,
2073,
2856,
333,
883,
2140,
1240,
2118,
7165,
358,
279,
618,
5411,
4498,
10263,
682,
3198,
273,
333,
18,
11792,
12024,
1079,
682,
18,
9838,
5621,
5411,
1250,
10263,
9430,
12793,
273,
629,
31,
5411,
1323,
261,
16404,
682,
3198,
18,
5332,
2134,
1435,
597,
10792,
401,
16404,
9430,
12793,
13,
288,
7734,
16723,
1906,
273,
261,
13688,
13,
10263,
682,
3198,
18,
4285,
5621,
7734,
10263,
9430,
12793,
273,
13491,
17642,
24,
78,
1079,
18,
588,
13688,
7675,
14963,
12,
5814,
1769,
5411,
289,
5411,
309,
261,
16404,
9430,
12793,
13,
288,
7734,
368,
2503,
883,
598,
3229,
2140,
711,
4640,
471,
279,
394,
618,
711,
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,
16723,
2103,
2404,
53,
529,
12,
780,
6390,
461,
16,
1079,
17642,
24,
78,
1079,
16,
6494,
353,
2964,
19586,
13,
288,
3639,
16723,
2114,
13688,
273,
446,
31,
3639,
368,
4720,
326,
14802,
1633,
3639,
514,
14802,
2244,
273,
1104,
3078,
2244,
5621,
3639,
368,
2896,
326,
14702,
309,
1931,
3639,
309,
261,
291,
2964,
19586,
13,
288,
5411,
1635,
2140,
273,
17642,
24,
78,
1079,
18,
588,
4305,
5621,
5411,
368,
19919,
2350,
5411,
368,
5219,
261,
19016,
28662,
10558,
13,
294,
2597,
14606,
333,
981,
353,
13763,
3229,
5411,
368,
1087,
12312,
471,
315,
4113,
1382,
6,
2182,
1368,
279,
2202,
1963,
5411,
368,
618,
18,
225,
1220,
353,
11079,
364,
8295,
2154,
10769,
2
] |
if(channel != null)
|
if (channel != null) {
|
public void send(Message msg) throws ChannelNotConnectedException, ChannelClosedException { if(channel != null) channel.send(msg); else if(adapter != null) { try { if(id != null) adapter.send(id, msg); else adapter.send(msg); } catch(Throwable ex) { if(log.isErrorEnabled()) log.error("exception=" + Util.print(ex)); } } else { if(log.isErrorEnabled()) log.error("channel == null"); } }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/9b133caccdd70cd06c1674ee2a42e75071fdc287/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
12,
1079,
1234,
13,
1216,
5307,
1248,
8932,
503,
16,
5307,
7395,
503,
288,
3639,
309,
261,
4327,
480,
446,
13,
288,
5411,
1904,
18,
4661,
12,
3576,
1769,
3639,
469,
309,
12,
10204,
480,
446,
13,
288,
5411,
775,
288,
7734,
309,
12,
350,
480,
446,
13,
10792,
4516,
18,
4661,
12,
350,
16,
1234,
1769,
7734,
469,
10792,
4516,
18,
4661,
12,
3576,
1769,
5411,
289,
5411,
1044,
12,
15155,
431,
13,
288,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
4064,
1546,
397,
3564,
18,
1188,
12,
338,
10019,
5411,
289,
3639,
289,
3639,
469,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
4327,
422,
446,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1366,
12,
1079,
1234,
13,
1216,
5307,
1248,
8932,
503,
16,
5307,
7395,
503,
288,
3639,
309,
261,
4327,
480,
446,
13,
288,
5411,
1904,
18,
4661,
12,
3576,
1769,
3639,
469,
309,
12,
10204,
480,
446,
13,
288,
5411,
775,
288,
7734,
309,
12,
350,
480,
446,
13,
10792,
4516,
18,
4661,
12,
350,
16,
1234,
1769,
7734,
469,
10792,
4516,
18,
4661,
12,
3576,
1769,
5411,
289,
5411,
1044,
12,
15155,
431,
13,
288,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
4064,
1546,
397,
3564,
18,
1188,
12,
338,
10019,
5411,
289,
3639,
289,
3639,
469,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
2
] |
return validateGroupingUnitType( (Object) value,
|
return validateGroupingUnitType( (GroupingUnitType) value,
|
protected boolean validate( int classifierID, Object value, DiagnosticChain diagnostics, Map context ) { switch ( classifierID ) { case AttributePackage.ACTION_VALUE : return validateActionValue( (ActionValue) value, diagnostics, context ); case AttributePackage.ANGLE3_D : return validateAngle3D( (Angle3D) value, diagnostics, context ); case AttributePackage.AXIS_ORIGIN : return validateAxisOrigin( (AxisOrigin) value, diagnostics, context ); case AttributePackage.BOUNDS : return validateBounds( (Bounds) value, diagnostics, context ); case AttributePackage.CALL_BACK_VALUE : return validateCallBackValue( (CallBackValue) value, diagnostics, context ); case AttributePackage.COLOR_DEFINITION : return validateColorDefinition( (ColorDefinition) value, diagnostics, context ); case AttributePackage.DATA_POINT : return validateDataPoint( (DataPoint) value, diagnostics, context ); case AttributePackage.DATA_POINT_COMPONENT : return validateDataPointComponent( (DataPointComponent) value, diagnostics, context ); case AttributePackage.DATE_FORMAT_SPECIFIER : return validateDateFormatSpecifier( (DateFormatSpecifier) value, diagnostics, context ); case AttributePackage.EMBEDDED_IMAGE : return validateEmbeddedImage( (EmbeddedImage) value, diagnostics, context ); case AttributePackage.EXTENDED_PROPERTY : return validateExtendedProperty( (ExtendedProperty) value, diagnostics, context ); case AttributePackage.FILL : return validateFill( (Fill) value, diagnostics, context ); case AttributePackage.FONT_DEFINITION : return validateFontDefinition( (FontDefinition) value, diagnostics, context ); case AttributePackage.FORMAT_SPECIFIER : return validateFormatSpecifier( (FormatSpecifier) value, diagnostics, context ); case AttributePackage.GRADIENT : return validateGradient( (Gradient) value, diagnostics, context ); case AttributePackage.IMAGE : return validateImage( (Image) value, diagnostics, context ); case AttributePackage.INSETS : return validateInsets( (Insets) value, diagnostics, context ); case AttributePackage.INTERACTIVITY : return validateInteractivity( (Interactivity) value, diagnostics, context ); case AttributePackage.JAVA_DATE_FORMAT_SPECIFIER : return validateJavaDateFormatSpecifier( (JavaDateFormatSpecifier) value, diagnostics, context ); case AttributePackage.JAVA_NUMBER_FORMAT_SPECIFIER : return validateJavaNumberFormatSpecifier( (JavaNumberFormatSpecifier) value, diagnostics, context ); case AttributePackage.LINE_ATTRIBUTES : return validateLineAttributes( (LineAttributes) value, diagnostics, context ); case AttributePackage.LOCATION : return validateLocation( (Location) value, diagnostics, context ); case AttributePackage.LOCATION3_D : return validateLocation3D( (Location3D) value, diagnostics, context ); case AttributePackage.MARKER : return validateMarker( (Marker) value, diagnostics, context ); case AttributePackage.NUMBER_FORMAT_SPECIFIER : return validateNumberFormatSpecifier( (NumberFormatSpecifier) value, diagnostics, context ); case AttributePackage.PALETTE : return validatePalette( (Palette) value, diagnostics, context ); case AttributePackage.ROTATION3_D : return validateRotation3D( (Rotation3D) value, diagnostics, context ); case AttributePackage.SCRIPT_VALUE : return validateScriptValue( (ScriptValue) value, diagnostics, context ); case AttributePackage.SERIES_VALUE : return validateSeriesValue( (SeriesValue) value, diagnostics, context ); case AttributePackage.SIZE : return validateSize( (Size) value, diagnostics, context ); case AttributePackage.STYLE : return validateStyle( (Style) value, diagnostics, context ); case AttributePackage.STYLE_MAP : return validateStyleMap( (StyleMap) value, diagnostics, context ); case AttributePackage.TEXT : return validateText( (Text) value, diagnostics, context ); case AttributePackage.TEXT_ALIGNMENT : return validateTextAlignment( (TextAlignment) value, diagnostics, context ); case AttributePackage.TOOLTIP_VALUE : return validateTooltipValue( (TooltipValue) value, diagnostics, context ); case AttributePackage.URL_VALUE : return validateURLValue( (URLValue) value, diagnostics, context ); case AttributePackage.ACTION_TYPE : return validateActionType( (Object) value, diagnostics, context ); case AttributePackage.ANCHOR : return validateAnchor( (Object) value, diagnostics, context ); case AttributePackage.ANGLE_TYPE : return validateAngleType( (Object) value, diagnostics, context ); case AttributePackage.AXIS_TYPE : return validateAxisType( (Object) value, diagnostics, context ); case AttributePackage.CHART_DIMENSION : return validateChartDimension( (Object) value, diagnostics, context ); case AttributePackage.CHART_TYPE : return validateChartType( (Object) value, diagnostics, context ); case AttributePackage.DATA_POINT_COMPONENT_TYPE : return validateDataPointComponentType( (Object) value, diagnostics, context ); case AttributePackage.DATA_TYPE : return validateDataType( (Object) value, diagnostics, context ); case AttributePackage.DATE_FORMAT_DETAIL : return validateDateFormatDetail( (Object) value, diagnostics, context ); case AttributePackage.DATE_FORMAT_TYPE : return validateDateFormatType( (Object) value, diagnostics, context ); case AttributePackage.DIRECTION : return validateDirection( (Object) value, diagnostics, context ); case AttributePackage.GROUPING_UNIT_TYPE : return validateGroupingUnitType( (Object) value, diagnostics, context ); case AttributePackage.HORIZONTAL_ALIGNMENT : return validateHorizontalAlignment( (Object) value, diagnostics, context ); case AttributePackage.INTERSECTION_TYPE : return validateIntersectionType( (Object) value, diagnostics, context ); case AttributePackage.LEADER_LINE_STYLE : return validateLeaderLineStyle( (Object) value, diagnostics, context ); case AttributePackage.LEGEND_BEHAVIOR_TYPE : return validateLegendBehaviorType( (Object) value, diagnostics, context ); case AttributePackage.LEGEND_ITEM_TYPE : return validateLegendItemType( (Object) value, diagnostics, context ); case AttributePackage.LINE_DECORATOR : return validateLineDecorator( (Object) value, diagnostics, context ); case AttributePackage.LINE_STYLE : return validateLineStyle( (Object) value, diagnostics, context ); case AttributePackage.MARKER_TYPE : return validateMarkerType( (Object) value, diagnostics, context ); case AttributePackage.ORIENTATION : return validateOrientation( (Object) value, diagnostics, context ); case AttributePackage.POSITION : return validatePosition( (Object) value, diagnostics, context ); case AttributePackage.RISER_TYPE : return validateRiserType( (Object) value, diagnostics, context ); case AttributePackage.RULE_TYPE : return validateRuleType( (Object) value, diagnostics, context ); case AttributePackage.SCALE_UNIT_TYPE : return validateScaleUnitType( (Object) value, diagnostics, context ); case AttributePackage.SORT_OPTION : return validateSortOption( (Object) value, diagnostics, context ); case AttributePackage.STRETCH : return validateStretch( (Object) value, diagnostics, context ); case AttributePackage.STYLED_COMPONENT : return validateStyledComponent( (Object) value, diagnostics, context ); case AttributePackage.TICK_STYLE : return validateTickStyle( (Object) value, diagnostics, context ); case AttributePackage.TRIGGER_CONDITION : return validateTriggerCondition( (Object) value, diagnostics, context ); case AttributePackage.TRIGGER_FLOW : return validateTriggerFlow( (Object) value, diagnostics, context ); case AttributePackage.UNITS_OF_MEASUREMENT : return validateUnitsOfMeasurement( (Object) value, diagnostics, context ); case AttributePackage.VERTICAL_ALIGNMENT : return validateVerticalAlignment( (Object) value, diagnostics, context ); case AttributePackage.ACTION_TYPE_OBJECT : return validateActionTypeObject( (ActionType) value, diagnostics, context ); case AttributePackage.ANCHOR_OBJECT : return validateAnchorObject( (Anchor) value, diagnostics, context ); case AttributePackage.ANGLE_TYPE_OBJECT : return validateAngleTypeObject( (AngleType) value, diagnostics, context ); case AttributePackage.AXIS_TYPE_OBJECT : return validateAxisTypeObject( (AxisType) value, diagnostics, context ); case AttributePackage.CHART_DIMENSION_OBJECT : return validateChartDimensionObject( (ChartDimension) value, diagnostics, context ); case AttributePackage.CHART_TYPE_OBJECT : return validateChartTypeObject( (ChartType) value, diagnostics, context ); case AttributePackage.DATA_POINT_COMPONENT_TYPE_OBJECT : return validateDataPointComponentTypeObject( (DataPointComponentType) value, diagnostics, context ); case AttributePackage.DATA_TYPE_OBJECT : return validateDataTypeObject( (DataType) value, diagnostics, context ); case AttributePackage.DATE_FORMAT_DETAIL_OBJECT : return validateDateFormatDetailObject( (DateFormatDetail) value, diagnostics, context ); case AttributePackage.DATE_FORMAT_TYPE_OBJECT : return validateDateFormatTypeObject( (DateFormatType) value, diagnostics, context ); case AttributePackage.DIRECTION_OBJECT : return validateDirectionObject( (Direction) value, diagnostics, context ); case AttributePackage.GROUPING_UNIT_TYPE_OBJECT : return validateGroupingUnitTypeObject( (GroupingUnitType) value, diagnostics, context ); case AttributePackage.HORIZONTAL_ALIGNMENT_OBJECT : return validateHorizontalAlignmentObject( (HorizontalAlignment) value, diagnostics, context ); case AttributePackage.ID : return validateID( (String) value, diagnostics, context ); case AttributePackage.INTERSECTION_TYPE_OBJECT : return validateIntersectionTypeObject( (IntersectionType) value, diagnostics, context ); case AttributePackage.LEADER_LINE_STYLE_OBJECT : return validateLeaderLineStyleObject( (LeaderLineStyle) value, diagnostics, context ); case AttributePackage.LEGEND_BEHAVIOR_TYPE_OBJECT : return validateLegendBehaviorTypeObject( (LegendBehaviorType) value, diagnostics, context ); case AttributePackage.LEGEND_ITEM_TYPE_OBJECT : return validateLegendItemTypeObject( (LegendItemType) value, diagnostics, context ); case AttributePackage.LINE_DECORATOR_OBJECT : return validateLineDecoratorObject( (LineDecorator) value, diagnostics, context ); case AttributePackage.LINE_STYLE_OBJECT : return validateLineStyleObject( (LineStyle) value, diagnostics, context ); case AttributePackage.MARKER_TYPE_OBJECT : return validateMarkerTypeObject( (MarkerType) value, diagnostics, context ); case AttributePackage.ORIENTATION_OBJECT : return validateOrientationObject( (Orientation) value, diagnostics, context ); case AttributePackage.PERCENTAGE : return validatePercentage( ( (Double) value ).doubleValue( ), diagnostics, context ); case AttributePackage.PERCENTAGE_OBJECT : return validatePercentageObject( (Double) value, diagnostics, context ); case AttributePackage.POSITION_OBJECT : return validatePositionObject( (Position) value, diagnostics, context ); case AttributePackage.RGB_VALUE : return validateRGBValue( ( (Integer) value ).intValue( ), diagnostics, context ); case AttributePackage.RGB_VALUE_OBJECT : return validateRGBValueObject( (Integer) value, diagnostics, context ); case AttributePackage.RISER_TYPE_OBJECT : return validateRiserTypeObject( (RiserType) value, diagnostics, context ); case AttributePackage.RULE_TYPE_OBJECT : return validateRuleTypeObject( (RuleType) value, diagnostics, context ); case AttributePackage.SCALE_UNIT_TYPE_OBJECT : return validateScaleUnitTypeObject( (ScaleUnitType) value, diagnostics, context ); case AttributePackage.SORT_OPTION_OBJECT : return validateSortOptionObject( (SortOption) value, diagnostics, context ); case AttributePackage.STRETCH_OBJECT : return validateStretchObject( (Stretch) value, diagnostics, context ); case AttributePackage.STYLED_COMPONENT_OBJECT : return validateStyledComponentObject( (StyledComponent) value, diagnostics, context ); case AttributePackage.TICK_STYLE_OBJECT : return validateTickStyleObject( (TickStyle) value, diagnostics, context ); case AttributePackage.TRIGGER_CONDITION_OBJECT : return validateTriggerConditionObject( (TriggerCondition) value, diagnostics, context ); case AttributePackage.TRIGGER_FLOW_OBJECT : return validateTriggerFlowObject( (TriggerFlow) value, diagnostics, context ); case AttributePackage.UNITS_OF_MEASUREMENT_OBJECT : return validateUnitsOfMeasurementObject( (UnitsOfMeasurement) value, diagnostics, context ); case AttributePackage.VERTICAL_ALIGNMENT_OBJECT : return validateVerticalAlignmentObject( (VerticalAlignment) value, diagnostics, context ); default : return true; } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/AttributeValidator.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/util/AttributeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1954,
12,
509,
14622,
734,
16,
1033,
460,
16,
1082,
202,
26836,
3893,
22568,
16,
1635,
819,
262,
202,
95,
202,
202,
9610,
261,
14622,
734,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
12249,
67,
4051,
294,
9506,
202,
2463,
1954,
1803,
620,
12,
261,
1803,
620,
13,
460,
16,
25083,
202,
12264,
13936,
16,
25083,
202,
2472,
11272,
1082,
202,
3593,
3601,
2261,
18,
30978,
23,
67,
40,
294,
9506,
202,
2463,
1954,
8467,
23,
40,
12,
261,
8467,
23,
40,
13,
460,
16,
22568,
16,
819,
11272,
1082,
202,
3593,
3601,
2261,
18,
25614,
67,
24685,
294,
9506,
202,
2463,
1954,
6558,
7571,
12,
261,
6558,
7571,
13,
460,
16,
25083,
202,
12264,
13936,
16,
25083,
202,
2472,
11272,
1082,
202,
3593,
3601,
2261,
18,
5315,
2124,
3948,
294,
9506,
202,
2463,
1954,
5694,
12,
261,
5694,
13,
460,
16,
22568,
16,
819,
11272,
1082,
202,
3593,
3601,
2261,
18,
13730,
67,
8720,
67,
4051,
294,
9506,
202,
2463,
1954,
30008,
620,
12,
261,
30008,
620,
13,
460,
16,
25083,
202,
12264,
13936,
16,
25083,
202,
2472,
11272,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
294,
9506,
202,
2463,
1954,
2957,
1852,
12,
261,
2957,
1852,
13,
460,
16,
25083,
202,
12264,
13936,
16,
25083,
202,
2472,
11272,
1082,
202,
3593,
3601,
2261,
18,
4883,
67,
8941,
294,
9506,
202,
2463,
1954,
751,
2148,
12,
261,
751,
2148,
13,
460,
16,
25083,
202,
12264,
13936,
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,
1250,
1954,
12,
509,
14622,
734,
16,
1033,
460,
16,
1082,
202,
26836,
3893,
22568,
16,
1635,
819,
262,
202,
95,
202,
202,
9610,
261,
14622,
734,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
12249,
67,
4051,
294,
9506,
202,
2463,
1954,
1803,
620,
12,
261,
1803,
620,
13,
460,
16,
25083,
202,
12264,
13936,
16,
25083,
202,
2472,
11272,
1082,
202,
3593,
3601,
2261,
18,
30978,
23,
67,
40,
294,
9506,
202,
2463,
1954,
8467,
23,
40,
12,
261,
8467,
23,
40,
13,
460,
16,
22568,
16,
819,
11272,
1082,
202,
3593,
3601,
2261,
18,
25614,
67,
24685,
294,
9506,
202,
2463,
1954,
6558,
7571,
12,
261,
6558,
7571,
13,
460,
16,
2
] |
if (false && (r.CONTEXT_SENSITIVE || r.THREAD_SENSITIVE)) {
|
if ((r.CONTEXT_SENSITIVE || r.THREAD_SENSITIVE)) {
|
public Set getCallTargets(ProgramLocation invoke) { //Assert._assert(invoke.getOperator() instanceof Operator.Invoke); LoadedCallGraph.mapCall(invoke); if(invoke.isSingleTarget()) { Set result = new LinearSet(); result.add(invoke.getTargetMethod()); //System.err.println("invoke: " + invoke); return result; }else if(!r.Imap.contains(invoke)){ System.err.println("No call information about " + invoke.toString()); return new LinearSet(); } BDD t1 = r.actual.restrict(r.Z.ithVar(0)); // IxV2 t1.replaceWith(r.bdd.makePair(r.V2, r.V1)); // IxV1 BDD t2 = r.mI.exist(r.Mset); // IxN BDD t3 = t1.and(t2); // IxV1 & IxN = IxV1xN t1.free(); t2.free(); BDD t4 = t3.relprod(r.vP, r.V1set); // IxV1xN x V1cxV1xH1cxH1 = IxH1cxH1xN BDD t5 = t4.relprod(r.hT, r.H1set); // IxH1cxH1xN x H1xT2 = IxT2xN t4.free(); BDD t6 = t5.relprod(r.cha, r.T2Nset); // IxT2xN x T2xNxM = IxM t5.free(); r.IE.orWith(t6.id()); BDD t7; if (false && (r.CONTEXT_SENSITIVE || r.THREAD_SENSITIVE)) { // Add the context for the new call graph edges. t6.andWith(r.IEfilter.id()); r.IEcs.orWith(t6.id()); t7 = t6.exist(r.V1cV2cset); t6.free(); }else { t7 = t6; } // t7 is the result we need in I X M int oldSize = r.Imap.size(); int I_idx = r.Imap.get(invoke); //Assert._assert(r.Imap.size() == oldSize, "old size: " + oldSize + ", new size: " + r.Imap.size()); BDD isite = r.I.ithVar(I_idx); //System.out.println("Site: " + toString((TypedBDD)isite, -1)); t7.restrictWith(isite); System.err.println(((TypedBDD)t7).getDomainSet().toString() + ": " + t7.satCount()); //System.out.println("Target methods of " + invoke + " = " + toString((TypedBDD)t6, -1)); //t6.toStringWithDomains()); return new PACallGraph.BDDSet(t7, r.M, r.Mmap); }
|
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/72a8ed34cdc4c3ec551534e4e9f7dad9e5f9db41/PAResults.java/buggy/joeq_core/joeq/Compiler/Analysis/IPA/PAResults.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
336,
1477,
9432,
12,
9459,
2735,
4356,
13,
288,
3639,
368,
8213,
6315,
11231,
12,
14407,
18,
588,
5592,
1435,
1276,
11097,
18,
10969,
1769,
3639,
3176,
2435,
1477,
4137,
18,
1458,
1477,
12,
14407,
1769,
3639,
309,
12,
14407,
18,
291,
5281,
2326,
10756,
288,
5411,
1000,
563,
273,
394,
13921,
694,
5621,
5411,
563,
18,
1289,
12,
14407,
18,
588,
2326,
1305,
10663,
5411,
368,
3163,
18,
370,
18,
8222,
2932,
14407,
30,
315,
397,
4356,
1769,
13491,
327,
563,
31,
3639,
289,
12107,
540,
309,
12,
5,
86,
18,
20827,
18,
12298,
12,
14407,
3719,
95,
5411,
2332,
18,
370,
18,
8222,
2932,
2279,
745,
1779,
2973,
315,
397,
4356,
18,
10492,
10663,
5411,
327,
394,
13921,
694,
5621,
3639,
289,
7734,
605,
5698,
268,
21,
273,
436,
18,
18672,
18,
30604,
12,
86,
18,
62,
18,
483,
1537,
12,
20,
10019,
225,
368,
467,
92,
58,
22,
3639,
268,
21,
18,
2079,
1190,
12,
86,
18,
70,
449,
18,
6540,
4154,
12,
86,
18,
58,
22,
16,
436,
18,
58,
21,
10019,
368,
467,
92,
58,
21,
3639,
605,
5698,
268,
22,
273,
436,
18,
81,
45,
18,
7398,
12,
86,
18,
49,
542,
1769,
7734,
368,
467,
92,
50,
3639,
605,
5698,
268,
23,
273,
268,
21,
18,
464,
12,
88,
22,
1769,
13491,
368,
467,
92,
58,
21,
473,
467,
92,
50,
273,
467,
92,
58,
21,
92,
50,
3639,
268,
21,
18,
9156,
5621,
268,
22,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
336,
1477,
9432,
12,
9459,
2735,
4356,
13,
288,
3639,
368,
8213,
6315,
11231,
12,
14407,
18,
588,
5592,
1435,
1276,
11097,
18,
10969,
1769,
3639,
3176,
2435,
1477,
4137,
18,
1458,
1477,
12,
14407,
1769,
3639,
309,
12,
14407,
18,
291,
5281,
2326,
10756,
288,
5411,
1000,
563,
273,
394,
13921,
694,
5621,
5411,
563,
18,
1289,
12,
14407,
18,
588,
2326,
1305,
10663,
5411,
368,
3163,
18,
370,
18,
8222,
2932,
14407,
30,
315,
397,
4356,
1769,
13491,
327,
563,
31,
3639,
289,
12107,
540,
309,
12,
5,
86,
18,
20827,
18,
12298,
12,
14407,
3719,
95,
5411,
2332,
18,
370,
18,
8222,
2932,
2279,
745,
1779,
2973,
315,
397,
4356,
18,
10492,
10663,
2
] |
return regexpError; }
|
return regexpError; }
|
public RubyClass getRegexpError() { return regexpError; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/buggy/org/jruby/runtime/RubyExceptions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
797,
336,
14621,
668,
1435,
288,
202,
202,
2463,
7195,
668,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
797,
336,
14621,
668,
1435,
288,
202,
202,
2463,
7195,
668,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fail( result.getMessage() );
|
throw ( result );
|
public void testGbHandling() throws Exception { String basePath = this.getTestFileBasePath(); String gbFile = basePath + System.getProperty( "file.separator" ) + "/gemma-core/src/test/resources/data/loader/genome/ncbiGenes.test.txt"; assert ( new File( gbFile ) ).canRead(); Exception result = p.doWork( new String[] { "-v", "3", "-u", databaseUser, "-p", databasePassword, "-H", databaseHost, "-o", tempFile.getAbsolutePath(), "-g", gbFile, "-d", "hg18" } ); if ( result != null ) { fail( result.getMessage() ); } }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/ac7d732530e4e72c766c5b1f104f930b66eb4701/ProbeMapperCliTest.java/clean/gemma-core/src/test/java/ubic/gemma/apps/ProbeMapperCliTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
43,
70,
14701,
1435,
1216,
1185,
288,
3639,
514,
9104,
273,
333,
18,
588,
4709,
812,
15912,
5621,
3639,
514,
21649,
812,
273,
9104,
397,
2332,
18,
588,
1396,
12,
315,
768,
18,
11287,
6,
262,
7734,
397,
2206,
23465,
2540,
17,
3644,
19,
4816,
19,
3813,
19,
4683,
19,
892,
19,
6714,
19,
23220,
19,
82,
7358,
77,
7642,
281,
18,
3813,
18,
5830,
14432,
3639,
1815,
261,
394,
1387,
12,
21649,
812,
262,
262,
18,
4169,
1994,
5621,
3639,
1185,
563,
273,
293,
18,
2896,
2421,
12,
394,
514,
8526,
288,
3701,
90,
3113,
315,
23,
3113,
3701,
89,
3113,
2063,
1299,
16,
3701,
84,
3113,
2063,
3913,
16,
3701,
44,
3113,
7734,
2063,
2594,
16,
3701,
83,
3113,
18286,
18,
588,
10368,
743,
9334,
3701,
75,
3113,
21649,
812,
16,
3701,
72,
3113,
315,
26981,
2643,
6,
289,
11272,
3639,
309,
261,
563,
480,
446,
262,
288,
5411,
604,
261,
563,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
43,
70,
14701,
1435,
1216,
1185,
288,
3639,
514,
9104,
273,
333,
18,
588,
4709,
812,
15912,
5621,
3639,
514,
21649,
812,
273,
9104,
397,
2332,
18,
588,
1396,
12,
315,
768,
18,
11287,
6,
262,
7734,
397,
2206,
23465,
2540,
17,
3644,
19,
4816,
19,
3813,
19,
4683,
19,
892,
19,
6714,
19,
23220,
19,
82,
7358,
77,
7642,
281,
18,
3813,
18,
5830,
14432,
3639,
1815,
261,
394,
1387,
12,
21649,
812,
262,
262,
18,
4169,
1994,
5621,
3639,
1185,
563,
273,
293,
18,
2896,
2421,
12,
394,
514,
8526,
288,
3701,
90,
3113,
315,
23,
3113,
3701,
89,
3113,
2063,
1299,
16,
3701,
84,
3113,
2063,
3913,
16,
3701,
44,
3113,
7734,
2
] |
protected List getFiles() { List files = new ArrayList(); if (dir != null) { fileset.setDir(dir); files.addAll(getFiles(fileset)); } Iterator iter = filesets.iterator(); while (iter.hasNext()) { files.addAll(getFiles((FileSet) iter.next())); } return files; }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/EnhMatchingTask.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/EnhMatchingTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
682,
588,
2697,
1435,
95,
202,
202,
682,
2354,
33,
2704,
19558,
5621,
202,
202,
430,
12,
1214,
5,
33,
2011,
15329,
1082,
202,
2354,
278,
18,
542,
1621,
12,
1214,
1769,
1082,
202,
2354,
18,
1289,
1595,
12,
588,
2697,
12,
2354,
278,
10019,
202,
202,
97,
202,
202,
3198,
2165,
33,
2354,
2413,
18,
9838,
5621,
202,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
1082,
202,
2354,
18,
1289,
1595,
12,
588,
2697,
12443,
812,
694,
13,
2165,
18,
4285,
1435,
10019,
202,
202,
97,
202,
202,
2463,
2354,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
682,
588,
2697,
1435,
95,
202,
202,
682,
2354,
33,
2704,
19558,
5621,
202,
202,
430,
12,
1214,
5,
33,
2011,
15329,
1082,
202,
2354,
278,
18,
542,
1621,
12,
1214,
1769,
1082,
202,
2354,
18,
1289,
1595,
12,
588,
2697,
12,
2354,
278,
10019,
202,
202,
97,
202,
202,
3198,
2165,
33,
2354,
2413,
18,
9838,
5621,
202,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
1082,
202,
2354,
18,
1289,
1595,
12,
588,
2697,
12443,
812,
694,
13,
2165,
18,
4285,
1435,
10019,
202,
202,
97,
202,
202,
2463,
2354,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
popupMenuId, newPopupMenuId }));
|
popupMenuId, newPopupMenuId }), null);
|
public void setPopupMenuId(String newPopupMenuId) { if (newPopupMenuId != null) { if (popupMenuId != null) NavigatorPlugin .log(NLS .bind( CommonNavigatorMessages.NavigatorViewerDescriptor_Popup_Menu_Overridden, new Object[] { getViewerId(), popupMenuId, newPopupMenuId })); popupMenuId = newPopupMenuId; } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c93d807ed962723d90daba76fc2003e2c1801cbc/NavigatorViewerDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/NavigatorViewerDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
13770,
4599,
548,
12,
780,
394,
13770,
4599,
548,
13,
288,
202,
202,
430,
261,
2704,
13770,
4599,
548,
480,
446,
13,
288,
1082,
202,
430,
261,
16086,
4599,
548,
480,
446,
13,
9506,
202,
22817,
3773,
25083,
202,
18,
1330,
12,
5106,
6862,
9506,
202,
18,
4376,
12,
6862,
25083,
202,
6517,
22817,
5058,
18,
22817,
18415,
3187,
67,
13770,
67,
4599,
67,
22042,
2794,
16,
6862,
25083,
202,
2704,
1033,
8526,
288,
8893,
264,
548,
9334,
6862,
6862,
9506,
202,
16086,
4599,
548,
16,
394,
13770,
4599,
548,
289,
10019,
1082,
202,
16086,
4599,
548,
273,
394,
13770,
4599,
548,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
444,
13770,
4599,
548,
12,
780,
394,
13770,
4599,
548,
13,
288,
202,
202,
430,
261,
2704,
13770,
4599,
548,
480,
446,
13,
288,
1082,
202,
430,
261,
16086,
4599,
548,
480,
446,
13,
9506,
202,
22817,
3773,
25083,
202,
18,
1330,
12,
5106,
6862,
9506,
202,
18,
4376,
12,
6862,
25083,
202,
6517,
22817,
5058,
18,
22817,
18415,
3187,
67,
13770,
67,
4599,
67,
22042,
2794,
16,
6862,
25083,
202,
2704,
1033,
8526,
288,
8893,
264,
548,
9334,
6862,
6862,
9506,
202,
16086,
4599,
548,
16,
394,
13770,
4599,
548,
289,
10019,
1082,
202,
16086,
4599,
548,
273,
394,
13770,
4599,
548,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
if( typeCode.kind().value() != TCKind._tk_boolean ) tc_error("Cannot extract boolean!"); return ((Boolean)value).booleanValue();
|
checkExtract (TCKind._tk_boolean, "Cannot extract boolean"); return ((Boolean)value).booleanValue ();
|
public boolean extract_boolean() { if( typeCode.kind().value() != TCKind._tk_boolean ) tc_error("Cannot extract boolean!"); return ((Boolean)value).booleanValue(); }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b1dcf075fcf079201e3adb82863b59f6eecadb6e/Any.java/clean/src/org/jacorb/orb/Any.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2608,
67,
6494,
1435,
377,
288,
3639,
309,
12,
618,
1085,
18,
9224,
7675,
1132,
1435,
480,
399,
3507,
728,
6315,
16099,
67,
6494,
262,
5411,
1715,
67,
1636,
2932,
4515,
2608,
1250,
4442,
1769,
3639,
327,
14015,
5507,
13,
1132,
2934,
6494,
620,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2608,
67,
6494,
1435,
377,
288,
3639,
309,
12,
618,
1085,
18,
9224,
7675,
1132,
1435,
480,
399,
3507,
728,
6315,
16099,
67,
6494,
262,
5411,
1715,
67,
1636,
2932,
4515,
2608,
1250,
4442,
1769,
3639,
327,
14015,
5507,
13,
1132,
2934,
6494,
620,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int pZone = p.getZone();
|
public float getCalculatedCoverage(float ullat, float ullon, float lrlat, float lrlon, CADRG p, String chartSeries) { if (chartSeries.equalsIgnoreCase(RpfViewAttributes.ANY)) { return 0f; } Vector results = getCatalogCoverage(ullat, ullon, lrlat, lrlon, p, chartSeries); int size = results.size(); if (size == 0) { return 0f; } // Now interpret the results and figure out the real total // percentage coverage for the chartSeries. First need to // figure out the current size of the subframes. Then create // a boolean matrix of those subframes that let you figure out // how many of them are available. Calculate the percentage // off that. int pZone = p.getZone(); int i, x, y; double frameLatInterval = Double.MAX_VALUE; double frameLonInterval = Double.MAX_VALUE; RpfCoverageBox rcb; for (i = 0; i < size; i++) { rcb = (RpfCoverageBox) results.elementAt(i); if (rcb.subframeLatInterval < frameLatInterval) { frameLatInterval = rcb.subframeLatInterval; } if (rcb.subframeLonInterval < frameLonInterval) { frameLonInterval = rcb.subframeLonInterval; } } if (frameLatInterval == Double.MAX_VALUE || frameLonInterval == Double.MAX_VALUE) { return 0.0f; } int numHFrames = (int) Math.ceil((lrlon - ullon) / frameLonInterval); int numVFrames = (int) Math.ceil((ullat - lrlat) / frameLatInterval); boolean[][] coverage = new boolean[numHFrames][numVFrames]; for (i = 0; i < size; i++) { rcb = (RpfCoverageBox) results.elementAt(i); if (rcb.percentCoverage == 100) { return 1.0f; } for (y = 0; y < numVFrames; y++) { for (x = 0; x < numHFrames; x++) { // degree location of indexs float yFrameLoc = (float) (lrlat + (y * frameLatInterval)); float xFrameLoc = (float) (ullon + (x * frameLonInterval)); if (coverage[x][y] == false) { if (rcb.within(yFrameLoc, xFrameLoc)) { coverage[x][y] = true; } } } } } float count = 0; for (y = 0; y < numVFrames; y++) { for (x = 0; x < numHFrames; x++) { if (coverage[x][y] == true) { // System.out.print("X"); count++; } else { // System.out.print("."); } } // System.out.println(""); } return count / (float) (numHFrames * numVFrames); }
|
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/5be2809e80f4e82eea332963d111c7258f1dd7bc/RpfFrameCacheHandler.java/clean/src/openmap/com/bbn/openmap/layer/rpf/RpfFrameCacheHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
22433,
1934,
690,
9739,
12,
5659,
225,
420,
270,
16,
1431,
225,
420,
265,
16,
1431,
328,
1321,
270,
16,
4766,
4202,
1431,
328,
1321,
265,
16,
385,
1880,
19380,
293,
16,
514,
4980,
6485,
13,
288,
3639,
309,
261,
11563,
6485,
18,
14963,
5556,
12,
54,
14241,
1767,
2498,
18,
15409,
3719,
288,
5411,
327,
374,
74,
31,
3639,
289,
3639,
5589,
1686,
273,
1927,
4392,
9739,
12,
420,
270,
16,
7734,
225,
420,
265,
16,
7734,
328,
1321,
270,
16,
7734,
328,
1321,
265,
16,
7734,
293,
16,
7734,
4980,
6485,
1769,
3639,
509,
963,
273,
1686,
18,
1467,
5621,
3639,
309,
261,
1467,
422,
374,
13,
288,
5411,
327,
374,
74,
31,
3639,
289,
3639,
368,
4494,
10634,
326,
1686,
471,
7837,
596,
326,
2863,
2078,
3639,
368,
11622,
11196,
364,
326,
4980,
6485,
18,
5783,
1608,
358,
3639,
368,
7837,
596,
326,
783,
963,
434,
326,
720,
10278,
18,
9697,
752,
3639,
368,
279,
1250,
3148,
434,
5348,
720,
10278,
716,
2231,
1846,
7837,
596,
3639,
368,
3661,
4906,
434,
2182,
854,
2319,
18,
9029,
326,
11622,
3639,
368,
3397,
716,
18,
9079,
509,
277,
16,
619,
16,
677,
31,
3639,
1645,
2623,
6607,
4006,
273,
3698,
18,
6694,
67,
4051,
31,
3639,
1645,
2623,
15927,
4006,
273,
3698,
18,
6694,
67,
4051,
31,
3639,
534,
14241,
9739,
3514,
4519,
70,
31,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
5411,
4519,
70,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
22433,
1934,
690,
9739,
12,
5659,
225,
420,
270,
16,
1431,
225,
420,
265,
16,
1431,
328,
1321,
270,
16,
4766,
4202,
1431,
328,
1321,
265,
16,
385,
1880,
19380,
293,
16,
514,
4980,
6485,
13,
288,
3639,
309,
261,
11563,
6485,
18,
14963,
5556,
12,
54,
14241,
1767,
2498,
18,
15409,
3719,
288,
5411,
327,
374,
74,
31,
3639,
289,
3639,
5589,
1686,
273,
1927,
4392,
9739,
12,
420,
270,
16,
7734,
225,
420,
265,
16,
7734,
328,
1321,
270,
16,
7734,
328,
1321,
265,
16,
7734,
293,
16,
7734,
4980,
6485,
1769,
3639,
509,
963,
273,
1686,
18,
1467,
5621,
3639,
309,
261,
1467,
422,
374,
13,
288,
5411,
327,
374,
74,
31,
3639,
2
] |
|
} else pht.addMethod(mi);
|
} else {pht.addMethod(mi); }
|
public NodeVisitor addMembersEnter(AddMemberVisitor am) { Type ht = host.type(); if (ht instanceof ParsedClassType) { AspectJTypeSystem ts = (AspectJTypeSystem) am.typeSystem(); MethodInstance mi = ts.interTypeMethodInstance(position(), (ClassType) methodInstance().container(), (ReferenceType)ht, methodInstance().flags(), methodInstance().returnType(), methodInstance().name(), methodInstance().formalTypes(), methodInstance().throwTypes()); // to implement overriding of IT methods by subaspects, check the following: // does ht already have the method mi? // - if so, was it introduced by an ITD? // - is the origin of the other instance a super class of the current one? // then replace old by current // - is the origin of the other instance a subclass of the current one? // then don't insert current // - otherwise the origins are incomparable in the inheritance hierarchy // insert current (and watch the error message later) // - if not, insert current ParsedClassType pht = (ParsedClassType) ht; if (pht.hasMethod(mi)) { List mis = pht.methods(mi.name(),mi.formalTypes()); boolean added = false; for (Iterator misIt = mis.iterator(); misIt.hasNext(); ) { MethodInstance minst = (MethodInstance) misIt.next(); if (minst instanceof InterTypeMethodInstance_c) { InterTypeMethodInstance_c itdminst = (InterTypeMethodInstance_c) minst; if (itdminst.origin().descendsFrom(methodInstance().container())) { // skip, we have a more specific instance already } else if (methodInstance().container().descendsFrom(itdminst.origin())) { // the super ITD is replaced by the current one pht.methods().remove(minst); if (!added) {pht.methods().add(mi); added=true;} } else if (!added) {pht.methods().add(mi); added=true; } } } } else pht.addMethod(mi); // System.out.println("METHODS OF "+ht+"ARE "+ ((ParsedClassType) ht).methods()); itMethodInstance = (InterTypeMethodInstance_c) mi; /* record instance for "this" parameter */ String name = UniqueID.newID("this"); thisParamInstance = ts.localInstance(position,Flags.NONE,host.type(),name); } return am.bypassChildren(this); }
|
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/c0d0504815c8c52117d644d229c40b1ecfe8682a/IntertypeMethodDecl_c.java/buggy/aop/abc/src/abc/aspectj/ast/IntertypeMethodDecl_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
7413,
527,
6918,
10237,
12,
986,
4419,
7413,
2125,
13,
288,
202,
202,
559,
14049,
273,
1479,
18,
723,
5621,
202,
202,
430,
261,
647,
1276,
19244,
18328,
13,
288,
1082,
202,
17468,
46,
559,
3163,
3742,
273,
261,
17468,
46,
559,
3163,
13,
2125,
18,
723,
3163,
5621,
25083,
202,
1305,
1442,
12837,
273,
3742,
18,
2761,
559,
1305,
1442,
12,
3276,
9334,
1082,
4766,
202,
7734,
202,
12,
18328,
13,
707,
1442,
7675,
3782,
9334,
1082,
4766,
7734,
202,
202,
12,
2404,
559,
13,
647,
16,
1082,
4766,
9079,
202,
202,
2039,
1442,
7675,
7133,
9334,
1082,
4766,
7734,
202,
202,
2039,
1442,
7675,
2463,
559,
9334,
1082,
4766,
7734,
202,
202,
2039,
1442,
7675,
529,
9334,
1082,
4766,
7734,
202,
202,
2039,
1442,
7675,
687,
287,
2016,
9334,
1082,
4766,
7734,
202,
202,
2039,
1442,
7675,
12849,
2016,
10663,
1082,
4766,
7734,
6862,
565,
368,
358,
2348,
19488,
434,
24142,
2590,
635,
720,
23579,
87,
16,
866,
326,
3751,
30,
1082,
565,
368,
1552,
14049,
1818,
1240,
326,
707,
12837,
35,
1082,
565,
368,
282,
300,
309,
1427,
16,
1703,
518,
26339,
635,
392,
467,
23409,
35,
1082,
565,
368,
3639,
300,
353,
326,
4026,
434,
326,
1308,
791,
279,
2240,
667,
434,
326,
783,
1245,
35,
1082,
565,
368,
6647,
1508,
1453,
1592,
635,
783,
1082,
565,
368,
3639,
300,
353,
326,
4026,
434,
326,
1308,
791,
279,
10177,
434,
326,
783,
1245,
35,
1082,
565,
368,
6647,
1508,
2727,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
7413,
527,
6918,
10237,
12,
986,
4419,
7413,
2125,
13,
288,
202,
202,
559,
14049,
273,
1479,
18,
723,
5621,
202,
202,
430,
261,
647,
1276,
19244,
18328,
13,
288,
1082,
202,
17468,
46,
559,
3163,
3742,
273,
261,
17468,
46,
559,
3163,
13,
2125,
18,
723,
3163,
5621,
25083,
202,
1305,
1442,
12837,
273,
3742,
18,
2761,
559,
1305,
1442,
12,
3276,
9334,
1082,
4766,
202,
7734,
202,
12,
18328,
13,
707,
1442,
7675,
3782,
9334,
1082,
4766,
7734,
202,
202,
12,
2404,
559,
13,
647,
16,
1082,
4766,
9079,
202,
202,
2039,
1442,
7675,
7133,
9334,
1082,
4766,
7734,
202,
202,
2039,
1442,
7675,
2463,
559,
9334,
1082,
4766,
7734,
202,
202,
2039,
1442,
2
] |
if (course != null){
|
if (course != null) {
|
public void update() { if (course != null){ setCourse(course); } }
|
12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/c842b364d6a94077b64fae7a7404c364e26003c6/TeacherModel.java/buggy/dupratcated/src/fr/umlv/symphonie/model/TeacherModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
1435,
288,
3639,
309,
261,
5566,
480,
446,
13,
288,
1377,
11440,
3117,
12,
5566,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
1435,
288,
3639,
309,
261,
5566,
480,
446,
13,
288,
1377,
11440,
3117,
12,
5566,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch (Exception e) { MylarStatusHandler.fail(e, "Mylar: Unable to parse report #" + getId() + "'s creation date.", false);
|
} catch (ParseException e) {
|
public Date getCreated() { if (created == null) { String dateString = getAttributeValue(BugzillaReportElement.CREATION_TS); try { created = df.parse(dateString); } catch (Exception e) { MylarStatusHandler.fail(e, "Mylar: Unable to parse report #" + getId() + "'s creation date.", false); } } return created; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/77a8bc5b7d13d1a0a06b8006b85cd9c140b61857/BugzillaReport.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/provisional/bugzilla/core/BugzillaReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2167,
21744,
1435,
288,
202,
202,
430,
261,
4824,
422,
446,
13,
288,
1082,
202,
780,
24757,
273,
22777,
12,
19865,
15990,
4820,
1046,
18,
5458,
2689,
67,
8047,
1769,
1082,
202,
698,
288,
9506,
202,
4824,
273,
3013,
18,
2670,
12,
712,
780,
1769,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
12062,
7901,
1482,
1503,
18,
6870,
12,
73,
16,
315,
12062,
7901,
30,
18640,
358,
1109,
2605,
31526,
397,
2634,
1435,
397,
2491,
87,
6710,
1509,
1199,
16,
629,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
2522,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2167,
21744,
1435,
288,
202,
202,
430,
261,
4824,
422,
446,
13,
288,
1082,
202,
780,
24757,
273,
22777,
12,
19865,
15990,
4820,
1046,
18,
5458,
2689,
67,
8047,
1769,
1082,
202,
698,
288,
9506,
202,
4824,
273,
3013,
18,
2670,
12,
712,
780,
1769,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
12062,
7901,
1482,
1503,
18,
6870,
12,
73,
16,
315,
12062,
7901,
30,
18640,
358,
1109,
2605,
31526,
397,
2634,
1435,
397,
2491,
87,
6710,
1509,
1199,
16,
629,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
2522,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!getShowDerived() && resource.getResource().isDerived())
|
if (!getShowDerived() && resource.getResource().isDerived())
|
protected void searchResults(Set filteredHistory, SearcherProgressMonitor monitor) throws CoreException { model.reset(); for (Iterator iter = lastResult.iterator(); iter.hasNext();) { ResourceSearchItem resource = (ResourceSearchItem) iter.next(); if (!getShowDerived() && resource.getResource().isDerived()) continue; if (filteredHistory.contains(resource.getResource())) continue; if (match(resource.getResource().getName())) model.addElement(resource); } model.refresh(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f9c466e731a3fcd6b27ded21559cc21bf6d87935/ResourceSearcher.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSearcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1623,
3447,
12,
694,
5105,
5623,
16,
5167,
264,
5491,
7187,
6438,
13,
1216,
30015,
288,
1082,
202,
2284,
18,
6208,
5621,
1082,
202,
1884,
261,
3198,
1400,
273,
1142,
1253,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
1420,
2979,
1180,
1058,
273,
261,
1420,
2979,
1180,
13,
1400,
18,
4285,
5621,
9506,
202,
430,
16051,
588,
5706,
21007,
1435,
597,
1058,
18,
588,
1420,
7675,
291,
21007,
10756,
4405,
202,
17143,
31,
9506,
202,
430,
261,
12071,
5623,
18,
12298,
12,
3146,
18,
588,
1420,
1435,
3719,
6862,
202,
17143,
31,
9506,
202,
430,
261,
1916,
12,
3146,
18,
588,
1420,
7675,
17994,
1435,
3719,
6862,
202,
2284,
18,
1289,
1046,
12,
3146,
1769,
1082,
202,
97,
1082,
202,
2284,
18,
9144,
5621,
6862,
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,
3196,
202,
1117,
918,
1623,
3447,
12,
694,
5105,
5623,
16,
5167,
264,
5491,
7187,
6438,
13,
1216,
30015,
288,
1082,
202,
2284,
18,
6208,
5621,
1082,
202,
1884,
261,
3198,
1400,
273,
1142,
1253,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
1420,
2979,
1180,
1058,
273,
261,
1420,
2979,
1180,
13,
1400,
18,
4285,
5621,
9506,
202,
430,
16051,
588,
5706,
21007,
1435,
597,
1058,
18,
588,
1420,
7675,
291,
21007,
10756,
4405,
202,
17143,
31,
9506,
202,
430,
261,
12071,
5623,
18,
12298,
12,
3146,
18,
588,
1420,
1435,
3719,
6862,
202,
17143,
31,
9506,
202,
430,
261,
1916,
12,
3146,
18,
588,
1420,
7675,
17994,
1435,
3719,
6862,
202,
2284,
18,
2
] |
contents.reset();
|
writerReset();
|
public void endElement( String namespaceURI, String localName, String qName ) throws SAXException { super.endElement(namespaceURI, localName, qName); if (endElementAction == SKIP) { return; } if (localName.equals("Name")) { String value = getContents(); acp.Name = value; } if (localName.equals("Type")) { String value = getContents(); if(value.equalsIgnoreCase("AGENT")){ acp.Type = AccessControlPolicy.AGENT; }else if(value.equalsIgnoreCase("COMMUNITY")){ acp.Type = AccessControlPolicy.COMMUNITY; }else if(value.equalsIgnoreCase("SOCIETY")){ acp.Type = AccessControlPolicy.SOCIETY; }else{ if (log.isErrorEnabled()) { log.error("Access Control Policy Handler: unexpected Type value."); } } } if (localName.equals("Direction")) { String value = getContents(); if(value.equalsIgnoreCase("BOTH")){ acp.Direction = AccessControlPolicy.BOTH; }else if(value.equalsIgnoreCase("INCOMING")){ acp.Direction = AccessControlPolicy.INCOMING; }else if(value.equalsIgnoreCase("OUTGOING")){ acp.Direction = AccessControlPolicy.OUTGOING; }else{ if (log.isErrorEnabled()) { log.error("Access Control Policy Handler: unexpected Direction value."); } } } if (localName.equals("CriticalityLevel")) { critLevel = getContents(); } if (localName.equals("MsgAction")) { msgAction = getContents(); } if (localName.equals("MessageAction")) { acp.setMsgAction(critLevel, msgAction); } if (localName.equals("ActionParty")) { actionParty = getContents(); } if (localName.equals("Action")) { agtAction = getContents(); } if (localName.equals("AgentAction")) { acp.setAgentAction(actionParty, agtAction); } if (localName.equals("FilterParty")) { filterParty = getContents(); } if (localName.equals("Verb")) { String value = getContents(); verbs.add(value); } if (localName.equals("VerbFilter")) { acp.setVerbs(filterParty, verbs); } if (localName.equals("MsgParty")) { msgParty = getContents(); } if (localName.equals("Integrity")) { integrity = getContents(); } if (localName.equals("MessageIntegrity")) { acp.setIntegrity(msgParty, integrity); } if (localName.equals("CritParty")) { critParty = getContents(); } if (localName.equals("Criticality")) { criticality = getContents(); } if (localName.equals("MessageCriticality")) { acp.setCriticality(critParty, criticality); } //for community if (localName.equals("ActionCommunity")) { actionCom = getContents(); } if (localName.equals("ComAction")) { agtActionCom = getContents(); } if (localName.equals("ComAgentAction")) { acp.setComAgentAction(actionCom, agtActionCom); } if (localName.equals("FilterCommunity")) { filterCom = getContents(); } if (localName.equals("ComVerb")) { String value = getContents(); verbsCom.add(value); } if (localName.equals("ComVerbFilter")) { acp.setComVerbs(filterCom, verbsCom); } if (localName.equals("MsgCommunity")) { msgCom = getContents(); } if (localName.equals("ComIntegrity")) { integrityCom = getContents(); } if (localName.equals("ComMessageIntegrity")) { acp.setComIntegrity(msgCom, integrityCom); } if (localName.equals("CritCommunity")) { critCom = getContents(); } if (localName.equals("ComCriticality")) { criticalityCom = getContents(); } if (localName.equals("ComMessageCriticality")) { acp.setComCriticality(critCom, criticalityCom); } // Reset contents contents.reset(); }
|
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/5ec044821f10fa8ecaeb28b9b8a1f70fe84157ab/MsgAccessPolicyHandler.java/buggy/securityservices/src/org/cougaar/core/security/config/MsgAccessPolicyHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
14840,
12,
514,
19421,
16,
9506,
225,
514,
11927,
16,
9506,
225,
514,
22914,
262,
565,
1216,
14366,
288,
565,
2240,
18,
409,
1046,
12,
4937,
3098,
16,
11927,
16,
22914,
1769,
565,
309,
261,
409,
1046,
1803,
422,
18420,
13,
288,
1377,
327,
31,
565,
289,
565,
309,
261,
3729,
461,
18,
14963,
2932,
461,
6,
3719,
288,
1377,
514,
460,
273,
15015,
5621,
1377,
1721,
84,
18,
461,
273,
460,
31,
565,
289,
3639,
309,
261,
3729,
461,
18,
14963,
2932,
559,
6,
3719,
288,
1377,
514,
460,
273,
15015,
5621,
1377,
309,
12,
1132,
18,
14963,
5556,
2932,
15005,
6,
3719,
95,
3639,
1721,
84,
18,
559,
273,
24349,
2582,
18,
15005,
31,
1377,
289,
12107,
309,
12,
1132,
18,
14963,
5556,
2932,
4208,
49,
2124,
4107,
6,
3719,
95,
3639,
1721,
84,
18,
559,
273,
24349,
2582,
18,
4208,
49,
2124,
4107,
31,
1377,
289,
12107,
309,
12,
1132,
18,
14963,
5556,
2932,
3584,
7266,
1584,
61,
6,
3719,
95,
3639,
1721,
84,
18,
559,
273,
24349,
2582,
18,
3584,
7266,
1584,
61,
31,
1377,
289,
12107,
95,
3639,
309,
261,
1330,
18,
291,
668,
1526,
10756,
288,
1850,
613,
18,
1636,
2932,
1862,
8888,
7436,
4663,
30,
9733,
1412,
460,
1199,
1769,
3639,
289,
1377,
289,
565,
289,
3639,
309,
261,
3729,
461,
18,
14963,
2932,
8212,
6,
3719,
288,
1377,
514,
460,
273,
15015,
5621,
1377,
309,
12,
1132,
18,
14963,
5556,
2932,
38,
18307,
6,
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,
282,
1071,
918,
14840,
12,
514,
19421,
16,
9506,
225,
514,
11927,
16,
9506,
225,
514,
22914,
262,
565,
1216,
14366,
288,
565,
2240,
18,
409,
1046,
12,
4937,
3098,
16,
11927,
16,
22914,
1769,
565,
309,
261,
409,
1046,
1803,
422,
18420,
13,
288,
1377,
327,
31,
565,
289,
565,
309,
261,
3729,
461,
18,
14963,
2932,
461,
6,
3719,
288,
1377,
514,
460,
273,
15015,
5621,
1377,
1721,
84,
18,
461,
273,
460,
31,
565,
289,
3639,
309,
261,
3729,
461,
18,
14963,
2932,
559,
6,
3719,
288,
1377,
514,
460,
273,
15015,
5621,
1377,
309,
12,
1132,
18,
14963,
5556,
2932,
15005,
6,
3719,
95,
3639,
1721,
84,
18,
559,
273,
24349,
2582,
18,
15005,
31,
2
] |
private static void walkOnStack(byte[] stack, int fpOffset) {
|
private static void walkOnStack(byte[] stack, Offset fpOffset) {
|
private static void walkOnStack(byte[] stack, int fpOffset) { VM.disableGC(); Address fp = VM_Magic.objectAsAddress(stack).add(fpOffset); while (VM_Magic.getCallerFramePointer(fp).NE(STACKFRAME_SENTINEL_FP) ){ int cmid = VM_Magic.getCompiledMethodID(fp); if (cmid == INVISIBLE_METHOD_ID) { VM.sysWriteln(" invisible method "); } else { VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid); fpOffset = fp.diff(VM_Magic.objectAsAddress(stack)).toInt(); VM.enableGC(); VM.sysWriteln(cm.getMethod().toString()); VM.disableGC(); fp = VM_Magic.objectAsAddress(stack).add(fpOffset); if (cm.getMethod().getDeclaringClass().isBridgeFromNative()) { fp = VM_Runtime.unwindNativeStackFrame(fp); } } fp = VM_Magic.getCallerFramePointer(fp); } VM.enableGC(); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/OSR_OptExecStateExtractor.java/clean/rvm/src/vm/arch/intel/executionState/OSR_OptExecStateExtractor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
5442,
1398,
2624,
12,
7229,
8526,
2110,
16,
9874,
4253,
2335,
13,
288,
565,
8251,
18,
8394,
15396,
5621,
3639,
5267,
4253,
273,
8251,
67,
19289,
18,
1612,
1463,
1887,
12,
3772,
2934,
1289,
12,
7944,
2335,
1769,
5411,
1323,
261,
7397,
67,
19289,
18,
588,
11095,
3219,
4926,
12,
7944,
2934,
5407,
12,
21971,
15072,
67,
17418,
706,
2247,
67,
30246,
13,
262,
95,
1377,
509,
5003,
350,
273,
8251,
67,
19289,
18,
588,
20733,
1305,
734,
12,
7944,
1769,
5411,
309,
261,
7670,
350,
422,
2120,
29588,
67,
5327,
67,
734,
13,
288,
3639,
8251,
18,
9499,
4913,
292,
82,
2932,
24697,
707,
315,
1769,
1377,
289,
469,
288,
3639,
8251,
67,
20733,
1305,
5003,
273,
8251,
67,
20733,
4712,
18,
588,
20733,
1305,
12,
7670,
350,
1769,
3639,
4253,
2335,
273,
4253,
18,
5413,
12,
7397,
67,
19289,
18,
1612,
1463,
1887,
12,
3772,
13,
2934,
869,
1702,
5621,
3639,
8251,
18,
7589,
15396,
5621,
7734,
8251,
18,
9499,
4913,
292,
82,
12,
7670,
18,
588,
1305,
7675,
10492,
10663,
13491,
8251,
18,
8394,
15396,
5621,
3639,
4253,
273,
8251,
67,
19289,
18,
1612,
1463,
1887,
12,
3772,
2934,
1289,
12,
7944,
2335,
1769,
3639,
309,
261,
7670,
18,
588,
1305,
7675,
588,
3456,
14682,
7675,
291,
13691,
1265,
9220,
10756,
288,
1850,
4253,
273,
8251,
67,
5576,
18,
318,
10094,
9220,
2624,
3219,
12,
7944,
1769,
3639,
289,
1377,
289,
5411,
4253,
273,
8251,
67,
19289,
18,
588,
11095,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
5442,
1398,
2624,
12,
7229,
8526,
2110,
16,
9874,
4253,
2335,
13,
288,
565,
8251,
18,
8394,
15396,
5621,
3639,
5267,
4253,
273,
8251,
67,
19289,
18,
1612,
1463,
1887,
12,
3772,
2934,
1289,
12,
7944,
2335,
1769,
5411,
1323,
261,
7397,
67,
19289,
18,
588,
11095,
3219,
4926,
12,
7944,
2934,
5407,
12,
21971,
15072,
67,
17418,
706,
2247,
67,
30246,
13,
262,
95,
1377,
509,
5003,
350,
273,
8251,
67,
19289,
18,
588,
20733,
1305,
734,
12,
7944,
1769,
5411,
309,
261,
7670,
350,
422,
2120,
29588,
67,
5327,
67,
734,
13,
288,
3639,
8251,
18,
9499,
4913,
292,
82,
2932,
24697,
707,
315,
1769,
1377,
289,
469,
288,
3639,
8251,
67,
20733,
2
] |
public org.quickfix.field.LegIssuer getLegIssuer() throws FieldNotFound { org.quickfix.field.LegIssuer value = new org.quickfix.field.LegIssuer();
|
public quickfix.field.LegIssuer getLegIssuer() throws FieldNotFound { quickfix.field.LegIssuer value = new quickfix.field.LegIssuer();
|
public org.quickfix.field.LegIssuer getLegIssuer() throws FieldNotFound { org.quickfix.field.LegIssuer value = new org.quickfix.field.LegIssuer(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
336,
8329,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
336,
8329,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
16667,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((res != null) && (res.getType() == IResource.FOLDER)) { List l = allFiles((IFolder) res);
|
if ((res != null) && (res instanceof IContainer)) { List l = allFiles((IContainer) res);
|
public List getProjectSourceFiles() { // TODO Use build configs when available in core plugin // include all source files for now IProject project = AspectJPlugin.getDefault().getCurrentProject(); List sourceFiles = new ArrayList(); try { IJavaProject jp = JavaCore.create(project); IClasspathEntry[] cpes = jp.getRawClasspath(); for (int i = 0; i < cpes.length; i++) { if (cpes[i].getEntryKind() == IClasspathEntry.CPE_SOURCE) { IPath path = cpes[i].getPath(); IResource res = project.findMember(path .removeFirstSegments(1)); if ((res != null) && (res.getType() == IResource.FOLDER)) { List l = allFiles((IFolder) res); sourceFiles.addAll(l); } } } } catch (JavaModelException e) { } return sourceFiles; }
|
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/360348ff0dc5149f3b81af1cc522b1a6a8146b15/CoreProjectProperties.java/buggy/org.eclipse.ajdt.core/src/org/eclipse/ajdt/core/builder/CoreProjectProperties.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
11080,
1830,
2697,
1435,
288,
202,
202,
759,
2660,
2672,
1361,
6784,
1347,
2319,
316,
2922,
1909,
202,
202,
759,
2341,
777,
1084,
1390,
364,
2037,
202,
202,
45,
4109,
1984,
273,
2970,
1181,
46,
3773,
18,
588,
1868,
7675,
588,
3935,
4109,
5621,
202,
202,
682,
1084,
2697,
273,
394,
2407,
5621,
202,
202,
698,
288,
1082,
202,
45,
5852,
4109,
18182,
273,
5110,
4670,
18,
2640,
12,
4406,
1769,
1082,
202,
45,
17461,
1622,
8526,
3283,
281,
273,
18182,
18,
588,
4809,
17461,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3283,
281,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
261,
4057,
281,
63,
77,
8009,
588,
1622,
5677,
1435,
422,
467,
17461,
1622,
18,
39,
1423,
67,
6537,
13,
288,
6862,
202,
45,
743,
589,
273,
3283,
281,
63,
77,
8009,
588,
743,
5621,
6862,
202,
45,
1420,
400,
273,
1984,
18,
4720,
4419,
12,
803,
6862,
1082,
202,
18,
4479,
3759,
7946,
12,
21,
10019,
6862,
202,
430,
14015,
455,
480,
446,
13,
597,
261,
455,
18,
588,
559,
1435,
422,
467,
1420,
18,
17357,
3719,
288,
25083,
202,
682,
328,
273,
777,
2697,
12443,
45,
3899,
13,
400,
1769,
25083,
202,
3168,
2697,
18,
1289,
1595,
12,
80,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
1044,
261,
5852,
1488,
503,
425,
13,
288,
202,
202,
97,
202,
202,
2463,
1084,
2697,
31,
202,
97,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
11080,
1830,
2697,
1435,
288,
202,
202,
759,
2660,
2672,
1361,
6784,
1347,
2319,
316,
2922,
1909,
202,
202,
759,
2341,
777,
1084,
1390,
364,
2037,
202,
202,
45,
4109,
1984,
273,
2970,
1181,
46,
3773,
18,
588,
1868,
7675,
588,
3935,
4109,
5621,
202,
202,
682,
1084,
2697,
273,
394,
2407,
5621,
202,
202,
698,
288,
1082,
202,
45,
5852,
4109,
18182,
273,
5110,
4670,
18,
2640,
12,
4406,
1769,
1082,
202,
45,
17461,
1622,
8526,
3283,
281,
273,
18182,
18,
588,
4809,
17461,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3283,
281,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
261,
4057,
281,
63,
77,
8009,
588,
2
] |
return mls;
|
public Object convert(Class type, Object value) { String text = (String) value; MultiLanguageString mls = new MultiLanguageString(); Collection<LanguageBean> allLanguageBean = LanguageBean.importAllFromString(text); for (LanguageBean bean : allLanguageBean) { if (bean.value != null && bean.value.trim().length() != 0) { mls.setContent(bean.language, bean.value); } } return mls; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/261a1107721726af8170d4c7125dbb8aaf0e3b77/MultiLanguageStringInputRenderer.java/buggy/src/net/sourceforge/fenixedu/presentationTier/renderers/MultiLanguageStringInputRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
1765,
12,
797,
618,
16,
1033,
460,
13,
288,
7734,
514,
977,
273,
261,
780,
13,
460,
31,
7734,
5991,
3779,
780,
312,
3251,
273,
394,
5991,
3779,
780,
5621,
27573,
2200,
32,
3779,
3381,
34,
777,
3779,
3381,
273,
9889,
3381,
18,
5666,
1595,
9193,
12,
955,
1769,
7734,
364,
261,
3779,
3381,
3931,
294,
777,
3779,
3381,
13,
288,
10792,
309,
261,
14496,
18,
1132,
480,
446,
597,
3931,
18,
1132,
18,
5290,
7675,
2469,
1435,
480,
374,
13,
288,
13491,
312,
3251,
18,
542,
1350,
12,
14496,
18,
4923,
16,
3931,
18,
1132,
1769,
10792,
289,
7734,
289,
4766,
1850,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
1765,
12,
797,
618,
16,
1033,
460,
13,
288,
7734,
514,
977,
273,
261,
780,
13,
460,
31,
7734,
5991,
3779,
780,
312,
3251,
273,
394,
5991,
3779,
780,
5621,
27573,
2200,
32,
3779,
3381,
34,
777,
3779,
3381,
273,
9889,
3381,
18,
5666,
1595,
9193,
12,
955,
1769,
7734,
364,
261,
3779,
3381,
3931,
294,
777,
3779,
3381,
13,
288,
10792,
309,
261,
14496,
18,
1132,
480,
446,
597,
3931,
18,
1132,
18,
5290,
7675,
2469,
1435,
480,
374,
13,
288,
13491,
312,
3251,
18,
542,
1350,
12,
14496,
18,
4923,
16,
3931,
18,
1132,
1769,
10792,
289,
7734,
289,
4766,
1850,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
try { notifyListeners(DND.DragStart, event); } catch (Throwable e) { event.doit = false; }
|
notifyListeners(DND.DragStart, event);
|
private void drag(Event dragEvent) { DNDEvent event = new DNDEvent(); event.widget = this; event.time = dragEvent.time; event.doit = true; try { notifyListeners(DND.DragStart, event); } catch (Throwable e) { event.doit = false; } if (!event.doit || transferAgents == null || transferAgents.length == 0) return; if (targetList == 0) return; int actions = opToOsOp(getStyle()); OS.gtk_drag_begin(control.handle, targetList, actions, 1, 0);}
|
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/5996fae2add2abb7fda722f2bd79d37104b4f0f2/DragSource.java/clean/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
8823,
12,
1133,
8823,
1133,
13,
288,
202,
40,
2908,
1133,
871,
273,
394,
463,
2908,
1133,
5621,
202,
2575,
18,
6587,
273,
333,
31,
202,
202,
2575,
18,
957,
273,
8823,
1133,
18,
957,
31,
202,
2575,
18,
2896,
305,
273,
638,
31,
202,
698,
288,
202,
202,
12336,
5583,
12,
40,
2908,
18,
11728,
1685,
16,
871,
1769,
202,
97,
1044,
261,
15155,
425,
13,
288,
202,
202,
2575,
18,
2896,
305,
273,
629,
31,
202,
97,
202,
430,
16051,
2575,
18,
2896,
305,
747,
7412,
23400,
422,
446,
747,
7412,
23400,
18,
2469,
422,
374,
13,
327,
31,
202,
430,
261,
3299,
682,
422,
374,
13,
327,
31,
202,
202,
474,
4209,
273,
1061,
774,
15112,
3817,
12,
588,
2885,
10663,
202,
4618,
18,
4521,
79,
67,
15997,
67,
10086,
12,
7098,
18,
4110,
16,
1018,
682,
16,
4209,
16,
404,
16,
374,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
8823,
12,
1133,
8823,
1133,
13,
288,
202,
40,
2908,
1133,
871,
273,
394,
463,
2908,
1133,
5621,
202,
2575,
18,
6587,
273,
333,
31,
202,
202,
2575,
18,
957,
273,
8823,
1133,
18,
957,
31,
202,
2575,
18,
2896,
305,
273,
638,
31,
202,
698,
288,
202,
202,
12336,
5583,
12,
40,
2908,
18,
11728,
1685,
16,
871,
1769,
202,
97,
1044,
261,
15155,
425,
13,
288,
202,
202,
2575,
18,
2896,
305,
273,
629,
31,
202,
97,
202,
430,
16051,
2575,
18,
2896,
305,
747,
7412,
23400,
422,
446,
747,
7412,
23400,
18,
2469,
422,
374,
13,
327,
31,
202,
430,
261,
3299,
682,
422,
374,
13,
327,
31,
202,
202,
474,
4209,
273,
1061,
2
] |
protected GenericParameterPragma() {}
|
protected GenericParameterPragma() {}
|
protected GenericParameterPragma() {} //@ nowarn Invariant,NonNullInit
|
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/GenericParameterPragma.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/ast/GenericParameterPragma.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
4750,
7928,
1662,
2050,
9454,
1435,
2618,
565,
23834,
2037,
1303,
657,
8688,
16,
8921,
2570,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
4750,
7928,
1662,
2050,
9454,
1435,
2618,
565,
23834,
2037,
1303,
657,
8688,
16,
8921,
2570,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void translateFrom(Series series, Chart chart)
|
public void translateFrom(Series series, int iSeriesDefinitionIndex, Chart chart)
|
public void translateFrom(Series series, Chart chart) { System.out.println("StockSeriesImpl: DEBUG: translating from " + series.getClass().getName() + " to line series."); this.getLineAttributes().setVisible(true); this.getLineAttributes().setColor(ColorDefinitionImpl.BLACK()); this.setStacked(false); // Copy generic series properties this.setLabel(series.getLabel()); if (series.getLabelPosition().equals(Position.INSIDE_LITERAL) || series.getLabelPosition().equals(Position.OUTSIDE_LITERAL)) { this.setLabelPosition(series.getLabelPosition()); } else { this.setLabelPosition(Position.OUTSIDE_LITERAL); } this.setVisible(series.isVisible()); if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers())) { this.getTriggers().addAll(series.getTriggers()); } if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint())) { this.setDataPoint(series.getDataPoint()); } if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition())) { this.getDataDefinition().addAll(series.getDataDefinition()); } // Copy series specific properties if (series instanceof BarSeries) { this.getLineAttributes().setColor(((BarSeries) series).getRiserOutline()); } else if (series instanceof LineSeries) { this.setLineAttributes(((LineSeries) series).getLineAttributes()); } // Update the chart dimensions to 2D chart.setDimension(ChartDimension.TWO_DIMENSIONAL_LITERAL); // Update the base axis to type text if it isn't already if (chart instanceof ChartWithAxes) { ((Axis) ((ChartWithAxes) chart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) chart).getAxes().get(0)).setCategoryAxis(true); EList axes = ((Axis) ((ChartWithAxes) chart).getAxes().get(0)).getAssociatedAxes(); for (int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setType(AxisType.LINEAR_LITERAL); ((Axis) axes.get(i)).setPercent(false); } } else { throw new IllegalArgumentException( chart.getClass().getName() + " is an invalid argument for StockSeriesImpl. The chart model must be an instance of org.eclipse.birt.chart.model.ChartWithAxes."); } // Update the sampledata in the model chart.setSampleData(getConvertedSampleData(chart.getSampleData())); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5add15c261ae8932e5746f4658e6e0191b6e7644/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,
4204,
1265,
12,
6485,
4166,
16,
509,
277,
6485,
1852,
1016,
16,
14804,
4980,
13,
565,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
17821,
6485,
2828,
30,
6369,
30,
2162,
1776,
628,
315,
397,
4166,
18,
588,
797,
7675,
17994,
1435,
5411,
397,
315,
358,
980,
4166,
1199,
1769,
3639,
333,
18,
588,
1670,
2498,
7675,
542,
6207,
12,
3767,
1769,
3639,
333,
18,
588,
1670,
2498,
7675,
542,
2957,
12,
2957,
1852,
2828,
18,
14618,
3649,
10663,
3639,
333,
18,
542,
2624,
329,
12,
5743,
1769,
3639,
368,
5631,
5210,
4166,
1790,
3639,
333,
18,
542,
2224,
12,
10222,
18,
588,
2224,
10663,
3639,
309,
261,
10222,
18,
588,
2224,
2555,
7675,
14963,
12,
2555,
18,
706,
26498,
67,
23225,
13,
5411,
747,
4166,
18,
588,
2224,
2555,
7675,
14963,
12,
2555,
18,
5069,
26498,
67,
23225,
3719,
3639,
288,
5411,
333,
18,
542,
2224,
2555,
12,
10222,
18,
588,
2224,
2555,
10663,
3639,
289,
3639,
469,
3639,
288,
5411,
333,
18,
542,
2224,
2555,
12,
2555,
18,
5069,
26498,
67,
23225,
1769,
3639,
289,
3639,
333,
18,
542,
6207,
12,
10222,
18,
291,
6207,
10663,
3639,
309,
261,
10222,
18,
73,
15737,
12,
1841,
2261,
18,
73,
13341,
18,
588,
6485,
67,
15114,
1435,
3719,
3639,
288,
5411,
333,
18,
588,
15114,
7675,
1289,
1595,
12,
10222,
18,
588,
15114,
10663,
3639,
289,
3639,
309,
261,
10222,
18,
73,
15737,
12,
1841,
2261,
18,
73,
13341,
18,
588,
6485,
67,
751,
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,
4204,
1265,
12,
6485,
4166,
16,
509,
277,
6485,
1852,
1016,
16,
14804,
4980,
13,
565,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
17821,
6485,
2828,
30,
6369,
30,
2162,
1776,
628,
315,
397,
4166,
18,
588,
797,
7675,
17994,
1435,
5411,
397,
315,
358,
980,
4166,
1199,
1769,
3639,
333,
18,
588,
1670,
2498,
7675,
542,
6207,
12,
3767,
1769,
3639,
333,
18,
588,
1670,
2498,
7675,
542,
2957,
12,
2957,
1852,
2828,
18,
14618,
3649,
10663,
3639,
333,
18,
542,
2624,
329,
12,
5743,
1769,
3639,
368,
5631,
5210,
4166,
1790,
3639,
333,
18,
542,
2224,
12,
10222,
18,
588,
2224,
10663,
3639,
309,
261,
10222,
18,
588,
2224,
2555,
7675,
14963,
12,
2
] |
match(_t,LABELFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t580; _t = _t.getNextSibling(); break; } case LABELDCOLOR: { AST __t581 = _t;
|
match(_t,LABELDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t581; _t = _t.getNextSibling(); break; } case LABELBGCOLOR: { AST __t582 = _t;
|
public final void columnformat(AST _t) throws RecognitionException { AST columnformat_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t572 = _t; AST tmp2051_AST_in = (AST)_t; match(_t,Format_phrase); _t = _t.getFirstChild(); { int _cnt589=0; _loop589: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORMAT: { AST __t574 = _t; AST tmp2052_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t574; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case NOLABELS: { AST tmp2053_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case COLUMNFONT: { AST __t575 = _t; AST tmp2054_AST_in = (AST)_t; match(_t,COLUMNFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t575; _t = _t.getNextSibling(); break; } case COLUMNDCOLOR: { AST __t576 = _t; AST tmp2055_AST_in = (AST)_t; match(_t,COLUMNDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t576; _t = _t.getNextSibling(); break; } case COLUMNBGCOLOR: { AST __t577 = _t; AST tmp2056_AST_in = (AST)_t; match(_t,COLUMNBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t577; _t = _t.getNextSibling(); break; } case COLUMNFGCOLOR: { AST __t578 = _t; AST tmp2057_AST_in = (AST)_t; match(_t,COLUMNFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t578; _t = _t.getNextSibling(); break; } case COLUMNPFCOLOR: { AST __t579 = _t; AST tmp2058_AST_in = (AST)_t; match(_t,COLUMNPFCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t579; _t = _t.getNextSibling(); break; } case LABELFONT: { AST __t580 = _t; AST tmp2059_AST_in = (AST)_t; match(_t,LABELFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t580; _t = _t.getNextSibling(); break; } case LABELDCOLOR: { AST __t581 = _t; AST tmp2060_AST_in = (AST)_t; match(_t,LABELDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t581; _t = _t.getNextSibling(); break; } case LABELBGCOLOR: { AST __t582 = _t; AST tmp2061_AST_in = (AST)_t; match(_t,LABELBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t582; _t = _t.getNextSibling(); break; } case LABELFGCOLOR: { AST __t583 = _t; AST tmp2062_AST_in = (AST)_t; match(_t,LABELFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t583; _t = _t.getNextSibling(); break; } case LEXAT: { AST __t584 = _t; AST tmp2063_AST_in = (AST)_t; match(_t,LEXAT); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { columnformat(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t584; _t = _t.getNextSibling(); break; } case WIDTH: { AST __t586 = _t; AST tmp2064_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getFirstChild(); AST tmp2065_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t586; _t = _t.getNextSibling(); break; } case WIDTHPIXELS: { AST __t587 = _t; AST tmp2066_AST_in = (AST)_t; match(_t,WIDTHPIXELS); _t = _t.getFirstChild(); AST tmp2067_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t587; _t = _t.getNextSibling(); break; } case WIDTHCHARS: { AST __t588 = _t; AST tmp2068_AST_in = (AST)_t; match(_t,WIDTHCHARS); _t = _t.getFirstChild(); AST tmp2069_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t588; _t = _t.getNextSibling(); break; } default: { if ( _cnt589>=1 ) { break _loop589; } else {throw new NoViableAltException(_t);} } } _cnt589++; } while (true); } _t = __t572; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1057,
2139,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1057,
2139,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
25,
9060,
273,
389,
88,
31,
202,
202,
9053,
1853,
3462,
10593,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1630,
67,
9429,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
25,
6675,
33,
20,
31,
202,
202,
67,
6498,
25,
6675,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
10449,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
25,
5608,
273,
389,
88,
31,
9506,
202,
9053,
1853,
3462,
9401,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
7254,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
8692,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
9506,
202,
67,
88,
273,
1001,
88,
25,
5608,
31,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
13473,
13545,
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,
1057,
2139,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1057,
2139,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
25,
9060,
273,
389,
88,
31,
202,
202,
9053,
1853,
3462,
10593,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1630,
67,
9429,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
25,
6675,
33,
20,
31,
202,
202,
67,
6498,
25,
6675,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
2
] |
extend.setBase(base); extend.setExtension(extension);
|
extend.setBase(base); extend.setExtension(extension);
|
public MExtend buildExtend(MUseCase base, MUseCase extension) { MExtend extend = UmlFactory.getFactory().getUseCases().createExtend(); // Set the ends extend.setBase(base); extend.setExtension(extension); // Set the namespace to that of the base as first choice, or that of // the extension as second choice. if (base.getNamespace() != null) { extend.setNamespace(base.getNamespace()); } else if (extension.getNamespace() != null) { extend.setNamespace(extension.getNamespace()); } // build an extensionpoint in the base MExtensionPoint point = buildExtensionPoint(base); extend.addExtensionPoint(point); return extend; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UseCasesFactory.java/buggy/src_new/org/argouml/model/uml/behavioralelements/usecases/UseCasesFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
490,
16675,
1361,
16675,
12,
49,
3727,
2449,
1026,
16,
490,
3727,
2449,
2710,
13,
288,
540,
490,
16675,
2133,
273,
587,
781,
1733,
18,
588,
1733,
7675,
588,
3727,
30744,
7675,
2640,
16675,
5621,
540,
368,
1000,
326,
3930,
540,
2133,
18,
542,
2171,
12,
1969,
1769,
540,
2133,
18,
542,
3625,
12,
6447,
1769,
540,
368,
1000,
326,
1981,
358,
716,
434,
326,
1026,
487,
1122,
6023,
16,
578,
716,
434,
540,
368,
326,
2710,
487,
2205,
6023,
18,
540,
309,
261,
1969,
18,
588,
3402,
1435,
480,
446,
13,
288,
2398,
2133,
18,
542,
3402,
12,
1969,
18,
588,
3402,
10663,
540,
289,
540,
469,
309,
261,
6447,
18,
588,
3402,
1435,
480,
446,
13,
288,
2398,
2133,
18,
542,
3402,
12,
6447,
18,
588,
3402,
10663,
540,
289,
5375,
368,
1361,
392,
2710,
1153,
316,
326,
1026,
540,
490,
3625,
2148,
1634,
273,
1361,
3625,
2148,
12,
1969,
1769,
540,
2133,
18,
1289,
3625,
2148,
12,
1153,
1769,
540,
327,
2133,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
490,
16675,
1361,
16675,
12,
49,
3727,
2449,
1026,
16,
490,
3727,
2449,
2710,
13,
288,
540,
490,
16675,
2133,
273,
587,
781,
1733,
18,
588,
1733,
7675,
588,
3727,
30744,
7675,
2640,
16675,
5621,
540,
368,
1000,
326,
3930,
540,
2133,
18,
542,
2171,
12,
1969,
1769,
540,
2133,
18,
542,
3625,
12,
6447,
1769,
540,
368,
1000,
326,
1981,
358,
716,
434,
326,
1026,
487,
1122,
6023,
16,
578,
716,
434,
540,
368,
326,
2710,
487,
2205,
6023,
18,
540,
309,
261,
1969,
18,
588,
3402,
1435,
480,
446,
13,
288,
2398,
2133,
18,
542,
3402,
12,
1969,
18,
588,
3402,
10663,
540,
289,
540,
469,
309,
261,
6447,
18,
588,
3402,
1435,
480,
446,
2
] |
if (deleteAction != null) deleteAction.removePropertyChangeListener(deleteActionListener);
|
if (deleteAction != null) { deleteAction.removePropertyChangeListener(deleteActionListener); }
|
public void setDeleteAction(IAction action) { if (deleteAction == action) return; if (deleteAction != null) deleteAction.removePropertyChangeListener(deleteActionListener); deleteAction = action; if (deleteAction != null) deleteAction.addPropertyChangeListener(deleteActionListener); textDeleteAction.updateEnabledState(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TextActionHandler.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/TextActionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2613,
1803,
12,
45,
1803,
1301,
13,
288,
3639,
309,
261,
3733,
1803,
422,
1301,
13,
5411,
327,
31,
3639,
309,
261,
3733,
1803,
480,
446,
13,
5411,
1430,
1803,
18,
4479,
1396,
15744,
12,
3733,
1803,
2223,
1769,
3639,
1430,
1803,
273,
1301,
31,
3639,
309,
261,
3733,
1803,
480,
446,
13,
5411,
1430,
1803,
18,
1289,
1396,
15744,
12,
3733,
1803,
2223,
1769,
3639,
977,
2613,
1803,
18,
2725,
1526,
1119,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2613,
1803,
12,
45,
1803,
1301,
13,
288,
3639,
309,
261,
3733,
1803,
422,
1301,
13,
5411,
327,
31,
3639,
309,
261,
3733,
1803,
480,
446,
13,
5411,
1430,
1803,
18,
4479,
1396,
15744,
12,
3733,
1803,
2223,
1769,
3639,
1430,
1803,
273,
1301,
31,
3639,
309,
261,
3733,
1803,
480,
446,
13,
5411,
1430,
1803,
18,
1289,
1396,
15744,
12,
3733,
1803,
2223,
1769,
3639,
977,
2613,
1803,
18,
2725,
1526,
1119,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getImplicitReferences(jarLocationString).put(uri, record);
|
getImplicitReferences(jarLocationString).put(record.uri, record);
|
void updateJAR(IResource jar, int deltaKind) { if (_debugIndexCreation) System.out.println("creating records for JAR " + jar.getFullPath()); //$NON-NLS-1$ String jarLocationString = jar.getLocation().toString(); String[] entries = JarUtilities.getEntryNames(jar); JarRecord jarRecord = (JarRecord) createJARRecord(jar); fJARReferences.put(jar.getFullPath().toString(), jarRecord); for (int i = 0; i < entries.length; i++) { if (entries[i].endsWith(".tld")) { //$NON-NLS-1$ InputStream contents = JarUtilities.getInputStream(jar, entries[i]); if (contents != null) { String uri = extractURI(jarLocationString, contents); if (uri != null && uri.length() > 0) { URLRecord record = new URLRecord(); record.uri = uri; record.baseLocation = jarLocationString; try { record.url = new URL("jar:file:" + jarLocationString + "!/" + entries[i]); //$NON-NLS-1$ //$NON-NLS-2$ jarRecord.urlRecords.add(record); getImplicitReferences(jarLocationString).put(uri, record); if (_debugIndexCreation) System.out.println("created record for " + uri + "@" + record.getURL()); //$NON-NLS-1$ //$NON-NLS-2$ } catch (MalformedURLException e) { // don't record this URI Logger.logException(e); } } try { contents.close(); } catch (IOException e) { } } } } TaglibIndex.fireTaglibRecordEvent(new TaglibRecordEvent(jarRecord, deltaKind)); }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/1957cea42a843f713cab11ed067a640c3f89d7f5/ProjectDescription.java/clean/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/contentmodel/ProjectDescription.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
46,
985,
12,
45,
1420,
7334,
16,
509,
3622,
5677,
13,
288,
202,
202,
430,
261,
67,
4148,
1016,
9906,
13,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
23799,
3853,
364,
24728,
315,
397,
7334,
18,
588,
24173,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
7334,
2735,
780,
273,
7334,
18,
588,
2735,
7675,
10492,
5621,
202,
202,
780,
8526,
3222,
273,
15644,
11864,
18,
588,
1622,
1557,
12,
11930,
1769,
202,
202,
10813,
2115,
7334,
2115,
273,
261,
10813,
2115,
13,
752,
46,
985,
2115,
12,
11930,
1769,
202,
202,
74,
46,
985,
8221,
18,
458,
12,
11930,
18,
588,
24173,
7675,
10492,
9334,
7334,
2115,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3222,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
8219,
63,
77,
8009,
5839,
1190,
2932,
18,
88,
1236,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
4348,
2939,
273,
15644,
11864,
18,
588,
4348,
12,
11930,
16,
3222,
63,
77,
19226,
9506,
202,
430,
261,
3980,
480,
446,
13,
288,
6862,
202,
780,
2003,
273,
2608,
3098,
12,
11930,
2735,
780,
16,
2939,
1769,
6862,
202,
430,
261,
1650,
480,
446,
597,
2003,
18,
2469,
1435,
405,
374,
13,
288,
25083,
202,
1785,
2115,
1409,
273,
394,
1976,
2115,
5621,
25083,
202,
3366,
18,
1650,
273,
2003,
31,
25083,
202,
3366,
18,
1969,
2735,
273,
7334,
2735,
780,
31,
25083,
202,
698,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
46,
985,
12,
45,
1420,
7334,
16,
509,
3622,
5677,
13,
288,
202,
202,
430,
261,
67,
4148,
1016,
9906,
13,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
23799,
3853,
364,
24728,
315,
397,
7334,
18,
588,
24173,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
7334,
2735,
780,
273,
7334,
18,
588,
2735,
7675,
10492,
5621,
202,
202,
780,
8526,
3222,
273,
15644,
11864,
18,
588,
1622,
1557,
12,
11930,
1769,
202,
202,
10813,
2115,
7334,
2115,
273,
261,
10813,
2115,
13,
752,
46,
985,
2115,
12,
11930,
1769,
202,
202,
74,
46,
985,
8221,
18,
458,
12,
11930,
18,
588,
24173,
7675,
10492,
9334,
7334,
2115,
1769,
202,
202,
2
] |
if (!isXml && sourceEnc.equals("UTF-8")) {
|
if (!isXml && sourceEnc.equals("UTF-8")) {
|
private void determineSyntaxAndEncoding(String absFileName, JarFile jarFile, String jspConfigPageEnc) throws JasperException, IOException { isXml = false; /* * 'true' if the syntax (XML or standard) of the file is given * from external information: either via a JSP configuration element, * the ".jspx" suffix, or the enclosing file (for included resources) */ boolean isExternal = false; /* * Indicates whether we need to revert from temporary usage of * "ISO-8859-1" back to "UTF-8" */ boolean revert = false; JspConfig jspConfig = ctxt.getOptions().getJspConfig(); JspConfig.JspProperty jspProperty = jspConfig.findJspProperty( absFileName); if (jspProperty.isXml() != null) { // If <is-xml> is specified in a <jsp-property-group>, it is used. isXml = JspUtil.booleanValue(jspProperty.isXml()); isExternal = true; } else if (absFileName.endsWith(".jspx") || absFileName.endsWith(".tagx")) { isXml = true; isExternal = true; } if (isExternal && !isXml) { // JSP (standard) syntax. Use encoding specified in jsp-config // if provided. sourceEnc = jspConfigPageEnc; if (sourceEnc != null) { return; } // We don't know the encoding sourceEnc = "ISO-8859-1"; } else { // XML syntax or unknown, (auto)detect encoding ... Object[] ret = XMLEncodingDetector.getEncoding(absFileName, jarFile, ctxt, err); sourceEnc = (String) ret[0]; if (((Boolean) ret[1]).booleanValue()) { isEncodingSpecifiedInProlog = true; } if (!isXml && sourceEnc.equals("UTF-8")) { /* * We don't know if we're dealing with XML or standard syntax. * Therefore, we need to check to see if the page contains * a <jsp:root> element. * * We need to be careful, because the page may be encoded in * ISO-8859-1 (or something entirely different), and may * contain byte sequences that will cause a UTF-8 converter to * throw exceptions. * * It is safe to use a source encoding of ISO-8859-1 in this * case, as there are no invalid byte sequences in ISO-8859-1, * and the byte/character sequences we're looking for (i.e., * <jsp:root>) are identical in either encoding (both UTF-8 * and ISO-8859-1 are extensions of ASCII). */ sourceEnc = "ISO-8859-1"; revert = true; } } if (isXml) { // (This implies 'isExternal' is TRUE.) // We know we're dealing with a JSP document (via JSP config or // ".jspx" suffix), so we're done. return; } /* * At this point, 'isExternal' or 'isXml' is FALSE. * Search for jsp:root action, in order to determine if we're dealing * with XML or standard syntax (unless we already know what we're * dealing with, i.e., when 'isExternal' is TRUE and 'isXml' is FALSE). * No check for XML prolog, since nothing prevents a page from * outputting XML and still using JSP syntax (in this case, the * XML prolog is treated as template text). */ JspReader jspReader = null; try { jspReader = new JspReader(ctxt, absFileName, sourceEnc, jarFile, err); } catch (FileNotFoundException ex) { throw new JasperException(ex); } jspReader.setSingleFile(true); Mark startMark = jspReader.mark(); if (!isExternal) { jspReader.reset(startMark); if (hasJspRoot(jspReader)) { isXml = true; if (revert) sourceEnc = "UTF-8"; return; } else { isXml = false; } } /* * At this point, we know we're dealing with JSP syntax. * If an XML prolog is provided, it's treated as template text. * Determine the page encoding from the page directive, unless it's * specified via JSP config. */ sourceEnc = jspConfigPageEnc; if (sourceEnc == null) { sourceEnc = getPageEncodingForJspSyntax(jspReader, startMark); if (sourceEnc == null) { // Default to "ISO-8859-1" per JSP spec sourceEnc = "ISO-8859-1"; isDefaultPageEncoding = true; } } }
|
48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/18b0ab1f9266aeac0286420823e4c5c8841a4abf/ParserController.java/buggy/java/org/apache/jasper/compiler/ParserController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4199,
8070,
1876,
4705,
12,
780,
2417,
4771,
16,
25083,
565,
15644,
812,
22588,
16,
25083,
565,
514,
22535,
809,
1964,
4280,
13,
202,
3639,
1216,
804,
345,
457,
503,
16,
1860,
288,
202,
291,
4432,
273,
629,
31,
202,
20308,
202,
380,
296,
3767,
11,
309,
326,
6279,
261,
4201,
578,
4529,
13,
434,
326,
585,
353,
864,
202,
380,
628,
3903,
1779,
30,
3344,
3970,
279,
804,
3118,
1664,
930,
16,
202,
380,
326,
3552,
24926,
92,
6,
3758,
16,
578,
326,
16307,
585,
261,
1884,
5849,
2703,
13,
202,
1195,
202,
6494,
353,
6841,
273,
629,
31,
202,
20308,
202,
380,
18336,
2856,
732,
1608,
358,
15226,
628,
6269,
4084,
434,
202,
380,
315,
12609,
17,
17258,
17,
21,
6,
1473,
358,
315,
5159,
17,
28,
6,
202,
1195,
202,
6494,
15226,
273,
629,
31,
3639,
19300,
809,
22535,
809,
273,
14286,
18,
588,
1320,
7675,
588,
21796,
809,
5621,
3639,
19300,
809,
18,
21796,
1396,
22535,
1396,
273,
22535,
809,
18,
4720,
21796,
1396,
12,
4766,
27573,
2417,
4771,
1769,
3639,
309,
261,
24926,
1396,
18,
291,
4432,
1435,
480,
446,
13,
288,
5411,
368,
971,
411,
291,
17,
2902,
34,
353,
1269,
316,
279,
411,
24926,
17,
4468,
17,
1655,
20401,
518,
353,
1399,
18,
5411,
353,
4432,
273,
19300,
1304,
18,
6494,
620,
12,
24926,
1396,
18,
291,
4432,
10663,
202,
565,
353,
6841,
273,
638,
31,
202,
97,
469,
309,
261,
5113,
4771,
18,
5839,
1190,
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,
377,
3238,
918,
4199,
8070,
1876,
4705,
12,
780,
2417,
4771,
16,
25083,
565,
15644,
812,
22588,
16,
25083,
565,
514,
22535,
809,
1964,
4280,
13,
202,
3639,
1216,
804,
345,
457,
503,
16,
1860,
288,
202,
291,
4432,
273,
629,
31,
202,
20308,
202,
380,
296,
3767,
11,
309,
326,
6279,
261,
4201,
578,
4529,
13,
434,
326,
585,
353,
864,
202,
380,
628,
3903,
1779,
30,
3344,
3970,
279,
804,
3118,
1664,
930,
16,
202,
380,
326,
3552,
24926,
92,
6,
3758,
16,
578,
326,
16307,
585,
261,
1884,
5849,
2703,
13,
202,
1195,
202,
6494,
353,
6841,
273,
629,
31,
202,
20308,
202,
380,
18336,
2856,
732,
1608,
358,
15226,
628,
6269,
4084,
434,
202,
380,
2
] |
public static final double[] bytesToValues(byte[] byteArray, int offset, int length, int bytesPerValue, boolean signedData) throws ArrayIndexOutOfBoundsException { if (0 < length && (offset + length) <= byteArray.length) { int doubleLength = length/bytesPerValue; double[] doubleArray = new double[doubleLength]; if (bytesPerValue == 2) { if (!signedData) { for (int i = offset, j = 0; j < doubleLength; j++) { int temp = (int) byteArray[i++]; temp = (temp << 8); temp |= (int) (0x000000FF & byteArray[i++]); doubleArray[j] = (double) temp; } } else { for (int i = offset, j = 0; j < doubleLength; j++) { short temp = (short) (byteArray[i++] << 8); temp |= (short) (0x00FF & byteArray[i++]); doubleArray[j] = (double) temp; } } } else if (bytesPerValue == 1) { for (int i = offset; i < doubleLength; i++) { doubleArray[i] = (double) byteArray[i]; } } else { throw new Error ("Unsupported bytes per sample: " + bytesPerValue); } return doubleArray; } else { throw new ArrayIndexOutOfBoundsException ("offset: " + offset + ", length: " + length + ", array length: " + byteArray.length); } }
|
8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/289b06354a717d9b5e9a4bb055ade03e8438f37f/DataUtil.java/buggy/edu/cmu/sphinx/frontend/util/DataUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6385,
9056,
8526,
3890,
774,
1972,
12,
7229,
8526,
7229,
1076,
16,
474,
3348,
16,
474,
2469,
16,
474,
3890,
2173,
620,
16,
1075,
29510,
724,
329,
751,
13,
15069,
1076,
30548,
95,
430,
12,
20,
32,
2469,
10,
10,
12,
3348,
15,
2469,
13,
32,
33,
7229,
1076,
18,
2469,
15329,
474,
9056,
1782,
33,
2469,
19,
3890,
2173,
620,
31,
9056,
8526,
9056,
1076,
33,
2704,
9056,
63,
9056,
1782,
15533,
430,
12,
3890,
2173,
620,
631,
22,
15329,
430,
12,
5,
5679,
751,
15329,
1884,
12,
474,
77,
33,
3348,
16,
78,
33,
20,
31,
78,
32,
9056,
1782,
31,
78,
27245,
95,
474,
5814,
28657,
474,
13,
7229,
1076,
63,
77,
9904,
15533,
5814,
28657,
5814,
17685,
28,
1769,
5814,
96,
28657,
474,
21433,
20,
92,
9449,
2246,
10,
7229,
1076,
63,
77,
9904,
19226,
9056,
1076,
63,
78,
65,
28657,
9056,
13,
5814,
31,
9090,
12107,
95,
1884,
12,
474,
77,
33,
3348,
16,
78,
33,
20,
31,
78,
32,
9056,
1782,
31,
78,
27245,
95,
6620,
5814,
28657,
6620,
21433,
7229,
1076,
63,
77,
9904,
65,
17685,
28,
1769,
5814,
96,
28657,
6620,
21433,
20,
92,
713,
2246,
10,
7229,
1076,
63,
77,
9904,
19226,
9056,
1076,
63,
78,
65,
28657,
9056,
13,
5814,
31,
9090,
97,
12107,
430,
12,
3890,
2173,
620,
631,
21,
15329,
1884,
12,
474,
77,
33,
3348,
31,
77,
32,
9056,
1782,
31,
77,
27245,
95,
9056,
1076,
63,
77,
65,
28657,
9056,
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,
1071,
3845,
6385,
9056,
8526,
3890,
774,
1972,
12,
7229,
8526,
7229,
1076,
16,
474,
3348,
16,
474,
2469,
16,
474,
3890,
2173,
620,
16,
1075,
29510,
724,
329,
751,
13,
15069,
1076,
30548,
95,
430,
12,
20,
32,
2469,
10,
10,
12,
3348,
15,
2469,
13,
32,
33,
7229,
1076,
18,
2469,
15329,
474,
9056,
1782,
33,
2469,
19,
3890,
2173,
620,
31,
9056,
8526,
9056,
1076,
33,
2704,
9056,
63,
9056,
1782,
15533,
430,
12,
3890,
2173,
620,
631,
22,
15329,
430,
12,
5,
5679,
751,
15329,
1884,
12,
474,
77,
33,
3348,
16,
78,
33,
20,
31,
78,
32,
9056,
1782,
31,
78,
27245,
95,
474,
5814,
28657,
474,
13,
7229,
1076,
63,
77,
9904,
15533,
2
] |
||
InetAddress addr;
|
FreenetInetAddress addr;
|
private Node(Config config, RandomSource random) throws NodeInitException { // Easy stuff arkPutter = new MyARKInserter(); startupTime = System.currentTimeMillis(); throttleWindow = new ThrottleWindowManager(2.0); alerts = new UserAlertManager(); recentlyCompletedIDs = new LRUQueue(); this.config = config; this.random = random; cachedPubKeys = new LRUHashtable(); lm = new LocationManager(random); try { localhostAddress = InetAddress.getByName("127.0.0.1"); } catch (UnknownHostException e3) { // Does not do a reverse lookup, so this is impossible throw new Error(e3); } ipDetector = new IPAddressDetector(10*1000, this); requestSenders = new HashMap(); transferringRequestSenders = new HashMap(); insertSenders = new HashMap(); runningUIDs = new HashSet(); ps = new PacketSender(this); // FIXME maybe these should persist? They need to be private though, so after the node/peers split. (bug 51). decrementAtMax = random.nextDouble() <= DECREMENT_AT_MAX_PROB; decrementAtMin = random.nextDouble() <= DECREMENT_AT_MIN_PROB; bootID = random.nextLong(); throttledPacketSendAverage = new TimeDecayingRunningAverage(1, 60000 /* should be significantly longer than a typical transfer */, 0, Long.MAX_VALUE); // Setup node-specific configuration SubConfig nodeConfig = new SubConfig("node", config); // IP address override nodeConfig.register("ipAddressOverride", "", 0, true, "IP address override", "IP address override (not usually needed)", new StringCallback() { public String get() { if(overrideIPAddress == null) return ""; else return Peer.getHostName(overrideIPAddress); } public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } InetAddress addr; try { addr = InetAddress.getByName(val); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); } }); String ipOverrideString = nodeConfig.getString("ipAddressOverride"); if(ipOverrideString.length() == 0) overrideIPAddress = null; else { try { overrideIPAddress = InetAddress.getByName(ipOverrideString); } catch (UnknownHostException e) { String msg = "Unknown host: "+ipOverrideString+" in config: "+e.getMessage(); Logger.error(this, msg); System.err.println(msg+" but starting up anyway with no IP override"); overrideIPAddress = null; } } // Determine the port number nodeConfig.register("listenPort", -1 /* means random */, 1, true, "FNP port number (UDP)", "UDP port for node-to-node communications (Freenet Node Protocol)", new IntCallback() { public int get() { return portNumber; } public void set(int val) throws InvalidConfigValueException { // FIXME implement on the fly listenPort changing // Note that this sort of thing should be the exception rather than the rule!!!! String msg = "Switching listenPort on the fly not yet supported!"; Logger.error(this, msg); throw new InvalidConfigValueException(msg); } }); int port=-1; try{ port=nodeConfig.getInt("listenPort"); }catch (Exception e){ Logger.error(this, "Caught "+e, e); System.err.println(e); e.printStackTrace(); port=-1; } UdpSocketManager u = null; if(port > 65535) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Impossible port number: "+port); } else if(port == -1) { // Pick a random port for(int i=0;i<200000;i++) { int portNo = 1024 + random.nextInt(65535-1024); try { u = new UdpSocketManager(portNo); port = u.getPortNumber(); break; } catch (SocketException e) { Logger.normal(this, "Could not use port: "+portNo+": "+e, e); System.err.println("Could not use port: "+portNo+": "+e); e.printStackTrace(); continue; } } if(u == null) throw new NodeInitException(EXIT_NO_AVAILABLE_UDP_PORTS, "Could not find an available UDP port number for FNP (none specified)"); } else { try { u = new UdpSocketManager(port); } catch (SocketException e) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Could not bind to port: "+port+" (node already running?)"); } } usm = u; System.out.println("Port number: "+port); portNumber = port; Logger.normal(Node.class, "Creating node..."); // Bandwidth limit // FIXME These should not be static !!!! Need a context object for BT for bwlimiting. // See bug 77 nodeConfig.register("outputBandwidthLimit", "15K", 3, false, "Output bandwidth limit", "Hard output bandwidth limit (bytes/sec); the node should almost never exceed this", new IntCallback() { public int get() { return BlockTransmitter.getHardBandwidthLimit(); } public void set(int val) throws InvalidConfigValueException { BlockTransmitter.setHardBandwidthLimit(val); } }); int obwLimit = nodeConfig.getInt("outputBandwidthLimit"); BlockTransmitter.setHardBandwidthLimit(obwLimit); // FIXME add an averaging/long-term/soft bandwidth limit. (bug 76) // There is already untested support for this in BlockTransmitter. // No long-term limit for now. BlockTransmitter.setSoftBandwidthLimit(0, 0); // SwapRequestInterval nodeConfig.register("swapRequestSendInterval", 2000, 4, true, "Swap request send interval (ms)", "Interval between swap attempting to send swap requests in milliseconds. Leave this alone!", new IntCallback() { public int get() { return swapInterval.fixedInterval; } public void set(int val) throws InvalidConfigValueException { swapInterval.set(val); } }); swapInterval = new StaticSwapRequestInterval(nodeConfig.getInt("swapRequestSendInterval")); // Testnet. // Cannot be enabled/disabled on the fly. // If enabled, forces certain other config options. if((testnetHandler = TestnetHandler.maybeCreate(this, config)) != null) { String msg = "WARNING: ENABLING TESTNET CODE! This WILL seriously jeopardize your anonymity!"; Logger.error(this, msg); System.err.println(msg); testnetEnabled = true; if(logConfigHandler.getFileLoggerHook() == null) { System.err.println("Forcing logging enabled (essential for testnet)"); logConfigHandler.forceEnableLogging(); } int x = Logger.globalGetThreshold(); if(!(x == Logger.MINOR || x == Logger.DEBUG)) { System.err.println("Forcing log threshold to MINOR for testnet, was "+x); Logger.globalSetThreshold(Logger.MINOR); } if(logConfigHandler.getMaxZippedLogFiles() < TESTNET_MIN_MAX_ZIPPED_LOGFILES) { System.err.println("Forcing max zipped logfiles space to 256MB for testnet"); try { logConfigHandler.setMaxZippedLogFiles(TESTNET_MIN_MAX_ZIPPED_LOGFILES_STRING); } catch (InvalidConfigValueException e) { throw new Error("Impossible: "+e); } } } else { String s = "Testnet mode DISABLED. You may have some level of anonymity. :)\n"+ "Note that while we no longer have explicit back-doors enabled, this version of Freenet is still a very early alpha, and may well have numerous bugs and design flaws.\n"+ "In particular: YOU ARE WIDE OPEN TO YOUR IMMEDIATE DARKNET PEERS! They can eavesdrop on your requests with relatively little difficulty at present (correlation attacks etc)."; Logger.normal(this, s); System.err.println(s); testnetEnabled = false; FileLoggerHook flh = logConfigHandler.getFileLoggerHook(); if(flh != null) flh.deleteAllOldLogFiles(); } if(wasTestnet != testnetEnabled) { Logger.error(this, "Switched from testnet mode to non-testnet mode or vice versa! Regenerating pubkey, privkey, and deleting logs."); this.myCryptoGroup = Global.DSAgroupBigA; this.myPrivKey = new DSAPrivateKey(myCryptoGroup, random); this.myPubKey = new DSAPublicKey(myCryptoGroup, myPrivKey); } // Directory for node-related files other than store nodeConfig.register("nodeDir", ".", 6, true, "Node directory", "Name of directory to put node-related files e.g. peers list in", new StringCallback() { public String get() { return nodeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(nodeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving node directory on the fly not supported at present"); } }); nodeDir = new File(nodeConfig.getString("nodeDir")); if(!((nodeDir.exists() && nodeDir.isDirectory()) || (nodeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_BAD_NODE_DIR, msg); } // After we have set up testnet and IP address, load the node file try { // FIXME should take file directly? readNodeFile(new File(nodeDir, "node-"+portNumber).getPath(), random); } catch (IOException e) { try { readNodeFile(new File("node-"+portNumber+".bak").getPath(), random); } catch (IOException e1) { initNodeFileSettings(random); } } // Then read the peers peers = new PeerManager(this, new File(nodeDir, "peers-"+portNumber).getPath()); peers.writePeers(); peers.checkEmpty(); nodePinger = new NodePinger(this); usm.setDispatcher(dispatcher=new NodeDispatcher(this)); usm.setLowLevelFilter(packetMangler = new FNPPacketMangler(this)); // Temp files nodeConfig.register("tempDir", new File(nodeDir, "temp-"+portNumber).toString(), 6, true, "Temp files directory", "Name of directory to put temporary files in", new StringCallback() { public String get() { return tempDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(tempDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving temp directory on the fly not supported at present"); } }); tempDir = new File(nodeConfig.getString("tempDir")); if(!((tempDir.exists() && tempDir.isDirectory()) || (tempDir.mkdir()))) { String msg = "Could not find or create temporary directory"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } try { tempFilenameGenerator = new FilenameGenerator(random, true, tempDir, "temp-"); } catch (IOException e) { String msg = "Could not find or create temporary directory (filename generator)"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } tempBucketFactory = new PaddedEphemerallyEncryptedBucketFactory(new TempBucketFactory(tempFilenameGenerator), random, 1024); // Persistent temp files nodeConfig.register("persistentTempDir", new File(nodeDir, "persistent-temp-"+portNumber).toString(), 7, true, "Persistent temp files directory", "Name of directory to put persistent temp files in", new StringCallback() { public String get() { return persistentTempBucketFactory.getDir().toString(); } public void set(String val) throws InvalidConfigValueException { if(!get().equals(val)) return; // FIXME throw new InvalidConfigValueException("Moving persistent temp directory on the fly not supported at present"); } }); try { persistentTempBucketFactory = new PersistentTempBucketFactory(new File(nodeConfig.getString("persistentTempDir")), "freenet-temp-", random); } catch (IOException e2) { String msg = "Could not find or create persistent temporary directory"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } // Datastore nodeConfig.register("storeSize", "1G", 8, false, "Store size in bytes", "Store size in bytes", new LongCallback() { public long get() { return maxStoreKeys * sizePerKey; } public void set(long storeSize) throws InvalidConfigValueException { if(storeSize < 0 || storeSize < (32 * 1024 * 1024)) throw new InvalidConfigValueException("Invalid store size"); long newMaxStoreKeys = storeSize / sizePerKey; if(newMaxStoreKeys == maxStoreKeys) return; // Update each datastore maxStoreKeys = newMaxStoreKeys; chkDatastore.setMaxKeys(maxStoreKeys); sskDatastore.setMaxKeys(maxStoreKeys); pubKeyDatastore.setMaxKeys(maxStoreKeys); } }); long storeSize = nodeConfig.getLong("storeSize"); if(/*storeSize < 0 || */storeSize < (32 * 1024 * 1024)) { // totally arbitrary minimum! throw new NodeInitException(EXIT_INVALID_STORE_SIZE, "Invalid store size"); } maxStoreKeys = storeSize / sizePerKey; nodeConfig.register("storeDir", ".", 9, true, "Store directory", "Name of directory to put store files in", new StringCallback() { public String get() { return storeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(storeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving datastore on the fly not supported at present"); } }); storeDir = new File(nodeConfig.getString("storeDir")); if(!((storeDir.exists() && storeDir.isDirectory()) || (storeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_STORE_OTHER, msg); } try { chkDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"store-"+portNumber, maxStoreKeys, 32768, CHKBlock.TOTAL_HEADERS_LENGTH); sskDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"sskstore-"+portNumber, maxStoreKeys, 1024, SSKBlock.TOTAL_HEADERS_LENGTH); pubKeyDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"pubkeystore-"+portNumber, maxStoreKeys, DSAPublicKey.PADDED_SIZE, 0); } catch (FileNotFoundException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_FILE_NOT_FOUND, msg); } catch (IOException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_IOEXCEPTION, msg); } catch (Exception e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_OTHER, msg); } // Downloads directory nodeConfig.register("downloadsDir", "downloads", 10, false, "Default download directory", "The directory to save downloaded files into by default", new StringCallback() { public String get() { return downloadDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(downloadDir.equals(new File(val))) return; File f = new File(val); if(!((f.exists() && f.isDirectory()) || (f.mkdir()))) { throw new InvalidConfigValueException("Could not find or create directory"); } downloadDir = new File(val); } }); String val = nodeConfig.getString("downloadsDir"); downloadDir = new File(val); if(!((downloadDir.exists() && downloadDir.isDirectory()) || (downloadDir.mkdir()))) { throw new NodeInitException(EXIT_BAD_DOWNLOADS_DIR, "Could not find or create default downloads directory"); } // Name nodeConfig.register("name", myName, 11, false, "Node name for darknet", "Node name; you may want to set this to something descriptive if running on darknet e.g. Fred Blogg's Node; it is visible to any connecting node", new NodeNameCallback(this)); nodeNameUserAlert = new MeaningfulNodeNameUserAlert(); myName = nodeConfig.getString("name"); nodeConfig.finishedInitialization(); writeNodeFile(); // FIXME make all the below arbitrary constants configurable! archiveManager = new ArchiveManager(MAX_ARCHIVE_HANDLERS, MAX_CACHED_ARCHIVE_DATA, MAX_ARCHIVE_SIZE, MAX_ARCHIVED_FILE_SIZE, MAX_CACHED_ELEMENTS, random, tempFilenameGenerator); chkRequestThrottle = new MyRequestThrottle(throttleWindow, 5000, "CHK Request"); chkRequestStarter = new RequestStarter(this, chkRequestThrottle, "CHK Request starter ("+portNumber+")"); chkFetchScheduler = new ClientRequestScheduler(false, false, random, chkRequestStarter, this); chkRequestStarter.setScheduler(chkFetchScheduler); chkRequestStarter.start(); //insertThrottle = new ChainedRequestThrottle(10000, 2.0F, requestThrottle); // FIXME reenable the above chkInsertThrottle = new MyRequestThrottle(throttleWindow, 10000, "CHK Insert"); chkInsertStarter = new RequestStarter(this, chkInsertThrottle, "CHK Insert starter ("+portNumber+")"); chkPutScheduler = new ClientRequestScheduler(true, false, random, chkInsertStarter, this); chkInsertStarter.setScheduler(chkPutScheduler); chkInsertStarter.start(); sskRequestThrottle = new MyRequestThrottle(throttleWindow, 5000, "SSK Request"); sskRequestStarter = new RequestStarter(this, sskRequestThrottle, "SSK Request starter ("+portNumber+")"); sskFetchScheduler = new ClientRequestScheduler(false, true, random, sskRequestStarter, this); sskRequestStarter.setScheduler(sskFetchScheduler); sskRequestStarter.start(); //insertThrottle = new ChainedRequestThrottle(10000, 2.0F, requestThrottle); // FIXME reenable the above sskInsertThrottle = new MyRequestThrottle(throttleWindow, 10000, "SSK Insert"); sskInsertStarter = new RequestStarter(this, sskInsertThrottle, "SSK Insert starter ("+portNumber+")"); sskPutScheduler = new ClientRequestScheduler(true, true, random, sskInsertStarter, this); sskInsertStarter.setScheduler(sskPutScheduler); sskInsertStarter.start(); uskManager = new USKManager(this); // And finally, Initialize the plugin manager pluginManager = new PluginManager(this); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
12,
809,
642,
16,
8072,
1830,
2744,
13,
1216,
2029,
2570,
503,
288,
377,
202,
377,
202,
759,
29442,
10769,
377,
202,
1313,
6426,
387,
273,
394,
8005,
9584,
382,
550,
387,
5621,
377,
202,
23939,
950,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
27971,
298,
3829,
273,
394,
20640,
298,
3829,
1318,
12,
22,
18,
20,
1769,
3639,
24304,
273,
394,
2177,
13298,
1318,
5621,
3639,
19907,
9556,
5103,
273,
394,
511,
19866,
3183,
5621,
377,
202,
2211,
18,
1425,
273,
642,
31,
377,
202,
2211,
18,
9188,
273,
2744,
31,
377,
202,
7097,
9581,
2396,
273,
394,
511,
19866,
5582,
14544,
5621,
202,
202,
25972,
273,
394,
7050,
1318,
12,
9188,
1769,
377,
202,
698,
288,
1082,
202,
13014,
1887,
273,
14218,
18,
588,
5911,
2932,
14260,
18,
20,
18,
20,
18,
21,
8863,
202,
202,
97,
1044,
261,
4874,
29776,
425,
23,
13,
288,
1082,
202,
759,
9637,
486,
741,
279,
4219,
3689,
16,
1427,
333,
353,
23343,
1082,
202,
12849,
394,
1068,
12,
73,
23,
1769,
202,
202,
97,
3639,
2359,
12594,
273,
394,
23588,
12594,
12,
2163,
14,
18088,
16,
333,
1769,
3639,
590,
3826,
414,
273,
394,
4317,
5621,
3639,
906,
74,
20245,
691,
3826,
414,
273,
394,
4317,
5621,
3639,
2243,
3826,
414,
273,
394,
4317,
5621,
3639,
3549,
3060,
87,
273,
394,
6847,
5621,
3639,
4250,
273,
394,
11114,
12021,
12,
2211,
1769,
3639,
368,
9852,
6944,
4259,
1410,
3898,
35,
16448,
1608,
358,
506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
12,
809,
642,
16,
8072,
1830,
2744,
13,
1216,
2029,
2570,
503,
288,
377,
202,
377,
202,
759,
29442,
10769,
377,
202,
1313,
6426,
387,
273,
394,
8005,
9584,
382,
550,
387,
5621,
377,
202,
23939,
950,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
27971,
298,
3829,
273,
394,
20640,
298,
3829,
1318,
12,
22,
18,
20,
1769,
3639,
24304,
273,
394,
2177,
13298,
1318,
5621,
3639,
19907,
9556,
5103,
273,
394,
511,
19866,
3183,
5621,
377,
202,
2211,
18,
1425,
273,
642,
31,
377,
202,
2211,
18,
9188,
273,
2744,
31,
377,
202,
7097,
9581,
2396,
273,
394,
511,
19866,
5582,
14544,
5621,
202,
202,
25972,
273,
394,
7050,
1318,
12,
9188,
1769,
377,
2
] |
final VirtualFile[] files = index.getOrderEntriesForFile(virtualFile).get(0).getFiles(OrderRootType.CLASSES); for (VirtualFile rootFile : files) { final VirtualFile classFile = rootFile.findFileByRelativePath(relativePath); if (classFile != null) { return getLanguageLevel(classFile);
|
final PsiClass[] classes = getClasses(); if (classes.length > 0) { final String className = classes[0].getName(); relativePath = relativePath + "/" + className + ".class"; final VirtualFile[] files = index.getOrderEntriesForFile(virtualFile).get(0).getFiles(OrderRootType.CLASSES); for (VirtualFile rootFile : files) { final VirtualFile classFile = rootFile.findFileByRelativePath(relativePath); if (classFile != null) { return getLanguageLevel(classFile); }
|
private LanguageLevel getLanguageLevelInner() { if (myOriginalFile != null) return ((PsiJavaFile)myOriginalFile).getLanguageLevel(); final LanguageLevel forcedLanguageLevel = getUserData(PsiUtil.FILE_LANGUAGE_LEVEL_KEY); if (forcedLanguageLevel != null) return forcedLanguageLevel; final VirtualFile virtualFile = getVirtualFile(); if (virtualFile == null) { final PsiFile originalFile = getOriginalFile(); if (originalFile instanceof PsiJavaFile && originalFile != this) return ((PsiJavaFile)originalFile).getLanguageLevel(); return getManager().getEffectiveLanguageLevel(); } final Project project = getProject(); final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex(); final Module module = index.getModuleForFile(virtualFile); if (module != null) { return module.getEffectiveLanguageLevel(); } else { final VirtualFile sourceRoot = index.getSourceRootForFile(virtualFile); if (sourceRoot != null) { String relativePath = VfsUtil.getRelativePath(virtualFile.getParent(), sourceRoot, '/'); LOG.assertTrue(relativePath != null); final VirtualFile[] files = index.getOrderEntriesForFile(virtualFile).get(0).getFiles(OrderRootType.CLASSES); for (VirtualFile rootFile : files) { final VirtualFile classFile = rootFile.findFileByRelativePath(relativePath); if (classFile != null) { return getLanguageLevel(classFile); } } } } return PsiManager.getInstance(project).getEffectiveLanguageLevel(); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/5c6dcb50c41a1ec6f19317cf045190cd2b979289/PsiJavaFileBaseImpl.java/buggy/source/com/intellij/psi/impl/source/PsiJavaFileBaseImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
9889,
2355,
12898,
2355,
2857,
1435,
288,
565,
309,
261,
4811,
8176,
812,
480,
446,
13,
327,
14015,
52,
7722,
5852,
812,
13,
4811,
8176,
812,
2934,
588,
3779,
2355,
5621,
565,
727,
9889,
2355,
13852,
3779,
2355,
273,
4735,
751,
12,
52,
7722,
1304,
18,
3776,
67,
15547,
67,
10398,
67,
3297,
1769,
565,
309,
261,
19778,
3779,
2355,
480,
446,
13,
327,
13852,
3779,
2355,
31,
565,
727,
7269,
812,
5024,
812,
273,
336,
6466,
812,
5621,
565,
309,
261,
12384,
812,
422,
446,
13,
288,
1377,
727,
453,
7722,
812,
2282,
812,
273,
18354,
812,
5621,
1377,
309,
261,
8830,
812,
1276,
453,
7722,
5852,
812,
597,
2282,
812,
480,
333,
13,
327,
14015,
52,
7722,
5852,
812,
13,
8830,
812,
2934,
588,
3779,
2355,
5621,
1377,
327,
14154,
7675,
588,
28531,
3779,
2355,
5621,
565,
289,
565,
727,
5420,
1984,
273,
11080,
5621,
565,
727,
5420,
812,
1016,
770,
273,
5420,
2375,
1318,
18,
588,
1442,
12,
4406,
2934,
29925,
1016,
5621,
565,
727,
5924,
1605,
273,
770,
18,
588,
3120,
1290,
812,
12,
12384,
812,
1769,
565,
309,
261,
2978,
480,
446,
13,
288,
1377,
327,
1605,
18,
588,
28531,
3779,
2355,
5621,
565,
289,
565,
469,
288,
1377,
727,
7269,
812,
1084,
2375,
273,
770,
18,
588,
1830,
2375,
1290,
812,
12,
12384,
812,
1769,
1377,
309,
261,
3168,
2375,
480,
446,
13,
288,
3639,
514,
12820,
273,
776,
2556,
1304,
18,
588,
16519,
12,
12384,
812,
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,
282,
3238,
9889,
2355,
12898,
2355,
2857,
1435,
288,
565,
309,
261,
4811,
8176,
812,
480,
446,
13,
327,
14015,
52,
7722,
5852,
812,
13,
4811,
8176,
812,
2934,
588,
3779,
2355,
5621,
565,
727,
9889,
2355,
13852,
3779,
2355,
273,
4735,
751,
12,
52,
7722,
1304,
18,
3776,
67,
15547,
67,
10398,
67,
3297,
1769,
565,
309,
261,
19778,
3779,
2355,
480,
446,
13,
327,
13852,
3779,
2355,
31,
565,
727,
7269,
812,
5024,
812,
273,
336,
6466,
812,
5621,
565,
309,
261,
12384,
812,
422,
446,
13,
288,
1377,
727,
453,
7722,
812,
2282,
812,
273,
18354,
812,
5621,
1377,
309,
261,
8830,
812,
1276,
453,
7722,
5852,
812,
597,
2282,
812,
480,
333,
13,
327,
14015,
2
] |
System.out.println("d " + f.getPath());
|
private void doName(String s) { File f = new File(s); if (!f.exists()) { System.out.println(s + " does not exist"); return; } if (f.isFile()) doFile(f); else if (f.isDirectory()) { System.out.println("d " + f.getPath()); String objects[] = f.list(filter); for (int i=0; i<objects.length; i++) doName(s + f.separator + objects[i]); } else System.err.println("Unknown: " + s); }
|
9469 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9469/fcc19296f687f770243e131bbf7bc0ea3620d74d/Find.java/clean/src/main/java/dir_file/Find.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
461,
12,
780,
272,
13,
288,
202,
202,
812,
284,
273,
394,
1387,
12,
87,
1769,
202,
202,
430,
16051,
74,
18,
1808,
10756,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
87,
397,
315,
1552,
486,
1005,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
74,
18,
291,
812,
10756,
1082,
202,
2896,
812,
12,
74,
1769,
202,
202,
12107,
309,
261,
74,
18,
291,
2853,
10756,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
72,
315,
397,
284,
18,
588,
743,
10663,
1082,
202,
780,
2184,
8526,
273,
284,
18,
1098,
12,
2188,
1769,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
6911,
18,
2469,
31,
277,
27245,
9506,
202,
2896,
461,
12,
87,
397,
284,
18,
11287,
397,
2184,
63,
77,
19226,
202,
202,
97,
469,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
4874,
30,
315,
397,
272,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
461,
12,
780,
272,
13,
288,
202,
202,
812,
284,
273,
394,
1387,
12,
87,
1769,
202,
202,
430,
16051,
74,
18,
1808,
10756,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
87,
397,
315,
1552,
486,
1005,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
74,
18,
291,
812,
10756,
1082,
202,
2896,
812,
12,
74,
1769,
202,
202,
12107,
309,
261,
74,
18,
291,
2853,
10756,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
72,
315,
397,
284,
18,
588,
743,
10663,
1082,
202,
780,
2184,
8526,
273,
284,
18,
1098,
12,
2188,
1769,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
6911,
2
] |
|
String title = "Guidance for Cell";
|
String title = getGuidanceTitle();
|
private Map doForwardAction(String forwardView, Map request, Map session, ScaffoldingCell scaffoldingCell) { Map model = new HashMap(); EditedScaffoldingStorage sessionBean = (EditedScaffoldingStorage)session.get( EditedScaffoldingStorage.EDITED_SCAFFOLDING_STORAGE_SESSION_KEY); sessionBean.setScaffoldingCell(scaffoldingCell); prepareModelWithScaffoldingId(model, scaffoldingCell); model.put("scaffoldingCell_id", scaffoldingCell.getId()); if (forwardView.equals("createGuidance")) { Placement placement = ToolManager.getCurrentPlacement(); String currentSite = placement.getContext(); session.put(EditedScaffoldingStorage.STORED_SCAFFOLDING_FLAG, "true"); model.put(EditedScaffoldingStorage.STORED_SCAFFOLDING_FLAG, "true"); Guidance guidance = scaffoldingCell.getGuidance(); if (guidance == null) { String title = "Guidance for Cell"; //CWM fix guidance stuff guidance = getGuidanceManager().createNew(title, currentSite, scaffoldingCell.getWizardPageDefinition().getId(), getGuidanceViewPermission(), getGuidanceEditPermission()); } session.put(GuidanceManager.CURRENT_GUIDANCE, guidance); } else if (forwardView.equals("deleteGuidance")) { scaffoldingCell.setDeleteGuidanceId(scaffoldingCell.getGuidanceId()); scaffoldingCell.setGuidance(null); session.put(EditedScaffoldingStorage.STORED_SCAFFOLDING_FLAG, "true"); model.put(EditedScaffoldingStorage.STORED_SCAFFOLDING_FLAG, "true"); } else if (!forwardView.equals("selectEvaluators")) { model.put("label", request.get("label")); model.put("finalDest", request.get("finalDest")); model.put("displayText", request.get("displayText")); String params = (String)request.get("params"); model.put("params", params); if (!params.equals("")) { model.putAll(parseParams(params)); } } else { session.put(EditedScaffoldingStorage.STORED_SCAFFOLDING_FLAG, "true"); model.put(EditedScaffoldingStorage.STORED_SCAFFOLDING_FLAG, "true"); setAudienceSelectionVariables(session, scaffoldingCell.getWizardPageDefinition()); } return model; }
|
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/a47040649a4c29e7844712f53ff70b3933e80744/EditScaffoldingCellController.java/clean/matrix/tool/src/java/org/theospi/portfolio/matrix/control/EditScaffoldingCellController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
1635,
741,
8514,
1803,
12,
780,
5104,
1767,
16,
1635,
590,
16,
1635,
1339,
16,
540,
2850,
14847,
310,
4020,
20992,
310,
4020,
13,
288,
1377,
1635,
938,
273,
394,
4317,
5621,
5375,
15328,
329,
1541,
14847,
310,
3245,
1339,
3381,
273,
261,
4666,
329,
1541,
14847,
310,
3245,
13,
3184,
18,
588,
12,
5411,
15328,
329,
1541,
14847,
310,
3245,
18,
10776,
2056,
67,
8754,
2246,
11846,
1360,
67,
19009,
67,
7042,
67,
3297,
1769,
1377,
1339,
3381,
18,
542,
1541,
14847,
310,
4020,
12,
31105,
310,
4020,
1769,
1377,
2911,
1488,
1190,
1541,
14847,
310,
548,
12,
2284,
16,
20992,
310,
4020,
1769,
1377,
938,
18,
458,
2932,
31105,
310,
4020,
67,
350,
3113,
20992,
310,
4020,
18,
26321,
10663,
5411,
309,
261,
11565,
1767,
18,
14963,
2932,
2640,
22549,
1359,
6,
3719,
288,
540,
28498,
12607,
273,
13288,
1318,
18,
588,
3935,
12420,
5621,
6647,
514,
783,
4956,
273,
12607,
18,
29120,
5621,
6647,
1339,
18,
458,
12,
4666,
329,
1541,
14847,
310,
3245,
18,
31487,
5879,
67,
8754,
2246,
11846,
1360,
67,
9651,
16,
315,
3767,
8863,
540,
938,
18,
458,
12,
4666,
329,
1541,
14847,
310,
3245,
18,
31487,
5879,
67,
8754,
2246,
11846,
1360,
67,
9651,
16,
315,
3767,
8863,
5375,
611,
1911,
1359,
9875,
1359,
273,
20992,
310,
4020,
18,
588,
22549,
1359,
5621,
540,
309,
261,
14066,
1359,
422,
446,
13,
288,
5411,
514,
2077,
273,
7162,
1911,
1359,
4247,
5621,
6647,
368,
12844,
49,
2917,
9875,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
1635,
741,
8514,
1803,
12,
780,
5104,
1767,
16,
1635,
590,
16,
1635,
1339,
16,
540,
2850,
14847,
310,
4020,
20992,
310,
4020,
13,
288,
1377,
1635,
938,
273,
394,
4317,
5621,
5375,
15328,
329,
1541,
14847,
310,
3245,
1339,
3381,
273,
261,
4666,
329,
1541,
14847,
310,
3245,
13,
3184,
18,
588,
12,
5411,
15328,
329,
1541,
14847,
310,
3245,
18,
10776,
2056,
67,
8754,
2246,
11846,
1360,
67,
19009,
67,
7042,
67,
3297,
1769,
1377,
1339,
3381,
18,
542,
1541,
14847,
310,
4020,
12,
31105,
310,
4020,
1769,
1377,
2911,
1488,
1190,
1541,
14847,
310,
548,
12,
2284,
16,
20992,
310,
4020,
1769,
1377,
938,
18,
458,
2932,
31105,
310,
4020,
67,
350,
3113,
20992,
2
] |
if((tl_y<endy)&&(tl_y>starty)){
|
if((tl_y<=endy)&&(tl_y>=starty)){
|
public boolean in_area(int startx, int starty, int endx, int endy){ int tl_x = minx; int tl_y = miny; int br_x = maxx; int br_y = maxy; if((tl_x<endx)&&(tl_x>startx)){ //check if y is in if((tl_y<endy)&&(tl_y>starty)){ return true; } if((br_y<endy)&&(br_y>startx)){ return true; } } if((br_x<endx)&&(br_x>startx)){ //check if y is in area if((tl_y<endy)&&(tl_y>startx)){ return true; } if((br_y<endy)&&(br_y>startx)){ return true; } } //none of corners of the object were in the area so check if the area was inside the object if((endx<br_x)&&(endx>tl_x)){ //check if y is in if((endy<br_y)&&(endy>tl_y)){ return true; } if((starty<br_y)&&(starty>tl_y)){ return true; } } if((startx<br_x)&&(startx>tl_x)){ //check if y is in if((endy<br_y)&&(endy>tl_y)){ return true; } if((starty<br_y)&&(starty>tl_y)){ return true; } } return false; }
|
11744 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11744/231175724f3468aa792c6003c5f07a19abe1c7a7/General_Object.java/buggy/src/drawing_prog/General_Object.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
316,
67,
5036,
12,
474,
787,
92,
16,
509,
787,
93,
16,
509,
679,
92,
16,
509,
679,
93,
15329,
3639,
509,
8332,
67,
92,
273,
31407,
31,
3639,
509,
8332,
67,
93,
273,
1131,
93,
31,
3639,
509,
5186,
67,
92,
273,
943,
92,
31,
3639,
509,
5186,
67,
93,
273,
943,
93,
31,
7734,
309,
12443,
6172,
67,
92,
32,
409,
92,
13,
10,
10,
12,
6172,
67,
92,
34,
1937,
92,
3719,
95,
5411,
368,
1893,
309,
677,
353,
316,
5411,
309,
12443,
6172,
67,
93,
32,
33,
409,
93,
13,
10,
10,
12,
6172,
67,
93,
34,
33,
1937,
93,
3719,
95,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12443,
2848,
67,
93,
32,
409,
93,
13,
10,
10,
12,
2848,
67,
93,
34,
1937,
92,
3719,
95,
7734,
327,
638,
31,
5411,
289,
3639,
289,
3639,
309,
12443,
2848,
67,
92,
32,
409,
92,
13,
10,
10,
12,
2848,
67,
92,
34,
1937,
92,
3719,
95,
5411,
368,
1893,
309,
677,
353,
316,
5091,
5411,
309,
12443,
6172,
67,
93,
32,
409,
93,
13,
10,
10,
12,
6172,
67,
93,
34,
1937,
92,
3719,
95,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12443,
2848,
67,
93,
32,
409,
93,
13,
10,
10,
12,
2848,
67,
93,
34,
1937,
92,
3719,
95,
7734,
327,
638,
31,
5411,
289,
3639,
289,
7734,
368,
6102,
434,
18398,
434,
326,
733,
4591,
316,
326,
5091,
1427,
866,
309,
326,
5091,
1703,
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,
1250,
316,
67,
5036,
12,
474,
787,
92,
16,
509,
787,
93,
16,
509,
679,
92,
16,
509,
679,
93,
15329,
3639,
509,
8332,
67,
92,
273,
31407,
31,
3639,
509,
8332,
67,
93,
273,
1131,
93,
31,
3639,
509,
5186,
67,
92,
273,
943,
92,
31,
3639,
509,
5186,
67,
93,
273,
943,
93,
31,
7734,
309,
12443,
6172,
67,
92,
32,
409,
92,
13,
10,
10,
12,
6172,
67,
92,
34,
1937,
92,
3719,
95,
5411,
368,
1893,
309,
677,
353,
316,
5411,
309,
12443,
6172,
67,
93,
32,
33,
409,
93,
13,
10,
10,
12,
6172,
67,
93,
34,
33,
1937,
93,
3719,
95,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12443,
2848,
2
] |
field = (Hex)iter.next();
|
field = (IHex)iter.next();
|
public static void addRiver(IBoard board, HashMap reverseHex) { int minElevation = Integer.MAX_VALUE; HashSet riverHexes = new HashSet(); IHex field, rightHex, leftHex; Point p = null; int direction = 0; int nextLeft = 0; int nextRight = 0; int width = board.getWidth(); int height = board.getHeight(); /* if map is smaller than 5x5 no real space for an river */ if ((width < 5) || (height < 5)) { return; } /* First select start and the direction */ switch (Compute.randomInt(4)) { case 0: p = new Point(0, Compute.randomInt(5) - 2 + height / 2); direction = Compute.randomInt(2) + 1; nextLeft = direction - 1; nextRight = direction + 1; break; case 1: p = new Point(width - 1, Compute.randomInt(5) - 2 + height / 2); direction = Compute.randomInt(2) + 4; nextLeft = direction - 1; nextRight = (direction + 1) % 6; break; case 2: case 3: p = new Point(Compute.randomInt(5) - 2 + width / 2, 0); direction = 2; nextRight = 3; nextLeft = 4; break; } // switch /* place the river */ field = board.getHex(p.x, p.y); ITerrainFactory f = Terrains.getTerrainFactory(); do { /* first the hex itself */ field.removeAllTerrains(); field.addTerrain(f.createTerrain(Terrains.WATER, 1)); riverHexes.add(field); p = (Point)reverseHex.get(field); /* then maybe the left and right neighbours */ riverHexes.addAll(extendRiverToSide(board, p, Compute.randomInt(3), nextLeft, reverseHex)); riverHexes.addAll(extendRiverToSide(board, p, Compute.randomInt(3), nextRight, reverseHex)); switch (Compute.randomInt(4)) { case 0: field = board.getHexInDir(p.x, p.y, (direction + 5) % 6); break; case 1: field = board.getHexInDir(p.x, p.y, (direction + 1) % 6); break; default: field = board.getHexInDir(p.x, p.y, direction); break; } } while (field != null); /* search the elevation for the river */ HashSet tmpRiverHexes = (HashSet)riverHexes.clone(); while (!tmpRiverHexes.isEmpty()) { Iterator iter = tmpRiverHexes.iterator(); field = (Hex)iter.next(); if (field.getElevation() < minElevation) { minElevation = field.getElevation(); } tmpRiverHexes.remove(field); Point thisHex = (Point)reverseHex.get(field); /* and now the six neighbours */ for (int i = 0; i < 6; i++) { field = board.getHexInDir(thisHex.x, thisHex.y, i); if ((field != null) && (field.getElevation() < minElevation)) { minElevation = field.getElevation(); } tmpRiverHexes.remove(field); } } /* now adjust the elevation to same height */ Iterator iter = riverHexes.iterator(); while (iter.hasNext()) { field = (Hex)iter.next(); field.setElevation(minElevation); } return; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/d91112ee95f04e1a37f9edc46aa6923846f7bac2/BoardUtilities.java/buggy/megamek/src/megamek/common/util/BoardUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
527,
54,
1667,
12,
13450,
83,
1060,
11094,
16,
4317,
4219,
7037,
13,
288,
3639,
509,
1131,
17274,
7112,
273,
2144,
18,
6694,
67,
4051,
31,
3639,
6847,
436,
1667,
7037,
281,
273,
394,
6847,
5621,
3639,
467,
7037,
652,
16,
2145,
7037,
16,
2002,
7037,
31,
3639,
4686,
293,
273,
446,
31,
3639,
509,
4068,
273,
374,
31,
3639,
509,
1024,
3910,
273,
374,
31,
3639,
509,
1024,
4726,
273,
374,
31,
7734,
509,
1835,
273,
11094,
18,
588,
2384,
5621,
3639,
509,
2072,
273,
11094,
18,
588,
2686,
5621,
7734,
1748,
309,
852,
353,
10648,
2353,
1381,
92,
25,
1158,
2863,
3476,
364,
392,
436,
1667,
1195,
3639,
309,
14015,
2819,
411,
1381,
13,
747,
261,
4210,
411,
1381,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
1748,
5783,
2027,
787,
471,
326,
4068,
1195,
3639,
1620,
261,
7018,
18,
9188,
1702,
12,
24,
3719,
288,
3639,
648,
374,
30,
5411,
293,
273,
394,
4686,
12,
20,
16,
8155,
18,
9188,
1702,
12,
25,
13,
300,
576,
397,
2072,
342,
576,
1769,
5411,
4068,
273,
8155,
18,
9188,
1702,
12,
22,
13,
397,
404,
31,
5411,
1024,
3910,
273,
4068,
300,
404,
31,
5411,
1024,
4726,
273,
4068,
397,
404,
31,
5411,
898,
31,
3639,
648,
404,
30,
5411,
293,
273,
394,
4686,
12,
2819,
300,
404,
16,
8155,
18,
9188,
1702,
12,
25,
13,
300,
576,
397,
2072,
342,
576,
1769,
5411,
4068,
273,
8155,
18,
9188,
1702,
12,
22,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
527,
54,
1667,
12,
13450,
83,
1060,
11094,
16,
4317,
4219,
7037,
13,
288,
3639,
509,
1131,
17274,
7112,
273,
2144,
18,
6694,
67,
4051,
31,
3639,
6847,
436,
1667,
7037,
281,
273,
394,
6847,
5621,
3639,
467,
7037,
652,
16,
2145,
7037,
16,
2002,
7037,
31,
3639,
4686,
293,
273,
446,
31,
3639,
509,
4068,
273,
374,
31,
3639,
509,
1024,
3910,
273,
374,
31,
3639,
509,
1024,
4726,
273,
374,
31,
7734,
509,
1835,
273,
11094,
18,
588,
2384,
5621,
3639,
509,
2072,
273,
11094,
18,
588,
2686,
5621,
7734,
1748,
309,
852,
353,
10648,
2353,
1381,
92,
25,
1158,
2863,
3476,
364,
392,
436,
1667,
1195,
3639,
309,
14015,
2819,
411,
1381,
2
] |
while (last instanceof PsiWhiteSpace || (last instanceof PsiJavaToken && ((PsiJavaToken) last).getTokenType() == JavaTokenType.RBRACE))
|
while (first != last && (last instanceof PsiWhiteSpace || (last instanceof PsiJavaToken && ((PsiJavaToken) last).getTokenType() == JavaTokenType.RBRACE)))
|
private void setupBranches(PsiIfStatement ifStatement, ControlFlow flow) throws IncorrectOperationException { PsiElementFactory factory = ifStatement.getManager().getElementFactory(); Project project = ifStatement.getProject(); PsiStatement thenBranch = ifStatement.getThenBranch(); PsiStatement elseBranch = ifStatement.getElseBranch(); if (elseBranch != null) { elseBranch = (PsiStatement) elseBranch.copy(); setElseBranch(ifStatement, thenBranch, flow); ifStatement.getThenBranch().replace(elseBranch); return; } if (flow.getSize() == 0) { ifStatement.setElseBranch(thenBranch); PsiStatement statement = factory.createStatementFromText("{}", null); statement = (PsiStatement) CodeStyleManager.getInstance(project).reformat(statement); statement = (PsiStatement) ifStatement.getThenBranch().replace(statement); CodeStyleManager.getInstance(project).reformat(statement); return; } int endOffset = calcEndOffset(flow, ifStatement); LOG.assertTrue(endOffset >= 0); if (endOffset >= flow.getSize()) { PsiStatement statement = factory.createStatementFromText("return;", null); statement = (PsiStatement) CodeStyleManager.getInstance(project).reformat(statement); if (thenBranch instanceof PsiBlockStatement) { PsiStatement[] statements = ((PsiBlockStatement) thenBranch).getCodeBlock().getStatements(); int len = statements.length; if (len > 0) { if (statements[len - 1] instanceof PsiReturnStatement) len--; if (len > 0) { ifStatement.getParent().addRangeAfter(statements[0], statements[len - 1], ifStatement); } } } else { if (!(thenBranch instanceof PsiReturnStatement)) { addAfter(ifStatement, thenBranch); } } ifStatement.getThenBranch().replace(statement); return; } PsiElement element = flow.getElement(endOffset); while (element != null && !(element instanceof PsiStatement)) element = element.getParent(); if (element != null && element.getParent() instanceof PsiForStatement) { PsiForStatement forStatement = (PsiForStatement) element.getParent(); if (forStatement.getUpdate() == element) { PsiStatement statement = factory.createStatementFromText("continue;", null); statement = (PsiStatement) CodeStyleManager.getInstance(project).reformat(statement); addAfter(ifStatement, thenBranch); ifStatement.getThenBranch().replace(statement); return; } } if (element instanceof PsiWhileStatement && flow.getStartOffset(element) == endOffset) { PsiStatement statement = factory.createStatementFromText("continue;", null); statement = (PsiStatement) CodeStyleManager.getInstance(project).reformat(statement); addAfter(ifStatement, thenBranch); ifStatement.getThenBranch().replace(statement); return; } if (element instanceof PsiReturnStatement) { PsiReturnStatement returnStatement = (PsiReturnStatement) element; addAfter(ifStatement, thenBranch); ifStatement.getThenBranch().replace(returnStatement.copy()); ControlFlow flow2 = buildControlFlow(findCodeBlock(ifStatement)); if (!ControlFlowUtil.isInstructionReachable(flow2, flow2.getStartOffset(returnStatement), 0)) returnStatement.delete(); return; } boolean nextUnreachable = flow.getEndOffset(ifStatement) + 1 == flow.getSize(); if (!nextUnreachable) { PsiElement nearestCodeBlock = findNearestCodeBlock(ifStatement); if (nearestCodeBlock != null) { ControlFlow flow2 = buildControlFlow(nearestCodeBlock); nextUnreachable = !ControlFlowUtil.isInstructionReachable(flow2, flow2.getEndOffset(ifStatement), getThenOffset(flow2, ifStatement)); } } if (nextUnreachable) { setElseBranch(ifStatement, thenBranch, flow); PsiElement first = ifStatement.getNextSibling();// while (first instanceof PsiWhiteSpace) first = first.getNextSibling(); if (first != null) { PsiElement last = first; while (last.getNextSibling() != null) last = last.getNextSibling(); while (last instanceof PsiWhiteSpace || (last instanceof PsiJavaToken && ((PsiJavaToken) last).getTokenType() == JavaTokenType.RBRACE)) last = last.getPrevSibling(); PsiBlockStatement codeBlock = (PsiBlockStatement) factory.createStatementFromText("{}", null); codeBlock = (PsiBlockStatement) ifStatement.getThenBranch().replace(codeBlock); codeBlock.getCodeBlock().addRange(first, last); first.getParent().deleteChildRange(first, last); } CodeStyleManager.getInstance(project).reformat(ifStatement); return; } setElseBranch(ifStatement, thenBranch, flow); PsiStatement statement = factory.createStatementFromText("{}", null); statement = (PsiStatement) CodeStyleManager.getInstance(project).reformat(statement); statement = (PsiStatement) ifStatement.getThenBranch().replace(statement); CodeStyleManager.getInstance(project).reformat(statement); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/bf981a06361753003dfe25979016d7ee3f6cf809/InvertIfConditionAction.java/clean/codeInsight/impl/com/intellij/codeInsight/intention/impl/InvertIfConditionAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3875,
24246,
12,
52,
7722,
2047,
3406,
309,
3406,
16,
8888,
5249,
4693,
13,
1216,
657,
6746,
10602,
288,
565,
453,
7722,
1046,
1733,
3272,
273,
309,
3406,
18,
588,
1318,
7675,
21336,
1733,
5621,
565,
5420,
1984,
273,
309,
3406,
18,
588,
4109,
5621,
565,
453,
7722,
3406,
1508,
7108,
273,
309,
3406,
18,
588,
20112,
7108,
5621,
565,
453,
7722,
3406,
469,
7108,
273,
309,
3406,
18,
588,
12427,
7108,
5621,
565,
309,
261,
12107,
7108,
480,
446,
13,
288,
1377,
469,
7108,
273,
261,
52,
7722,
3406,
13,
469,
7108,
18,
3530,
5621,
1377,
444,
12427,
7108,
12,
430,
3406,
16,
1508,
7108,
16,
4693,
1769,
1377,
309,
3406,
18,
588,
20112,
7108,
7675,
2079,
12,
12107,
7108,
1769,
1377,
327,
31,
565,
289,
565,
309,
261,
2426,
18,
588,
1225,
1435,
422,
374,
13,
288,
1377,
309,
3406,
18,
542,
12427,
7108,
12,
15991,
7108,
1769,
1377,
453,
7722,
3406,
3021,
273,
3272,
18,
2640,
3406,
1265,
1528,
2932,
9338,
16,
446,
1769,
1377,
3021,
273,
261,
52,
7722,
3406,
13,
3356,
2885,
1318,
18,
588,
1442,
12,
4406,
2934,
266,
2139,
12,
11516,
1769,
1377,
3021,
273,
261,
52,
7722,
3406,
13,
309,
3406,
18,
588,
20112,
7108,
7675,
2079,
12,
11516,
1769,
1377,
3356,
2885,
1318,
18,
588,
1442,
12,
4406,
2934,
266,
2139,
12,
11516,
1769,
1377,
327,
31,
565,
289,
565,
509,
25507,
273,
7029,
1638,
2335,
12,
2426,
16,
309,
3406,
1769,
565,
2018,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3875,
24246,
12,
52,
7722,
2047,
3406,
309,
3406,
16,
8888,
5249,
4693,
13,
1216,
657,
6746,
10602,
288,
565,
453,
7722,
1046,
1733,
3272,
273,
309,
3406,
18,
588,
1318,
7675,
21336,
1733,
5621,
565,
5420,
1984,
273,
309,
3406,
18,
588,
4109,
5621,
565,
453,
7722,
3406,
1508,
7108,
273,
309,
3406,
18,
588,
20112,
7108,
5621,
565,
453,
7722,
3406,
469,
7108,
273,
309,
3406,
18,
588,
12427,
7108,
5621,
565,
309,
261,
12107,
7108,
480,
446,
13,
288,
1377,
469,
7108,
273,
261,
52,
7722,
3406,
13,
469,
7108,
18,
3530,
5621,
1377,
444,
12427,
7108,
12,
430,
3406,
16,
1508,
7108,
16,
4693,
1769,
1377,
309,
3406,
18,
588,
20112,
7108,
2
] |
LayoutConstraint oldLayoutConstraint = layoutConstraint; layoutConstraint = newLayoutConstraint; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NotationPackage.NODE__LAYOUT_CONSTRAINT, oldLayoutConstraint, newLayoutConstraint); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
|
LayoutConstraint oldLayoutConstraint = layoutConstraint; layoutConstraint = newLayoutConstraint; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NotationPackage.NODE__LAYOUT_CONSTRAINT, oldLayoutConstraint, newLayoutConstraint); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
|
public NotificationChain basicSetLayoutConstraint(LayoutConstraint newLayoutConstraint, NotificationChain msgs) { LayoutConstraint oldLayoutConstraint = layoutConstraint; layoutConstraint = newLayoutConstraint; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NotationPackage.NODE__LAYOUT_CONSTRAINT, oldLayoutConstraint, newLayoutConstraint); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/NodeImpl.java/clean/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
5337,
694,
3744,
5806,
12,
3744,
5806,
394,
3744,
5806,
16,
27050,
8733,
13,
288,
202,
202,
3744,
5806,
1592,
3744,
5806,
273,
3511,
5806,
31,
202,
202,
6741,
5806,
273,
394,
3744,
5806,
31,
202,
202,
430,
261,
73,
21107,
10756,
288,
1082,
202,
1157,
352,
1480,
2828,
3851,
273,
394,
19953,
12,
2211,
16,
8050,
18,
4043,
16,
2288,
367,
2261,
18,
8744,
972,
7868,
5069,
67,
15199,
16,
1592,
3744,
5806,
16,
394,
3744,
5806,
1769,
1082,
202,
430,
261,
27439,
422,
446,
13,
8733,
273,
3851,
31,
469,
8733,
18,
1289,
12,
9927,
1769,
202,
202,
97,
202,
202,
2463,
8733,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
5337,
694,
3744,
5806,
12,
3744,
5806,
394,
3744,
5806,
16,
27050,
8733,
13,
288,
202,
202,
3744,
5806,
1592,
3744,
5806,
273,
3511,
5806,
31,
202,
202,
6741,
5806,
273,
394,
3744,
5806,
31,
202,
202,
430,
261,
73,
21107,
10756,
288,
1082,
202,
1157,
352,
1480,
2828,
3851,
273,
394,
19953,
12,
2211,
16,
8050,
18,
4043,
16,
2288,
367,
2261,
18,
8744,
972,
7868,
5069,
67,
15199,
16,
1592,
3744,
5806,
16,
394,
3744,
5806,
1769,
1082,
202,
430,
261,
27439,
422,
446,
13,
8733,
273,
3851,
31,
469,
8733,
18,
1289,
12,
9927,
1769,
202,
202,
97,
202,
202,
2463,
8733,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
myRelationshipsChangedRefresher = new TableRefreshPropertyListener(myRelationshipsTableViewer, EOEntity.RELATIONSHIPS);
|
myRelationshipsChangedRefresher = new RelationshipsChangeRefresher(myRelationshipsTableViewer, EOEntity.RELATIONSHIPS);
|
public EORelationshipsTableViewer(Composite _parent, int _style) { super(_parent, _style); setLayout(new GridLayout(1, true)); myRelationshipsTableViewer = new TableViewer(this, SWT.FULL_SELECTION); myRelationshipsTableViewer.setContentProvider(new EORelationshipsContentProvider()); myRelationshipsTableViewer.setLabelProvider(new EORelationshipsLabelProvider(myRelationshipsTableViewer, EORelationshipsConstants.COLUMNS)); myRelationshipsTableViewer.setSorter(new EORelationshipsViewerSorter(myRelationshipsTableViewer, EORelationshipsConstants.COLUMNS)); myRelationshipsTableViewer.setColumnProperties(EORelationshipsConstants.COLUMNS); myRelationshipsChangedRefresher = new TableRefreshPropertyListener(myRelationshipsTableViewer, EOEntity.RELATIONSHIPS); myParentChangedRefresher = new TableRefreshPropertyListener(myRelationshipsTableViewer, EOEntity.PARENT); myTableRowRefresher = new TableRowRefreshPropertyListener(myRelationshipsTableViewer, EOEntity.RELATIONSHIP); Table relationshipsTable = myRelationshipsTableViewer.getTable(); relationshipsTable.setLayoutData(new GridData(GridData.FILL_BOTH)); relationshipsTable.setHeaderVisible(true); relationshipsTable.setLinesVisible(true); TableUtils.createTableColumns(myRelationshipsTableViewer, "EORelationship", EORelationshipsConstants.COLUMNS); //$NON-NLS-1$ TableColumn toManyColumn = relationshipsTable.getColumn(TableUtils.getColumnNumber(EORelationshipsConstants.COLUMNS, EORelationship.TO_MANY)); toManyColumn.setText(""); //$NON-NLS-1$ TableColumn classPropertyColumn = relationshipsTable.getColumn(TableUtils.getColumnNumber(EORelationshipsConstants.COLUMNS, EORelationship.CLASS_PROPERTY)); classPropertyColumn.setText(""); //$NON-NLS-1$ classPropertyColumn.setImage(Activator.getDefault().getImageRegistry().get(Activator.CLASS_PROPERTY_ICON)); ((EORelationshipsViewerSorter) myRelationshipsTableViewer.getSorter()).sort(EORelationship.NAME); CellEditor[] cellEditors = new CellEditor[EORelationshipsConstants.COLUMNS.length]; cellEditors[TableUtils.getColumnNumber(EORelationshipsConstants.COLUMNS, EORelationship.TO_MANY)] = new CheckboxCellEditor(); cellEditors[TableUtils.getColumnNumber(EORelationshipsConstants.COLUMNS, EORelationship.CLASS_PROPERTY)] = new CheckboxCellEditor(); cellEditors[TableUtils.getColumnNumber(EORelationshipsConstants.COLUMNS, EORelationship.NAME)] = new TextCellEditor(relationshipsTable); myRelationshipsTableViewer.setCellModifier(new EORelationshipsCellModifier(myRelationshipsTableViewer)); myRelationshipsTableViewer.setCellEditors(cellEditors); }
|
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/d928b49aa0253c6ecb4869ae5c835c8362ad2cc8/EORelationshipsTableViewer.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/editors/relationships/EORelationshipsTableViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
512,
916,
292,
367,
3261,
87,
1388,
18415,
12,
9400,
389,
2938,
16,
509,
389,
4060,
13,
288,
565,
2240,
24899,
2938,
16,
389,
4060,
1769,
565,
18479,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10019,
565,
3399,
17185,
1388,
18415,
273,
394,
3555,
18415,
12,
2211,
16,
348,
8588,
18,
18111,
67,
1090,
15445,
1769,
565,
3399,
17185,
1388,
18415,
18,
542,
1350,
2249,
12,
2704,
512,
916,
292,
367,
3261,
87,
1350,
2249,
10663,
565,
3399,
17185,
1388,
18415,
18,
542,
2224,
2249,
12,
2704,
512,
916,
292,
367,
3261,
87,
2224,
2249,
12,
4811,
17185,
1388,
18415,
16,
512,
916,
292,
367,
3261,
87,
2918,
18,
25936,
10019,
565,
3399,
17185,
1388,
18415,
18,
542,
24952,
12,
2704,
512,
916,
292,
367,
3261,
87,
18415,
24952,
12,
4811,
17185,
1388,
18415,
16,
512,
916,
292,
367,
3261,
87,
2918,
18,
25936,
10019,
565,
3399,
17185,
1388,
18415,
18,
542,
1494,
2297,
12,
41,
916,
292,
367,
3261,
87,
2918,
18,
25936,
1769,
565,
3399,
17185,
5033,
1957,
455,
1614,
273,
394,
15463,
87,
3043,
1957,
455,
1614,
12,
4811,
17185,
1388,
18415,
16,
512,
51,
1943,
18,
27822,
20101,
55,
1769,
565,
3399,
3054,
5033,
1957,
455,
1614,
273,
394,
3555,
8323,
1396,
2223,
12,
4811,
17185,
1388,
18415,
16,
512,
51,
1943,
18,
14943,
1769,
565,
3399,
30650,
1957,
455,
1614,
273,
394,
3555,
1999,
8323,
1396,
2223,
12,
4811,
17185,
1388,
18415,
16,
512,
51,
1943,
18,
27822,
20101,
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,
512,
916,
292,
367,
3261,
87,
1388,
18415,
12,
9400,
389,
2938,
16,
509,
389,
4060,
13,
288,
565,
2240,
24899,
2938,
16,
389,
4060,
1769,
565,
18479,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10019,
565,
3399,
17185,
1388,
18415,
273,
394,
3555,
18415,
12,
2211,
16,
348,
8588,
18,
18111,
67,
1090,
15445,
1769,
565,
3399,
17185,
1388,
18415,
18,
542,
1350,
2249,
12,
2704,
512,
916,
292,
367,
3261,
87,
1350,
2249,
10663,
565,
3399,
17185,
1388,
18415,
18,
542,
2224,
2249,
12,
2704,
512,
916,
292,
367,
3261,
87,
2224,
2249,
12,
4811,
17185,
1388,
18415,
16,
512,
916,
292,
367,
3261,
87,
2918,
18,
25936,
10019,
565,
3399,
17185,
1388,
18415,
2
] |
log.error(e);
|
System.err.println(e);
|
public static void main(String args[]) { DatagramSocket sock; DatagramPacket packet; byte[] buf=new byte[0]; boolean receiver=true; String val; InetAddress receiver_addr=null, sender_addr=null; int receiver_port=0, sender_port=0; for(int i=0; i < args.length; i++) { val=args[i]; if("-help".equals(val)) { help(); return; } if("-sender".equals(val)) { receiver=false; continue; } if("-sender_addr".equals(val)) { try { sender_addr=InetAddress.getByName(args[++i]); sender_port=Integer.parseInt(args[++i]); continue; } catch(Exception e) { log.error(e); help(); return; } } if("-receiver".equals(val)) { receiver=true; try { receiver_addr=InetAddress.getByName(args[++i]); receiver_port=Integer.parseInt(args[++i]); } catch(Exception e) { log.error(e); help(); return; } continue; } help(); } try { if(receiver) { sock=new DatagramSocket(receiver_port, receiver_addr); System.out.println("Socket=" + sock.getLocalAddress() + ':' + sock.getLocalPort()); System.out.println("starting as receiver"); receiverLoop(sock); } else { if(sender_addr != null && sender_port > 0) sock=new DatagramSocket(sender_port, sender_addr); else sock=new DatagramSocket(); System.out.println("Socket=" + sock.getLocalAddress() + ':' + sock.getLocalPort()); System.out.println("starting as sender"); senderLoop(sock); } } catch(Exception e) { log.error(e); } }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/13de68466e3cf7fde6ee0bde0cee09a33e837e89/UcastTest.java/clean/tests/other/org/jgroups/tests/UcastTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
202,
5139,
17049,
4534,
225,
7313,
31,
202,
5139,
17049,
6667,
225,
4414,
31,
202,
7229,
8526,
1850,
1681,
33,
2704,
1160,
63,
20,
15533,
202,
6494,
540,
5971,
33,
3767,
31,
202,
780,
1850,
1244,
31,
202,
382,
278,
1887,
377,
5971,
67,
4793,
33,
2011,
16,
5793,
67,
4793,
33,
2011,
31,
202,
474,
2398,
5971,
67,
655,
33,
20,
16,
5793,
67,
655,
33,
20,
31,
1082,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
202,
565,
1244,
33,
1968,
63,
77,
15533,
202,
565,
309,
2932,
17,
5201,
9654,
14963,
12,
1125,
3719,
288,
202,
202,
5201,
5621,
202,
202,
2463,
31,
202,
565,
289,
202,
565,
309,
2932,
17,
15330,
9654,
14963,
12,
1125,
3719,
288,
202,
202,
24454,
33,
5743,
31,
202,
202,
17143,
31,
202,
565,
289,
202,
565,
309,
2932,
17,
15330,
67,
4793,
9654,
14963,
12,
1125,
3719,
288,
202,
202,
698,
288,
1082,
565,
5793,
67,
4793,
33,
382,
278,
1887,
18,
588,
5911,
12,
1968,
63,
9904,
77,
19226,
1082,
565,
5793,
67,
655,
33,
4522,
18,
2670,
1702,
12,
1968,
63,
9904,
77,
19226,
1082,
565,
1324,
31,
202,
202,
97,
202,
202,
14683,
12,
503,
425,
13,
288,
1082,
565,
613,
18,
1636,
12,
73,
1769,
1082,
565,
2809,
5621,
1082,
565,
327,
31,
202,
202,
97,
202,
565,
289,
202,
565,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
202,
5139,
17049,
4534,
225,
7313,
31,
202,
5139,
17049,
6667,
225,
4414,
31,
202,
7229,
8526,
1850,
1681,
33,
2704,
1160,
63,
20,
15533,
202,
6494,
540,
5971,
33,
3767,
31,
202,
780,
1850,
1244,
31,
202,
382,
278,
1887,
377,
5971,
67,
4793,
33,
2011,
16,
5793,
67,
4793,
33,
2011,
31,
202,
474,
2398,
5971,
67,
655,
33,
20,
16,
5793,
67,
655,
33,
20,
31,
1082,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
202,
565,
1244,
33,
1968,
63,
77,
15533,
202,
565,
309,
2932,
17,
5201,
9654,
14963,
12,
1125,
3719,
288,
2
] |
getClassLoader());
|
getClassLoader());
|
public String getResourceString(String pKey, Locale pLocale) throws IOException { if (fMessages.containsKey(pLocale.toString())) { ResourceBundle bundle = (ResourceBundle) fMessages.get(pLocale .toString()); try { return bundle.getString(pKey); } catch (MissingResourceException e) { return '!' + pKey + '!'; } } try { ResourceBundle res = ResourceBundle.getBundle("messages", pLocale, getClassLoader()); return res.getString(pKey); } catch (MissingResourceException x) { return '!' + pKey + '!'; } }
|
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/cd00889fb5930fea91d208ac97a4b7fafa399a8e/PluginDescriptor.java/buggy/src/java/org/apache/nutch/plugin/PluginDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5070,
780,
12,
780,
31352,
16,
6458,
293,
3916,
13,
565,
1216,
1860,
288,
565,
309,
261,
74,
5058,
18,
12298,
653,
12,
84,
3916,
18,
10492,
1435,
3719,
288,
1377,
19198,
3440,
273,
261,
18731,
13,
284,
5058,
18,
588,
12,
84,
3916,
4766,
11794,
263,
10492,
10663,
1377,
775,
288,
3639,
327,
3440,
18,
588,
780,
12,
84,
653,
1769,
1377,
289,
1044,
261,
4841,
14785,
425,
13,
288,
3639,
327,
15502,
397,
31352,
397,
15502,
31,
1377,
289,
565,
289,
565,
775,
288,
1377,
19198,
400,
273,
19198,
18,
588,
3405,
2932,
6833,
3113,
293,
3916,
16,
4766,
10792,
14352,
10663,
1377,
327,
400,
18,
588,
780,
12,
84,
653,
1769,
565,
289,
1044,
261,
4841,
14785,
619,
13,
288,
1377,
327,
15502,
397,
31352,
397,
15502,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5070,
780,
12,
780,
31352,
16,
6458,
293,
3916,
13,
565,
1216,
1860,
288,
565,
309,
261,
74,
5058,
18,
12298,
653,
12,
84,
3916,
18,
10492,
1435,
3719,
288,
1377,
19198,
3440,
273,
261,
18731,
13,
284,
5058,
18,
588,
12,
84,
3916,
4766,
11794,
263,
10492,
10663,
1377,
775,
288,
3639,
327,
3440,
18,
588,
780,
12,
84,
653,
1769,
1377,
289,
1044,
261,
4841,
14785,
425,
13,
288,
3639,
327,
15502,
397,
31352,
397,
15502,
31,
1377,
289,
565,
289,
565,
775,
288,
1377,
19198,
400,
273,
19198,
18,
588,
3405,
2932,
6833,
3113,
293,
3916,
16,
4766,
10792,
14352,
10663,
1377,
327,
400,
18,
588,
780,
12,
84,
653,
1769,
565,
289,
2
] |
PatchEdit.MidiOut.writeShortMessage(getPort(), (byte)(0xB0+(getChannel()-1)), (byte)0x00, (byte)0x65);
|
send(0xB0+(getChannel()-1), 0x00, 0x65);
|
public void setBankNum(int bankNum) { try { // BnH 00H mmH n=MIDI channel number, mm=65H PatchEdit.MidiOut.writeShortMessage(getPort(), (byte)(0xB0+(getChannel()-1)), (byte)0x00, (byte)0x65); // BnH 00H llH n=MIDI channel number, ll=00H PatchEdit.MidiOut.writeShortMessage(getPort(), (byte)(0xB0+(getChannel()-1)), (byte)0x20, (byte)0); } catch (Exception e) {}; }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/165ffcd01f56d7b9e9866275ef5b0ae4853e9778/RolandXV5080PerfBankDriver.java/clean/JSynthLib/synthdrivers/RolandXV5080/RolandXV5080PerfBankDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15268,
2304,
2578,
12,
474,
11218,
2578,
13,
288,
565,
775,
288,
1377,
368,
605,
82,
44,
9631,
44,
9740,
44,
225,
290,
33,
49,
30218,
1904,
1300,
16,
9740,
33,
9222,
44,
1377,
1366,
12,
20,
20029,
20,
15,
12,
588,
2909,
1435,
17,
21,
3631,
374,
92,
713,
16,
374,
92,
9222,
1769,
1377,
368,
605,
82,
44,
9631,
44,
6579,
44,
225,
290,
33,
49,
30218,
1904,
1300,
16,
6579,
33,
713,
44,
1377,
12042,
4666,
18,
20711,
77,
1182,
18,
2626,
4897,
1079,
12,
588,
2617,
9334,
261,
7229,
21433,
20,
20029,
20,
15,
12,
588,
2909,
1435,
17,
21,
13,
3631,
261,
7229,
13,
20,
92,
3462,
16,
261,
7229,
13,
20,
1769,
565,
289,
1044,
261,
503,
425,
13,
2618,
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,
1071,
918,
15268,
2304,
2578,
12,
474,
11218,
2578,
13,
288,
565,
775,
288,
1377,
368,
605,
82,
44,
9631,
44,
9740,
44,
225,
290,
33,
49,
30218,
1904,
1300,
16,
9740,
33,
9222,
44,
1377,
1366,
12,
20,
20029,
20,
15,
12,
588,
2909,
1435,
17,
21,
3631,
374,
92,
713,
16,
374,
92,
9222,
1769,
1377,
368,
605,
82,
44,
9631,
44,
6579,
44,
225,
290,
33,
49,
30218,
1904,
1300,
16,
6579,
33,
713,
44,
1377,
12042,
4666,
18,
20711,
77,
1182,
18,
2626,
4897,
1079,
12,
588,
2617,
9334,
261,
7229,
21433,
20,
20029,
20,
15,
12,
588,
2909,
1435,
17,
21,
13,
3631,
261,
7229,
13,
20,
92,
3462,
16,
261,
7229,
13,
2
] |
if(clazz.isPrimitive()) {
|
if (clazz.isPrimitive()) {
|
public int canContainComponent(String name) { String cName = capitalizeFirstLetter(name); Method method = getMethod("add" + cName); if (method != null) { //getLogger().debug( // "Found add {} method in class {}", cName, objClass.getName()); return AS_COLLECTION; } String dName = Introspector.decapitalize(name); PropertyDescriptor propertyDescriptor = getPropertyDescriptor(dName); if (propertyDescriptor != null) { Method setterMethod = propertyDescriptor.getWriteMethod(); if (setterMethod != null) { //getLogger().debug( // "Found setter method for property [{}] in class {}", name, // objClass.getName()); Class[] classArray = setterMethod.getParameterTypes(); if(classArray.length != 1) { return NOT_FOUND; } else { Class clazz = classArray[0]; Package p = clazz.getPackage(); if(clazz.isPrimitive()) { return AS_PROPERTY; } else if("java.lang".equals(p.getName())) { return AS_PROPERTY; } else { return AS_COMPONENT; } } } } // we have failed return NOT_FOUND; }
|
53733 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53733/d3806b8259a72fed9836fbf64e5ec69286d504ac/PropertySetter.java/buggy/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
848,
22928,
1841,
12,
780,
508,
13,
288,
565,
514,
276,
461,
273,
17451,
3759,
13938,
12,
529,
1769,
565,
2985,
707,
273,
6272,
2932,
1289,
6,
397,
276,
461,
1769,
565,
309,
261,
2039,
480,
446,
13,
288,
1377,
368,
588,
3328,
7675,
4148,
12,
1377,
368,
225,
315,
2043,
527,
2618,
707,
316,
667,
3728,
16,
276,
461,
16,
1081,
797,
18,
17994,
10663,
1377,
327,
5355,
67,
25964,
31,
565,
289,
565,
514,
302,
461,
273,
3094,
26170,
280,
18,
4924,
438,
7053,
554,
12,
529,
1769,
3639,
26761,
1272,
3187,
273,
3911,
3187,
12,
72,
461,
1769,
565,
309,
261,
4468,
3187,
480,
446,
13,
288,
1377,
2985,
7794,
1305,
273,
1272,
3187,
18,
588,
3067,
1305,
5621,
5411,
309,
261,
18062,
1305,
480,
446,
13,
288,
3639,
368,
588,
3328,
7675,
4148,
12,
3639,
368,
225,
315,
2043,
7794,
707,
364,
1272,
17936,
316,
667,
3728,
16,
508,
16,
3639,
368,
225,
1081,
797,
18,
17994,
10663,
3639,
1659,
8526,
667,
1076,
273,
7794,
1305,
18,
588,
1662,
2016,
5621,
3639,
309,
12,
1106,
1076,
18,
2469,
480,
404,
13,
288,
1850,
327,
4269,
67,
9294,
31,
3639,
289,
469,
288,
1850,
1659,
4003,
273,
667,
1076,
63,
20,
15533,
1850,
7508,
293,
273,
4003,
18,
588,
2261,
5621,
1850,
309,
261,
830,
3638,
18,
291,
9840,
10756,
288,
5411,
327,
5355,
67,
9900,
31,
1850,
289,
469,
309,
2932,
6290,
18,
4936,
9654,
14963,
12,
84,
18,
17994,
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,
509,
848,
22928,
1841,
12,
780,
508,
13,
288,
565,
514,
276,
461,
273,
17451,
3759,
13938,
12,
529,
1769,
565,
2985,
707,
273,
6272,
2932,
1289,
6,
397,
276,
461,
1769,
565,
309,
261,
2039,
480,
446,
13,
288,
1377,
368,
588,
3328,
7675,
4148,
12,
1377,
368,
225,
315,
2043,
527,
2618,
707,
316,
667,
3728,
16,
276,
461,
16,
1081,
797,
18,
17994,
10663,
1377,
327,
5355,
67,
25964,
31,
565,
289,
565,
514,
302,
461,
273,
3094,
26170,
280,
18,
4924,
438,
7053,
554,
12,
529,
1769,
3639,
26761,
1272,
3187,
273,
3911,
3187,
12,
72,
461,
1769,
565,
309,
261,
4468,
3187,
480,
446,
13,
288,
1377,
2985,
7794,
1305,
273,
1272,
2
] |
}
|
}
|
public static DSASignature sign(DSAGroup g, DSAPrivateKey x, BigInteger k, BigInteger m) { BigInteger r=g.getG().modPow(k, g.getP()).mod(g.getQ()); BigInteger kInv=k.modInverse(g.getQ()); return sign(g, x, r, kInv, m); }
|
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/edaeb923fd324e56c4fc8ef2d5ce7170c1f25bfd/DSA.java/clean/src/freenet/crypt/DSA.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
463,
5233,
5374,
1573,
12,
19748,
1114,
314,
16,
6862,
565,
463,
5233,
10824,
619,
16,
6862,
565,
10246,
417,
16,
4405,
565,
10246,
312,
13,
288,
202,
202,
24198,
436,
33,
75,
18,
588,
43,
7675,
1711,
28289,
12,
79,
16,
314,
18,
588,
52,
1435,
2934,
1711,
12,
75,
18,
588,
53,
10663,
9506,
202,
24198,
417,
3605,
33,
79,
18,
1711,
16376,
12,
75,
18,
588,
53,
10663,
202,
202,
2463,
1573,
12,
75,
16,
619,
16,
436,
16,
417,
3605,
16,
312,
1769,
565,
289,
225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
463,
5233,
5374,
1573,
12,
19748,
1114,
314,
16,
6862,
565,
463,
5233,
10824,
619,
16,
6862,
565,
10246,
417,
16,
4405,
565,
10246,
312,
13,
288,
202,
202,
24198,
436,
33,
75,
18,
588,
43,
7675,
1711,
28289,
12,
79,
16,
314,
18,
588,
52,
1435,
2934,
1711,
12,
75,
18,
588,
53,
10663,
9506,
202,
24198,
417,
3605,
33,
79,
18,
1711,
16376,
12,
75,
18,
588,
53,
10663,
202,
202,
2463,
1573,
12,
75,
16,
619,
16,
436,
16,
417,
3605,
16,
312,
1769,
565,
289,
225,
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
] |
return null;
|
Field f[] = new Field[8]; Vector v = new Vector(); f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); f[1] = new Field(connection,new String("TABLE_SCHEM"),iVarcharOid,32); f[2] = new Field(connection,new String("TABLE_NAME"),iVarcharOid,32); f[3] = new Field(connection,new String("COLUMN_NAME"),iVarcharOid,32); f[4] = new Field(connection,new String("GRANTOR"),iVarcharOid,32); f[5] = new Field(connection,new String("GRANTEE"),iVarcharOid,32); f[6] = new Field(connection,new String("PRIVILEGE"),iVarcharOid,32); f[7] = new Field(connection,new String("IS_GRANTABLE"),iVarcharOid,32); ResultSet r = connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner ORDER BY relname"); while(r.next()) { byte[][] tuple = new byte[8][0]; tuple[0] = tuple[1]= "".getBytes(); DriverManager.println("relname=\""+r.getString(1)+"\" relacl=\""+r.getString(2)+"\""); } return new ResultSet(connection,f,v,"OK",1);
|
public java.sql.ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { // XXX-Not Implemented as grant is broken return null; //Field f[] = new Field[8]; //Vector v = new Vector(); // //f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); //f[1] = new Field(connection,new String("TABLE_SCHEM"),iVarcharOid,32); //f[2] = new Field(connection,new String("TABLE_NAME"),iVarcharOid,32); //f[3] = new Field(connection,new String("COLUMN_NAME"),iVarcharOid,32); //f[4] = new Field(connection,new String("GRANTOR"),iVarcharOid,32); //f[5] = new Field(connection,new String("GRANTEE"),iVarcharOid,32); //f[6] = new Field(connection,new String("PRIVILEGE"),iVarcharOid,32); //f[7] = new Field(connection,new String("IS_GRANTABLE"),iVarcharOid,32); // //// This is taken direct from the psql source //ResultSet r = connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner ORDER BY relname"); //while(r.next()) { //byte[][] tuple = new byte[8][0]; //tuple[0] = tuple[1]= "default".getBytes(); // //v.addElement(tuple); //} // //return new ResultSet(connection,f,v,"OK",1); }
|
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/4e9dd952966b600951f05ab2913b5b97936d42ba/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
6716,
27692,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
11329,
17,
1248,
18788,
487,
7936,
353,
12933,
565,
327,
446,
31,
565,
368,
974,
284,
8526,
273,
394,
2286,
63,
28,
15533,
565,
368,
5018,
331,
273,
394,
5589,
5621,
565,
368,
565,
368,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
14130,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
55,
10390,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
1985,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
11009,
67,
1985,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
6997,
6856,
916,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
6997,
1258,
1448,
41,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7698,
4136,
900,
7113,
6,
3631,
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,
2252,
18,
4669,
18,
13198,
6716,
27692,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
11329,
17,
1248,
18788,
487,
7936,
353,
12933,
565,
327,
446,
31,
565,
368,
974,
284,
8526,
273,
394,
2286,
63,
28,
15533,
565,
368,
5018,
331,
273,
394,
5589,
5621,
565,
368,
565,
368,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
14130,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
55,
10390,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
368,
2
] |
String s = value.toString();
|
String s = value != null ? value.toString() : "";
|
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); setHorizontalAlignment(LEFT); if (isSelected) { setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground()); } else { setBackground(list.getBackground()); setForeground(list.getForeground()); } setEnabled(list.isEnabled()); setFont(list.getFont()); // Use focusCellHighlightBorder when renderer has focus and // noFocusBorder otherwise if (cellHasFocus) setBorder(UIManager.getBorder("List.focusCellHighlightBorder")); else setBorder(noFocusBorder); return this; }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/DefaultListCellRenderer.java/clean/libraries/javalib/external/classpath/javax/swing/DefaultListCellRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5435,
10033,
4020,
6747,
1841,
12,
46,
682,
666,
16,
1033,
460,
16,
4766,
7734,
509,
770,
16,
1250,
20956,
16,
4766,
7734,
1250,
2484,
5582,
9233,
13,
225,
288,
565,
514,
272,
273,
460,
480,
446,
692,
460,
18,
10492,
1435,
294,
1408,
31,
565,
7883,
12,
87,
1769,
565,
444,
3817,
14886,
12,
3767,
1769,
565,
444,
14457,
11535,
12,
10066,
1769,
565,
309,
261,
291,
7416,
13,
1377,
288,
3639,
31217,
12,
1098,
18,
588,
6233,
8199,
10663,
3639,
444,
23206,
12,
1098,
18,
588,
6233,
23206,
10663,
1377,
289,
565,
469,
1377,
288,
3639,
31217,
12,
1098,
18,
588,
8199,
10663,
3639,
444,
23206,
12,
1098,
18,
588,
23206,
10663,
1377,
289,
565,
12888,
12,
1098,
18,
291,
1526,
10663,
565,
20454,
12,
1098,
18,
588,
5711,
10663,
565,
368,
2672,
7155,
4020,
16205,
8107,
1347,
5690,
711,
7155,
471,
565,
368,
1158,
9233,
8107,
3541,
565,
309,
261,
3855,
5582,
9233,
13,
1377,
25715,
12,
5370,
1318,
18,
588,
8107,
2932,
682,
18,
13923,
4020,
16205,
8107,
7923,
1769,
565,
469,
1377,
25715,
12,
2135,
9233,
8107,
1769,
565,
327,
333,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5435,
10033,
4020,
6747,
1841,
12,
46,
682,
666,
16,
1033,
460,
16,
4766,
7734,
509,
770,
16,
1250,
20956,
16,
4766,
7734,
1250,
2484,
5582,
9233,
13,
225,
288,
565,
514,
272,
273,
460,
480,
446,
692,
460,
18,
10492,
1435,
294,
1408,
31,
565,
7883,
12,
87,
1769,
565,
444,
3817,
14886,
12,
3767,
1769,
565,
444,
14457,
11535,
12,
10066,
1769,
565,
309,
261,
291,
7416,
13,
1377,
288,
3639,
31217,
12,
1098,
18,
588,
6233,
8199,
10663,
3639,
444,
23206,
12,
1098,
18,
588,
6233,
23206,
10663,
1377,
289,
565,
469,
1377,
288,
3639,
31217,
12,
1098,
18,
588,
8199,
10663,
3639,
444,
23206,
12,
1098,
18,
588,
23206,
10663,
1377,
289,
565,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.