WARNING in ReflectionUtils of javafx9 with Glyph and FontAwesome

Issue #837 invalid
Anonymous created an issue

I have got a big Warning when using Glyph to include FontAwesome. Everything is working as expected, except for this big Warning log:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by impl.org.controlsfx.ReflectionUtils (file:/C:/Users/philippe.demanget/.m2/repository/org/controlsfx/controlsfx/9.0.0/controlsfx-9.0.0.jar) to method com.sun.javafx.css.StyleManager.getInstance()
WARNING: Please consider reporting this to the maintainers of impl.org.controlsfx.ReflectionUtils
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

Comments (5)

  1. Abhinay Agarwal

    This is an expected behaviour.

    ControlsFX 9 falls back to reflection for accessing a number of APIs which are not public(yet), but required. One such method is StyleManager#getInstance() which is used by GlyphFont class to add a user defined style sheet.

  2. Abhinay Agarwal

    As I have stated earlier in my comment, this warning is due to accessing methods reflectively. I do not see a problem with this as this honestly reports to all ControlsFX users that there is still work to be done (in both ControlsFX and JavaFX) with Java 9+.

  3. Log in to comment