Internal Compiler Error: cannot instantiate <anonymous Test$1$1>() at <anonymous InterfaceB> to ()

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed May 11 08:11:23 PDT 2011


Hi Andreas,
this is a regression that has been introduced in b44 by the following fix:

http://bugs.sun.com/view_bug.do?bug_id=6723444

We will see if we can fix this for JDK 7.

Thanks
Maurizio


On 11/05/11 16:00, Andreas Kohn wrote:
> Hi,
>
> I've hit an internal compiler error in javac:
> src/Test.java:26: error: internal error; cannot instantiate<anonymous Test$1$1>() at<anonymous InterfaceB>  to ()
> 				return new InterfaceB() {
> 				       ^
> 1 error
> (no options other than the source file given to javac)
>
>
> This happens with the attached source code, with javac full version
> "1.7.0-ea-b141" (could reproduce also with b78, don't have older
> versions :D)
> The error does not happen with javac full version "1.6.0_25-b06".
>
>
> Is this a known bug?
>
> Regards,
> --
> Andreas
>




More information about the compiler-dev mailing list