Commit 0eee9ae1 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Android: Enabled desugar's --generate_base_classes_for_default_methods

This makes desugar put default interface methods into a base class
when possible (e.g. when the implementing class does not already
extend a class).

It's still the case that default interface methods will sometimes
be copied into every implementing class.


Change-Id: Ia33ffa63d1a302f7604e9773ac44a8ca78058fd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899006
Commit-Queue: Sam Maier <smaier@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarSam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712578}
parent 31942cfb
......@@ -38,6 +38,7 @@ def main():
options.input_jar,
'--output',
options.output_jar,
'--generate_base_classes_for_default_methods',
# Don't include try-with-resources files in every .jar. Instead, they
# are included via //third_party/bazel/desugar:desugar_runtime_java.
'--desugar_try_with_resources_omit_runtime_classes',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment