[lworld] RFR: 8294866: [lworld] Array classes access flags should include identiy bits

Chen Liang liach at openjdk.org
Thu Jun 20 15:10:26 UTC 2024


On Thu, 20 Jun 2024 14:38:26 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Update java.lang.reflect.AccessFlag to return IDENTITY for array classes.
> The access flag bits for arrays come from the VM, hence the changes to HotSpot.

src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 218:

> 216:                 @Override
> 217:                 public Set<Location> apply(ClassFileFormatVersion cffv) {
> 218:                     return (cffv.compareTo(ClassFileFormatVersion.RELEASE_23) >= 0

Should we just use `cffv == ClassFileFormatVersion.latest()`?

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1141#discussion_r1647739592


More information about the valhalla-dev mailing list