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

Erroneous Javadoc in java.util.stream.MatchOps.MatchKind

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 8u141, 10.0.1, 11.0.1
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      The Javadoc in java.util.stream.MatchOps.MatchKind's ANY and ALL enum literals are switched:

      enum MatchKind {
              /** Do all elements match the predicate? */
              ANY(true, true),

              /** Do any elements match the predicate? */
              ALL(false, false),

              /** Do no elements match the predicate? */
              NONE(true, false);
              ...

        Attachments

          Activity

            People

            • Assignee:
              smarks Stuart Marks
              Reporter:
              leder Lukas Eder
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: