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

javac, wildcards and generic vararg method invocation not accepted

XMLWordPrintable

    • b23
    • Verified

        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

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

                Created:
                Updated:
                Resolved: