Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8365239

Spec Clarification- InterfaceAddress:getBroadcast() returning null for loop back address

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 25
    • core-libs

      https://download.java.net/java/early_access/jdk25/docs/api/java.base/java/net/InterfaceAddress.html#getBroadcast()

      mentions that - "Certain network interfaces, such as the loopback interface, do not support broadcasting and will also return null."

      is it strict expectation that getBroadcast() will return null on loopback interface OR it's depends on platform network configuration?

      My observation :
      address is loopback /127.0.0.1 But the broadcast address is not null /127.255.255.255

      Is the spec needs to be clarified here?

            dfuchs Daniel Fuchs
            kganapureddy Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: