Details
-
Bug
-
Resolution: Done
-
Minor
-
1.32.0.Final
-
None
-
False
-
None
-
False
-
---
-
---
-
Moderate
Description
ReflectionProtoGenerator throws missing field exception on methods that looks like getter or setter but without a backing field, below example should trigger the exception.
public class Person { private String id; public String getId() { return id; } public void setId(String id) { this.id = id; } // seeks for idBytes field throwing IllegalArgumentException public byte[] getIdBytes() { return id.getBytes(); } }
Could be handled by renaming the problematic method but sometimes the POJO is extended from a third party library or even from base java classes.