bulenkov / Darcula

Darcula Look and Feel
Apache License 2.0
723 stars 114 forks source link

Java 9 : illegal reflective access #41

Open pmouawad opened 6 years ago

pmouawad commented 6 years ago

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

Kakifrucht commented 6 years ago

I can confirm this issue.

pmouawad commented 6 years ago

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

davidekholm commented 5 years ago

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.

KinG-InFeT commented 5 years ago

I can confirm this issue.

guaporocco commented 5 years ago

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

steveyegge commented 3 years ago

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

davidekholm commented 3 years ago

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

hendriks73 commented 3 years ago

Thanks for sharing this, @davidekholm.