You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2021/02/03 02:36:01 UTC
[jira] [Updated] (CXF-8407) Incorporate changes caused by JEP-396
integration into JDK-16+
[ https://issues.apache.org/jira/browse/CXF-8407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko updated CXF-8407:
------------------------------
Description:
JEP-396 introduces stronger encapsulation of JDK internals by default. In CXF, we are using a number of tricks to access JDK internals, including but not limited to:
* AutomaticWorkQueueImpl uses private ThreadPoolExecutor::addWorker: needs --add-opens java.base/java.util.concurrent=ALL-UNNAMED
* EasyMock: needs --add-opens java.base/java.lang=ALL-UNNAMED
* ImportRepairTest uses XSImplementationImpl: --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.xs.util=ALL-UNNAMED
* ReferencingAuthenticator (method tryWith): needs --add-opens java.base/java.net=ALL-UNNAMED
* stax.WriterTest: needs --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
* johnzon-jsonb: needs --add-opens java.base/java.util=ALL-UNNAMED
We should migrate from using those to the means provided by standard library.
[1] [https://openjdk.java.net/jeps/396]
[2] https://cr.openjdk.java.net/~mr/jigsaw/jdk8-packages-denied-by-default
was:
JEP-396 introduces stronger encapsulation of JDK internals by default. In CXF, we are using a number of tricks to access JDK internals, including but not limited to:
* AutomaticWorkQueueImpl uses private ThreadPoolExecutor::addWorker: needs --add-opens java.base/java.util.concurrent=ALL-UNNAMED
* EasyMock: needs --add-opens java.base/java.lang=ALL-UNNAMED
* ImportRepairTest uses XSImplementationImpl: --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.xs.util=ALL-UNNAMED
* ReferencingAuthenticator (method tryWith): needs --add-opens java.base/java.net=ALL-UNNAMED
* stax.WriterTest: needs --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
* johnzon-jsonb: needs --add-opens java.base/java.util=ALL-UNNAMED
We should migrate from using those to the means provided by standard library.
[1] [https://openjdk.java.net/jeps/396]
> Incorporate changes caused by JEP-396 integration into JDK-16+
> --------------------------------------------------------------
>
> Key: CXF-8407
> URL: https://issues.apache.org/jira/browse/CXF-8407
> Project: CXF
> Issue Type: Bug
> Affects Versions: 3.4.2
> Reporter: Andriy Redko
> Assignee: Andriy Redko
> Priority: Major
> Labels: jdk16
> Fix For: 3.5.0, 3.4.3
>
>
> JEP-396 introduces stronger encapsulation of JDK internals by default. In CXF, we are using a number of tricks to access JDK internals, including but not limited to:
> * AutomaticWorkQueueImpl uses private ThreadPoolExecutor::addWorker: needs --add-opens java.base/java.util.concurrent=ALL-UNNAMED
> * EasyMock: needs --add-opens java.base/java.lang=ALL-UNNAMED
> * ImportRepairTest uses XSImplementationImpl: --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.xs.util=ALL-UNNAMED
> * ReferencingAuthenticator (method tryWith): needs --add-opens java.base/java.net=ALL-UNNAMED
> * stax.WriterTest: needs --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
> * johnzon-jsonb: needs --add-opens java.base/java.util=ALL-UNNAMED
> We should migrate from using those to the means provided by standard library.
> [1] [https://openjdk.java.net/jeps/396]
> [2] https://cr.openjdk.java.net/~mr/jigsaw/jdk8-packages-denied-by-default
--
This message was sent by Atlassian Jira
(v8.3.4#803005)