VerifyError: Wrong return type in function (original) (raw)

Neal Gafter neal at gafter.com
Wed Aug 6 09:41:11 PDT 2008


Mark-

Thanks for the report!

This is definitely a bug. I'll squash it with the next update.

Regards, Neal

On Wed, Aug 6, 2008 at 2:20 AM, Mark Mahieu <mark at twistedbanana.demon.co.uk>wrote:

FYI, the following code (all in one compilation unit) compiles but fails with a VerifyError when run. The test case is about as simple as I could make it...

public class TriggerVerifyError { public static void main(String[] args) { new Foo() {}.run(); } } class Foo { void run() { {=> String} fn = {=> String s = null; s }; } } Exception in thread "main" java.lang.VerifyError: (class: Foo$2, method: invoke signature: ()Ljava/lang/String;) Wrong return type in function at Foo.(TriggerVerifyError.java:10) at TriggerVerifyError.main(TriggerVerifyError.java:3) Regards, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080806/4ba1d177/attachment.html



More information about the closures-dev mailing list