[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-1694) FieldBeanProperty.set has potential NPE, not considering Bootstrap CL
Andrew Lee Rubinger (JIRA)
jira-events at lists.jboss.org
Wed Jan 21 16:55:04 EST 2009
[ https://jira.jboss.org/jira/browse/EJBTHREE-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lee Rubinger updated EJBTHREE-1694:
------------------------------------------
Attachment: EJBTHREE-1694.patch
Patch to resolve issue
> 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 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