Skip to content

Commit 2f41815

Browse files
jbonofrerovarga
andauthored
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 a7f6468, 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 a674d6b. * 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 <robert.varga@pantheon.tech> Co-authored-by: Robert Varga <robert.varga@pantheon.tech>
1 parent 437af1f commit 2f41815

1 file changed

Lines changed: 31 additions & 19 deletions

File tree

  • assemblies/features/base/src/main/filtered-resources/resources/etc

assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ jre-base= \
4747
java.lang.management, \
4848
java.lang.ref, \
4949
java.lang.reflect, \
50-
java.lang.runtime, \
5150
java.math, \
5251
java.net, \
53-
java.net.http, \
5452
java.nio, \
5553
java.nio.channels, \
5654
java.nio.channels.spi, \
@@ -82,7 +80,6 @@ jre-base= \
8280
java.util.concurrent.atomic, \
8381
java.util.concurrent.locks, \
8482
java.util.function, \
85-
java.util.random, \
8683
java.util.jar, \
8784
java.util.logging, \
8885
java.util.prefs, \
@@ -496,21 +493,36 @@ jre-9= \
496493
com.sun.security.sasl, \
497494
com.sun.security.sasl.digest, \
498495
com.sun.security.sasl.ntlm, \
499-
com.sun.security.sasl.util
496+
com.sun.security.sasl.util
500497

501498
jre-10 = ${jre-9}
502-
jre-11 = ${jre-9}
503-
jre-12 = ${jre-9}
504-
jre-13 = ${jre-9}
505-
jre-14 = ${jre-9}
506-
jre-15 = ${jre-9}
507-
jre-16 = ${jre-9}
508-
jre-17 = ${jre-9}
509-
jre-18 = ${jre-9}
510-
jre-19 = ${jre-9}
511-
jre-20 = ${jre-9}
512-
jre-21 = ${jre-9}
513-
jre-23 = ${jre-9}
514-
jre-24 = ${jre-9}
515-
jre-25 = ${jre-9}
516-
jre-26 = ${jre-9}
499+
jre-11 = ${jre-9}, \
500+
java.net.http, \
501+
jdk.nio
502+
jre-12 = ${jre-11}, \
503+
java.lang.constant, \
504+
javax.naming.ldap.spi
505+
jre-13 = ${jre-12}
506+
jre-14 = ${jre-12}, \
507+
jdk.nio.mapmode
508+
jre-15 = ${jre-14}
509+
jre-16 = ${jre-14}, \
510+
java.lang.runtime
511+
jre-17 = ${jre-16}, \
512+
java.util.random
513+
jre-18 = ${jre-17}
514+
jre-19 = ${jre-17}
515+
jre-20 = ${jre-17}
516+
jre-21 = ${jre-17}
517+
jre-22 = ${jre-17}, \
518+
java.lang.foreign
519+
jre-23 = ${jre-22}
520+
jre-24 = ${jre-22}, \
521+
java.lang.classfile, \
522+
java.lang.classfile.attribute, \
523+
java.lang.classfile.constantpool, \
524+
java.lang.classfile.instruction, \
525+
jdk.management
526+
jre-25 = ${jre-24}, \
527+
javax.sound
528+
jre-26 = ${jre-25}

0 commit comments

Comments
 (0)