Community
Participate
Working Groups
Using latest in HEAD, when the number of problems per compilation unit is lower than the number of errors in the compilation unit, a problem method doesn't seem to have the right error inside. Try to compile the attached source file and run it as a Java application. You will get the following error in the console: java.lang.Error: Unresolved compilation problem: at Example.foo10(Example.java:3) at Example.main(Example.java:53) Exception in thread "main" instead of a good error with the right line. Line 3 is the first problem.
Created attachment 14452 [details] Test case
I will investigate.
It is worse than that. The line is always the line of the first problem inside the first problem method.
I will attach a patch later tonight.
We might want to backport for 3.0.1.
Created attachment 14453 [details] Apply on HEAD on ClassFile I will annotate the PR if all tests are passing with this change. I will also add a regression test.
I tested the patch on a small example and it works well. I am running all the tests.
All tests passed. I am releasing the fix. I will add a regression test in HEAD. Do you want to backport to 3.0.1?
Too late for 3.0.1, maybe a later update.
Fixed and released in HEAD.
Could be backported for 3.0.2
Backported in 3.0.2.
Verified for 3.1 M2 with build I200409231635. Note that target have to be modified when fix will be backported for 3.0.2 into R3_0_maintenance stream...
Candidating for 3.0.2 release (not committed yet)