JDK-8339787 : Add some additional diagnostic output to java/net/ipv6tests/UdpTest.java
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-09
  • Updated: 2025-03-12
  • Resolved: 2024-09-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 23 JDK 24 JDK 8
11.0.26-oracleFixed 17.0.14-oracleFixed 21.0.6-oracleFixed 23.0.2Fixed 24 b17Fixed 8u461Fixed
Related Reports
Relates :  
Description
amendments to open/test/jdk/java/net/ipv6tests/Tests.java

 add a diagnostics to print the ports of the two endpoints involved in the datagramEcho test scenario


   public static void datagramEcho (DatagramSocket s1, DatagramSocket s2,
                                     InetAddress ia2)
        throws Exception {

        byte[] ba = "Hello world".getBytes();
        DatagramPacket p1;

        SocketAddress dest2 = null;
        if (ia2 != null) {
            dest2 = new InetSocketAddress (ia2, s2.getLocalPort());
            p1 = new DatagramPacket (ba, ba.length, dest2);
        } else {
            p1 = new DatagramPacket (ba, ba.length);
        }

        dprintln ("dest2 == " + dest2);
        dprintln ("sender  endpoint == " + s1.getLocalSocketAddress());
        dprintln ("echo endpoint == " + s2.getLocalSocketAddress());

        DatagramPacket r1 = new DatagramPacket (new byte[256], 256);
        DatagramPacket r2 = new DatagramPacket (new byte[256], 256);

        s1.send (p1);
        s2.receive (r1);
        s2.send (r1);
        s1.receive (r2);
        comparePackets (p1, r1);
        comparePackets (p1, r2);
    }


Comments
Fix request [17u,21u] I backport this for parity with 17.0.14-oracle,21.0.6-oracle. No risk, only a test change Clean backport. UdpTest passes. SAP nightly testing passed.
24-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2993 Date: 2024-10-23 14:29:46 +0000
23-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1081 Date: 2024-10-23 14:29:26 +0000
23-10-2024

[jdk23u-fix-request] Approval Request from Shivangi Gupta Straight Backport. Good to backport
15-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk23u/pull/174 Date: 2024-10-15 06:24:31 +0000
15-10-2024

Changeset: cecb0b3d Branch: master Author: Serhiy Sachkov <serhiy.sachkov@oracle.com> Committer: Michael McMahon <michaelm@openjdk.org> Date: 2024-09-19 12:08:31 +0000 URL: https://git.openjdk.org/jdk/commit/cecb0b3d11ed0ce204cb6c3427f5a6858a844aeb
19-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21066 Date: 2024-09-18 15:24:14 +0000
18-09-2024