try {
org.hotswap.agent.javassist.CtClass cc = pool.get(classname);
ClassFile cf = cc.getClassFile2();
org.hotswap.agent.javassist.bytecode.MethodInfo minfo = cf.getMethod(name);
if (minfo != null) {
AnnotationDefaultAttribute ainfo
= (AnnotationDefaultAttribute)
minfo.getAttribute(AnnotationDefaultAttribute.tag);
if (ainfo != null) {
MemberValue mv = ainfo.getDefaultValue();
return mv.getValue(classLoader, pool, method);
}
}
} catch (org.hotswap.agent.javassist.NotFoundException e) {
throw new RuntimeException("cannot find a class file: "