Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
`FilteringGeneratorDelegate` bug when filtering arrays (in 2.10.1) #582
Since 2.10.1, it is not possible to filter out object arrays anymore.
The regression has been introduced by this (jackson-databind) commit which changed the array serialization implementation (more specifically the writeStartArray methods used):
So it seems that the root cause is that the FilteringGeneratorDelegate (jackson-core) should override all JsonGenerator::writeStartArray methods.
Here is a maven project with 1 test class that reproduces the bug and offers a workaround :
Test class :
First of all: thank you for submitting this -- and I think you are right about analysis.
Second of all: rats. It is very unfortunate regression; I wish I had realized the issue with the fix.
One good thing is that at least it should get in 2.10.2 fix; I'll put this at the top of my work queue.