United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8001183 incorrect results of char vectors right shift operaiton
JDK-8001183 : incorrect results of char vectors right shift operaiton

Details
Type:
Bug
Submit Date:
2012-10-19
Status:
Resolved
Updated Date:
2013-04-25
Project Name:
JDK
Resolved Date:
2012-10-23
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:
hs25 (b07)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

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.

                                    

Comments
URL:   http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/b2c669fd8114
User:  kvn
Date:  2012-10-23 22:25:01 +0000

                                     
2012-10-23
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/b2c669fd8114
User:  amurillo
Date:  2012-10-26 23:51:00 +0000

                                     
2012-10-26



Hardware and Software, Engineered to Work Together