<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">We need a way for modules that are enabled native access to pass this permission, <br></div><div dir="ltr">otherwise this will force the library to have to expose the implementation details to the user.<br></div><div dir="ltr"><br></div><div dir="ltr">Just for now, I think the --enable-native-access option is really weird.<br></div><div dir="ltr">It works with JPMS, but we can't describe it through module info.<br></div><div dir="ltr">I wish I could describe these things in module info instead of command line arguments,<br></div><div dir="ltr">--enable-native-access should just be an escape hatch like --add-exports/--add-opens.<br></div><div dir="ltr"><br></div><div dir="ltr">Glavo</div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 24, 2023 at 10:03 PM Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com" target="_blank">maurizio.cimadamore@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 24/08/2023 14:47, Volker Simonis wrote:<br>
> I think the changes we are talking about here are much to fundamental<br>
> for the Java platform to hide them in the API documentation of a<br>
> package.<br>
<br>
I think I've already explained how the plan is to move restricted <br>
methods out of the FFM package javadoc.<br>
<br>
As to the modifier idea - I think whatever arguments you make for <br>
restricted methods also holds for preview API methods. We have been <br>
previewing APIs for a number of years, and we have developed several <br>
concepts that we can reuse here. In what way are restricted methods more <br>
attention-deserving than preview API methods?<br>
<br>
(And, no, I don't think we should add _two_ modifiers :-) )<br>
<br>
Maurizio<br>
<br>
</blockquote></div>