db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r520543 - /db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
Date Tue, 20 Mar 2007 19:59:54 GMT
Author: arminw
Date: Tue Mar 20 12:59:53 2007
New Revision: 520543

URL: http://svn.apache.org/viewvc?view=rev&rev=520543
Log:
fix locale issue

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java?view=diff&rev=520543&r1=520542&r2=520543
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java (original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java Tue Mar 20
12:59:53 2007
@@ -17,6 +17,7 @@
 
 import java.util.HashMap;
 import java.util.Map;
+import java.util.Locale;
 import java.lang.reflect.InvocationTargetException;
 
 import org.apache.commons.lang.StringUtils;
@@ -125,7 +126,11 @@
         {
             try
             {
-                String str = (String) names.get(platformName.toLowerCase());
+                /*
+                arminw:
+                Avoid problems similar to OJB-132
+                */
+                String str = (String) names.get(platformName.toLowerCase(Locale.ENGLISH));
                 if(str != null)
                 {
                     String resolvedName = createClassName(str);



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message