| Anonymous | Login | Signup for a new account | 10-28-2025 00:29 PDT |
| 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 | |||||||
| 0003920 | [Hessian] | major | always | 02-27-10 17:54 | 02-08-16 23:24 | |||||||
| Reporter | aloksingh | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | Product Version | 4.0.3 | |||||||||
| Summary | 0003920: BigDecimal objects are incorrectly serialized | |||||||||||
| Description |
Serializing/Deserializing BigDecimal objects doesn't work correctly Ex: BigDecimal object = new BigDecimal("12474639.945458954"); Hessian2Output os = new Hessian2Output(null); os.setSerializerFactory(new SerializerFactory()); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); os.init(buffer); os.writeObject(object); os.close(); byte[] bytes = buffer.toByteArray(); Hessian2Input is = new Hessian2Input(new ByteArrayInputStream(bytes)); BigDecimal newObject = (T) is.readObject(); is.close(); assert object.equals(newObject) The final assertion should not fail. |
|||||||||||
| Additional Information | ||||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
45 total queries executed. 35 unique queries executed. |