Details
Description
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).
Attachments
Issue Links
- 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
-