You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Neil Bartlett (JIRA)" <ji...@apache.org> on 2017/10/18 19:20:00 UTC

[jira] [Commented] (FELIX-5718) Autodetect modules available

    [ https://issues.apache.org/jira/browse/FELIX-5718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209860#comment-16209860 ] 

Neil Bartlett commented on FELIX-5718:
--------------------------------------

Hi Karl, there may be some issues with that code running against GA Java 9. It was written for an early Jigsaw beta. In particular I know that class.getModule().getLayer() will return null when the module is unnamed and in the boot layer. In that case you will have to use ModuleLayer.boot().

> Autodetect modules available
> ----------------------------
>
>                 Key: FELIX-5718
>                 URL: https://issues.apache.org/jira/browse/FELIX-5718
>             Project: Felix
>          Issue Type: Sub-task
>          Components: Framework
>    Affects Versions: framework-5.6.8
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>             Fix For: framework-5.6.10
>
>
> Following [~nbartlett]'s lead (e.g., [0]) it looks like what we have todo is to detect modules that are available and provide a way to expose them via the system bundle. 
> [0] https://github.com/njbartlett/osgi_jigsaw/blob/master/nbartlett-jigsaw-osgi/src/nbartlett.jigsaw_osgi/nbartlett/osgi_jigsaw/Main.java



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)