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

Refactor spliterator traversing tests into a library

XMLWordPrintable

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

        The test java/util/Spliterator/SpliteratorTraversingAndSplittingTest.java contains a large number of test cases that leverage some general spliterator testing methods.

        Those methods are also duplicated in:

          java/util/Spliterator/SpliteratorCollisions.java
          java/util/stream/SpliteratorTestHelper.java

        Those methods could be refactored into a separate library for reuse.

        Such testing is required for BitSet for large memory configurations when the Integer.MAX_VALUE bit is set. If such cases are included in the SpliteratorTraversingAndSplittingTest.java test it can induce out of memory errors (see JDK-8169838)

              amlu Amy Lu (Inactive)
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: