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 16710 Details for
Bug 81417
[dom] getJavaElement() throws a NPE for WildcardBinding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
org.eclipse.jdt.core.tests.model_patch.txt (text/plain), 1.60 KB, created by
Jerome Lanneluc
on 2004-12-16 13:14:00 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-12-16 13:14:00 EST
Size:
1.60 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java,v >retrieving revision 1.12 >diff -u -r1.12 ASTModelBridgeTests.java >--- src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java 15 Dec 2004 22:31:02 -0000 1.12 >+++ src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java 16 Dec 2004 18:09:49 -0000 >@@ -531,10 +531,6 @@ > assertTrue("Element should exist", element.exists()); > } > >- /* >- * Ensures that the IJavaElement of an IBinding representing a parameter type is correct. >- * (regression test for bug 78930 ITypeBinding#getJavaElement() throws NPE for type variable) >- */ > public void testTypeParameter() throws JavaModelException { > ASTNode node = buildAST( > "public class X</*start*/T/*end*/> {\n" + >@@ -549,6 +545,26 @@ > element > ); > assertTrue("Element should exist", element.exists()); >+ } >+ >+ /* >+ * Ensures that the IJavaElement of an IBinding representing a wild card is correct. >+ * (regression test for bug ?) >+ */ >+ public void testWildCard() throws JavaModelException { >+ ASTNode node = buildAST( >+ "public class X<T> {\n" + >+ " X</*start*/? extends Exception/*end*/> field;\n" + >+ "}" >+ ); >+ IBinding binding = ((WildcardType) node).resolveBinding(); >+ assertNotNull("No binding", binding); >+ IJavaElement element = binding.getJavaElement(); >+ assertElementEquals( >+ "Unexpected Java element", >+ "<null>", >+ element >+ ); > } > >
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 81417
:
16709
| 16710