RFR: 8359707: Add classfile modification code to RedefineClassHelper [v4]

Serguei Spitsyn sspitsyn at openjdk.org
Thu Jun 26 05:01:39 UTC 2025


On Wed, 25 Jun 2025 20:39:50 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> test/lib/RedefineClassHelper.java line 95:
>> 
>>> 93:         ClassDesc newClassDesc = ClassDesc.of(newClassName);
>>> 94:         byte[] newBytes = ClassFile.of().build(newClassDesc,
>>> 95:             classBuilder -> {
>> 
>> Can replace this lambda with `classModel::forEach` method reference.
>
> Thanks for the suggestion!  Testing now.

Final version of this method is nice!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25857#discussion_r2168108584


More information about the serviceability-dev mailing list