XStream
  1. XStream
  2. XSTR-658

Confused omitField in a List of a Template

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • JDK version and platform:
      JDK 1.6 for Windows

      Description

      I'm using XStream 1.3.1.

      I want to omitField named "listener" which is a list of some template from an object type B extends A.

      In the A class declaration:
      List<EventListener> listener;

      • My code :

      omitField(List.class,"listener"); //won't work!

      • Cause List is actually an Interface and the "listener" is "ArrayList".I've tried:

      omitField(ArrayList.class,"listener"); //won't work!

      If it's not a bug, please tell me how to work around. Thank in advanced.

        People

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

          Dates

          • Created:
            Updated:
            Resolved: