350 Commits

Author SHA1 Message Date
Daniel Fuchs
18b1dfcafa 8181867: [tests] Reorganize EchoHandlers
This fix reorganize some test files and rename some test classes. Several classes named EchoHandler in the unnamed package are renamed to make it clear what classes (and sources) tests that use these EchoHandler implementations effectively depend on.

Reviewed-by: chegar
2017-06-09 16:52:07 +01:00
Daniel Fuchs
3d902cf92a 8180044: java/net/httpclient/ManyRequests.java failed due to timeout
Fixes several race conditions observed while testing.

Reviewed-by: michaelm, msheppar, prappo
2017-06-08 12:41:07 +01:00
Daniel Fuchs
aea187fdd2 8180279: java/net/httpclient/whitebox/Driver.java failed due to timeout
Fixed a race condition in RawChannelTest.java

Reviewed-by: prappo, michaelm
2017-05-25 11:54:42 +01:00
Michael McMahon
92ce207628 8180498: Remove httpclient internal APIs which supply ByteBuffers to read calls
Reviewed-by: chegar, dfuchs
2017-05-22 17:31:07 +01:00
Michael McMahon
412db99011 8180303: Remove technote doc link from ProxySelector/B8035158.java test
Reviewed-by: chegar
2017-05-12 17:38:30 +01:00
Mark Sheppard
a83a070a03 7155591: test/java/net/MulticastSocket/SetOutgoingIf.java fails on macOS
Reviewed-by: chegar, bpb
2017-05-11 15:05:32 +01:00
Pavel Rappo
c74eb4302e 8179021: Latest bugfixes to WebSocket/HPACK from the sandbox repo
Reviewed-by: dfuchs
2017-05-10 12:36:14 +01:00
Magnus Ihse Bursie
97df63049c 8179889: Fix typographic errors in copyright headers
Reviewed-by: erikj, dholmes
2017-05-09 12:57:30 +02:00
Michael McMahon
b0ddb372f0 8175814: Update default HttpClient protocol version and optional request version
Reviewed-by: chegar, dfuchs
2017-04-28 14:16:33 +01:00
Chris Hegarty
fdb24eea0b 8177536: Avoid Apple Peer-to-Peer interfaces in networking tests
Reviewed-by: michaelm, rriggs
2017-04-14 10:47:08 +01:00
Daniel Fuchs
4288d68f08 8178147: Race conditions in timeout handling code in http/2 incubator client
Timeout handling code (in particular cancel(IOException)) is modified to take into account cancellation arising before exchange implementation is established or response completable future is created. TimeoutEvent::compareTo method is modified to be consistent with TimeoutEvent::equals.

Reviewed-by: prappo, chegar, michaelm
2017-04-11 16:32:38 +01:00
Amy Lu
7e65c94ef9 8177383: Wrong @modules in java/io/FilePermission/ReadFileOnPath.java
Reviewed-by: alanb
2017-03-22 19:40:20 +08:00
Mark Sheppard
30790d8352 8175325: NetworkInterface.getInterfaceAddresses throws NPE when no addresses
Reviewed-by: chegar, martin
2017-03-07 22:35:45 +00:00
Pavel Rappo
191aad0e62 8164625: Pooled HttpConnection should be removed during close
Reviewed-by: dfuchs, michaelm
2017-02-24 17:05:00 +00:00
Chris Hegarty
5ae76b5084 8175261: Per-protocol cache setting not working for JAR URLConnection
Reviewed-by: dfuchs, michaelm
2017-02-24 10:37:30 +00:00
Sergey Kuksenko
4a259fb5dd 8175274: Fix httpclient asynchronous usage
Reviewed-by: dfuchs, michaelm
2017-02-21 11:08:34 +00:00
Paul Sandoz
50a683ef67 8174151: URLClassLoader no longer uses custom URLStreamHandler for jar URLs
Reviewed-by: alanb, chegar
2017-02-14 14:29:58 -08:00
Daniel Fuchs
28fc67ce7e 8174833: java/net/httpclient/http2/BasicTest.java always fails but always report success
Reviewed-by: michaelm
2017-02-13 17:18:48 +00:00
Michael McMahon
a7c0fa1045 8174716: java/net/httpclient/security/Driver.java failing in JDK 9
Reviewed-by: alanb
2017-02-10 09:55:19 +00:00
Daniel Fuchs
ea316f74e0 8173315: java/net/HttpURLConnection/SetAuthenticator/HTTPSetAuthenticatorTest.java fails intermittently
Ensure that each test case creates a new server with a new local port number to preserve test isolation.

Reviewed-by: michaelm
2017-02-03 11:29:17 +00:00
Arno Zeller
4d92a188b2 8170868: DefaultProxySelector should use system defaults on Windows, MacOS and Gnome
Reviewed-by: chegar, simonis, clanger, stuefe, erikj
2017-02-02 10:28:47 +01:00
Sergei Kovalev
6792c8bb23 8173475: java/net/HttpURLConnection/SetAuthenticator tests have undeclared dependency on java.logging module
Reviewed-by: dfuchs
2017-02-01 16:31:38 +03:00
Michael McMahon
c89c526762 8163449: Allow per protocol setting for URLConnection defaultUseCaches
Reviewed-by: chegar, dfuchs
2017-01-12 18:02:48 +00:00
Vyom Tewari
7516f0284c 8168840: InetAddress.getByName() throws java.net.UnknownHostException no such interface when used with virtual interfaces on Solaris
Reviewed-by: chegar, clanger
2016-12-23 13:53:22 +05:30
Sergei Kovalev
88d37ce5fd 8170864: java/net/URLClassLoader/closetest/CloseTest.java has undeclared dependencies
Reviewed-by: chegar, dfuchs
2016-12-13 17:02:00 +03:00
Michael McMahon
dd620cb591 8170920: SO_RCVBUF and SO_SNDBUF options problem for network channels on MacOS
Reviewed-by: chegar, clanger
2016-12-12 14:40:56 +00:00
Daniel Fuchs
0a0e551eed 8171081: Put TimeoutOrderingTest in ProblemList for solaris-all
Reviewed-by: chegar
2016-12-12 13:34:10 +00:00
Michael McMahon
2de1b5ce26 8170648: Move java.net.http package out of Java SE to incubator namespace
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Co-authored-by: Sergey Kuksenko <sergey.kuksenko@oracle.com>
Co-authored-by: Anthony Vanelverdinghe <anthony.vanelverdinghe@gmail.com>
Reviewed-by: chegar, dfuchs, michaelm, prappo, skuksenko
2016-12-09 11:35:02 +00:00
Felix Yang
c969db1c89 8169115: java/net/InetAddress/ptr/lookup.sh failed intermittently
Reviewed-by: dsamersoff
2016-12-08 07:21:50 -08:00
Felix Yang
2d28684636 8043838: Test java/net/ServerSocket/AcceptCauseFileDescriptorLeak.java failed intermittently in nightly
Reviewed-by: chegar, dfuchs
2016-12-07 17:15:03 -08:00
Daniel Fuchs
31337809b0 8169495: Add a method to set an Authenticator on a HttpURLConnection
New public method java.net.HttpURLConnection::setAuthenticator allows to specify an authenticator to use with a given connection.

Reviewed-by: chegar
2016-12-02 13:18:50 +00:00
Felix Yang
1c3de25a5f 8162521: java/net/Authenticator/B4933582.sh fails intermittently with BindException
Reviewed-by: dfuchs
2016-12-01 06:54:01 -08:00
Alan Bateman
30bcdb962c Merge 2016-12-01 11:16:23 +00:00
Alan Bateman
fbe85300bf 8169069: Module system implementation refresh (11/2016)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Reviewed-by: plevart, chegar, psandoz, mchung, alanb, dfuchs, naoto, coffeys, weijun
2016-12-01 08:57:53 +00:00
Daniel Fuchs
f3cb8c41dc 8169068: Add a new method: java.net.Authenticator.getDefault()
Reviewed-by: chegar
2016-11-16 15:40:06 +00:00
Mandy Chung
d74e2a09ac 6479237: (cl) Add support for classloader names
Reviewed-by: alanb, bchristi, coleenp, dfuchs, lfoltan, psandoz, sspitsyn
2016-11-03 18:08:28 -07:00
Sergei Kovalev
12c36f7ab7 8169002: Several java/net/httpclient have undeclared dependency on java.logging module
Reviewed-by: chegar, rriggs, dfuchs
2016-11-03 16:19:29 +03:00
Amy Lu
a35d0116c4 8143097: java/net/ipv6tests/UdpTest.java fails intermittently with "checkTime failed: got 1998 expected 4000"
Reviewed-by: chegar
2016-11-03 15:40:55 +08:00
Felix Yang
447e8a5232 8156504: java/net/URLPermission/nstest/lookup.sh fails intermittently
Reviewed-by: chegar, dfuchs
2016-11-02 18:44:59 -07:00
Weijun Wang
ba9df3533c 8164705: Remove pathname canonicalization from FilePermission
Reviewed-by: alanb, bpb
2016-10-10 08:28:50 +08:00
Sergei Kovalev
bf41569209 8166791: Fix module dependencies for networking component tests
Reviewed-by: chegar, alanb
2016-10-03 18:33:34 +03:00
Vyom Tewari
0a885c4bc8 8153674: Expected SocketException not thrown when calling bind() with setReuseAddress(false)
Reviewed-by: chegar, msheppar
2016-10-04 21:59:16 +05:30
Felix Yang
e168404209 8154525: java/net/ServerSocket/ThreadStop.java fails intermittently with error while cleaning up threads after test
Reviewed-by: chegar
2016-09-27 01:36:31 -07:00
Felix Yang
2d35d5bfc3 8130657: com/sun/net/httpserver/Test5.java failed with java.lang.RuntimeException: wrong string result
8085575: java/net/Socket/InheritHandle.java fails intermittently with "Address already in use"

Reviewed-by: dfuchs
2016-09-26 08:19:07 -07:00
Felix Yang
8469097dde 8085049: java/net/MulticastSocket/TimeToLive.java fails intermittently with "Address already in use"
Reviewed-by: chegar
2016-09-23 03:15:00 -07:00
Felix Yang
0d0e86808b 8166359: java/net/URLPermission/nstest/lookup.sh fails if proxy is set since fix for JDK-8161016
Reviewed-by: chegar
2016-09-21 02:19:59 -07:00
Sergei Kovalev
3b0d7a4511 8166285: Missing dependencies java.httpclient for tests from java/net pachage
Reviewed-by: chegar
2016-09-20 12:56:54 +03:00
Sean Coffey
6784a0986e 8165711: java/net/SetFactoryPermission/SetFactoryPermission.java needs to run in ovm mode
Reviewed-by: chegar
2016-09-08 16:16:44 +01:00
Ramanand Patil
6906b1ad96 8161016: Strange behavior of URLConnection with proxy
Reviewed-by: shade, chegar
2016-09-01 10:35:38 +05:30
Alexandre Iline
3ff1d554b4 8164982: Fix legal notices in java/lang, java/net, java/util tests
Reviewed-by: darcy, iris
2016-08-31 09:46:50 -07:00