[jdk15u-dev] RFR: 8286277: CDS VerifyError when calling clone() on object array

Jan Kratochvil duke at openjdk.org
Tue Jul 19 06:22:48 UTC 2022


There was [a clean accepted backport to OpenJDK-17](https://github.com/openjdk/jdk17u-dev/pull/519).

This OpenJDK-15 backport is not clean as the original commit errors on OpenJDK-15 with:

TEST RESULT: Error. can't find jdk.test.lib.helpers.ClassFileInstaller in test directory or libraries

as OpenJDK-15 is missing:
 * [JDK-8263412](https://bugs.openjdk.org/browse/JDK-8263412): ClassFileInstaller can't be used by classes outside of default package


I am not yet an Author - I do not have JBS account.
There are 3 new testcases and the first 2 ones to be tested require the testsuite to be run with `TEST="hotspot_cds tier1"`.
 * runtime/cds/appcds/VerifyObjArrayCloneTest.java
 * runtime/cds/appcds/dynamicArchive/VerifyObjArrayCloneTest.java
 * runtime/verifier/InvokeClone.java

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

Commit messages:
 - Backport fix: 8286277: CDS VerifyError when calling clone() on object array
 - 8286277: CDS VerifyError when calling clone() on object array

Changes: https://git.openjdk.org/jdk15u-dev/pull/236/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk15u-dev&pr=236&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8286277
  Stats: 346 lines in 7 files changed: 337 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/jdk15u-dev/pull/236.diff
  Fetch: git fetch https://git.openjdk.org/jdk15u-dev pull/236/head:pull/236

PR: https://git.openjdk.org/jdk15u-dev/pull/236


More information about the jdk-updates-dev mailing list