You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the writeString method on JsonGenerator that accepts a Reader throws when the underlying implementation is TokenBuffer. This happens for instance one when calls convertValue, but makes it awkward for the Serializer to be agnostic to whether it's being called for conversion or serialization.
Version information
Which Jackson version(s) was this for?
cowtowncoder
changed the title
TokenBuffer does not implement writeString(Reader reader, int len)TokenBufferdoes not implement writeString(Reader reader, int len)Mar 12, 2023
Describe the bug
Calling the
writeString
method onJsonGenerator
that accepts aReader
throws when the underlying implementation isTokenBuffer
. This happens for instance one when callsconvertValue
, but makes it awkward for the Serializer to be agnostic to whether it's being called for conversion or serialization.Version information
Which Jackson version(s) was this for?
2.14.x
To Reproduce
Here's a contrived example:
The text was updated successfully, but these errors were encountered: