RFR: 5038439: Warning message for literal shift amounts outside the canonical domain [v3]

Archie Cobbs acobbs at openjdk.org
Wed Nov 5 15:41:07 UTC 2025


On Wed, 5 Nov 2025 15:26:31 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Maybe the line needs to be draw closer to "the code is probably buggy/highly suspicious".

I'm OK with this more conservative approach, which should satisfy all the "real hackers": instead of warning for values outside of the range `[0,n)` (where `n` is 32 or 64), only warn for values outside of the range `(-n, n)`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27102#discussion_r2495106722


More information about the build-dev mailing list