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

Arrays and super wildcards broken

XMLWordPrintable

    • b67
    • generic, x86
    • generic, linux, windows_xp
    • Verified

      This program doesn't compile:

      import java.util.List;
       
      class Test {
          void foo(List<? super Object[]> l) {
              l.add(new Object[0]);
          }
      }

      See: http://forum.java.sun.com/thread.jspa?threadID=625907

      ###@###.### 2005-05-11 09:37:07 GMT

            ahe Peter Ahe
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: