Tatu Saloranta

Results 3333 comments of Tatu Saloranta

Due to all complexities and ambiguity involved, so-called "delegating" constructors are not auto-detected (your Record-taking Constructor is delegating one; as opposed to Properties-based one). You do need to use annotation,...

Ok, so: Jackson allows for at most: 1. One properties-based constructor (and if none annotated, no-args taking one essentially works as on) 2. One (full) annotated delegation-based constructor One challenge...

@jessebarnum Almost -- but you are missing a setter or auto-detected field for delegating case? Basically something that does same as this: ``` @JsonCreator( mode = JsonCreator.Mode.PROPERTIES) public JacksonMultipleConstructorsExample( Triple...

@jessebarnum Ok. I got confused with the example. This seems odd: ``` { "triple": { "a": 1, "b": 2, "c": 3 }, "d": 4, "e": 5 } ``` because structurally...

> Seems like I put a start to this one. [#5084 (comment)](https://github.com/FasterXML/jackson-databind/issues/5084#issuecomment-2798918716). > > Shall we come up with draft solution in databind module as well, so we wont have...

@jessebarnum Ok I just do not understand intent then. But one thing I did miss and should again warn -- part of FAQ. For test cases, PLEASE do not disable...

Ok, so: I think it'd be reasonable to change "mode" auto-detection/heuristics to consider single-Record-arg Constructor be considered delegating, a la: (assuming that wasn't working yet) ``` class Wrapper { @JsonCreator...

Ok, given example should NOT have worked as is. So unfortunately 2.18+ behavior seems as-intended. So: although Jackson does allow Creator auto-detection in some cases, it should not work here...

Based on historical issues, my tolerance for logic changes in this area is bit limited. There are complexities with equal number of parameters etc. However, if this was added as...

Thank you for reporting this, troubleshooting, and especially including version information! I suspect the difference from behavior stems from slightly different code path taken in presence of handlers needed for...