FasterXML/jackson-module-afterburner

Afterburner causes deserialization to fail

Closed this issue · 3 comments

I've hit a bug where having the Afterburner module installed causes deserialization of completely valid JSON to fail. I don't know exactly what causes it, but the object structure is pretty complicated. I was able to take the code and munge it into a slightly simpler form that still exhibits the bug.

The source code is here: http://pastebin.com/Trt4a5G2

If I run the main() method with the Afterburner module, I get an exception. But if I run it with the Afterburner module commented out, it works fine.

Sorry for slow response -- I will try to reproduce the issue & fix whatever is causing it.

Ok, I can reproduce the issue with the test, including passing when afterburner commented out.
Had to remove Joda dependency, but that doesn't seem to be related.

Found out the issue (off-by-one token in SuperSonicBeanDeserializer), fixed for 2.2.0 (and 2.1.x branch if new versions will be cut).