RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v5]
Chen Liang
liach at openjdk.org
Fri Feb 21 14:04:02 UTC 2025
On Fri, 21 Feb 2025 12:27:56 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> You are right, using the field directly is indeed better.
>
> I don't use the field directly because the field is a short and getModifiers makes it into Modifier.
Indeed, even though this checks for the specific bit so widening has no effect, it is better to be cautious here.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23572#discussion_r1965522767
More information about the core-libs-dev
mailing list