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

Support Module Import Declarations (JEP 476, JDK 23) #1213

Open
sebastiaanspeck opened this issue Dec 24, 2024 · 0 comments
Open

Support Module Import Declarations (JEP 476, JDK 23) #1213

sebastiaanspeck opened this issue Dec 24, 2024 · 0 comments
Labels

Comments

@sebastiaanspeck
Copy link

Consider the following code:

// this will import e.g. all the classes from package java.util, java.util.stream, java.io, java.lang, java.nio.file
import module java.base;

When trying to use google-java-format 1.24.0, this results in: com.google.googlejavaformat.java.FormatterException: 2:1: error: expected token: 'module'; generated java instead

@cushon cushon added the Java 23 label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants