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

inconsistency in javadoc documentation page for GeneralSecurityException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • docs
    • beta3
    • generic
    • generic



      Name: ddT132432 Date: 07/25/2001


      java version "1.2.2"
      Solaris VM (build Solaris_JDK_1.2.2, native threads, sunwjit)

      See jdk1.4/docs/api/java/security/GeneralSecurityException.html in the
      standard javadoc-generated API documentation.

      The doc for "Class GeneralSecurityException" lists CertificateException as one
      of its subclasses. However, in the descriptive paragraph after the second
      horizontal rule, it says

      This is the general security exception class, which serves to group all the
      exception classes of the java.security
      package that extend from it. (Exceptions are AccessControlException and
      >>>>CertificateException<<<<, which subclass from
      java.lang.SecurityException, and ProviderException and
      InvalidParameterException, which subclass from
      java.lang.RuntimeException.)

      CertificateException cannot be subclass of both GeneralSecurityException and
      SecurityException.
      (Review ID: 128798)

      From incident(128807)
      I'm not sure this is also an inconsistency - you be the judge. You may wish to
      file this along with bug 4484169, which describes the first inconsistency I
      found in this doc.

      I found a second ( possible ) inconsistency. The descriptive text after the
      second horizontal rule says:

      This is the general security exception class, which serves to group all the
      exception classes of the java.security
      package that extend from it. (Exceptions are AccessControlException and
      CertificateException, which subclass from
      java.lang.SecurityException, and ProviderException and
      >>>>InvalidParameterException<<<<, which subclass from
      java.lang.RuntimeException.)

      InvalidParameterException subclasses from IllegalArgumentException, which itself
      subclasses from RuntimeException. So, InvalidParameterException is a grandchild
      or "sub-sub-class" of RuntimeException. Is this a bug, or is the text correct
      in saying that the former "subclasses" from the latter?
      ======================================================================

            shommel Scott Hommel (Inactive)
            ddressersunw Daniel Dresser (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: