[ https://issues.apache.org/jira/browse/LANG-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539917 ]
Stephen Colebourne commented on LANG-52: ---------------------------------------- Just so we are clear. This change could break compatibility: try { . Validate.notNull(obj); . someMethodThatMightThrowNullArgumentException() } catch (NullArgumentException ex) { . System.out.println("A"); } catch (IllegalArgumentException ex) { . System.out.println("B"); } Making this change will cause the code to print A instead of B. > [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: 2.4 > > 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.