ForeachStatement fix for GwtAstBuilder.

Fixes a compile error that occurs with code like this:

interface SubIterator<E> extends Iterator<E> {
}

class Foo implements Iterable<String> {
@Override
public SubIterator<String> iterator() {
return null;
}
}

We were trying to find 'SubIterator.next()' which isn't modeled in JDT.  It turns out JDT has the right answer in a private field.

http://gwt-code-reviews.appspot.com/1450814/

Review by: jbrosenberg@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10313 8db76d5a-ed1c-0410-87a9-c151d255dfc7
2 files changed