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

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Wed Jan 21 15:52:04 EST 2009


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 


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