JDK-8242615 : revisit java/net/DatagramSocket/SendCheck.java
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2020-04-14
  • Updated: 2020-04-16
  • Resolved: 2020-04-16
Related Reports
Duplicate :  
Relates :  
Description
test/jdk/java/net/DatagramSocket/SendCheck.java
pkt1 and pkt2 are comment off:

        /*
        Commented until JDK-8236852 is fixed

        // loopback w/port 0 -- DC, DSA, MS, DS throws IO
        var pkt1 = new DatagramPacket(buf, 0, buf.length);
        pkt1.setAddress(InetAddress.getLoopbackAddress());
        pkt1.setPort(0);
         */

        /*
        Commented until JDK-8236852 is fixed

        // wildcard w/port 0 -- DC, DSA, MS, DS throws IO
        var pkt2 = new DatagramPacket(buf, 0, buf.length);
        pkt2.setAddress(wildcard.getAddress());
        pkt2.setPort(0);
        */

Mentioned issue JDK-8236852 has been fixed via JDK-8240533 in jdk-15+18. Test should be updated and/or cleanup.