We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FilteringGeneratorDelegate delegates the writeRawValue call to the wrong methods
Reproducer
ObjectMapper om = new ObjectMapper(); StringWriter sw = new StringWriter(); JsonGenerator generator = om.getFactory().createGenerator(sw); generator.writeStartArray(); generator.writeRawValue(new char[] { '1'}, 0, 1); generator.writeRawValue(new char[] { '2'}, 0, 1); generator.writeEndArray(); generator.flush(); assertEquals("[1,2]", sw.toString()); sw = new StringWriter(); generator = new FilteringGeneratorDelegate(om.getFactory().createGenerator(sw), TokenFilter.INCLUDE_ALL, true, true); generator.writeStartArray(); generator.writeRawValue(new char[] { '1'}, 0, 1); generator.writeRawValue(new char[] { '2'}, 0, 1); generator.writeEndArray(); generator.flush(); assertEquals("[1,2]", sw.toString()); // gives [12]
issue here
jackson-core/src/main/java/com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.java
Line 508 in 62af537
Line 516 in 62af537
Line 524 in 62af537
it happens in 2.9.10 but I check the 2.10 branch and it's there too. The fix is pretty straightforward I'll submit a PR when I have time.
Regards, Arnaud
The text was updated successfully, but these errors were encountered:
fix FasterXML#580
fbc4834
Excellent, thank you for submitting this! I'll get it merged as soon as I find time (hopefully today)
Sorry, something went wrong.
4b7e99c
Add a test for #580
973e493
fix #580 (#581)
8990101
Fixed for 2.10.2 (and also in 2.9 branch, if 2.9.10.1 / 2.9.11 ever released).
2.9
No branches or pull requests
FilteringGeneratorDelegate delegates the writeRawValue call to the wrong methods
Reproducer
issue here
jackson-core/src/main/java/com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.java
Line 508 in 62af537
jackson-core/src/main/java/com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.java
Line 516 in 62af537
jackson-core/src/main/java/com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.java
Line 524 in 62af537
it happens in 2.9.10 but I check the 2.10 branch and it's there too.
The fix is pretty straightforward I'll submit a PR when I have time.
Regards, Arnaud
The text was updated successfully, but these errors were encountered: