RFR: 8205187: javac/javadoc should not crash if no java.lang; crash message obsolete
Jonathan Gibbons
jjg at openjdk.java.net
Wed Dec 22 16:12:16 UTC 2021
On Mon, 20 Dec 2021 19:48:18 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Please review this PR which is basically changing the error message the compiler shows if the package java.lang can't be found, the current message is obsolete,
>
> TIA
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TypeEnter.java line 362:
> 360: log.error(Errors.NoJavaLang);
> 361: throw new Abort();
> 362: }
`Abort` seems to have different semantics to `FatalError`.
Unless there is a good reason for the change, it might be more advisable to stay with `FatalError` and just change the text of the message.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6898
More information about the compiler-dev
mailing list