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

Inner class type parameters doesn't get substituted when checking type well-formedness

XMLWordPrintable

    • b40
    • generic
    • generic
    • Not verified

      The compiler fails to accept this program:

      class Foo<T> {
        class Bar<U extends T> {}
        Foo<Number>.Bar<Integer> f;
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: