JTReg compiled .jasm files end up with incorrect class file versions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • asm_tools_7.0
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b04

      Compiling this .jasm file using @compile inside of a JTReg test results in class file version 45.3 instead of expected 54.65535:

      super public class Version54 version 54:65535 {

          public Method "<init>":"()V" stack 1 locals 1 {
              aload_0;
              invokespecial Method java/lang/Object."<init>":"()V";
              return;
          }

          public static Method main:"([Ljava/lang/String;)V" throws java/lang/Throwable stack 2 locals 1 {
              getstatic Field java/lang/System.out:"Ljava/io/PrintStream;";
              ldc String "Hello";
              invokevirtual Method java/io/PrintStream.println:"(Ljava/lang/String;)V";
              return;
          }

      } // end Class Version54

            Assignee:
            Leonid Kuskov
            Reporter:
            Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: