* 5) Initialize the field of the instrumented class objects with actual field objects
* 6) Run the init() function of the instrumented class
*
- * @param typeRef int
- * @param typePath TypePath
* @param desc String
* @param visible boolean
* @return AnnotationVisitor
* This method visits annotation that is meta-annotated as TYPE_USE, so we can instrument @config here
*/
@Override
- public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath,
- String desc, boolean visible) {
+ public AnnotationVisitor visitAnnotation(String desc,
+ boolean visible) {
- //RuntimeOutput.print("ClassRuntimeInstrumenterMaster@AnnotationTypeVisitor: " + desc, bVerbose);
+ //RuntimeOutput.print("ClassRuntimeInstrumenterMaster@AnnotationVisitor: " + desc, bVerbose);
// Check annotation description @config
if(desc.equals(STR_IOT_ANNOTATION_SIGNATURE)) {
throw new Error("ClassRuntimeInstrumenterMaster@AnnotationTypeVisitor: " + strFieldDesc + " not recognized!");
}
}
- return super.visitTypeAnnotation(typeRef, typePath, desc, visible);
+ return super.visitAnnotation(desc, visible);
}
}