commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBUTILS-81) DbUtils.loadDriver() uses Class.forName()
Date Thu, 22 Sep 2011 11:01:27 GMT

    [ https://issues.apache.org/jira/browse/DBUTILS-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112470#comment-13112470
] 

Sebb commented on DBUTILS-81:
-----------------------------

Have you a suggested patch for this?

> DbUtils.loadDriver() uses Class.forName()
> -----------------------------------------
>
>                 Key: DBUTILS-81
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-81
>             Project: Commons DbUtils
>          Issue Type: Bug
>            Reporter: Simone Tripodi
>
> The {{Class.forName()}} statement should be avoided due to potential OSGi issues - commons
components are OSGi bundles!
> The ClassLoader should be used instead to [load classes|http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#loadClass(java.lang.String)]
and add a new method to pass custom ClassLoader.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message