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

Clearup the legacy ObjectIdentifier constructor from int array

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: security-libs
    • Labels:

      Description

      For historic reason, ObjectIdentifier are used to constructed with int array. In the constructor implementation, the int array is converted to the OID encoded format (See ObjectIdentifier(int[] values)). In the calling side, in order to use the constructor, the int array is often declared as static final variables, for constructing a ObjectIdentifier instance, which is normally static as well. The implementation and the use of the constructor are not performance friendly, and the code is not clear as well.

      Removing this constructor could have the code more clear, and improve the performance.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xuelei Xue-Lei Fan
              Reporter:
              xuelei Xue-Lei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: