Robert Munteanu created SLING-11913:
---------------------------------------

             Summary: Implement Bundle.getVersion
                 Key: SLING-11913
                 URL: https://issues.apache.org/jira/browse/SLING-11913
             Project: Sling
          Issue Type: Improvement
            Reporter: Robert Munteanu
            Assignee: Robert Munteanu
             Fix For: Testing OSGi Mock 3.3.10


{{MockBundle.gerVersion()}} is not implemented and always throws an 
UnsupportedOperationException. This can be trivially be implemented with a 
getter and a setter. For a default value, we can use {{Version.emptyVersion}}, 
as indicated in the javadoc

{quote} If this bundle does not have a specified version then {@link 
Version#emptyVersion} is returned.{quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to