This change fixes the test to try to load a different class with a CFLH. With --enable-preview, the java/util/Locale class may be loaded when loading the migrated classes at VM startup, so will be shared in this configuration. So I picked java/util/Calendar instead. Tested with the test on windows-x64.
------------- Commit messages: - 8372686: [lworld] runtime/cds/serviceability/ReplaceCriticalClasses.java fails with --enable-preview - 8372686: [lworld] runtime/cds/serviceability/ReplaceCriticalClasses.java fails with --enable-preview Changes: https://git.openjdk.org/valhalla/pull/1808/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1808&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8372686 Stats: 2 lines in 2 files changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/valhalla/pull/1808.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1808/head:pull/1808 PR: https://git.openjdk.org/valhalla/pull/1808
