From 4ae0be7860bcbb65f899da1210de9542ea9cc204 Mon Sep 17 00:00:00 2001 From: John Blum Date: Sun, 13 Apr 2014 17:42:57 -0700 Subject: [PATCH] Fixed compilation issues on JDK 7 and JDK 8. Refactored the DataSourceAdapter abstract, supporting class to implement the Java 7 DataSource.getParentLogger():Logger method. --- .../data/gemfire/test/support/DataSourceAdapter.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java b/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java index 132302cb..d55dbb61 100644 --- a/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java +++ b/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java @@ -19,12 +19,15 @@ package org.springframework.data.gemfire.test.support; import java.io.PrintWriter; import java.sql.Connection; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import java.util.logging.Logger; import javax.sql.DataSource; /** * The DataSourceAdapter class is an implementation of the DataSource interface with unsupported operations by default. *

* @author John Blum + * @see java.sql.Connection * @see javax.sql.DataSource * @since 1.3.4 */ @@ -63,6 +66,11 @@ public abstract class DataSourceAdapter implements DataSource { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_EXCEPTION_MESSAGE); } + //@Override + public Logger getParentLogger() throws SQLFeatureNotSupportedException { + throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_EXCEPTION_MESSAGE); + } + @Override public boolean isWrapperFor(final Class iface) throws SQLException { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_EXCEPTION_MESSAGE);