Skip to content

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
@rzwitserloot rzwitserloot added this to the next-next-version milestone Sep 4, 2025
@rzwitserloot
Copy link
Collaborator

Lovely idea and we'll pick this up soon.

@rzwitserloot rzwitserloot modified the milestones: v1.18.42, next-version Sep 18, 2025
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
2 participants