3789983e89
Reviewed-by: darcy, ihse
15 lines
286 B
Java
15 lines
286 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4821359
|
|
* @summary Add -Xlint flag
|
|
* @author gafter
|
|
*
|
|
* @compile/fail/ref=Unchecked.out -XDrawDiagnostics -Xlint:unchecked -Werror Unchecked.java
|
|
*/
|
|
|
|
class Unchecked<T> {
|
|
void f(Unchecked u) {
|
|
Unchecked<String> us = u;
|
|
}
|
|
}
|