diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/SVGFileFormat.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/SVGFileFormat.java index 001b9b6828d..78d8abebcb6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/SVGFileFormat.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/SVGFileFormat.java @@ -31,7 +31,8 @@ public class SVGFileFormat extends FileFormat { /** The instance of the registered {@link SVGRasterizer}. */ - private static final SVGRasterizer RASTERIZER = ServiceLoader.load(SVGRasterizer.class).findFirst().orElse(null); + private static final SVGRasterizer RASTERIZER = ServiceLoader + .load(SVGRasterizer.class, SVGFileFormat.class.getClassLoader()).findFirst().orElse(null); @Override boolean isFileFormat(LEDataInputStream stream) throws IOException {