commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NET-428) SubnetUtils throws ArrayIndexOutOfBoundsException for new SubnetUtils( "1.2.3.4/32" ).getInfo().getAllAddresses()
Date Tue, 01 Nov 2011 14:05:32 GMT
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

        

Mime
View raw message