Timothy Ward created FELIX-6100:
-----------------------------------
Summary: The converter fails to properly convert null to array
types
Key: FELIX-6100
URL: https://issues.apache.org/jira/browse/FELIX-6100
Project: Felix
Issue Type: Bug
Components: Converter
Affects Versions: converter-1.0.4
Reporter: Timothy Ward
Assignee: Timothy Ward
Fix For: converter-1.0.6
The Converter specification [says in
707.4.3.1|https://osgi.org/specification/osgi.cmpn/7.0.0/util.converter.html#util.converter-arrays.collections]
that null should be converted to an empty array, however the current
implementation converts to an empty `Object[]` regardless of the target type,
for example a `byte[]`. This is clearly wrong as the returned object cannot be
assigned to the target type!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)