JDK-8001183 : incorrect results of char vectors right shift operaiton
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-10-19
  • Updated: 2013-06-26
  • Resolved: 2012-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Description
In java before any arithmetic operation integer values (boolean, byte, short) which are smaller than Int are converted to Int with sign extension, except char values which converted with zero extension. To get correct result of char vectors right shift operaiton we should use unsigned (logical) right shift operation.