Skip to content

Assertion failure when recompiling primitive types from TASTy #10048

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

Open
nicolasstucki opened this issue Oct 20, 2020 · 0 comments
Open

Assertion failure when recompiling primitive types from TASTy #10048

nicolasstucki opened this issue Oct 20, 2020 · 0 comments
Labels
backlog No work planned on this by the core team for the time being. itype:bug

Comments

@nicolasstucki
Copy link
Contributor

We have the folllowing failure when recompileing primitivve types in the library

// failed: java.lang.AssertionError: assertion failed: class Boolean
    //   at dotty.DottyPredef$.assertFail(DottyPredef.scala:17)
    //   at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.assertClassNotArrayNotPrimitive(BCodeHelpers.scala:247)
    //   at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.getClassBTypeAndRegisterInnerClass(BCodeHelpers.scala:265)
    //   at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.getClassBTypeAndRegisterInnerClass$(BCodeHelpers.scala:210)
    //   at dotty.tools.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.getClassBTypeAndRegisterInnerClass(BCodeSkelBuilder.scala:62)
    //   at dotty.tools.backend.jvm.BCodeHelpers$BCInnerClassGen.internalName(BCodeHelpers.scala:237)```

This can be reproduced using the tests from #9193.

We can recompile those files individually using -from-tasty or -Ythrough-tasty.

@odersky odersky added the backlog No work planned on this by the core team for the time being. label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog No work planned on this by the core team for the time being. itype:bug
Projects
None yet
Development

No branches or pull requests

2 participants