Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(165)

Issue 4277080: Long integer literals in hex fail to get parsed with a runtime exception (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by Jasvir
Modified:
14 years, 11 months ago
Reviewers:
felix8a
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

JsLexer recognizes decimals, octals and hexadecimal numbers, however, java bignumbers parse only decimals. This change recognizes large hex and octal numbers and parses them accordingly. @4426

Patch Set 1 #

Total comments: 4

Patch Set 2 : Long integer literals in hex fail to get parsed with a runtime exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -24 lines) Patch
M src/com/google/caja/parser/js/Parser.java View 1 2 chunks +51 lines, -24 lines 0 comments Download
M tests/com/google/caja/parser/js/ParserTest.java View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Jasvir
14 years, 11 months ago (2011-03-28 23:21:48 UTC) #1
felix8a
http://codereview.appspot.com/4277080/diff/1/src/com/google/caja/parser/js/Parser.java File src/com/google/caja/parser/js/Parser.java (right): http://codereview.appspot.com/4277080/diff/1/src/com/google/caja/parser/js/Parser.java#newcode982 src/com/google/caja/parser/js/Parser.java:982: private static BigInteger MAX_REPRESENTABLE = BigInteger.valueOf(1L << 51 -1); ...
14 years, 11 months ago (2011-03-29 00:09:24 UTC) #2
Jasvir
snapshot http://codereview.appspot.com/4277080/diff/1/src/com/google/caja/parser/js/Parser.java File src/com/google/caja/parser/js/Parser.java (right): http://codereview.appspot.com/4277080/diff/1/src/com/google/caja/parser/js/Parser.java#newcode982 src/com/google/caja/parser/js/Parser.java:982: private static BigInteger MAX_REPRESENTABLE = BigInteger.valueOf(1L << 51 ...
14 years, 11 months ago (2011-03-29 00:16:02 UTC) #3
felix8a
14 years, 11 months ago (2011-03-29 00:17:36 UTC) #4
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b