OSDN Git Service

Revert "Allow java targets to support 1.8 source / target"
authorNeil Fuller <nfuller@google.com>
Fri, 29 Jan 2016 13:29:39 +0000 (13:29 +0000)
committerNeil Fuller <nfuller@google.com>
Fri, 29 Jan 2016 13:29:39 +0000 (13:29 +0000)
Broke the sdk build. Requires changes in development that aren't available for submission yet.

This reverts commit cdfbe4a8522b9a13ffe6ac1f826a1d6760f87d60.

Change-Id: Ibb655daa05de55c3c947141ddf96a32ca1d87de4

core/clear_vars.mk
core/combo/javac.mk
core/java_common.mk

index 069fbf9..656f327 100644 (file)
@@ -342,7 +342,6 @@ LOCAL_CLANG_32:=
 LOCAL_CLANG_64:=
 LOCAL_INIT_RC_32:=
 LOCAL_INIT_RC_64:=
-LOCAL_JAVA_LANGUAGE_VERSION:=
 
 # Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to
 # iterate over thousands of entries every time.
index 7f66ea8..70dae13 100644 (file)
@@ -14,7 +14,7 @@ ifndef ANDROID_COMPILE_WITH_JACK
 ANDROID_COMPILE_WITH_JACK := true
 endif
 
-common_jdk_flags := -Xmaxerrs 9999999
+common_jdk_flags := -source 1.7 -target 1.7 -Xmaxerrs 9999999
 
 # Use the indexer wrapper to index the codebase instead of the javac compiler
 ifeq ($(ALTERNATE_JAVAC),)
index 08e5ee7..5e0dfa0 100644 (file)
@@ -1,14 +1,6 @@
 # Common to host and target Java modules.
 
 ###########################################################
-## Java version
-###########################################################
-ifeq (,$(LOCAL_JAVA_LANGUAGE_VERSION))
-  LOCAL_JAVA_LANGUAGE_VERSION := 1.7
-endif
-LOCAL_JAVACFLAGS += -source $(LOCAL_JAVA_LANGUAGE_VERSION) -target $(LOCAL_JAVA_LANGUAGE_VERSION)
-
-###########################################################
 ## .proto files: Compile proto files to .java
 ###########################################################
 proto_sources := $(filter %.proto,$(LOCAL_SRC_FILES))
@@ -275,8 +267,6 @@ ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR := \
 ifdef LOCAL_JACK_ENABLED
 ifdef need_compile_java
 
-LOCAL_JACK_FLAGS += -D jack.java.source.version=$(LOCAL_JAVA_LANGUAGE_VERSION)
-
 full_static_jack_libs := \
     $(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \
       $(call intermediates-dir-for, \