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
Thu Jun 25 18:07:49 UTC 2020
On 25/06/2020 17:17, serguei.spitsyn at oracle.com wrote:
>
> New wevrev version is:
> http://cr.openjdk.java.net/~sspitsyn/webrevs/2020/instr-setAccessible.2/
>
One inconsistency is that it uses getDeclaredMethod to find the 2-arg
premain and getMethod to find the 1-arg premain. The latter will fail if
the method is not public so you won't get the nice exception message. I
wonder if we could fix this at the same time.
-Alan.
More information about the serviceability-dev
mailing list