osgi / bugzilla-archive

Archive of OSGi Alliance Specification Bugzilla bugs. The Specification Bugzilla system was decommissioned with the move to GitHub. The issues in this repository are imported from the Specification Bugzilla system for archival purposes.
0 stars 1 forks source link

[ds] RI component property type support does not correctly handle Class and Enum error cases #2715

Closed bjhargrave closed 9 years ago

bjhargrave commented 9 years ago

Original bug ID: BZ#2847 From: @bjhargrave Reported version: R6

bjhargrave commented 9 years ago

Comment author: @bjhargrave

When a component property type has members of type Class or Enum and the property value has an unsupported type, DS must create the component property type object and throw a ComponentException when the member is called. See table 112.10 in section 112.8.2.2.

The RI will fail to activate the component if the property value has an unsupported type:

org.osgi.service.component.ComponentException: Failed activating component at org.apache.felix.scr.impl.manager.ComponentFactoryImpl.newInstance(ComponentFactoryImpl.java:146) at org.osgi.test.cases.component.annotations.junit.ComponentPropertyTypeTestCase.testCoercion130(ComponentPropertyTypeTestCase.java:247)

bjhargrave commented 9 years ago

Comment author: David Jencks <djencks@us.ibm.com>

fixed at apache r1692035 cf. https://issues.apache.org/jira/browse/FELIX-4968

bjhargrave commented 9 years ago

Comment author: @cziegeler

Updated the RI, tests pass