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: 3098
Registered: July 2009
Senior Member

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


to the following method and would expect a MethodBinding in the array of
public String getFullURI(IJavaElement javaElement) {
ASTParser parser = ASTParser.newParser(AST.JLS3);
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?

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: 1598
Registered: July 2009
Senior Member
For the records: this issue has moved to
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: Wed Apr 25 03:16:22 GMT 2018

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

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