Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006477 [Hessian] feature always 09-27-22 00:55 10-03-22 07:21
Reporter vj_msu View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.63
Summary 0006477: Hessian 4.0.66 Serialize Object with Calendar would fail on deserialization if references are used
Description If you try to serialize and de-serialize an object with a Calendar instance the de-serialization will fail if references are used. This is because the `Calendar` instance will be replaced with `CalendarHandle`. During de-serialization the index of referenced objects is wrong (real index + 1 for example) because during `Hessian2Output#replaceRef` the `_refCount` will be be unchanged although the refs size will be decreased.

private static class TestUser implements {
        private final String name;
        private final Calendar lastSeen;

Sample Test File in Github Repo: [^]

maybe simlar to issues:
- [^]
- [^]
Additional Information
Attached Files

- Relationships

- Notes
09-27-22 00:57

Will fail for all object with `writeReplace` methods where original instance will be replaced with other instances

- Issue History
Date Modified Username Field Change
09-27-22 00:55 vj_msu New Issue
09-27-22 00:56 vj_msu Issue Monitored: vj_msu
09-27-22 00:57 vj_msu Note Added: 0007103
10-03-22 07:21 EdgarWelch Note Added: 0007104
11-14-23 17:36 ferg Note Deleted: 0007104

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
33 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker