XStream
  1. XStream
  2. XSTR-642

when javabean property use "_",toXML method will covert it to "__"

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      sun 1.6.0_17 for linux

      Description

      If javabean property has "", class com.thoughtworks.xstream.XStream's method toXML will covert it to "",but it don't covert value's "" to "__"
      eg:
      @@XStreamAlias("user")
      class User

      { private String user_name;//set "ha_h" //getter and setter ..... }

      then it output xml is :
      <user>
      <user_name>ha_h</user_name>
      </user>

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          longhao
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: