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

Regression: valid code rejected during generic type well-formedness check

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7, 8
    • tools
    • b30
    • unknown, x86
    • generic, windows_7
    • Verified

        This code does not compile:

        class Pair<K, V> { }

        class TypeTest {
           static abstract class A<K, V, I extends Pair<K, V>, I2 extends Pair<V, K>> {
              abstract A<V, K, I2, I> test();
           }
        }

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: