Community
Participate
Working Groups
Using 0122, you can see that the declaration source start if the field i is not right. It starts at the beginning of the comment that preceeds the initialzer. Test case: class A { public static int j = 0; /* static */ { } public static int i = 9; } The declaration source start of 'i' should be the 'p' of its public modifiers. The bug is located in Parser.consumeDiet which doesn't reset the modifiers variables. modifierSourceStart needs to be reset when exiting consumeDiet().
Fix is in (from Olivier), but we need a testcase for it.
test was added (SourceElementParserTest#test76) Fixed.
Verified.