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

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

XMLWordPrintable

    • b21
    • generic
    • generic
    • Verified

      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.


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

              Created:
              Updated:
              Resolved: