[jdk8u-dev] RFR: 8151255: javac with a annotation processor returns incorrect error code
Joe Darcy
darcy at openjdk.org
Wed Jan 31 20:20:07 UTC 2024
On Wed, 31 Jan 2024 10:05:53 GMT, yangsummer <duke at openjdk.org> wrote:
> I have looked at the code of jdk23 and found that the delegated compiler is no longer used when processing annotations, and when an abort occurs, the exception should be reported directly to the global diagnosticCollector, so this problem of mine no longer exists. Moreover, the code difference is relatively large and it is difficult to backport it to Java8.
>From a comment on the bug, the issue does not reproduce under JDK 9 so was presumably fixed as a side-effect of some JDK 9 javac change.
As a rule, OpenJDK generally follows a fix in later release and then backport model, so isolating the JDK 9 change the addressed this issue would, by default, be the route to fix it. However, the 8u maintainers are conservative in what fixes are allowed in, so they may decline to accept the fix even if it backported from a later release. HTH
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/432#issuecomment-1919878554
More information about the jdk8u-dev
mailing list