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

Alpha Feedback: Autoboxing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • tools
    • None
    • sparc
    • solaris_2.5


            // this is ok:
           //Integer[] array = {new Integer(1),new Integer(2),new Integer(3)};
           // this not, compiler does not like this:
           Integer[] array = {1,2,3};
           // just the test code which works fine:
           for (Integer i : array)
              System.out.println(i);

            gafter Neal Gafter (Inactive)
            jdriscol Jerry Driscoll (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: