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

Remove terminally deprecated constructor in GSSUtil

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 17
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      source, binary, behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      While this is a binary incompatible change, the usage of the constructor is expected to be low.
    • Interface Kind:
      Java API
    • Scope:
      JDK

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Reviewed By:
              Brian Burkhalter, Sean Mullan, Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: