1627 Commits

Author SHA1 Message Date
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
Xue-Lei Andrew Fan
96a8b9796d 8235263: Revert TLS 1.3 change that wrapped IOExceptions
Reviewed-by: mullan
2019-12-03 17:15:02 -08: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
Weijun Wang
bc19b64856 8234744: KeyStore.store can write wrong type of file
Reviewed-by: mullan
2019-12-03 14:38:18 +08:00
Xue-Lei Andrew Fan
50714b0fb9 8235183: Remove the "HACK CODE" in comment
Reviewed-by: jnimeh
2019-12-02 10:42:27 -08:00
Roger Riggs
13569d67de 8233799: Review the need for overview.html in the java.time package
Reviewed-by: dfuchs, naoto, lancea
2019-12-02 09:45:32 -05:00
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
Matthias Baesken
673c732a33 8234821: remove unused functions from libjli
Reviewed-by: clanger, alanb
2019-11-28 13:02:39 +01: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
Julia Boes
aa66dd422f 8234799: javadoc of java.util.Arrays.compare(T[] a, T[] b) misses the word "less"
Add word "less" to method-level javadoc

Reviewed-by: dfuchs, lancea
2019-11-27 15:13:58 +00:00
Joe Darcy
deb0c481e7 8234917: Explicitly discuss java.lang.Enum in Class.isEnum spec
Reviewed-by: jjg
2019-11-27 10:23:40 -08:00
Joe Darcy
6cd20759b6 8234781: Update description of InvalidClassException to include more conditions
Reviewed-by: alanb, chegar
2019-11-27 06:36:41 -08:00
Jan Lahoda
229e0d1631 8231826: Implement javac changes for pattern matching for instanceof
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Gavin Bierman <gavin.bierman@oracle.com>
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Srikanth Adayapalam <srikanth.adayapalam@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: mcimadamore
2019-11-27 09:00:01 +01:00
Vladimir Ivanov
e515a609e9 8234401: ConstantCallSite may stuck in non-frozen state
Reviewed-by: psandoz
2019-11-26 16:09:17 +03:00
Brian Burkhalter
4d86094783 8179320: File.getUsableSpace() returns a negative number on very large file system
Reviewed-by: alanb, rriggs, darcy
2019-11-25 15:30:35 -08:00
Matthias Baesken
6eedae02a7 8234629: remove unused functions from libnet
Reviewed-by: alanb, vtewari
2019-11-22 10:29:12 +01:00
Mandy Chung
34c43f791e 8233956: MethodHandles.dropArguments javadoc lists parameters in wrong order
Reviewed-by: jjg
2019-11-22 11:34:22 -08:00
Brian Burkhalter
adf0d4eae8 8164993: (ch) ReadableByteChannel should note a possible IllegalArgumentException
Reviewed-by: alanb, darcy
2019-11-22 09:00:16 -08: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
Matthias Baesken
70c5d41f28 8234339: replace JLI_StrTok in java_md_solinux.c
Reviewed-by: clanger, rriggs
2019-11-18 16:49:39 +01:00
Xue-Lei Andrew Fan
5161ab9493 8233954: UnsatisfiedLinkError or NoSuchAlgorithmException after removing sunec.dll
Reviewed-by: ascarpino
2019-11-21 18:42:33 -08:00
Anton Litvinov
09cc9f2b18 8068184: Fix for JDK-8032832 caused a deadlock
Reviewed-by: dfuchs, chegar
2019-11-21 17:04:27 +00:00
Chris Hegarty
76e5a32c52 8233847: (sctp) Flx link-local IPv6 scope handling and test cleanup
Reviewed-by: alanb
2019-11-21 12:14:29 +00:00
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
Matthias Baesken
20a03807b8 8234501: remove obsolete NET_ReadV
Reviewed-by: alanb, vtewari
2019-11-20 14:16:29 +01:00
Martin Balao
0e5a288dfe 8233404: System property to set the number of PBE iterations in JCEKS keystores
Reviewed-by: weijun
2019-11-12 00:30:55 -03: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
Weijun Wang
d5b423d17c 8234377: new BitArray(0).toString() throws ArrayIndexOutOfBoundsException
Reviewed-by: mullan, wetmore
2019-11-20 08:12:14 +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
Weijun Wang
c0d097eac6 8214024: Remove the default keytool -keyalg value
Reviewed-by: mullan
2019-11-15 09:06:58 +08: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
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
Michael McMahon
9f91b8dde2 8233958: Memory retention due to HttpsURLConnection finalizer that serves no purpose
Reviewed-by: dfuchs, rriggs
2019-11-13 09:09:41 +00: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
Ivan Gerasimov
8e859259bc 8233884: Avoid looking up standard charsets in security libraries
Reviewed-by: coffeys
2019-11-12 01:36:17 -08:00
Jan Lahoda
29852ecd80 8232684: Make switch expressions final
Reviewed-by: alanb, mcimadamore, kvn
2019-11-12 06:32:13 +00:00
Mat Carter
f390c87d8d 8231863: Crash if classpath is read from @argument file and the main gets option argument
Reviewed-by: alanb, mchung
2019-11-11 17:43:10 -08:00
Alan Bateman
090dc51a4e 8233435: (dc) DatagramChannel should allow IPv6 socket join IPv4 multicast groups (macOS, win)
Reviewed-by: dfuchs
2019-11-09 11:48:37 +00:00