Feedback on proposal for #ReflectiveAccessToNonExportedTypes
Simon Nash
simon at cjnash.com
Sat Jul 9 07:46:17 UTC 2016
Jason Greene wrote:
>
> There is also a disparity here that the JDK itself doesn’t require you to export packages (e.g. I don’t need it for Java serialization). Now I realize that there is an effort underway to de-privilege modules, but I suspect that a portion of the JDK will continue to enjoy special power for precisely the same usability concerns that apply to frameworks / standards which extend the platform.
>
I think this a very important point. If someone wanted to reimplement
Java serialization (java.io.ObjectOutputStream, etc.) as an external library
(com.foo.ObjectOutputStream, etc.), the new restrictions on reflective
access in JDK 9 would prevent this.
Simon
More information about the jigsaw-dev
mailing list