84 Commits

Author SHA1 Message Date
Roger Riggs
933bb55c49 8237651: Clarify initialization of jdk.serialFilter
Reviewed-by: bchristi
2020-01-27 08:36:55 -05:00
Roger Riggs
796f3ba8be 8232419: Improve Registry registration
Reviewed-by: smarks, chegar
2019-10-30 13:22:35 -04:00
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
Brian Burkhalter
7cdecd8981 8235668: LineNumberReader#getLineNumber() returns wrong line number (one fewer) in Lucene test
Reviewed-by: alanb, rriggs
2019-12-12 13:43:07 -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
Ivan Gerasimov
cd589d8469 8234147: Avoid looking up standard charsets in core libraries
Reviewed-by: alanb
2019-12-01 15:29:37 -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
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
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
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
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
Aleksei Efimov
12bf1b15ab 8213429: Windows file handling redux
Reviewed-by: alanb, dfuchs, weijun, bpb, rhalade, ahgross
2019-05-20 15:57:16 +01:00
Weijun Wang
9eb755e85e 8209901: Canonical file handling
Reviewed-by: mullan, alanb, ahgross
2019-04-22 13:01:57 +08:00
Brian Burkhalter
c1b844a225 8229022: BufferedReader performance can be improved by using StringBuilder
Reviewed-by: igerasim, vtewari, dfuchs
2019-10-02 07:50:06 -07:00
Ivan Gerasimov
680fceb9ba 8230415: Avoid redundant permission checking in FilePermissionCollection and SocketPermissionCollection
Reviewed-by: mullan
2019-09-27 17:50:09 -07:00
Julia Boes
d15a57b842 8231186: Replace html tag <code>foo</code> with javadoc tag {@code foo} in java.base
Minor coding style update of javadoc tag in any file in java.base

Reviewed-by: bchristi, lancea
2019-09-24 09:43:43 +01:00
Joe Darcy
f3208bfcd0 8199424: consider removing ObjectInputStream and ObjectOutputStream native methods
Reviewed-by: bpb, rriggs, redestad
2019-09-20 09:32:45 -07:00
Julia Boes
b15b322cf3 8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base

Reviewed-by: prappo, lancea
2019-09-20 11:07:52 +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
Joe Darcy
10f1f10f2e 8230723: Remove default constructors from java.lang and java.io
Reviewed-by: bpb, rriggs
2019-09-09 10:13:42 -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
Joe Darcy
cebd13dbaa 8230681: Add @since tag to java.io.Serial
Reviewed-by: lancea, bpb
2019-09-05 15:55:57 -07:00
Joe Darcy
9d764ee48e 8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
2019-08-29 16:31:34 -07:00
Arthur Eubanks
916c2e3cf3 8229899: Make java.io.File.isInvalid() less racy
Reviewed-by: alanb, martin, shade
2019-08-19 16:08:28 -07:00
Joe Darcy
792a6d1645 8202385: Annotation to mark serial-related fields and methods
Reviewed-by: rriggs, chegar, alanb
2019-08-19 18:12:09 -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
ba9c952f87 8228392: Backout incorrect change done by JDK-8067801
Reviewed-by: lancea
2019-07-18 17:10:33 -07:00
Brian Burkhalter
ba761b4cbd 8073213: javadoc of PushbackInputStream methods should specify NullPointerExceptions
Reviewed-by: lancea, darcy
2019-07-17 15:12:47 -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
Brian Burkhalter
60530bae7c 8131664: Javadoc for PrintStream is now incorrect
Reviewed-by: lancea, darcy
2019-07-17 14:24:24 -07:00
Brian Burkhalter
618afc3fa2 8219992: Correct the documentation of PrintWriter to refer System.lineSeparator
Reviewed-by: darcy, lancea, rriggs
2019-06-06 08:11:25 -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
Deepak Kejriwal
9a193f38a3 8214563: Use {@systemProperty} in specification of system properties in java.nio packages
8214565: Use {@systemProperty} for definitions of system properties

Reviewed-by: alanb, rriggs
2019-05-23 12:36:54 +05:30
Ivan Gerasimov
218204b1a3 8223593: Refactor code for reallocating storage
Reviewed-by: prappo, plevart, rriggs, smarks
2019-05-21 18:40:29 -07:00
Roger Riggs
e6c52060dc 8220166: Performance regression in deserialization (4-6% in SPECjbb)
Reviewed-by: shade, dholmes, alanb
2019-05-17 10:48:02 -04: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
Brian Burkhalter
049c574933 8221597: A typo in the Java API doc for File.getUsableSpace()
Reviewed-by: lancea, darcy
2019-04-05 08:37:33 -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
Brian Burkhalter
954c66afed 8078860: (spec) InputStream.read(byte[] b, int off, int len) claims to not affect element b[off]
Reviewed-by: lancea, darcy, rriggs
2019-03-22 08:18:26 -07:00
Jonathan Gibbons
2df0f4b4dd 8220249: fix headings in java.compiler
Reviewed-by: erikj, darcy
2019-03-20 15:35:26 -07:00
Roger Riggs
0ec2218c50 8202675: Replace process-wide terminology in serial filtering to be consistent
Reviewed-by: alanb, lancea
2019-01-15 15:56:41 -05:00
Brian Burkhalter
8b0048861b 8216172: File.renameTo(File dest) should check for NPE at the very beginning
Reviewed-by: lancea
2019-01-11 08:20:25 -08:00
Claes Redestad
346018251f 8215412: Optimize PrintStream.println methods
Reviewed-by: rriggs, dfuchs, forax
2019-01-04 20:58:35 +01:00
Ivan Gerasimov
d76c772d2f 6996807: FieldReflectorKey hash code computation can be improved
Reviewed-by: rriggs
2019-01-02 15:33:32 -08:00
Claes Redestad
a3df1d618e 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
2018-12-13 15:31:05 +01:00
Roger Riggs
938b844088 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
2018-12-07 11:51:17 -05:00
Brian Burkhalter
4a028afe5e 6516099: InputStream.skipFully(int k) to skip exactly k bytes
Reviewed-by: rriggs, bchristi, serb, dfuchs
2018-12-05 15:58:46 -08:00
Martin Buchholz
7212bf0a77 8213406: (fs) More than one instance of built-in FileSystem observed in heap
Reviewed-by: alanb, cushon, weijun
2018-11-28 14:28:28 -08:00
Mandy Chung
9ffe7e1205 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
2018-11-06 10:01:16 -08:00
Mandy Chung
5e6d6b8642 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Reviewed-by: dholmes, thartmann
2018-10-22 17:00:04 -07:00