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

javac, additional test case for JDK-8051402

XMLWordPrintable

    • b01

        This fix should add the following test case related to JDK-8051402:

        import java.util.List;

        public abstract class CopyOfFilter {
          abstract <T> List<T> copyOf(List<? extends T> lx);
          abstract <E> List<E> filter(List<E> lx);

          <U> void f(List<U> lx) {
            copyOf(filter(lx)); // ok
          }

          void g(List<?> lx) {
            copyOf(filter(lx)); // ok
          }
        }

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

                Created:
                Updated:
                Resolved: