Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8211295

DriverManager::getConnection fails to find driver if it's called from JDBC RowSet

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b14

      Backports

        Description

        See [1] for the test case reproducing the failure.

        java.sql and java.sql.rowset were deprivileged in JDK 9 and loaded by the platform class loader. They were loaded by the bootstrap class loader in JDK 8 where DriverManager::getConnection special cases if the caller loader is null (bootstrap class loader), then it will use TCCL.

        [1] http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-September/055755.html

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lancea Lance Andersen
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: