Skip to content

feat(jdk-codemodel): add withOptions and withEnablePreview to JdkInitializer#95

Merged
deer merged 1 commit into
mainfrom
better_options
Jun 12, 2026
Merged

feat(jdk-codemodel): add withOptions and withEnablePreview to JdkInitializer#95
deer merged 1 commit into
mainfrom
better_options

Conversation

@deer

@deer deer commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator
  • Adds withOptions(List<String>) to pass arbitrary flags to the underlying javac invocation; may be called multiple times and options accumulate in call order.
  • Adds withEnablePreview(int sourceVersion) and withEnablePreview() as convenience wrappers that enforce the required --enable-preview --source <N> pairing.
  • Adds six tests covering option forwarding, accumulation across chained calls, the no-options baseline, and preview syntax acceptance/rejection.

@deer deer merged commit 0532cff into main Jun 12, 2026
1 check passed
@deer deer deleted the better_options branch June 12, 2026 03:50
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.

1 participant