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

LTP: Array of primitives could not be decoded

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b03
    • Introduced In Version:
      7
    • Resolved In Build:
      b15
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp
    • Verification:
      Verified

      Description

      The following test is failed when reading object:

      boolean[] array = new byte[] {true, false};

      ByteArrayOutputStream output = new ByteArrayOutputStream();
      XMLEncoder encoder = new XMLEncoder( output );
      encoder.writeObject( array );
      encoder.close();

      ByteArrayInputStream input = new ByteArrayInputStream( output.toByteArray() );
      XMLDecoder decoder = new XMLDecoder( input );
      Object object = decoder.readObject();
      decoder.close();

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              malenkov Sergey Malenkov (Inactive)
              Reporter:
              malenkov Sergey Malenkov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: