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

return/exception types of custom serialization methods not verified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • core-libs
    • None

      The serialization specification presents specific signatures required for
      class-defined custom serialization methods (e.g., writeReplace, readResolve,
      writeObject, readObject). Currently, serialization will use a class-defined
      custom serialization method so long as its access flags and parameter types
      match those outlined in the specification. However, the serialization runtime
      does not check the return type or thrown exception types to verify that they
      are as expected.

            mwarressunw Michael Warres (Inactive)
            mwarressunw Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: