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 80430 Details for
Bug 205860
ASTParser.createBindings() returns [null]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Simplified tests
205860.txt (text/plain), 1.99 KB, created by
Jerome Lanneluc
on 2007-10-16 05:21:29 EDT
(
hide
)
Description:
Simplified tests
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2007-10-16 05:21:29 EDT
Size:
1.99 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java,v >retrieving revision 1.49 >diff -u -r1.49 ASTModelBridgeTests.java >--- src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java 16 Mar 2007 18:35:31 -0000 1.49 >+++ src/org/eclipse/jdt/core/tests/dom/ASTModelBridgeTests.java 16 Oct 2007 09:19:55 -0000 >@@ -1458,4 +1458,34 @@ > "LA;.foo(Ljava/lang/String;)Ljava/lang/String;", > bindings); > } >+ >+ /* >+ * Ensures that the correct IBinding is created for an IField starting with a 'L' >+ * (regression test for 205860 ASTParser.createBindings() returns [null]) >+ */ >+ public void testCreateBindings20() throws JavaModelException { >+ IClassFile classFile = getClassFile("P", getExternalJCLPathString("1.5"), "javax.swing", "BoxLayout.class"); >+ IField field = classFile.getType().getField("LINE_AXIS"); >+ ASTParser p = ASTParser.newParser(AST.JLS3); >+ p.setProject(field.getJavaProject()); >+ IBinding[] bindings = p.createBindings(new IJavaElement[]{field}, null); >+ assertBindingsEqual( >+ "Ljavax/swing/BoxLayout;.LINE_AXIS)I", >+ bindings); >+ } >+ >+ /* >+ * Ensures that the correct IBinding is created for an IField starting with a 'T' >+ * (regression test for 205860 ASTParser.createBindings() returns [null]) >+ */ >+ public void testCreateBindings21() throws JavaModelException { >+ IClassFile classFile = getClassFile("P", getExternalJCLPathString("1.5"), "java.util", "Calendar.class"); >+ IField field = classFile.getType().getField("THURSDAY"); >+ ASTParser p = ASTParser.newParser(AST.JLS3); >+ p.setProject(field.getJavaProject()); >+ IBinding[] bindings = p.createBindings(new IJavaElement[]{field}, null); >+ assertBindingsEqual( >+ "Ljava/util/Calendar;.THURSDAY)I", >+ bindings); >+ } > }
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 205860
:
80053
|
80056
|
80074
|
80430
|
80562