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

feat: add support for java 12 #3011

Closed
Charmik opened this issue Jun 6, 2019 · 6 comments · Fixed by #3259
Closed

feat: add support for java 12 #3011

Charmik opened this issue Jun 6, 2019 · 6 comments · Fixed by #3259

Comments

@Charmik
Copy link
Contributor

Charmik commented Jun 6, 2019

Hello! I was wondering, what's current situation about java 11 (12?) ? I looked at roadmap, but it's still open. And you write only about java 10 on the main page.
I tried to parse file compiled by java 11 with var and it was okay for me.

I only need to parse source and get fields for all classes, does everything work right now for java 11? or is it still in progress? I think I am interested only about jep-323, as I understand it's not supported right now, what's the plan about it? Thanks!

@monperrus
Copy link
Collaborator

Hello

  • for Java 11, please ask on Support Java 11 in Spoon #2106 to see if somebody makes progress.
  • Renamed this issue for Java 12
  • could you please discuss one single topic per issue? thanks!

@monperrus monperrus changed the title java 11-12 support feat: add support for java 12 Jun 8, 2019
@monperrus
Copy link
Collaborator

would you be interested in working on this yourself?

@Charmik
Copy link
Contributor Author

Charmik commented Jun 20, 2019

I can try to look on it, but it depends on the amount of work.

@monperrus
Copy link
Collaborator

monperrus commented Jun 20, 2019 via email

@Egor18
Copy link
Contributor

Egor18 commented Jun 21, 2019

I've just created PR to support local variable syntax for lambda parameters (jep-323) from Java 11 (#3029).

@Egor18
Copy link
Contributor

Egor18 commented Jun 21, 2019

Regarding Java 12, it introduced a new syntax for switch expressions (https://openjdk.java.net/jeps/325).
However, this is only a preview feature i.e. it is only available with --enable-preview flag and is not enabled by default.

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