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

javac, additional test case for JDK-8051402

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b01

      Backports

        Description

        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
          }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: