Community
Participate
Working Groups
With RC2, I couldn't navigate in the ava.awt.Font class code from JDK 1.5 in some cases: public Font(Map<? extends Attribute, ?> attributes) public static Font getFont(Map<? extends Attribute, ?> attributes) public Font deriveFont(Map<? extends Attribute, ?> attributes) Both method outline view->editor and editor->method outline synchronization doesn't work.
Hm, we get an invalid source range from ISourceReference.getSourceRange(). Debugging reveals that SourceMapper.getUnqualifiedMethodHandle does not handle the type parameter properly. Using Signature.getSimpleName on a signature may not be well defined?
Tom I failed to see the relationship between the source range and the signature. Also are you saying that you use pass in a signature to getSimpleName(...) ? This method accepts type names only. It sounds like you want to use getSignatureSimpleName(...) instead.
(In reply to comment #2) > Tom I failed to see the relationship between the source range and the signature. Sorry for not being clear. When I tried to debug the cause for the problem, I found that SourceMapper.getUnqualifiedMethodHandle in jdt-core uses getSimpleName on a signature, which looked like a hack to me. But I probably should not be making assumptions about internal code... :-) The official bug is that ISourceReference.getSourceRange does not work properly for the methods mentioned in comment 0.
Thanks Tom. Indeed the SourceMapper.getUnqualifiedMethodHandle(...) looks suspicious.
SourceMapper.getUnqualifiedMethodHandle(...) was rewritten as part of bug 129317. *** This bug has been marked as a duplicate of 129317 ***
Verified for 3.3 M1 using build I20060807-0010