From 2bfdb309d1fb4a0a1bb95a8c9de8d6a6e310822f Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Wed, 11 Mar 2026 16:58:44 +0100 Subject: [PATCH] Skip checking empty filenames for result collectors On Java 25 the semantic of checking existance for empty filenames has been changed. See https://bugs.openjdk.org/browse/JDK-8024695 The old behaviour was used in JMeter to skip empty filenames in result collectors. This patch should resolve the bug while maintaining backwards compatibility. This should fix #6611. --- .../java/org/apache/jmeter/gui/action/AbstractAction.java | 4 ++++ xdocs/changes.xml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java b/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java index 898dc054560..eec6bd108b1 100644 --- a/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java +++ b/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java @@ -89,6 +89,10 @@ protected boolean popupCheckExistingFileListener(HashTree tree) { SearchByClass resultListeners = new SearchByClass<>(ResultCollector.class); tree.traverse(resultListeners); for (ResultCollector rc : resultListeners.getSearchResults()) { + if ("".equals(rc.getFilename())) { + log.debug("Skip result collector ({}) as it has empty filename", rc.getName()); + continue; + } File f = new File(rc.getFilename()); if (f.exists()) { switch (actionOnFile) { diff --git a/xdocs/changes.xml b/xdocs/changes.xml index 17d8185c337..ae1bf095044 100644 --- a/xdocs/changes.xml +++ b/xdocs/changes.xml @@ -58,6 +58,7 @@ Summary

Changes @@ -76,6 +77,11 @@ Summary
  • 5891Skip Internet Explorer 6-9 conditional comment processing when fetching resource links
  • + Bug fixes +

    General

    + Thanks