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

BigInteger constructor should use local cached String length

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 7
    • 7
    • core-libs
    • None
    • b77
    • generic
    • generic

      java.math.BigInteger(String,int), currently L289, retrieves the String (val) arguments length and caches it in a local. val.length() is invoked in three other places in the constructor where the cached local should be used.

            darcy Joe Darcy
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: