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

javac, wildcards and generic vararg method invocation not accepted

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b23
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: