RFR: 8286378: Address possibly lossy conversions in java.base [v3]

ExE Boss duke at openjdk.java.net
Fri May 13 14:27:02 UTC 2022


On Fri, 13 May 2022 14:18:04 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Well spotted, I don't think that change was intentionally.
>
> Ouch; Will fix:
> 
> I took Alan's earlier comment literally:
> 
> "This one can also be changed to:
> 
> to =- (int) TimeUnit.NANOSECONDS.toMillis(adjust);"

@RogerRiggs
This already got fixed by @jaikiran in [GH‑8693].

[GH‑8693]: https://github.com/openjdk/jdk/pull/8693

-------------

PR: https://git.openjdk.java.net/jdk/pull/8642



More information about the security-dev mailing list