Index: /applications/editors/josm/plugins/build-common.xml
===================================================================
--- /applications/editors/josm/plugins/build-common.xml	(revision 36485)
+++ /applications/editors/josm/plugins/build-common.xml	(revision 36486)
@@ -113,5 +113,5 @@
         <!-- to be overridden by plugins that need to perform additional tasks before compiling -->
     </target>
-    <target name="compile" depends="init, pre-compile, resolve-tools" unless="skip-compile">
+    <target name="plugin-classpath-actual">
         <condition property="plugin.classpath.actual.defined">
             <isreference refid="plugin.classpath.actual" type="path"/>
@@ -120,4 +120,6 @@
             <path refid="plugin.classpath"/>
         </path>
+    </target>
+    <target name="compile" depends="init, pre-compile, resolve-tools, plugin-classpath-actual" unless="skip-compile">
         <echo message="compiling sources for ${plugin.jar} ..."/>
         <path id="jdk.boot.classpath">
@@ -293,5 +295,5 @@
         <!-- to be overridden by plugins that need to perform additional tasks before generating javadoc -->
     </target>
-    <target name="javadoc" depends="pre-javadoc,pre-compile" unless="skip-javadoc">
+    <target name="javadoc" depends="pre-javadoc,pre-compile,plugin-classpath-actual" unless="skip-javadoc">
         <mkdir dir="${plugin.doc.dir}"/>
         <javadoc destdir="${plugin.doc.dir}"
@@ -305,4 +307,5 @@
             <classpath refid="plugin.classpath" unless:set="plugin.classpath.dependencies"/>
             <classpath refid="plugin.classpath.dependencies" if:set="plugin.classpath.dependencies"/>
+            <classpath refid="plugin.classpath.actual"/>
             <sourcepath>
                 <pathelement path="${plugin.src.dir}" />
Index: /applications/editors/josm/plugins/javafx/pom.xml
===================================================================
--- /applications/editors/josm/plugins/javafx/pom.xml	(revision 36485)
+++ /applications/editors/josm/plugins/javafx/pom.xml	(revision 36486)
@@ -22,5 +22,5 @@
         <plugin.stage>5</plugin.stage>
         <plugin.minimum.java.version>17</plugin.minimum.java.version>
-        <javafx.version>21.0.2</javafx.version>
+        <javafx.version>21.0.10</javafx.version>
     </properties>
     <!-- These dependencies should be installed on the host machine - our installers bundle them -->
Index: /applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx/gui/JavaFxWrapper.java
===================================================================
--- /applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx/gui/JavaFxWrapper.java	(revision 36485)
+++ /applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx/gui/JavaFxWrapper.java	(revision 36486)
@@ -30,8 +30,9 @@
     private static class UncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
         private final Thread.UncaughtExceptionHandler currentHandler;
-        public UncaughtExceptionHandler() {
+        UncaughtExceptionHandler() {
             currentHandler = Thread.currentThread().getUncaughtExceptionHandler();
             Thread.currentThread().setUncaughtExceptionHandler(this);
         }
+
         @Override
         public void uncaughtException(Thread t, Throwable e) {
