Class-File API debug printing capability

Chen Liang chen.l.liang at oracle.com
Mon Dec 9 15:05:18 UTC 2024


Thanks for this prompt. Note that CompoundElement implementations already have basic debug printout like ClassModel[thisClass=xxx, flags=xxx], so using "debug" to mean this resulting string is more detailed makes sense.

Chen
________________________________
From: classfile-api-dev <classfile-api-dev-retn at openjdk.org> on behalf of Adam Sotona <adam.sotona at oracle.com>
Sent: Monday, December 9, 2024 4:32 AM
To: classfile-api-dev at openjdk.org <classfile-api-dev at openjdk.org>
Subject: Class-File API debug printing capability


Class-File API lost debug printing capability with removal of the ClassPrinter in JDK-8345343<https://bugs.openjdk.org/browse/JDK-8345343>.
I’ve created a new enhancement<https://bugs.openjdk.org/browse/JDK-8345773> to add a method to `j.l.classfile.CompoundElement` returning its debug printout.

It is a chance to get this enhancement in Late-Enhancement Request Process (according to JEP 3) into JDK 24.



Please review the CSR: https://bugs.openjdk.org/browse/JDK-8345774

And PR: https://github.com/openjdk/jdk/pull/22634



Thank you!



Adam


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


More information about the classfile-api-dev mailing list