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

Clearup the legacy ObjectIdentifier constructor from int array

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 15
    • None
    • security-libs

    Backports

      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

                xuelei Xuelei Fan
                xuelei Xuelei Fan
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: