RFR 8211295: DriverManager.getConnection fails when called from com.sun.rowset.JdbcRowSetImpl

Mandy Chung mandy.chung at oracle.com
Mon Oct 1 17:09:07 UTC 2018

On 9/29/18 1:59 PM, Lance Andersen wrote:
> Attached is the webrev for the JDBC RowSet/DriverManager issue, https://bugs.openjdk.java.net/browse/JDK-8211295,  that was raised on the thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-September/055755.html
> I have run the JDBC TestSuite against the Derby Embedded and Derby Network server;  Mach 5 jdk tier1, tier2, and tier3 tests as well as the JCK java.sql and javax.sql tests.  All pass with the fix
> The webrev can be found at http://cr.openjdk.java.net/~lancea/8211295/webrev.00/

The change looks okay.    DriverManager::drivers and a few other methods 
are caller-sensitive.  If they were called from java.sql.rowset, it 
won't work properly.   I believe no such code path and so it's okay.

We should try again to investigate removing @CallerSensitive from 
DriverManager in the future:


More information about the core-libs-dev mailing list