Why jcabi-aspects annotations doesn't work
问题 I have this code: public static void main(String[] args) { testAnnotation(); } @RetryOnFailure(attempts = 2) public static void testAnnotation() { System.out.println("enter here"); int x = 1/0; } But it runs the function just one time. This is the output: enter here Exception in thread "main" java.lang.ArithmeticException: / by zero at Main.testAnnotation(Main.java:16) at Main.main(Main.java:10) This my pom: <dependency> <groupId>com.jcabi</groupId> <artifactId>jcabi-aspects</artifactId>