RFR: 8307818: Convert Indify tool to Classfile API [v16]

Adam Sotona asotona at openjdk.org
Tue Jun 25 13:52:23 UTC 2024


On Tue, 25 Jun 2024 13:45:17 GMT, Oussama Louati <duke at openjdk.org> wrote:

>> test/jdk/java/lang/invoke/indify/Indify.java line 386:
>> 
>>> 384: 
>>> 385:     byte[] transformToBytes(ClassModel classModel) {
>>> 386:         return of().transform(classModel, ClassTransform.ACCEPT_ALL);
>> 
>> What is the purpose of this transformation?
>
> Transforming the classModel back to the bytes array in order to write the transformed classfile

And what is the purpose of parsing a model from bytes and transforming it back to bytes without a change?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18841#discussion_r1652861409


More information about the core-libs-dev mailing list