2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 16:53:42 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4919255 4982096 5004321
|
|
|
|
* @summary the type of x.getClass() is no longer Class<? extends X>
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 16:53:42 -07:00
|
|
|
* @compile/fail/ref=GetClass.out -XDrawDiagnostics GetClass.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class GetClass {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Class<? extends Class<GetClass>> x = GetClass.class.getClass();
|
|
|
|
}
|
|
|
|
}
|