Details

    • Type: Bug Bug
    • Status: Closed 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[]

      {true, false}

      ;
      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

        Hide
        Jörg Schaible added a comment -

        Note to devs: I've added already an (out-commented) unit test to the AliasTest...

        Show
        Jörg Schaible added a comment - Note to devs: I've added already an (out-commented) unit test to the AliasTest...
        Hide
        Jörg Schaible added a comment -

        Fixed in the svn repo.

        Show
        Jörg Schaible added a comment - Fixed in the svn repo.

          People

          • Assignee:
            Unassigned
            Reporter:
            Egor Samarkhanov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: