throw new RuntimeException(
"Can't encode "
+ value.getClass().getName()
- + " as it has multiple fields with the name "
+ + " as it has multiple properties with the name "
+ fieldName.toLowerCase()
- + ". This can happen if only casing distinguishes one property name from another.");
+ + ". This can happen if there are getters and setters for a public field (the framework can't know which to ignore) or if there are properties with only casing distinguishing between the names (e.g. getFoo() and getFOO())");
}
Object fieldReference;