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

CountTest causes lambda Ser/Derialization tests to fail

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: