Menu

#2 Number Format Exeption

open
nobody
None
5
2007-07-06
2007-07-06
Anonymous
No

NumberFromatException thrown in file AwkParser, line 3719, Class AwkSymbolTable:

AST addINTEGER(String integer) { return new Integer_AST(Integer.decode(integer)); }

The value of the integer String is "09", causing Integer.decode to interpret it as octal.

I supose the correct line must be:

AST addINTEGER(String integer) { return new Integer_AST(Integer.parseInt(integer)); }

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.