-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Create UnknownPropertiesTest.java #3727
Conversation
Ok so this exhibits the problem: and it reminds me that it is specifically the Aside from that, I guess testing/verification here would mean adding breakpoints (etc) in accessor or such -- or just observing time to run? |
Add a breakpoint in NumberInput.parseBigInteger (both versions of this overloaded method). |
@pjfanning Ah-ha! Ok, yes, now I see it clearly:
but for some reason not otherwise. I think I'll see how many tests break if using this for all cases... Interesting: exactly TWO tests (only!) fail. One is testing I'll try to find ConfigOverride setting next, to ensure there is an existing way to achive this -- it doesn't mean we couldn't consider a new |
Ohhhhh. Actually, the test failing in And all that is required is the use of properties-based creator. But this also suggests "ignoreUnknown" would break this usage too. Weird. EDIT: adding |
Ok, quick note: I may not have explained my ideas clearly, but the lazy/buffered value types must be provided by But maybe work here could try prototyping approach with easier-to-test approach. Even if eventual implementation would be different and split across components. |
How about if I move the new Lazy* classes to jackson-core and add getLazyBigIntegerValue() and getLazyDecimalValue() to JsonParser interface? |
That would be better, although I am not sure there should be separate accessors for types, instead of something like |
7534aaf
to
3254117
Compare
src/main/java/com/fasterxml/jackson/databind/util/TokenBuffer.java
Outdated
Show resolved
Hide resolved
replaced with #3761 |
test case for #3721