|
Lines 30-36
Link Here
|
| 30 |
// Static initializer to specify tests subset using TESTS_* static variables |
30 |
// Static initializer to specify tests subset using TESTS_* static variables |
| 31 |
// All specified tests which does not belong to the class are skipped... |
31 |
// All specified tests which does not belong to the class are skipped... |
| 32 |
static { |
32 |
static { |
| 33 |
// TESTS_NAMES = new String[] { "test1245" }; |
33 |
TESTS_NAMES = new String[] { "test1466" }; |
| 34 |
// TESTS_NUMBERS = new int[] { 1461 }; |
34 |
// TESTS_NUMBERS = new int[] { 1461 }; |
| 35 |
// TESTS_RANGE = new int[] { 1097, -1 }; |
35 |
// TESTS_RANGE = new int[] { 1097, -1 }; |
| 36 |
} |
36 |
} |
|
Lines 50531-50534
Link Here
|
| 50531 |
"The inherited method Object.clone() cannot hide the public abstract method in BaseType\n" + |
50531 |
"The inherited method Object.clone() cannot hide the public abstract method in BaseType\n" + |
| 50532 |
"----------\n"); |
50532 |
"----------\n"); |
| 50533 |
} |
50533 |
} |
|
|
50534 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=308682 |
| 50535 |
public void test1465() { |
| 50536 |
this.runNegativeTest( |
| 50537 |
new String[] { |
| 50538 |
"Type.java", |
| 50539 |
"class ExtTypeImpl<STORE extends ExtStore<? extends ExtType,? extends TypeImpl<STORE>>> extends TypeImpl<STORE> {}\n" + |
| 50540 |
"public interface Type {}\n" + |
| 50541 |
"interface ExtType extends Type {}\n" + |
| 50542 |
"class TypeImpl<STORE extends Store<? extends Type, ? extends TypeImpl<STORE>>> {}\n" + |
| 50543 |
"class Store<TYPE extends Type, IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> {}\n" + |
| 50544 |
"class ExtStore<TYPE extends ExtType, IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> extends Store<TYPE,IMPLTYPE> {}\n" |
| 50545 |
}, |
| 50546 |
"----------\n" + |
| 50547 |
"1. ERROR in Type.java (at line 1)\n" + |
| 50548 |
" class ExtTypeImpl<STORE extends ExtStore<? extends ExtType,? extends TypeImpl<STORE>>> extends TypeImpl<STORE> {}\n" + |
| 50549 |
" ^^^^^^^^^^^^^^^^^^\n" + |
| 50550 |
"Bound mismatch: The type ? extends TypeImpl<STORE> is not a valid substitute for the bounded parameter <IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> of the type ExtStore<TYPE,IMPLTYPE>\n" + |
| 50551 |
"----------\n"); |
| 50552 |
} |
| 50553 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=308682 |
| 50554 |
public void test1466() { |
| 50555 |
this.runNegativeTest( |
| 50556 |
new String[] { |
| 50557 |
"Type.java", |
| 50558 |
"class ExtTypeImpl<STORE extends ExtStore<? extends ExtType,? extends TypeImpl<STORE>>> extends TypeImpl<STORE> {}\n" + |
| 50559 |
"public interface Type {}\n" + |
| 50560 |
"interface ExtType extends Type {}\n" + |
| 50561 |
"class TypeImpl<STORE extends Store<? extends Type, ? extends TypeImpl<STORE>>> {}\n" + |
| 50562 |
"class Store<TYPE extends Type, IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> {}\n" + |
| 50563 |
"class ExtStore<TYPE extends ExtType, IMPLTYPE extends TypeImpl<? extends ExtStore<TYPE,IMPLTYPE>>> extends Store<TYPE,IMPLTYPE> {}\n" |
| 50564 |
}, |
| 50565 |
""); |
| 50566 |
} |
| 50534 |
} |
50567 |
} |