Lines 107-113
Link Here
|
107 |
|
107 |
|
108 |
static { |
108 |
static { |
109 |
// TESTS_NAMES = new String[] {"test0602"}; |
109 |
// TESTS_NAMES = new String[] {"test0602"}; |
110 |
// TESTS_NUMBERS = new int[] { 642, 643, 644 }; |
110 |
// TESTS_NUMBERS = new int[] { 645 }; |
111 |
} |
111 |
} |
112 |
public static Test suite() { |
112 |
public static Test suite() { |
113 |
return buildModelTestSuite(ASTConverterTestAST3_2.class); |
113 |
return buildModelTestSuite(ASTConverterTestAST3_2.class); |
Lines 7686-7689
Link Here
|
7686 |
workingCopy.discardWorkingCopy(); |
7686 |
workingCopy.discardWorkingCopy(); |
7687 |
} |
7687 |
} |
7688 |
} |
7688 |
} |
|
|
7689 |
|
7690 |
/** |
7691 |
* http://dev.eclipse.org/bugs/show_bug.cgi?id=136972 |
7692 |
*/ |
7693 |
public void test0645() throws JavaModelException { |
7694 |
ICompilationUnit workingCopy = null; |
7695 |
try { |
7696 |
String contents = |
7697 |
"public class X {\n" + |
7698 |
" static {\n" + |
7699 |
" class A\n" + |
7700 |
" Object o = new Object(){\n" + |
7701 |
" void test(){\n" + |
7702 |
" }\n" + |
7703 |
" };\n" + |
7704 |
" }\n" + |
7705 |
"}"; |
7706 |
workingCopy = getWorkingCopy("/Converter/src/X.java", true/*resolve*/); |
7707 |
ASTNode node = buildAST( |
7708 |
contents, |
7709 |
workingCopy, |
7710 |
false, |
7711 |
true); |
7712 |
assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); |
7713 |
} finally { |
7714 |
if (workingCopy != null) |
7715 |
workingCopy.discardWorkingCopy(); |
7716 |
} |
7717 |
} |
7689 |
} |
7718 |
} |