From a4abaa55db0c816830be5be5221077a7c4aabda1 Mon Sep 17 00:00:00 2001 From: Vladyslav Lubenskyi Date: Fri, 16 Jan 2026 12:54:46 +0100 Subject: [PATCH 1/2] Update JxBrowser version to 8.16.0 --- build.gradle.kts | 2 +- tutorials/eclipse-rcp/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d48487a..18c0d64 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,7 +31,7 @@ plugins { id("org.jetbrains.kotlin.plugin.compose") version "2.0.0" } -val jxBrowserVersion by extra { "8.15.0" } // The version of JxBrowser used in the examples. +val jxBrowserVersion by extra { "8.16.0" } // The version of JxBrowser used in the examples. val guavaVersion by extra { "29.0-jre" } // Some of the examples use Guava. repositories { diff --git a/tutorials/eclipse-rcp/pom.xml b/tutorials/eclipse-rcp/pom.xml index bc41d64..8746dc1 100644 --- a/tutorials/eclipse-rcp/pom.xml +++ b/tutorials/eclipse-rcp/pom.xml @@ -26,7 +26,7 @@ 17 4.0.13 UTF-8 - 8.15.0 + 8.16.0 2025-09 From 2a03c8ff054b42150ec7ba72849f83f159f73e1e Mon Sep 17 00:00:00 2001 From: Vladyslav Lubenskyi Date: Fri, 16 Jan 2026 13:10:51 +0100 Subject: [PATCH 2/2] Fix the compilation error --- .../jxbrowser/examples/SslCertificateError.java | 17 +++++++++-------- .../jxbrowser/examples/SslCertificateError.kt | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java b/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java index 3a0e557..931639a 100644 --- a/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java +++ b/examples/src/main/java/com/teamdev/jxbrowser/examples/SslCertificateError.java @@ -28,19 +28,21 @@ import java.awt.BorderLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; +import java.text.MessageFormat; import javax.swing.JFrame; import javax.swing.SwingUtilities; import javax.swing.WindowConstants; /** - * This example demonstrates how to ignore SSL certificate errors - * and continue loading a website with an invalid SSL certificate. + * This example demonstrates how to ignore SSL certificate errors and continue + * loading a website with an invalid SSL certificate. */ public final class SslCertificateError { public static void main(String[] args) { var engine = Engine.newInstance( - EngineOptions.newBuilder(RenderingMode.HARDWARE_ACCELERATED).build()); + EngineOptions.newBuilder(RenderingMode.HARDWARE_ACCELERATED) + .build()); var browser = engine.newBrowser(); SwingUtilities.invokeLater(() -> { @@ -62,11 +64,10 @@ public void windowClosing(WindowEvent e) { browser.set(CertificateErrorCallback.class, (params, tell) -> { System.out.println( - "Request URL: " + params.url() + "\n" - + "Reason of the certificate error: " - + params.error().getValueDescriptor() + "(" + params.error().getNumber() - + ")" + "\n" - + "Invalid SSL certificate.: " + params.certificate() + "\n"); + MessageFormat.format( + "Request URL: {0}\nReason of the certificate error: {1}\nInvalid SSL certificate.: {2}\n", + params.url(), params.error(), + params.certificate())); tell.allow(); }); diff --git a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt index 2a72739..67fd9da 100644 --- a/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt +++ b/examples/src/main/kotlin/com/teamdev/jxbrowser/examples/SslCertificateError.kt @@ -54,7 +54,7 @@ fun main() { private fun CertificateErrorCallback.Params.print() = println( """ Request URL: ${url()} - Reason of the certificate error: ${error().valueDescriptor}(${error().number}) + Reason of the certificate error: ${error()}) Invalid SSL certificate.: ${certificate()} """.trimIndent() )