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

Replace javac's Filter with Predicate (and lambdas)

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 17
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      Javac defines this functional interface:

      public interface Filter<T> {
          boolean accepts(T t);
      }

      This has now become a duplicate of java.util.function.Predicate; javac should be refactored to use the JDK functional interface instead, and to use lambdas instead of anonymous inner classes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gli Guoxiong Li
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: