I'm Trying to use @DeclareError annotation to detect method and make compile error which not use annotation like this :
@Pointcut("execution(public String com.example.checkloggingannotation.SampleController.*(..))")
fun testError(){}
@DeclareError("testError()")
val getTestError = "test error"
@Around("testError()")
fun aopTest(joinPoint: ProceedingJoinPoint): Any? {
println("yes man")
return joinPoint.proceed()
}
@Around's AOP method works but @DeclareError's error not works. Can't @DeclareError use in intellij and gradle environment?
I've searched about @DeclareError but sources Most examples were Eclipse environments.