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 220043 Details for
Bug 387576
IllegalArgumentException on IMethodBinding.getJavaElement
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Failing test
387576_failing_test.patch (text/plain), 1.25 KB, created by
Tomasz Zarna
on 2012-08-20 08:13:42 EDT
(
hide
)
Description:
Failing test
Filename:
MIME Type:
Creator:
Tomasz Zarna
Created:
2012-08-20 08:13:42 EDT
Size:
1.25 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >index e67367d..aff8f90 100644 >--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >@@ -11452,5 +11452,24 @@ public class ASTConverter15Test extends ConverterTestSetup { > deleteProject(jp); > } > } >+ public void testBug387576() throws JavaModelException { >+ this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); >+ CompilationUnit unit = (CompilationUnit) buildAST( >+ "public class X {\n" + >+ " public static <A$> void p(A$ a) {}\n" + >+ "}", >+ this.workingCopy, >+ true, >+ true, >+ true); >+ BodyDeclaration bodyDeclaration = (BodyDeclaration) getASTNode(unit, 0, 0); >+ assertTrue(bodyDeclaration instanceof MethodDeclaration); >+ MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; >+ IMethodBinding binding = methodDeclaration.resolveBinding(); >+ >+ IJavaElement javaElement = binding.getJavaElement(); >+ >+ assertNotNull(javaElement); >+ } > > } >\ 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 387576
: 220043