From 950735baa9ff80cdc63eeacd4a218701f7f8c9f9 Mon Sep 17 00:00:00 2001 From: Markku Vuorenmaa Date: Thu, 27 Apr 2023 16:46:11 +0300 Subject: [PATCH] Fixes java9_or_newer turning from True to False Corrects an issue where java9_or_newer being True first prevents Reinitiating back to False. Issue found when a test suite started Java UI with newer JDK and then tried to launch an older WebStart application. --- src/main/python/RemoteSwingLibrary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/python/RemoteSwingLibrary.py b/src/main/python/RemoteSwingLibrary.py index 003893a..f93103d 100644 --- a/src/main/python/RemoteSwingLibrary.py +++ b/src/main/python/RemoteSwingLibrary.py @@ -274,6 +274,7 @@ def _initiate(self, port=0, debug=False, java9_or_newer='auto-detect'): RemoteSwingLibrary.DEBUG = _tobool(debug) if RemoteSwingLibrary.PORT is None: RemoteSwingLibrary.PORT = self._start_port_server(int(port)) + RemoteSwingLibrary.JAVA9_OR_NEWER = False if java9_or_newer == 'auto-detect': RemoteSwingLibrary.JAVA9_OR_NEWER = _tobool(self._java9_or_newer()) elif _tobool(java9_or_newer):