-
Bug
-
Resolution: Fixed
-
P2
-
9.1
-
b88
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142254 | emb-9 | Maurizio Cimadamore | P2 | Resolved | Fixed | team |
Code:
$ cat ValueOf.java
public class ValueOf {
public static void main(String... args) {
float f1 = ~10;
float f2 = ~f1;
}
}
Java version:
$ javac -version
javac 1.9.0-ea
Actual compilation result:
$ javac ValueOf.java
Fatal Error: Unable to find method valueOf
Expected result:
Have compiler.err.operator.cant.be.applied: ~, float, null error.
It's regression, javac 8u60 produces the error message instead of fatal error.
$ cat ValueOf.java
public class ValueOf {
public static void main(String... args) {
float f1 = ~10;
float f2 = ~f1;
}
}
Java version:
$ javac -version
javac 1.9.0-ea
Actual compilation result:
$ javac ValueOf.java
Fatal Error: Unable to find method valueOf
Expected result:
Have compiler.err.operator.cant.be.applied: ~, float, null error.
It's regression, javac 8u60 produces the error message instead of fatal error.
- backported by
-
JDK-8142254 Compiler crashes on unary bitwise complement with non-integral operand
-
- Resolved
-
- duplicates
-
JDK-8139244 compiler crashes with exception on unary operation over boxed type of primitive type
-
- Closed
-
-
JDK-8139251 compiler crashes with exception on unary operation on float variable in lambda method invocation
-
- Closed
-
- relates to
-
JDK-8139251 compiler crashes with exception on unary operation on float variable in lambda method invocation
-
- Closed
-
-
JDK-8138840 Compiler crashes when compiling bitwise operations with illegal operand types
-
- Closed
-