Bug 217793 - [dom] MethodBinding.getParameterAnnotations() caches result, ignores index
Summary: [dom] MethodBinding.getParameterAnnotations() caches result, ignores index
Status: VERIFIED DUPLICATE of bug 213509
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-05 04:11 EST by Philip Mayer CLA
Modified: 2008-02-05 08:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Mayer CLA 2008-02-05 04:11:43 EST
Build ID: M20071023-1652

The method getParameterAnnotations() takes an index of the parameter to get the annotations from. However, the annotations are only read correctly the first time this method is called. The second and each following time, the index is ignored and the previous result is returned. This makes it impossible to get annotations from more than one parameter.
Comment 1 Frederic Fusier CLA 2008-02-05 04:20:50 EST

*** This bug has been marked as a duplicate of bug 213509 ***
Comment 2 Maxime Daniel CLA 2008-02-05 08:15:13 EST
Verified for 34M5 using I20080204-0010 build.