333 Commits

Author SHA1 Message Date
Doug Lea
cee580a37d 8166646: Miscellaneous changes imported from jsr166 CVS 2016-10
Reviewed-by: martin, smarks, psandoz
2016-11-28 23:47:23 -08:00
Doug Lea
3f4bdaf9bd 8169272: Clarify Semaphore.drainPermits behavior when current permits are negative
Reviewed-by: martin, smarks, psandoz
2016-11-28 23:43:39 -08:00
Doug Lea
58623faf53 8166507: ConcurrentSkipListSet.clear() can leave the Set in an invalid state
Reviewed-by: martin, smarks, psandoz
2016-11-28 23:39:54 -08:00
Doug Lea
3d0d86185e 8143577: optimize ArrayList.removeIf
8169679: ArrayList.subList().iterator().forEachRemaining() off-by-one-error
8167202: ArrayDeque improvements
8164793: new ArrayDeque(2**N) allocates backing array of size 2**(N+1)
8169739: LinkedBlockingDeque spliterator needs to support node self-linking
8169738: CopyOnWriteArrayList subList needs more synchronization

Reviewed-by: martin, smarks, psandoz, forax
2016-11-28 23:36:11 -08:00
Paul Sandoz
f5f1fcb803 8132964: Spliterator documentation on Priority(Blocking)Queue
Reviewed-by: martin, dl, chegar
2016-11-23 10:35:44 -08:00
Paul Sandoz
11b92f7ddb 8169808: Stream returning methods should specify if they are late binding
Reviewed-by: martin
2016-11-23 10:35:43 -08:00
Paul Sandoz
ce32d2aec8 8072784: Better spliterator implementation for BitSet.stream()
Reviewed-by: martin
2016-11-16 14:26:14 -08:00
Paul Sandoz
4bcf62b9d1 8132097: Stream.generate should use a covariant Supplier as parameter
Reviewed-by: forax, martin
2016-11-16 14:26:12 -08:00
Paul Sandoz
9555cf3b50 8164934: Optional.map() javadoc code example
Reviewed-by: forax, chegar
2016-11-09 10:36:32 -08:00
Paul Sandoz
e7fe2a82ca 8166735: JarFile#getVersion spec clarification for unversioned jars
Reviewed-by: mchung, alanb
2016-11-08 12:36:21 -08:00
Paul Sandoz
060ce7c739 8165782: java.util.jar.JarFile.runtimeVersion() spec needs clarification
Reviewed-by: mchung, alanb
2016-11-08 12:36:13 -08:00
Stuart Marks
d55905fe1b 8156079: consider making empty instances singletons
8169222: minor immutable collections optimizations

Reviewed-by: forax, redestad, alanb
2016-11-04 14:29:34 -07:00
Paul Sandoz
530da2782a 8168841: The JavaDoc of java.util.stream.Collectors method collectingAndThen has incorrect code snippet
Reviewed-by: smarks, lancea, tvaleev
2016-11-01 17:29:49 -07:00
Xueming Shen
882dd28a12 8166261: Scanner.nextInt(int) (and similar methods) throws PatternSyntaxException
Reviewed-by: naoto
2016-10-31 10:34:31 -07:00
Masayoshi Okutsu
c0ee1b68c1 8152926: PropertyResourceBundle constructor don't understand the System.setProperty change
Reviewed-by: naoto, peytoia
2016-10-24 15:26:15 +09:00
Stuart Marks
6bdfb6eb48 8152617: add missing wildcards to Optional or() and flatMap()
Reviewed-by: psandoz, forax
2016-10-20 13:27:48 -07:00
Rachna Goel
8b7cc86473 8167992: Update documentation of java.util.Date class
Reviewed-by: okutsu, peytoia
2016-10-17 20:13:16 +09:00
Mandy Chung
44a7c1b644 8164689: Retrofit jar, jlink, jmod as a ToolProvider
Reviewed-by: alanb, lancea
2016-10-12 15:41:00 -07:00
Jonathan Bluett-Duncan
a19fc7fbdb 8134373: use collections convenience factories in the JDK
Reviewed-by: scolebourne, prappo, dfuchs, redestad, smarks
2016-10-12 11:54:38 -07:00
Paul Sandoz
2fc1b1389a 8167524: Rogue character in Stream javadoc
Reviewed-by: smarks, darcy
2016-10-11 16:25:52 -07:00
Paul Sandoz
bf450d55c1 8164814: Deprecate Atomic*.weakCompareAndSet and defer to Atomic*.weakCompareAndSetPlain
Reviewed-by: martin, dl
2016-10-10 15:58:42 -07:00
Jonathan Gibbons
0f9a011475 8159855: Create an SPI for tools
Reviewed-by: mchung
2016-10-07 16:49:31 -07:00
Claes Redestad
8ebdbe3b5c 8167005: Comment on the need for an empty constructor in ArrayList$Itr
Reviewed-by: smarks, shade, chegar
2016-10-06 02:02:48 +02:00
Rachna Goel
5e84d49af5 8166993: typo in java.util.Locale javadoc
Reviewed-by: okutsu, peytoia
2016-10-04 17:18:46 +09:00
Claes Redestad
2cee0a499a 8166840: Synthetic bridge constructor in ArrayList$Itr blocks inlining
Reviewed-by: vlivanov, mhaupt, forax
2016-09-28 14:27:34 +02:00
Doug Lea
c7cf1788ed 8165919: Miscellaneous changes imported from jsr166 CVS 2016-09-21
Reviewed-by: martin, chegar, shade
2016-09-23 13:24:33 -07:00
Doug Lea
9496149e05 8166465: CompletableFuture.minimalCompletionStage().toCompletableFuture() should be non-minimal
Reviewed-by: martin, chegar, shade
2016-09-23 13:14:14 -07:00
Nishit Jain
14d689c4a6 8165984: ResourceBundle lookup fields not completely thread-safe
Reviewed-by: okutsu, naoto
2016-09-18 23:09:37 +09:00
Steve Drach
375fe9b50c 8163798: Create a JarFile versionedStream method
Reviewed-by: mchung, psandoz, redestad
2016-09-13 13:55:35 -07:00
Doug Lea
60cd28abd7 8164169: Miscellaneous changes imported from jsr166 CVS 2016-09
Reviewed-by: martin, psandoz, shade
2016-09-12 13:14:49 -07:00
Doug Lea
d7f3695a90 8164983: Improve CountedCompleter code samples; add corresponding tests
Reviewed-by: martin, psandoz, shade
2016-09-12 13:07:30 -07:00
Claes Redestad
2ac4d6a7d3 8165723: JarFile::isMultiRelease() method returns false when it should return true
Reviewed-by: alanb
2016-09-12 17:45:55 +02:00
Paul Sandoz
a7dd7b59da 8164691: Stream specification clarifications for iterate and collect
Reviewed-by: briangoetz, smarks, tvaleev
2016-09-09 14:54:29 -07:00
Stuart Marks
97fa8cd04e 8159404: throw UnsupportedOperationException unconditionally for mutator methods
Reviewed-by: martin, psandoz
2016-09-06 16:08:54 -07:00
Ivan Gerasimov
164b17df5b 8165243: Base64.Encoder.wrap(os).write(byte[],int,int) with incorrect arguments should not produce output
Reviewed-by: rriggs, alanb, sherman
2016-09-03 13:43:01 +03:00
Paul Sandoz
3bd5ebe2ef 8162108: Rename weakCompareAndSetVolatile to weakCompareAndSet
Reviewed-by: martin
2016-09-01 13:56:13 -07:00
Paul Sandoz
c073edc24c 8162106: Remove VarHandle.addAndGet
Reviewed-by: shade, redestad
2016-09-01 10:17:01 -07:00
Doug Lea
4c999ed180 8163353: NPE in ConcurrentHashMap.removeAll()
Reviewed-by: martin, psandoz, redestad, alanb
2016-08-24 12:50:37 -07:00
Steve Drach
3a04923cad 8164585: JarFile::isMultiRelease does not return true in all cases where it should return true
Reviewed-by: alanb, psandoz
2016-08-23 11:26:41 -07:00
Rachna Goel
b19bd0a798 8135055: java.util.Date.after(java.sql.Timestamp ) does not return correct results
Reviewed-by: okutsu
2016-08-22 15:17:11 +09:00
Tagir F. Valeev
d7fd2d9166 8164189: Collectors.toSet() parallel performance improvement
Reviewed-by: shade, psandoz
2016-08-18 17:30:49 -07:00
Doug Lea
0f24b72e4e 8163210: java/util/concurrent/tck/JSR166TestCase.java testWriteAfterReadLock(StampedLockTest): timed out waiting for thread to terminate
Reviewed-by: martin, psandoz, dholmes
2016-08-15 09:09:00 -07:00
Doug Lea
cdae608a00 8162805: Optimize AtomicBoolean.getAndSet
Reviewed-by: martin, psandoz, shade
2016-08-15 09:04:40 -07:00
Doug Lea
55ee90a475 8161591: Miscellaneous changes imported from jsr166 CVS 2016-07
Reviewed-by: martin, psandoz, plevart
2016-07-26 10:06:19 -07:00
Doug Lea
2545e51a0c 8161608: StampedLock should use storeStoreFence when acquiring write lock
Reviewed-by: martin, psandoz, plevart
2016-07-26 10:02:05 -07:00
Doug Lea
825edd9274 8160751: Optimize ConcurrentHashMap.keySet().removeAll
8161372: ConcurrentHashMap.computeIfAbsent(k,f) locks bin when k present

Reviewed-by: martin, psandoz, plevart
2016-07-26 09:57:51 -07:00
Doug Lea
6db3f79f39 8160402: Garbage retention with CompletableFuture.anyOf
Reviewed-by: martin, psandoz, plevart
2016-07-26 09:53:38 -07:00
Doug Lea
b7284ca20e 8162396: j.u.c java.lang.LinkageError
Reviewed-by: martin, psandoz, plevart
2016-07-26 09:49:25 -07:00
Xueming Shen
e944d9f280 8161942: java.util.zip.ZipEntry.java not covering UpperLimit range of DOS epoch
Reviewed-by: redestad
2016-07-22 16:32:48 -07:00
Masayoshi Okutsu
2d98fa4822 8161203: ResourceBundle.getBundle performance regression
Reviewed-by: alanb
2016-07-22 13:31:58 +09:00