[jdk8u-dev] RFR: 8151255: javac with a annotation processor returns incorrect error code
yangsummer
duke at openjdk.org
Thu Feb 1 03:56:02 UTC 2024
On Wed, 31 Jan 2024 20:17:01 GMT, Joe Darcy <darcy 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
Oh, I saw that this problem was indeed solved in jdk9, and the relevant code is also reflected in jdk23. The versions of these codes are quite different from jdk8. So now that jdk8 has such a problem, do we need to isolate jdk9 to solve it? Or just ignore it?
Or let those using jdk8 solve this problem by upgrading the jdk version.
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/432#issuecomment-1920456871
More information about the jdk8u-dev
mailing list