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

ObjectInputStream.GetField.get() broken for primitive fields

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • generic, linux, solaris_2.6, solaris_8, windows_98, windows_2000
    • Verified

      ObjectInputStream.GetField.get() does not function properly for primitive
      fields--it returns the provided default value even if the specified
      primitive field exists in the incoming stream. The root of the problem is
      that ObjectStreamField.getType() called on the ObjectStreamField for the field
      returns Object.class instead of the expected primitive class, causing
      ObjectStreamClass.getField()'s search for a matching field to erroneously
      fail.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: