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

jdk.unsupported/sun.reflect.ReflectionFactory.readObjectNoDataForSerialization uses wrong signature

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      A DESCRIPTION OF THE PROBLEM :
      The deserialization method `readObjectNoData()` has no parameters (see serialization spec, or for example `Serializable` doc); however ReflectionFactory.readObjectNoDataForSerialization checks for the signature `readObjectNoData(ObjectInputStream)` (similarly the javadoc of the method sun.reflect.ReflectionFactory.readObjectNoDataForSerialization is also wrong).

      Similarly the tests in `ReflectionFactoryTest` are also faulty / need improvements; they only manually invoke an ill-formed `readObjectNoData(ObjectInputStream)` method, but none of the tests seems to actually try deserialize data where a proper `readObjectNoData()` method would be called.


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jboes Julia Boes (Inactive)
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: