RFR: 8314258: checked_cast doesn't properly check some cases

Andrew Haley aph at openjdk.org
Thu Feb 5 12:45:36 UTC 2026


On Thu, 5 Feb 2026 00:03:20 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this addition of the `integer_cast` utility.
> 
> Details in first comment, to avoid email spamming from automatic messages.
> 
> Testing: mach5 tier1-5 with `checked_cast` for integral types changed to call
> the new `integer_cast`.  Addition of `integer_cast` includes gtests.

test/hotspot/gtest/utilities/test_integerCast.cpp line 1:

> 1: /*

Shouldn't we test the `integer_cast` function in this file?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29582#discussion_r2768971471


More information about the hotspot-dev mailing list