aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs193/333274/ma2/Main.java
blob: 434bee40dd93249be7dc00b29d947340a99576c8 (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
package ma2;

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();
    }

}