There is a problem in java serialization, I want to keep the name of some classes, and I have some problems with generic classes. For example:
- If I have ArrayList<String> listToDump = new ArrayList<String>();
- If I take the name: listToDump.getName();or listToDump.getCanonicalName();
- I will have java.util.ArrayListor ArrayList
- And I want to have java.util.ArrayList<String>orArrayList<String>
Any ideas on how I can do this?
Damien.
source
share