commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Commented: (LANG-52) [lang] Validate.notNull should throw NullArgumentException
Date Tue, 24 Oct 2006 21:31:17 GMT
    [ ] 
Henri Yandell commented on LANG-52:

The only problem with this is in the messages. The NullArgumentException automatically adds
" must not be null" to the end of any message passed up to it (ACK). In Validate we receive
the message to print out, so having " must not be null" on the end becomes very daft. Credit
to whomever wrote the unit tests that failed; otherwise I wouldn't have noticed.

We should also change the noNullElements methods if we do change the notNull ones, but I think
the gain here is not worth the pain.

I'm +1 to WONTFIX this.

> [lang] Validate.notNull should throw NullArgumentException
> ----------------------------------------------------------
>                 Key: LANG-52
>                 URL:
>             Project: Commons Lang
>          Issue Type: Bug
>         Environment: Operating System: All
> Platform: All
>            Reporter: Jörg Gottschling
>            Priority: Trivial
>             Fix For: 3.0
> Validate.notNull throws a IllegalArgumentException but should throw a
> NullArgumentException

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message