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: 3097
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: 1527
Registered: July 2009
Senior Member
For the records: this issue has moved to
Previous Topic:Breakpoint actions in java (like c++)
Next Topic:Can C, python, fortran, java languages be highlighted in one document of Eclipse?
Goto Forum:

Current Time: Mon Nov 20 12:00:45 GMT 2017

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

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