Community
Participate
Working Groups
build 3.1RC2 1) create p\X.java package p; public X<T> { interface I {} class Y<U extends T & I> { } } 2) compile there is no error but javac return a error p\X.java:5: a type variable may not be followed by other bounds class Y<U extends T & I> {} ^ 1 error
the bug seems to be in javac: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4899305
Added regression test org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test745. Closing as INVALID.
Sorry test747.
reopening
Actually we were wrong, and spec disallow this case.
*** This bug has been marked as a duplicate of 106466 ***
Verified in M20060109-0800 for 3.1.2