openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hthom...@apache.org
Subject svn commit: r1426680 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Date Sat, 29 Dec 2012 01:06:49 GMT
Author: hthomann
Date: Sat Dec 29 01:06:48 2012
New Revision: 1426680

URL: http://svn.apache.org/viewvc?rev=1426680&view=rev
Log:
OPENJPA-2257: Added additional changes (i.e. return a copy of _supportedKeys) to the code
changes made previously by Albert Lee.

Modified:
    openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java

Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java?rev=1426680&r1=1426679&r2=1426680&view=diff
==============================================================================
--- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
(original)
+++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Sat Dec 29 01:06:48 2012
@@ -724,7 +724,9 @@ public class ConfigurationImpl
                 }
             }
         }
-        return _supportedKeys;
+        //OJ2257: Return a copy of _supportedKeys as calls to this method (e.g. 
+        //BrokerImpl.getSupportedProperties()) may add to this set.
+        return new TreeSet<String>(_supportedKeys);
     }
     
     /**



Mime
View raw message