commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Siegmar (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-753) Validate.notNull() should throw IllegalArgumentException but throws NullPointerException
Date Wed, 23 Nov 2011 06:42:39 GMT

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

Oliver Siegmar commented on LANG-753:
-------------------------------------

It should be explicitly mentioned in "[What's new in Commons Lang 3.0?|http://commons.apache.org/lang/article3_0.html]"
for example.
                
> Validate.notNull() should throw IllegalArgumentException but throws NullPointerException
> ----------------------------------------------------------------------------------------
>
>                 Key: LANG-753
>                 URL: https://issues.apache.org/jira/browse/LANG-753
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.0, 3.0.1, 3.1
>            Reporter: Oliver Siegmar
>
> Validate.notNull() throws an IllegalArgumentException in commons-lang 2.6, but in 3.0.1
it throws a NullPointerException. I can't find any note about this in the release notes. I
think this is a regression, because it could break others code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message