johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Vivoda (JIRA)" <>
Subject [jira] [Created] (JOHNZON-110) Support for large integrals
Date Thu, 23 Mar 2017 21:24:41 GMT
Michele Vivoda created JOHNZON-110:

             Summary: Support for large integrals
                 Key: JOHNZON-110
             Project: Johnzon
          Issue Type: Improvement
    Affects Versions: 0.9.5
            Reporter: Michele Vivoda

While testing javax.json implementations I discovered Johnzon does not support very big integral
numbers , they loose the value when converted to Long and might also become negative. Big
decimals works fine.

Other implementations tested, the glassfish one and cookjson both support big integrals as

I would suggest to test the length of  an integral lexical without sign (being an integral
has no decimals, no exponential part) , if is more than 18 digits, use java.math.BigInteger

See also the implementation of Glassfish

JsonTokenizer.isDefinitelyLong at

Michele Vivoda

This message was sent by Atlassian JIRA

View raw message