<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for this prompt. Note that CompoundElement implementations already have basic debug printout like
<code>ClassModel[thisClass=xxx, flags=xxx]</code>, so using "debug" to mean this resulting string is more detailed makes sense.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Chen</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> classfile-api-dev <classfile-api-dev-retn@openjdk.org> on behalf of Adam Sotona <adam.sotona@oracle.com><br>
<b>Sent:</b> Monday, December 9, 2024 4:32 AM<br>
<b>To:</b> classfile-api-dev@openjdk.org <classfile-api-dev@openjdk.org><br>
<b>Subject:</b> Class-File API debug printing capability</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Aptos}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#467886;
        text-decoration:underline}
span.x_EmailStyle17
        {font-family:"Aptos",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:11.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">Class-File API lost debug printing capability with removal of the ClassPrinter in <a href="https://bugs.openjdk.org/browse/JDK-8345343" title="Hide java.lang.classfile.components package to implementation">JDK-8345343</a>.<br>
I’ve created a new <a href="https://bugs.openjdk.org/browse/JDK-8345773">enhancement</a> to add a method to `j.l.classfile.CompoundElement` returning its debug printout.</p>
<p class="x_MsoNormal">It is a chance to get this enhancement in Late-Enhancement Request Process (according to JEP 3) into JDK 24.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Please review the CSR: <a href="https://bugs.openjdk.org/browse/JDK-8345774">
https://bugs.openjdk.org/browse/JDK-8345774</a></p>
<p class="x_MsoNormal">And PR: <a href="https://github.com/openjdk/jdk/pull/22634">
https://github.com/openjdk/jdk/pull/22634</a> <b></b></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thank you!</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Adam</p>
<p class="x_MsoNormal"> </p>
</div>
</div>
</body>
</html>