Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8031428

CountTest causes lambda Ser/Derialization tests to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs

        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.

              psandoz Paul Sandoz
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: