警告的具体信息
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.formdev.flatlaf.ui.FlatFileChooserUI$FlatShortcutsPanel (file:/C:/xxx/repository/com/formdev/flatlaf/2.3/flatlaf-2.3.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
出问题的组件
JFileChooser
开发环境
IDEA
JDK 11
flatlaf.jar - Flat Look and Feel
解决方法
flatlaf 换个低版本尝试一下,亲测2.2版本没问题
本文档详细描述了在使用FlatLookAndFeel的JFileChooser时遇到的非法反射访问警告,涉及com.formdev.flatlaf.ui组件。解决方法建议降低flatlaf.jar版本至2.2,以确保兼容性和稳定性。

4463

被折叠的 条评论
为什么被折叠?



