felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-2014) Potential ClassCastException when a service property does not receive a value and is used in the constructor
Date Wed, 27 Jan 2010 17:06:34 GMT

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


Mime
View raw message