<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
For 3 I am talking about the of(Object) instead of the ofXyz ones, indeed. We seek to remove AnnotationValue.of(Object).</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also thanks for the suggestion of this method on CodeBuilder. I personally lean more on dropping automatic computation once this method is called, but feel free to start another thread for more input.</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 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 id="appendonsend"></div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Rafael Winterhalter <rafael.wth@gmail.com><br>
<b>Sent:</b> Wednesday, August 14, 2024 3:55 PM<br>
<b>To:</b> Chen Liang <chen.l.liang@oracle.com><br>
<b>Cc:</b> classfile-api-dev <classfile-api-dev@openjdk.org><br>
<b>Subject:</b> Re: [External] : Re: ASM to OpenJDK ClassReader/ClassWriter bridge: experiences and questions</span>
<div> </div>
</div>
<div style="direction: ltr;">As for (3): Do you mean the AnnotationValue.of(Object) method, or the entire hierarchy of AnnotationValue.ofYYY(...) methods? I am only using the latter methods, and I would not know of an alternative tree model. Can you give me
a pointer?</div>
<div style="direction: ltr;">As for (4): I would implement this similar to stack map frames. Compute them by default but offer an option to keep them at zero by default:</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">ClassFile.MethodSizeOptions.COMPUTE<br>
ClassFile.MethodSizeOptions.ZERO</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Then there could be a method on CodeBuilder such as "maxs(short, short)" where the relevant values are simply written to the relevant class file location.</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Best regards, Rafael</div>
<div><br>
</div>
</body>
</html>