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

Regression test failure for java/net/MulticastSocket/SetTTLAndGetTTL.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • generic
    • generic

      The regression test SetTTLAndGetTTL is failing on IPv6
      system because it tries to set the TTL to (byte)200. A byte
      is signed but this is really trying to set the TTL to -56.
      The IPv4 socket option IP_MULTICAST_TTL doesn't complain
      about a negative value but the IPv6 option IPV6_MULTICAST_HOPS
      does not like a negative value.

      The issue of course relates to sins of the past whereby the
      setTTL has a byte argument rather than an int.

            ywangsunw Yingxian Wang (Inactive)
            ywangsunw Yingxian Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: