[JAVA-4411] Jsr310CodecProvider can be simplified in 4.x due to Java 8+ Created: 19/Nov/21  Updated: 28/Oct/23  Resolved: 22/Nov/21

Status: Closed
Project: Java Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: 4.5.0

Type: Improvement Priority: Unknown
Reporter: Ross Lawley Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

No longer need the canary test.

 Class.forName("java.time.Instant"); // JSR-310 support canary test.



 Comments   
Comment by Githook User [ 22/Nov/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Remove unnecessary test for availability of JSR-310 classes

We used to need this test when we supported Java 6 and 7,
but it's no longer needed with Java 8 as the minimum.

JAVA-4411
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/28d11271e79e823e406cae9d42745f6f8b9cb8ee

Generated at Thu Feb 08 09:02:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.