Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e99de696 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Disable desugaring try-with-resources"

am: 28794da1

Change-Id: I5a6d131e689922586482d950e933e5ea86e7729e
parents d91be38c 28794da1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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