From bea90d8de27e673a039a71e15a08bcb0cb6f7011 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 14 Jun 2022 14:26:58 +0200 Subject: [PATCH] Fix gud parsing of empty jdb classpaths * lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty classpaths (like classpath: []) correctly (bug#55957). --- lisp/progmodes/gud.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 213ebef92f5..26fecf9c9f1 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2460,7 +2460,7 @@ during jdb initialization depending on the value of ;; not supported/followed) (if (and gud-jdb-use-classpath (not gud-jdb-classpath-string) - (or (string-match "classpath:[ \t[]+\\([^]]+\\)" gud-marker-acc) + (or (string-match "classpath:[ \t[]+\\([^]]*\\)" gud-marker-acc) (string-match "-classpath[ \t\"]+\\([^ \"]+\\)" gud-marker-acc))) (setq gud-jdb-classpath (gud-jdb-parse-classpath-string -- 2.39.2