SubnetUtils throws ArrayIndexOutOfBoundsException for new SubnetUtils( 
"1.2.3.4/32" ).getInfo().getAllAddresses()
-----------------------------------------------------------------------------------------------------------------

                 Key: NET-428
                 URL: https://issues.apache.org/jira/browse/NET-428
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 3.0.1
            Reporter: Sebb


new SubnetUtils( "1.2.3.4/32" ).getInfo().getAllAddresses() throws

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
$SubnetInfo.getAllAddresses(SubnetUtils.java:166)

Similarly for /31

It would make more sense to return an empty array.

--
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

        

Reply via email to