JDK-8272194 java.sql.Date::toLocalDate() broken for dates before 1 A.D
Lance Andersen
lance.andersen at oracle.com
Thu Jan 8 16:51:22 UTC 2026
Hi Sholto
The PR is the best path forward for the issue in question
On Jan 8, 2026, at 11:24 AM, Sholto Bolton <bolotofski at gmail.com> wrote:
Hi Lance,
Thank you for your quick reply. I am just in the middle of sorting out the OCA with my company now.
Once that is done I will propose my fix.
Would you prefer that I send my proposed fix to this thread for discussion before putting up a PR?
Cheers,
Sholto Bolton
On Thu, Jan 8, 2026 at 3:16 PM Lance Andersen <lance.andersen at oracle.com<mailto:lance.andersen at oracle.com>> wrote:
Hi Sholto,
If you have a fix you would like to provide, please refer to https://openjdk.org/guide/#i-found-an-issue-in-jbs-that-i-want-to-fix in the OpenJDK developers guide. One of the first steps is signing the OCA, the Oracle Contributor Agreement. Once that is completed and approved, feel free to propose a fix. You will also want to update open/test/jdk/java/sql/testng/test/sql/DateTests.java and open/test/jdk/java/sql/testng/test/sql/TimestampTests.java to validate your change which would be provided as part of your proposed PR
Best
Lance
On Jan 8, 2026, at 9:46 AM, Sholto Bolton <bolotofski at gmail.com<mailto:bolotofski at gmail.com>> wrote:
Hello all,
I am just reaching out to ask about the status of the issue JDK-8272194<https://urldefense.com/v3/__https://bugs.java/bugdatabase/JDK-8272194.__;!!ACWV5N9M2RV99hQ!PfwaAm0YA0fsPF3Rt57ycSrQQa42jDtd29tw7t8acqcVU5vrJWY9dFvNnqDjdqGZfFddb6wLj0GbI6KTVM83lQ$> (as well as the related bug JDK-8272194<https://urldefense.com/v3/__https://bugs.java/bugdatabase/JDK-8272194__;!!ACWV5N9M2RV99hQ!PfwaAm0YA0fsPF3Rt57ycSrQQa42jDtd29tw7t8acqcVU5vrJWY9dFvNnqDjdqGZfFddb6wLj0GbI6LVCe_E4Q$>)
I have been dealing with this issue for over a year now, and finally decided to look into fixing it. I believe I have found the solution to it, however I see the issue is already assigned to Lance Andersen (who is hopefully reading this).
The solution I have arrived at seems naively simple however, so I imagine there is more to the problem than I have considered. How far along have other fixes for this gotten?
Also apologies if this is the wrong mailing list or way to reach out. I am new to the OpenJDK community so I may be lacking in etiquette.
Any reply would be appreciated.
Thank you,
Sholto Bolton
Lance Andersen
Oracle Java Engineering
1 Network Drive Burlington, MA 01803
Lance.Andersen at oracle.com<mailto:Lance.Andersen at oracle.com>
[oracle_sig_logo.gif]
Lance Andersen | Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20260108/fdd2b2d9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle_sig_logo.gif
Type: image/gif
Size: 658 bytes
Desc: oracle_sig_logo.gif
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20260108/fdd2b2d9/oracle_sig_logo-0001.gif>
More information about the core-libs-dev
mailing list