Closed tischi closed 1 month ago
@K-Meech do you also have the above issue? Sometimes this sort of issues are different on different computers....
I believe the commit that broke things is 2bdd137dd9c13f64f3f33c493d9258c4a89b442b, which changed some methods to have ij.ImagePlus
as a return type or parameter, thus causing ImageJ to be loaded too early. If you rm src/test/java/org/embl/mobie/lib/create/ImagesCreatorTest.java
and then mvn clean test
then the test suite passes. I theorize that the preinit static initializer trick does not help in that class because it's already recursively loaded ImageJ by the time the static initializer block is called.
I filed PR #1141 to address it.
Dear @ctrueden,
We are having again the Legacy Injector issue in the current main branch, when running
mvn test
.Could you please do your magic again for fixing this? Which I think was adding
static { net.imagej.patcher.LegacyInjector.preinit(); }
to all classes?! If you tell me how to do this I can also do it myself...Thanks!