Skip to content

Add regression test for the Ammonite console on JDK > 8#2941

Open
jozanek wants to merge 1 commit into
scalacenter:mainfrom
jozanek:fix/1226-ammonite-console
Open

Add regression test for the Ammonite console on JDK > 8#2941
jozanek wants to merge 1 commit into
scalacenter:mainfrom
jozanek:fix/1226-ammonite-console

Conversation

@jozanek
Copy link
Copy Markdown
Contributor

@jozanek jozanek commented Jun 6, 2026

Closes #1226

Summary

bloop console <project> historically failed on JDK > 8 with:

scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found

This was an upstream Ammonite / JDK 9+ issue (com-lihaoyi/Ammonite#1035): on JDK > 8 the Scala compiler can't locate the platform classes (rt.jar / sun.boot.class.path were removed). It was never bloop-specific — even a direct coursier launch com.lihaoyi:ammonite_2.13.3:2.3.8 failed identically.

It no longer reproduces on current main: the console emits a coursier launch … command that the CLI runs with the user's own coursier (#2856 / #2568), defaults to a latest.release Ammonite that supports JDK > 8, and no longer passes the old --scala-version flag.

Verified on JDK 17.

@jozanek
Copy link
Copy Markdown
Contributor Author

jozanek commented Jun 6, 2026

Also see jozanek#1, if you like my proposal I can merge it to this PR (or later to master).

@jozanek
Copy link
Copy Markdown
Contributor Author

jozanek commented Jun 7, 2026

failing test can be rerun, looks like flaky one

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.

Unexpected MissingRequirementError with bloop console

1 participant