Commit Graph

1387 Commits

Author SHA1 Message Date
Julia Boes
4dafa3033f 8231161: Wrong return type in code sample in Collector API documentation
Correct declaration of container from R to A and add compilation test

Reviewed-by: smarks, lancea
2019-10-03 18:59:56 +01:00
Daniel Fuchs
b3477399d0 8232625: HttpClient redirect policy should be more conservative
When enabled, HttpClient redirect is fixed to drop the body when the request method is changed, and to relay any redirection code it does not understand to the caller.

Reviewed-by: chegar
2019-10-23 15:54:39 +01:00
Jan Lahoda
a1894385b3 8226585: Improve javac messages for using a preview API
Avoiding deprecation for removal for APIs associated with preview features, the features are marked with an annotation, and errors/warnings are produced for them based on the annotation.

Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Reviewed-by: erikj, mcimadamore, alanb
2019-10-21 15:38:26 +02:00
Amy Lu
b404ddd9a2 8232195: Enable BigInteger tests: DivisionOverflow, SymmetricRangeTests and StringConstructorOverflow
Reviewed-by: bpb, darcy
2019-10-21 14:04:16 +08:00
Julia Boes
f8440c33d2 8225499: InetSocketAddress::toString not friendly to IPv6 literal addresses
Enclose IPv6 literal in brackets and adjust string format for unresolved addresses

Reviewed-by: dfuchs, chegar
2019-10-17 08:56:06 +01:00
Brian Burkhalter
17c057bd76 8229333: java/io/File/SetLastModified.java timed out
Reviewed-by: lancea, rriggs
2019-10-01 07:37:39 -07:00
Daniel Fuchs
8e98ce54bf 8231506: Fix some instabilities in a few networking tests
Reviewed-by: alanb, chegar, msheppar
2019-10-01 12:10:33 +01:00
Patrick Concannon
0364ad244a 8229338: clean up test/jdk/java/util/RandomAccess/Basic.java
General refactoring of code and increased test coverage

Reviewed-by: lancea, aefimov
2019-09-30 17:19:58 +01:00
Prasanta Sadhukhan
a0c379d9bd Merge 2019-09-25 14:52:33 +05:30
Michael McMahon
b8bda05c60 8231450: Copyright header line omitted from 8231187 changeset
Reviewed-by: chegar
2019-09-25 09:38:20 +01:00
Phil Race
4a4fbbaaa9 8231243: [TESTBUG] CustomFont.java cannot find font file
Reviewed-by: serb
2019-09-24 09:09:15 -07:00
Doug Lea
a9254cbcfa 8231032: ThreadMXBean locking tests fail after JSR 166 refresh
Reviewed-by: martin, mchung, dholmes
2019-09-27 12:20:14 -07:00
Daniel Fuchs
8578ab1c23 8231037: java/net/InetAddress/ptr/Lookup.java fails intermittently due to reverse lookup failed
The test is updated to verify whether reverse lookup is altogether possible.

Reviewed-by: chegar
2019-09-27 14:43:35 +01:00
Michael McMahon
aa5329e0d3 8231187: SelectorProvider.inheritedChannel() returns TCP socket channel for Unix domain socket
Reviewed-by: alanb, chegar
2019-09-24 16:19:11 +01:00
Patrick Concannon
11d43732bc 8217825: Verify @AfterTest is used correctly in WebSocket tests
Remove @AfterTest tags; added in explicit closing of resources e.g. httpServer, webSocket, etc

Reviewed-by: dfuchs, prappo
2019-09-23 16:53:16 +01:00
Vladimir Ivanov
e515a609e9 8234401: ConstantCallSite may stuck in non-frozen state
Reviewed-by: psandoz
2019-11-26 16:09:17 +03:00
Daniel Fuchs
8333ea85fa 8233296: MulticastSocket getOption/setOption inverts the value of IP_MULTICAST_LOOP
MulticastSocket.getOption(StandardSocketOption.IP_MULTICAST_LOOP) now returns true if loopback mode is enabled, and MulticastSocket.setOption(StandardSocketOption.IP_MULTICAST_LOOP, true) enables loopback mode. No other behavioral changes.

Reviewed-by: alanb, chegar
2019-11-22 11:52:48 +00:00
Christoph Langer
b240008ba2 8234089: (zipfs) Remove classes JarFileSystemProvider and JarFileSystem
Reviewed-by: lancea, alanb
2019-11-22 09:25:09 +01:00
Patrick Concannon
6a7f775347 8234083: DatagramSocket should report SO_BROADCAST as a supported option
DatagramSocket had a setBroadcast and getBroadcast setter/getter pair but curiously didn't report SO_BROADCAST as a supported option. Note: the source code changes were accidentally pushed with 8234103 so this changeset only has the test changes. The reviewers listed below had already reviewed the full (source+test) changes.

Reviewed-by: alanb, vtewari, chegar
2019-11-21 16:33:00 +00:00
Chris Hegarty
262d5f1790 8232101: (sctp) Add minimal sanity tests for SCTP
Reviewed-by: alanb
2019-11-21 12:14:26 +00:00
Brian Burkhalter
d6b7266547 8231254: (fs) Add test for macOS Catalina changes to protect system software
Reviewed-by: alanb
2019-09-23 13:59:41 -07:00
Alan Bateman
27e0cdf12d 8236184: (dc) IP_MULTICAST_* and IP_TOS socket options not effective
Reviewed-by: dfuchs
2019-12-19 08:36:40 +00:00
Kiran Sidhartha Ravikumar
a1b2e1042c 5064980: URI compareTo inconsistent with equals for mixed-case escape sequences
Reviewed-by: chegar, dfuchs
2019-12-17 16:06:27 +00:00
Daniel Fuchs
e16d4a45b0 8235925: java/net/Socket/HttpProxy.java fails on IPv4 only hosts and other small cleanups
HttpProxy test is fixed to take into account the possibility that the host may be configured with IPv4 only

Reviewed-by: chegar
2019-12-17 16:11:16 +01:00
Ioi Lam
1b4b652408 8235970: [TESTBUG] Remove dependency of sun.tools.jar from RedefineClassHelper
Reviewed-by: alanb
2019-12-16 10:04:36 -08:00
Jesper Wilhelmsson
83163dbfe6 Merge 2019-12-16 17:43:20 +01:00
Harold Seigel
6ccfc65ec3 8235922: [TESTBUG]TestRecordAttrGenericSig.java and TestRecordAttr.java are failing
Replace hard-wired JDK version 14 with mechanisms that get the latest JDK version.

Reviewed-by: dcubed
2019-12-13 19:50:43 +00:00
Naoto Sato
20b1410d0c 8235238: Parsing a time string ignores any custom TimeZoneNameProvider
Reviewed-by: joehw, rriggs
2019-12-13 08:17:28 -08:00
Joe Darcy
890826bf5b 8225361: Start of release updates for JDK 15
8235497: Add SourceVersion.RELEASE_15
8235528: Add source 15 and target 15 to javac

Reviewed-by: erikj, jjg, jlahoda, dholmes, alanb, hseigel, mikael, chegar
2019-12-10 16:38:53 -08:00
Chris Hegarty
0b881387f2 8231504: Update networking tests to avoid implicit dependency on the system proxies
Reviewed-by: dfuchs
2019-09-27 09:55:35 +01:00
Brian Burkhalter
12178ec008 8231174: (fs) FileTime should have 100ns resolution (win)
Reviewed-by: alanb
2019-09-25 11:44:52 -07:00
Tianmin Shi
2b56811616 8231387: java.security.Provider.getService returns random result due to race condition with mutating methods in the same class
Synchronize access to legacyMap in Provider.getService.

Reviewed-by: valeriep
2019-09-25 08:29:03 -07:00
Daniel Fuchs
7135b5dd9c 8235141: Specify the required standard socket options for the socket types in the java.net package
Reviewed-by: alanb, chegar
2019-12-10 13:22:52 +00:00
Sergey Bylokhov
f8a875bfce 8231027: Correct typos
Reviewed-by: lancea, dholmes, erikj
2019-09-17 19:52:51 -07:00
Doug Lea
eb1eadb69f 8225490: Miscellaneous changes imported from jsr166 CVS 2019-09
Reviewed-by: martin, alanb
2019-09-14 11:26:26 -07:00
Doug Lea
9275097a02 8145138: CyclicBarrier/Basic.java failed with "3 not equal to 4"
Reviewed-by: martin, alanb
2019-09-14 11:26:26 -07:00
Doug Lea
064f69d6ab 8221168: java/util/concurrent/CountDownLatch/Basic.java fails
Reviewed-by: martin, alanb
2019-09-14 11:24:14 -07:00
Doug Lea
f634f777f6 8227235: rare failures in testForkHelpQuiesce tck tests
Reviewed-by: martin, alanb
2019-09-14 11:20:57 -07:00
Doug Lea
80fe274875 8229442: AQS and lock classes refresh
Reviewed-by: martin
2019-09-14 11:16:40 -07:00
Ivan Gerasimov
5e7e0e7bbe 8230829: Matcher matches a surrogate pair that crosses border of the region
Reviewed-by: naoto
2019-09-12 11:07:35 -07:00
Daniel Fuchs
e9eaba3d53 8230858: Replace wildcard address with loopback or local host in tests - part 23
Add new traces for better diagnosis, refrain binding to the wildcard address when possible.

Reviewed-by: chegar, xuelei
2019-09-12 15:46:11 +01:00
Brian Burkhalter
4285853d91 8230342: LineNumberReader.getLineNumber() returns inconsistent results after EOF
Reviewed-by: rriggs, dfuchs
2019-09-11 12:32:01 -07:00
Naoto Sato
ee9bd9bf04 8230136: DateTimeFormatterBuilder.FractionPrinterParser#parse fails to verify minWidth
Reviewed-by: joehw, scolebourne, rriggs
2019-09-11 08:50:03 -07:00
Naoto Sato
28b972e5ce 8229960: Remove sun.nio.cs.map system property
Reviewed-by: alanb
2019-09-10 12:51:05 -07:00
Mandy Chung
5d397eea9f 8229785: MethodType::fromMethodDescriptorString should require security permission if loader is null
Reviewed-by: vromero
2019-09-10 10:35:52 -07:00
Naoto Sato
ea0fbbca51 8230284: Accounting currency format support does not cope with explicit number system
Reviewed-by: rriggs
2019-09-09 12:42:01 -07:00
Daniel Fuchs
10e4fd4b95 8230526: jdk.internal.net.http.PlainProxyConnection is never reused by HttpClient
Fixed the PlainProxyConnection lookup key.

Reviewed-by: chegar
2019-09-09 18:23:39 +01:00
Patrick Concannon
1f87cb017f 8230132: java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java to skip Teredo Tunneling Pseudo-Interface
The test is updated to skip Teredo pseudo interfaces on windows.

Reviewed-by: michaelm, vtewari, aefimov
2019-09-09 16:13:43 +01:00
Naoto Sato
2aac0e925d 8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
Reviewed-by: rriggs
2019-09-05 17:38:54 -07:00
Brian Burkhalter
4d70cdac4f 8187898: PrintStream should override FilterOutputStream#write(byte[]) with a method that has no throws clause
Reviewed-by: alanb, rriggs, lancea, darcy
2019-09-05 16:26:53 -07:00
Brian Burkhalter
d2db14b836 8229280: Test failures on several linux hosts after JDK-8181493
Reviewed-by: alanb, clanger, dfuchs
2019-09-05 14:12:01 -07:00
John Jiang
655cf14138 8228967: Trust/Key store and SSL context utilities for tests
Reviewed-by: xuelei
2019-09-05 14:55:21 +08:00
Daniel Fuchs
f71db3074c 8230435: Replace wildcard address with loopback or local host in tests - part 22
Fixes tests to use the loopback address whenever possible. It also fixes some safe publishing issues, or add diagnostics in some of the tests.

Reviewed-by: michaelm
2019-09-04 18:10:07 +01:00
Julia Boes
7b49c40ee9 8171405: java/net/URLConnection/ResendPostBody.java failed with "Error while cleaning up threads after test"
Test cleaned up to improve safe termination

Reviewed-by: michaelm, vtewari, dfuchs
2019-09-04 17:36:53 +01:00
Jaikiran Pai
6b2e444aa1 8223714: HTTPSetAuthenticatorTest could be made more resilient
HTTPTestServer (in the test infrastructure) will no longer stop accepting requests if a previous request processing failed

Reviewed-by: dfuchs
2019-08-30 17:22:55 +05:30
Patrick Concannon
aa5d8f64ee 8193596: java/net/DatagramPacket/ReuseBuf.java failed due to timeout
The test is changed to bind to InetAddress.getLocalHost() instead of binding to the wildcard.

Reviewed-by: alanb, dfuchs, msheppar
2019-08-30 12:44:52 +01:00
Jaikiran Pai
6fa4babbb2 8230310: SocksSocketImpl should handle the IllegalArgumentException thrown by ProxySelector.select usage
Catch the IAE thrown by ProxySelector.select and wrap it into a IOException

Reviewed-by: dfuchs
2019-08-28 20:05:43 +05:30
Prasanta Sadhukhan
bcff4990ad Merge 2019-08-29 15:09:48 +05:30
Jaikiran Pai
f8e6dcdd09 8230220: java/net/HttpURLConnection/HttpURLProxySelectionTest.java fails intermittently
Fix the test to use volatile on members which are accessed across threads

Reviewed-by: dfuchs
2019-08-27 16:17:40 +05:30
Alexey Ivanov
11feeaa533 8222108: Reduce minRefreshTime for updating remote printer list on Windows
Reviewed-by: prr, serb
2019-08-18 21:36:01 +01:00
Matthias Baesken
313cb3ce76 8229706: java/net/MulticastSocket/NoLoopbackPackets.java fails on some AIX machines
Reviewed-by: chegar, clanger
2019-08-14 15:07:04 +02:00
Julia Boes
fb3b0ab1fb 8230000: some httpclients testng tests run zero test
Two tests needed to declared their test methods public, the last one was a simple abstract framework for subclasses and needed its @test keyword removed.

Reviewed-by: chegar, aefimov, dfuchs
2019-08-26 14:48:12 +01:00
Jaikiran Pai
1d67d474a5 8177648: getResponseCode() throws IllegalArgumentException caused by protocol error while following redirect
Reviewed-by: michaelm, chegar, dfuchs
2019-08-26 12:25:49 +01:00
Julia Boes
ce3face998 8229485: Add decrementExact(), incrementExact(), and negateExact() to java.lang.StrictMath
Three methods are added to StrictMath for consistency with Math. Tests are updated accordingly.

Reviewed-by: bpb, lancea, igerasim, dfuchs, joehw, rriggs
2019-08-23 19:55:08 +01:00
Patrick Concannon
a9f92bec7f 8078219: Verify lack of @test tag in files in java/net test directory
Reviewed-by: alanb
2019-08-22 18:54:56 +01:00
Nick Gasson
84686488e8 8229912: [TESTBUG] java/net/Socks/SocksIPv6Test fails without IPv6
Reviewed-by: alanb, dfuchs
2019-08-22 10:53:48 +08:00
Roger Riggs
de8d01d4d3 8207814: (proxy) upgrade the proxy class generator
Reviewed-by: mchung
2019-08-21 16:19:17 -04:00
Patrick Concannon
c99c1f8d55 8229916: Delete redundant test java/net/Socket/reset/Test.java
Remove java/net/Socket/reset/Test.java which misses an @test tag and is obsoleted by java/net/Socket/ConnectionReset.java

Reviewed-by: alanb
2019-08-20 15:40:49 +01:00
Prasanta Sadhukhan
93f105e32a Merge 2019-07-25 11:31:07 +05:30
Mandy Chung
068575e9b1 8173978: Lookup.in should allow teleporting from a lookup class in a named module without dropping all access
Reviewed-by: alanb, plevart
2019-07-24 16:46:42 -07:00
Patrick Concannon
00395fe0d0 8227721: test/jdk/java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java should open the java.net package
Reviewed-by: chegar, bpb, alanb
2019-07-24 13:08:36 +01:00
Thejasvi Voniadka
1f325a0f20 8154520: java.time: appendLocalizedOffset() should return the localized "GMT" string
Changes to produce/consume the locale-specific equivalent corresponding to the english string "GMT".

Reviewed-by: naoto, rriggs
2019-07-11 03:28:43 +05:30
Jie Fu
8d62f19e8d 8225648: [TESTBUG] java/lang/annotation/loaderLeak/Main.java fails with -Xcomp
Reviewed-by: alanb, iklam
2019-07-22 14:31:04 +08:00
Brian Burkhalter
ba9c952f87 8228392: Backout incorrect change done by JDK-8067801
Reviewed-by: lancea
2019-07-18 17:10:33 -07:00
Brian Burkhalter
2c59ffda98 8228204: Fix for JDK-8067801 breaks java/io/NegativeInitSize.java
Reviewed-by: lancea
2019-07-17 15:12:30 -07:00
Brian Burkhalter
a7016e3b5d 8067801: Enforce null check for underlying I/O streams
Reviewed-by: lancea
2019-07-17 14:24:37 -07:00
Mikael Vidstedt
f08a9de3b2 Merge 2019-07-17 04:33:37 -07:00
Anton Litvinov
cf5433ff56 8227392: Colors with alpha are painted incorrectly on Linux, after JDK-8214579
8224825: java/awt/Color/AlphaColorTest.java fails in linux-x64 system

Reviewed-by: prr
2019-07-16 15:15:45 +01:00
Xiaohong Gong
53635b436c 8227574: [TESTBUG] JTReg tests fail with Graal due to access denied
Reviewed-by: kvn
2019-07-15 03:14:28 +00:00
Peter Levart
49daf1dc19 8227368: EnumSet.class serialization broken in JDK 9+
Reviewed-by: smarks
2019-07-13 10:43:45 +00:00
Daisy Zhou
116af970c8 8227289: Enable assertions for some shell to java conversion tests after JDK-8218960
Reviewed-by: naoto
2019-07-15 10:21:33 +08:00
Daniel Fuchs
dc300483a7 8227539: Replace wildcard address with loopback or local host in tests - part 20
Update some tests to stop using the wildcard address.

Reviewed-by: michaelm
2019-07-10 22:33:23 +02:00
Thomas Stuefe
937f230ce3 8227252: [aix] Disable jdk/java/lang/reflect/exeCallerAccessTest
Reviewed-by: goetz
2019-07-04 11:55:00 +02:00
Patrick Concannon
76785af549 8226756: Replace wildcard address with loopback or local host in tests - part 18
Reviewed-by: dfuchs
2019-07-10 16:09:20 +01:00
Claes Redestad
7f1f9a50ae 8225239: Refactor NetworkInterface lookups
Reviewed-by: michaelm, dfuchs, chegar
2019-07-05 13:40:29 +02:00
Claes Redestad
eddf2cf920 8224657: [TESTBUG] java/util/Locale/SoftKeys.java should be ignored but run
Reviewed-by: alanb
2019-07-04 15:00:03 +02:00
Patrick Concannon
9f41d4d2f2 8229421: The logic of java/net/ipv6tests/TcpTest.java is flawed
The test is fixed to ignore rogue client connection. However it remains succeptible to intermittent failures due to the use of the wildcad address.

Reviewed-by: dfuchs
2019-08-20 11:15:23 +01:00
Andrew Dinn
047b8bfeb7 8224974: Implement JEP 352
Non-Volatile Mapped Byte Buffers

Reviewed-by: alanb, kvn, bpb, gromero, darcy, shade, bulasevich, dchuyko
2019-08-20 10:11:53 +01:00
Daniel Fuchs
bd1521e1a6 8191169: java/net/Authenticator/B4769350.java failed intermittently
Fixed a race condition in AuthenticationInfo when serializeAuth=true

Reviewed-by: chegar, michaelm
2019-08-19 11:14:50 +01:00
Daniel Fuchs
77d09f0f14 8229486: Replace wildcard address with loopback or local host in tests - part 21
Reviewed-by: chegar
2019-08-15 12:58:27 +01:00
Valerie Peng
effe3eb806 8228613: java.security.Provider#getServices order is no longer deterministic
Changed to use SunEntries.DEF_SECURE_RANDOM_ALGO instead of relying on ordering of SecureRandom services

Reviewed-by: weijun
2019-08-14 00:57:15 +00:00
Mandy Chung
182c19e8c4 8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works
8209078: Unable to call default method from interface in another module from named module

Reviewed-by: dfuchs, plevart
2019-08-13 15:49:11 -07:00
Naoto Sato
cf9351a41f 8211990: DateTimeException thrown when calculating duration between certain dates
Reviewed-by: lancea, scolebourne, rriggs
2019-08-13 10:10:42 -07:00
Daniel Fuchs
6d63995ada 8229348: java/net/DatagramSocket/UnreferencedDatagramSockets.java fails intermittently
The test was observed blocking on receive and is updated to avoid using the wildcard address

Reviewed-by: chegar, msheppar
2019-08-13 16:18:43 +01:00
Aleksei Efimov
b4a7fb856b 8228508: [TESTBUG] java/net/httpclient/SmokeTest.java fails on Windows7
Reviewed-by: dfuchs, chegar
2019-08-13 16:11:28 +01:00
Aleksei Efimov
4312f54e51 8225430: Replace wildcard address with loopback or local host in tests - part 14
Reviewed-by: dfuchs, chegar, vtewari
2019-08-08 21:58:11 +01:00
Patrick Concannon
9f7cbf60e4 8228970: AssertionError in ResponseSubscribers$HttpResponseInputStream
HttpResponseInputStream::read(byte[],int,int) now implements the same check than the InputStream::read(byte[],int,int).

Reviewed-by: prappo, chegar, dfuchs
2019-08-08 18:44:11 +01:00
Naoto Sato
865afd7fda 8215181: Accounting currency format support
Reviewed-by: lancea, rriggs
2019-08-07 14:56:26 -07:00
Lance Andersen
5233e25c4c 8226530: ZipFile reads wrong entry size from ZIP64 entries
Reviewed-by: bpb, clanger, shade
2019-08-07 14:04:10 -04:00
Ramanand Patil
1f0295ca65 8228469: (tz) Upgrade time-zone data to tzdata2019b
Reviewed-by: naoto, martin
2019-08-07 13:00:57 +01:00
Thejasvi Voniadka
9a217b9313 8158880: test/java/time/tck/java/time/format/TCKDateTimeFormatterBuilder.java fail with zh_CN locale
Reviewed-by: naoto
2019-08-05 11:11:18 +05:30
Ivan Gerasimov
66dc6cf25b 8228352: CANON_EQ breaks when pattern contains supplementary codepoint
Reviewed-by: naoto
2019-08-01 07:14:03 -07:00
Brian Burkhalter
3155cd829b 8227609: (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size
Reviewed-by: alanb, lancea, fweimer
2019-07-30 09:46:06 -07:00
Brian Burkhalter
62c2d1fbd9 8078891: java.io.SequenceInputStream.close is not atomic and not idempotent
Reviewed-by: prappo, dfuchs, alanb
2019-07-29 09:09:23 -07:00
Brian Burkhalter
20ee82bf0a 8181493: (fs) Files.readAttributes(path, BasicFileAttributes.class) should preserve nano second time stamps
Reviewed-by: alanb, lancea
2019-07-29 08:48:52 -07:00
Naoto Sato
11ab995e6c 8228465: HOST locale provider holds wrong era name for GregorianCalendar in US locale
Reviewed-by: lancea
2019-07-26 13:32:59 -07:00
Naoto Sato
c1a479ad67 8212970: TZ database in "vanguard" format support
Reviewed-by: rriggs, joehw, erikj, scolebourne
2019-07-26 08:56:28 -07:00
Brian Burkhalter
a8af569fa0 8184157: (ch) AsynchronousFileChannel hangs with internal error when reading locked file
Reviewed-by: alanb
2019-07-25 11:44:37 -07:00
Phil Race
bb7ac5cc11 Merge 2019-07-01 14:57:02 -07:00
Thomas Stuefe
9e02985246 8227252: [aix] Disable jdk/java/lang/reflect/exeCallerAccessTest
Reviewed-by: goetz
2019-07-04 11:55:00 +02:00
Brian Burkhalter
c6c82dd736 8227080: (fs) Files.newInputStream(...).skip(n) is slow
Reviewed-by: sbordet, rriggs, fweimer
2019-07-03 14:37:19 -07:00
Brian Burkhalter
4833b4b3d5 8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently
Reviewed-by: lancea, alanb
2019-07-02 08:32:33 -07:00
Pavel Rappo
3395bb591b 8226602: Test convenience reactive primitives from java.net.http with RS TCK
Reviewed-by: chegar, dfuchs
2019-07-02 13:25:51 +01:00
Jesper Wilhelmsson
37599ff955 Merge 2019-06-29 05:26:55 +02:00
Brian Burkhalter
4d1ff6a295 8226706: (se) Reduce the number of outer loop iterations on Windows in java/nio/channels/Selector/RacyDeregister.java
Reviewed-by: alanb
2019-06-28 13:02:18 -07:00
Christoph Langer
a8fc8c4c21 8226869: Test java/util/Locale/LocaleProvidersRun.java should enable assertions
Reviewed-by: naoto
2019-06-28 20:46:25 +01:00
Daniel Fuchs
2ad9f11d77 8226514: Replace wildcard address with loopback or local host in tests - part 14
Improve test stabilty by getting rid of the wildcard address whenever possible.

Reviewed-by: chegar, vtewari
2019-06-28 15:58:10 +01:00
Michael McMahon
faea44aec3 8222968: ByteArrayPublisher is not thread-safe resulting in broken re-use of HttpRequests
Reviewed-by: chegar, dfuchs
2019-06-28 11:26:07 +01:00
Julia Boes
c45f932cc5 8226825: Replace wildcard address with loopback or local host in tests - part 19
Replace use of wildcard by the loopback address, or possibly the local host address, wherever possible, to improve test stability.

Reviewed-by: chegar, bpb
2019-06-27 16:12:39 +01:00
Sergey Bylokhov
a66ce2eb45 8134672: [TEST_BUG] Some tests should check isDisplayChangeSupported
Reviewed-by: prr
2019-06-26 15:34:13 -07:00
Jesper Wilhelmsson
16548883ec Merge 2019-06-26 22:16:00 +02:00
Vicente Romero
b2e7d0367e 8226709: MethodTypeDesc::resolveConstantDesc needs access check per the specification
Reviewed-by: mchung, mcimadamore
2019-06-25 18:21:21 -04:00
Phil Race
d0107dc695 Merge 2019-06-21 09:05:45 -07:00
Sean Mullan
a7a94701fe 8226307: Curve names should be case-insensitive
Reviewed-by: igerasim, jnimeh, wetmore
2019-06-21 08:38:26 -04:00
Sean Coffey
3f0730930d 8133489: Better messaging for PKIX path validation matching
Reviewed-by: xuelei
2019-06-21 08:07:18 +00:00
Michael McMahon
54dfd47fa8 8226683: Remove review suggestion from fix to 8219804
Reviewed-by: chegar
2019-06-24 15:19:11 +01:00
Michael McMahon
eccfec498d 8219804: java/net/MulticastSocket/Promiscuous.java fails intermittently due to NumberFormatException
Reviewed-by: chegar, dfuchs
2019-06-24 15:10:44 +01:00
Vladimir Kozlov
c956e7ca8d 8185139: [Graal] Tests which set too restrictive security manager fail with Graal
Tests should also check default policy

Reviewed-by: mchung, dfuchs, alanb, mullan
2019-06-21 13:04:14 -07:00
Sean Coffey
8d4f4b0491 8213561: ZipFile/MultiThreadedReadTest.java timed out in tier1
Reviewed-by: lancea
2019-06-20 08:02:41 +00:00
Sergey Bylokhov
c2824531a7 8214469: [macos] PIT: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.java fails
Reviewed-by: psadhukhan
2019-06-18 21:40:50 -07:00
Pavel Rappo
b870874d22 Merge 2019-06-19 12:17:22 +01:00
Pavel Rappo
d49e648148 8226303: Examine the HttpRequest.BodyPublishers for exception handling
Reviewed-by: chegar
2019-06-18 14:12:06 +01:00
Chris Hegarty
d577d9c678 8226319: Add forgotten test/jdk/java/net/httpclient/BodySubscribersTest.java
Reviewed-by: dfuchs, prappo
2019-06-18 18:38:53 +01:00
Daniel Fuchs
5b21004fe0 8225578: Replace wildcard address with loopback or local host in tests - part 16
Fixes java/net/Authenticator and java/net/CookieHandler to stop depending on the wildcard address, wherever possible.

Reviewed-by: chegar
2019-06-17 20:03:34 +01:00
Jaikiran Pai
a92f0016f3 8217705: HttpClient - wrong exception type when bad status line is received
Throw a ProtocolException if the status code in the HTTP response's status line isn't a 3-digit integer

Reviewed-by: dfuchs
2019-06-14 10:19:04 +05:30
Tagir F. Valeev
822c02437a 8225339: Optimize HashMap.keySet()/HashMap.values()/HashSet toArray() methods
Reviewed-by: rriggs, redestad, smarks
2019-06-14 05:02:58 +00:00
Joe Darcy
aeedfd44b0 8164819: Make javac's toString() on annotation objects consistent with core reflection
Reviewed-by: jjg, coleenp
2019-06-13 11:50:45 -07:00
Michael McMahon
247a6a2ce4 8216417: cleanup of IPv6 scope-id handling
Reviewed-by: alanb, chegar, dfuchs
2019-06-13 09:10:51 +01:00
Prasanta Sadhukhan
93ed663cf0 Merge 2019-06-12 10:02:49 +05:30
Joe Darcy
4750064828 8214546: Start of release updates for JDK 14
8214547: Add SourceVersion.RELEASE_14
8214548: Add source 14 and target 14 to javac
8214549: Bump maximum recognized class file version to 58 for JDK 14

Reviewed-by: jjg, mikael, erikj, jlahoda, dholmes
2019-06-11 16:45:20 -07:00
Daniel Fuchs
96bb069a2d 8224865: Replace wildcard address with loopback or local host in tests - part 13
Fixes intermittent failures observed in some network tests

Reviewed-by: chegar
2019-06-10 11:17:57 +01:00
Stuart Marks
6758853b54 8205131: remove Runtime trace methods
Reviewed-by: lancea, rriggs, iklam
2019-06-10 17:33:11 -07:00
Phil Race
845bf8c1bc Merge 2019-06-07 09:38:40 -07:00
Anton Tarasov
eb555dec77 8225118: Robot.createScreenCapture() returns black image on HiDPI linux with gtk3
Reviewed-by: serb
2019-06-06 15:46:36 +03:00
Chris Hegarty
2edcc74725 8225424: Add jdk.net.usePlainSocketImpl runs to a couple of tests
Reviewed-by: alanb
2019-06-07 11:47:49 +01:00
Ivan Gerasimov
4a3b3d365e 8225397: Integer value miscalculation in toString() method of BitSet
Reviewed-by: aph
2019-06-06 17:20:19 -07:00
Brian Burkhalter
185be26580 8224617: (fs) java/nio/file/FileStore/Basic.java found filesystem twice
Reviewed-by: alanb
2019-06-06 14:13:59 -07:00
Jayathirth D V
abe29730ed 8225105: java/awt/Focus/ShowFrameCheckForegroundTest/ShowFrameCheckForegroundTest.java fails in Windows 10
Reviewed-by: prr, serb
2019-06-03 11:56:48 +05:30
Prasanta Sadhukhan
4651ce7fc9 Merge 2019-06-03 11:06:24 +05:30
Toshio Nakamura
189e938d3a 8219901: Noto fonts for East Asian countries cannot belong to CompositeFont
Reviewed-by: prr, jdv
2019-06-02 16:59:41 -07:00
Phil Race
10cac15976 8225007: java/awt/print/PrinterJob/LandscapeStackOverflow.java may hang
Reviewed-by: serb, jdv
2019-05-30 09:23:14 -07:00
Prasanta Sadhukhan
72bef42c4a 8224821: java/awt/Focus/NoAutotransferToDisabledCompTest/NoAutotransferToDisabledCompTest.java fails linux-x64
Reviewed-by: jdv
2019-05-28 16:38:01 +05:30
Prasanta Sadhukhan
15acb9faf7 8224830: test/jdk/java/awt/Focus/ModalExcludedWindowClickTest/ModalExcludedWindowClickTest.java fails on linux-x64
Reviewed-by: jdv
2019-05-28 16:35:47 +05:30
Phil Race
a34bbe6c30 8224632: testbug: java/awt/dnd/RemoveDropTargetCrashTest/RemoveDropTargetCrashTest.java fails on MacOS
Reviewed-by: serb, psadhukhan
2019-05-24 13:52:33 -07:00
Phil Race
cf5f70d4ec 8224771: backout RemoveDropTargetCrashTest.java fix to re-push with correct bugid
Reviewed-by: serb
2019-05-24 13:50:56 -07:00
Phil Race
501916030f 8224705: Tests that need to be problem-listed or have printer resources
Reviewed-by: serb, psadhukhan
2019-05-24 09:10:10 -07:00
Phil Race
033c08fcce 8223804: [macos] remove obsoleted reference to security framework in launcher code
Reviewed-by: rriggs, erikj
2019-05-23 15:02:47 -07:00
Arthur Eubanks
df9ad2af75 8224645: Only test multicast interfaces if they exist
Reviewed-by: alanb, dfuchs, chegar
2019-05-23 10:06:37 -07:00
Jim Laskey
9c6c6eae1d 8203444: String::formatted (Preview)
Reviewed-by: smarks, rriggs, sherman
2019-06-06 12:24:44 -03:00
Jim Laskey
fead01f2c9 8223780: String::translateEscapes (Preview)
Reviewed-by: abuckley, vromero, jlahoda, bchristi, igerasim, smarks
2019-06-06 12:24:44 -03:00
Jim Laskey
0777a86d68 8223775: String::stripIndent (Preview)
Reviewed-by: abuckley, vromero, jlahoda, bchristi, rriggs, smarks
2019-06-06 12:24:44 -03:00
Roger Riggs
8ee8c48696 8224905: java/lang/ProcessBuilder/Basic.java#id1 failed with stream closed
Reviewed-by: lancea, bpb, naoto
2019-06-06 10:03:22 -04:00
Lois Foltan
c66a7b734b 8225325: Add tests for redefining a class' private method during resolution of the bootstrap specifier
Add new tests

Reviewed-by: dholmes, sspitsyn
2019-06-05 22:19:09 -07:00
Chris Hegarty
cc353da44d 8225037: java.net.JarURLConnection::getJarEntry() throws NullPointerException
Reviewed-by: coffeys, vtewari
2019-06-05 13:59:44 +01:00
Naoto Sato
8dfd33c2b4 8223773: DateTimeFormatter Fails to throw an Exception on Invalid CLOCK_HOUR_OF_AMPM and HOUR_OF_AMPM
Reviewed-by: lancea, scolebourne, rriggs
2019-05-31 13:49:35 -07:00
Brian Burkhalter
cf4fa3f72f 8225117: java/math/BigInteger/SymmetricRangeTests.java fails with ParseException
Reviewed-by: darcy
2019-05-31 11:13:58 -07:00
Arno Zeller
bb2e4df367 8194231: java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind
Changed test to no longer use hardcoded ports.

Reviewed-by: chegar, clanger
2019-05-28 20:12:16 +02:00
Chris Hegarty
53b022d9eb 8224973: URLStreamHandler.openConnection(URL,Proxy) - spec and implementation mismatch
Reviewed-by: alanb, dfuchs
2019-05-31 15:02:45 +01:00
Chris Hegarty
9fbdec42c4 8225214: Socket.getOption(SocketOption) not returning the expected type for the StandardSocketOptions.SO_LINGER
Reviewed-by: alanb
2019-06-05 12:02:01 +01:00
Claes Redestad
27d8c3f7b4 8224240: Properties.load fails to throw IAE on malformed unicode in certain circumstances
Reviewed-by: smarks, rriggs, dfuchs
2019-06-05 10:23:06 +02:00
Mandy Chung
a9e23e8305 8222448: java/lang/reflect/PublicMethods/PublicMethodsTest.java times out
Set empty class path for compilation to avoid unnecessary opening/scanning of JAR files

Reviewed-by: alanb, dholmes
2019-06-04 12:50:15 -07:00
Andrey Turbanov
9eda28e6ea 6394787: Typos in javadoc of OIS.readObjectOverride and OOS.writeObjectOverride
Reviewed-by: alanb, chegar
2019-06-04 15:52:26 +01:00
Chris Hegarty
3ab3ffd29f 8224730: java.net.ServerSocket::toString not invoking checkConnect
Reviewed-by: alanb
2019-05-30 12:36:04 +01:00
Alan Bateman
7e14aeb133 8221481: Reimplement the Legacy Socket API
Reviewed-by: michaelm, chegar
2019-05-30 07:19:19 +01:00
Ivan Gerasimov
f5e2916507 8224789: Parsing repetition count in regex does not detect numeric overflow
Reviewed-by: rriggs, bchristi
2019-05-29 13:44:27 -07:00
Arthur Eubanks
acad8d1d68 8224081: SOCKS v4 doesn't work with IPv6
Reviewed-by: chegar, dfuchs, mullan, vtewari
2019-05-16 15:58:15 -07:00
Joe Darcy
bc10b6aaff 8224012: AnnotatedType implementations of hashCode() lead to StackOverflowError
Reviewed-by: jfranck
2019-05-29 09:53:28 -07:00
Chris Hegarty
bc24d17e80 8224477: java.net socket types new-style socket option methods - spec and impl mismatch
Reviewed-by: alanb
2019-05-29 13:58:05 +01:00
Daniel Fuchs
5461726dcc 8224761: Replace wildcard address with loopback or local host in tests - part 12
Fixes a batch of intermittent failures.

Reviewed-by: chegar, vtewari
2019-05-27 19:24:42 +01:00
Aleksei Efimov
57d319210a 8224035: Replace wildcard address with loopback or local host in tests - part 9
Reviewed-by: dfuchs
2019-05-27 13:29:11 +01:00
Doug Lea
22a4313efc 8224024: java/util/concurrent/BlockingQueue/DrainToFails.java testBounded fails intermittently
Reviewed-by: martin
2019-05-24 08:47:39 -07:00
Daniel Fuchs
ee040e4be2 8224603: Replace wildcard address with loopback or local host in tests - part 11
Fixes a batch of tests that were observed failing intermittently.

Reviewed-by: chegar, vtewari
2019-05-24 15:34:14 +01:00
Naoto Sato
93fabcdc5a 8221431: Support for Unicode 12.1
Reviewed-by: erikj, rriggs
2019-05-23 12:21:21 -07:00
Arthur Eubanks
2bc89b0076 8224635: Revert 8224256 and add back java/security/SecureClassLoader/DefineClass.java test
Reviewed-by: mullan
2019-05-23 09:03:58 -07:00
Arthur Eubanks
3304879c68 8224256: test/jdk/java/security/SecureClassLoader/DefineClass.java hardcodes 127.0.0.1
Reviewed-by: chegar, dfuchs, mullan
2019-05-20 16:47:08 -07:00
Arthur Eubanks
f65e76fef0 8224248: test/jdk/java/net/InetAddress/CheckJNI.java assumes 127.0.0.1 is available
Reviewed-by: dfuchs, chegar
2019-05-20 14:19:19 -07:00
Vicente Romero
ff2fa1e422 8223914: specification of j.l.c.MethodTypeDesc::of should document better the exceptions thrown
Reviewed-by: rriggs
2019-05-22 09:26:48 -04:00
Naoto Sato
8f1d837e99 8224105: Cannot parse JapaneseDate string on some specified locales
Reviewed-by: bchristi
2019-05-21 13:40:56 -07:00
Vicente Romero
6002c4e426 8223723: j.l.c.MethodTypeDesc.dropParameterTypes​ throws the undocumented exception: IllegalArgumentException
Reviewed-by: rriggs
2019-05-21 15:44:00 -04:00
Arthur Eubanks
905330d4ea 8224014: Don't run test/jdk/java/net/NetworkInterface/IPv4Only.java in IPv6 only environment
Reviewed-by: chegar, dfuchs
2019-05-15 16:21:51 -07:00
Arthur Eubanks
21d398288d 8224019: test/jdk/java/nio/channels/DatagramChannel/BasicMulticastTests.java assumes IPv4 is always available
Reviewed-by: chegar, dfuchs, alanb
2019-05-15 17:21:18 -07:00
Deepak Kejriwal
a0a09f03e4 8206879: Currency decimal marker incorrect for Peru
Reviewed-by: naoto, rpatil
2019-05-16 12:14:37 +05:30
Daniel Fuchs
cd9e3c1b13 8223856: Replace wildcard address with loopback or local host in tests - part 8
Fixes some intermittent test failures by replacing wildcard with loopback - or retrying once.

Reviewed-by: aefimov, chegar
2019-05-20 12:37:40 +01:00
Leo Jiang
078f5eb6a8 8219781: Localized names for Japanese era Reiwa in COMPAT provider
Reviewed-by: naoto
2019-05-19 22:14:09 +08:00
Vicente Romero
917645194b 8223803: j.l.c.MethodTypeDesc::insertParameterTypes​ doesn't control type of parameters
Reviewed-by: rriggs
2019-05-17 13:16:07 -04:00
Vicente Romero
fa2ea6a6d8 8223726: j.l.c.MethodTypeDesc spec should contain precise assertions for one parameter's methods
Reviewed-by: darcy
2019-05-16 13:34:33 -04:00
Arthur Eubanks
244bdce994 8224018: test/jdk/java/net/ipv6tests/{Tcp,Udp}Test.java assume IPv4 is available
Reviewed-by: dfuchs, chegar
2019-05-15 17:13:57 -07:00
Alan Bateman
a817ac3456 8223442: java/nio/channels/SocketChannel/AdaptorStreams.java testConcurrentTimedReadWrite3(): failure
Reviewed-by: michaelm
2019-05-16 17:06:53 +01:00
Aleksei Efimov
c9cdfad6ff 8223798: Replace wildcard address with loopback or local host in tests - part 7
Reviewed-by: dfuchs, vtewari
2019-05-15 19:47:28 +01:00
Arthur Eubanks
23301277c5 8223737: Fix HostsFileNameService for IPv6 literal addresses
Reviewed-by: chegar, msheppar
2019-05-10 17:13:02 -07:00
Prasanta Sadhukhan
e082ba12fc Merge 2019-05-15 13:54:43 +05:30
Prasanta Sadhukhan
dfe0ca547b Merge 2019-05-14 11:23:08 +05:30
Phil Race
8ca1211aab 8212700: Change the mechanism by which JDK loads the platform-specific AWT Toolkit
Reviewed-by: serb, rriggs
2019-05-10 16:22:35 -07:00
Ichiroh Takiguchi
0ea35e9bb9 8211826: StringIndexOutOfBoundsException happens via GetStringUTFRegion()
Reviewed-by: serb
2019-05-08 22:59:20 -07:00
Sergey Bylokhov
1d922fee0e 8144125: [macOS] java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java failed automatically
Reviewed-by: dmarkov
2019-05-08 16:19:22 -07:00
Phil Race
1b03f22dff Merge 2019-05-07 11:52:28 -07:00
Daniel Fuchs
1188188ee6 8223463: Replace wildcard address with loopback or local host in tests - part 2
Removes (or documents) some usages of the wildcard address in intermittently failing tests.

Reviewed-by: alanb
2019-05-07 18:10:59 +01:00
Naoto Sato
c797bc008e 8220037: Inconsistencies of generated timezone files between Windows and Linux
Reviewed-by: rriggs
2019-05-07 09:37:02 -07:00
Michael McMahon
7e142d54bf 8223457: java.net.ServerSocket protected constructor should throw NPE if impl null
Reviewed-by: dfuchs
2019-05-07 15:39:33 +01:00
Phil Race
501a6f3423 Merge 2019-05-02 10:48:56 -07:00
Michael McMahon
70ea5ab6e1 8216978: Drop support for pre JDK 1.4 SocketImpl implementations
Reviewed-by: chegar, alanb, dfuchs
2019-05-02 17:29:10 +01:00
Doug Lea
187ce630a2 8219138: Miscellaneous changes imported from jsr166 CVS 2019-05
Reviewed-by: martin
2019-05-02 06:33:28 -07:00
Doug Lea
82b990abc9 8221892: ThreadPoolExecutor: Thread.isAlive() is not equivalent to not being startable
Reviewed-by: martin, dholmes
2019-05-02 06:33:28 -07:00
Adam Farley8
d97dd4d554 8222930: ConcurrentSkipListMap.clone() shares size variable between original and clone
Co-authored-by: Martin Buchholz <martinrb@google.com>
Reviewed-by: martin, smarks
2019-05-02 06:33:28 -07:00
Daniel Fuchs
7d4520c109 8223145: Replace wildcard address with loopback or local host in tests - part 1
Replaces binding to wildacard with alternative less susceptible to intermittent failure in some intermittently failing tests.

Reviewed-by: chegar, msheppar
2019-05-02 11:55:16 +01:00
Phil Race
d43616c60a 8130266: Change the mechanism by which JDK loads the platform-specific GraphicsEnvironment class
Reviewed-by: serb, bchristi
2019-04-29 10:16:58 -07:00
Sergey Bylokhov
ef7d75459c 6933331: (d3d/ogl) java.lang.IllegalStateException: Buffers have not been created
Reviewed-by: prr
2019-05-18 23:35:40 -07:00
Phil Race
d374151fb7 8208179: Devanagari not shown with logical fonts on Windows after removal of Lucida Sans from JDK
Reviewed-by: jdv, naoto
2019-04-26 12:31:37 -07:00
Sergey Bylokhov
4ee5f65691 8214046: [macosx] Undecorated Frame does not Iconify when set to
Reviewed-by: dmarkov
2019-04-25 15:15:53 -07:00
Ivan Gerasimov
4f02d011b0 8222955: Optimize String.replace(CharSequence, CharSequence) for common cases
Reviewed-by: redestad, tvaleev
2019-05-06 18:07:55 -07:00
Vicente Romero
c7faef0785 8219483: j.l.c.ClassDesc::nested(String, String...) doesn't throw NPE if any arg is null
Reviewed-by: darcy
2019-05-06 14:47:55 -04:00
Ivan Gerasimov
b7ea7e93aa 8223174: Pattern.compile() can throw confusing NegativeArraySizeException
Reviewed-by: martin
2019-05-03 23:00:07 -07:00
Phil Race
e3e016b54c 8212701: remove sun.desktop property from launcher code
Reviewed-by: serb, alanb, rriggs
2019-04-24 09:21:02 -07:00
Krishna Addepalli
2044245c90 8218917: KeyEvent.getModifiers() returns inconsistent values for ALT keys
Reviewed-by: serb
2019-04-22 17:02:51 +05:30
Prasanta Sadhukhan
7f9a1c0889 Merge 2019-04-22 10:53:45 +05:30
Coleen Phillimore
6ebf2ce655 8192936: RI does not follow the JVMTI RedefineClasses spec that is too strict in the definition
Introduce new flag fo compatibility: -XX:AllowRedefinitionToAddOrDeleteMethods

Reviewed-by: jcbeyler, sspitsyn
2019-04-19 21:49:54 -07:00
Daniel Fuchs
853da81cfe 8222527: HttpClient doesn't send HOST header when tunelling HTTP/1.1 through http proxy
HttpClient no longer filters out system host header when sending tunelling CONNECT request to proxy

Reviewed-by: michaelm
2019-04-18 17:56:46 +01:00
Sean Coffey
a712b37bd0 8217364: Custom URLStreamHandler for jrt or file protocol can override default handler
Reviewed-by: redestad
2019-05-02 22:52:51 +01:00
Brian Burkhalter
27f95e7553 8223254: DataOutputStream/WriteUTF.java fails due to "OutOfMemoryError: Java heap space"
Reviewed-by: lancea, rriggs
2019-05-02 14:15:09 -07:00
Brian Burkhalter
2c35825433 8220793: (fs) No support for changing modification time of symlink
Reviewed-by: alanb, rriggs
2019-05-02 13:25:00 -07:00
Claes Redestad
c23dc4dfcf 8222895: StackOverflowError in custom security manager that relies on ClassSpecializer
Reviewed-by: alanb
2019-05-02 10:38:00 +02:00
Claes Redestad
e7a6cbbd38 8222852: Reduce String concat combinator tree shapes by folding constants into prependers
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: shade, plevart, forax
2019-04-30 12:54:07 +02:00
Dmitry Batrak
b9f32c8148 8220231: Cache HarfBuzz face object for same font's text layout calls
Reviewed-by: prr, avu, serb
2019-04-11 10:49:36 -07:00
Prasanta Sadhukhan
a9bfe45ca8 Merge 2019-04-11 14:20:16 +05:30
Claes Redestad
8ee30d4fbe 8222029: Optimize Math.floorMod
Reviewed-by: aph, darcy
2019-04-10 20:03:07 +02:00
Prasanta Sadhukhan
de2e2b119a Merge 2019-04-10 10:46:53 +05:30
Valerie Peng
3b6b6b3cb3 8216039: TLS with BC and RSASSA-PSS breaks ECDHServerKeyExchange
Add internal Signature init methods to select provider based on both key and parameter

Reviewed-by: xuelei
2019-04-10 02:35:18 +00:00
Ivan Gerasimov
eebe346715 8221430: StringBuffer(CharSequence) constructor truncates when -XX:-CompactStrings specified
Co-authored-by: Andrew Leonard <andrew_m_leonard@uk.ibm.com>
Reviewed-by: igerasim, rriggs
2019-04-09 16:32:22 -07:00
Stuart Marks
1aa784cdac 8221924: get(null) on single-entry unmodifiable Map returns null instead of throwing NPE
Reviewed-by: redestad, lancea
2019-04-09 09:49:36 -07:00
Alexey Ivanov
9972a6fdaa 8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use
Reviewed-by: serb, prr
2019-04-09 08:50:08 +01:00
Sean Mullan
8b8759de8d 8020637: Permissions.readObject doesn't enforce proper Class to PermissionCollection mappings
Reviewed-by: weijun
2019-04-09 08:56:15 -04:00
Steve Groeger
3ff0b6ea5e 8222027: java/util/logging/LogManager/TestLoggerNames.java generates intermittent ClassCastException
Make a strong reference to TestLogger and dont fetch it from LogManager

Reviewed-by: dfuchs
2019-04-08 15:01:39 +01:00
Aleksei Efimov
64b8734964 8223638: Replace wildcard address with loopback or local host in tests - part 6
Reviewed-by: dfuchs
2019-05-14 13:34:49 +01:00
Daisy Zhou
24f9c71c8d 8222969: Migrate RuleBasedCollatorTest to JDK Repo
Reviewed-by: naoto
2019-05-14 11:06:23 +08:00
Aleksey Shipilev
1e9927a2f2 8222111: exeCallerAccessTest.c fails to build: control reaches end of non-void function
Reviewed-by: alanb, dholmes
2019-04-08 15:25:27 +02:00
Mandy Chung
93ae73b091 8222078: test/jdk/java/lang/reflect/exeCallerAccessTest/exeCallerAccessTest.c build fails after 8221530
Reviewed-by: lancea, dholmes
2019-04-07 03:00:52 +00:00
Mandy Chung
a5b9e0f7ba 8221530: Caller sensitive methods not handling caller = null when invoked by JNI code with no java frames on stack
Reviewed-by: alanb, dholmes, sundar
2019-04-06 21:16:40 +08:00
Mandy Chung
ab361746ec 8220282: Add MethodHandle tests on accessing final fields
Reviewed-by: lancea
2019-04-06 21:05:58 +08:00
Andrew Dinn
71164a973b 8221477: Inject os/cpu-specific constants into Unsafe from JVM
Initialize Unsafe os/cpu-specific constants using injection instead of native callouts

Reviewed-by: stuefe, coleenp, dholmes, plevart
2019-04-05 10:01:09 +01:00
Prasanta Sadhukhan
49193e2789 Merge 2019-04-02 10:57:57 +05:30
Naoto Sato
0b2e2ca9bd 8174268: Declare a public field in JapaneseEra for the era starting May 2019
Reviewed-by: rriggs, chegar
2019-04-01 08:21:45 -07:00
Naoto Sato
2a510a6353 8205432: Replace the placeholder Japanese era name
Reviewed-by: rriggs, chegar
2019-04-01 08:19:21 -07:00
Sergey Bylokhov
5bffde3d4f 8215105: java/awt/Robot/HiDPIScreenCapture/ScreenCaptureTest.java: Wrong Pixel Color
Reviewed-by: prr
2019-03-29 16:09:47 -07:00
Dmitry Cherepanov
54398de4db 8221244: Unexpected behavior of PropertyDescription.getReadMethod for boolean properties
Reviewed-by: serb
2019-03-27 13:14:55 +03:00
Valerie Peng
e90036145a 8220016: Clean up redundant RSA services in the SunJSSE provider
Removed duplicated RSA signature/KF/KPG support in SunJSSE

Reviewed-by: xuelei
2019-03-29 00:39:49 +00:00
Daniel Fuchs
47b9d898ab 8221395: HttpClient leaving connections in CLOSE_WAIT state until Java process ends
When a non WebSocket connection is not returned to the pool, it needs to be closed even if HttpConnection::isOpen yields false.

Reviewed-by: chegar, michaelm
2019-03-28 12:16:36 +00:00
Brian Burkhalter
8d5cea62b2 8221568: DataOutputStream/WriteUTF.java fails due to "OutOfMemoryError: Java heap space"
Reviewed-by: shade
2019-03-27 16:35:25 -07:00
Arthur Eubanks
0c2b7c4fc3 8220575: Replace hardcoded 127.0.0.1 in URLs with new URI builder
Reviewed-by: dfuchs, chegar
2019-03-27 09:06:43 -07:00
Martin Buchholz
df4f28c041 8219196: DataOutputStream.writeUTF may throw unexpected exceptions
Reviewed-by: martin, darcy, rriggs
2019-03-27 07:21:18 -07:00
Aleksey Shipilev
e8a753f253 8221524: java/util/Base64/TestEncodingDecodingLength.java test should be disabled on 32-bit platforms
Reviewed-by: stuefe, alanb
2019-03-27 12:38:29 +01:00
Aleksey Shipilev
5437296fac 8221401: java/math/BigInteger/LargeValueExceptions.java test should be disabled on 32-bit platforms
Reviewed-by: stuefe, bpb
2019-03-27 11:35:41 +01:00
Aleksey Shipilev
785772021b 8221400: java/lang/String/StringRepeat.java test requests too much heap
Reviewed-by: stuefe, alanb
2019-03-27 11:35:40 +01:00
Adam Farley
be132fcc65 8216558: Lookup.unreflectSetter(Field) fails to throw IllegalAccessException for final fields
Reviewed-by: mchung
2019-03-26 15:53:36 -07:00
Chris Hegarty
1933437f12 8219446: Specify behaviour of timeout accepting methods of Socket and ServerSocket if timeout is negative
Reviewed-by: alanb, dfuchs
2019-03-26 17:02:11 +00:00
Prasanta Sadhukhan
cc590f5765 Merge 2019-03-22 13:42:45 +05:30
Prasanta Sadhukhan
83e8947b90 Merge 2019-03-20 16:07:43 +05:30
Chris Hegarty
defc86bd5b 8221098: Run java/net/URL/HandlerLoop.java in othervm mode
Reviewed-by: alanb, martin
2019-03-20 09:17:48 +00:00
Roger Riggs
b77b4b254c 8220613: java/util/Arrays/TimSortStackSize2.java times out with fastdebug build
Reviewed-by: lancea, alanb
2019-03-19 10:47:17 -04:00
Chris Hegarty
5ee0711360 8220663: Incorrect handling of IPv6 addresses in Socket(Proxy.HTTP)
Reviewed-by: alanb, michaelm
2019-03-19 14:27:50 +00:00
Alan Bateman
fd14375ae2 8221259: New tests for java.net.Socket to exercise long standing behavior
Reviewed-by: chegar
2019-03-21 17:38:41 +00:00
Christoph Langer
26358daaee 8172695: (scanner) java/util/Scanner/ScanTest.java fails
Reviewed-by: smarks, bpb
2019-03-21 09:16:58 +01:00
Andrew Dinn
2b55e4834e 8221696: MappedByteBuffer.force method to specify range
Overload MappedByteBuffer.force to accept index and length arguments

Reviewed-by: dfuchs, alanb, bpb
2019-04-25 17:27:37 +01:00
Daniel Fuchs
3103d346a7 8223632: Replace wildcard address with loopback or local host in tests - part 5
Replaces wildcard usage by loopback, when possible, adds intermittent keyword and a comment, when not.

Reviewed-by: chegar
2019-05-13 17:31:23 +01:00
Arthur Eubanks
eff53ce5e9 8223652: Rename IPSupport.skipIfCurrentConfigurationIsInvalid() to IPSupport.throwSkippedExceptionIfNonOperational()
Reviewed-by: dfuchs, chegar
2019-05-09 10:28:29 -07:00
Aleksei Efimov
6ecf7ffbb1 8223465: Replace wildcard address with loopback or local host in tests - part 3
Reviewed-by: dfuchs
2019-05-10 15:34:17 +01:00
Daniel Fuchs
205fd87f2d 8223573: Replace wildcard address with loopback or local host in tests - part 4
Makes a few intermittently failing tests more resilient to port reuse issues by ensuring they bind to the loopback address instead of the wildcard.

Reviewed-by: alanb, chegar
2019-05-09 14:23:52 +01:00
Arthur Eubanks
0bb6328356 8220673: Add test library support for determining platform IP support
Reviewed-by: dfuchs, chegar
2019-04-16 13:06:23 -07:00
Naoto Sato
c709e1cbf0 8221432: Upgrade CLDR to Version 35.1
Reviewed-by: rriggs, srl
2019-05-08 12:45:02 -07:00
Ivan Gerasimov
c07c8d3eea 8220684: Process.waitFor(long, TimeUnit) can return false for a process that exited within the timeout
Reviewed-by: prappo, dholmes, rriggs
2019-03-16 15:05:21 -07:00
Alan Bateman
8743be63c4 8220493: Prepare Socket/ServerSocket for alternative platform SocketImpl
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Reviewed-by: chegar
2019-03-16 19:44:12 +00:00
Brian Burkhalter
69ca2e9e27 8220477: Channels.newWriter() does not close if underlying channel throws an IOException
Reviewed-by: alanb
2019-04-17 08:12:19 -07:00
Henry Jen
930f116ae7 Merge 2019-04-16 20:47:11 -07:00
Henry Jen
da6f620059 Merge 2019-04-15 18:24:37 -07:00
Aleksey Shipilev
7fd0bca8f7 8222410: java/nio/file/attribute/BasicFileAttributeView/UnixSocketFile hangs when "nc" does not accept "-U"
Reviewed-by: alanb
2019-04-15 18:22:08 +02:00
Brian Burkhalter
daa6cc9267 8218280: LineNumberReader throws "Mark invalid" exception if CRLF straddles buffer
Reviewed-by: dfuchs, prappo
2019-04-29 07:39:16 -07:00
Weijun Wang
21d50973d1 8223003: SunMSCAPI keys are not cleaned up
Reviewed-by: igerasim
2019-04-27 18:21:57 +08:00
Naoto Sato
854c0539c4 8222980: Upgrade IANA Language Subtag Registry to Version 2019-04-03
Reviewed-by: bpb, lancea
2019-04-26 09:09:39 -07:00
Daniel Fuchs
72467d916c 8129315: java/net/Socket/LingerTest.java and java/net/Socket/ShutdownBoth.java timeout intermittently
Tests are updated to use the loopback address instead of the wildcard to avoid traffic being routed to a different server than what was intended by the test.

Reviewed-by: chegar
2019-04-26 16:25:43 +01:00
Alan Bateman
2998236d83 8222774: (ch) Replace uses of stateLock and blockingLock with j.u.c. locks
Reviewed-by: dfuchs, bpb, martin
2019-04-25 10:41:49 +01:00
Martin Balao
ae9ee277b6 8218854: FontMetrics.getMaxAdvance may be less than the maximum FontMetrics.charWidth
Consider algorithmic bold in FontMetrics.getMaxAdvance value and update obliqueness.

Reviewed-by: prr, serb
2019-03-01 12:21:23 -03:00
Sergey Bylokhov
f690eda707 8219504: Test for JDK-8211435 can be run on all platforms
Reviewed-by: kaddepalli, dmarkov, sveerabhadra
2019-03-09 14:48:17 -08:00
Sergey Bylokhov
b5998aadf0 8213110: Remove the use of applets in automatic tests
Reviewed-by: prr
2019-02-27 18:46:55 -08:00
Prasanta Sadhukhan
3981041086 Merge 2019-02-27 13:53:41 +05:30
Prasanta Sadhukhan
11bb82baca Merge 2019-02-26 11:17:12 +05:30
Daniel Fuchs
5f13ffec66 8219197: ThreadGroup.enumerate() may return wrong value
ThreadGroup.enumerate(list,n,recurse) should never return a value that is less than n.

Reviewed-by: clanger, chegar, prappo
2019-03-13 18:43:16 +00:00
Toshio Nakamura
aa5aa46fb0 8220227: Host Locale Provider getDisplayCountry returns error message under non-English Win10
Adjusting to detect translated Unknown messages

Reviewed-by: naoto
2019-03-13 13:05:37 +09:00
Arthur Eubanks
ef9ce3be1e 8220083: Use InetAddress.getLoopbackAddress() in place of 127.0.0.1 for some tests
Tests that hardcode "127.0.0.1" fail in an environment where only IPv6 is available and IPv4 is not.

Reviewed-by: chegar, dfuchs, michaelm
2019-02-27 13:34:40 -08:00
Philipp Kunz
24af91dc02 8219548: Better Null paramenter checking in ToolProvider
Reviewed-by: lancea, alanb, jjg
2019-02-26 13:14:26 -05:00
Shashidhara Veerabhadraiah
d644970c02 8212202: [Windows] Exception if no printers are installed
Reviewed-by: prr
2019-02-25 11:02:53 +05:30
Coleen Phillimore
2a83596e85 8181171: Deleting method for RedefineClasses breaks ResolvedMethodName
8210457: JVM crash in ResolvedMethodTable::add_method(Handle)

Add a function to call NSME in ResolvedMethodTable to replace deleted methods.

Reviewed-by: sspitsyn, dholmes, dcubed
2019-02-26 08:01:20 -05:00