Descriptors with duplicate implementation and/or service elements are invalid
-----------------------------------------------------------------------------

                 Key: FELIX-1436
                 URL: https://issues.apache.org/jira/browse/FELIX-1436
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services (SCR)
    Affects Versions: scr-1.0.8
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: scr-1.2.0


The DS specification states that the implementation element must be listed 
exactly once in a descriptor. Likewise the service element may be listed at 
most once. Currently these elements may be repeated and the parser will just 
happily accept the last element as the declaration.

This is incorrect. Descriptors with duplicate implementation and/or service 
elements must not be accepted and rejected by metadata validation. By not 
rejecting it at parse time we make logging easier and also enable easier 
implementation of accepting valid descriptors along invalid descriptors in the 
same XML document.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to