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

Some doc errors in DerOutputStream.java

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • None
    • security-libs

    Description

      File this issue on behalf of Jianquan Cai (https://github.com/jquanc)

      There are some doc errors in sun.security.util.DerOutputStream, like the followings,

      /**
       * Private helper routine for writing DER encoded string values.
       * @param s the string to write
       * @param stringTag one of the DER string tags that indicate which
       * encoding should be used to write the string out.
       * @param enc the name of the encoder that should be used corresponding
       * to the above tag.
       */
      private void writeString(String s, byte stringTag, Charset charset) throws IOException
      The parameter is charset, but not enc.


      /**
       * Marshals a DER integer on the output stream.
       *
       * @param i the integer in bytes, equivalent to BigInteger::toByteArray.
       */
      public void putInteger(byte[] buf) throws IOException {
      The parameter is buf, but not i.

      Attachments

        Issue Links

          Activity

            People

              jjiang John Jiang
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: