Alpha Feedback: Autoboxing

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: 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);

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: