You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/01 15:25:32 UTC

[jira] [Resolved] (NET-428) SubnetUtils throws ArrayIndexOutOfBoundsException for new SubnetUtils( "1.2.3.4/32" ).getInfo().getAllAddresses()

     [ https://issues.apache.org/jira/browse/NET-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-428.
----------------------

    Resolution: Fixed
    
> 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