Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8
Modify the compiler flags for Jack and javac. This has the following effects: 1) Generally, some of the type inference rules changed. 2) javac: bytecode is generated with the v52 major version (not v51) 3) jack: Java 8 language features are supported. The javac / dx toolchain does not support Java 8 language features. Bug: 26753820 (cherry picked from commit fda1ace26116a6677cc77c92c24e5259817fb86e) Change-Id: I07769de473775d95b13feb38c0eb37086eb120f7
This commit is contained in:
parent
1284954db0
commit
db47d66b5e
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
## Java version
|
||||
###########################################################
|
||||
ifeq (,$(LOCAL_JAVA_LANGUAGE_VERSION))
|
||||
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
|
||||
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
|
||||
endif
|
||||
LOCAL_JAVACFLAGS += -source $(LOCAL_JAVA_LANGUAGE_VERSION) -target $(LOCAL_JAVA_LANGUAGE_VERSION)
|
||||
|
||||
|
|
Loading…
Reference in a new issue