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

LTP: Array of primitives could not be decoded

XMLWordPrintable

    • b03
    • 7
    • b15
    • generic, x86
    • generic, windows_xp
    • Verified

      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();

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: