[
https://issues.apache.org/jira/browse/THRIFT-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Randy Abernethy resolved THRIFT-1497.
-------------------------------------
Resolution: Fixed
Fix Version/s: 0.9.2
Assignee: Randy Abernethy
This seems to have been fixed in the raft of JS patches between 0.9.1 and
0.9.2. Tests with large and small i64 values pass (e.g. 0, 2, 4, 2^52). N.B.
JavaScript cannot handle i64s larger than 2^52 safely.
> i64 type not supported in JavaScript. Low-order bits lost.
> ----------------------------------------------------------
>
> Key: THRIFT-1497
> URL: https://issues.apache.org/jira/browse/THRIFT-1497
> Project: Thrift
> Issue Type: Bug
> Components: JavaScript - Library
> Reporter: Kenny
> Assignee: Randy Abernethy
> Labels: javascript, thrift
> Fix For: 0.9.2
>
>
> When using i64 values that are larger than 2^53 JavaScript does not keep the
> low-order bits.
> I have a function returning i64 expecting to use it as an id to a later
> function. Data is lost when a client calls this function in JavaScript
> because it doesn't end up with the full precision.
--
This message was sent by Atlassian JIRA
(v6.2#6252)