Maurizio Cimadamore 4d32c48daf 8138840: NPE when compiling bitwise operations with illegal operand types
8139243: compiler crashes with exception on sum operation of String var and void method call result
8139249: Compiler crashes on unary bitwise complement with non-integral operand

Certain binary operator checks are accepting more operands than required.

Reviewed-by: jlahoda
2015-10-12 12:24:33 +01:00

14 lines
377 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8138840 8139243 8139249
* @summary Compiler crashes when compiling bitwise operations with illegal operand types
* Unary operator erroneously applied to non-integral type operand
* @compile/fail/ref=T8139249.out -XDrawDiagnostics T8139249.java
*/
class T8139249 {
void test(float f2) {
float f1 = ~f2;
}
}