Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350496

Summary: [1.7] @PolymorphicSignature IMethods are missing the annotation
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann, raksha.vasisht
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 350087    
Attachments:
Description Flags
Proposed fix + regression test none

Description Markus Keller CLA 2011-06-27 15:57:08 EDT
BETA_JAVA7

The @PolymorphicSignature methods are missing their annotation. IMethod#getAnnotations() returns an empty array, although the annotation has @Retention(RUNTIME).
Comment 1 Olivier Thomann CLA 2011-06-27 18:19:00 EDT
I guess you are talking about the declaration of the methods.
Comment 2 Markus Keller CLA 2011-06-28 10:24:48 EDT
> I guess you are talking about the declaration of the methods.

Regarding getAnnotations(), there's no difference between the declaration element (may be unresolved) and a reference (with isResolved() == true).
Comment 3 Olivier Thomann CLA 2011-06-28 10:36:42 EDT
This annotation is seen as a standard annotation like Deprecated or Documented,...
If you want it to be returned as part of the annotations collection, it should not be part of the standard annotations.
Comment 4 Olivier Thomann CLA 2011-06-28 10:40:55 EDT
I forgot to add this standard annotation back into the annotation array. Should be fixed soon.
Comment 5 Olivier Thomann CLA 2011-06-28 10:58:23 EDT
Created attachment 198742 [details]
Proposed fix + regression test
Comment 6 Olivier Thomann CLA 2011-06-28 11:04:44 EDT
Released in BETA_JAVA7 branch.
Comment 7 Raksha Vasisht CLA 2011-07-20 06:10:16 EDT
Verified.