jdk-24/test/langtools/tools/javac/generics/RefEqual.java

16 lines
310 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4948130
* @summary casting conversion checks changed for covariant returns
* @author gafter
*
* @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) ;
}
}