You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2019/12/13 14:43:00 UTC

[jira] [Assigned] (CXF-8183) JDK 9+ Illegal reflective access caused in AutomaticWorkQueueImpl

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

Freeman Yue Fang reassigned CXF-8183:
-------------------------------------

    Assignee: Freeman Yue Fang

> JDK 9+ Illegal reflective access caused in AutomaticWorkQueueImpl
> -----------------------------------------------------------------
>
>                 Key: CXF-8183
>                 URL: https://issues.apache.org/jira/browse/CXF-8183
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.3.4
>         Environment: OpenJDK 11 inside docker container {{fabric8/java-centos-openjdk11-jre}}
>            Reporter: Peter Schulz
>            Assignee: Freeman Yue Fang
>            Priority: Major
>
> We use CXF for SOAP with {{cxf-rt-transports-http-hc-3.3.4.jar}}  (Async HTTP) and do get the following warning: 
> {code:none}
> WARNING: Illegal reflective access by org.apache.cxf.common.util.ReflectionUtil$11 (file:/Users/peterschulz/.m2/repository/org/apache/cxf/cxf-core/3.3.4/cxf-core-3.3.4.jar) to field java.util.concurrent.ThreadPoolExecutor.mainLock
> WARNING: Please consider reporting this to the maintainers of org.apache.cxf.common.util.ReflectionUtil$11
> 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{code}
>  
> {{org.apache.cxf.workqueue.AutomaticWorkQueueImpl}} line 206 and/or 439 
> {code:java}
> Field f = ThreadPoolExecutor.class.getDeclaredField("mainLock");
> ReflectionUtil.setAccessible(f);
> l = (ReentrantLock)f.get(executor);
> /*...*/
> ReflectionUtil.setAccessible(addWorkerMethod).invoke(executor, addWorkerArgs);{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)