li-fcb1899 commented on issue #3997: URL: https://github.com/apache/fory/issues/3997#issuecomment-5470058294
> Why do you want register customized codec for built-in type java.lang.Long? <img width="404" height="474" alt="Image" src="https://github.com/user-attachments/assets/8d0917ea-7f16-426e-a4bf-bd0fe5a6c4b8" /> <img width="360" height="62" alt="Image" src="https://github.com/user-attachments/assets/115ab0cf-e3a6-4bb6-b79a-000965f02654" /> Java `Long` can hold values larger than JavaScript Number's safe integer limit (`2^53‑1`). When parsing JSON, JavaScript corrupts the lower digits of oversized long integers, causing precision loss. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
