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

javac, wildcards and generic vararg method invocation not accepted

    XMLWordPrintable

Details

    • b23
    • Verified

    Backports

      Description

        This code:

        public class Test {
            interface Iface<T> {
                String m(T... t);
            }

            public static void run() {
                Iface<? super Integer> i = null;
                i.m(Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(1));
            }
        }

        is not being accepted by the compiler when it should

        Attachments

          Issue Links

            Activity

              People

                vromero Vicente Arturo Romero Zaldivar
                vromero Vicente Arturo Romero Zaldivar
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: