[lworld] RFR: JDK-8272397: [lworld] Move ValueBootstrapMethods to java.lang.runtime

Mandy Chung mchung at openjdk.java.net
Thu Aug 12 21:43:55 UTC 2021


`ValueBootstrapMethods` is the default implementation of `Object::equals` and `Object::hashCode`
for primitive class. It does not belong to java.lang.invoke. java.lang.runtime is a more
appropriate home.  It can also share the code in `ObjectMethods`.

The methods are now renamed to `java.lang.runtime.PrimitiveObjectMethods::isSubtitutable`
and `primitiveObjectHashCode`.

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

Commit messages:
 - JDK-8272397: [world] Move ValueBootstrapMethods to java.lang.runtime

Changes: https://git.openjdk.java.net/valhalla/pull/529/files
 Webrev: https://webrevs.openjdk.java.net/?repo=valhalla&pr=529&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8272397
  Stats: 1231 lines in 18 files changed: 495 ins; 702 del; 34 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/529.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/529/head:pull/529

PR: https://git.openjdk.java.net/valhalla/pull/529


More information about the valhalla-dev mailing list