Commit 32bc90f
committed
Avoid possible serialization issues related to ArraySeq
The ArraySeq class has been known to cause deserialization failures
related to saving/reloading parsers because the class is written in a
way as to cause serialization sensitivity to changes in the class.
We don't use ArraySeq in any of our serialized classes, but Scala
implements varargs using ArraySeq, and we do use varargs in the
serialized CompiledDPath class. This can make serialized objects
sensitive to different versions of Scala if they make changes to the
class.
We do not need any of the features provided by ArraySeq or varargs, so
this converts the ops member of CompiledDPath to an Array, avoiding
potential deserialzation issues with future versions of Daffodil.
DAFFODIL-30731 parent 41e02e7 commit 32bc90f
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments