Mantis - Hessian
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4273 | major | always | 10-27-10 07:57 | 10-01-10 20:41 | |
|
|||||
Reporter: | p_wright | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 4.0.7 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: | Test.java [^] (1,197 bytes) 10-27-10 07:57 |
Notes | |||||
|
|||||
|
|