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

Util.writeAny should report a specific error if object not serializable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • other-libs
    • None
    • beta2
    • unknown
    • solaris_2.6
    • Not verified

        There should be a try/catch around the cast to (Serializable).
        It should catch ClassCastException then raise a more specific error like:

        "attempt to serialize a non-serializable object".

        This needs to be raised in a form appropriate for rmi-iiop.

        Not sure if this is used by IDL? I do not think so.

              eandersosunw Everett Anderson (Inactive)
              hcarr Harold Carr
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: