jdk-24/test/langtools/tools/javac/boxing/T5082929.java

14 lines
299 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 5082929
* @summary Comparing Float and Integer
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T5082929.out -XDrawDiagnostics T5082929.java
2007-12-01 00:00:00 +00:00
*/
public class T5082929 {
void test(Float f, Integer i) {
boolean b = f == i;
}
}