String gets corrupted when passed byte array containing bytes with MSB set

XMLWordPrintable

    • sparc
    • solaris_7

      Running under Solaris 2.7 with either the Production JDK 1.2 or
      the hotspot beta (1.2.1), if a String object is created from
      a byte array containing bytes whose MSB is set, String.getBytes()
      returns different byte array contents.

      This works fine in the JDK 1.2 Reference release.

      See attachment for a simple test case.
      ###@###.### 1999-04-16

            Assignee:
            Mark Reinhold
            Reporter:
            Trevor Watson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: