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

Add test case for type equivalence

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      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() {
            }
      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: