renatsaf opened a new pull request, #9445:
URL: https://github.com/apache/netbeans/pull/9445

   Fixes #9423
   
   ### Problem
   On NetBeans 30 (which bundles JDK 26), starting a GlassFish server pops up 
the
   "select a Java SE platform" dialog with an **empty platform dropdown** and 
only a
   Cancel button, so the server cannot be launched. Reported on Ubuntu against
   GlassFish/Payara/WildFly.
   
   ### Root cause
   Support for JDK 26 was added in `JavaSEPlatform.java` (commit a0d24844f) by 
adding
   the `v26` enum constant, but the corresponding `<platform version="26"/>` 
entry was
   **never added to any GlassFish server config XML**. (The earlier "add JDK 
24" change,
   1e42bf815, correctly updated both the enum *and* `GlassFishV8_0_0.xml`; the 
JDK 25 and
   JDK 26 changes updated only the enum.)
   
   As a result, `JavaUtils.findSupportedPlatforms(instance)` intersects the 
installed
   platforms with the server's supported set (`{21..25}`) and returns an empty 
array when
   the only registered JDK is 26. `JavaSEPlatformPanel.setDescriptorButtons` 
then disables
   the OK button and `JavaPlatformsComboBox` renders empty — the dialog the 
user sees.
   
   ### Fix
   Add `<platform version="26"/>` to the two current-generation GlassFish 
configs that
   already declare JDK 25 support:
   
   - `GlassFishV8_0_0.xml`
   - `GlassFishV7_1_0.xml`
   
   This mirrors the established pattern and restores parity between the enum 
and the config
   tables.
   
   ### Notes / out of scope
   - Older `GlassFishV7_0_*` configs cap at lower JDK levels and represent 
specific past
     releases; adding 26 there is a compatibility judgement and is 
intentionally left out.
   - The Payara configs are considerably more stale (e.g. `PayaraV7.xml` lists 
only
     `<platform version="21"/>`); that looks like a separate, larger gap and is 
not touched
     here.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to