-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update asm to 9.4 #16155
Update asm to 9.4 #16155
Conversation
This seems like a candidate for backporting to 3.2.x. I will do the work in the scala-asm repo, but not right away (vacation/travel). Unless @lrytz beats me to it :-) |
marking as draft for now (perhaps over-cautiously) until the corresponding Scala 2 PRs have passed CI and been merged |
Okay, the Scala 2 PRs are merged. |
@Kordyjan could this make 3.2.2? (or 3.2.3?) |
It can make 3.2.2-RC2 (which we will need), so no need to worry. |
In theory we should only backport things which fix regression, does this fix any regression? |
No, no regression per se, unless you want to get slippery and say that “supports latest JDK” regressed (because the “latest JDK” pointer moved). I’d of course accept a ruling on that grounds, but I’m not sure it’s necessary to be so strict. One’s feelings might depend on whether one’s crystal ball predicts that 3.3 is really coming soon or whether there’s a chance of it slipping for as long as 3.2 did. |
But we don't need to upgrade asm to support using the latest JDK, it's only needed for the -target/-release/... flags to emit bytecode that won't be loaded by previous JDK releases, so I don't think it's a big deal. Especially in this case where we're adding support for JDK 20 which won't be released until March 2023. |
Right. Scala 2 uses ASM to read classfiles (optimizer, build pipelining), but that's not the case here. |
There's first some work to be done in https://github.com/scala/scala-asm.
scala 2.12.x PR: scala/scala#10185
scala 2.13.x PR: scala/scala#10184