> This PR removes calls to and mentions of the `SecurityManager` and the > `doPrivileged` from the `java.net.InetAddress` and > `sun.net.util.IPAddressUtil` and related classes. > > Noteworthy changes: > - the default value (`30s`) of the `networkaddress.cache.ttl` security > property responsible for successfull address lookups kept unchanged, the > mention of SM removed from the property description in the > `net-properties.html` file. > - connect permission checks are removed from the `InetAddress`, and relevant > classes, like `SocketPermission`. `SocketPermission.initEphemeralPorts` was > also modified to remove `doPrivileged`. > - `RuntimePermission("inetAddressResolverProvider")` permission has been > removed from the system-wide `InetAddressResolver` initialization code. > > `tier1` to `tier3` tests show no relevant failures.
Aleksei Efimov has updated the pull request incrementally with one additional commit since the last revision: Address review comments. Remove unused methods from InetAddressCachePolicy. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/22376/files - new: https://git.openjdk.org/jdk/pull/22376/files/51fc23c2..203edfed Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=22376&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22376&range=00-01 Stats: 86 lines in 3 files changed: 0 ins; 80 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/22376.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22376/head:pull/22376 PR: https://git.openjdk.org/jdk/pull/22376