2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-16 00:43:21 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4948130
|
|
|
|
* @summary casting conversion checks changed for covariant returns
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-16 00:43:21 +00:00
|
|
|
* @compile/fail/ref=RefEqual.out -XDrawDiagnostics RefEqual.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class RefEqual {
|
|
|
|
{
|
|
|
|
Class c = null;
|
|
|
|
if (String.class != Integer.class) ;
|
|
|
|
}
|
|
|
|
}
|