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

"annotation" keyword is not parsed correctly when compiling jasm file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • asm_tools_6.0
    • None
    • tools
    • None

      When we try to compile a jasm file with keyword "annotation" asmtools throws an error. Snippert of Java and jasm is given below.

      We could see ACC_ANNOTATION when we compile using javac and check output using jdec. 0x2601 is the access in this case. However, we couldn't see the ACC_ANNOTATION(0x2000) when we create the class file using jasm.

      Asmtools error message:
      ---------------------------------
      $>java -jar asmtools.jar jasm Anno1.jasm
      Anno1.jasm:2: Error: class file version expected
      public abstract annotation interface Anno1
                                 ^
      1 error

      Jasm code:
      --------------
      public abstract annotation interface Anno1
      implements java/lang/annotation/Annotation
      version 53:0
      {

      } // end Class Anno1

            lkuskov Leonid Kuskov
            sramasamy Sankar Ramasamy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: