Key annotation does not support java.time.Instant

23 views
Skip to first unread message

Kashif Inam

unread,
Jan 22, 2018, 4:28:30 PM1/22/18
to google-http-java-client
I am trying to use Key with java.time.Instant object and it throws below error

Caused by: java.lang.IllegalArgumentException: expected primitive class, but got: class java.time.Instant
at com.google.api.client.util.Data.parsePrimitiveValue(Data.java:444)
at com.google.api.client.json.JsonParser.parseValue(JsonParser.java:850)

I am using 1.20.0 version.

Any help will be greatly appricated.

Thanks
Kashif
Reply all
Reply to author
Forward
0 new messages