Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902132

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • asm_tools_7.0
    • None
    • 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

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

              Created:
              Updated:
              Resolved: