Bug 10954 - IMember::getFlags semantics on interface members
Summary: IMember::getFlags semantics on interface members
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-07 10:32 EST by Adam Kiezun CLA
Modified: 2002-03-13 11:26 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 Adam Kiezun CLA 2002-03-07 10:32:41 EST
getFlags on interface members currently returns not the real visibility 
but the visibility as declared in the source

what is the reason for that and can it be changed?

i can start writting workarounds for that but then, 
someone else will forget to use my util class and call 
Flags.isPublic(method.getFlags())
Comment 1 Adam Kiezun CLA 2002-03-07 10:33:51 EST
i stumbled upon it a number of times 
http://bugs.eclipse.org/bugs/show_bug.cgi?id=10669
is another case when the current behavior is causing problems  
Comment 2 Philipe Mulet CLA 2002-03-08 10:54:45 EST
All modifiers in the JavaModel reflect the source modifiers (same as on the 
ASTs). Remember that the Model is a structured source model, nothing resolved, 
no modifier inference or fix-up.

Bindings have the right information.