Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 24069 Details for
Bug 100549
Strange binding keys from AST on class file of nested type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch100549_org.eclipse.jdt.core.tests.model.txt (text/plain), 2.16 KB, created by
Jerome Lanneluc
on 2005-06-28 06:11:23 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-06-28 06:11:23 EDT
Size:
2.16 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/dom/ASTConverterTest2.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTest2.java,v >retrieving revision 1.157 >diff -u -r1.157 ASTConverterTest2.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverterTest2.java 16 Jun 2005 08:40:56 -0000 1.157 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverterTest2.java 28 Jun 2005 10:08:46 -0000 >@@ -42,7 +42,7 @@ > } > > static { >-// TESTS_NAMES = new String[] {"test0575"}; >+// TESTS_NAMES = new String[] {"test0576"}; > // TESTS_NUMBERS = new int[] { 606 }; > } > public static Test suite() { >@@ -5338,6 +5338,34 @@ > } > } > >+ /* >+ * Ensures that the binding key of a raw member type is correct. >+ * (regression test for bug 100549 Strange binding keys from AST on class file of nested type) >+ */ >+ public void test0576() throws CoreException, IOException { >+ try { >+ IJavaProject project = createJavaProject("P1", new String[] {""}, new String[] {"CONVERTER_JCL15_LIB"}, "", "1.5"); >+ addLibrary(project, "lib.jar", "src.zip", new String[] { >+ "/P1/p/X.java", >+ "package p;\n" + >+ "public class X<T> {\n" + >+ " /*start*/public class Member {\n" + >+ " }/*end*/\n" + >+ "}", >+ }, "1.5"); >+ IClassFile classFile = getClassFile("P1", "/P1/lib.jar", "p", "X$Member.class"); >+ String source = classFile.getSource(); >+ MarkerInfo markerInfo = new MarkerInfo(source); >+ markerInfo.astStarts = new int[] {source.indexOf("/*start*/") + "/*start*/".length()}; >+ markerInfo.astEnds = new int[] {source.indexOf("/*end*/")}; >+ ASTNode node = buildAST(markerInfo, classFile); >+ ITypeBinding binding = ((TypeDeclaration) node).resolveBinding(); >+ assertBindingKeyEquals("Lp/X<TT;>.Member;", binding.getKey()); >+ } finally { >+ deleteProject("P1"); >+ } >+ } >+ > public void test0606() throws JavaModelException { > ICompilationUnit sourceUnit = getCompilationUnit("Converter", "src", "test0606", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ > ASTNode result = runConversion(sourceUnit, true);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 100549
:
24068
| 24069