jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r312874 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/query/QueryTreeBuilderRegistry.java
Date Tue, 11 Oct 2005 13:06:35 GMT
Author: mreutegg
Date: Tue Oct 11 06:06:29 2005
New Revision: 312874

URL: http://svn.apache.org/viewcvs?rev=312874&view=rev
Log:
- QueryTreeBuilderRegistry.getQueryTreeBuilder() may thow ClassCastException when jackrabbit
is deployed multiple times in the same jvm.

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/query/QueryTreeBuilderRegistry.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/query/QueryTreeBuilderRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/query/QueryTreeBuilderRegistry.java?rev=312874&r1=312873&r2=312874&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/query/QueryTreeBuilderRegistry.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/query/QueryTreeBuilderRegistry.java
Tue Oct 11 06:06:29 2005
@@ -41,7 +41,8 @@
 
     static {
         try {
-            Iterator it = ServiceRegistry.lookupProviders(QueryTreeBuilder.class);
+            Iterator it = ServiceRegistry.lookupProviders(QueryTreeBuilder.class, 
+                    QueryTreeBuilderRegistry.class.getClassLoader());
             while (it.hasNext()) {
                 BUILDERS.add(it.next());
             }



Mime
View raw message