commons-issues mailing list archives

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

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

Sebb updated NET-428:
---------------------

    Fix Version/s: 3.1
    
> 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
>             Fix For: 3.1
>
>
> 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