boonproject / boon

Simple opinionated Java for the novice to expert level Java Programmer. Low Ceremony. High Productivity.
http://richardhightower.github.io/site/Boon/Welcome.html
Apache License 2.0
520 stars 102 forks source link

Parsing ZonedDateTime: "Unable to extract annotation for property chronology" #368

Open askaribragimov opened 7 years ago

askaribragimov commented 7 years ago

I am trying to parse a field into ZonedDateTime using Boon Json library and receive the following error (abriged):

handleExceptionorg.boon.Exceptions$SoftenedException: fieldName order  of class 
  RowModel had issues for value MAP for field FieldInfo [name=order, 
  type=class OrderRowModel]
CAUSE org.boon.Exceptions$SoftenedException :: fieldName updatedAt of class class OrderRowModel
  had issues for value 2017-02-13T13:07:09.481Z for field FieldInfo 
  [name=updatedAt, type=class java.time.ZonedDateTime]
CAUSE org.boon.Exceptions$SoftenedException :: name chronology setter null 
  getter public default java.time.chrono.Chronology 
  java.time.chrono.ChronoZonedDateTime.getChronology()
CAUSE org.boon.Exceptions$SoftenedException :: Unable to extract annotation for property
  chronology  of class  interface java.time.chrono.ChronoZonedDateTime   useRead  false

I suppose I should somehow add support or configure Boon.Json to handle ZonedDateTime properly. How can I avoid the error?