Commit Graph

1387 Commits

Author SHA1 Message Date
Chris Hegarty
eec0e71c04 8235550: Clarify record reflective support specification
Reviewed-by: mcimadamore
2019-12-10 19:12:57 +00:00
Chris Hegarty
dadaffbbeb 8235531: Update record serialization migration tests to not use hard coded source versions
Reviewed-by: darcy
2019-12-10 19:10:14 +00:00
Prasanta Sadhukhan
28b4c4d781 Merge 2019-12-10 10:44:09 +05:30
Henry Jen
9ac2f8b654 8234542: code removal of Pack200 Tools and API
Reviewed-by: alanb, mchung, erikj
2019-12-10 00:36:30 +00:00
Tejpal Rebari
24232989ba 8234802: [TESTBUG] Test Right Mouse Button Drag Gesture Recognition in all the platforms
Reviewed-by: serb
2019-12-09 15:09:24 +05:30
Sergey Bylokhov
03dfd4f94b 8234522: [macos] Crash with use of native file dialog
Reviewed-by: prr, dmarkov
2019-12-11 14:30:45 -08:00
Sergey Bylokhov
3b1915a71f 8231438: [macOS] Dark mode for the desktop is not supported
Reviewed-by: prr, psadhukhan
2019-12-08 20:25:08 -08:00
Phil Race
1a73baeb10 Merge 2019-12-06 12:06:09 -08:00
Michael McMahon
b96610d017 8235475: Add additional timestamp to test java/nio/channels/Selector/SelectWithConsumer.java
Reviewed-by: alanb
2019-12-06 14:17:25 +00:00
Toshio Nakamura
6511acbf1e 8234386: [macos] NPE was thrown at expanding Choice from maximized frame
Reviewed-by: serb
2019-12-05 15:36:08 -08:00
Sergey Bylokhov
cd2cc6d796 8232226: [macos 10.15] test/jdk/java/awt/color/EqualityTest/EqualityTest.java may fail
Reviewed-by: prr, pbansal
2019-12-05 15:33:37 -08:00
Sergey Bylokhov
e4ddde03d2 8234137: The "AutoTestOnTop.java" test may run external applications
Reviewed-by: prr
2019-12-05 15:29:13 -08:00
Patrick Concannon
22e26b2a81 8234148: DatagramSocket.setOption/getOption/supportedOption should support multicast options
Fix adds multicast socket options to DatagramSocket

Reviewed-by: alanb, dfuchs, vtewari
2019-12-09 14:25:37 +00:00
Julia Boes
07fc539a85 8232513: java/net/DatagramSocket/PortUnreachable.java still fails intermittently with BindException
Increase the number of bind retries and test repeats, best effort only

Reviewed-by: msheppar, dfuchs, vtewari
2019-12-09 12:46:12 +00:00
Mandy Chung
e7fa637179 8235351: Lookup::unreflect should bind with the original caller independent of Method's accessible flag
Reviewed-by: alanb
2019-12-06 15:10:40 -08:00
Joe Darcy
e1921502c5 8235514: Update record serialization tests to not use hard coded source versions
Reviewed-by: lancea
2019-12-06 13:32:46 -08:00
Gustavo Romero
1691abc747 8234599: PPC64: Add support on recent CPUs and Linux for JEP-352
Reviewed-by: mbaesken, mdoerr, adinn
2019-11-21 17:10:26 -03:00
Igor Ignatyev
e2240b714e 8236111: narrow allowSmartActionArgs disabling
Reviewed-by: dholmes, mullan, darcy, rriggs
2020-01-15 21:20:40 -08:00
Jesper Wilhelmsson
51d5164ca2 Merge 2020-01-16 04:09:50 +01:00
Jesper Wilhelmsson
d34f561de0 Merge 2020-01-15 20:41:46 +01:00
Brian Burkhalter
833a3897dc 8225603: Enhancement for big integers
Reviewed-by: darcy, ahgross, rhalade
2019-10-29 14:07:27 -07:00
Daniel Fuchs
ad09813035 8233245: More adaptive sockets
Reviewed-by: chegar, igerasim, alanb, skoivu, rhalade
2019-12-09 20:33:15 +00:00
Ivan Gerasimov
6c16f55fde 8231785: Improved socket permissions
Reviewed-by: ahgross, chegar, mullan, rhalade
2019-10-23 17:03:07 -07:00
Joe Darcy
81ec9e3087 8235369: Class.toGenericString need to be updated for records
Reviewed-by: vromero, mchung, chegar
2019-12-05 14:19:35 -08:00
Naoto Sato
730d0ecf19 8222756: Plural support in CompactNumberFormat
Reviewed-by: joehw, rriggs
2019-12-05 13:10:18 -08:00
Vicente Romero
827e5e3226 8225054: Compiler implementation for records
8225052: javax.lang.model support for records
8225053: Preview APIs support for records
8225055: Javadoc for records
8226314: com.sun.source support for records
8227113: Specification for java.lang.Record
8233526: JVM support for records

Implement records in the compiler and the JVM, including serialization, reflection and APIs support

Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: mcimadamore, briangoetz, alanb, darcy, chegar, jrose, jlahoda, coleenp, dholmes, lfoltan, mchung, sadayapalam, hannesw, sspitsyn
2019-12-04 15:57:39 -05:00
Mandy Chung
a445b66e58 8233527: Update Lookup::hasPrivateAccess and Lookup::defineClass spec w.r.t. full power lookup
Add a new Lookup::hasFullPrivilegeAccess method and document the capabilities requiring full privileges

Reviewed-by: alanb, plevart
2019-12-04 10:46:49 -08:00
Alan Bateman
e7d68cd13b 8235193: (dc) Remove JNI overhead from DatagramChannel.send implementation
Reviewed-by: chegar
2019-12-04 16:37:00 +00:00
Vladimir Ivanov
a6daef527e 8234923: Missed call_site_target nmethod dependency for non-fully initialized ConstantCallSite instance
Reviewed-by: jrose
2019-12-03 20:13:21 +03:00
Jim Laskey
234f326d79 8233116: Escape Sequences For Line Continuation and White Space (Preview)
Reviewed-by: vromero, jlahoda, bchristi, mcimadamore
2019-12-03 08:35:21 -04:00
Michael McMahon
7afaaf1229 8234824: java/nio/channels/SocketChannel/AdaptSocket.java fails on Windows 10
Reviewed-by: alanb
2019-12-03 11:57:10 +00:00
Michael McMahon
a2fad13ce2 8234823: java/net/Socket/Timeouts.java testcase testTimedConnect2() fails on Windows 10
Reviewed-by: alanb
2019-12-03 11:55:47 +00:00
Prasanta Sadhukhan
50190491d7 Merge 2019-12-03 11:52:31 +05:30
Ivan Gerasimov
cd589d8469 8234147: Avoid looking up standard charsets in core libraries
Reviewed-by: alanb
2019-12-01 15:29:37 -08:00
Alan Bateman
f3e90595aa 8234805: (dc) Remove JNI upcall from DatagramChannel.receive implementation
Reviewed-by: dfuchs, chegar
2019-11-30 16:21:19 +00:00
Patrick Concannon
55da7d34c9 8233307: MulticastSocket getOption(IP_MULTICAST_IF) returns interface when not set
The MulticastSocket method getOption has been changed to conform to the behavior described in StandardSocketOptions.IP_MULTICAST_IF.

Reviewed-by: chegar, dfuchs
2019-11-28 16:49:52 +00:00
Dmitry Batrak
0ee193c705 8210058: Algorithmic Italic font leans opposite angle in Printing
Reviewed-by: prr, jdv, psadhukhan
2019-11-27 16:39:52 +05:30
Jayathirth D V
51837b8a13 8233696: [TESTBUG]Some jtreg tests fail when CAPS_LOCK is ON
Reviewed-by: serb, prr
2019-11-22 11:35:26 +05:30
Prasanta Sadhukhan
94116efd0c 8234385: [TESTBUG] java/awt/EventQueue/6980209/bug6980209.java fails in linux nightly
Reviewed-by: serb
2019-11-21 14:43:47 +05:30
Prasanta Sadhukhan
3f517c65c0 Merge 2019-11-21 13:50:11 +05:30
Prasanta Sadhukhan
d2c63eec97 8234332: [TESTBUG] java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.java fails on linux-x64 nightly
Reviewed-by: serb
2019-11-20 11:29:27 +05:30
Prasanta Sadhukhan
9d6ace51a2 Merge 2019-11-20 10:52:28 +05:30
Brent Christian
469cb2b334 8233272: The Class.forName specification should be updated to match the long-standing implementation with respect to class linking
Reviewed-by: dholmes, mchung
2019-11-19 10:02:46 -08:00
Jayathirth D V
877e269895 8234184: [TESTBUG] java/awt/Mouse/EnterExitEvents/ModalDialogEnterExitEventsTest.java fails in Windows
Reviewed-by: psadhukhan
2019-11-15 16:58:07 +05:30
Daniel Fuchs
be18a54cb1 8233141: DatagramSocket.send doesn't specify exception thrown when no target address
DatagramSocket and MulticastSocket send methods are changed to throw IllegalArgumentException if no target address can be determined.

Reviewed-by: alanb
2019-11-18 16:48:05 +00:00
Sergey Bylokhov
d2c74d0c97 8232433: [macos 10.15] java/awt/Window/LocationAtScreenCorner/LocationAtScreenCorner.java may fail
Reviewed-by: prr
2019-11-14 15:13:29 -08:00
Mario Torre
194c2726ea 8231991: Mouse wheel change focus on awt/swing windows
Avoid focus logic when only mouse wheel is moved up/down.

Reviewed-by: serb, dmarkov
2019-11-12 15:54:24 +01:00
Prasanta Sadhukhan
a1e0fe458c 8233910: java/awt/ColorClass/AlphaColorTest.java is failing intermittently in nightly lnux-x64 system
Reviewed-by: serb, prr
2019-11-12 12:29:09 +05:30
Alan Bateman
7e42642939 8231259: (dc) DatagramChannel::disconnect re-binds socket to the wildcard address (macOS)
Reviewed-by: dfuchs, chegar
2019-11-20 08:35:53 +00:00
Sergey Bylokhov
df7d0d404b 8233657: Intermittent NPE in Component.validate()
Reviewed-by: prr
2019-11-08 05:24:29 +00:00
Weijun Wang
c0d097eac6 8214024: Remove the default keytool -keyalg value
Reviewed-by: mullan
2019-11-15 09:06:58 +08:00
Patrick Concannon
78accb5602 8233989: Create an IPv4 version of java/net/MulticastSocket/SetLoopbackMode.java
This fix adds an IPv4 version of test SetLoopbackMode.java that calls SetLoopbackMode in IPv4 only mode, and runs only if IPv4 is enabled.

Reviewed-by: dfuchs
2019-11-14 11:04:57 +00:00
Patrick Concannon
11433529aa 8233860: AfterClose.java test incorrectly handles IP_MULTICAST_IF
Correction to invalid value used to ensure test fails as expected.

Reviewed-by: alanb, dfuchs, vtewari
2019-11-14 10:49:20 +00:00
Jorn Vernee
be223c62fc 8233920: MethodHandles::tryFinally generates illegal bytecode for long/double return type
Reviewed-by: redestad, vlivanov, jrose
2019-11-14 10:55:46 +01:00
Amy Lu
14ca254fbe 8234079: ZipFileInputStreamSkipTest.java runs zero test
Reviewed-by: lancea
2019-11-13 21:56:28 +08:00
Leo Korinth
1fc67ab002 8232365: Implementation for JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector
Reviewed-by: kbarrett, tschatzl, erikj, coleenp, dholmes
2019-11-13 11:37:29 +01:00
Prasanta Sadhukhan
91a70aeb63 Merge 2019-11-05 11:00:42 +05:30
Phil Race
00426d6cb0 8233097: Fontmetrics for large Fonts has zero width
Reviewed-by: jdv, serb
2019-11-04 10:01:55 -08:00
Chris Hegarty
9f6af13f9d 8232367: Update the jdk/java/net/httpclient tests to RS TCK 1.0.3
Reviewed-by: dfuchs
2019-11-04 10:06:59 +00:00
Daniel Fuchs
d6f414a1f7 8223196: java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java fails on Solaris SPARC
The test is fixed to use InetAddress.getLocalHost consistently, instead of a mix of getLocalHost/wildcard addresses.

Reviewed-by: chegar, vtewari
2019-11-28 12:28:48 +00:00
Patrick Concannon
b9c7a608d2 8233018: Add a new test to verify that DatagramSocket is not interruptible
Test added to check the interruptability of DatagramSocket, MulticastSocket and DatagramSocketAdaptor.

Reviewed-by: chegar, dfuchs
2019-11-27 16:01:34 +00:00
Alan Bateman
db4909bf99 8232673: (dc) DatagramChannel socket adaptor issues
Reviewed-by: dfuchs, chegar
2019-11-02 10:02:18 +00:00
Julia Boes
012dffcd27 8231632: HttpURLConnection::usingProxy could specify that it may lazily evaluate the fact
Modified method description to disambiguate when false is returned and altered implementation

Reviewed-by: dfuchs, chegar, vtewari
2019-11-01 12:57:01 +00:00
Doug Lea
f29d1d172b 8231026: Miscellaneous changes imported from jsr166 CVS 2019-11
Reviewed-by: martin
2019-11-01 09:07:59 -07:00
Doug Lea
dc7d30d08e 8231592: Clarify that ConcurrentHashMap compute methods mapping functions execute at most once
Reviewed-by: martin
2019-11-01 09:04:04 -07:00
Sergey Bylokhov
7d0e14178d 8232200: [macos 10.15] Windows in fullscreen tests jumps around the screen
Reviewed-by: prr
2019-10-24 14:54:31 -07:00
Sergey Bylokhov
6de547452c 8213119: [macos] java/awt/GraphicsDevice/CheckDisplayModes.java fails
Reviewed-by: prr, jdv
2019-10-24 01:02:08 -07:00
Naoto Sato
9803a8dcb2 8232860: Error formatting integer values with MessageFormat.format() using HOST provider
Reviewed-by: rriggs
2019-11-12 14:05:18 -08:00
Vladimir Yaroslavskiy
de54eb1513 8226297: Dual-pivot quicksort improvements
Reviewed-by: dl, lbourges
2019-11-12 13:49:40 -08:00
Joe Darcy
f13a0df720 8233940: Preview API tests for String methods should use ${jdk.version} as -source arg
Reviewed-by: jlaskey, jlahoda
2019-11-12 10:45:23 -08:00
Julia Boes
d948bfd584 8232853: AuthenticationFilter.Cache::remove may throw ConcurrentModificationException
Change implementation to use iterator instead of plain LinkedList

Reviewed-by: dfuchs, vtewari
2019-11-08 11:15:16 +00:00
Jan Lahoda
29852ecd80 8232684: Make switch expressions final
Reviewed-by: alanb, mcimadamore, kvn
2019-11-12 06:32:13 +00:00
Phil Race
53439611f0 Merge 2019-10-18 09:25:06 -07:00
Alexey Ivanov
8ca21069c6 8223558: Java does not render Myanmar script correctly
Reviewed-by: prr, serb
2019-10-16 22:30:30 +01:00
Sergey Bylokhov
e4b73897ad 8232225: Rework the fix for JDK-8071483
Reviewed-by: prr
2019-10-15 22:42:23 -07:00
Alan Bateman
6d98a3bdd8 8205132: Degrade Thread.countStackFrames() to throw UOE
Reviewed-by: mchung, dholmes, dcubed
2019-10-31 16:45:58 +00:00
Lance Andersen
3cc7b5babe 8231451: ZipFileInputStream::skip handling of negative values with STORED entries
Reviewed-by: clanger, bpb, alanb
2019-10-30 15:54:41 -04:00
Mandy Chung
5b0fbb2560 8173975: Lookup::in should not allow target class be primitive or array class
Reviewed-by: alanb
2019-10-29 12:52:03 -07:00
Naoto Sato
127c4a4e1b 8231273: Upgrade CLDR to v36
Reviewed-by: rriggs
2019-10-28 11:06:17 -07:00
Alan Bateman
0290476112 8212132: (dc) Remove DatagramChannelImpl finalize method
Reviewed-by: bpb, chegar, dfuchs, martin
2019-10-27 12:13:51 +00:00
Prasanta Sadhukhan
65a60129c8 Merge 2019-10-15 14:19:55 +05:30
Hamlin Li
600b3e7e37 8134599: TEST_BUG: java/rmi/transport/closeServerSocket/CloseServerSocket.java fails intermittently with Address already in use
Reviewed-by: weijun, darcy, rriggs, coffeys
2019-10-17 13:34:06 +08:00
Hamlin Li
2a43248dba 8209824: Improve the code coverage for ThreadLocal
Reviewed-by: dholmes, alanb
2019-10-17 13:18:01 +08:00
Ivan Gerasimov
31afddccae 8230407: SocketPermission and FilePermission action list allows leading comma
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Reviewed-by: chegar
2019-10-16 14:32:17 -07:00
Daniel Fuchs
ecde34ee35 8231449: HttpClient’s client ssl certificate authentication seems to be broken
SSLFlowDelegate.Reader and SubscriberWrapper are changed to better cooperate on when more demand should be requested from upstream. The issue encountered in this scenario was triggered by a large certificate which caused the SSLFlowDelegate to stop requesting data from upstream during the handshake although the engine handshake status was NEED_UNWRAP.

Reviewed-by: chegar
2019-10-16 14:50:53 +01:00
Henry Jen
9dd506f713 Merge 2019-10-15 21:33:54 +00:00
Naoto Sato
406c2a9b00 8212749: DecimalFormat.setGroupingSize(int) allows setting negative grouping size
8231984: Clarify semantics of DecimalFormat.getGroupingSize(0)

Reviewed-by: rriggs
2019-10-15 09:25:59 -07:00
Henry Jen
8d141f1048 Merge 2019-10-14 21:01:25 +00:00
Anton Kozlov
4b7bbaf5b0 8231584: Deadlock with ClassLoader.findLibrary and System.loadLibrary call
Reviewed-by: mchung
2019-10-11 14:49:05 -07:00
Naoto Sato
d60ee287e1 8225435: Upgrade IANA Language Subtag Registry to the latest for JDK14
Reviewed-by: rriggs
2019-10-11 11:06:46 -07:00
Roger Riggs
3af3b5de61 8232135: Add diagnostic output to test java/util/ProcessBuilder/Basic.java
Reviewed-by: lancea
2019-10-11 13:14:33 -04:00
Roger Riggs
942402bab8 8231427: Warning cleanup in tests of java.io.Serializable
Reviewed-by: darcy, lancea
2019-10-11 13:11:56 -04:00
Prasanta Sadhukhan
b871c1ff3a Merge 2019-10-11 12:08:01 +05:30
Roger Riggs
24a7ba0c61 8231422: Setting JEP 290 Filter via System Property May Be Ignored
Reviewed-by: smarks, rhalade
2019-10-15 09:52:44 -04:00
Daisy Zhou
273a5277ee 8231213: Migrate SimpleDateFormatConstTest to JDK Repo
Reviewed-by: naoto
2019-10-10 14:43:41 +08:00
Daniel Fuchs
a690af3832 8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
DatagramChannel::disconnect will attempt to rebind to the original port if the local port switches back to 0 after the association is disolved by the system.

Reviewed-by: alanb, chegar, fweimer
2019-10-09 17:38:58 +01:00
Kiran Ravikumar
4b36fb50ed 8231770: Test java/util/zip/FlaterTest.java fails with -Xcheck:jni
Reviewed-by: alanb, coffeys, chegar
2019-10-09 10:14:03 +00:00
Patrick Concannon
dcceed10b6 8222829: DatagramSocket.setSoTimeout does not specify IAE when timeout is negative
Clarifies behaviour of setSoTimeout() method when given negative timeout value.

Reviewed-by: alanb, chegar, dfuchs
2019-10-08 15:03:20 +01:00
Prasanta Sadhukhan
cb13ea5977 Merge 2019-12-02 12:01:40 +05:30
Sergey Bylokhov
876251f840 7124404: [macosx] no awt.multiClickInterval desktop property
Reviewed-by: dmarkov
2019-10-01 10:28:12 -07:00
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