The logic in
|
String getter = "boolean".equals(identifier.getType()) ? "is" : "get"; |
only uses the prefix
is for type
boolean. However the same prefix is also used for the non primitive
Boolean.
For those the method JavaFieldMetadata.isBooleanGetter() returns true as well (
|
metadata.setBooleanGetter((fieldType != null) && fieldType.endsWith("oolean")); |
) which leads to generating method with this prefix (
|
String prefix = javaFieldMetadata.isBooleanGetter() ? "is" : "get"; |
).
This leads to compile time errors due to non existing methods being referenced in the toString() method.
The logic in
modello/modello-plugins/modello-plugin-java/src/main/java/org/codehaus/modello/plugin/java/JavaModelloGenerator.java
Line 399 in 4609f61
isfor typeboolean. However the same prefix is also used for the non primitiveBoolean.For those the method
JavaFieldMetadata.isBooleanGetter()returnstrueas well (modello/modello-plugins/modello-plugin-java/src/main/java/org/codehaus/modello/plugin/java/metadata/JavaMetadataPlugin.java
Line 128 in 4609f61
modello/modello-plugins/modello-plugin-java/src/main/java/org/codehaus/modello/plugin/java/JavaModelloGenerator.java
Line 1176 in 4609f61
This leads to compile time errors due to non existing methods being referenced in the
toString()method.