Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] overrides(IMethodBinding) fails for bindings from different ASTs?

Hi,

We have a problem with the use of the
IMethodBinding.override(IMethodBinding) and the
IMethodBinding.isSubsignature(IMethodBinding) methods in the jdt.core.dom
package. Basically: they return false when they should return true. This
happens when we hand it a methodbinding which was obtained from a different
AST, but actually is a binding to the overridden method. 

We do obtain the entire set of ASTs through a single pass of
ASTParser.createASTs(...) with the correct JavaProject set and binding
resolutions requested.

Since one can compare methodbindings from different ASTs using the
isEqualsTo(IBinding) method, is there any reason for the abovementioned
methods not to work? Furthermore, it seems to work sometimes, but not
always, and in (for me) unpredictable ways. 

Thanks to anyone who can shed some light on this.
-- 
View this message in context: http://www.nabble.com/overrides%28IMethodBinding%29-fails-for-bindings-from-different-ASTs--tf4441450.html#a12672104
Sent from the Eclipse JDT - core mailing list archive at Nabble.com.



Back to the top