From 7b03d3cff8dd1bbf779e6cea44300cc222717fef Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Mon, 23 Dec 2024 09:02:07 +0100 Subject: [PATCH] Use ELK's classloader, not root classloader to discover services (#1108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sören Domrös --- .../org/eclipse/elk/core/data/LayoutMetaDataService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.elk.core/src/org/eclipse/elk/core/data/LayoutMetaDataService.java b/plugins/org.eclipse.elk.core/src/org/eclipse/elk/core/data/LayoutMetaDataService.java index 0350fd94e2..c13d6a84e4 100644 --- a/plugins/org.eclipse.elk.core/src/org/eclipse/elk/core/data/LayoutMetaDataService.java +++ b/plugins/org.eclipse.elk.core/src/org/eclipse/elk/core/data/LayoutMetaDataService.java @@ -51,7 +51,11 @@ private LayoutMetaDataService() { * @return the singleton instance */ public static synchronized LayoutMetaDataService getInstance() { - return getInstance(null); + Object loader = null; + // elkjs-exclude-start + loader = LayoutMetaDataService.class.getClassLoader(); + // elkjs-exclude-end + return getInstance(loader); } /**