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

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

XMLWordPrintable

    • 9
    • b14

        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

              lancea Lance Andersen
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: