Review request JDK-8165180: Provide a shared secret to access non-public ServerSocket constructor
peter.levart at gmail.com
Fri Sep 2 13:42:45 UTC 2016
Are you sure the implementation class passed to
JavaNetSocketAccess.newSocketImpl(Class<? extends SocketImpl> implClass)
is never going to be loaded by a class loader other than bootstrap
classloader (the loader of the caller of
implClass.getDeclaredConstructor()) and that no unprivileged code will
be on the call stack at that time? Do you need to enclose this
invocation into doPrivileged() block or do you expect that the caller of
JavaNetSocketAccess.newSocketImpl() will do that?
On 08/31/2016 10:48 PM, Mandy Chung wrote:
> This patch introduces JavaNetSocketAccess to allow access to non-public ServerSocket constructor that is accessed by some other area as a clean up.
More information about the net-dev