Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Unexpected binding returned
Unexpected binding returned [message #880982] Sun, 03 June 2012 15:02 Go to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi,

I pass an IJavaElement that represents a constructor (handle ident:

=myProject/\/Library\/Java\/JavaVirtualMachines\/1.6.0_26-b03-383.jdk\/Contents\/Classes\/classes.jar<java.lang(AbstractMethodError.class[AbstractMethodError~AbstractMethodError~Ljava.lang.String;

)
to the following method and would expect a MethodBinding in the array of
bindings.
public String getFullURI(IJavaElement javaElement) {
ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setProject(javaElement.getJavaProject());
IBinding[] bindings = parser.createBindings(new IJavaElement[] {
javaElement }, null);
if (bindings[0] != null) {
return bindings[0].toString();
}
return null;
}

However, the array contains the type binding for AbstractMethodError.
How can that happen and is there something that I can do about it?

Regards,
Sebastian
Re: Unexpected binding returned [message #881076 is a reply to message #880982] Sun, 03 June 2012 20:59 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
For the records: this issue has moved to https://bugs.eclipse.org/bugs/show_bug.cgi?id=381503
Stephan
Previous Topic:List sub packages of a IPackageFragment
Next Topic:Can C, python, fortran, java languages be highlighted in one document of Eclipse?
Goto Forum:
  


Current Time: Sat May 04 03:01:42 GMT 2024

Powered by FUDForum. Page generated in 0.02906 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top