Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-711

ConnectionManager in violates Serializable contract

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 1.0.6.Final, 1.1.0.Alpha5
    • 1.0.5.Final
    • Core
    • None

    Description

      AbstractConnectionManager does not implement Serializable interface according to the specification.

      See following 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());
         }
      
      

      Attachments

        Activity

          People

            jpederse@redhat.com Jesper Pedersen
            kpiwko Karel Piwko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: