Commit 95a443f
authored
fix: add reflection hints for Dependency class (#22872)
In previous Flow versions, Dependency class had a toJson method that
created an elemental JsonObject to be sent to the client as JSON.
However, the method has been removed and replaced by Jackson
serialization. This causes wrong JSON serialization in native
executables because reflection is required, but metadata is not stored
for the Dependency class.
This change adds the missing reflection hint for the Dependency class.
It also replaces a useless JSON to string to JSON conversion.
Fixes #228701 parent 34e516b commit 95a443f
File tree
2 files changed
+4
-11
lines changed- flow-server/src/main/java/com/vaadin/flow/server/communication
- vaadin-spring/src/main/java/com/vaadin/flow/spring/springnative
2 files changed
+4
-11
lines changedLines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 223 | + | |
| 224 | + | |
233 | 225 | | |
234 | 226 | | |
235 | 227 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
0 commit comments