Skip to content

Commit 0b61306

Browse files
dschoctrueden
authored andcommitted
CombineAnnotations: use the current Thread's context class loader
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 876d707 commit 0b61306

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/scijava/util/CombineAnnotations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public CombineAnnotations(final String outputDir) throws IOException {
7979

8080
/** Reads in annotations from all available resources and combines them. */
8181
public void combine() throws IOException, ClassNotFoundException {
82-
final ClassLoader loader = ClassLoader.getSystemClassLoader();
82+
final ClassLoader loader = Thread.currentThread().getContextClassLoader();
8383

8484
log("");
8585
log("Writing annotations to " + new File(OUTPUT_DIR).getAbsolutePath());

0 commit comments

Comments
 (0)