-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b02
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8306911 | 8u391 | Vanitha B P | P4 | Resolved | Fixed | b01 |
The recently added stream test for counting is serialization hostile and results in lambda SAND test failures.
The test can be updated to obtain the expected size using:
long expectedCount = data.size();
For SAND tests, the following:
AtomicLong expectedCount = new AtomicLong();
data.stream().forEach(e -> expectedCount.incrementAndGet());
will result in expectedCount being 0 on deserialization.
The test can be updated to obtain the expected size using:
long expectedCount = data.size();
For SAND tests, the following:
AtomicLong expectedCount = new AtomicLong();
data.stream().forEach(e -> expectedCount.incrementAndGet());
will result in expectedCount being 0 on deserialization.
- backported by
-
JDK-8306911 CountTest causes lambda Ser/Derialization tests to fail
- Resolved