| Summary: | IMethod#getAnnotations() doesn't return @SafeVarargs of java.util.Arrays#asList(T...) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||||
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | amj87.iitr, deepakazad, Olivier_Thomann | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.7.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Markus Keller
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 |