RFR: 8057543: Replace javac's Filter with Predicate (and lambdas)

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Sun Dec 27 15:02:04 UTC 2020

Hi all,

This patch replaces javac's `Filter` with `Predicate` and set `Filter` as `Deprecated`.
Two existing tests failed and I fixed it.
Currently, all the tests in `test/langtools` passed locally by using the following command.

make test CONF=linux-x86_64-server-release JOBS=4 TEST=test/langtools/

Thank you for taking the time to review.

Best Regards.


Commit messages:
 - Add comments.
 - 8057543: Replace javac's Filter with Predicate (and lambdas)

Changes: https://git.openjdk.java.net/jdk/pull/1898/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1898&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8057543
  Stats: 147 lines in 19 files changed: 22 ins; 6 del; 119 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1898.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1898/head:pull/1898

PR: https://git.openjdk.java.net/jdk/pull/1898

More information about the compiler-dev mailing list