Menu

#4 Smallest value for numeric literals not possible

closed
5
2003-10-30
2003-10-27
Arno Unkrig
No

The following work:

short a = 32767;
short b = -32767;

but the following creates an exception:

short c = -32768;

Discussion

  • Arno Unkrig

    Arno Unkrig - 2003-10-30

    Logged In: YES
    user_id=865893

    The values of numeric literals are now converted from string
    to numeric during COMPILATION. This solves the problem.

    Fixed in janino 1.0.2.

     
  • Arno Unkrig

    Arno Unkrig - 2003-10-30
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB