Closed jansupol closed 8 years ago
@glassfishrobot Commented Reported by genomeprjct
@glassfishrobot Commented voyto said: It is possible. From the specification:
Parameters of constructor/factory method annotated with JsonbCreator will be mapped from JSON fields with the same name. The name of a parameter can be changed annotating given parameter with JsonbProperty annotation.
@glassfishrobot Commented snajper said: I assume this one can be closed.
@glassfishrobot Commented voyto said: I think so.
@glassfishrobot Commented Was assigned to voyto
@glassfishrobot Commented This issue was imported from java.net JIRA JSONB_SPEC-36
@glassfishrobot Commented Marked as fixed on Monday, September 14th 2015, 1:55:59 am
After reading through the EDR, this seems like a big miss. It should be possible to map a JsonbProperty to a constructor argument, rather than expect that field names match.