plantuml-mode icon indicating copy to clipboard operation
plantuml-mode copied to clipboard

--illegal-access=deny; support was removed

Open vbramselaar opened this issue 3 years ago • 3 comments

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.

vbramselaar avatar Feb 03 '22 14:02 vbramselaar

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.

stale[bot] avatar Jun 12 '22 23:06 stale[bot]

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 avatar Feb 15 '23 19:02 timcharper

Ah, looks like fix is here: 2fd42ff701debaba634d28f873253d197300bb56

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

timcharper avatar Feb 15 '23 19:02 timcharper