Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 9 : illegal reflective access #41

Open
pmouawad opened this issue Nov 3, 2017 · 8 comments
Open

Java 9 : illegal reflective access #41

pmouawad opened this issue Nov 3, 2017 · 8 comments

Comments

@pmouawad
Copy link

pmouawad commented Nov 3, 2017

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
Copy link

I can confirm this issue.

@pmouawad
Copy link
Author

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

asfgit pushed a commit to apache/jmeter that referenced this issue Jan 30, 2018
Add Java 9 options to avoid the warnings that will disturb our users.
Warnings are due to:
- bulenkov/Darcula#41
- https://issues.apache.org/jira/browse/GROOVY-8339
Bugzilla Id: 61529

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1822712 13f79535-47bb-0310-9956-ffa450edef68
@davidekholm
Copy link

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
Copy link

I can confirm this issue.

@guaporocco
Copy link

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

@steveyegge
Copy link

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

@davidekholm
Copy link

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
Copy link
Contributor

Thanks for sharing this, @davidekholm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants