Skip to content

Tasty UUID test is an error in Scala 2.13 and a warning in Scala 3 #12459

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

Closed
jjudd opened this issue Sep 9, 2021 · 3 comments
Closed

Tasty UUID test is an error in Scala 2.13 and a warning in Scala 3 #12459

jjudd opened this issue Sep 9, 2021 · 3 comments
Assignees
Milestone

Comments

@jjudd
Copy link

jjudd commented Sep 9, 2021

I noticed that in Scala 2.13 the Tasty UUID check is an error: https://github.com/scala/scala/blob/2.13.x/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala#L1268

In Scala 3 it was changed from an error to a warning: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala#L955

The change In Scala 3 happened in this issue: scala/scala3#8839

To me, this difference seems like a bug. I'm curious if the same change should be made on the Scala 2.13 side? I'm happy to make the change if people are open to it being made.

I ask because I think I'm running into 8839 from the 2.13 side in a codebase which has both 2.13 and 3 code that utilizes Scala 2<->3's backwards and forwards compatibility. I'm running the compilers standalone. Eventually, after building and killing builds one or many times, this error tends to show up.

I'm also happy to be wrong and to not be running into 8839.

@SethTisue
Copy link
Member

@bishabosha opinion?

@SethTisue SethTisue added this to the 2.13.7 milestone Sep 9, 2021
@bishabosha bishabosha self-assigned this Sep 10, 2021
@bishabosha
Copy link
Member

I think it would be reasonable to replicate Scala 3 here

@jjudd
Copy link
Author

jjudd commented Sep 11, 2021

Sounds like a plan. I replicated the change from Scala 3 to the Scala 2.13.x branch in this PR: scala/scala#9755

@SethTisue SethTisue assigned jjudd and unassigned bishabosha Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants