You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2008/06/16 17:45:45 UTC

[jira] Commented: (LANG-52) [lang] Validate.notNull should throw NullArgumentException

    [ https://issues.apache.org/jira/browse/LANG-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605323#action_12605323 ] 

Paul Benedict commented on LANG-52:
-----------------------------------

I still vote for this to be in 3.0. You can achieve it by adding a new Validate.notNullArgument method which appropriately throws NullArgumentException. This way, you can keep both backwards compatibility, but also deprecate the current version.

> [lang] Validate.notNull should throw NullArgumentException
> ----------------------------------------------------------
>
>                 Key: LANG-52
>                 URL: https://issues.apache.org/jira/browse/LANG-52
>             Project: Commons Lang
>          Issue Type: Bug
>         Environment: Operating System: All
> Platform: All
>            Reporter: Jörg Gottschling
>            Priority: Trivial
>             Fix For: LangTwo 1.0
>
>         Attachments: LANG-52.patch
>
>
> Validate.notNull throws a IllegalArgumentException but should throw a
> NullArgumentException

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