]
Manik Surtani updated JBCOMMON-64:
----------------------------------
Attachment: JBCOMMON-64.patch
MarshalledValueInputStream's resolveClass() method breaks when
deserializing primitive class types.
---------------------------------------------------------------------------------------------------
Key: JBCOMMON-64
URL:
https://jira.jboss.org/jira/browse/JBCOMMON-64
Project: JBoss Common
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: common-core (2.x)
Affects Versions: 2.2.7.GA
Reporter: Manik Surtani
Fix For: 2.2.8.GA
Attachments: JBCOMMON-64.patch
Test that proves this:
public class MarshalledValuePrimitivesTest extends TestCase
{
public void testPrimitive() throws Exception
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos);
oos.writeObject(int.class);
oos.close();
baos.close();
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
MarshalledValueInputStream mvis = new MarshalledValueInputStream(bais);
Object o = mvis.readObject(); // barfs here.
assertNotNull(o);
assertEquals(o, int.class);
}
}
Also see
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172498#...
where it was reported.
This is also related to
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4171142
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: