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

IStringConverter must NOT be Inner Class #489

Open
phreed opened this issue Jun 5, 2020 · 1 comment
Open

IStringConverter must NOT be Inner Class #489

phreed opened this issue Jun 5, 2020 · 1 comment

Comments

@phreed
Copy link

phreed commented Jun 5, 2020

This could be corrected with a change to the documentation.

The problem is that the parameter types for an inner class includes the parent class.
https://github.com/cbeust/jcommander/blob/master/src/main/java/com/beust/jcommander/JCommander.java#L1355
This means that the 'ctor' is not set and null is returned for inner class Converters.

@hongwingl
Copy link

It can be an inner class, you just have to declare it as static class

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

2 participants