Merge "Cap LOCAL_JAVA_LANGUAGE_VERSION <= 1.8 for API versions <= 26."

am: c6465f5d17

Change-Id: I52fec751f0dcd729f1903c4e70a6bbef8873488b
This commit is contained in:
Tobias Thierer 2017-10-06 19:58:34 +00:00 committed by android-build-merger
commit 719728f67d

View file

@ -22,7 +22,12 @@ ifeq (,$(LOCAL_JAVA_LANGUAGE_VERSION))
ifneq ($(EXPERIMENTAL_USE_OPENJDK9),true)
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
else
LOCAL_JAVA_LANGUAGE_VERSION := 1.9
private_sdk_versions_without_any_java_19_support := 24 25 26
ifneq (,$(filter $(LOCAL_SDK_VERSION), $(private_sdk_versions_without_any_java_19_support)))
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
else
LOCAL_JAVA_LANGUAGE_VERSION := 1.9
endif
endif
endif
endif