You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Antoine DESSAIGNE (JIRA)" <ji...@apache.org> on 2018/03/12 16:38: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=16395474#comment-16395474 ] 

Antoine DESSAIGNE commented on FELIX-5765:
------------------------------------------

Hello.
After enabling {{--illegal-access=warn}}, here are all the illegal reflective access operations detected while using my application
{noformat}
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:org.apache.felix.framework-5.6.10.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to field java.net.URL.streamHandlerLock
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to field java.net.URL.factory
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to field java.net.URL.defaultFactory
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to field java.net.URL.handlers
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to field java.net.URLConnection.handlers
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to method java.lang.ClassLoader.registerAsParallelCapable()
WARNING: Illegal reflective access by org.apache.felix.framework.util.SecureAction (file:org.apache.felix.framework-5.6.10.jar) to method java.lang.ClassLoader.registerAsParallelCapable()
{noformat}

> 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)