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 21877 Details for
Bug 96633
getJavaElement returns null for Object[] array binding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch96633_org.eclipse.jdt.core.tests.model.txt (text/plain), 1.41 KB, created by
Jerome Lanneluc
on 2005-05-27 09:51:35 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-05-27 09:51:35 EDT
Size:
1.41 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.30 >diff -u -r1.30 ASTModelBridgeTests.java >--- src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java 25 May 2005 16:29:41 -0000 1.30 >+++ src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java 27 May 2005 13:50:05 -0000 >@@ -154,6 +154,26 @@ > } > > /* >+ * Ensures that the IJavaElement of an IBinding representing an array type is correct. >+ */ >+ public void testArrayType() throws JavaModelException { >+ ASTNode node = buildAST( >+ "public class X {\n" + >+ " /*start*/Object[]/*end*/ field;\n" + >+ "}" >+ ); >+ IBinding binding = ((ArrayType) node).resolveBinding(); >+ assertNotNull("No binding", binding); >+ IJavaElement element = binding.getJavaElement(); >+ assertElementEquals( >+ "Unexpected Java element", >+ "Object [in Object.class [in java.lang [in "+ getExternalJCLPathString("1.5") + " [in P]]]]", >+ element >+ ); >+ assertTrue("Element should exist", element.exists()); >+ } >+ >+ /* > * Ensures that the IJavaElement of an IBinding representing a method coming from a class file is correct. > * (regression test for bug 91445 IMethodBinding.getJavaElement() returns an "unopen" IMethod) > */
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 96633
:
21876
| 21877