diff --git a/make/common/shared/Defs-control.gmk b/make/common/shared/Defs-control.gmk index 9c62bf6f7e0db3577a2461bb14ab2f6960ca211c..565cbbaa156c6731d98312432aa08232f4cd1a49 100644 --- a/make/common/shared/Defs-control.gmk +++ b/make/common/shared/Defs-control.gmk @@ -92,9 +92,9 @@ ABS_TEMP_DIR = $(ABS_OUTPUTDIR)/tmp dummy := $(shell $(MKDIR) -p $(TEMP_DIR)) # The language version we want for this jdk build -SOURCE_LANGUAGE_VERSION=5 +SOURCE_LANGUAGE_VERSION=7 # The class version we want for this jdk build -TARGET_CLASS_VERSION=5 +TARGET_CLASS_VERSION=7 # The MESSAGE, WARNING and ERROR files are used to store sanity check and # source check messages, warnings and errors. diff --git a/make/common/shared/Defs-java.gmk b/make/common/shared/Defs-java.gmk index 16db68b111303f5694e6709744dd5c2b355e8185..9d918af877dfe6b2c80a932544d01eba86b29abf 100644 --- a/make/common/shared/Defs-java.gmk +++ b/make/common/shared/Defs-java.gmk @@ -122,13 +122,13 @@ ifeq ($(JAVAC_WARNINGS_FATAL), true) JAVACFLAGS += -Werror endif -# Add the source level (currently all source is 1.5, should this be 1.6?) -SOURCE_LANGUAGE_VERSION = 5 +# Add the source level +SOURCE_LANGUAGE_VERSION = 7 LANGUAGE_VERSION = -source $(SOURCE_LANGUAGE_VERSION) JAVACFLAGS += $(LANGUAGE_VERSION) -# Add the class version we want (currently this is 5, should it be 6 or even 7?) -TARGET_CLASS_VERSION = 5 +# Add the class version we want +TARGET_CLASS_VERSION = 7 CLASS_VERSION = -target $(TARGET_CLASS_VERSION) JAVACFLAGS += $(CLASS_VERSION) JAVACFLAGS += -encoding ascii diff --git a/make/java/dyn/Makefile b/make/java/dyn/Makefile index 00cc225f4d0e07fb1f1135b3aa77d4b7d85dbac5..5ae0b5056e4185765fd9db6ce1bdb001b9a84906 100644 --- a/make/java/dyn/Makefile +++ b/make/java/dyn/Makefile @@ -33,8 +33,8 @@ AUTO_FILES_JAVA_DIRS = java/dyn sun/dyn # The sources built here use new language syntax to generate # method handle calls. Let's be sure we are using that format. -#LANGUAGE_VERSION = -source 7 -#CLASS_VERSION = -target 7 +LANGUAGE_VERSION = -source 7 +CLASS_VERSION = -target 7 # Actually, it will be less disruptive to compile with the same # -target option as the rest of the system, and just turn on