Jess Sightler created FORGE-1877:
------------------------------------
Summary: Default implementation of .equals fails with Proxy objects
Key: FORGE-1877
URL:
https://issues.jboss.org/browse/FORGE-1877
Project: Forge
Issue Type: Feature Request
Components: Furnace (Container)
Reporter: Jess Sightler
proxyObjectA.equals(proxyObjectA) returns false
This appears to be because the default .equals method ends up being called on the
unwrapped (non-proxied) proxyObjectA, but it is passed the wrapped (proxied) object as the
parameter.
One workaround is to always call Proxies.unwrap before calling .equals, but this is
error-prone. Perhaps the argument to .equals should be unwrapped by default if it is
wrapped?
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)