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

Remove terminally deprecated constructor in GSSUtil

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 17
    • security-libs
    • None
    • source, binary, behavioral
    • minimal
    • While this is a binary incompatible change, the usage of the constructor is expected to be low.
    • Java API
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: