
5 Aug
2009
5 Aug
'09
4:45 p.m.
Hi, I see that the errata now indicate that the UUID is to be different on a cloned object. The spec says nothing about the "equals" operation. In the Java world it is normal that if one object is a clone of another that "equals" is true. This means that when you write clone, you normally do equals and hashCode as well. Now hashCaode is very Java specific however C++ has operator== which can be defined. In Java you always have an equals operation but the default implementation is almost useless. Should the spec say anything about this - and what have the various implementations done? Steve