165 Commits

Author SHA1 Message Date
Shaun Spiller
9807a1372d 8064562: (doc) errors in java.io.PushbackInputStream API documentation
Update the documentation as suggested to reflect reality.

Reviewed-by: lancea, rriggs
2015-02-11 07:40:43 -08:00
Joe Darcy
42d24e8ed5 8072843: Typo in the description of the j.l.r.Executable.getAnnotatedReceiverType
Reviewed-by: lancea
2015-02-10 11:34:13 -08:00
Paul Sandoz
7c67f47c4d 8050819: Please add java.util.Stream.ofNullable(T object)
Reviewed-by: alanb, smarks
2015-02-10 11:18:51 +01:00
Joe Darcy
127d4e1aec 8069277: Doclint regression in java/security/KeyStore.java
Reviewed-by: weijun
2015-02-09 17:49:26 -08:00
Joe Darcy
0d5c151c94 8041395: Doclint regression in java.net.SocketOption
Reviewed-by: lancea
2015-02-09 15:33:56 -08:00
Roger Riggs
8d8f34b9a6 8067800: Unexpected DateTimeException in the java.time.chrono.HijrahChronology.isLeapYear
Check the year range consistently with other Hijrah date years

Reviewed-by: lancea, scolebourne
2015-02-06 17:29:11 -05:00
Staffan Larsen
80a1d2bba8 8072456: @since tags missing from TimeUnit
Reviewed-by: alanb, martin
2015-02-05 12:59:01 +01:00
Mandy Chung
37a1a74efd 8069551: Move java.security.acl from compact3 to java.base
Reviewed-by: alanb, mullan, wetmore
2015-02-03 14:09:20 -08:00
Roger Riggs
ddb472a4dc 8068278: ArrayIndexOutOfBoundsException instead of DateTimeException in j.t.chrono.JapaneseChronology.eraOf()
Corrected era range check

Reviewed-by: mchung, lancea
2015-02-03 14:39:57 -05:00
Alejandro Murillo
004b407992 Merge 2015-02-03 08:45:07 -08:00
Paul Sandoz
dd21d2c4db 8050820: Please add java.util.Optional.stream() to convert Optional<T> to Stream<T>
Reviewed-by: alundblad, forax, chegar, jrose
2015-02-02 14:19:12 +01:00
Paul Sandoz
3b9021981f 8059324: orElseThrow has different signatures for OptionalPrimitive and Optional<T>
Reviewed-by: lancea, chegar
2015-02-02 14:19:00 +01:00
Paul Sandoz
8aae81b484 8048689: Clarify documentation on BaseStream.spliterator
Reviewed-by: lancea, chegar
2015-02-02 14:18:54 +01:00
Alejandro Murillo
e9c6fa1317 Merge 2015-01-30 16:56:08 -08:00
Roger Riggs
24a3c49404 8068284: Missing @throws in DateTimeFormatterBuilder.appendOffset
8068285: Missing @throws in DateTimeFormatterBuilder.appendInstant
8062803: 'principal' should be 'principle' in java.time package description
8062796: java.time.format.DateTimeFormatter error in API doc example

Reviewed-by: lancea, mchung
2015-01-30 16:13:57 -05:00
Roger Riggs
0854df7b86 8055330: (process spec) ProcessBuilder.start and Runtime.exec should throw UnsupportedOperationException on platforms that don't support
Clarify optional behavior and the exception thrown when not supported

Reviewed-by: dfuchs, martin
2015-01-30 16:13:04 -05:00
Brian Burkhalter
2a8d5c46e1 6880737: (fs) FileLock constructors don't throw NPE if the channel argument is null
Throw IllegalArgumentException if the channel parameter is null

Reviewed-by: alanb
2015-01-30 12:56:12 -08:00
Brian Burkhalter
c2fe1ca470 8067669: Documentation for methods in Number incomplete regarding too large values
Remove statments about rounding and truncation from the *Valud() methods

Reviewed-by: rriggs, darcy, alundblad
2015-01-30 10:23:45 -08:00
Joe Darcy
51e2269c61 8071959: java.lang.Object uses implicit default constructor
Reviewed-by: lancea
2015-01-29 16:16:35 -08:00
Joe Darcy
0841b6a90e 8071434: doc updates for java.lang.Object
Reviewed-by: rriggs
2015-01-29 15:14:44 -08:00
Yumin Qi
3f9b8313e3 Merge 2015-01-29 03:54:45 +00:00
Daniel Fuchs
b5f5424c83 8068730: Increase the precision of the implementation of java.time.Clock.systemUTC()
Changes the implementation of java.time.Clock.systemUTC() to take advantage of the maximum resolution of the underlying native clock on which System.currentTimeMillis() is based.

Reviewed-by: dholmes, rriggs, scolebourne, sla
2015-01-28 17:48:59 +01:00
Brian Burkhalter
3e68a8af37 8069269: (spec) Defect in the System.nanoTime spec
Change the description of how to compare two nanoTime values.

Reviewed-by: martin
2015-01-26 17:16:57 -08:00
Paul Sandoz
d58ef60b88 8071477: Better Spliterator implementations for String.chars() and String.codePoints()
Reviewed-by: sherman
2015-01-26 17:26:49 +00:00
Paul Sandoz
318a438643 8032513: The Spliterator characteristics CONCURRENT and IMMUTABLE are mutually exclusive
Reviewed-by: chegar, lancea, dfuchs
2015-01-26 17:06:00 +00:00
Amy Lu
1059b1665d 8069262: Doclint regression in java.nio.channels.Channels
Reviewed-by: darcy
2015-01-23 16:16:39 +00:00
Konstantin Shefov
e70362baba 6933879: URISyntaxException when non-alphanumeric characters are present in scope_id
Reviewed-by: chegar
2015-01-23 15:42:06 +03:00
Peter Levart
eae923a8ae 8068427: Hashtable deserialization reconstitutes table with wrong capacity
Reviewed-by: mduigou, martin, chegar, dfuchs
2015-01-21 21:42:22 +01:00
Lev Priima
7882032236 8067471: Use private static final char[0] for empty Strings
Reviewed-by: igerasim, redestad, shade
2015-01-14 21:35:52 +03:00
Claes Redestad
3a90ffa2ab 8068498: Remove constructor dependency on line.separator from PrintWriter and BufferedWriter
Reviewed-by: alanb, sherman
2015-01-06 06:49:52 +01:00
Chris Hegarty
06e81aae83 8068599: Add mutability, serializability, and thread-safety, caveat to all Collectors that do not accept a Collection supplier
Reviewed-by: psandoz
2015-01-13 17:14:51 +00:00
Brian Burkhalter
4417397e26 4026465: Provide more byte array constructors for BigInteger
Add two's complement and sign-magnitude constructors for byte arrays with offset and length.

Reviewed-by: darcy, alanb, scolebourne
2015-01-09 17:27:28 -08:00
Joe Darcy
d332437cae 6481080: (ann) @Deprecated annotation has no effect on packages
Reviewed-by: lancea, alanb, psandoz, abuckley
2015-01-08 10:06:45 -08:00
Brian Burkhalter
29fc16ebbe 8059175: Zero BigDecimal with negative scale prints leading zeroes in String.format
Correct erroneous appending of zeroes and clean up code logic.

Reviewed-by: darcy, psandoz
2015-01-07 14:15:00 -08:00
Chris Hegarty
916c818ec2 8054565: FilterOutputStream.close may throw IOException if called twice and underlying flush or close fails
Co-authored-by: Nathan Clement <nathan.a.clement@hotmail.com>
Reviewed-by: alanb, prappo
2015-01-04 19:32:46 +00:00
Brian Burkhalter
cfcc0c431a 8064463: BigDecimal should populate NumberFormatException message
Populate all NumberFormatExceptions with appropriate messages.

Reviewed-by: alanb
2014-12-29 09:10:15 -08:00
Brian Burkhalter
0062f27c96 8030090: (fs) Add default methods to Path for derived methods
Use method bodies from sun.nio.fs.AbstractPath as default method implementations in Path.

Reviewed-by: alanb
2014-12-23 10:09:52 -08:00
Vinnie Ryan
befd7d1c25 8044445: JEP 229: Create PKCS12 Keystores by Default
Reviewed-by: mullan, weijun
2014-12-23 16:30:57 +00:00
Pavel Rappo
69df2fa9e5 8067870: Fix java.io.ObjectInputStream.PeekInputStream#skip
Reviewed-by: rriggs, alanb
2014-12-18 16:44:32 +00:00
Naoto Sato
9cb99ee080 8062588: Support java.util.spi.*, java.text.spi.*, java.awt.im.spi loaded from classpath
Reviewed-by: alanb
2014-12-16 12:48:31 -08:00
Pavel Rappo
a21f0f99a9 8066867: Add InputStream transferTo to transfer content to an OutputStream
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Patrick Reinhart <patrick@reini.net>
Reviewed-by: chegar
2014-12-16 12:43:36 +00:00
Staffan Friberg
9827fe02ea 8067289: Fix deprecation warnings in java.base module - CRC32C
To remove the deprecation warning in CRC32C class

Reviewed-by: darcy
2014-12-16 04:58:34 +00:00
Brian Burkhalter
871abc48e4 8025619: (fc) FileInputStream.getChannel on closed stream returns FileChannel that doesn't know that stream is closed
If the stream is closed ensure getChannel() returns a closed channel. Also, FileKey.create() should throw an IOException directly instead of wrapping it in an Error.

Reviewed-by: alanb
2014-12-15 12:09:49 -08:00
Martin Buchholz
08eb67b941 8067377: My hobby: caning, then then canning, the the can-can
Fix ALL the stutters!

Reviewed-by: rriggs, mchung, lancea
2014-10-30 07:31:41 -07:00
Roger Riggs
b13527e322 8056238: (process) ProcessBuilder.redirectError spec has a broken link
Reviewed-by: lancea
2014-12-12 15:07:00 -05:00
Otavio Santana
89cec23580 8055723: Replace concat String to append in StringBuilder parameters (dev)
Reviewed-by: redestad, ulfzibis, weijun, prappo, igerasim, alanb
2014-12-11 15:23:02 +08:00
Xueming Shen
b41070012b 8046219: (str spec) String(byte[], int, int, Charset) should be clearer when IndexOutOfBoundsException is thrown
To update the java doc to clarify the existing behavior

Reviewed-by: lancea
2014-12-10 14:11:05 -08:00
Vladimir Ivanov
e0eba41e1c 8066746: MHs.explicitCastArguments does incorrect type checks for VarargsCollector
Reviewed-by: jrose, psandoz
2014-12-09 09:22:07 -08:00
Pavel Rappo
421fc583be 8066678: java.nio.channels.Channels cleanup
Reviewed-by: alanb, chegar
2014-12-05 15:35:15 +00:00
Joe Darcy
4edac8c9d2 8066617: Suppress deprecation warnings in java.base module
Reviewed-by: lancea
2014-12-04 12:59:43 -08:00