Re: [8u-dev] RFR: 8036979: Support java.net.SocketOption<> in java.net socket types

2014-04-11 Thread Chris Hegarty
This looks mainly good to me. Just a few small comments (mainly on the use of reflection): 1) jdk/net/Sockets.java You could use a SharedSecret to access the private methods in the public java.net package, but reflection is ok too. 2) If you stick with reflection then if a lookup of any o

Re: [8u-dev] RFR: 8036979: Support java.net.SocketOption<> in java.net socket types

2014-04-11 Thread Michael McMahon
On 11/04/14 10:27, Chris Hegarty wrote: This looks mainly good to me. Just a few small comments (mainly on the use of reflection): 1) jdk/net/Sockets.java You could use a SharedSecret to access the private methods in the public java.net package, but reflection is ok too. I think the am

Re: [8u-dev] RFR: 8036979: Support java.net.SocketOption<> in java.net socket types

2014-04-11 Thread Alan Bateman
Reflection or shared secrets is a coin toss here, I think what you have is okay. An alternative name for the package private class in java.net is SocketSecrets, just a suggestion as SocketsUtil sounds more general that it is. I agree with Chris on throwing InternalError if any of the reflect

Re: [8u-dev] RFR: 8036979: Support java.net.SocketOption<> in java.net socket types

2014-04-11 Thread Michael McMahon
Thanks Alan. Points taken. I'll add the lambda to the 9 version also. Michael On 11/04/14 16:04, Alan Bateman wrote: Reflection or shared secrets is a coin toss here, I think what you have is okay. An alternative name for the package private class in java.net is SocketSecrets, just a suggest