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

wrapper static factories fail to cache as required

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b42
    • CPU:
      generic, x86
    • OS:
      solaris_8, windows_xp

      Description

      The latest boxing spec filed under CCC 4989021 requires an implementation
      to cache boxed values in the range -128 to 127. The following test case
      for this property fails, showing that we don't cache.

      class CacheBox {
          public static void main(String[] args) {
              Integer i1 = 12;
              Integer i2 = 12;
              if (i1 != i2) throw new Error();
          }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: