Skip to content

Commit fd00ae6

Browse files
committed
RESOLVED - BATCH-1856: ExtendedConnectionDataSourceProxy compilation
error in JDK 7 trivial implementation of the new getParentLogger() method
1 parent aa1c382 commit fd00ae6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/ExtendedConnectionDataSourceProxy.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import java.lang.reflect.Proxy;
2424
import java.sql.Connection;
2525
import java.sql.SQLException;
26+
import java.sql.SQLFeatureNotSupportedException;
27+
import java.util.logging.Logger;
2628

2729
import javax.sql.DataSource;
2830

@@ -321,4 +323,8 @@ public void afterPropertiesSet() throws Exception {
321323
Assert.notNull(dataSource);
322324
}
323325

326+
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
327+
throw new SQLFeatureNotSupportedException();
328+
}
329+
324330
}

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/ExtendedConnectionDataSourceProxyTests.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
import java.sql.Connection;
88
import java.sql.ResultSet;
99
import java.sql.SQLException;
10+
import java.sql.SQLFeatureNotSupportedException;
1011
import java.sql.Statement;
12+
import java.util.logging.Logger;
1113

1214
import javax.sql.DataSource;
1315

@@ -331,5 +333,9 @@ public <T> T unwrap(Class<T> iface) throws SQLException {
331333
throw new SQLException(UNWRAP_ERROR_MESSAGE);
332334
}
333335

336+
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
337+
throw new SQLFeatureNotSupportedException();
338+
}
339+
334340
}
335341
}

0 commit comments

Comments
 (0)