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

Align declaration of SerializedLambda.readResolve with serialization conventions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
      None

      Description

      Per the serialization specification, the readResolve method is supposed to be declared as follows:

      ANY-ACCESS-MODIFIER Object readResolve()
                  throws ObjectStreamException;
      https://docs.oracle.com/javase/10/docs/specs/serialization/input.html#the-readresolve-method

      The SerializedLambda class instead declares readResolve to throw ReflectiveOperationException.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: