Internal Compiler Error: cannot instantiate <anonymous Test$1$1>() at <anonymous InterfaceB> to ()
Andreas Kohn
andreas.kohn at fredhopper.com
Wed May 11 07:00:36 PDT 2011
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
--
If you need to do something under high load with failures occurring and
you need to reach agreement -- you're lost.
Werner Vogel, CTO Amazon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.java
Type: text/x-java
Size: 891 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20110511/8bde870f/Test.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20110511/8bde870f/attachment.bin
More information about the compiler-dev
mailing list