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

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

XMLWordPrintable

    • b10
    • generic
    • generic
    • Not verified

        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
        >

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: