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

wrapper static factories fail to cache as required

    XMLWordPrintable

Details

    • b42
    • generic, x86
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: