Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5391

AbstractMethodError in bundlerepository due to wrong import range.

    XMLWordPrintableJSON

    Details

      Description

      Bundle org.apache.felix.bundlerepository imports package org.osgi.service.repository using the range [1.0,2.0). This is incorrect because it is a provider of that contract, so the range should be [1.0,1.1).

      At runtime this leads to AbstractMethodError because a client could wire to version 1.1 of the API and try to call one of the new methods such as Repository.newRequirementBuilder(), which is not implemented by Felix:

      java.lang.AbstractMethodError: org.apache.felix.bundlerepository.impl.OSGiRepositoryImpl.newRequirementBuilder(Ljava/lang/String;)Lorg/osgi/service/repository/RequirementBuilder;
      

      Affects version: 2.0.8 (not available in the JIRA dropdown for some reason).

        Attachments

          Activity

            People

            • Assignee:
              bosschaert David Bosschaert
              Reporter:
              njbartlett Neil Bartlett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: