2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4821359
|
|
|
|
* @summary Add -Xlint flag
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @compile/fail/ref=Unchecked.out -XDrawDiagnostics -Xlint:unchecked -Werror Unchecked.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class Unchecked<T> {
|
|
|
|
void f(Unchecked u) {
|
|
|
|
Unchecked<String> us = u;
|
|
|
|
}
|
|
|
|
}
|