openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r640493 - /openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
Date Mon, 24 Mar 2008 18:16:46 GMT
Author: mikedd
Date: Mon Mar 24 11:16:43 2008
New Revision: 640493

URL: http://svn.apache.org/viewvc?rev=640493&view=rev
Log:
OPENJPA-542

Modified:
    openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java

Modified: openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=640493&r1=640492&r2=640493&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
(original)
+++ openjpa/branches/1.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
Mon Mar 24 11:16:43 2008
@@ -1008,25 +1008,28 @@
         }
     }
 
-    private static Clob getEmptyClob()
+    private Clob getEmptyClob()
         throws SQLException {
         if (EMPTY_CLOB != null)
             return EMPTY_CLOB;
         try {
-            return EMPTY_CLOB = (Clob) Class.forName("oracle.sql.CLOB").
-                getMethod("empty_lob", new Class[0]).
-                invoke(null, new Object[0]);
+            return EMPTY_CLOB =
+                    (Clob) Class.forName("oracle.sql.CLOB", true,
+                            Thread.currentThread().getContextClassLoader())
+                            .getMethod("empty_lob", new Class[0]).invoke(null,
+                                    new Object[0]);
         } catch (Exception e) {
             throw new SQLException(e.getMessage());
         }
     }
 
-    private static Blob getEmptyBlob()
+    private Blob getEmptyBlob()
         throws SQLException {
         if (EMPTY_BLOB != null)
             return EMPTY_BLOB;
         try {
-            return EMPTY_BLOB = (Blob) Class.forName("oracle.sql.BLOB").
+            return EMPTY_BLOB = (Blob) Class.forName("oracle.sql.BLOB", true,
+                    Thread.currentThread().getContextClassLoader()).
                 getMethod("empty_lob", new Class[0]).
                 invoke(null, new Object[0]);
         } catch (Exception e) {



Mime
View raw message