svn commit: r1571626 - /cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: ilgrosso
Date: Tue Feb 25 09:20:42 2014
New Revision: 1571626

URL: http://svn.apache.org/r1571626
Log:
[COCOON-2339] throwing unchecked IllegalArgumentException instead of SQLException to preserve builds with JDK < 1.7

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java?rev=1571626&r1=1571625&r2=1571626&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java Tue Feb 25 09:20:42 2014
@@ -132,7 +132,7 @@ public class ExcaliburDataSourceFactory 
          * Required by JDK1.7.
          */
         public Logger getParentLogger() {
-	    throw new SQLException("Feature not supported");
+	    throw new IllegalArgumentException("Feature not supported");
 	}
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.