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

ObjectInputStream.resolveClass() javadoc incorrect wrt loader used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.0
    • core-libs

      The javadoc for ObjectInputStream.resolveClass() states:

        By default the class name is resolved relative to the class that
        called readObject.

      This statement is inaccurate (and has been present since JDK1.1). It should
      be changed to reflect serialization's actual class resolution algorithm,
      in which the name is resolved against the "latest user defined loader"
      (not including class loaders for generated reflection implementation classes).

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: