aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs193/333274/ma/Main.java
blob: f86ba3c4e92ac3b1d5a7756e5a3ef31dab72126d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package ma;

import ma.aspect1.Annotation1;
import ma.aspect2.Annotation2;
import ma.aspect3.Annotation3;

public class Main {

    public static class Dummy {

        private int counter = 0;

        @Annotation1
        @Annotation2
        @Annotation3
        public int retryTranslateAndTimeLimited() {
            System.out.println("Method call");
            if (counter++ == 0) {
                throw new IllegalStateException();
            } else {
                return 1;
            }
        }

    }

    public static void main(String[] args) {
        new Dummy().retryTranslateAndTimeLimited();
    }

}