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

Align declaration of SerializedLambda.readResolve with serialization conventions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 11
    • 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.

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

              Created:
              Updated:
              Resolved: