// used in failure message
Class cls = (annot.equals(localAnn))? remoteAnn : localAnn;
for (String intf : interfaces) {
try {
Class intfCls = Class.forName(intf,
false,
getVerifierContext().getClassLoader());
if(intfCls.getAnnotation(annot)!=null) {
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName() + ".failed",
"{0} annotation is used in {1} interface [ {2} ].",
new Object[]{annot.getSimpleName(),
cls.getSimpleName(),
intfCls.getName()}));
}
} catch (ClassNotFoundException e) {
//ignore as it will be caught in other tests
}
}