skuro / plantuml-mode

A major mode for editing PlantUML sources in Emacs
GNU General Public License v3.0
511 stars 96 forks source link

--illegal-access=deny; support was removed #157

Open vbramselaar opened 2 years ago

vbramselaar commented 2 years ago

Summary

These warnings are added to the SVG image and maybe also to the PNG: OpenJDK 16: Option --illegal-access is deprecated and will be removed in a future release. OpenJDK 17: Ignoring option --illegal-access=deny; support was removed in 17.0

Like this:

Error parsing SVG image ‘(image :type svg :data OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=deny; support was removed in 17.0

Because of these warnings my Emacs preview does not work anymore. When removing the option --illegal-access=deny, the preview works again.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

timcharper commented 1 year ago

Maybe its a good idea to remove this flag from the defaults so everyone on modern JVMs don't hit this?

As a workaround for the masses: m-x customize-group plantuml. Find Plantuml Java Args, expand, remove --illegal-access=deny. Save and set for current session. Profit.

timcharper commented 1 year ago

Ah, looks like fix is here: 2fd42ff701debaba634d28f873253d197300bb56

... but perhaps not yet on ELPA (last release I see is 1.4.1)