Re: RFR: JDK-8051713 - URL constructor/equals/hashCode/sameFile/openConnection synchronization issues

2014-07-25 Thread Chris Hegarty
Hi Peter, This is certainly a thorny issue, and I agree with the approach of using StampedLock. Some small comments / questions: 1) Why abuse fieldsLock in hostAddress(), rather than grabbing the writeLock ? 2) Does the setAccessible in readObject need to be in a doPriv? Also should th

Re: RFR: JDK-8054118 - java/net/ipv6tests/UdpTest.java failed intermittently

2014-08-07 Thread Chris Hegarty
Thanks Mark, Reviewed. -Chris. P.S. At some point in the future, we should try to create a general test utility library to retrieve suitable network interfaces for tests to use. On 7 Aug 2014, at 19:15, Mark Sheppard wrote: > Hi, > please oblige and review the following fix > http://cr.open

Re: RFR 8055747: Move SimpleSSLContext to jdk/testlibrary

2014-08-25 Thread Chris Hegarty
Michael, This looks mainly ok to me. It is nice to be adding to the common test infrastructure, where possible. Just a few minor comments... 1) Do the tests what use this also need to ensure that the classfile is compiled? We had trouble in the past when running concurrently. @build jd

Re: RFR: 8055299 HttpsURLConnection.equals() broken

2014-08-25 Thread Chris Hegarty
Michael, The source changes look fine to me, but I know you are waiting on another dependent bug to be able to update the test. -Chris. On 25/08/14 11:47, Michael McMahon wrote: Thanks for looking at it. I need to get this one reviewed first though, to re-organise one of the test support cla

Re: RFR 8056065: sun/net/www/protocol/http/RedirectOnPost.java failing.

2014-08-26 Thread Chris Hegarty
On 26 Aug 2014, at 15:06, Alan Bateman wrote: > On 26/08/2014 15:01, Michael McMahon wrote: >> Could I get the following small change reviewed please? >> >> One file was missed from my earlier change to SimpleSSLContext >> >> http://cr.openjdk.java.net/~michaelm/8056065/webrev.1/ > This looks o

Re: RFR 8047031: Need new tests to check socket permission

2014-08-27 Thread Chris Hegarty
Amanda, I see you have implemented a getFreePort in this test, and it attempts to find a port within a range of 10 of the given port. I would have a concern about this when the test is run concurrently. Though we have come across similar issues in the past, as the socket permission needs to h

Re: RFR [7010989]: Duplicate closure of file descriptors leads to unexpected and incorrect closure of sockets

2014-09-09 Thread Chris Hegarty
Reviewed. As you said, this is not the default implementation on recent Windows platforms, but possibly worth fixing so it can be backported to older releases. On this point, there is potential here for a lot of cleanup, even removal of the TwoStacks implementation in 9. I think this would be a

RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-11 Thread Chris Hegarty
A small issue was found when running JCK tests on modern Windows platforms, that have IPv6 enabled, but forced to run with the IPv4 Stack, -Djava.net.preferIPv4Stack=true. NetworkInterface.getHardwareAddress() can return a zero length byte array, where is should, and is specified to, return nul

Re: RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-12 Thread Chris Hegarty
On 11/09/14 14:42, Chris Hegarty wrote: A small issue was found when running JCK tests on modern Windows platforms, that have IPv6 enabled, but forced to run with the IPv4 Stack, -Djava.net.preferIPv4Stack=true. NetworkInterface.getHardwareAddress() can return a zero length byte array, where

Re: RFR [9] 8058216: NetworkInterface.getHardwareAddress can return zero length byte array when run with preferIPv4Stack

2014-09-12 Thread Chris Hegarty
On 12/09/14 12:47, Bernd Eckenfels wrote: Hello, A short question out of couriosity, why is the code for the v6 and v4 case different, anyway? This is legacy code using Windows APIs that predate IPv6 support in the platform. There is a huge opportunity for cleanup and modernization here. H

Re: RFR: JDK-8058932 - java/net/InetAddress/IPv4Formats.java failed because hello.foo.bar does exist

2014-09-30 Thread Chris Hegarty
On 30 Sep 2014, at 08:47, Daniel Fuchs wrote: > On 30/09/14 17:31, Alan Bateman wrote: >> On 30/09/2014 08:21, Mark Sheppard wrote: >>> Hi >>> >>> Please oblige and review the following small change to test >>> test/java/net/InetAddress/IPv4Formats.java >>> >>> --- a/test/java/net/InetAddress/

Re: RFR: JDK-8058932 - java/net/InetAddress/IPv4Formats.java failed because hello.foo.bar does exist

2014-09-30 Thread Chris Hegarty
rong. -Chris. > Michael > >> M. >> >> On 30/09/2014 17:35, Chris Hegarty wrote: >>> >>> On 30 Sep 2014, at 08:47, Daniel Fuchs wrote: >>> >>>> On 30/09/14 17:31, Alan Bateman wrote: >>>>> On 30/09/2014 08:21, Mark Sheppard w

Re: RFR: JDK-8058932 - java/net/InetAddress/IPv4Formats.java failed because hello.foo.bar does exist

2014-10-01 Thread Chris Hegarty
Reviewed. -Chris. On 1 Oct 2014, at 00:01, Dmitry Samersoff wrote: > Looks good for me! > > -Dmitry > > On 2014-10-01 02:26, Mark Sheppard wrote: >> Thanks Tom and Dmitry >> >> last up best dressed ... >> >> .invalid as the test domain is a good recommendation >> >> change is now >> >> -

Re: RFR 8059450: Not quite correct code sample in javadoc

2014-10-01 Thread Chris Hegarty
On 1 Oct 2014, at 01:48, Ivan Gerasimov wrote: > Hello! > > This is a javadoc bug. > In the code sample a redundant argument to a constructor of URI is passed. > Probably a copy-paste error. > > BUGURL: https://bugs.openjdk.java.net/browse/JDK-8059450 > WEBREV: http://cr.openjdk.java.net/~igera

Re: RFR : 8046588 8047187

2014-10-03 Thread Chris Hegarty
Looks good to me Sean. -Chris. On 3 Oct 2014, at 13:38, Seán Coffey wrote: > Following bugs need to be backported to jdk7u-dev to correct issues where > SO_FLOW_SLA availability might not be available or where sufficient > permissions are not in place. > > https://jbs.oracle.com/bugs/browse/

Re: RFR 8042622: Check for CRL results in IllegalArgumentException "white space not allowed"

2014-10-15 Thread Chris Hegarty
This looks ok to me. -Chris. On 15/10/14 12:03, Michael McMahon wrote: http://cr.openjdk.java.net/~michaelm/8042622/webrev.1/ The issue is that ResponseCache is receiving all the headers from our MessageHeader internal implementation class. This includes a dummy/fake header that represents the

Re: Taking advantage of TCP Loopback fast path in Windows

2014-10-20 Thread Chris Hegarty
On 20 Oct 2014, at 20:01, Martin Sawicki (MS OPEN TECH) wrote: > > From: Alan Bateman [mailto:alan.bate...@oracle.com] > > The attribution line allows for multiple contributors to be listed. The > changes are now in jdk9/dev: > http://hg.openjdk.java.net/jdk9/dev/jdk/rev/26e6402772c8 >

Re: RFR: 8062744 jdk.net.Sockets.setOption/getOption does not support IP_TOS

2014-11-04 Thread Chris Hegarty
On 4 Nov 2014, at 10:51, Alan Bateman wrote: > On 04/11/2014 10:44, Michael McMahon wrote: >> Could I get the following small change reviewed please? >> >> http://cr.openjdk.java.net/~michaelm/8062744/webrev.1/ >> >> In JDK 9 the problem only affects the Socket.supportedOptions() method, >> bu

Re: RFR: 8062744 jdk.net.Sockets.setOption/getOption does not support IP_TOS

2014-11-04 Thread Chris Hegarty
On 4 Nov 2014, at 11:15, Michael McMahon wrote: > On 04/11/14 11:10, Alan Bateman wrote: >> On 04/11/2014 11:00, Michael McMahon wrote: >>> >>> Thanks Alan. How about I just split the test and check the option setting >>> behavior in OptionsTest.java >>> which doesn't have any reference to the

Re: RFR: 8062744 jdk.net.Sockets.setOption/getOption does not support IP_TOS

2014-11-04 Thread Chris Hegarty
On 4 Nov 2014, at 12:05, Michael McMahon wrote: > On 04/11/14 11:18, Chris Hegarty wrote: >> On 4 Nov 2014, at 11:15, Michael McMahon >> wrote: >> >>> On 04/11/14 11:10, Alan Bateman wrote: >>>> On 04/11/2014 11:00, Michael McMahon wrote: >>>

Re: RFR: 8062744 jdk.net.Sockets.setOption/getOption does not support IP_TOS

2014-11-04 Thread Chris Hegarty
On 4 Nov 2014, at 16:24, Michael McMahon wrote: > On 04/11/14 14:45, Michael McMahon wrote: >> On 04/11/14 12:49, Chris Hegarty wrote: >>> On 4 Nov 2014, at 12:05, Michael McMahon >>> wrote: >>> >>>> On 04/11/14 11:18, Chris Hegarty wrote

RFR [9] 8050983 : Misplaced parentheses in sun.net.www.http.HttpClient break HTTP PUT streaming

2014-11-07 Thread Chris Hegarty
This is a trivial change to fix a failed previous attempt to prevent all HTTP requests, with a streaming body, from automatically being retried, by the HttpURLConnection implementation. The existing implementation only prevents POST requests from being automatically retried, it should prevent

Re: RFR: JDK-8015692 - java.net.BindException is thrown on Windows XP when HTTP server is started and stopped in the loop.

2014-11-13 Thread Chris Hegarty
top() method performs a join, only, for the > dispatcher thread > so that all housekeeping is done prior to exiting stop. > > regards > Mark > > On 24/02/2014 17:08, Chris Hegarty wrote: >> Hi Mark, >> >> I think join should be sufficient here. >> &g

Re: RFR: JDK-8015692 - java.net.BindException is thrown on Windows XP when HTTP server is started and stopped in the loop.

2014-11-15 Thread Chris Hegarty
hris. > regards > Mark >> On 13/11/2014 10:49, Chris Hegarty wrote: >>> On 12 Nov 2014, at 22:12, Mark Sheppard wrote: >>> >>> Hi >>>Please oblige and review the updated patch >>> http://cr.openjdk.java.net/~msheppar/8015692/webrev.02a

Re: RFR: JDK-8065222 - sun/net/www/protocol/http/B6369510.java doesn't execute as expected

2014-11-21 Thread Chris Hegarty
Looks good, thanks Mark. -Chris > On 21 Nov 2014, at 22:08, Mark Sheppard wrote: > > Hi > minor update to fix, the boolean handlerRunAsExpected flag has been removed, > so the fix rectifies the URL construction > > http://cr.openjdk.java.net/~msheppar/8065222/webrev.01/ > > regards > Mark >

RFR [9] 8065072: sun/net/www/http/HttpClient/StreamingRetry.java failed intermittently

2014-11-25 Thread Chris Hegarty
This test has been failing intermittently since I updated it recently to cover another similar issue. The test shares a ServerSocket instance across two threads, and as such it should be a volatile field. The test should also ensure that any thread that it starts completes before it continues it

Re: RFR: JDK-8066130 - com.sun.net.httpserver stop() throws NullPointerException if it is not started

2014-11-28 Thread Chris Hegarty
Looks good to me Mark. -Chris > On 28 Nov 2014, at 18:09, Mark Sheppard wrote: > > Hi, > Please oblige and review the minor change > http://cr.openjdk.java.net/~msheppar/8066130/webrev/ > > to address the issue > > https://bugs.openjdk.java.net/browse/JDK-8066130 > > a previous amendment t

Re: [9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2014-12-11 Thread Chris Hegarty
On 11 Dec 2014, at 11:09, Konstantin Shefov wrote: > CC'ed core-libs-...@openjdk.java.net > > On 10.12.2014 18:21, Konstantin Shefov wrote: >> Hello, >> >> Please, review the bug fix: https://bugs.openjdk.java.net/browse/JDK-6933879 >> Webrev: http://cr.openjdk.java.net/~kshefov/6933879/webrev

Re: [9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2014-12-15 Thread Chris Hegarty
Konstantin, I did reply to this RFR [1], with a question, that is still unanswered. -Chris. [1] http://mail.openjdk.java.net/pipermail/net-dev/2014-December/008782.html On 15/12/14 11:15, Konstantin Shefov wrote: Gently reminder. Please review. -Konstantin On 11.12.2014 14:09, Konstantin Sh

RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2014-12-17 Thread Chris Hegarty
A socket connection which is returned by ServerSocket.accept() is inherited by a child process. The expected behavior is that the socket connection is not inherited by the child process. This is an oversight in the original implementation, that only sets HANDLE_FLAG_INHERIT for newly created so

Re: RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2014-12-18 Thread Chris Hegarty
wrote: > On 17/12/2014 15:47, Chris Hegarty wrote: >> A socket connection which is returned by ServerSocket.accept() is inherited >> by a child process. The expected behavior is that the socket connection is >> not inherited by the child process. This is an over

Re: RFR 8065420: Update test java/net/ResponseCache/ResponseCacheTest.java to eliminate internal API dependency

2014-12-18 Thread Chris Hegarty
This looks ok to me Amanda. -Chris. On 17 Dec 2014, at 23:23, Amanda Jiang wrote: > Hi, > > May I request your review for following changeset? > There is one networking tests that has dependency on internal API > sun.net.www.ParseUtil. > This fix is to remove the internal API dependency from

Re: RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2014-12-18 Thread Chris Hegarty
want to prevent all handles from being inherited. Are you suggesting something different ? -Chris. > -Dmitry > > > On 2014-12-17 18:47, Chris Hegarty wrote: >> A socket connection which is returned by ServerSocket.accept() is >> inherited by a child process. The expected behavior

Re: RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2014-12-18 Thread Chris Hegarty
On 18 Dec 2014, at 13:20, Alan Bateman wrote: > On 18/12/2014 11:52, Chris Hegarty wrote: >> Thanks for looking at this Alan. >> >> Surprisingly this issue has existed for a long time. I tested with the FCS >> version of JRE 5, 6, 7, 8, and 9-ea, on Windows Server

Re: RFR 8065420: Update test java/net/ResponseCache/ResponseCacheTest.java to eliminate internal API dependency

2014-12-23 Thread Chris Hegarty
On 22 Dec 2014, at 20:15, Amanda Jiang wrote: > Thank you Chris, could you please sponsor this? Pushed. http://hg.openjdk.java.net/jdk9/dev/jdk/rev/80a5f6aa2033 -Chris. > Thanks, > Amanda > > On 12/18/14 4:18 AM, Chris Hegarty wrote: >> This looks ok to me

Re: RFR 8042581: Intermittent failure in java/net/DatagramSocket/InheritHandle.java

2014-12-29 Thread Chris Hegarty
Looks ok Felix. You could put the construction of the new DatagramSocket in a try-with-resources, so it will be closed always, even if the test fails. -Chris > On 29 Dec 2014, at 10:04, FELIX YANG wrote: > > Hi all, > please review the fix for 8042581. This failure was only observed on >

Re: java.net.NetworkInterfaces and Linux with multiple addresses on single interface

2014-12-29 Thread Chris Hegarty
On 27 Dec 2014, at 15:53, Doychin Bondzhev wrote: > This is a copy of my email that I sent earlier to core-libs-dev. > --- > > Hi, > > I want to report for a problem that I see when I have more then one IP > addresses assigned to same interface. > > Here is an output from ip addr com

Re: RFR 8042581: Intermittent failure in java/net/DatagramSocket/InheritHandle.java

2014-12-30 Thread Chris Hegarty
te: >> On 29/12/2014 15:46, Chris Hegarty wrote: >>> Looks ok Felix. >>> >>> You could put the construction of the new DatagramSocket in a >>> try-with-resources, so it will be closed always, even if the test fails. >>> >>> -Chris >

Re: RFR: JDK-8068597 - Add error code to to exception condition message resulting from GetAdaptersAddresses function calls

2015-01-08 Thread Chris Hegarty
Reviewed. As a temporary measure to get more diagnostic information on a very difficult intermittent failure, 8065078, I agree with this change. Once we get the additional diagnostic information, then we can revisit this code. -Chris. On 8 Jan 2015, at 14:16, Mark Sheppard wrote: > Hi >p

Re: [9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2015-01-16 Thread Chris Hegarty
On 15/12/14 12:01, Alan Bateman wrote: On 15/12/2014 11:25, Chris Hegarty wrote: Konstantin, I did reply to this RFR [1], with a question, that is still unanswered. -Chris. [1] http://mail.openjdk.java.net/pipermail/net-dev/2014-December/008782.html I can think of configurations where the

Re: [9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2015-01-16 Thread Chris Hegarty
On 16/01/15 11:29, Alan Bateman wrote: On 16/01/2015 10:49, Chris Hegarty wrote: : I don't see any reason to update the spec here, given that the set of allowable character is not clearly defined in the relevant RFC's. I think we need to create a bug to look into this more. In

Re: [9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2015-01-16 Thread Chris Hegarty
On 16/01/15 12:50, Konstantin Shefov wrote: Hi Chris, Alan, thank you for reviewing. I have made a new webrev http://cr.openjdk.java.net/~kshefov/6933879/webrev.01 I have removed ":" and added a test case. This looks ok to me. -Chris. -Konstantin 16.01.2015 14:42, Chris Hegarty

Re: [9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2015-01-23 Thread Chris Hegarty
approve by one more person? You have a Reviewer, and I see no objections. So you are good to push. -Chris. Thanks -Konstantin On 16.01.2015 17:02, Chris Hegarty wrote: On 16/01/15 12:50, Konstantin Shefov wrote: Hi Chris, Alan, thank you for reviewing. I have made a new webrev http

RFR 8071424: JCK test api/java_net/Socket/descriptions.html#Bind crashes on Windows

2015-01-23 Thread Chris Hegarty
This is a fix for a minor oversight when refactoring the initializing of Inet[4|6]Address IDs, used in many places in the networking native code. It would appear that there is an initInetAddressIDs() call missing from the Windows Dual Stacks Socket implementation, Java_java_net_DualStackPlainS

Re: RFR 8071424: JCK test api/java_net/Socket/descriptions.html#Bind crashes on Windows

2015-01-23 Thread Chris Hegarty
On 23/01/15 14:05, Alan Bateman wrote: On 23/01/2015 13:51, Chris Hegarty wrote: This is a fix for a minor oversight when refactoring the initializing of Inet[4|6]Address IDs, used in many places in the networking native code. It would appear that there is an initInetAddressIDs() call missing

Re: RFR: 8065994: HTTP Tunnel connection to NTLM proxy reauthenticates instead of using keep-alive

2015-01-23 Thread Chris Hegarty
Looks good to me Sean. Good to see additional logging in this area. -Chris. On 22/01/15 15:21, Seán Coffey wrote: Looking for a review around this issue that came in as a reported performance regression in NTLM proxy authentication. It turned out that HttpsClients were being discarded after Pr

Re: RFR: 8067680: (sctp) Possible race initializing native IDs

2015-01-28 Thread Chris Hegarty
Looks good to me, thanks Rob. -Chris. On 28 Jan 2015, at 16:46, Rob McKenna wrote: > This is a fix to a possible race in the current sctp code. In a nutshell the > conditional only checks that isaCls is not null. However if isaCls is set by > one thread and that thread is interrupted before s

RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2015-01-28 Thread Chris Hegarty
Reviving an old code review [1], after further investigation… Pertinent details from previous review: "A socket connection which is returned by ServerSocket.accept() is inherited by a child process. The expected behavior is that the socket connection is not inherited by the child process. This i

Re: RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2015-01-28 Thread Chris Hegarty
ore pushing. Thanks, -Chris. > Sincerely yours, > Ivan > > On 28.01.2015 23:01, Chris Hegarty wrote: >> Reviving an old code review [1], after further investigation… >> >> Pertinent details from previous review: >> "A socket connection which is returned

Re: RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2015-01-28 Thread Chris Hegarty
On 28 Jan 2015, at 21:24, Alan Bateman wrote: > > On 28/01/2015 20:01, Chris Hegarty wrote: >> Reviving an old code review [1], after further investigation… >> >> Pertinent details from previous review: >> "A socket connection which is returned by ServerS

Re: RFR 8067105: Socket returned by ServerSocket.accept() is inherited by child process on Windows

2015-01-29 Thread Chris Hegarty
On 29 Jan 2015, at 09:21, Alan Bateman wrote: > On 28/01/2015 21:40, Chris Hegarty wrote: >> I’ll make the change, add a test, and then update the webrev. >> > On second thoughts, it shouldn't need to be changed because the child SOCKET > is created before Acce

RFR 8064924: Update java.net.URL to work with modules

2015-01-30 Thread Chris Hegarty
This is phase 1, of getting java.net.URL work with modules. Being able to effectively specify URL protocol handler factories as fully qualified class names, through the 'java.protocol.handler.pkgs' system property is problematic. It requires the protocol handler factory implementation class to

Re: RFR 8064924: Update java.net.URL to work with modules

2015-01-30 Thread Chris Hegarty
Thanks for the comments Alan… On 30 Jan 2015, at 14:32, Alan Bateman wrote: > On 30/01/2015 13:36, Chris Hegarty wrote: >> This is phase 1, of getting java.net.URL work with modules. >> >> Being able to effectively specify URL protocol handler factories as fully >

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-02 Thread Chris Hegarty
Just catching up… On 2 Feb 2015, at 08:42, Alan Bateman wrote: > On 01/02/2015 10:45, Peter Levart wrote: >> : >> >> I see. But if URLStreamHandlerFactories are only supposed to be located via >> the system class loader, is that different from what we have now when >> URLStreamHandlers are be

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-02 Thread Chris Hegarty
itted the implementation changes, so we can agree the spec changes first. They are much simpler now. -Chris. On 02/02/15 09:15, Chris Hegarty wrote: Just catching up… On 2 Feb 2015, at 08:42, Alan Bateman wrote: On 01/02/2015 10:45, Peter Levart wrote: : I see. But if URLStreamHandlerFact

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-02 Thread Chris Hegarty
On 02/02/15 11:00, Paul Sandoz wrote: On Jan 30, 2015, at 10:10 PM, Alan Bateman wrote: On 30/01/2015 15:35, Chris Hegarty wrote: : Update webrev and spec diffs: http://cr.openjdk.java.net/~chegar/8064924/01/ I think the javadoc looks much better now, thanks. Minor comments in URL

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-04 Thread Chris Hegarty
On 02/02/15 20:52, Alan Bateman wrote: I'm happy with this approach. One outstanding point from the discussion is whether the URLStreamHandlerFactory implementation will need to be granted RuntimePermission("setFactory"), if so then this will need to go into the javadoc. I think that we sh

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-04 Thread Chris Hegarty
Agreed. Updated in-place http://cr.openjdk.java.net/~chegar/8064924/03/specdiff/overview-summary.html -Chris. On 04/02/15 14:44, Alan Bateman wrote: On 04/02/2015 14:29, Peter Levart wrote: : I agree that this is the most appropriate way with which you can force some provider's class code (t

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-04 Thread Chris Hegarty
On 04/02/15 16:01, Peter Levart wrote: On 02/04/2015 04:45 PM, Alan Bateman wrote: On 04/02/2015 15:10, Weijun Wang wrote: It should be checked, otherwise a non-initialized parent object comes into being. In general then permission checks in constructors are a bad idea but we have an establish

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-09 Thread Chris Hegarty
Thank you for the comments Alan. On 06/02/15 10:20, Alan Bateman wrote: On 04/02/2015 15:11, Chris Hegarty wrote: Agreed. Updated in-place http://cr.openjdk.java.net/~chegar/8064924/03/specdiff/overview-summary.html I think the approach and naming is good. A few small comments on the

Re: [8u-dev] Request for approval: JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id

2015-02-10 Thread Chris Hegarty
On 10 Feb 2015, at 15:28, Konstantin Shefov wrote: > Hello, > > I have evaluated https://bugs.openjdk.java.net/browse/JDK-8071458 6933879 allowed a minimal additional set of non-alphanumeric characters. 8071458 was filed to examine the potential specification implications that arose during

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-10 Thread Chris Hegarty
On 10 Feb 2015, at 11:35, Alan Bateman wrote: > On 09/02/2015 14:57, Chris Hegarty wrote: >> : >> >> Updated webrev [ spec and implementation] : >> http://cr.openjdk.java.net/~chegar/8064924/04/ >> > The updated javadoc looks good. I haven't had a ch

Re: RFR 8064924: Update java.net.URL to work with modules

2015-02-13 Thread Chris Hegarty
On 13 Feb 2015, at 16:11, Alan Bateman wrote: > On 10/02/2015 16:20, Chris Hegarty wrote: >> On 10 Feb 2015, at 11:35, Alan Bateman wrote: >> >>> On 09/02/2015 14:57, Chris Hegarty wrote: >>>> : >>>> >>>> Updated webrev [ spec an

Re: RFR: JDK-8046893 - JNI exception pending in jdk/src/solaris/native/java/net: ExtendedOptionsImpl.c, PlainDatagramSocketImpl.c

2015-02-18 Thread Chris Hegarty
Looks ok to me Mark. -Chris. On 18/02/15 13:19, Mark Sheppard wrote: Hi please review the following small change http://cr.openjdk.java.net/~msheppar/8046893/webrev/ which addresses the parfait issue in https://bugs.openjdk.java.net/browse/JDK-8046893 regards Mark

Re: RFR: 7178362: Socket impls should ignore unsupported proxy types rather than throwing

2015-02-24 Thread Chris Hegarty
Sean, Thanks for moving this forward. I think it might be possible to simplify this by flipping the logic, like: diff --git a/src/java.base/share/classes/java/net/SocksSocketImpl.java b/src/java.base/share/classes/java/net/SocksSocketImpl.java --- a/src/java.base/share/classes/java/net/SocksSoc

Re: RFR: 7178362: Socket impls should ignore unsupported proxy types rather than throwing

2015-02-24 Thread Chris Hegarty
to test > for same. It should help preserve behaviour in that area. Good catch Sean. > updated webrev : http://cr.openjdk.java.net/~coffeys/webrev.7178362.v2/webrev/ Looks good. -Chris. > regards, > Sean. > >> On 24/02/2015 17:41, Chris Hegarty wrote: >> Sean, &g

Re: RFR: JDK-8065078 - NetworkInterface.getNetworkInterfaces() triggers intermittent test failures

2015-03-05 Thread Chris Hegarty
On 4 Mar 2015, at 21:53, Mark Sheppard wrote: > Hi > please oblige and review the following small change > http://cr.openjdk.java.net/~msheppar/8065078/webrev/ I agree with the increased buffer size, and the strategy you have employed. I think you just need to remove a few comments, otherwis

Re: [9] RFR of 8074937: ServerSocket.accept() API Descriptions should include past tense

2015-03-19 Thread Chris Hegarty
I would personally close this as 'not a bug'. I see no value in trying add additional clarification around something that has never, to the best of my knowledge, been the source of confusion. The description in JIRA seems overly pedantic. -Chris. On 19/03/15 14:47, Alan Bateman wrote: On 19

Re: RFR: 8075039: (sctp) com/sun/nio/sctp/SctpMultiChannel/SendFailed.java fails on Solaris only

2015-03-19 Thread Chris Hegarty
Looks ok to me Rob. -Chris. On 18/03/15 23:28, Rob McKenna wrote: Pressed send a little too early. This test was added by: 8067846: (sctp) InternalError when receiving SendFailedNotification http://hg.openjdk.java.net/jdk9/dev/jdk/rev/b10dc4dc6903 -Rob On 18/03/15 23:27, Rob McKenna wr

RFR [9] 8075139: Restore java.protocol.handler.pkgs to work as a fallback for migration

2015-04-14 Thread Chris Hegarty
The work done as part of JDK-8064924 [1] to introduce a new service type, java.net.spi.URLStreamHandlerProvider, provides a clean provider mechanism that will work well with modules. That part of the change should remain, but the removal of support to find handlers through the java.protocol.hand

Re: RFR [9] 8075139: Restore java.protocol.handler.pkgs to work as a fallback for migration

2015-04-15 Thread Chris Hegarty
On 14/04/15 20:33, Alan Bateman wrote: This looks okay to me although maybe we can use the opportunity to replace the use of StringTokenizer with a regex. Right. I used String.split("\\|"), but reverted to the original code as the regex doesn't use the fast-path. But you are right split i

Re: RFR [9] 8075139: Restore java.protocol.handler.pkgs to work as a fallback for migration

2015-04-15 Thread Chris Hegarty
On 15/04/15 15:16, Paul Sandoz wrote: On Apr 15, 2015, at 1:36 PM, Chris Hegarty wrote: Paul, Yes, one could use a Pattern.splitAsStream, sorry could not resist :-) assuming this area is not sensitive to bootstrap issues e.g. hander = p.splitAsStream().map(String::trim).flatMap(this

Re: RFR [9] 8075139: Restore java.protocol.handler.pkgs to work as a fallback for migration

2015-04-21 Thread Chris Hegarty
On 15 Apr 2015, at 16:43, Paul Sandoz wrote: > On Apr 15, 2015, at 4:35 PM, Chris Hegarty wrote: >>> >>> I marginally prefer using flatMap rather than map/filter e.g. change >>> getHandler to return Stream< URLStreamHandler> and change the last line to >

Re: RFR: JDK-8041677 - java/net/MulticastSocket/TestInterfaces failed on Oracle VM Virtual Ethernet Adapter

2015-05-26 Thread Chris Hegarty
Looks fine. Not for now, but sometime we should consider adding a utility to the test library to retrieve an appropriate set of network interfaces suitable for use in tests ( rather than patching all these tests individually ). -Chris. > On 26 May 2015, at 20:21, Mark Sheppard wrote: > > Hi

Re: RFR: JDK-8077377 - java/net/MulticastSocket/SetOutgoingIf.java fails intermittently with NullPointerException

2015-05-26 Thread Chris Hegarty
Looks fine Mark. We fixed a few other tests recently to be more tolerant of network interference. -Chris. > On 26 May 2015, at 20:34, Mark Sheppard wrote: > > Hi > please oblige and review the following change > http://cr.openjdk.java.net/~msheppar/8077377/webrev/ > > to address the issue

Re: RFR 8081678: Add Stream returning methods to classes where there currently exist only Enumeration returning methods

2015-06-03 Thread Chris Hegarty
Looks good Paul, just a few minor comments. ( looked at all, but *security* and *sql* ) NetworkInterface s/Enumertion/Stream L127 * will be returned in the Enumeration. However, if the caller has the s/an/a L131 * @return an Stream object with all or a subset of the InetAddresses

Re: [9] RFR of 8129510: java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java should exclude testing the Teredo tunneling interface on Windows

2015-06-23 Thread Chris Hegarty
Brian, Your changes look ok to me. -Chris. On 22 Jun 2015, at 22:56, Brian Burkhalter wrote: > Please review this test-only change at your convenience. > > Issue:https://bugs.openjdk.java.net/browse/JDK-8129510 > Patch:see diff below > > The analysis in the comments on > htt

Re: [Preliminary] RFR JDK-8064925: URLConnection::getContent needs to be updated to work with modules

2015-06-24 Thread Chris Hegarty
Pavel, The latest changes look good to me. Can you please add a license header to the service descriptor file ( I know we don't do this consistently ). -Chris > On 24 Jun 2015, at 13:20, Pavel Rappo wrote: > > Thanks Alan. Both issues are fixed now, webrev updated in place. > >> On 24 Jun 20

Re: RFR: JDK-8129507 - sun/net/www/protocol/http/B6369510.java fails intermittently

2015-06-25 Thread Chris Hegarty
Looks good Mark. -Chris. On 24 Jun 2015, at 16:34, Mark Sheppard wrote: > Hi > Please oblige and review the change below > which addresses the issue > https://bugs.openjdk.java.net/browse/JDK-8129507 > > This amends the url.openConnection() to take the Proxy.NO_PROXY argument, > so that a di

Re: [9] RFR: 8129444: "socksProxyVersion" system property is ignored if Socket(Proxy) constructor is used

2015-07-02 Thread Chris Hegarty
This change looks good to me Artem, and completes the ( incomplete ) work I done on this a few years back. Though why anyone is still using SOCKS v4 I’ll never know! I can sponsor this change for you. -Chris. On 26 Jun 2015, at 18:22, Artem Smotrakov wrote: > Hello, > > Please review this

Re: [9] RFR: 8129444: "socksProxyVersion" system property is ignored if Socket(Proxy) constructor is used

2015-07-03 Thread Chris Hegarty
On 2 Jul 2015, at 16:36, Chris Hegarty wrote: > This change looks good to me Artem, and completes the ( incomplete ) work I > done on this a few years back. Though why anyone is still using SOCKS v4 > I’ll never know! > > I can sponsor this change for you.

Re: Review request: JDK-8080108: [TEST_BUG] ERROR: No IPv6 address returned from platform

2015-08-04 Thread Chris Hegarty
Alexander, Wow, that's a lot of boiler plate for a manual test. Surely a README.txt, or similar would be sufficient? I noticed that with your changes, now this test has a dependency on the jdk.desktop module ( imports from java.awt.* ). Is it really necessary to have a dialog window pop-up?

Re: Review request: JDK-8080108: [TEST_BUG] ERROR: No IPv6 address returned from platform

2015-08-05 Thread Chris Hegarty
On 04/08/15 13:53, Alexander Fomin wrote: Hi Chris On 04.08.2015 13:29, Chris Hegarty wrote: Alexander, Wow, that's a lot of boiler plate for a manual test. Surely a README.txt, or similar would be sufficient? I noticed that with your changes, now this test has a dependency o

Re: RFR - 8087190: Regression in sun.net.util.IPAddressUtil.isIPv4LiteralAddress(String)

2015-08-25 Thread Chris Hegarty
Looks good to me too. -Chris. On 23 Aug 2015, at 21:04, Claes Redestad wrote: > Looks good to me. > > /Claes (not a Reviewer) > > On 2015-08-21 21:49, Rob McKenna wrote: >> Hi folks, looking for a review for this simple change. >> >> The change for https://bugs.openjdk.java.net/browse/JDK-80

Re: WebSocket client API

2015-09-03 Thread Chris Hegarty
On 3 Sep 2015, at 10:13, Andrej Golovnin wrote: > Hi Pavel, > >> So you need the ability to send pings and unsolicited pongs. Do you handle >> pong >> replies from the server? If so, do you control their arrival times and their >> consistency with previous pings sent? What about unsolicited pon

Re: WebSocket client API

2015-09-03 Thread Chris Hegarty
On 3 Sep 2015, at 11:49, Andrej Golovnin wrote: > Hi Chris, > >> Will adding the ability to send ping(ByteBuffer) be sufficient for your >> usage? If so, then I think we should add it, but not pong. The >> implementation will automatically send a pong message in response to >> receiving a p

Re: RFR 8080486: JNI exception pending in jdk/src/java.base/windows/native/libnet/DualStackPlainSocketImpl.c

2015-09-04 Thread Chris Hegarty
The changes look fine to me too. -Chris. On 04/09/15 16:04, Daniel Fuchs wrote: Hi Vyom, I'm not a net/JNI expert but what you are proposing looks good to me too. Ivan has already given his assent. Unless I hear objections - or comments from other reviewers, I will sponsor this change and pus

Re: RFR 8080402: File Leak in jdk/src/java.base/share/classes/sun/net/sdp/SdpSupport.java

2015-09-07 Thread Chris Hegarty
Hi Vyom, On 07/09/15 10:26, Vyom Tewari wrote: Hi everyone, Can you please review my changes for below bug. Bug: JDK-8080402 : File Leak in jdk/src/java.base/share/classes/sun/net/sdp/SdpSupport.java Webrev: http://cr.openjdk.java.net/~dfuchs/vyom/8080402/webrev.01/ This change ensure th

Re: RFR 8072466: Deadlock when starting MulticastSocket and DatagramSocket

2015-09-07 Thread Chris Hegarty
This looks like a nice cleanup, and fix. Thanks Ivan. -Chris. On 05/09/15 15:25, Ivan Gerasimov wrote: Hi everyone! The fix didn't bring enough attention back in February for some reason. So, I'd like to re-request a review. I've added a regression test, which reliably reproduces a deadlock o

Re: [patch] JDK-4906983

2015-09-08 Thread Chris Hegarty
On 8 Sep 2015, at 05:56, David Holmes wrote: > Hi Sebastian, > > On 8/09/2015 1:54 PM, Sebastian Sickelmann wrote: >> Hi, >> >> please find the link to the webrev[1] hosted at my dropbox in my first mail >> in this thread at the buttom of this mail. >> >> A direkt link to the including patch

Re: RFR 8080402: File Leak in jdk/src/java.base/share/classes/sun/net/sdp/SdpSupport.java

2015-09-08 Thread Chris Hegarty
On 7 Sep 2015, at 17:41, Mark Sheppard wrote: > a couple of other considerations in the context of this issue perhaps? > > in this s is being duped onto fd, and part of the dup2 operation is the > closing of fd, but > what's is the expected state of file descriptor fd in the event of a dup2 >

Re: RFR: JDK-4906983

2015-09-10 Thread Chris Hegarty
On 8 Sep 2015, at 21:01, Sebastian Sickelmann wrote: > Hi, > > Please find my small patch[1] to javadoc in java.net.URL that adresses > JDK-4906983(javadoc-fix)[2]. > > I signed the SCA/OCA some time ago. Feel free to check at the OCA > Signatures-List[3] > > thanks to david buck for hosting

Re: RFR: JDK-4906983

2015-09-10 Thread Chris Hegarty
the valid values from @param port, and add something like the following to MalformedURLException: “.., or the port is a negative number other than -1” ? -Chris. On 10 Sep 2015, at 11:13, Chris Hegarty wrote: > > On 8 Sep 2015, at 21:01, Sebastian Sickelmann > wrote: > >>

Re: RFR 4906983: java.net.URL constructors throw MalformedURLException in undocumented way

2015-09-13 Thread Chris Hegarty
e >> valid port numbers also above 65535 and the special -1. >> >> But i asked myself should >> new URL("http://server:-1/path";); >> be realy a valid URL? What do you think? >> >> Special thanks to David who hosted the new webrev: >> http

Re: RFR 4906983: java.net.URL constructors throw MalformedURLException in undocumented way

2015-09-13 Thread Chris Hegarty
; <http://cr.openjdk.java.net/~dbuck/4906983.1/> I think these changes are good as is ( pending the outcome of the mail exchange with Mark Sheppard ). -Chris. > -- Sebastian > > > Am 10.09.2015 um 12:38 schrieb Chris Hegarty: >> Another minor comment... >> >>

Re: RFR 4906983: java.net.URL constructors throw MalformedURLException in undocumented way

2015-09-14 Thread Chris Hegarty
On 13/09/15 20:18, Sebastian Sickelmann wrote: Am 13.09.2015 um 16:25 schrieb Chris Hegarty: On 13 Sep 2015, at 14:07, Mark Sheppard <<mailto:mark.shepp...@oracle.com>mark.shepp...@oracle.com> wrote: Hi I don't think the URL string http://server:-1/path can be considered a

Re: RFR 4906983: java.net.URL constructors throw MalformedURLException in undocumented way

2015-09-14 Thread Chris Hegarty
at is why I asked the question. -Chris. OK, that's fine On 13/09/2015 15:25, Chris Hegarty wrote: Is this suggested wording for the “spec” accepting constructors? I think what we have for the constructors accepting protocol, host, port, etc, is more accurate.

Re: RFR 4906983: java.net.URL constructors throw MalformedURLException in undocumented way

2015-09-14 Thread Chris Hegarty
> On 14 Sep 2015, at 16:45, Sebastian Sickelmann > wrote: > > Am 14.09.2015 um 10:53 schrieb Chris Hegarty: >> On 13/09/15 20:18, Sebastian Sickelmann wrote: >>> Am 13.09.2015 um 16:25 schrieb Chris Hegarty: >>>> >>>>> On 13 Sep 2

Re: RFR 8073542 : File Leak in jdk/src/java/base/unix/native/libnet/PlainDatagramSocketImpl.c

2015-09-16 Thread Chris Hegarty
The changes look good to me Vyom. -Chris. On 16/09/15 10:08, Vyom Tewari wrote: Hi All, Please review my changes for below bug. Bug: JDK-8073542 : File Leak in jdk/src/java/base/unix/native/libnet/PlainDatagramSocketImpl.c Webrev: http://cr.openjdk.java.net/~dfuchs/vyom/8073542/webrev.

Re: [9] RFR 8137174: NTLM impl should use doPrivileged when it reads system properties

2015-09-30 Thread Chris Hegarty
This looks ok to me Artem. -Chris On 30/09/15 11:11, Artem Smotrakov wrote: Hello, Please review this small fix which updates NTLM implementation to use doPrivileged() methods when it reads system properties. Currently it requires property permissions to read "ntlm.debug" and "ntlm.version" sy

<    1   2   3   4   5   6   7   8   9   10   >