RFR: 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond
Naoto Sato
naoto at openjdk.org
Tue Jun 27 16:16:09 UTC 2023
On Tue, 27 Jun 2023 07:23:21 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Fixing the `/ by zero` exception with tick durations less than a millisecond.
>
> test/jdk/java/time/test/java/time/TestClock_Tick.java line 77:
>
>> 75: * Test tick clock.
>> 76: *
>> 77: * @bug 8310232
>
> Did you mean the put the "@bug" here? If you did then I assume you'll need to add the original bug ID too as TestClock_Tick wasn't created for 8310232.
I meant to put the bug id here, but you are right that it would confuse readers as if it is the bug that created this regression test. Will remove it and leave the bug id only for the added test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14657#discussion_r1244011818
More information about the core-libs-dev
mailing list