felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3251) [PATCH] OSGi Tutorials: Compilation issue with BundleContext.registerService()
Date Sun, 04 Dec 2011 08:20:39 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard S. Hall resolved FELIX-3251.
------------------------------------

    Resolution: Fixed
      Assignee: Richard S. Hall

I updated the wiki, please close if satisfied. Thanks for reporting it.
                
> [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<String, String> props = new Hashtable<String, String>();
> 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

        

Mime
View raw message