XStream
  1. XStream
  2. XSTR-758

createObjectInputStream Method seems to ignore ignoreUnknownElements call

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      my xml:

          <test>
              <test2>
                    <bla value="5">
              </test2>
          </test>
      

      I created a class for "bla" with annotations and called xstream.processAnnotations( Bla.class) and then xstream.ignoreUnknownElements();

      When i create an object input stream with

      xstream.createObjectInputStream(new FileInputStream(file));
      

      I immediately get an CannotResolveClassException: test

        People

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

          Dates

          • Created:
            Updated:
            Resolved: