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

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>>
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: