Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8.0
-
None
Description
Let's take BasicDataSource as an example. Its code is currently:
@Override public boolean isWrapperFor(final Class<?> iface) throws SQLException { return false; } @Override public <T> T unwrap(final Class<T> iface) throws SQLException { throw new SQLException("BasicDataSource is not a wrapper."); }
This breaks consumers relying on Wrapper being correctly implemented.
The DataSource should at least check if this is an instance of iface and return it from unwrap if it is.
Attachments
Issue Links
- links to