[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1626) Create a ClassLoader capable of loading Primitives

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Mon Dec 15 02:20:36 EST 2008


    [ https://jira.jboss.org/jira/browse/EJBTHREE-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12442476#action_12442476 ] 

Andrew Lee Rubinger commented on EJBTHREE-1626:
-----------------------------------------------

Calling logic should look like:

Class<?> possiblePrimitiveClass = Class.forName(className,false,new PrimitiveCapableClassLoader(Thread.currentThread().getContextClassLoader()));

> Create a ClassLoader capable of loading Primitives
> --------------------------------------------------
>
>                 Key: EJBTHREE-1626
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1626
>             Project: EJB 3.0
>          Issue Type: Task
>          Components: common
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>             Fix For: 1.0.0-CR1
>
>
> In some instances we must load the class for primitives ie:
> void.class
> double.class
> Centralize this logic in a PrimitiveCapableClassLoader(ClassLoader parent) which follows a child-first delegation model to handle primitives, and if not, go to the parent.

-- 
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-jira mailing list