db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r520542 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
Date Tue, 20 Mar 2007 19:59:29 GMT
Author: arminw
Date: Tue Mar 20 12:59:28 2007
New Revision: 520542

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

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

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java?view=diff&rev=520542&r1=520541&r2=520542
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
Tue Mar 20 12:59:28 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;
@@ -28,7 +29,7 @@
 import org.apache.ojb.broker.util.logging.LoggerFactory;
 
 /**
- * This factory class is responsible to create Platform objects that
+ * This factory class is responsible to create {@link Platform} objects that
  * define RDBMS platform specific behaviour.
  *
  * @version $Id: $
@@ -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