question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tests/generic-java-signatures/derivedNames.scala fails on macOS

See original GitHub issue

Compiler version

3.0.0

Minimized example

sbt testCompilation derivedNames

Output

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at dotty.tools.vulpix.ChildJVMMain.runMain(ChildJVMMain.java:40)
        at dotty.tools.vulpix.ChildJVMMain.main(ChildJVMMain.java:47)
Caused by: java.lang.AssertionError: assertion failed: Test$Foo$A<Test$Foo<T1>$B$> != Test$Foo.Test$Foo$A<Test.Test$Foo<T1>.B$>
        at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
        at Test$.main(derivedNames.scala:12)
        at Test.main(derivedNames.scala)
        ... 6 more

Expectation

No test failed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
smartercommented, Jun 23, 2021

The test as-is already does different things on different platforms but that seems very weird to me, I would expect the difference to come from different JDK versions: https://github.com/lampepfl/dotty/blob/master/tests/generic-java-signatures/derivedNames.scala, can everyone list what the output of java -version is like for them?

0reactions
Kordyjancommented, Jun 25, 2021

I’ve updated the jdk to 1.8.0_291 and the output is the same as on Linux. I’ll revert my previous change as it seems to only affect really outdated builds of 1.8.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
Scala - Brew - MacOS - Unable to connect to sbt shell at all
So I'm just trying to get a project set up using JDK 15 / SBT 1.5.4 / Scala 2.13.6 all of which have...
Read more >
RocksDB fails in earlier macOS versions · Issue #652 - GitHub
I see the following issue when I run the recognize_entities_dl pretrained model dyld: lazy symbol binding failed: Symbol not found: ...
Read more >
How to Install Scala and Apache Spark on MacOS
Here is a Step by Step guide to installing Scala and Apache Spark on MacOS. Step 1: Get Homebrew. Homebrew makes your life ......
Read more >
Fixing the “Failed to create the Java Virtual Machine” error on ...
To fix this, you will need to uninstall the problematic JDK version and install the latest one on your macOS machine: Run the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found