Hello,
The clone method in java.util.Vector and some other collection
classes is incompatible with the behaviour of the Sun Java methods:
When I extend java.util.Vector and clone that class, the result is a
java.util.Vector and not the extended class. This is also true, when
I clone java.util.Stack.
To solve this problem, the clone method should invoke super.clone()
(the clone method of java.lang.Object), catch the
CloneNotSupportedException (which can't be thrown since Vector is
Cloneable), and then copy the data.
Jochen