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 22438 Details for
Bug 98473
AST binding: type variable reports as 'isTopLevel'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD of org.eclipse.jdt.core.tests.model
patch_98473_tests.txt (text/plain), 1.80 KB, created by
Olivier Thomann
on 2005-06-06 14:02:47 EDT
(
hide
)
Description:
Apply on HEAD of org.eclipse.jdt.core.tests.model
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-06 14:02:47 EDT
Size:
1.80 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java,v >retrieving revision 1.161 >diff -u -r1.161 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 3 Jun 2005 16:58:46 -0000 1.161 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 6 Jun 2005 18:03:01 -0000 >@@ -37,7 +37,7 @@ > } > > static { >-// TESTS_NUMBERS = new int[] { 185, 186 }; >+// TESTS_NUMBERS = new int[] { 188 }; > // TESTS_NAMES = new String[] {"test0187"}; > } > public static Test suite() { >@@ -5594,5 +5594,30 @@ > "LX~Y<LX;:1TT;>;", > type.resolveBinding()); > } >+ >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=98473 >+ */ >+ public void test0188() throws JavaModelException { >+ this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); >+ final String contents = >+ "import java.util.List;\n" + >+ "\n" + >+ "public class X {\n" + >+ " class Counter<T, /*start*/L extends List<T>/*end*/> {\n" + >+ " private L _attribute;\n" + >+ " }\n" + >+ "}"; >+ ASTNode node = buildAST( >+ contents, >+ this.workingCopy); >+ assertEquals("Not a type parameter", ASTNode.TYPE_PARAMETER, node.getNodeType()); >+ ITypeBinding typeBinding = ((TypeParameter) node).resolveBinding(); >+ assertNotNull("No binding", typeBinding); >+ assertFalse("Cannot be top level", typeBinding.isTopLevel()); >+ assertFalse("A class", typeBinding.isClass()); >+ assertFalse("An interface", typeBinding.isInterface()); >+ assertTrue("Not a type variable", typeBinding.isTypeVariable()); >+ } > > } >\ No newline at end of file
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 98473
:
22437
| 22438