Author: aadamchik
Date: Sat Jul 21 13:44:08 2012
New Revision: 1364093

URL: http://svn.apache.org/viewvc?rev=1364093&view=rev
Log:
CAY-1717 [PATCH] Implement JDBC compatibility layer methods

(take 3) fixing JDK 5 build... constructor used was only introduced in 1.6

Modified:
    
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataNode.java

Modified: 
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataNode.java
URL: 
http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataNode.java?rev=1364093&r1=1364092&r2=1364093&view=diff
==============================================================================
--- 
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataNode.java
 (original)
+++ 
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataNode.java
 Sat Jul 21 13:44:08 2012
@@ -424,7 +424,8 @@ public class DataNode implements QueryEn
          * JDBC 4.1 compatibility under Java 1.5
          */
         public Logger getParentLogger() throws SQLFeatureNotSupportedException 
{
-            throw new SQLFeatureNotSupportedException();
+            // don't throw SQLFeatureNotSupported - this will break JDK 1.5 
runtime
+            throw new UnsupportedOperationException();
         }
     }
 }


Reply via email to