nexpected internal compiler error

2 views
Skip to first unread message

hovan

unread,
Aug 10, 2006, 2:31:34 PM8/10/06
to Google Web Toolkit
Is there any workarounds in this case:

public class A {
protected String x;
public abstract class AA {
protected abstract void innerDoX(String xx);
public void doX() {
innerDoX(x);
}
}
}

public class B extends A {
private AA a = new AA() {
protected void innerDoX(String xx) {
}
};
}

I got:
[java] Analyzing permutation #1
[java] [ERROR] Unexpected internal compiler error
[java] [ERROR] Build failed
[java] Java Result: 1
Thanks,
hovan

Scott Blum

unread,
Aug 15, 2006, 4:30:35 PM8/15/06
to Google-We...@googlegroups.com
Hi Hovan,

Good catch there.  In the test I ran, converting the anonymous AA subclass into a named nested class worked around the issue.  I'll get a fix into the next release.

Scott
Reply all
Reply to author
Forward
0 new messages