[jira] Commented: (FELIX-2472) [iPOJO] Proxies should throw the OSGi service exception
[ https://issues.apache.org/jira/browse/FELIX-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887445#action_12887445 ] Clement Escoffier commented on FELIX-2472: -- Fixed in trunk > [iPOJO] Proxies should throw the OSGi service exception > --- > > Key: FELIX-2472 > URL: https://issues.apache.org/jira/browse/FELIX-2472 > Project: Felix > Issue Type: Improvement > Components: iPOJO >Affects Versions: iPOJO-1.6.0 >Reporter: Richard S. Hall >Assignee: Clement Escoffier > > In iPOJO proxies, if you disable null objects and then access a proxy with a > missing service, you will receive an NPE. It would probably make more sense > to throw the OSGi ServiceException perhaps with the type UNREGISTERED. Likely > this also applies to temporal dependencies as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-2472) [iPOJO] Proxies should throw the OSGi service exception
[ https://issues.apache.org/jira/browse/FELIX-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887408#action_12887408 ] Clement Escoffier commented on FELIX-2472: -- To avoid to be tied to osgi 4.2 (and so breaking the osgi 4.0 compatibility), I will use a 'plain' runtime exception instead of a service exception. > [iPOJO] Proxies should throw the OSGi service exception > --- > > Key: FELIX-2472 > URL: https://issues.apache.org/jira/browse/FELIX-2472 > Project: Felix > Issue Type: Improvement > Components: iPOJO >Affects Versions: iPOJO-1.6.0 >Reporter: Richard S. Hall >Assignee: Clement Escoffier > > In iPOJO proxies, if you disable null objects and then access a proxy with a > missing service, you will receive an NPE. It would probably make more sense > to throw the OSGi ServiceException perhaps with the type UNREGISTERED. Likely > this also applies to temporal dependencies as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.