Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8344980

Remove calls to SecurityManager and doPrivileged in java.net.InetAddress and sun.net.util.IPAddressUtil after JEP 486 integration

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 24
    • core-libs
    • None
    • behavioral
    • minimal
    • Documentation only update to remove mention of the Security Manager in net-properties.html.
    • System or security property
    • JDK

      Summary

      Update decription of the "networkaddress.cache.ttl" security property in the net-properties.html file to address the security mananager removal (JEP 486).

      Problem

      With the security manager removed, the default value of the JDK-specific "networkaddress.cache.ttl" security property no longer depends on the availability of the security manager. While there is no change in behavior, the net-properties.html documentation file needs to be updated to reflect that.

      Solution

      Alter the security property description in net-properties.html to match the InetAddress caching behaviour with the security manager removed.

      Specification

      src/java.base/share/classes/java/net/doc-files/net-properties.html:

      @@ -279,8 +279,7 @@
          name lookups will be kept in the cache. A value of -1, or any other
          negative value for that matter, indicates a “cache forever”
          policy, while a value of 0 (zero) means no caching. The default value
      -   is -1 (forever) if a security manager is installed, and implementation-specific
      -   when no security manager is installed.</P>
      +   is implementation-specific.</P>

            aefimov Aleksej Efimov
            dfuchs Daniel Fuchs
            Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: