[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1626) Create a ClassLoader capable of loading Primitives
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Tue Dec 16 11:31:55 EST 2008
[ https://jira.jboss.org/jira/browse/EJBTHREE-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jaikiran pai resolved EJBTHREE-1626.
------------------------------------
Resolution: Done
Done in r82318.
org.jboss.ejb3.common.classloader.PrimitiveAwareClassLoader has been introduced to avoid duplication of primtive checks during loading class.
Usage:
new PrimitiveAwareClassLoader(parentClassloader).loadClass(className);
The PrimitiveAwareClassLoaderTestCase has been introduced to this test this classloader. The test case has been successfully run against the following Java versions:
1) java version "1.5.0_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
Java HotSpot(TM) Client VM (build 1.5.0_17-b04, mixed mode, sharing)
2) java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
BEA JRockit(R) (build R27.6.0-50_o-100423-1.5.0_15-20080626-2104-linux-ia32, compiled mode)
3) java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
> 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: jaikiran pai
> 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