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

Dennis Kieselhorst updated CXF-8183:
------------------------------------
    Fix Version/s: 3.3.5
                   3.4.0

> 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
>             Fix For: 3.4.0, 3.3.5
>
>
> 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)

Reply via email to