This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.4.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.4.x by this push:
     new 2f41815908 KARAF-8000: Update jre.properties correctly export packages 
(#1985) (#2075)
2f41815908 is described below

commit 2f418159082203430535ffaa7a003742c9733426
Author: JB Onofré <[email protected]>
AuthorDate: Tue Sep 30 10:59:48 2025 +0200

    KARAF-8000: Update jre.properties correctly export packages (#1985) (#2075)
    
    * KARAF-8000: use cascading properties
    
    Inherit JRE packages from previous version, not just jre-9,
    almost reverting commit a7f64687fc45a631c7a8f5ea67400d18c5501977, but
    minimizing the length of evaluation chain based key releases that
    introduced new packages.
    
    
    
    * KARAF-8000: expose jdk.nio on Java 11+
    
    This package was introduced in Java 11 as part of
    https://bugs.openjdk.org/browse/JDK-8205415.
    
    
    
    * KARAF-8000: expose Java 12 packages
    
    Add packages introduced in Java 12:
    - java.lang.constant via https://bugs.openjdk.java.net/browse/JDK-8202031
    - javax.naming.ldap.spi via https://bugs.openjdk.org/browse/JDK-8192975
    
    
    
    * KARAF-8000: expose jdk.nio.mapmode on Java 14+
    
    This package was introduced in Java 14 via
    https://bugs.openjdk.org/browse/JDK-8207851.
    
    
    
    * KARAF-8000: expose java.lang.foreign on Java 22+
    
    This package was originally introduced as preview in Java 19, but
    finalized in Java 22 via https://bugs.openjdk.org/browse/JDK-8310626.
    
    
    
    * KARAF-8000: expose Java 24 packages
    
    Add packages introduced in Java 24:
    - java.lang.classfile* via https://bugs.openjdk.org/browse/JDK-8334712
    - jdk.management via https://bugs.openjdk.org/browse/JDK-8338890
    
    
    
    * KARAF-8000: expose javax.sound on Java 25+
    
    This package was introduced in Java 25 via
    https://bugs.openjdk.org/browse/JDK-8356200.
    
    
    
    * KARAF-8000: correct java.net.http availability
    
    This package was originally introduced as incubating in Java 9, but
    finalized in Java 11 via https://bugs.openjdk.org/browse/JDK-8197565.
    
    
    
    * KARAF-8000: correct java.lang.runtime availability
    
    This package was originally introduced as a preview in Java 14, but
    finalized in Java 16 via https://bugs.openjdk.org/browse/JDK-8246771.
    
    This effectively reverts commit
    a674d6b95a60e231389ac3eb8269648f3304ca16.
    
    
    
    * KARAF-8000: correct java.util.random availability
    
    This package was introduced in Java 17 via
    https://bugs.openjdk.org/browse/JDK-8255395.
    
    
    
    ---------
    
    Signed-off-by: Robert Varga <[email protected]>
    Co-authored-by: Robert Varga <[email protected]>
---
 .../resources/etc/jre.properties                   | 50 ++++++++++++++--------
 1 file changed, 31 insertions(+), 19 deletions(-)

diff --git 
a/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
 
b/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
index 2c227f7893..48ea62a5ac 100644
--- 
a/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
+++ 
b/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties
@@ -47,10 +47,8 @@ jre-base= \
  java.lang.management, \
  java.lang.ref, \
  java.lang.reflect, \
- java.lang.runtime, \
  java.math, \
  java.net, \
- java.net.http, \
  java.nio, \
  java.nio.channels, \
  java.nio.channels.spi, \
@@ -82,7 +80,6 @@ jre-base= \
  java.util.concurrent.atomic, \
  java.util.concurrent.locks, \
  java.util.function, \
- java.util.random, \
  java.util.jar, \
  java.util.logging, \
  java.util.prefs, \
@@ -496,21 +493,36 @@ jre-9= \
  com.sun.security.sasl, \
  com.sun.security.sasl.digest, \
  com.sun.security.sasl.ntlm, \
- com.sun.security.sasl.util 
+ com.sun.security.sasl.util
 
 jre-10 = ${jre-9}
-jre-11 = ${jre-9}
-jre-12 = ${jre-9}
-jre-13 = ${jre-9}
-jre-14 = ${jre-9}
-jre-15 = ${jre-9}
-jre-16 = ${jre-9}
-jre-17 = ${jre-9}
-jre-18 = ${jre-9}
-jre-19 = ${jre-9}
-jre-20 = ${jre-9}
-jre-21 = ${jre-9}
-jre-23 = ${jre-9}
-jre-24 = ${jre-9}
-jre-25 = ${jre-9}
-jre-26 = ${jre-9}
+jre-11 = ${jre-9}, \
+ java.net.http, \
+ jdk.nio
+jre-12 = ${jre-11}, \
+ java.lang.constant, \
+ javax.naming.ldap.spi
+jre-13 = ${jre-12}
+jre-14 = ${jre-12}, \
+ jdk.nio.mapmode
+jre-15 = ${jre-14}
+jre-16 = ${jre-14}, \
+ java.lang.runtime
+jre-17 = ${jre-16}, \
+ java.util.random
+jre-18 = ${jre-17}
+jre-19 = ${jre-17}
+jre-20 = ${jre-17}
+jre-21 = ${jre-17}
+jre-22 = ${jre-17}, \
+ java.lang.foreign
+jre-23 = ${jre-22}
+jre-24 = ${jre-22}, \
+ java.lang.classfile, \
+ java.lang.classfile.attribute, \
+ java.lang.classfile.constantpool, \
+ java.lang.classfile.instruction, \
+ jdk.management
+jre-25 = ${jre-24}, \
+ javax.sound
+jre-26 = ${jre-25}

Reply via email to