From cc0a60e0a4af79b86e19c70cb26879008c5c768d Mon Sep 17 00:00:00 2001 From: "Renat R. Safiullin" Date: Wed, 17 Jun 2026 12:44:37 +0300 Subject: [PATCH] Add Java SE 26 and 27 platforms to GlassFish 7.1 and 8.0 server configs JDK 26 support was added to JavaSEPlatform (commit a0d24844f) by adding the v26 enum constant, but no GlassFish server config XML declared . JavaUtils.findSupportedPlatforms() therefore intersected the installed platforms with the server's supported set ({21..25}) and returned an empty array when the only registered JDK was 26, leaving the Java SE platform selector with an empty dropdown so the server could not be started (#9423). Restore enum/config parity by declaring 26 in the two current-generation configs that already list 25 (GlassFishV8_0_0.xml, GlassFishV7_1_0.xml). Also add JDK 27 proactively, ahead of its release during the NB 31 lifecycle. A config entry is inert without a matching enum constant -- JavaSESet filters out unknown version strings, and the installed JDK's spec version is itself resolved through JavaSEPlatform.toValue -- so the v27 enum constant is added alongside the config entries so that 27 is actually recognized when present. Fixes #9423 --- .../glassfish/tooling/server/config/GlassFishV7_1_0.xml | 2 ++ .../glassfish/tooling/server/config/GlassFishV8_0_0.xml | 2 ++ .../glassfish/tooling/server/config/JavaSEPlatform.java | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV7_1_0.xml b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV7_1_0.xml index ee23801075cd..bac8604e5bd1 100644 --- a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV7_1_0.xml +++ b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV7_1_0.xml @@ -33,6 +33,8 @@ + + diff --git a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV8_0_0.xml b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV8_0_0.xml index a7d90138926b..2ad1229fb80e 100644 --- a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV8_0_0.xml +++ b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/GlassFishV8_0_0.xml @@ -29,6 +29,8 @@ + + diff --git a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/JavaSEPlatform.java b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/JavaSEPlatform.java index 7ae41df0d4a4..b89df3d50b1f 100644 --- a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/JavaSEPlatform.java +++ b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/JavaSEPlatform.java @@ -76,7 +76,9 @@ public enum JavaSEPlatform { /** JavaSE 25. */ v25, /** JavaSE 26. */ - v26; + v26, + /** JavaSE 27. */ + v27; // Class attributes // /** GlassFish JavaEE platform enumeration length. */