Enable Java 8 by default for Chrome on Android

Desktop / Chromium - F [chromium.org] - 8 August 2017 15:35 EDT

This CL adds Java 8 support for Chrome on Android by removing use_java8 and process_java8 flags. The Java 8 support is achieved by using Desugar to rewrite Java 8 bytecode to be compatible with Java 7.

Currently Java 8 feature "default and static methods" (crbug.com/728443) is not supported. And Java 7 feature "try-with-resources" (crbug.com/751776) still needs to be guarded by API level checks, otherwise resulting in lint errors about new APIs.

Bug: 730711 Change-Id: I6efb898d225f3062338ad19c6ac565df6b40449e Reviewed-on: https://chromium-review.googlesource.com/598539 Commit-Queue: Felix

e1fdb38 Enable Java 8 by default for Chrome on Android
build/config/android/config.gni | 4 ----
build/config/android/internal_rules.gni | 13 +++----------
build/config/android/rules.gni | 4 ----
3 files changed, 3 insertions(+), 18 deletions(-)

Upstream: git.chromium.org


  • Share