OSGI R6 Reference Annotation on Field
Hi Folks,
I am using @3214626 annotation from OSGI R6 on a field which is of type Map.
@3214626(service = serviceName.class, cardinality = ReferenceCardinality.MANDATORY_MULTIPLE, policy = ReferencePolicy.DYNAMIC)
Map<String, String> connection = new HashMap<~>();
I usually get an error the the field type should either collection or list. why so? I want to use map and don't want to modify the connection variable type.
please advise.
