974 Commits

Author SHA1 Message Date
Julia Boes
a8a2246158 8234335: Remove line break in class declaration in java.base
Remove line break in class declarations where applicable

Reviewed-by: rriggs, lancea
2019-11-21 09:10:21 +00:00
Patrick Concannon
e636c69e61 8234103: DatagramSocketImpl::socket is not needed
DatagramSocketImpl has a socket field that links back to the DatagramSocket. This is only used to figure out whether multicasting is supported or not. This fix replaces it with a boolean isMulticast.

Reviewed-by: alanb, chegar, dfuchs
2019-11-20 10:13:10 +00:00
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
Joe Darcy
8534e920b1 8234381: API docs should mention special handling of enums in serialization
Reviewed-by: rriggs
2019-11-19 16:26:58 -08:00
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
Alan Bateman
745feb207c 8233922: Service binding augments module graph with observable incubator modules
Reviewed-by: mchung
2019-11-19 11:35:29 +00:00
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
Brian Burkhalter
f2e8dc42e2 8146298: (dc spec) connect and disconnect methods should specify that they may block
Reviewed-by: alanb, chegar, dfuchs, darcy
2019-11-14 09:06:43 -08: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
Sean Mullan
b171594072 8214483: Remove algorithms that use MD5 or DES from security requirements
Reviewed-by: xuelei
2019-11-13 13:43:06 -05:00
Kiran Ravikumar
25d3cf9216 8233731: repeated typo "fro" for "for"
Reviewed-by: dfuchs
2019-11-13 11:27:50 +00:00
Vladimir Yaroslavskiy
de54eb1513 8226297: Dual-pivot quicksort improvements
Reviewed-by: dl, lbourges
2019-11-12 13:49:40 -08:00
Ivan Gerasimov
68a7b58abb 8233658: Escape + in the expression describing Runtime.Version string
Reviewed-by: naoto
2019-11-06 09:45:26 -08:00
Ivan Gerasimov
1c2b406ab5 8233650: Javadoc for Math.floorMod(int, int) gives wrong example
Reviewed-by: bpb
2019-11-05 20:27:21 -08:00
Brent Christian
3561b4ed50 8233091: Backout JDK-8212117: Class.forName loads a class but not linked if class is not initialized
Reviewed-by: alanb, dholmes, mchung
2019-11-04 11:42:24 -08:00
David Holmes
1d50b2761c 8229516: Thread.isInterrupted() always returns false after thread termination
Reviewed-by: dnsimon, sspitsyn, dcubed, alanb
2019-11-03 18:02:29 -05:00
Alan Bateman
db4909bf99 8232673: (dc) DatagramChannel socket adaptor issues
Reviewed-by: dfuchs, chegar
2019-11-02 10:02:18 +00:00
Brian Burkhalter
2cea148cdf 8162520: (fs) FileStore should support file stores with > Long.MAX_VALUE capacity
Reviewed-by: alanb, darcy, rriggs
2019-11-01 13:16:50 -07: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
Alan Bateman
6d98a3bdd8 8205132: Degrade Thread.countStackFrames() to throw UOE
Reviewed-by: mchung, dholmes, dcubed
2019-10-31 16:45:58 +00:00
Vojin Jovanovic
29f2d74173 8232806: Introduce a system property to disable eager lambda initialization
Reviewed-by: briangoetz, mr, psandoz, forax
2019-10-28 15:03:36 +01: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
Mark Reinhold
d83df45396 8232080: jlink plugins for vendor information and run-time options
Reviewed-by: ihse, alanb, kvn, bobv, mchung
2019-10-29 08:26:55 -07:00
Patrick Concannon
3c1310a60a 8231570: (dc) Clarify implicit bind behavior of DatagramChannel
Update to DatagramChannel spec to make it clear that SecurityException can be thrown in connect send and receive methods

Reviewed-by: alanb, chegar, dfuchs
2019-10-25 12:05:56 +01:00
Alan Bateman
e69b4d261d 8231602: Deprecate Thread.suspend/resume for removal
Reviewed-by: mchung, dholmes, chegar
2019-10-24 11:07:31 +01:00
Claes Redestad
574263a884 8232613: Move Object.registerNatives into HotSpot
Reviewed-by: dholmes, adinn, coleenp, lfoltan, mchung
2019-10-24 09:57:29 +02:00
Mandy Chung
3f94fb08c7 8232617: Update the outdated code comments in java.lang.System class
Reviewed-by: dholmes, bchristi
2019-10-22 09:20:21 -07: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
Patrick Concannon
c497b2b066 8231719: Correct contradictions in timeout range descriptions
Clarified verbiage in method descriptions.

Reviewed-by: chegar, dfuchs
2019-10-16 11:12:47 +01: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
Goetz Lindenmaier
d8c6516c92 8218628: Add detailed message to NullPointerException describing what is null
This is the implementation of JEP 358: Helpful NullPointerExceptions.

Reviewed-by: coleenp, clanger, rschmelter, rriggs, forax, mr
2019-10-14 11:36:17 +02:00
Ivan Gerasimov
463d6e9640 8231859: Extra dash after the exception name in @throws clause of javadoc
Reviewed-by: weijun
2019-10-16 18:47:11 -07:00
Joe Darcy
98c9f8bdc7 8232230: Suppress warnings on non-serializable non-transient instance fields in java.util.concurrent
Reviewed-by: martin
2019-10-16 16:55:52 -07: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
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
Andrew Leonard
0dbfc97c05 8231717: Improve performance of charset decoding when charset is always compactable
Reviewed-by: rriggs, redestad, alanb
2019-10-10 10:28:55 +01:00
Joe Darcy
3c9b6d8554 8231202: Suppress warnings on non-serializable non-transient instance fields in serializable classes
Reviewed-by: rriggs, chegar
2019-10-09 10:17:50 -07:00
Joe Darcy
fbb4093562 8231262: Suppress warnings on non-serializable instance fields in security libs serializable classes
Reviewed-by: mullan, chegar
2019-10-09 09:57:41 -07: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
Severin Gehwolf
dcc9cc3fdd 8232003: (fs) Files.write can leak file descriptor in the exception case
Be sure to close the leaked OutputStream in all cases

Reviewed-by: alanb, bpb, clanger
2019-10-08 15:30:46 +02: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
Patrick Concannon
ee87f2a7a4 8230946: Clarify security manager behaviour of a connected DatagramSocket and DatagramChannel
Update to API, to clarify that packets are dropped in the receive method of non-connected sockets if they fail the security manager checks

Reviewed-by: alanb, chegar, dfuchs
2019-10-08 14:56:46 +01:00
Alan Bateman
51e94d8dac 8231921: (se) SelectorImpl.register does not need to set the attachment when it is null
Reviewed-by: bpb
2019-10-08 10:58:36 +01:00
Stuart Marks
ba63c30a94 8231977: Discuss serializability of collections
Reviewed-by: darcy, plevart, chegar
2019-10-07 17:13:59 -07:00