-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
None
-
tiger
-
generic
-
solaris_8
-
Verified
JLS 5.1.3 defines the byte to char conversion as a narrowing
conversion that simply discards bits. That doesn't work because the
conversion adds bits, not removes bits. Is the sign extended before
discarding bits or is the value padded with zeroes? This is
completely unspecified in the JLS and implementations could differ.
conversion that simply discards bits. That doesn't work because the
conversion adds bits, not removes bits. Is the sign extended before
discarding bits or is the value padded with zeroes? This is
completely unspecified in the JLS and implementations could differ.
- relates to
-
JDK-8166396 5.5: Clean up description of legal conversions in casts
-
- Closed
-