OPENJPA-1506 - Fix ConfigurationImpl.equals() to support derived provider.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2010-02-11 16:22:58 +00:00
parent fb004027ad
commit 80d6c79b52
1 changed files with 5 additions and 3 deletions

View File

@ -885,9 +885,11 @@ public class ConfigurationImpl
ConfigurationImpl conf = (ConfigurationImpl) other; ConfigurationImpl conf = (ConfigurationImpl) other;
if (_vals.size() != conf.getValues().length) if (_vals.size() != conf.getValues().length)
return false; return false;
for(Value v : _vals) { for(Value v : _vals) {
Value thatV = conf.getValue(v.getProperty()); String propName = v.getProperty();
if (!v.equals(thatV)) { Value thisV = this.getValue(propName);
Value thatV = conf.getValue(propName);
if (!thisV.equals(thatV)) {
return false; return false;
} }
} }