"Jochen Hoenicke" <[EMAIL PROTECTED]> writes:
> 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
Jochen,
If you'd like to submit a diff, I'll add it to the CVS tree. The same
for anybody who wants to point out a problem, but thanks very much for
the heads up on this.
Brian
--
|-------------------------------|Software Engineer
|Brian Jones |[EMAIL PROTECTED]
|[EMAIL PROTECTED] |http://www.nortel.net
|http://www.classpath.org/ |------------------------------