Bug 46612

Summary: BodyDeclaration should provide a method getModifiers
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Jim des Rivieres <jeem>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M5   
Hardware: All   
OS: All   
Whiteboard:

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.