Bug 46612 - BodyDeclaration should provide a method getModifiers
Summary: BodyDeclaration should provide a method getModifiers
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Jim des Rivieres CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 14:04 EST by Dirk Baeumer CLA
Modified: 2003-11-24 07:01 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 Dirk Baeumer CLA 2003-11-13 14:04:43 EST
All body declarations have modifiers. Currently it is hard to access them in a 
polymorphic way.
Comment 1 Olivier Thomann CLA 2003-11-13 18:08:03 EST
Jim, is it possible to add an API for this?
Comment 2 Olivier Thomann CLA 2003-11-14 10:13:21 EST
We simply need to move the getModifiers() method up in the hierarchy. It should
not break any user since this is a virtual call.
The getModifiers() et setModifiers() could be defined as abstract methods on
BodyDeclaration.
Comment 3 Jim des Rivieres CLA 2003-11-14 10:20:42 EST
I don't see any problem with this. I will investigate.
Comment 4 Jim des Rivieres CLA 2003-11-14 21:34:42 EST
Fixed in builds > N2003114. Updated build notes.
Comment 5 David Audel CLA 2003-11-24 07:01:49 EST
Verified.