<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 12/12/25 3:19 am, Leonid Kuskov
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:BN0PR10MB4886866E90FD6FBAC306CDC097A1A@BN0PR10MB4886.namprd10.prod.outlook.com">
      
      <p dir="ltr" style="text-align: left; text-indent: 0px;"><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">In
          typical usage, a
          <code>.jasm</code> file explicitly specifies the class-file
          version in its header, for example:</span></p>
      <pre><div dir="ltr" class="overflow-y-auto p-4" style="text-align: left; text-indent: 0px; font-size: 12pt; color: rgb(0, 0, 0);"><code>test.jasm
public super class test version 55:0 {}
</code></div></pre>
      <p style="text-align: left; text-indent: 0px;"><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">If
          the version isn't specified in the file,
          <code>jasm</code> defaults to 45.3.</span></p>
      <p style="text-align: left; text-indent: 0px;"><span style="font-size: 16px;">When a version is present in the
        </span><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><code style="font-family: Aptos, Arial, Helvetica, sans-serif;">.jasm</code></span><span style="font-size: 16px;"> file, the
        </span><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><code style="font-family: Aptos, Arial, Helvetica, sans-serif;">-cv</code></span><span style="font-size: 16px;"> option
        </span>doesn’t override<span style="font-size: 16px;"> it. For
          example, given a header such as:</span></p>
      <pre><div dir="ltr" class="overflow-y-auto p-4" style="text-align: left; text-indent: 0px; font-size: 12pt; color: rgb(0, 0, 0);"><code>public super class test version 55:0 {}
</code></div></pre>
      <p style="text-align: left; text-indent: 0px;"><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">and
          the command:</span></p>
      <pre><div dir="ltr" class="overflow-y-auto p-4" style="text-align: left; text-indent: 0px; font-size: 12pt; color: rgb(0, 0, 0);"><code>jasm -cv 66.0 -w . test.jasm
</code></div></pre>
      <p style="text-align: left; text-indent: 0px;"><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">the
          generated class file will still use version 55.0, because the
          version defined in the source takes precedence.</span></p>
    </blockquote>
    <p>Thank you Leonid, this is what I had hoped -cv would be, but got
      confused by the comment in that Main.java code. Thank you for
      confirming.<br>
    </p>
    <blockquote type="cite" cite="mid:BN0PR10MB4886866E90FD6FBAC306CDC097A1A@BN0PR10MB4886.namprd10.prod.outlook.com">
      <div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Leonid</div>
      <div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        BTW: The latest asmtools release is 9.1, which is preferable to
        version 8.1 for new or updated workflows.</div>
    </blockquote>
    <p>I will take this up with the jtreg dev team and see if we should
      upgrade to it. One thing that's important for jtreg is the ability
      to use this library on older Java versions. asmtools 8.1 requires
      Java 17 runtime and when we upgraded jtreg to use 8.1 of asmtools,
      we had to enforce Java 17 as the minimum to build and launch the
      jtreg tool.<br>
    </p>
    <p>-Jaikiran<br>
    </p>
  </body>
</html>