On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

> Class.isInterface() can check modifier flags, Class.isArray() can check 
> whether component mirror is non-null and Class.isPrimitive() needs a new 
> final transient boolean in java.lang.Class that the JVM code initializes.
> Tested with tier1-4 and performance tests.

src/java.base/share/classes/java/lang/Class.java line 1287:

> 1285:      */
> 1286:     public Class<?> getComponentType() {
> 1287:         // Only return for array types. Storage may be reused for Class 
> for instance types.

I don't see any changes to componentType related to reuse.  So was this comment 
and the code below already obsolete?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23572#discussion_r1960897176

Reply via email to