problems with ldc on 24.36

Mark Roberts markro at cs.washington.edu
Mon Feb 10 00:22:22 UTC 2025


I just changed from 24-ea+22-2649 to 24+36-3646 and almost all my test
cases worked fine.  However, I ran into a problem with ldc:



ConstantInstruction.ofLoad(Opcode.LDC,
poolBuilder.stringEntry(binaryClassName))



This used to work if the constant pool entry for binaryClassName was >256 –
it would automatically generate a ldc_w.



Now it generates a ldc and uses just the lower 8 bits of the offset.  This
seems like a problem as a user is not expected to know the constant pool
offset, are they?



Thank you,

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20250209/249b01a9/attachment.htm>


More information about the classfile-api-dev mailing list