Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4943189

(spec) Activatable class should be marked as not serializable

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: aaR10142 Date: 10/24/2003



      CCC request 4460983 (http://ccc.sfbay/4460983) mentions that java.rmi.activation.Activatable objects should not be serialized/deserialized:
      "
      Deserializing an instance of java.rmi.activation.Activatable has never worked in any previous Sun J2SE implementation. Also, doing so is not something that an application should ever have a good reason to do. This flaw in the specification was only detected by the writing of a test for it-- it has never been reported through normal usage.
      "

      So, please, add following comments into the class javadoc to point this:

      /*
       * ...
       * serialize a <code>Activatable</code> object will fail.
       * ...
       * @serial exclude
       */
       

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              awollratsunw Ann Wollrath (Inactive)
              Reporter:
              alisunw Ali Ali (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: