I just found an infinite loop while running the GWT compiler.

There was a trivial bug in my code which resulted in an infinite loop at 
*runtime*. This is a method that was calling itself recursively. It was 
inside a generic class, and the method had a single line that was something 
like this:

public class A<T extends B> extends C {
    public static <T extends B> A<T> getA(D d, E e, F f) {
        return getA(d, e, null);
    }
}

I have been running in dev mode with it like this, but not hitting this 
code so I didn't notice the infinite loop.

Wanting to test GWT 2.11.0, I switched from GWT 2.10.0 and did a full GWT 
compile. The interesting thing is that the GWT compile also hit an infinite 
loop. Or rather, it was apparently infinite. I stopped it after 50 minutes, 
where it would normally complete in about about 90 seconds. I dropped back 
to 2.10.0, and found the same behaviour. So it's not caused by the new 
release.

Fixing the bug in my code meant it then compiled properly (in both 2.11.0 
and 2.10.0).

Is this interesting enough to warrant further investigation? This is code 
inside a large application, so isolating a simple example that demonstrates 
it might not work easily.

FWIW there's a stack trace taken while stuck in the loop, compiling with 
2.11.0 here: https://pastebin.com/qckpswRD

Paul

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/e83dce79-9dd5-4985-9c86-9277e7261c25n%40googlegroups.com.

Reply via email to