Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
May 16, 2022 · Backend Development

The Schrodinger Fastjson Bug: Why Random Cast Errors Occur

A developer chronicles a perplexing Fastjson bug where identical JSON data intermittently triggers a 'can not cast to String' error, explains how generic type caching caused the issue, and shows how upgrading from version 1.2.29 to 1.2.33 resolves it.

Javabug investigationgeneric parsing
0 likes · 11 min read
The Schrodinger Fastjson Bug: Why Random Cast Errors Occur