-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b143
-
unknown
-
generic
-
Verified
This program should be rejected:
class Test {
Byte b = (Byte) 0;
}
Instead, the compiler accepts it, starting from JDK 7 b112. The problem is likely to be related to the changes in cats conversion involving 292 (see 6979683).
class Test {
Byte b = (Byte) 0;
}
Instead, the compiler accepts it, starting from JDK 7 b112. The problem is likely to be related to the changes in cats conversion involving 292 (see 6979683).
- relates to
-
JDK-7005671 Regression: compiler accepts invalid cast from X[] to primitive array
- Closed
-
JDK-6979683 inconsistent interaction of reference cast with box/unbox conversions leaves out a useful case
- Closed