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

ObjectOutputStream.PutField.put(String name, Object value) should document 'value' can be null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 6
    • core-libs

      In researching 5104197, it was found that a subclass implementation of
      ObjectOutputStream.PutField:

          com.sun.corba.se.impl.io.OutputStreamHook$HookPutFields

      did not accommodate nulls for the Object 'value' argument in the
      HookPutFields.put(String name, Object value) method. The javadoc
      specification for PutField.put does not clearly indicate what should
      be done about a null 'value' argument.

      The intent is for null to be allowed -
      the javadoc specification should be clarified accordingly.

            aozerov Andrey Ozerov
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: