Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
May I simply cite the javadoc for omitField:
The declaring type is the type that declares the field i.e. in your case A.
Have a look at the Alias Tutorial. And please use the user's list for questions - thanks!