RFC: 8223740: Clarify Instrumentation interface should not be implemented outside java.instrument module

Alan Bateman Alan.Bateman at oracle.com
Tue May 14 10:46:52 UTC 2019


On 14/05/2019 03:36, serguei.spitsyn at oracle.com wrote:
> :
>
>   Java SE 9 added two abstract module-aware methods to the interface
>   java.lang.instrument.Instrumentation. The assumption at the time was
>   that the Instrumentation implementation is tightly coupled to the VM
>   implementation and it seemed unlikely there would be other 
> implementations
>   (this follows similar additions of abstract methods in Java SE 6).
Right, Instrumentation wants to be a sealed type but doesn't have a way 
to express this yet. Adding a statement to the javadoc seems okay for 
now, I'm just wondering if it should use one of the javadoc tags created 
for documenting API notes [1]. Joe Darcy (cc'ed) may have input into 
this. It can probably be @apiNote as the statement is it documenting 
intention.

-Alan

[1] https://openjdk.java.net/jeps/8068562
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190514/7355e5a4/attachment.html>


More information about the serviceability-dev mailing list