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

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

    XMLWordPrintable

Details

    • sparc
    • solaris_7

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: