[jboss-jira] [JBoss JIRA] (JBJCA-711) ConnectionManager in violates Serializable contract

Karel Piwko (Created) (JIRA) jira-events at lists.jboss.org
Tue Dec 6 04:49:42 EST 2011


ConnectionManager in violates Serializable contract
---------------------------------------------------

                 Key: JBJCA-711
                 URL: https://issues.jboss.org/browse/JBJCA-711
             Project: IronJacamar
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.5.Final
            Reporter: Karel Piwko
            Assignee: Jesper Pedersen
            Priority: Critical


AbstractConnectionManager does not implement Serializable interface according to the specification.

See following code:

{code}
   /**
    * Write the object to the stream -- THIS IS NOT SUPPORTED
    * @param out The stream
    * @exception IOException Thrown in case of an error
    */
   private void writeObject(ObjectOutputStream out) throws IOException
   {
      throw new IOException(bundle.thisMethodNotSupported());
   }

   /**
    * Read the object from the stream -- THIS IS NOT SUPPORTED
    * @param in The stream
    * @exception IOException Thrown in case of an error
    * @exception ClassNotFoundException Thrown if a class can't be resolved
    */
   private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
   {
      throw new IOException(bundle.thisMethodNotSupported());
   }

   /**
    * Read the object -- THIS IS NOT SUPPORTED
    * @exception ObjectStreamException Thrown in case of an error
    */
   private void readObjectNoData() throws ObjectStreamException
   {
      throw new NotSerializableException(bundle.thisMethodNotSupported());
   }

{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list