[jboss-jira] [JBoss JIRA] Created: (JGRP-562) Message.setObject() and Message.getObject() hide exceptions thrown during serialization/deserialization

Michael Newcomb (JIRA) jira-events at lists.jboss.org
Wed Jul 18 08:53:47 EDT 2007


Message.setObject() and Message.getObject() hide exceptions thrown during serialization/deserialization
-------------------------------------------------------------------------------------------------------

                 Key: JGRP-562
                 URL: http://jira.jboss.com/jira/browse/JGRP-562
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 2.5
            Reporter: Michael Newcomb
         Assigned To: Bela Ban
            Priority: Trivial


catch(Exception ex) {
  throw new IllegalArgumentException(ex.toString());
}

Should throw new IllegalArgumentException(ex);

I have not checked the source, but a quick scan might reveal other such uses.

FYI, had a NullPointerException thrown, but it was just reported as 'null' since just the message was put into the IllegalArgumentException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list