Please find here a patch that removes use of SecurityManager and doPrivileged in DatagramSocket/MulticastSocket implementation.
Some allusion to the SecurityManager was missed in DatagramSocket::connect, so this patch contains a small API documentation change that will require a CSR. ------------- Commit messages: - 8344217: Remove calls to SecurityManager and and doPrivileged in java.net.DatagramSocket and java.net.NetMulticastSocket after JEP 486 integration Changes: https://git.openjdk.org/jdk/pull/22303/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22303&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8344217 Stats: 123 lines in 2 files changed: 5 ins; 112 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/22303.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22303/head:pull/22303 PR: https://git.openjdk.org/jdk/pull/22303