|
Mantis - Hessian
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3920 | major | always | 02-27-10 17:54 | 02-08-16 23:24 | |
|
|
|||||
| Reporter: | aloksingh | Platform: | |||
| Assigned To: | OS: | ||||
| Priority: | normal | OS Version: | |||
| Status: | new | Product Version: | 4.0.3 | ||
| Product Build: | Resolution: | open | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| 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. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||