Community
Participate
Working Groups
BETA_JAVA7, follow-up to bug 349486 comment 8 JavaElementLabelComposer has problems rendering references to @PolymorphicSignature methods. I'm not yet completely sure where the problem is, but I currently think it's on the UI side. Observations: - Even with the patch, the IMethod for the reference has the varargs flag set. - The workaround for bug 99137 in JavaElementLabelComposer.java:401 sets the variable 'types' to a wrong value, so we lose some parameters. I don't think the varargs flag can be removed from the IMethod. I guess we also need to add knowledge about the @PolymorphicSignature methods in the JavaElementLabelComposer, since these are otherwise hard to distinguish from other methods whose resolved signature is not the same as the IMethod#getSignature().
I'll look at this tomorrow.
Created attachment 198964 [details] Fix
Fix has been released. Forgot to close this bug.
verified. The labels look fine but I could not find an occurrence of labels like 'invokeExact(Object... arg0)' or 'invokeExact(arg0)' like are tested for in the patch.