Skip to content
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 scala3-compiler to version 3.3.1 and migrate scala-dotty to Scala 3 #407

Merged
merged 1 commit into from Sep 20, 2023

Conversation

lbulej
Copy link
Member

@lbulej lbulej commented Sep 20, 2023

This should avoid issues with using Scala 3 code (scala3-compiler_3) from Scala 2. This broke with version 3.1.3 of scala3-compiler when Scala 2.13 compiler started to complain about "Unsupported Scala 3 union in parameter value" (3.1.2 was the last to work).

For compatibility with JDK21 (see #384), we need fixes to Tasty reader which was broken by changes to javac in JDK21-b21 (see JDK-8292275), which only made it into version 3.3.1-RC1.

Using reflection would probably fix the problem, as might a Java-based bridge method, but switching to Scala 3 seems to work as well and paves the way to introducing more Scala 3 benchmarks in the future.

Fixes #384.

This should avoid issues with using Scala 3 code (scala3-compiler_3)
from Scala 2. This broke with version 3.1.3 of scala3-compiler when
Scala 2.13 compiler start to complain about "Unsupported Scala 3 union
in parameter value" (3.1.2 was the last to work).

For compatibility with JDK21, we need fixes to Tasty reader which was
broken by changes to javac in JDK21-b21 (see JDK-8292275), which only
made it into version 3.3.1-RC1.

Using reflection would probably fix the problem, as might a Java-based
bridge method, but switching to Scala 3 seems to work as well and
paves the way to introducing more Scala 3 benchmarks in the future.
Copy link
Member

@vhotspur vhotspur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a mess :-D

@lbulej lbulej merged commit ec02de9 into master Sep 20, 2023
15 checks passed
@lbulej lbulej deleted the devel/scala-dotty branch September 20, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dotty exception starting in JDK21-b21
2 participants