openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r454057 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/BrokerFactoryValue.java
Date Sun, 08 Oct 2006 01:03:25 GMT
Author: pcl
Date: Sat Oct  7 18:03:25 2006
New Revision: 454057

URL: http://svn.apache.org/viewvc?view=rev&rev=454057
Log:
Overwrite the *correct* slot. We really need to move this aliasing system to a map at some
point.

Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/BrokerFactoryValue.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/BrokerFactoryValue.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/BrokerFactoryValue.java?view=diff&rev=454057&r1=454056&r2=454057
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/BrokerFactoryValue.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/BrokerFactoryValue.java
Sat Oct  7 18:03:25 2006
@@ -51,7 +51,7 @@
      */
     public static void addDefaultAlias(String alias, String cls) {
         if (_aliases.contains(alias)) {
-            _aliases.set(_aliases.indexOf(alias), cls);
+            _aliases.set(_aliases.indexOf(alias) + 1, cls);
         } else {
             _aliases.add(alias);
             _aliases.add(cls);



Mime
View raw message