Commit 9859aae
committed
When initializing the SVGFileFormat class for loading SVGs, the current
context classloader is used by the ServiceLoader to find an
SVGRasterizer implementation. This classloader may be incorrect in some
cases, i.e., it may not be the plain system classloader or an according
OSGi classloader but, e.g., some specific classloader for test
execution.
This change makes the ServiceLoader use the same classloader for finding
an SVGRasterizer implementation than the classloader of the
SVGFileFormat class containing the rasterizer reference itself.
Fixes #1965
Fixes #2049
1 parent bfcadf9 commit 9859aae
File tree
1 file changed
+2
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments