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

Add test case for type equivalence

XMLWordPrintable

    • generic
    • generic

      Add this positive test to test/tools/javac:

      public class X<T extends Runnable> implements Runnable {

            void foo0(X<X<?>> lhs, X<X<? extends Runnable>> rhs) {
                  lhs = rhs; // 0
            }
            void foo1(X<X<?>> lhs, X<X<? extends Object>> rhs) {
                  lhs = rhs; // 1
            }
            public void run() {
            }
      }

            Unassigned Unassigned
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: