Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE2827D9D for ; Mon, 5 Dec 2011 16:47:01 +0000 (UTC) Received: (qmail 13951 invoked by uid 500); 5 Dec 2011 16:47:01 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 13902 invoked by uid 500); 5 Dec 2011 16:47:01 -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 13894 invoked by uid 99); 5 Dec 2011 16:47:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 16:47:00 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 16:46:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D73C0C6FE1 for ; Mon, 5 Dec 2011 16:46:39 +0000 (UTC) Date: Mon, 5 Dec 2011 16:46:39 +0000 (UTC) From: "Gaston Gonzalez (Closed) (JIRA)" To: dev@felix.apache.org Message-ID: <2070366858.41517.1323103599883.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1847044005.32134.1322769639980.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (FELIX-3251) [PATCH] OSGi Tutorials: Compilation issue with BundleContext.registerService() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gaston Gonzalez closed FELIX-3251. ---------------------------------- Thanks for the quick turn around Richard. > [PATCH] OSGi Tutorials: Compilation issue with BundleContext.registerService() > ------------------------------------------------------------------------------- > > Key: FELIX-3251 > URL: https://issues.apache.org/jira/browse/FELIX-3251 > Project: Felix > Issue Type: Task > Components: Documentation > Environment: Windows XP (32-bit), Java 1.6.0_18 > Reporter: Gaston Gonzalez > Assignee: Richard S. Hall > Priority: Trivial > Labels: documentation > > I am new user of Felix and new to OSGi. Under Apache Felix 4.0.2, the call to BundleContext.registerService () will not compile when a Properties instance is passed. I am not sure if this is a bug in Felix 4.0.2 or just out-of-date documentation in the following examples: > - Apache Felix Tutorial Example 2 > - Apache Felix Tutorial Example 2b > The fix was relatively simple, replace: > Properties props = new Properties(); > with: > Dictionary props = new Hashtable(); > I hope this helps! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira