Aleksei Valikov wrote:
> My personal opinion is that JAXB validator should compare objects in the
> tree by identity, not by value.
I agree.
> The simplest way to correct this would be to add objects to the
> validatedObjects wrapped into an "identity-comparing" wrapper like the
> one below.
That would cause a lot of object allocation, wouldn't it? It's probably
not too hard to implement a custom HashSet that uses == instead of
equals, especially because we only do the add operation.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net