break in unrestricted closure
Zdenek Tronicek
tronicek at fel.cvut.cz
Sun Aug 10 12:51:24 PDT 2008
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
More information about the closures-dev
mailing list