Commons Net
  1. Commons Net
  2. NET-428

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        21m 21s 1 Sebb 01/Nov/11 14:25
        Resolved Resolved Closed Closed
        120d 6h 10m 1 Sebb 29/Feb/12 20:35
        Sebb made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Sebb made changes -
        Fix Version/s 3.1 [ 12317744 ]
        Sebb made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Sebb created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development