Closed jaredbrewer closed 2 years ago
Hi @jaredbrewer
Can you provide more information on this issue? What version of MacOS and Java are you using? If you have access to other Macs, can you reproduce this error?
The warnings about illegal reflective access come from Java 11. They can be safely ignored. If you use Java 8, you will not see such warnings.
@elevans We might want to add this as a section to Common Errors in the docs.
Yes, I am using Java 11 on macOS 12.6. Is there an expectation that whatever is prompting the underlying error will be resolved in the future or is it entirely safe for the long-term?
@jaredbrewer It is entirely safe while using Java 11, for sure. We are still exploring updates to ImageJ2+Fiji et al. to support Java 17, 18, and beyond. At some point, Java may remove support for this sort of reflection access, but they have not yet done so. It is difficult because most dependency injection frameworks, including SciJava Common, rely on reflection to connect components and plugins together. We have a new version of SciJava in development that does dependency injection entirely without reflection, using the Jigsaw/JPMS system introduced in Java 9, which should help eliminate these errors as the software continues to evolve.
I worked around this issue with 135bbf971bfa2f017c00ea624e8be38849f0c620, so these messages no longer appear.