Closed SethTisue closed 1 year ago
prerequisite: https://github.com/scala/bug/issues/12888
cd /usr/lib/jvm
sudo curl -O -L 'https://download.java.net/java/early_access/jdk22/20/GPL/openjdk-22-ea+20_linux-x64_bin.tar.gz'
sudo dtrx -n openjdk-22-ea+20_linux-x64_bin.tar.gz
sudo rm openjdk-22-ea+20_linux-x64_bin.tar.gz
sudo chmod -R go+rX openjdk-22-ea+20_linux-x64_bin
sudo ln -s openjdk-22-ea+20_linux-x64_bin/jdk-22 java-22-openjdk-x64
./java-22-openjdk-x64/bin/java -version
openjdk version "22-ea" 2024-03-19
OpenJDK Runtime Environment (build 22-ea+20-1570)
OpenJDK 64-Bit Server VM (build 22-ea+20-1570, mixed mode, sharing)
2.13.x failures:
• zinc: Unsupported class file major version 66
during shading
• twirl: Unsupported class file major version 66
• play-ws: Java 22 (66) is not supported by the current version of Byte Buddy
• metrics-scala: Java 22 (66) is not supported by the current version of Byte Buddy
• americium: cannot find symbol
during javac run, cause not obvious to me
so the only one of these that's a little odd is americium. I'll report it to the maintainers (https://github.com/sageserpent-open/americium/issues/67). and I'll mark of all these as expected-to-fail (commit: 338218f3f74cd34688e66cba5119ed4d82ebc587)
heh, oops, somehow the Jenkins jobs were still on 21. fixed, but nothing new turned up but a new metals test failure (a too-fragile test) I reported upstream
I would prefer not to do this until JDK 21 final is out. Then we can drop JDK 20 and add 22-ea instead.
see also https://github.com/scala/scala-dev/issues/852