Skip to content

-release 8 causes java.time.Instant to have a fictitious constructor #15144

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
smarter opened this issue May 9, 2022 · 0 comments · Fixed by #23178
Closed

-release 8 causes java.time.Instant to have a fictitious constructor #15144

smarter opened this issue May 9, 2022 · 0 comments · Fixed by #23178

Comments

@smarter
Copy link
Member

smarter commented May 9, 2022

On Java 9+:

% scala -release 8
scala> new java.time.Instant
java.lang.NoSuchMethodError: java.time.Instant: method 'void <init>()' not found
  ... 34 elided

This is the same issue as scala/bug#12565 which was fixed by scala/scala#9981

@SethTisue SethTisue added the Spree Suitable for a future Spree label Aug 14, 2023
@mbovel mbovel removed the Spree Suitable for a future Spree label Apr 4, 2025
sjrd added a commit that referenced this issue May 19, 2025
Avoid creating constructors where not warranted.

Fixes #15144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants