-
Notifications
You must be signed in to change notification settings - Fork 418
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
Exclusive argument groups disappear when using native-image #793
Comments
Thanks for raising this! |
I've been able to reproduce the problem. |
…e generated `reflect-config.json` was missing the `@ArgGroup`-annotated fields)
The problem was that the generated reflect-config.json was missing the I've pushed a fix to master, and will do a release for this soon. |
Thanks! Amazingly fast work! |
Picocli 4.0.3 which includes a fix for this issue has been released and should be available from Maven Central in a few hours. Thanks again for the bug report! |
@mikehearn It would be great if you could confirm that picocli 4.0.3 fixes the issue. |
It works! Thanks again. |
Excellent! |
I have the following code:
This works as expected on HotSpot. When using the annotation processor and native-imaeg, the -e and -d options vanish from the help output and trying to access mode throws an NPE. It's like PicoCLI just forgets all about the mode parameter entirely, but the other params are still there!
I checked the generated JSON files and they look reasonable. Mode and the options are there. Seems something goes wrong at runtime.
The text was updated successfully, but these errors were encountered: