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

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

    XMLWordPrintable

Details

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

    Backports

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: