You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has been a regression for Jackson -> OSON type mappings after the upgrade to the latest version of Jackson. Conversions from OffsetDateTime to TIMESTAMPTZ are no longer working, for example:
Movie movie = new Movie("Iron Man", "Action", OffsetDateTime.now());
ObjectMapper mapper = JacksonOsonConverter.getObjectMapper();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
mapper.writeValue(baos, movie);
baos.close();
// The Movie represented as OSON binary JSON
byte[] oson = baos.toByteArray();
OracleJsonFactory f = new OracleJsonFactory();
OracleJsonObject obj = f.createJsonBinaryValue(ByteBuffer.wrap(oson)).asJsonObject();
System.out.println(obj.get("created").getOracleJsonType() == OracleJsonType.TIMESTAMPTZ);
Additionally we need unit tests for each type mapping to prevent similar regressions in the future.
The text was updated successfully, but these errors were encountered:
There has been a regression for Jackson -> OSON type mappings after the upgrade to the latest version of Jackson. Conversions from OffsetDateTime to TIMESTAMPTZ are no longer working, for example:
Additionally we need unit tests for each type mapping to prevent similar regressions in the future.
The text was updated successfully, but these errors were encountered: