<div dir="ltr">Hello Mark,<div>You can use the toDebugString defined on CompoundElement. Note that ClassModel, FieldModel, MethodModel, CodeModel are CompoundElement.</div><div><a href="https://bugs.openjdk.org/browse/JDK-8345774">https://bugs.openjdk.org/browse/JDK-8345774</a></div><div><br></div><div>We found that debug printing is necessary, but formatting them to json or yaml consistently doesn't make so much sense as the print output is really for human consumption. For programs, just work on the ClassFile API model objects.</div><div><br></div><div>Regards,</div><div>Chen</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Feb 9, 2025 at 12:48 PM Mark Roberts <<a href="mailto:markro@cs.washington.edu">markro@cs.washington.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg7010384026836236089"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="m_7010384026836236089WordSection1"><p class="MsoNormal">With the removal of ‘components’ to jdk/internal what is the best way to get the functionality of ClassPrinter?</p><p class="MsoNormal"> </p><p class="MsoNormal">Thank you, Mark</p><p class="MsoNormal"> </p></div></div>
</div></blockquote></div>