You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2023/06/27 09:14:00 UTC

[jira] [Created] (SLING-11913) Implement Bundle.getVersion

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)