HoustonPutman commented on a change in pull request #783: URL: https://github.com/apache/solr/pull/783#discussion_r840007011
########## File path: solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/JDBCStream.java ########## @@ -275,12 +277,10 @@ public void setStreamContext(StreamContext context) { this.streamContext = context; } - /** Opens the JDBCStream */ - public void open() throws IOException { - + protected Driver getDriver() throws IOException { try { if (null != driverClassName) { - Class.forName(driverClassName); + Class.forName(driverClassName, true, getClass().getClassLoader()); Review comment: Actually none of this matters. later on `DriverManager.getDriver(connectionUrl)` will check for the driver class on the JDBCStream.class's classLoader. This will fail as well, so no real reason to protect against this for now. We'd have to really get rid of the DriverManager all-together to remove ourselves from this error case. I'm going to go ahead and just use `Class.forName(className)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org