diff --git a/core/config.mk b/core/config.mk index 241ac8d071..477d764a1d 100644 --- a/core/config.mk +++ b/core/config.mk @@ -627,16 +627,6 @@ JETIFIER := prebuilts/sdk/tools/jetifier/jetifier-standalone/bin/jetifier-standa EXTRACT_KERNEL := build/make/tools/extract_kernel.py -USE_OPENJDK9 := true - -ifeq ($(EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9),) -TARGET_OPENJDK9 := true -else ifeq ($(EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9),true) -TARGET_OPENJDK9 := true -else ifeq ($(EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9),false) -TARGET_OPENJDK9 := -endif - # Path to tools.jar HOST_JDK_TOOLS_JAR := $(ANDROID_JAVA8_HOME)/lib/tools.jar diff --git a/core/java.mk b/core/java.mk index d08045032b..99774cf1bd 100644 --- a/core/java.mk +++ b/core/java.mk @@ -358,9 +358,7 @@ include $(BUILD_SYSTEM)/jacoco.mk # Temporarily enable --multi-dex until proguard supports v53 class files # ( http://b/67673860 ) or we move away from proguard altogether. -ifdef TARGET_OPENJDK9 LOCAL_DX_FLAGS := $(filter-out --multi-dex,$(LOCAL_DX_FLAGS)) --multi-dex -endif full_classes_pre_proguard_jar := $(LOCAL_FULL_CLASSES_JACOCO_JAR) diff --git a/core/java_common.mk b/core/java_common.mk index dfe75f3257..f6e01d226f 100644 --- a/core/java_common.mk +++ b/core/java_common.mk @@ -33,8 +33,7 @@ ifeq (,$(LOCAL_JAVA_LANGUAGE_VERSION)) # TODO(ccross): allow 1.9 for current and unbundled once we have SDK system modules LOCAL_JAVA_LANGUAGE_VERSION := 1.8 else - # DEFAULT_JAVA_LANGUAGE_VERSION is 1.8, unless TARGET_OPENJDK9 in which case it is 1.9 - LOCAL_JAVA_LANGUAGE_VERSION := $(DEFAULT_JAVA_LANGUAGE_VERSION) + LOCAL_JAVA_LANGUAGE_VERSION := 1.9 endif endif LOCAL_JAVACFLAGS += -source $(LOCAL_JAVA_LANGUAGE_VERSION) -target $(LOCAL_JAVA_LANGUAGE_VERSION)