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

cm.target indicates only String[] as value, CT expects scalar String to work #2969

Closed bjhargrave closed 5 years ago

bjhargrave commented 5 years ago

Original bug ID: BZ#3101 From: @tjwatson Reported version: R7

bjhargrave commented 5 years ago

Comment author: @tjwatson

public static final String CM_TARGET = "cm.target"

A service property to limit the Managed Service or Managed Service Factory configuration dictionaries a Configuration Plugin service receives. This property contains a String[] of PIDs. A Configuration Admin service must call a Configuration Plugin service only when this property is not set, or the target service's PID is listed in this property.

Need to modify the javadoc to allow scalar String, or perhaps the String+ value

bjhargrave commented 5 years ago

Comment author: @tjwatson

CPEG meeting:

For R8 we are considering relaxing the type to be String+

For R7 CT we should update the tests to only use String[] since that is what the current javadoc mandates. An implementation is free to support String+ but that should not be required for R7.

bjhargrave commented 5 years ago

Comment author: @anjumfatima90

Fixed