-
Bug
-
Resolution: Fixed
-
P3
-
None
-
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
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