Commit 9f0f144
fix(serde): use resolved element type for numeric deserialization in collection setters
When deserializing a JSON array via a Lombok @Singular bulk setter (e.g.
assetExternalDQTestLatestScores(Collection<? extends Double>)), JacksonUtils
was re-reading the raw parameter type from the method (Collection) rather
than using the already-resolved singularClass (Double). This caused an
"Unhandled parameter type" IOException for any SortedSet<Double> field.
The fix adds a deserializeNumber(JsonNode, Class<?>) overload and routes
both number-path calls in deserializePrimitive through singularClass,
which is already correctly resolved before those branches are reached.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>1 parent b8496e9 commit 9f0f144
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
103 | | - | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
0 commit comments