ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r1033513 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java
Date Wed, 10 Nov 2010 15:23:51 GMT
Author: jglick
Date: Wed Nov 10 15:23:51 2010
New Revision: 1033513

URL: http://svn.apache.org/viewvc?rev=1033513&view=rev
Log:
Compilability under JDK 1.4/5 too, sigh.
(Cannot verify since Ant is unbuildable on Linux under JDK 1.4 anyway, due to NIO bug worked
around in 1.8.2.)

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java?rev=1033513&r1=1033512&r2=1033513&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/SQLExecTest.java Wed Nov
10 15:23:51 2010
@@ -24,7 +24,6 @@ import java.sql.DriverPropertyInfo;
 import java.util.Properties;
 import java.io.File;
 import java.net.URL;
-import java.sql.SQLFeatureNotSupportedException;
 import java.util.logging.Logger;
 
 import junit.framework.TestCase;
@@ -235,8 +234,8 @@ public class SQLExecTest extends TestCas
             return false;
         }
 
-        public Logger getParentLogger() throws SQLFeatureNotSupportedException {
-            throw new SQLFeatureNotSupportedException();
+        public Logger getParentLogger() /*throws SQLFeatureNotSupportedException*/ {
+            return Logger.getAnonymousLogger();
         }
     }
 



Mime
View raw message