JDK-8272194 java.sql.Date::toLocalDate() broken for dates before 1 A.D

Sholto Bolton bolotofski at gmail.com
Thu Jan 8 16:24:52 UTC 2026


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>
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> wrote:
>
> Hello all,
>
> I am just reaching out to ask about the status of the issue JDK-8272194
> <https://bugs.java/bugdatabase/JDK-8272194.> (as well as the related bug
> JDK-8272194 <https://bugs.java/bugdatabase/JDK-8272194>)
>
> 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20260108/4b21b757/attachment-0001.htm>


More information about the core-libs-dev mailing list