Community
Participate
Working Groups
BETA_JAVA7, follow-up to bug 352464 comment 5 IMethod#getAnnotations() doesn't return the @SafeVarargs annotation of java.util.Arrays#asList(T...). This can be seen in the Javadoc hover, which doesn't show the annotation on this method.
Should be trivial to fix.
Created attachment 200369 [details] Proposed fix
I'll add a regression test.
Created attachment 200376 [details] Proposed fix + regression test Same patch with a regression test.
The fix looks and behaves well. But the code changes had that certain smell, so I opened bug 353137 ;-).
I was about to go over all usages to check if we missed some. I found the one in BinaryIndexer, but I didn't want to add them there as part of that patch.
Comment on attachment 200376 [details] Proposed fix + regression test Hold on, this patch is not good. In ClassFileInfo, the removal of JAVA_LANG_ANNOTATION_INHERITED is wrong. It e.g. makes the @Inherited annotation on javax.xml.ws.ServiceMode non-existent in the JavaElement view.
This was unintended :-(. Thanks for the fix.
Released in BETA_JAVA7 branch only.
Verified for 3.8M1 using build I20110729-1200