JDK-8258521 : Remove terminally deprecated constructor in GSSUtil
  • Type: CSR
  • Component: security-libs
  • Sub-Component: org.ietf.jgss
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 17
  • Submitted: 2020-12-16
  • Updated: 2021-01-06
  • Resolved: 2021-01-06
Related Reports
CSR :  
Description
Summary
-------
The constructor of `GSSUtil` was terminally deprecated and should be removed.

Problem
-------
Default constructor accidentally included in a class.

Solution
--------

Remove the terminally deprecated constructor by making it private.

Specification
-------------

    --- a/src/jdk.security.jgss/share/classes/com/sun/security/jgss/GSSUtil.java
    +++ b/src/jdk.security.jgss/share/classes/com/sun/security/jgss/GSSUtil.java
    @@ -37,8 +37,7 @@ public class GSSUtil {
         /**
          * Do not call.
          */
    -    @Deprecated(since="16", forRemoval=true)
    -    public GSSUtil() {}
    +    private GSSUtil() {}
     
         /**
          * Use this method to convert a GSSName and GSSCredential into a


Comments
Moving to Approved.
06-01-2021

The typical notice period between terminal deprecation and removal is one year. In this case, however, the API is not actually useful for anything, and it serves no purpose. Therefore, there's no benefit to keeping it in the platform for a full year.
05-01-2021