wildcards versus recursive F-bounds

XMLWordPrintable

    • generic
    • solaris_8

      according to JSR14, the following should be allowed, but javac doesn't allow it.

      class WildcardFBoundCheck {
          interface I4<T> {}

          static class C4<X extends I4<Y>, Y extends I4<X>> {}

          WildcardFBoundCheck()
          {
              C4<I4<?>,?> x2; // <<pass>>
          }
      }

            Assignee:
            Peter Ahe
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: