Community
Participate
Working Groups
1) Create a class X.java public class X { {#} // error 1 {#} // error 2 {#} // error 3 {#} // error 4 } 2) Limit the number of errors reported per compilation unti to 3 3) do a full build There is only 3 errors (as expected), but it is errors 1, 2 and 4. It should be errors 1, 2 and 3.
The problem is in TypeDeclaration#parseMethod(). Initializers are parsed from the last to the first. The error in the last initializer is considered as the first error in the type context. Fixed.
Verified.