66 Commits

Author SHA1 Message Date
Amy Lu
1bf1087e7f 8151511: Test case in CollectionAndMapModifyStreamTest for LinkedHashMap overrides that for HashMap
Reviewed-by: chegar, psandoz
2016-11-03 09:44:43 +08:00
Tagir F. Valeev
3ccd7f2289 8153293: Preserve SORTED and DISTINCT characteristics for boxed() and asLongStream() operations
Reviewed-by: psandoz
2016-04-29 16:57:57 -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
Tagir F. Valeev
c880124c81 8147505: BaseStream.onClose() should not allow registering new handlers after stream is consumed
Reviewed-by: psandoz
2016-03-03 10:06:25 +01:00
Tagir F. Valeev
90adb4174f 8072727: add variation of Stream.iterate() that's finite
Reviewed-by: psandoz, briangoetz
2016-03-03 10:06:16 +01:00
Tagir F. Valeev
0e250ec504 8148838: Stream.flatMap(...).spliterator() cannot properly split after tryAdvance()
Reviewed-by: psandoz
2016-02-08 15:33:53 +01:00
Tagir F. Valeev
e41fea88e7 8148115: Stream.findFirst for unordered source optimization
Reviewed-by: psandoz
2016-02-08 10:40:00 +01:00
Tagir F. Valeev
9e65963f4f 8148250: Stream.limit() parallel tasks with ordered non-SUBSIZED source should short-circuit
Reviewed-by: psandoz
2016-02-08 10:37:37 +01:00
Huaming Li
1ae6dc3825 8148928: java/util/stream/test/**/SequentialOpTest.java timed out intermittently
Reviewed-by: psandoz
2016-02-05 09:54:56 +08:00
Huaming Li
e3570fa3eb 8076458: java/util/stream/test/org/openjdk/tests/java/util/stream/FlatMapOpTest.java timeout
Reviewed-by: psandoz
2016-02-01 09:38:08 +08:00
Shinya Yoshida
38302301fd 8144675: Add a filtering collector
Reviewed-by: psandoz, smarks
2015-12-13 15:20:35 +01:00
Jonathan Gibbons
39cb0e2223 8142996: move jdk java/util/streams tests into java.base directories
Reviewed-by: mchung
2015-11-13 15:55:32 -08:00
Tagir Valeev
94ba18f8b4 8136686: Collectors.counting can use Collectors.summingLong to reduce boxing
Reviewed-by: psandoz
2015-09-19 15:26:34 +02: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
Martin Buchholz
24742f7b1d 8134984: Text files should end in exactly one newline
Automated fixup of newlines at end-of-file via the usual perl one-liner

Reviewed-by: chegar, sherman
2015-09-02 14:11:50 -07:00
Amy Lu
1aa0bf7daf 8131140: Mark some tests from WhileOpStatefulTest.java and WhileOpTest.java as serialization hostile
Reviewed-by: psandoz
2015-07-16 10:21:21 +02:00
Paul Sandoz
5744f4fc30 8071597: Add Stream dropWhile and takeWhile operations
Reviewed-by: briangoetz, smarks, chegar, forax
2015-06-09 07:10:03 +01:00
Amy Lu
512986a71c 8129759: Mark two tests from DistinctOpTest.java and SliceOpTest.java as serialization hostile
Reviewed-by: psandoz
2015-06-30 10:00:46 +02:00
Paul Sandoz
f219ffb2f2 8072773: (fs) Files.lines needs a better splitting implementation for stream source
Reviewed-by: alanb
2015-06-24 12:05:30 +02:00
Paul Sandoz
3a0e0c86d3 8129120: Terminal operation properties should not be back-propagated to upstream operations
Reviewed-by: briangoetz, chegar
2015-06-23 09:49:55 +02:00
Paul Sandoz
b220e6cb1d 8075307: Pipeline calculating inconsistent flag state for parallel stateful ops
Reviewed-by: smarks
2015-03-25 10:50:08 +00:00
Amy Lu
b8770ac035 8075111: Mark testFlatMappingClose (from CollectorsTest) as serialization hostile
Reviewed-by: psandoz
2015-03-16 10:24:16 +01:00
Aggelos Biboudis
cb566c6ce5 8067969: Optimize Stream.count for SIZED Streams
Reviewed-by: psandoz, chegar
2015-03-16 10:19:49 +01:00
Paul Sandoz
95b2455d16 8071600: Add a flat-mapping collector
Reviewed-by: smarks, chegar, briangoetz
2015-02-27 09:58:25 +01: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
Paul Sandoz
7a0238bfd3 8044047: Missing null pointer checks for streams
Co-authored-by: Ivan Gerasimov <ivan.gerasimov@oracle.com>
Reviewed-by: dfuchs
2014-07-16 14:35:48 +02:00
Paul Sandoz
b6182243e5 8042355: stream with sorted() causes downstream ops not to be lazy
Reviewed-by: mduigou
2014-05-06 10:29:59 +02:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Paul Sandoz
7546938fc2 8031428: CountTest causes lambda Ser/Derialization tests to fail
Reviewed-by: chegar
2014-01-10 16:17:34 +01:00
Paul Sandoz
4d62c07baa 8031306: Incorrect bug id on tests
Reviewed-by: chegar
2014-01-07 11:33:22 +01:00
Paul Sandoz
b3ff3362d2 8031187: DoubleStream.count is incorrect for a stream containing > Integer.MAX_VALUE elements
Reviewed-by: darcy
2014-01-07 11:15:11 +01:00
Joe Darcy
398131c8a7 8030212: Several api.java.util.stream tests got "NaN" value instead of "Infinity" or "-Infinity"
Reviewed-by: mduigou, psandoz
2014-01-03 10:38:23 -08:00
Joe Darcy
3eafe5802b 8006572: DoubleStream.sum() & DoubleSummaryStats implementations that reduce numerical errors
Reviewed-by: psandoz, mduigou
2013-12-01 23:35:28 -08:00
Paul Sandoz
fe6f3e2439 8027712: DistinctOpTest fails for unordered test
Reviewed-by: henryjen, alanb
2013-11-05 12:08:12 +01:00
Robert Field
ee1006e3bd 7194897: JSR 292: Cannot create more than 16 instances of an anonymous class
8027681: Lambda serialization fails once reflection proxy generation kicks in

Co-authored-by: Joel Borggren-Franck <joel.franck@oracle.com>
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: ksrini, briangoetz, jfranck
2013-11-04 10:12:18 -08:00
Paul Sandoz
894f3788d3 8027316: Distinct operation on an unordered stream should not be a barrier
Reviewed-by: henryjen, mduigou, briangoetz
2013-10-31 11:59:04 +01:00
Brian Goetz
aee0b5cf88 8027318: Lambda Metafactory: generate serialization-hostile read/writeObject methods for non-serializable lambdas
Reviewed-by: rfield, psandoz
2013-10-29 12:31:27 -04:00
Mike Duigou
f1e20eb482 8025910: rename substream(long) -> skip and remove substream(long,long)
Reviewed-by: psandoz, henryjen
2013-10-16 13:03:58 -07:00
Henry Jen
6a322383a8 8026009: Changes for 8025968 break all stream tests
Reviewed-by: mduigou
2013-10-07 15:18:37 -07:00
Henry Jen
1542ab6eef 8025968: Integrate test improvements made in lambda repo
Reviewed-by: psandoz
2013-10-07 11:25:56 -07:00
Paul Sandoz
1604846c44 8025567: Mark relevant public stream tests as serialization hostile
Reviewed-by: alanb
2013-10-03 10:59:51 +02:00
Paul Sandoz
7ee60c366e 8025535: Unsafe typecast in java.util.stream.SortedOps
Reviewed-by: mduigou, chegar
2013-10-01 18:20:03 +02:00
Brian Goetz
7bc062de1d 8017513: Support for closeable streams
8022237: j.u.s.BaseStream.onClose() has an issue in implementation or requires spec clarification
8022572: Same exception instances thrown from j.u.stream.Stream.onClose() handlers are not listed as suppressed

BaseStream implements AutoCloseable; Remove CloseableStream and DelegatingStream

Reviewed-by: alanb, mduigou, psandoz
2013-09-03 12:16:01 -07:00
Paul Sandoz
231a351a47 8020292: j.u.SplittableRandom
Co-authored-by: Guy Steele <guy.steele@oracle.com>
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: mduigou
2013-08-26 22:55:03 +02:00
Paul Sandoz
772a828f73 8012940: More than 50 tests failed in Serialization/DeSerialization testing (test-mangled)
Reviewed-by: ksrini
2013-08-16 12:46:30 +02:00
Paul Sandoz
3c90e54214 8023150: java/util/stream tests no longer compiling following JDK-8019401
Reviewed-by: alanb
2013-08-16 12:29:58 +02:00
Brian Goetz
4030ed819b 8019401: Collectors.collectingAndThen
Reviewed-by: mduigou
2013-08-12 12:06:50 -04:00
Brian Goetz
e11ec149ce 8015318: Extend Collector with 'finish' operation
Reviewed-by: mduigou
2013-06-28 16:26:54 -04:00
Paul Sandoz
3e78508945 8020016: Numerous splitereator impls do not throw NPE for null Consumers
Reviewed-by: mduigou, alanb, henryjen
2013-08-01 15:28:57 +01:00
Paul Sandoz
980e8cff6f 8021863: Stream.concat incorrectly calculates unsized state
Reviewed-by: chegar
2013-07-30 11:32:26 +01:00