이 pointcut의 형식 문제는 무엇입니까?Pointcut not well 서식이 적용됨
@Around("execution(* @myPackage.SafetyCritical.*(*))&& @annotation(deny)")
.I 추가하는 것을 잊었다 : 기대 '이름 패턴'
(마지막 닫는 대괄호 & & 전) 포인트 컷이 클래스와 함께 작동합니다 예제 : 예외가 포인트 컷은 잘 형성되지 않습니다 "입니다 :
@SafetyCritical
public class SecureClass
{
public SecureClass(){
}
@Deny
public void isNotAllowed(){
System.out.println("This should not happen");
}
@Allow
public void isAllowed(){
System.out.println("Allowed");
}
}
이 이유없는 –
음, 구문 분석 예외는 때때로 잘못된 방향을 가리킬 수 있습니다. 제안을 시도 했습니까? –
예. 왜 "@"를 떠났어? SafetyCritical은 주석입니다 –