Menu

#21 Switch doesn't support char arguments

closed-fixed
5
2004-01-01
2004-01-01
No

test in the file attached to bug#868686 generates this
error:

net.janino.Java$CompileException: File C:\apps\janino-
1.0.7\tests\src\MiscTests.java, Line 41, Column 9: Value
of "case" switch label must be of type "int"

Discussion

  • Arno Unkrig

    Arno Unkrig - 2004-01-01

    Logged In: YES
    user_id=865893

    The rule for the case constant expression type is "must be
    assignable to the type of the switch expression", not "must
    be int".

    Will be fixed in version 1.0.8.

     
  • Arno Unkrig

    Arno Unkrig - 2004-01-01
    • status: open --> closed-fixed
     

Log in to post a comment.