author | darcy |
Fri, 02 Feb 2018 10:29:25 -0800 | |
changeset 48723 | 6cb86bf0b51e |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
33018
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
1 |
/* |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 8138840 8139243 8139249 |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
4 |
* @summary Compiler crashes when compiling bitwise operations with illegal operand types |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
5 |
* Unary operator erroneously applied to non-integral type operand |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
6 |
* @compile/fail/ref=T8139249.out -XDrawDiagnostics T8139249.java |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
7 |
*/ |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
8 |
|
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
9 |
class T8139249 { |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
10 |
void test(float f2) { |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
11 |
float f1 = ~f2; |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
12 |
} |
9790ed482dd0
8138840: NPE when compiling bitwise operations with illegal operand types
mcimadamore
parents:
diff
changeset
|
13 |
} |