-
Notifications
You must be signed in to change notification settings - Fork 21
scalac 2.12.9 and 2.13.0 does not work with "-opt:l:method" on JDK13+ #11671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yeah, I should get on scala/community-build#873 :-/ |
Need to upgrade asm to 7.1 (and backport that to 2.12). |
Keeping up with Java bytecode versions is a never-ending task, given that the Scala compiler itself still produces Java 8 bytecode why is the optimizer reading these classfiles ? Can we get it to stop doing that, or at least gracefully degrade when it encounters an unknown bytecode version ? |
I have to remind myself why Generally, ASM version X supports classfiles up to version Y, and it would not be safe to just skip the check and use it to parse a classfile verison Y+1. There might be changes in semantics, new bytecodes. |
The optimizer is very eager when building the call graph. For a simple |
OK, but is the result of that parsed file used for anything ? Can we prevent ASM from trying to read it, or catch the exception and keep going ? Would that require patching ASM ? |
I think the best solution would be to make building the call graph more lazy. |
@lrytz want to try to get a fix into 2.12.10, or shall we slip it to 2.12.11? |
2.12.11 seems fine, I'd say. |
asm 7.2 released (support jdk 14) |
… latest versions of JDK, see scala/bug#11671
… latest versions of JDK, see scala/bug#11671
… latest versions of JDK, see scala/bug#11671
@lrytz do you intend to tackle this for 2.12.11/2.13.2? |
👍 thanks for the reminder |
ASM 8.0.1 available: https://asm.ow2.io/versions.html |
Third time 😅 #10717 #11372
The text was updated successfully, but these errors were encountered: