JDK-6531597 : LTP: Array of primitives could not be decoded
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2007-03-06
  • Updated: 2012-03-22
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b15Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
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();

Comments
EVALUATION The bug was introduced in the fix for the 4452032 bug. The resolveClass() method should be called insted of te findClass() method.
06-03-2007