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

file: and ftp: URL handlers need to throw NPE in setRequestProperty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta2
    • unknown
    • generic

      As a result of the change in 4456911, we need to ensure
      that all URL handlers will throw NPE when
      setRequestProperty () is called with a null key.
      Currently, http does it right, but not ftp or file:

      Note, the same also applies to addRequestProperty()

      It is ok for getRequestProperty() to return null
      with a null key value. The docs will be clarified
      to make this explicit.

            michaelm Michael McMahon
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: