Spurious error in type containment involving arrays of wildcard parameterized types

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools

      This program:

      import java.util.List;

      class Test {
          public static void event(List<? super String>[] conditions) {
              allOf(conditions);
          }

          public static <T> void allOf(List<? super T>[] conditions) {
          }
      }

      Fails to compile; however, if array brackets are omitted from the source, it compiles w/o issues.

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: