2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 21:27:10 +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
|
2014-07-02 21:27:10 +00:00
|
|
|
* @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;
|
|
|
|
}
|
|
|
|
}
|