4d32c48daf
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
13 lines
310 B
Java
13 lines
310 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8138840 8139243 8139249
|
|
* @summary Compiler crashes when compiling bitwise operations with illegal operand types
|
|
* @compile/fail/ref=T8138840.out -XDrawDiagnostics T8138840.java
|
|
*/
|
|
|
|
class T8138840 {
|
|
void test(int x, double d) {
|
|
Object o = x & d;
|
|
}
|
|
}
|