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

Introduce --source argument for Delombok #3340

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tamasvajk
Copy link

This PR introduces the a optional --source argument for Delombok. By specifying --source=X, the generated output conforms to Java version X. val x = 1; is Delomboked to final var x = 1; or final int x = 1; depending on the JVM executing Delombok. Specifying --source=1.8 results in the latter final int x = 1; variant even on JVM above version 9.

Fixes #3025.

@tamasvajk tamasvajk marked this pull request as draft February 1, 2023 10:24
@tamasvajk tamasvajk marked this pull request as ready for review February 1, 2023 13:55
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

Successfully merging this pull request may close these issues.

[BUG] val keyword delombok result breaks with Java 7 compatibility
1 participant