VerifyError: Wrong return type in function (original) (raw)
Mark Mahieu mark at twistedbanana.demon.co.uk
Wed Aug 6 02:20:05 PDT 2008
- Previous message: FINAL PROJECT: Closures for Java
- Next message: VerifyError: Wrong return type in function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: FINAL PROJECT: Closures for Java
- Next message: VerifyError: Wrong return type in function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]