Details
Description
The return inside a for loop is ignored and the loop will complete. However the code after the loop is not executed.
for(int i=0;i<5;i++) { System.out.println("LOOP" + i); return true; } System.out.println("END");
This code will produce the following output :
LOOP0
LOOP1
LOOP2
LOOP3
LOOP4
Activity
Mike Brock
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.1.Beta3 [ 17213 ] | |
| Resolution | Fixed [ 1 ] |
And that's why MVEL 2.1 is still beta. =) But this is now fixed.