[jOOQ/jOOQ#8982] Avoid using JDK 8 API

This commit is contained in:
Knut Wannheden 2019-08-30 07:37:53 +02:00
parent e2c2cf17c2
commit 24a8dcae06

View File

@ -61,7 +61,8 @@ public class SingleConnectionDataSource implements DataSource {
@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
return Logger.getGlobal();
// Cannot use Logger.getGlobal() in JDK 6 yet
return Logger.getAnonymousLogger().getParent();
}
@SuppressWarnings("unchecked")