Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001183

incorrect results of char vectors right shift operaiton

XMLWordPrintable

    • b07
    • generic
    • generic

        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.

              kvn Vladimir Kozlov
              kvn Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: