plantuml-mode
plantuml-mode copied to clipboard
--illegal-access=deny; support was removed
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.
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.
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.
Ah, looks like fix is here: 2fd42ff701debaba634d28f873253d197300bb56
... but perhaps not yet on ELPA (last release I see is 1.4.1)