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

ConnectionManager in violates Serializable contract

XMLWordPrintable

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

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

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

                Created:
                Updated:
                Resolved: