Comments (7)
Apologies for the bug & congratulations for being the first UTF-32 user I have ever met! ;-D
(I assume no one has used it before, given that this is the first bug report... and for quite a fundamental bug).
from jackson-core.
Interestingly the existing UTF-32 tested was NOT catching this issue, because it closed the stream before hitting end-of-file (which would trigger read). I was able to 'fix' this by checking for one more nextToken().
And with that, should be easy enough to fix the issue itself too.
from jackson-core.
Fixed, now passes modified unit test. Will be in 2.1.2, 2.2.0.
from jackson-core.
FWIW, patch fix list at: wiki.fasterxml.com/JacksonRelease212
from jackson-core.
Well, technically I'm not a UTF-32 user, I was just writing tests that ensured that Play framework lets Jackson detect the encoding, and included UTF-32 for completeness:
We're actually still on Jackson 1.9, but it's easy enough to work around by wrapping the byte array in a ByteArrayInputStream, so we don't need this backported.
from jackson-core.
Fair enough, I was guessing you were probably just testing UTF-32 handling for sake of completeness. :-)
(and remembered your name from earlier submissions)
If work-around is easy, that's good; but if you do want a fix, 1.9 branch is still open. Actually, come to think of that now, how about I'll see if I can just add the fix myself. It should merge relatively cleanly.
from jackson-core.
Fixed for 1.9.12 as well now.
from jackson-core.
Related Issues (20)
- Rename shaded `ch.randelshofer:fastdoubleparser` classes to prevent use by downstream consumers HOT 3
- Change default recycler pool to `newConcurrentDequePool()` in 2.18 HOT 1
- Change `JsonFactory.builder()` configuration of `RecyclerPool` to avoid allocation default implementation (in 3.0)
- Deprecate `LockFreePool` implementation in 2.18 (remove from 3.0) HOT 3
- Locale deserialization fails on locales with only a language and variant HOT 2
- `NUL`-corrupted keys, values on JSON serialization HOT 6
- Add back Java 22 optimisation in FastDoubleParser HOT 1
- Optimize `JsonParser.getDoubleValue()/getFloatValue()/getDecimalValue()` to avoid String allocation
- jackson-core-2.16.0.jar incorrectly flagged with CVE-2023-5072 (org.json library issue) HOT 3
- Add new method like `JsonParser.readText(Writer)` (and implementation) for truly non-buffering reads
- NegativeArraySizeException and ArrayIndexOutOfBoundsException in ByteQuadsCanonicalizer HOT 7
- How to change default RecyclerPool for 2.17.0 ? HOT 5
- info required for compatible version with openjdk21 HOT 2
- Demote `StreamReadConstraints` further down parser inheritance hierarchy
- Relax validation by `NumberInput.looksLikeValidNumber()` to allow trailing dot (like `3.`)
- Add new `StreamReadConstraints` (`maxTokenCount`) to limit maximum number of Tokens allowed per document HOT 1
- more JsonParser methods should declare throws HOT 7
- The JsonReyclerPools#LockFreePool object takes up a large amount of memory HOT 5
- After Jackson serializes a large number of objects, the metadata space of the JVM cannot be freed HOT 11
- JSON spec noncompliance: parsing multiple root objects HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson-core.