Disallowing the dynamic loading of agents by default (revised)
michael.rasmussen at zeroturnaround.com
Thu Apr 6 09:07:27 UTC 2017
On 6 April 2017 at 02:34, <mark.reinhold at oracle.com> wrote:
> Interesting. Perhaps we need a `Self-Premain-Class` attribute, or some
> Out of curiosity, would it do any harm in your `java -jar` case if the
> agent is activated?
As it is right now, yes, that would cause the execution to potentially fail.
Should a Self-Premain-Class (or like) not be implements, we would have
to check in the beginning of premain if we are running in java -jar
mode, and if such, make premain a no-op.
More information about the jigsaw-dev