Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal reflective access warning by dorkbox.util.Swt with Java 9 #2

Open
apetrelli opened this issue Oct 11, 2017 · 3 comments
Open

Comments

@apetrelli
Copy link

When using the sister project "SystemTray" in my project [1] under Java 9 I see the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by dorkbox.util.Swt (file:/home/anpetrel/.m2/repository/com/dorkbox/SystemTray/3.11/SystemTray-3.11.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of dorkbox.util.Swt
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

[1] https://github.com/apetrelli/scafa/tree/j9

@dorkbox
Copy link
Owner

dorkbox commented Oct 11, 2017

Thanks for reporting.

From my google-foo, a harmless and fairly common warning. I'll see what I can do to properly fix it sometime in the future (and before this behavior is denied) as I'm swamped with work right now.

Suggestions/pull requests are welcome!

@apetrelli
Copy link
Author

Hello @dorkbox
sorry but here I don't know where to start, except using --add-opens at runtime.
If you have the time, try to explain what you are trying to do in this class in English. This is just to explain to me or any other people who want to get in the project to try to fix the problem.

@dorkbox
Copy link
Owner

dorkbox commented Oct 11, 2017

Of course.

This class (dorkbox.util.Swt.java) is to provide reflection to access SWT methods, so SWT isn't a dependency for the SystemTray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants