You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rahul Akolkar (JIRA)" <ji...@apache.org> on 2008/12/23 06:47:44 UTC

[jira] Resolved: (DIGESTER-111) Null InputStream leads to MalformedURLExceptions under JDK 1.5

     [ https://issues.apache.org/jira/browse/DIGESTER-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar resolved DIGESTER-111.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Of the 6 Digester#parse() methods, 3 threw NPEs and 3 threw MalformedURLExceptions. Now all consistently throw IllegalArgumentExceptions with suitable error messages.

Fixed in r728879:

  http://svn.apache.org/viewvc?view=rev&revision=728879


> Null InputStream leads to MalformedURLExceptions under JDK 1.5
> --------------------------------------------------------------
>
>                 Key: DIGESTER-111
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-111
>             Project: Commons Digester
>          Issue Type: Improvement
>    Affects Versions: 1.8
>            Reporter: Niall Pemberton
>            Priority: Minor
>             Fix For: 1.8.1, 2.0
>
>
> Passing a null InputStream to Digester.parse(InputStream) causes a confusing java.net.MalformedURLException under JDK 1.5
> Would be more user friendly to trap this condition and throw an appropriate exception and message.
> This came up as an issue in Commons Validator - see VALIDATOR-226

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.