Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 484D1200BD4 for ; Wed, 16 Nov 2016 15:16:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4722D160B03; Wed, 16 Nov 2016 14:16:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 94CF0160B08 for ; Wed, 16 Nov 2016 15:16:00 +0100 (CET) Received: (qmail 92486 invoked by uid 500); 16 Nov 2016 14:15:59 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 92452 invoked by uid 99); 16 Nov 2016 14:15:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 14:15:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 92E3A2C2B10 for ; Wed, 16 Nov 2016 14:15:59 +0000 (UTC) Date: Wed, 16 Nov 2016 14:15:59 +0000 (UTC) From: "David Bosschaert (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-5391) AbstractMethodError in bundlerepository due to wrong import range. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Nov 2016 14:16:01 -0000 [ https://issues.apache.org/jira/browse/FELIX-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15670506#comment-15670506 ] David Bosschaert commented on FELIX-5391: ----------------------------------------- Thanks [~njbartlett]! The patch is applied in https://svn.apache.org/viewvc?view=revision&revision=1769986 > AbstractMethodError in bundlerepository due to wrong import range. > ------------------------------------------------------------------ > > Key: FELIX-5391 > URL: https://issues.apache.org/jira/browse/FELIX-5391 > Project: Felix > Issue Type: Bug > Components: Bundle Repository (OBR) > Reporter: Neil Bartlett > Assignee: David Bosschaert > Fix For: bundlerepository-2.0.10 > > > 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: > {noformat} > java.lang.AbstractMethodError: org.apache.felix.bundlerepository.impl.OSGiRepositoryImpl.newRequirementBuilder(Ljava/lang/String;)Lorg/osgi/service/repository/RequirementBuilder; > {noformat} > Affects version: 2.0.8 (not available in the JIRA dropdown for some reason). -- This message was sent by Atlassian JIRA (v6.3.4#6332)