JDK-4916650 : wildcards versus recursive F-bounds
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2003-09-03
  • Updated: 2008-02-28
  • Resolved: 2004-04-20
Related Reports
Duplicate :  
Relates :  
Description
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>>
    }
}

Comments
PUBLIC COMMENTS ...
10-06-2004

EVALUATION I hope we have time to address this for Tiger. ###@###.### 2003-09-05 This is fixed as a conseuqence of implementing the capture conversion. ###@###.### 2004-04-20
05-09-2003