FlatLaf icon indicating copy to clipboard operation
FlatLaf copied to clipboard

Illegal reflective access on Windows

Open widerlund opened this issue 2 years ago • 2 comments

FlatLaf v2.4, Windows, Java 11 Illegal reflective access:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.formdev.flatlaf.ui.FlatFileChooserUI$FlatShortcutsPanel (file:lib/flatlaf-2.4.jar) to method sun.awt.shell.ShellFolder.get(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.formdev.flatlaf.ui.FlatFileChooserUI$FlatShortcutsPanel
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

widerlund avatar Aug 02 '22 09:08 widerlund

@widerlund, add on startup of your application

--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED

koden8 avatar Aug 02 '22 09:08 koden8

Thank you - that works!

widerlund avatar Aug 02 '22 11:08 widerlund