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

Move java.util.Digits to jdk.internal.util and refactor to reduce duplication

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • core-libs
    • None
    • b15

      https://github.com/openjdk/jdk/pull/14699 / https://bugs.openjdk.org/browse/JDK-8310929 optimized a couple of tables in Integer into a new little-endian table (now StringLatin1::PACKED_DIGITS) that now contains the same contents as the big-endian table in java.util.DecimalDigits.

      We will consolidate this so that packed digits can be shared by implementations in java.lang and java.util, by moving Digits, DecimalDigits, HexDigits and OctalDigits to jdk.internal.util and exposing a method for java.lang classes to access the LE digit pair from DecimalDigits.

      The existing BE-table in DecimalDigits is changed to be LE, and implementation is updated accordingly.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: