Infinitary

Neal Gafter neal at gafter.com
Thu Jan 13 11:54:52 PST 2011


On Thu, Jan 13, 2011 at 10:57 AM, Jonathan Gibbons <
jonathan.gibbons at oracle.com> wrote:

>  On 01/13/2011 10:53 AM, Neal Gafter wrote:
>
> Do the latest versions of javac still "blow up" on code like this?
> *
> *
> *interface I<T> {}
>
> interface A<T> extends I<A<A<T>>>{}
>
> abstract class X {
>     abstract <T> T foo(T x, T y);
>     void bar(A<Integer> x, A<String> y){
>         foo(x, y);
>     }
> }*
>
> -Neal
>
>
> It should be easy enough to get the latest javac from the jdk7 langtools
> repository, build it and see what happens. Let us know what you find.
>

I find that javac behaves very badly on this code.

I also found that it is known how to prevent this poor compiler behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20110113/ea51faa8/attachment.html 


More information about the compiler-dev mailing list