XMLEncoder and EnumMap

Has anyone been able to encode an EnumMap with XMLEncoder? The regular persistence delegator for Map doesn't work because EnumMap requires the key class to be passed to the constructor.

I tried creating my own persistence delegator, but I don't see a way to get the key type from an empty EnumMap without using reflection to access the private fields. It would be nice if EnumMap had a getKeyType method.

[419 byte] By [upthewaterspouta] at [2007-11-26 21:56:19]
# 1
I have submitted the following bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6536295It will be available soon.I think it will be fixed in Java 7.Thanks!
UncleSAMa at 2007-7-10 3:52:43 > top of Java-index,Desktop,Developing for the Desktop...