Details
-
Type:
Bug
-
Status:
Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2.2
-
Component/s: None
-
Labels:None
-
JDK version and platform:1.4.2_09
Description
I was unable to alias primitive types.
I tried the following:
XStream xs = new XStream( );
xs.alias( "bo", Boolean.TYPE );
Object o = new boolean[]
;
String xml = xs.toXML( o );
that results in
<bo-array>
<bo>true</bo>
<bo>false</bo>
</bo-array>
but the call to xs.fromXML() for this XML throws
com.thoughtworks.xstream.mapper.CannotResolveClassException: boolean : boolean
Activity
Jörg Schaible
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.2.2 [ 13038 ] | |
| Fix Version/s | 1.2.1 [ 12872 ] |
Jörg Schaible
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.2.1 [ 12872 ] | |
| Fix Version/s | 1.x Maintenance [ 12873 ] |
Jörg Schaible
made changes -
| Fix Version/s | 1.2.2 [ 13038 ] | |
| Fix Version/s | 1.x Maintenance [ 12873 ] |
Jörg Schaible
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Note to devs: I've added already an (out-commented) unit test to the AliasTest...