Merge "Disable desugaring try-with-resources" am: 28794da1c0 am: e99de69665

am: d11b4bdd21

Change-Id: Id59faa10e53f41829760cbba76b08968c45132b3
This commit is contained in:
Colin Cross 2017-07-21 20:58:18 +00:00 committed by android-build-merger
commit 31d4e4da36
1 changed files with 2 additions and 0 deletions

View File

@ -2535,6 +2535,7 @@ $(if $(filter $(1),$(PLATFORM_VERSION_CODENAME)),10000,$(1))
endef
# --add-opens is required because desugar reflects via java.lang.invoke.MethodHandles.Lookup
# --desugar_try_with_resources_if_needed=false is needed due to b/63180735, b/63901645, b/63900665
define desugar-classes-jar
@echo Desugar: $@
@mkdir -p $(dir $@)
@ -2548,6 +2549,7 @@ $(hide) $(JAVA) \
$(addprefix --bootclasspath_entry ,$(call desugar-bootclasspath,$(PRIVATE_BOOTCLASSPATH))) \
$(addprefix --classpath_entry ,$(PRIVATE_ALL_JAVA_LIBRARIES)) \
--min_sdk_version $(call codename-or-sdk-to-sdk,$(PRIVATE_DEFAULT_APP_TARGET_SDK)) \
--desugar_try_with_resources_if_needed=false \
--allow_empty_bootclasspath \
$(if $(filter --core-library,$(PRIVATE_DX_FLAGS)),--core_library) \
-i $< -o $@.tmp