Compiler should provide better error messages when using unsupported JDK version #18573
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
compat:java
itype:enhancement
Uh oh!
There was an error while loading. Please reload this page.
Latest release of JDK 21 might be a time when more and more people might want to migrate to latest Java version. However, if we'd try to do so, we might get a very nasty error.
Compiler version
3.3.0 (fixed in 3.3.1 for JDK 21, however the issue would still be present in future JDK's if more assumptions of classfile format are violated)
Minimized code
Output
Expectation
Compiler should provide better error messages when using unsupported JDK version, eg. what is the latest supported version and which version was found in the classfile along with a possible way to mitigate this issue, eg.
please try to use the latest version the Scala compiler
The text was updated successfully, but these errors were encountered: