aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr235597/AnnotationTest1.java
blob: 5106fe1edf9c66c26b6635755f2638fa6368c8b4 (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
32
33
34
35
public class AnnotationTest1 {

    @SomeAnnotation
    public void test() {
        System.out.println("test 1");
    }

    public static void main(String[] args) {
        //CASE 1
        AnnotationTest1 test1 = new AnnotationTest1();
        test1.test();
        //CASE 2
        AnnotationTest2<Integer> test2 = new AnnotationTest2<Integer>();
        test2.test2();
        //CASE 3
        AnnotationTest3 test3 = new AnnotationTest3();
        test3.test3();
    }

    public static class AnnotationTest2<Type extends Object> {

        @SomeAnnotation
        public void test2() {
            System.out.println("test 2");
        }
    }

    public static class AnnotationTest3 extends AnnotationTest2<Double> {

        @SomeAnnotation
        public void test3() {
            System.out.println("test 3");
        }
    }
}