[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: IMethodBinding#overrides() returns false when true is expected

Sebastian Schmidt a écrit :
there is a comparison of two SourceTypeBinding instances "if (currentType == otherType)" that results to false even if the two instances represent the same type (AbstractExample). They have different ids in the Variables view but the same value (at least the string representation in the value view is identical). Sadly even the .equals method returns false.
You cannot compare bindings that comes from two different ast parser runs.
You can create the bindings you want on demand using the method org.eclipse.jdt.core.dom.ASTParser.createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor).


HTH,

Olivier