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 80074 Details for
Bug 205860
ASTParser.createBindings() returns [null]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
New regression tests
patch_205860_tests.txt (text/plain), 2.51 KB, created by
Olivier Thomann
on 2007-10-10 12:47:24 EDT
(
hide
)
Description:
New regression tests
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-10-10 12:47:24 EDT
Size:
2.51 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 10 Oct 2007 16:45:45 -0000 >@@ -42,7 +42,7 @@ > // All specified tests which do not belong to the class are skipped... > static { > // TESTS_PREFIX = "testBug86380"; >-// TESTS_NAMES = new String[] { "testCreateBindings19" }; >+// TESTS_NAMES = new String[] { "testCreateBindings20" }; > // TESTS_NUMBERS = new int[] { 83230 }; > // TESTS_RANGE = new int[] { 83304, -1 }; > } >@@ -1458,4 +1458,36 @@ > "LA;.foo(Ljava/lang/String;)Ljava/lang/String;", > bindings); > } >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=205860 >+ */ >+ public void testCreateBindings20() throws JavaModelException { >+ IClassFile classFile = getClassFile("P", getExternalJCLPathString("1.5"), "javax.swing", "BoxLayout.class"); >+ IType type = classFile.getType(); >+ IField field = type.getField("LINE_AXIS"); >+ assertNotNull("No field", field); >+ assertTrue("Must exist", field.exists()); >+ ASTParser p = ASTParser.newParser(AST.JLS3); >+ p.setProject(field.getJavaProject()); >+ IBinding[] createBindings= p.createBindings(new IJavaElement[]{field}, null); >+ assertNotNull("No binding", createBindings); >+ assertEquals("Wrong size", 1, createBindings.length); >+ assertNotNull("Should not be null", createBindings[0]); >+ } >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=205860 >+ */ >+ public void testCreateBindings21() throws JavaModelException { >+ IClassFile classFile = getClassFile("P", getExternalJCLPathString("1.5"), "java.util", "Calendar.class"); >+ IType type = classFile.getType(); >+ IField field = type.getField("THURSDAY"); >+ assertNotNull("No field", field); >+ assertTrue("Must exist", field.exists()); >+ ASTParser p = ASTParser.newParser(AST.JLS3); >+ p.setProject(field.getJavaProject()); >+ IBinding[] createBindings= p.createBindings(new IJavaElement[]{field}, null); >+ assertNotNull("No binding", createBindings); >+ assertEquals("Wrong size", 1, createBindings.length); >+ assertNotNull("Should not be null", createBindings[0]); >+ } > }
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