Skip to content

Enabling CI testing on JDK 25#57

Merged
jtulach merged 8 commits into
apache:masterfrom
jtulach:Jdk25onCI
May 16, 2026
Merged

Enabling CI testing on JDK 25#57
jtulach merged 8 commits into
apache:masterfrom
jtulach:Jdk25onCI

Conversation

@jtulach

@jtulach jtulach commented May 15, 2026

Copy link
Copy Markdown
Contributor
  • Fixes build and test execution on JDK25. Eliminates problems of tests using Graal.js failing when running on JDK25
  • Have to use two versions of Graal.js:
    • 21.3.x on JDKs older than 21
    • 25.0.3 on JDK21+
  • done by separating the Graal.js dependency into testing project
  • and having two profiles there

@jtulach jtulach self-assigned this May 15, 2026
Comment thread pom.xml
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netbeans.version>RELEASE130</netbeans.version>
<graalvm.version>21.3.0</graalvm.version>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Graal.js version 21.3.0 isn't ready to run on JDK25

initializationError(net.java.html.sound.AudioClipTest):
java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodError: 'void sun.misc.Unsafe.ensureClassInitialized(java.lang.Class)'

@jtulach jtulach merged commit 13758bb into apache:master May 16, 2026
13 checks passed
@neilcsmith-net

Copy link
Copy Markdown
Member

@jtulach we just had a reach out from infra that a Jenkins job had been running for 15 days since this was merged. The previous job looks like it was much longer than normal too. Do we even need these Jenkins jobs for this any more? See https://ci-builds.apache.org/job/Netbeans/job/netbeans-html4j-windows/59/

@ebarboni

ebarboni commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

The build is dumping every 10s after this failure.

Configuring TestNG with: TestNG652Configurator
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: 
The application does not have desktop access,
but this program performed an operation which requires it.
	at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
	at java.desktop/java.awt.Window.<init>(Window.java:553)
	at java.desktop/java.awt.Frame.<init>(Frame.java:428)
	at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
	at org.netbeans.html.ko4j.DoubleViewTest.lambda$initializeSwingAndJavaFX$7(DoubleViewTest.java:145)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants