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

Not support java 16 record #521

Closed
cmonkey opened this issue Oct 18, 2021 · 8 comments
Closed

Not support java 16 record #521

cmonkey opened this issue Oct 18, 2021 · 8 comments

Comments

@cmonkey
Copy link

cmonkey commented Oct 18, 2021

alchim31 scala plugin version : 4.5.3
java version 16
recompileMode = incremental
compileOrder = Mixed

ca Example.java
record Example(int id, double amount){}

compile failed : illegal start of type declaration

@slandelle
Copy link
Collaborator

Please provide a proper meaningful description of your issue and typically a SSCCE.
Otherwise, I'll have to close this ticket.

@cmonkey
Copy link
Author

cmonkey commented Oct 18, 2021

Please provide a proper meaningful description of your issue and typically a SSCCE. Otherwise, I'll have to close this ticket.
thank you ,have been rewritten

@slandelle
Copy link
Collaborator

Please provide a sample project and push it on github.

@cmonkey
Copy link
Author

cmonkey commented Oct 18, 2021

ok , wait a moment

@cmonkey
Copy link
Author

cmonkey commented Oct 18, 2021

@slandelle
Copy link
Collaborator

Thx.

The Scala compiler doesn't support Java records yet.
According to scala/bug#11908, support should land in 2.13.7, which hasn't been released yet.
According to this ticket, the ETA is beginning of November.

Anyway, closing as the issue is not in this plugin.

@slandelle
Copy link
Collaborator

Scala 2.13.7 was just released today. Try upgrading.

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

3 participants
@cmonkey @slandelle and others