64 Commits

Author SHA1 Message Date
Sunny Chan
6cbbf83a1a 8169556: Wrapping of FileInputStream's native skip and available methods
Wrap further native methods in FileInputStreams

Reviewed-by: chegar, bpb, rriggs
2016-01-28 23:13:50 -05:00
Ivan Gerasimov
4541ef3ed7 8168923: Use unsigned random long in a temp directory name
Reviewed-by: bpb, alanb
2016-11-02 18:45:14 +03:00
Weijun Wang
0527e4e401 8167646: Better invalid FilePermission
Reviewed-by: rriggs
2016-10-31 16:41:41 +08:00
Weijun Wang
2c2ce8ad1f 8168127: FilePermissionCollection merges incorrectly
Reviewed-by: rriggs
2016-10-31 16:40:31 +08:00
Claes Redestad
ec5f1743aa 8168640: (fc) Avoiding AtomicBoolean in FileInput/-OutputStream improves startup
Reviewed-by: alanb, plevart
2016-10-26 17:50:08 +02:00
Roger Riggs
e89ce16097 8164908: ReflectionFactory support for IIOP and custom serialization
Add support for serialization to sun.reflect.ReflectionFactory

Reviewed-by: alanb, chegar, plevart, amlu
2016-10-24 14:52:51 -04:00
Weijun Wang
ba9df3533c 8164705: Remove pathname canonicalization from FilePermission
Reviewed-by: alanb, bpb
2016-10-10 08:28:50 +08:00
Roger Riggs
9aa8b6728a 8155760: Implement Serialization Filtering
8166739: Improve extensibility of ObjectInputFilter information passed to the filter

Reviewed-by: dfuchs, chegar, briangoetz, plevart
2016-10-04 13:45:42 -04:00
Ivan Gerasimov
25ff06c014 8163517: Various cleanup in java.io code
Reviewed-by: shade, rriggs, redestad
2016-08-18 22:07:09 +03:00
Ivan Gerasimov
9088dcdb4a 8163518: Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
Reviewed-by: rriggs, shade
2016-08-11 17:03:40 +03:00
Brian Burkhalter
432ff69a8b 8136738: InputStream documentation for IOException in skip() is unclear or incorrect
Clarify javadoc of skip().

Reviewed-by: rriggs, prappo
2016-06-20 14:08:05 -07:00
Naoto Sato
ffd210aefb 8146156: Inconsistent default locale in string formatter methods
Reviewed-by: sherman
2016-06-06 10:52:21 -07:00
Xueming Shen
7be8e94544 8147588: Jar file and Zip file not removed in spite of the OPEN_DELETE flag
Reviewed-by: alanb
2016-05-23 12:53:56 -07:00
Brian Burkhalter
9cdeece6b6 8130679: Writer/StringWriter.write methods do not specify index out bounds
Add throws tag indicating IndexOutOfBoundsExcepion to write() methods which have an index parameter.

Reviewed-by: chegar, prappo, rriggs
2016-05-17 16:04:53 -07:00
Mandy Chung
0f1d1d98bb 8155977: ObjectInputStream::resolveClass & resolveProxyClass for platform loader
Reviewed-by: acorn, alanb, chegar, dfuchs
2016-05-12 11:16:56 -07:00
Claes Redestad
e8cd76568d 8155775: Re-examine naming of privileged methods to access System properties
Reviewed-by: mullan
2016-05-03 15:50:54 +02:00
Claes Redestad
2b5207e74d 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs, chegar, weijun
2016-04-21 13:39:53 +02:00
Brian Burkhalter
6e3d77a8ba 8154183: (spec) Spec of read(byte[],int,int) and readFully(byte[],int,int) is confusing/incomplete
Clarify and expand specification of ObjectInputStream.read(byte[],int,int) and both variants of {DataInput,DataInputStream,ObjectInputStream,RandomAccessfile}.readFully().

Reviewed-by: rriggs, smarks
2016-04-20 15:06:13 -07:00
Shanliang Jiang
83e0997bbd 8144430: Improve JMX connections
Reviewed-by: dfuchs, jbachorik, skoivu, ahgross
2016-01-22 13:27:09 +01:00
Chris Hegarty
0aa59442eb 8129952: Ensure thread consistency
Reviewed-by: alanb, ahgross, skoivu
2016-01-20 20:51:45 +00:00
Chris Hegarty
07cdc33e34 8137058: Clear out all non-Critical APIs from sun.reflect
Reviewed-by: alanb, jfranck, mchung
2016-04-15 16:19:15 +01:00
Brian Burkhalter
81c1051455 8151957: ObjectInputStream - Use new convenience method for immutable Map creation during static initialization
Initialize primClasses primitive type name-to-class mapping using a new Map.of() conveience method.

Reviewed-by: lancea, redestad, smarks
2016-03-22 15:37:55 -07:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Chris Hegarty
40965e0d6a 8134424: BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
Reviewed-by: rriggs, shade
2016-02-15 14:25:21 +00:00
Iris Clark
9d07dc02e1 8136494: Update "@since 1.9" to "@since 9" to match java.version.specification
Reviewed-by: alanb, chegar, lancea, prr
2016-01-20 11:02:36 -08:00
Chris Hegarty
aa0ef2e9f5 8145544: Move sun.misc.VM to jdk.internal.misc
Reviewed-by: alanb, mullan, weijun
2016-01-06 10:01:44 +00:00
Claes Redestad
22df7c453f 8145988: Use the raw methods of java.net.URI when possible
Reviewed-by: shade, chegar
2015-12-22 16:42:16 +01:00
Claes Redestad
5f1918e76e 8145680: Remove unnecessary explicit initialization of volatile variables in java.base
Reviewed-by: alanb, chegar, jfranck, shade
2015-12-21 20:54:00 +01:00
Brian Burkhalter
7a0c72ef9c 8143394: PushbackReader throws NullPointerException
Synchronize on lock in close() to avoid NPE from read()-close() race.

Reviewed-by: alanb, dfuchs
2015-12-15 09:02:46 -08:00
Vyom Tewari
dc93a924ee 6856817: Poor performance of Writer#append with CharBuffer
Poor performance of Writer#append with CharBuffer

Reviewed-by: rriggs, dfuchs, sherman, shade
2015-12-02 21:32:40 +01:00
Claes Redestad
6e98557332 8143926: ObjectStreamField constructor eagerly load ObjectStreamClass
Reviewed-by: chegar, alanb, shade
2015-12-01 09:22:01 +01:00
Chris Hegarty
bdbc4d15df 8140606: Update library code to use internal Unsafe
Reviewed-by: alanb, mchung, psandoz, weijun
2015-11-11 09:19:12 +00:00
Claes Redestad
10cd607753 6823565: Excessive use of HandleList class in de-serialization code causes OutOfMemory
Reviewed-by: chegar, shade
2015-10-28 12:35:54 +01:00
Chris Hegarty
9ce7c19d86 8135043: ObjectStreamClass.getField(String) too restrictive
Reviewed-by: igerasim
2015-09-08 12:40:57 +01:00
Chris Hegarty
391696a6f8 8130253: ObjectStreamClass.getFields too restrictive
Reviewed-by: igerasim, skoivu
2015-07-03 14:40:49 +01:00
Chris Hegarty
6279b4ab74 8103671: More objective stream classes
Reviewed-by: rriggs, igerasim
2015-06-29 11:44:53 +01:00
Chris Hegarty
0cc24c29ca 8137056: Move SharedSecrets and interface friends out of sun.misc
Reviewed-by: alanb, mchung, psandoz, rriggs
2015-09-28 13:39:27 +01:00
Martin Buchholz
a2f0fe3c94 8136583: Core libraries should use blessed modifier order
Run blessed-modifier-order script (see bug)

Reviewed-by: psandoz, chegar, alanb, plevart
2015-09-15 21:56:04 -07:00
Alexander Stepanov
321faa7346 8132468: docs: replace <tt> tags (obsolete in html5) for java.io, java.lang, java.math
Reviewed-by: lancea, dfuchs, smarks
2015-08-06 13:20:13 +03:00
Chris Hegarty
6716f24c45 8076405: Improve serial serialization
Reviewed-by: alanb, igerasim
2015-04-17 15:36:32 +01:00
Chris Hegarty
4799f0adcd 8076401: Serialize OIS data
Reviewed-by: alanb, igerasim
2015-04-17 15:28:44 +01:00
Ivan Gerasimov
0e510a1f61 8077242: (str) Optimize AbstractStringBuilder.append(CharSequence, int, int) for String argument
Reviewed-by: martin
2015-07-02 00:26:35 +03:00
Peter Levart
24d0d5af7c 8042377: BufferedWriter and FilteredOutputStream.close throw IAE if flush and close throw equal exceptions
Explcitly handle IOExceptions in FilteredOutputStream.close() instead of using try-with-resources approach.

Reviewed-by: chegar, alanb
2015-06-29 08:39:29 -07:00
Sean Mullan
e37ef5fefc 8056179: Store permissions in concurrent collections in PermissionCollection subclasses
8065942: Store PermissionCollection entries in a ConcurrentHashMap instead of a HashMap in Permissions class

Reviewed-by: weijun
2015-06-09 09:18:07 -04:00
Alexander Stepanov
2541238e18 8081517: minor cleanup for docs
Fix some tidy and javadoc warnings/errors

Reviewed-by: lancea, rriggs
2015-06-08 16:37:53 +04:00
Chris Hegarty
46b53cd5cf 8080835: Add blocking bulk read to java.io.InputStream
Reviewed-by: alanb, rriggs, prappo
2015-06-04 10:27:06 +01:00
Chris Hegarty
e11aec59a2 8071474: Better failure atomicity for default read object
Reviewed-by: plevart, coffeys
2015-06-03 15:30:44 +01:00
Joe Darcy
0de6f9f413 8080901: Replace package.html files with package-info.java in the java.base module
Reviewed-by: lancea, alanb, vinnie
2015-05-22 10:45:59 -07:00
Pavel Rappo
431c16c78d 8029689: (spec) Reader.read(char[], int, int) throws unspecified IndexOutOfBoundsException
Reviewed-by: chegar, lancea
2015-05-12 13:59:31 +01:00
Joe Darcy
d112215fc2 8078467: Update core libraries to use diamond with anonymous classes
Reviewed-by: mchung, alanb
2015-04-23 09:32:35 -07:00