[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-802) TransporterHandler should not use Class.forName

David Lloyd (JIRA) jira-events at lists.jboss.org
Mon Aug 11 08:38:50 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBREM-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12424405#action_12424405 ] 

David Lloyd commented on JBREM-802:
-----------------------------------

Actually this is probably better done as:

classSig[x] = Class.forName(sig[x], true, targetPOJO.getClass().getClassLoader());

(if that is in fact the proper classloader to use)

> TransporterHandler should not use Class.forName
> -----------------------------------------------
>
>                 Key: JBREM-802
>                 URL: https://jira.jboss.org/jira/browse/JBREM-802
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: transporter
>    Affects Versions: 2.2.2.GA, 2.4.0.Beta1 (Pinto)
>            Reporter: Julien Viet
>             Fix For: 2.4.1.Beta
>
>
> line:
> classSig[x] = Class.forName(sig[x]);
> should probably be replaced by
> classSig[x] = targetPOJO.getClass().getClassLoader().loadClass(sig[x]);
> to provide a correct class lookup

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-remoting-issues mailing list