Community
Participate
Working Groups
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.
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.
Ok to close ?
you are right , it works. sorry, i made the wrong conclusion. closing.