You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Rob Walker (JIRA)" <ji...@apache.org> on 2018/05/08 08:19:00 UTC

[jira] [Commented] (FELIX-5765) An illegal reflective access operation has occurred

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

Rob Walker commented on FELIX-5765:
-----------------------------------

FWIW - the following options on our Felix versions gets around these warning temporarily:

   --add-opens java.base/java.lang=ALL-UNNAMED

   --add-opens java.base/java.net=ALL-UNNAMED

   --add-opens java.base/java.security=ALL-UNNAMED

We are on quite an old version though, so it's possible some module/package combinations may be needed in newer Felix versions.

Note that these are very much a workaound rather than a proper fix. Although given the way OSGi actually works, I'm not entirely sure that reflective access and some level of these type of warnings can ever be full avoided.

> An illegal reflective access operation has occurred
> ---------------------------------------------------
>
>                 Key: FELIX-5765
>                 URL: https://issues.apache.org/jira/browse/FELIX-5765
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-5.6.10
>         Environment: Linux + JDK 9.0.1
>            Reporter: Li Xu
>            Priority: Minor
>
> Just reporting this as instructed:
> {noformat}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/full-test/framework/org.apache.felix.framework-5.6.10.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
> WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)