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

Robert Varga commented on KARAF-8000:
-------------------------------------

There are few packages which vary between their introduction and productization:
 * JFR was a commercial feature since Java 9, but was integrated as normal in 
Java 11
 * java.lang.runtime was part of records preview since Java 14, but was made 
non-preview in Java 16
 * java.lang.foreign was part of FFM preview since Java 19, but was made 
non-preview in Java 22

As part of cleaning these up, we should be exposing only packages which do not 
require additional command-line switches (like --enable-preview orĀ  
-XX:+UnlockCommercialFeatures). Advanced users can extend this set by 
manipulating org.osgi.framework.system.packages.extra configuration.

> jdk.nio not exposed with Java 11+
> ---------------------------------
>
>                 Key: KARAF-8000
>                 URL: https://issues.apache.org/jira/browse/KARAF-8000
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.4.8
>            Reporter: Robert Varga
>            Assignee: Robert Varga
>            Priority: Major
>
> JDK11 has expanded the jdk.net module with jdk.nio package, which Karaf is 
> not exporting. This means libraries do not get access to what they'd normally 
> expect from a Java 11+ runtime.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to