jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r469481 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/persistence/db/DatabasePersistenceManager.java
Date Tue, 31 Oct 2006 13:48:38 GMT
Author: jukka
Date: Tue Oct 31 05:48:37 2006
New Revision: 469481

URL: http://svn.apache.org/viewvc?view=rev&rev=469481
Log:
JCR-595: Fixed a problem with the DDL files not being found when using a subclass in a different
package

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/persistence/db/DatabasePersistenceManager.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/persistence/db/DatabasePersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/persistence/db/DatabasePersistenceManager.java?view=diff&rev=469481&r1=469480&r2=469481
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/persistence/db/DatabasePersistenceManager.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/persistence/db/DatabasePersistenceManager.java
Tue Oct 31 05:48:37 2006
@@ -985,7 +985,9 @@
      * @return an input stream to the schema DDL resource.
      */
     protected InputStream getSchemaDDL() {
-        return getClass().getResourceAsStream(schema + ".ddl");
+        // JCR-595: Use the class explicitly instead of using getClass()
+        // to avoid problems when subclassed in a different package
+        return DatabasePersistenceManager.class.getResourceAsStream(schema + ".ddl");
     }
 
     //--------------------------------------------------------< inner classes >



Mime
View raw message