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

Arrays and super wildcards broken

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic, x86
    • OS:
      generic, linux, windows_xp
    • Verification:
      Verified

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: