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

The required bahaviour when passing null to URL ctor should be specified

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        email response from alan

        Harish,

        The required bahaviour when passing null to URL ctor should be specified
        - please file an RFE. As the long-time behaviour is to throw
        MalformedURLException then this should probably be the specified
        behaviour (rather than NPE).

        -Alan.


        Harish Lodwal wrote:

        > hi!
        > I feel URL(null) should throw NPE
        > but it is throwing MalformedURLException
        >

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                yuwangsunw Yujiang Wang (Inactive)
                Reporter:
                duke J. Duke (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: