Details
-
Type: Bug
-
Status: Closed
-
Resolution: Incomplete
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
-
JDK version and platform:1.4.2,winxp
Description
I don't know if it's a bug for sure but I have a case where the alias I assign doesn't get applied but instead the class name is included into the generated XML.
public class XMLTemplate {
static XStream xstream = new XStream();
...
but in XML it produces
<?xml version="1.0" encoding="UTF-8"?>
<test.PHRInfo>
<personalInfo>
<contact>
<firstName>Lorry</firstName>
<email />
</contact>
<dob />
<sex />
<note />
</personalInfo>
<emergencyInfo>
<list>
<test.EmergencyContact>
<contact>
<firstName>ggg</firstName>
<phone />
<cell />
</contact>
<relation />
</com.inzami.phr.EmergencyContact>
...
Can you tell why the alias for com.inzami.phr.PHRInfo and com.inzami.phr.EmergencyContact do not get applied?
XML Correction
<?xml version="1.0" encoding="UTF-8"?>
<com.inzami.phr.PHRInfo>
<personalInfo>
<contact>
<firstName>Lorry</firstName>
<email />
</contact>
<dob />
<sex />
<note />
</personalInfo>
<emergencyInfo>
<list>
<com.inzami.phr.EmergencyContact>
<contact>
<firstName>ggg</firstName>
<phone />
<cell />
</contact>
<relation />
</com.inzami.phr.EmergencyContact>