You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use word-delimiters option with a hyphen value from the CLI
What is the expected output?
The name of the generated file.
What do you see instead?
pmarchwiak$ ./jsonschema2pojo -s schema.json -t src/java/ -p com.example --word-delimiters "-"
Exception in thread "main" java.lang.IllegalArgumentException: Can not set [C field com.googlecode.jsonschema2pojo.cli.Arguments.propertyWordDelimiters to java.lang.String
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
at java.lang.reflect.Field.set(Field.java:657)
at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:211)
at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:159)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:553)
at com.beust.jcommander.JCommander.parse(JCommander.java:246)
at com.beust.jcommander.JCommander.parse(JCommander.java:229)
at com.googlecode.jsonschema2pojo.cli.Arguments.parse(Arguments.java:76)
at com.googlecode.jsonschema2pojo.cli.Jsonschema2Pojo.main(Jsonschema2Pojo.java:58)
What version of the product are you using? On what operating system?
Original author: [email protected] (May 08, 2012 00:12:56)
What steps will reproduce the problem?
What is the expected output?
The name of the generated file.
What do you see instead?
pmarchwiak$ ./jsonschema2pojo -s schema.json -t src/java/ -p com.example --word-delimiters "-"
Exception in thread "main" java.lang.IllegalArgumentException: Can not set [C field com.googlecode.jsonschema2pojo.cli.Arguments.propertyWordDelimiters to java.lang.String
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
at java.lang.reflect.Field.set(Field.java:657)
at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:211)
at com.beust.jcommander.ParameterDescription.addValue(ParameterDescription.java:159)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:553)
at com.beust.jcommander.JCommander.parse(JCommander.java:246)
at com.beust.jcommander.JCommander.parse(JCommander.java:229)
at com.googlecode.jsonschema2pojo.cli.Arguments.parse(Arguments.java:76)
at com.googlecode.jsonschema2pojo.cli.Jsonschema2Pojo.main(Jsonschema2Pojo.java:58)
What version of the product are you using? On what operating system?
0.2.3
OS X 10.6.8
Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=47
The text was updated successfully, but these errors were encountered: