Lines 3037-3040
Link Here
|
3037 |
"----------\n" |
3037 |
"----------\n" |
3038 |
); |
3038 |
); |
3039 |
} |
3039 |
} |
|
|
3040 |
|
3041 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=266421 |
3042 |
public void test075() { |
3043 |
this.runNegativeTest( |
3044 |
new String[] { |
3045 |
"C.java", |
3046 |
"abstract class A<T extends Comparable> {\n" + |
3047 |
" abstract int x(T val);\n" + |
3048 |
"}\n" + |
3049 |
"class B<T extends Comparable> extends A<T> {\n" + |
3050 |
" @Override int x(T val) { return 0; }\n" + |
3051 |
"}\n" + |
3052 |
"class C extends B<Double> {\n" + |
3053 |
" int test(Double val) { return x(val); }\n" + |
3054 |
"}" |
3055 |
}, |
3056 |
"----------\n" + |
3057 |
"1. WARNING in C.java (at line 1)\n" + |
3058 |
" abstract class A<T extends Comparable> {\n" + |
3059 |
" ^^^^^^^^^^\n" + |
3060 |
"Comparable is a raw type. References to generic type Comparable<T> should be parameterized\n" + |
3061 |
"----------\n" + |
3062 |
"2. WARNING in C.java (at line 4)\n" + |
3063 |
" class B<T extends Comparable> extends A<T> {\n" + |
3064 |
" ^^^^^^^^^^\n" + |
3065 |
"Comparable is a raw type. References to generic type Comparable<T> should be parameterized\n" + |
3066 |
"----------\n" |
3067 |
); |
3068 |
} |
3040 |
} |
3069 |
} |