Bug 106108 - inconsistent treatment of Modifiers and Annotations
Summary: inconsistent treatment of Modifiers and Annotations
Status: VERIFIED DUPLICATE of bug 79112
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 190394 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-04 17:50 EDT by Karen Butzke CLA
Modified: 2007-11-29 08:11 EST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2005-08-04 17:50:53 EDT
In the AST annotations are considered modifiers, they are returned in 
BodyDeclaration.modifiers().  I think the Java IElementChangedListener should 
treat annotations and modifiers in a similar manner.  Currently the 
IJavaElementDelta returns specific information on where a particular modifier 
twas add/removed/changed (it tells you which method, field, type was changed).  
With annotations all you receive is notification that the content of the 
CompilationUnit was changed.  You do not know whether an annotation was changed 
or where one might have been added or removed.
Comment 1 Jerome Lanneluc CLA 2005-08-11 08:33:59 EDT
Annotations currently have no representation at the Java model level (see bug
79112). Once bug 79112 is resolved, then it would indeed make sense to have
added/removed/changed notifications for these elements.
Comment 2 Jerome Lanneluc CLA 2006-03-30 11:50:24 EST
post 3.2
Comment 3 Olivier Thomann CLA 2007-06-06 14:24:16 EDT
*** Bug 190394 has been marked as a duplicate of this bug. ***
Comment 4 Jerome Lanneluc CLA 2007-10-08 11:40:03 EDT
Reopening since work has started on bug 79112.
Comment 5 Jerome Lanneluc CLA 2007-10-24 09:56:30 EDT
Fix for bug 79112 actually fixes this bug. To get what annotations that have been added/removed/changed use IJavaElementDelta#getAnnotationDeltas().

*** This bug has been marked as a duplicate of bug 79112 ***
Comment 6 David Audel CLA 2007-10-30 08:03:42 EDT
Verified for 3.4M3 using I20071029-0010 build.