Bug 7305

Summary: interface methods are marked abstract
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P4    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2002-01-07 08:41:19 EST
When getting the flags of a method from an interface (IMethod.getFlags()), such 
methods are marked as 'abstract', even in the source the 'abstract' keyword is 
not used.
We have code in jdt.ui to filter this out again at least at two places.
JavaElementImageProvider and the JavaDoc frontend.
This is not done for the 'public' modifier: Methods in interface are 'public' 
by default, but IMethod.getFlags() does not reflect that.

I think the consistent solution would be to have JavaModel reflecting directly 
the document structure, and not make modifications depending on the Java 
context.
Comment 1 Philipe Mulet CLA 2002-01-09 07:09:21 EST
If the method was defined in binaries, then we cannot improve the current 
behavior. On sources, I cannot reproduce the problem. The only flag we do 
propagate by mistakre is AccSemiColonBody (internal parsing flag), but it does 
not collide with the visibility flags. 

Comment 2 Philipe Mulet CLA 2002-01-09 08:46:40 EST
Ok to close ?
Comment 3 Martin Aeschlimann CLA 2002-01-09 13:39:22 EST
you are right , it works. sorry, i made the wrong conclusion.
closing.