Menu

#8 "default:" label in "switch" statement sometimes broken

closed
5
2003-11-18
2003-11-18
Arno Unkrig
No

A "default:" label in a "switch" statement causes a
ParseException if not immediately preceeded with a
"case" label.

Discussion

  • Arno Unkrig

    Arno Unkrig - 2003-11-18

    Logged In: YES
    user_id=865893

    Oops... Janino does not recognize the "default:" as a label
    and attempts to parse it as a block statement. Fixed in 1.0.4.

     
  • Arno Unkrig

    Arno Unkrig - 2003-11-18
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB