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 operation #575

Closed
mipastgt opened this issue Jan 29, 2019 · 4 comments
Closed

Illegal reflective access operation #575

mipastgt opened this issue Jan 29, 2019 · 4 comments
Milestone

Comments

@mipastgt
Copy link

mipastgt commented Jan 29, 2019

With all recent versions of MVVMFX I get an illegal reflective access operation warning. This is not only annoying but may also lead to problems in the future.

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by net.jodah.typetools.TypeResolver (file:[...]/.m2/repository/net/jodah/typetools/0.4.1/typetools-0.4.1.jar) to method java.lang.Class.getConstantPool() WARNING: Please consider reporting this to the maintainers of net.jodah.typetools.TypeResolver 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

This could be easily fixed by upgrading to a more recent version of typetools. The current version is 0.6.0 and does not show this warning anymore.

@manuel-mauky
Copy link
Collaborator

Thanks for this hint. Upgrading to a newer version of typetools is a good idea.

@manuel-mauky
Copy link
Collaborator

In which situation do you get this warning? I try to reproduce it but I don't know how. Is this a runtime or compile time warning?

@manuel-mauky manuel-mauky added this to the 1.8.0 milestone Jan 30, 2019
@mipastgt
Copy link
Author

mipastgt commented Jan 31, 2019

This is a runtime warning produced by the java runtime whenever some code violates the restrictions imposed by the new module system. My system is a Mac and I am using OpenJDK 11 from Oracle
and the corresponding OpenJFX from Gluon (but this should not really matter).
java.runtime.version: 11.0.2+9
javafx.version: 11.0.2
The warning disappears as soon as I force the use of a newer version of typetools (0.6.0). Such warnings are typical for older libraries which are not yet prepared for the (not so new anymore) Java module system.

@manuel-mauky manuel-mauky mentioned this issue Mar 4, 2019
9 tasks
manuel-mauky added a commit that referenced this issue Mar 8, 2019
manuel-mauky added a commit that referenced this issue Mar 8, 2019
@manuel-mauky
Copy link
Collaborator

I was now able to reproduce the warning. Previously I was only executing the apps via the IDE and there I wasn't getting the warnings. But when I executed the app via maven exec plugin I was seeing the exact same warning that you've mentionend.

It's now fixed with an update of typetools to 0.6.1

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