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 for Java Records #560

Open
mkarg opened this issue Jun 18, 2023 · 1 comment
Open

Support for Java Records #560

mkarg opened this issue Jun 18, 2023 · 1 comment

Comments

@mkarg
Copy link
Collaborator

mkarg commented Jun 18, 2023

Java records come very handy to hold parameter values as a replacement for custom classes, as much less custom code is to be written.

Unfortunately JCommander does not allow to put annotations on record components.

To allow the use of records, JCommander should extend the target location of @Parameter to include RECORD_COMPONENT.

@mkarg
Copy link
Collaborator Author

mkarg commented Jun 18, 2023

@cbeust WDYT?

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

No branches or pull requests

1 participant