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

Java 21 support #1

Open
AIMMOTH opened this issue Jan 12, 2024 · 0 comments
Open

Java 21 support #1

AIMMOTH opened this issue Jan 12, 2024 · 0 comments

Comments

@AIMMOTH
Copy link
Owner

AIMMOTH commented Jan 12, 2024

Currently this library is limited to Java 8. Support for 9+ or more would be beneficial.

Upgrading to Java 20 and using Scala 2.11.12 gives following error

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

at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66)
at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102)
at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105)
at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257)
at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257)
at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1390)
at scala.tools.nsc.Global$Run.<init>(Global.scala:1242)`

Upgrading to Scala 2.12.18 gives following compilation errors:

  1. JavaClassPath (deprecated) is abstract and cannot be instantiated
  2. DirectoryClassPath (deprecated) is abstract and cannot be instantiated
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

No branches or pull requests

1 participant