Jason Van Cleve
-
2004-10-21
- priority: 5 --> 6
The Java spec' requires that different instances of the
same class, within the same VM, should always return
unique hash codes from 'hashCode()'. Class
LxmlFilingImpl (and Internal LxmlFilingImpl, by
extension) violates this contract, because it overrides
that method (for some reason) and returns the hash code
of its XML content String. Hence, if any two
LxmlFilingImpl objects happen to contain the same
content string (which wouldn't be so bad, considering
the immutability of Strings), then both would return
the same hash code.