Add jdk-jsobject so javafx.web (WebView) builds on JDK 26#3852
Add jdk-jsobject so javafx.web (WebView) builds on JDK 26#3852gian21391 wants to merge 1 commit into
Conversation
|
|
Note: this overlaps with #3839 (JDK 25 bump) — that PR moves |
|
Adding the I will make an effort to completely remove the dependency to |
georgweiss
left a comment
There was a problem hiding this comment.
Addition of jdk-jsobject should be put in a Maven profile.



MergedLogEntryDisplayControllerusesnetscape.javascript.JSObjectto bridge theOlog WebView to Java. That class was provided by the JDK's
jdk.jsobjectmodule,which is removed in JDK 26, so
javafx.webno longer compiles or resolves there.Since JavaFX 24 that module is shipped with JavaFX as the upgradable
org.openjfx:jdk-jsobjectartifact; this adds it to the classpath. It is versionedindependently of
openjfx.versionbecause the standalone artifact only exists from25 onwards. On JDK 25 and earlier the platform module still takes precedence, so the
dependency is inert; on JDK 26 it supplies
netscape.javascript.Together with #3851 (which replaces the removed
Thread.stop()), this clears thesecond and final compile blocker, so the project builds and runs on JDK 26.
Checklist
and JDK 26 (2332 tests, 0 failures on each). On JDK 21 the JDK's own
jdk.jsobjectstill takes precedence (behavior unchanged); on JDK 26netscape.javascriptresolves from the bundled artifact and the embeddedWebViewrenders a page.