Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004273 [Hessian] major always 10-27-10 07:57 10-02-10 20:41
Reporter p_wright View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.7
  Product Build
Summary 0004273: Serialization fails for java.net.URI and java.net.URL
Description When serialising java.net.URI or java.net.URL 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 Test.java 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() http://www.example.com [^] => http://www.example.com [^]
 getScheme() http => null
   getHost() www.example.com => null
isAbsolute() true => false
    equals() false
Steps To Reproduce
Additional Information
Attached Files  Test.java [^] (1,197 bytes) 10-27-10 07:57

- Relationships

- Notes
(0004806)
mixueqiang
10-02-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: Test.java
10-27-10 07:58 p_wright Issue Monitored: p_wright
10-02-10 20:39 mixueqiang Issue Monitored: mixueqiang
10-02-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