Lines 42-48
Link Here
|
42 |
} |
42 |
} |
43 |
|
43 |
|
44 |
static { |
44 |
static { |
45 |
// TESTS_NAMES = new String[] {"test0575"}; |
45 |
// TESTS_NAMES = new String[] {"test0576"}; |
46 |
// TESTS_NUMBERS = new int[] { 606 }; |
46 |
// TESTS_NUMBERS = new int[] { 606 }; |
47 |
} |
47 |
} |
48 |
public static Test suite() { |
48 |
public static Test suite() { |
Lines 5338-5343
Link Here
|
5338 |
} |
5338 |
} |
5339 |
} |
5339 |
} |
5340 |
|
5340 |
|
|
|
5341 |
/* |
5342 |
* Ensures that the binding key of a raw member type is correct. |
5343 |
* (regression test for bug 100549 Strange binding keys from AST on class file of nested type) |
5344 |
*/ |
5345 |
public void test0576() throws CoreException, IOException { |
5346 |
try { |
5347 |
IJavaProject project = createJavaProject("P1", new String[] {""}, new String[] {"CONVERTER_JCL15_LIB"}, "", "1.5"); |
5348 |
addLibrary(project, "lib.jar", "src.zip", new String[] { |
5349 |
"/P1/p/X.java", |
5350 |
"package p;\n" + |
5351 |
"public class X<T> {\n" + |
5352 |
" /*start*/public class Member {\n" + |
5353 |
" }/*end*/\n" + |
5354 |
"}", |
5355 |
}, "1.5"); |
5356 |
IClassFile classFile = getClassFile("P1", "/P1/lib.jar", "p", "X$Member.class"); |
5357 |
String source = classFile.getSource(); |
5358 |
MarkerInfo markerInfo = new MarkerInfo(source); |
5359 |
markerInfo.astStarts = new int[] {source.indexOf("/*start*/") + "/*start*/".length()}; |
5360 |
markerInfo.astEnds = new int[] {source.indexOf("/*end*/")}; |
5361 |
ASTNode node = buildAST(markerInfo, classFile); |
5362 |
ITypeBinding binding = ((TypeDeclaration) node).resolveBinding(); |
5363 |
assertBindingKeyEquals("Lp/X<TT;>.Member;", binding.getKey()); |
5364 |
} finally { |
5365 |
deleteProject("P1"); |
5366 |
} |
5367 |
} |
5368 |
|
5341 |
public void test0606() throws JavaModelException { |
5369 |
public void test0606() throws JavaModelException { |
5342 |
ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0606", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ |
5370 |
ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0606", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ |
5343 |
ASTNode result = runConversion(sourceUnit, true); |
5371 |
ASTNode result = runConversion(sourceUnit, true); |