You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2010/01/27 18:06:34 UTC

[jira] Resolved: (FELIX-2014) Potential ClassCastException when a service property does not receive a value and is used in the constructor

     [ https://issues.apache.org/jira/browse/FELIX-2014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier resolved FELIX-2014.
--------------------------------------

    Resolution: Fixed

Fixed at revision: 903739.
Inject null instead of the NO_VALUE object.

> Potential ClassCastException when a service property does not receive a value and is used in the constructor
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2014
>                 URL: https://issues.apache.org/jira/browse/FELIX-2014
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>             Fix For: iPOJO-1.6.0
>
>
> If a component instance providing a service receive a configuration that does not assign a service property's field, when the pojo tried to do a 'if (prop == null)', a class cast exception happen. It comes from the injection of the NO_VALUE object instead of null. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.