Community
Participate
Working Groups
I200409231635, testing fix for bug 74519. When I omit the 'public' modifier ... @interface Ann { String annName(); } ... the reported source range is [-1, 15]. I would expect that the source range is always just the @interface keyword, irrespective of modifiers.
FYI: I filed bug 74939 for the missing error annotation when the problem of this PR occurs.
This will be done post M2. We tag the declaration. So the modifiers would be included. The bug comes from the fact that the modifiersSourceStart is used for the problem positions.
The bug is similar for enum declarations without modifiers.
I have a patch that underlines only the type name In your example, "Ann". This would be good enough.
Yeah, that's fine too. It's just the -1 that is unfortunate.
This is a minor problem anyway. So it will be fixed for M3. The fix is ready, but it is too late for M2.
Sure it's minor and not urgent - see the Severity field ;-)
Fixed and released in HEAD. Regression tests updated.
Verified for 3.1M3 with build I20041101.