RFR: 6434110: Color constructor parameter name is misleading [v2]
Alexey Ivanov
aivanov at openjdk.org
Tue Feb 17 20:32:57 UTC 2026
On Tue, 17 Feb 2026 20:24:33 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> > int expR = (argb >>> 16);
> > You can still use >>> for other components,
>
> it does not work for others, it works only for alpha.
No, it doesn't work without `& 0xFF`.
How can this not work?
int expR = (argb >>> 16) & 0xFF;
int expG = (argb >>> 8) & 0xFF;
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29734#discussion_r2818938012
More information about the client-libs-dev
mailing list