RFR: 8283772: Make sun.net.dns.ResolverConfiguration sealed

Aleksei Efimov aefimov at openjdk.java.net
Mon Mar 28 21:52:04 UTC 2022


The following fix seals `sun.net.dns.ResolverConfiguration` abstract class.
`sun.net.dns.ResolverConfigurationImpl` is the only permitted subclass which has two O/S specific implementations: for `Windows` and `Unix` architectures. Both of them are marked as `final`.

Testing: `jdk-tier1`, `jdk-tier2`, `jdk-tier3` and `java.naming` JCK tests show no failures with the change.

-------------

Commit messages:
 - 8283772: Make sun.net.dns.ResolverConfiguration sealed

Changes: https://git.openjdk.java.net/jdk/pull/8006/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8006&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8283772
  Stats: 6 lines in 3 files changed: 0 ins; 0 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8006.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8006/head:pull/8006

PR: https://git.openjdk.java.net/jdk/pull/8006


More information about the net-dev mailing list