[JAVA-2507] Remove dependency on javax.xml.bind.DatatypeConverter Created: 04/May/17  Updated: 29/Oct/23  Resolved: 16/May/17

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: None
Fix Version/s: 3.5.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-3122 java.lang.NoClassDefFoundError: javax... Closed
Epic Link: Java9

 Description   

In Java 9, the javax.xml.bind.DatatypeConverter class is part of the the java.xml.bind module, which is not a dependency of the java.se module (though it is a dependency of java.se.ee). To maximize deployment opportunities for the driver, the dependency on this module should be eliminated.



 Comments   
Comment by Githook User [ 16/May/17 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2507: When available (starting with Java 8), use java.time.format.DateFormatter.ISO_OFFSET_DATE_TIME instead of javax.xml.bind.DatatypeConverter.parseDateTime
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/307d502c67256216ae2e0e3d54d0e4e5cea6ba1b

Comment by Githook User [ 16/May/17 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2507: Replace use of javax.xml.bind.DatatypeConverter for hex-decoding
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/935d762dc728a67fe30f695e1b3997be46b1320e

Comment by Githook User [ 16/May/17 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2507: Replace use of javax.xml.bind.DatatypeConverter for Base64 encoding and decoding with org.bson.internal.Base64
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/96440b5ed760aa673c964a2ac49a851545f34ee2

Comment by Jeffrey Yemin [ 05/May/17 ]

PR: https://github.com/jyemin/mongo-java-driver/pull/30

Generated at Thu Feb 08 08:57:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.