Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8364407 [REDO] Consolidate Identity of self-inverse operations
  3. JDK-8364409

[BACKOUT] Consolidate Identity of self-inverse operations

XMLWordPrintable

    • master

      This issue was reported by [~hgreule].

      When self-inverting java/lang/Character.reverseBytes InvolutionNode::Identity can drop necessary masking of subword types. When calling Character.reverseBytes with a wider integer type than char, this leads to a wrong execution when the char result of the self-inverse is used as an int, e.g. in an array access, where a large enough value will cause an unexpected ArrayOutOfBoundsException (see reproducer).

            mhaessig Manuel Hässig
            mhaessig Manuel Hässig
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: