Align declaration of SerializedLambda.readResolve with serialization conventions

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: