[jdk8u-dev] RFR: 8210560: [TEST] convert com/sun/jdi redefineClass-related tests
ktakakuri
duke at openjdk.org
Thu Aug 3 07:21:55 UTC 2023
This is a backport of JDK-8210560: [TEST] convert com/sun/jdi redefineClass-related tests.
Original patch does not apply cleanly to 8u, because:
1. ClassTranformer.java of the original patch uses jdk.test.lib.compiler.CompilerUtils in test/lib.
2. However, CompilerUtils in test/lib cannot be compiled with JDK8 because it uses an API added in JDK9 (javax.tools.StandardJavaFileManager).
So, I replaced the CompilerUtils with test/lib/testlibrary/CompilerUtils.java to avoid using StandardJavaFileManager.
I confirmed that all of these tests pass on Windows x86_64 and Linux RedHat x86_64.
-------------
Commit messages:
- Backport 0b3f46efe1db4516949d12a7bdfe67d4ca5eddef
Changes: https://git.openjdk.org/jdk8u-dev/pull/350/files
Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=350&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8210560
Stats: 9711 lines in 74 files changed: 5264 ins; 4443 del; 4 mod
Patch: https://git.openjdk.org/jdk8u-dev/pull/350.diff
Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/350/head:pull/350
PR: https://git.openjdk.org/jdk8u-dev/pull/350
More information about the jdk8u-dev
mailing list