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

picocli-codegen generates invalid reflect.json for inner classes #901

Closed
remkop opened this issue Dec 21, 2019 · 0 comments
Closed

picocli-codegen generates invalid reflect.json for inner classes #901

remkop opened this issue Dec 21, 2019 · 0 comments
Labels
theme: annotation-proc An issue or change related to the annotation processor type: bug 🐛
Milestone

Comments

@remkop
Copy link
Owner

remkop commented Dec 21, 2019

When a command has an inner class, like an inner enum, the generated reflect.json contains the name of the enum twice, once as Outer$Inner, and once again as Outer.Inner.

This latter entry gives an error in native-image:

$ native-image -cp .:picocli-4.1.2.jar Outer
Build on Server(pid: 199, port: 57471)
[filelist:199]    classlist:     407.24 ms
[filelist:199]        (cap):   3,680.55 ms
[filelist:199]        setup:   4,259.75 ms
Error: Error parsing reflection configuration in file:/home/remko/project/META-INF/native-image/picocli-generated/reflect-config.json:
Class Outer.Inner not found
@remkop remkop added type: bug 🐛 theme: annotation-proc An issue or change related to the annotation processor labels Dec 21, 2019
@remkop remkop added this to the 4.1.3 milestone Dec 21, 2019
@remkop remkop closed this as completed in 577baf6 Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: annotation-proc An issue or change related to the annotation processor type: bug 🐛
Projects
None yet
Development

No branches or pull requests

1 participant