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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7, 8
    • Fix Version/s: 8
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      unknown, x86
    • OS:
      generic, windows_7
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: