Lines 122-128
Link Here
|
122 |
static { |
122 |
static { |
123 |
// TESTS_NAMES = new String[] {"test0602"}; |
123 |
// TESTS_NAMES = new String[] {"test0602"}; |
124 |
// TESTS_RANGE = new int[] { 670, -1 }; |
124 |
// TESTS_RANGE = new int[] { 670, -1 }; |
125 |
// TESTS_NUMBERS = new int[] { 691 }; |
125 |
// TESTS_NUMBERS = new int[] { 692 }; |
126 |
} |
126 |
} |
127 |
public static Test suite() { |
127 |
public static Test suite() { |
128 |
return buildModelTestSuite(ASTConverterTestAST3_2.class); |
128 |
return buildModelTestSuite(ASTConverterTestAST3_2.class); |
Lines 9803-9806
Link Here
|
9803 |
ASTNode node = parser.createAST(null); |
9803 |
ASTNode node = parser.createAST(null); |
9804 |
assertNotNull("No node", node); |
9804 |
assertNotNull("No node", node); |
9805 |
} |
9805 |
} |
|
|
9806 |
/* |
9807 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=242961 |
9808 |
*/ |
9809 |
public void test0692() throws JavaModelException { |
9810 |
ICompilationUnit workingCopy = null; |
9811 |
try { |
9812 |
String contents = |
9813 |
"/*start*/public class X {\n" + |
9814 |
" int k;\n" + |
9815 |
" Zork z;\n" + |
9816 |
"}/*end*/"; |
9817 |
workingCopy = getWorkingCopy("/Converter/src/X.java", true/*resolve*/); |
9818 |
TypeDeclaration typeDeclaration = (TypeDeclaration) buildAST( |
9819 |
contents, |
9820 |
workingCopy, |
9821 |
false, |
9822 |
false, |
9823 |
false); |
9824 |
ITypeBinding binding = typeDeclaration.resolveBinding(); |
9825 |
IVariableBinding[] declaredFields = binding.getDeclaredFields(); |
9826 |
assertEquals("Wrong size", 1, declaredFields.length); |
9827 |
} finally { |
9828 |
if (workingCopy != null) { |
9829 |
workingCopy.discardWorkingCopy(); |
9830 |
} |
9831 |
} |
9832 |
} |
9806 |
} |
9833 |
} |