Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#237 doesn't accept large hex ints

open
nobody
Parsing (77)
5
2005-08-05
2005-08-05
Anonymous
No

This works in plain Java, but not in bsh:

int i =2; //ok
int j = 0x80; //ok
int k = 0x80000000;
// Error: Parser Error: Parse error at line 3, column 9
: Error or number too big for integer type: 0x80000000

I would expect k to be assigned -2147483648, like in
regular Java.

Discussion

  • Logged In: NO

    duplicate of bug #1028845