Community
Participate
Working Groups
Build ID: I20070323-1616 Steps To Reproduce: This excerpt: class Foo<F extends Enum<F>> { class Bar<B> { Bar(Foo<? extends B> bar) {} } } Yields this error, even though javac (1.6 and 1.5) is happy: Bound mismatch: The type ? extends B is not a valid substitute for the bounded parameter <F extends Enum<F>> of the type Foo<F>
I don't see why B should be a valid substitue for Enum<F>, since B does not have any bounds that would match an Enum. How did you instantiate Foo.Bar ?
Fixed along with bug 202404. Added GenericTypeTest#test1167 *** This bug has been marked as a duplicate of bug 202404 ***
Verified for 3.4M2 using build I20070918-0010
Verified for 3.3.2 using build M20080123-0800.