break in unrestricted closure (original) (raw)
Zdenek Tronicek tronicek at fel.cvut.cz
Sun Aug 10 12:51:24 PDT 2008
- Previous message: VerifyError: Wrong return type in function
- Next message: hg: closures/closures/langtools: Fixed a compiler crash on some closures that can't complete normally
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
the following code is compilable but does not run:
public static void main(String[] args) {
int i;
for (i = 0; i < 5; i++) {
if (i == 3) { ==> break; }.invoke();
}
if (i != 3) {
throw new AssertionError("break");
}
}
Exception in thread "main" java.lang.VerifyError: (class:
unrestricted/Break, me
thod: main signature: ([Ljava/lang/String;)V) Accessing value from
uninitialized
register 2
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again
Z.
Zdenek Tronicek Department of Computer Science and Engineering Prague tel: +420 2 2435 7410 http://cs.felk.cvut.cz/~tronicek
- Previous message: VerifyError: Wrong return type in function
- Next message: hg: closures/closures/langtools: Fixed a compiler crash on some closures that can't complete normally
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]