Darcula icon indicating copy to clipboard operation
Darcula copied to clipboard

Java 9 : illegal reflective access

Open pmouawad opened this issue 8 years ago • 8 comments

Hello, When using Darcula LAF under java 9, we get those warnings:

`WARNING: Illegal reflective access by com.bulenkov.darcula.DarculaLaf (file:/data/jmeter/workspace/jmeter_trunk/lib/darcula.jar) to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY

WARNING: Illegal reflective access by com.bulenkov.iconloader.util.UIUtil (file:/data/jmeter/workspace/jmeter_trunk/lib/darcula.jar) to field sun.awt.CGraphicsDevice.scale `

I didn't find it reported so I thought you might be interested.

Regards

pmouawad avatar Nov 03 '17 21:11 pmouawad

I can confirm this issue.

Kakifrucht avatar Nov 11 '17 00:11 Kakifrucht

Workaround:

--add-opens java.desktop/sun.awt=ALL-UNNAMED --add-opens java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens java.desktop/sun.swing=ALL-UNNAMED

pmouawad avatar Jan 30 '18 22:01 pmouawad

Really hope this issue can be addressed soon. Darcula looks so good that we don't want to dump it, but legalities requires us to move to Java 11 and now we get these warnings upon startup of jAlbum unless we suppress them with a series of ugly flags.

davidekholm avatar Jan 23 '19 10:01 davidekholm

I can confirm this issue.

KinG-InFeT avatar Jan 28 '19 12:01 KinG-InFeT

I also find that even compiling a Java 11 project with darcula.jar on the classpath is enough to hang javac.

guaporocco avatar Feb 26 '19 00:02 guaporocco

This bug makes it difficult to ship Java apps with the Darcula theme using jpackage.

steveyegge avatar Apr 25 '21 05:04 steveyegge

Since Darcula seems to be abandonware, we actually moved to FlatLaf for jAlbum. It even has a Darcula theme. It was a smooth transition.

davidekholm avatar May 18 '21 09:05 davidekholm

Thanks for sharing this, @davidekholm.

hendriks73 avatar May 20 '21 19:05 hendriks73