Status: New
Owner: jasvir
Labels: Type-Defect Priority-Medium jQuery
New issue 1275 by jasvir: Javascript parser throws NumberFormatExceptions
on large number literals
http://code.google.com/p/google-caja/issues/detail?id=1275
What steps will reproduce the problem?
1. var x= 99999999999999999999999;
What is the expected output? What do you see instead?
Caused by: java.lang.NumberFormatException: For input
string: "99999999999999999999999"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.valueOf(Long.java:508)
at java.lang.Long.decode(Long.java:653)
at com.google.caja.parser.js.Parser.toIntegerLiteral(Parser.java:996)
at
com.google.caja.parser.js.Parser.parseExpressionAtom(Parser.java:1026)
at com.google.caja.parser.js.Parser.parseOp(Parser.java:792)
at com.google.caja.parser.js.Parser.parseOp(Parser.java:858)
at com.google.caja.parser.js.Parser.parseExpressionInt(Parser.java:727)
Please use labels and text to provide additional information.