Specification of wrapper class valueOf static factories should require caching of boxing range

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • b66
    • generic
    • generic

      The static factory methods Integer.valueOf(int), Long.valueOf(long), etc. were introduced in JDK 5 for javac to implement the caching behavior required by the autoboxing specification. While the specification of those methods say they might cache, they do not require caching of the ranges in question. The specification should be updating to require caching of the boxing range, but clearly state that caching outside of that range may or may not happen.

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: