[jdk8u-dev] RFR: 8210560: [TEST] convert com/sun/jdi redefineClass-related tests

Kazuhisa Takakuri ktakakuri at openjdk.org
Wed Apr 17 08:22:04 UTC 2024


On Thu, 3 Aug 2023 07:15:41 GMT, Kazuhisa Takakuri <ktakakuri at openjdk.org> wrote:

> 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.

Indeed, this pull request includes some bug IDs.
I close this pull request to backport each bug ID separately.

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

PR Comment: https://git.openjdk.org/jdk8u-dev/pull/350#issuecomment-2060679323


More information about the jdk8u-dev mailing list