15 RFR(XS): 8165276: Spec states that invoke the premain method in an agent class if it's public but implementation differs
Alan Bateman
Alan.Bateman at oracle.com
Wed Jun 24 09:36:10 UTC 2020
On 24/06/2020 10:22, David Holmes wrote:
>
> The other way around. The setAccessible has been there long before the
> module system existed, to allow a non-public premain. As a side-effect
> when the module system came along it also disabled some module access
> check (I'm not sure exactly what).
This issue is nothing to do with modules. Instead I think the bug in the
JPLIS agent was discovered when core reflection didn't initially assume
readability so required changes to allow code in java.instrument to
invoke the agent's premain method.
-Alan
More information about the serviceability-dev
mailing list