imagej / imagej-legacy

ImageJ+ImageJ2 compatibility layer
https://imagej.net/libs/imagej-legacy
BSD 2-Clause "Simplified" License
16 stars 25 forks source link

Replace Thread.currentThread().getContextClassLoader #281

Closed gselzer closed 2 years ago

gselzer commented 2 years ago

Context.getClassLoader() does the same thing, but has an appropriate fallback when Thread.currentThread().getContextClassLoader() is null.

This was causing issues leading to https://github.com/imagej/napari-imagej/issues/24

ctrueden commented 2 years ago

Thanks!