When using a JVM annotation, it is necessary to specify a value for all those elements that do not have a default value. The following example includes two attributes that require values.
$set ilusing"java.lang.annotation" attribute-id MyAttr. * studentAge and studentStream have defaut values. * studentName and studentAddress must be given explicit values * when the annotation is used. 01 studentAge binary-long value 18. 01 studentName string. 01 studentAddress string. 01 studentStream string value "GCSE". end attribute. class-id UseAttr attribute MyAttr. method-id main static. display "Pass" end method. end class.