[External] : Re: Classfile API proposal to integrate basic print functionality directly to ClassModel and MethodModel

Adam Sotona adam.sotona at oracle.com
Thu Jul 21 11:59:23 UTC 2022


Yes, this is valid request.
There is no debug print when stack map generation fails in CodeBuilder.

Thanks,
Adam

From: Michael van Acken <michael.van.acken at gmail.com>
Date: Thursday, 21 July 2022 13:21
To: Adam Sotona <adam.sotona at oracle.com>
Cc: classfile-api-dev at openjdk.org <classfile-api-dev at openjdk.org>
Subject: [External] : Re: Classfile API proposal to integrate basic print functionality directly to ClassModel and MethodModel
Related but geared towards the builder side of things:

Is there a way to print out a trace of parts fed to CodeBuilder instances?

Just this morning I had Classfile die on me because of a stack underflow,
and it was quite hard to find out which parts were missing from the Code
attribute.  And that with a Code totalling just 5 instructions...

If there would have been bytes output, then I could have inspected the
situation with javap.  But if I mess up and pass inconsistent data to
CodeBuilder, causing it to throw instead of producing a byte array, then
I have an observability gap.

-- mva

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20220721/e8555273/attachment-0001.htm>


More information about the classfile-api-dev mailing list