-
Notifications
You must be signed in to change notification settings - Fork 191
build and test against scala 3.8.0 #2319
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
base: main
Are you sure you want to change the base?
Conversation
b341973 to
d02b782
Compare
| with: | ||
| apps: sbt | ||
| jvm: temurin:8 | ||
| jvm: temurin:17 # TODO: confirm we emit java 8 bytecode scala <3.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Investigating ➜ javap -classpath $(cs fetch --intransitive org.scala-lang:scala-reflect:2.13.18) -c -p 'scala.reflect.internal.Types$TypeRef' | grep 'MurmurHash3$$avalanche' -C 2
81: iload_2
82: ixor
83: invokevirtual #401 // Method scala/util/hashing/MurmurHash3.scala$util$hashing$MurmurHash3$$avalanche:(I)I
86: ireturn
➜ javap -classpath $(cs fetch --intransitive org.scala-lang:scala-library:2.13.18) -c -p 'scala.util.hashing.MurmurHash3' | grep 'public.*avalanche' -C 2
7: ireturn
public final int scala$util$hashing$MurmurHash3$$avalanche(int);
Code:
0: iload_1
➜ javap -classpath $(cs fetch --intransitive org.scala-lang:scala-library:3.8.0-RC3) -c -p 'scala.util.hashing.MurmurHash3' | grep 'public.*avalanche' -C 2
➜ I assume the scala3 compiler handles differently private methods... @tgodzik is that expected, in which case we'll have to workaround the compilation classpath for scalafix-reflect, or should I open a ticket against scala/scala3? |
|
I can't reproduce, probably because scala-reflect is built with some inlining flag |
https://contributors.scala-lang.org/t/scala-3-8-0-release-thread/7291