RFR: 8354826: Make ResolverConfigurationImpl.lock field final

Alan Bateman alanb at openjdk.org
Wed Apr 16 12:07:58 UTC 2025


On Thu, 20 Jul 2023 12:05:22 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> It was made `final` in Windows version of `ResolverConfigurationImpl` under [JDK-8287104](https://bugs.openjdk.java.net/browse/JDK-8287104).

src/java.base/unix/classes/sun/net/dns/ResolverConfigurationImpl.java line 44:

> 42: {
> 43:     // Lock helds whilst loading configuration or checking
> 44:     private static final Object lock = new Object();

Yes, should be final. You can probably create one issue and fix all of the same issue in the same area with one JBS issue if you want.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14955#discussion_r1269464141


More information about the net-dev mailing list