[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1694) FieldBeanProperty.set has potential NPE, not considering Bootstrap CL

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Fri Jan 30 05:44:44 EST 2009


     [ https://jira.jboss.org/jira/browse/EJBTHREE-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lee Rubinger resolved EJBTHREE-1694.
-------------------------------------------

    Resolution: Done


> FieldBeanProperty.set has potential NPE, not considering Bootstrap CL
> ---------------------------------------------------------------------
>
>                 Key: EJBTHREE-1694
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1694
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>             Fix For: 1.0.1-GA 
>
>         Attachments: EJBTHREE-1694.patch
>
>
> This bit:
>          ClassLoader fieldLoader = field.getType().getClassLoader();
>          ClassLoader valueLoader = value.getClass().getClassLoader();
>          boolean equalLoaders = fieldLoader.equals(valueLoader);
> does not consider that the bootstrap ClassLoader may be represented as null by Class.getClassLoader in some JDK impls.  Results in NPE.

-- 
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