Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004273 [Hessian] major always 10-27-10 07:57 10-31-10 20:41
Reporter p_wright View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.7
Summary 0004273: Serialization fails for and
Description When serialising or types the serialiser creates bad objects which behave incorrectly (losing their internal fields).

Serialising+deserialising a URI results in an object whose toString() method returns the same as before however whose getScheme(), getHost(), etc. methods return different values (null). This problem can be very difficult to detect.

URL has a more obvious failure mode, throwing a NullPointerException on toString()

Result of running the attached code (Java 1.6.0_22-b04 64-bit VM). The values before and after should not change (and equals() should return true, obviously)

  toString() [^] => [^]
 getScheme() http => null
   getHost() => null
isAbsolute() true => false
    equals() false
Additional Information
Attached Files [^] (1,197 bytes) 10-27-10 07:57

- Relationships

- Notes
10-31-10 20:41

Hi, can I do some contribution for hessian? I want to take and fix some issues :)

- Issue History
Date Modified Username Field Change
10-27-10 07:57 p_wright New Issue
10-27-10 07:57 p_wright File Added:
10-27-10 07:58 p_wright Issue Monitored: p_wright
10-31-10 20:39 mixueqiang Issue Monitored: mixueqiang
10-31-10 20:41 mixueqiang Note Added: 0004806

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