Commit 23edb9c
committed
Fix inline type name handling without data member
This addresses an error that occurs when attempting to deserialize
classes without data member (empty private data cluster). In these
cases, JSONtext is unable to deserialize the private data cluster
because it contains no elements (which is not possible for any other
kind of cluster).
Fixed by checking the number of data elements in the private data
cluster before parsing. For empty data clusters parsing is skipped and
the data cluster is used as is.
References #211 parent 4cf12a7 commit 23edb9c
7 files changed
Lines changed: 30 additions & 2 deletions
File tree
- Generic Object Serializer Tests
- No Data Member Subclass
- Type Name Handling
- Generic Object Serializer
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
Lines changed: 25 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | 138 | | |
140 | | - | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
| |||
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| 433 | + | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
0 commit comments