Community
Participate
Working Groups
Using build I200409210010. For following test case: public class Generic<T> { T x; <U extends T> T foo(U u) { if (u == null) return this.x; return u; } } compiler warns "U" in <U extends T>: "Illegal forward reference to type parameter T" altough parameter T has been already defined...
Note that javac 1.5.0-b64 does not complain about this syntax...
added test305. Philippe: this is a 1 line change. Can it go into M2?
Ok for M2
Released for M2.
*** Bug 73414 has been marked as a duplicate of this bug. ***
Verified for 3.1 M2 with build I200409231635.