Anonymous | Login | Signup for a new account | 11-21-2024 16:30 PST |
Main | My View | View Issues | Change Log | Docs |
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. <code> private static class TestUser implements java.io.Serializable { private final String name; private final Calendar lastSeen; } </code> Sample Test File in Github Repo: https://github.com/MCMicS/hessian/blob/a1d0b50eca6c68d18439775f281278c2bc44e975/test/com/caucho/hessian/io/SerializerDeserializerTest.java#L14 [^] maybe simlar to issues: - http://bugs.caucho.com/view.php?id=4069 [^] - http://bugs.caucho.com/view.php?id=4430 [^] |
|||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
Notes | |
(0007103) vj_msu 09-27-22 00:57 |
Will fail for all object with `writeReplace` methods where original instance will be replaced with other instances |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
33 total queries executed. 27 unique queries executed. |