Is this a bug?
Vicente-Arturo Romero-Zaldivar
vicente.romero at oracle.com
Thu Sep 26 02:45:32 PDT 2013
Hi Zhong Yu,
Thanks for the bug report, I have filed bug entry:
https://bugs.openjdk.java.net/browse/JDK-8025494 to track it.
Vicente
On 25/09/13 03:17, Zhong Yu wrote:
> This program does not compile (jdk8 build 106)
>
> public class Tmp
> {
> class S{}
>
> interface I<S, T extends S>{}
>
> class C implements I<C,C>{}
> }
>
> Apparently, javac thinks the bound of T is the class S, not the type variable S.
>
> I'm not sure if this is correct - shouldn't type variable S shadow
> class S inside <>?
>
> Thanks,
> Zhong Yu
More information about the compiler-dev
mailing list