RFR: 8281243: Test java/lang/instrument/RetransformWithMethodParametersTest.java is failing

Leonid Mesnik lmesnik at openjdk.java.net
Fri Feb 4 18:38:07 UTC 2022


On Fri, 4 Feb 2022 11:18:39 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> The test expects ClassFileReconstituter restores exactly the same bytes as original classbytes.
> This can be wrong if the class has more than 1 method (due to method sorting in the VM).
> MethodParametersTarget class had only 1 method (method1), but didn't have constructors. This caused declaration of implicit default constructor, so the class actually had 2 methods.
> The fix converts the method to constructor to avoid default constructor declaration.

Marked as reviewed by lmesnik (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/7345


More information about the serviceability-dev mailing list