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

missing Arrays.asList() for arrays of primitive types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs



      Name: stC104175 Date: 06/27/2000


      java version "1.3.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
      Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)


      public class AsListBug {
          public static void main (String[] args) {
              System.out.println (java.util.Arrays.asList (new int [] { 1, 2, 3}));
          }
      }

      AsListBug.java:3: asList(java.lang.Object[]) in java.util.Arrays cannot be
      applied to (int[])
              System.out.println (java.util.Arrays.asList (new int [] { 1, 2, 3}));
                                                  ^
      1 error
      (Review ID: 106584)
      ======================================================================

            jjb Josh Bloch
            stompkinsunw Sean Tompkins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: