> 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.
Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision: Rename isPrimitiveType field to primitive. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/23572/files - new: https://git.openjdk.org/jdk/pull/23572/files/3e731b9f..d08091ac Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=23572&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23572&range=01-02 Stats: 11 lines in 5 files changed: 2 ins; 0 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/23572.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23572/head:pull/23572 PR: https://git.openjdk.org/jdk/pull/23572