6854244: change source/target used to compile JDK to 7
authorjjg
Mon, 27 Jul 2009 15:19:55 -0700
changeset 3329 51166c6dca11
parent 3328 c7e12ed68f87
child 3330 04c1ec47b42e
6854244: change source/target used to compile JDK to 7 Reviewed-by: ohair
jdk/make/common/shared/Defs-control.gmk
jdk/make/common/shared/Defs-java.gmk
jdk/make/java/dyn/Makefile
--- a/jdk/make/common/shared/Defs-control.gmk	Mon Jul 27 19:22:11 2009 +0100
+++ b/jdk/make/common/shared/Defs-control.gmk	Mon Jul 27 15:19:55 2009 -0700
@@ -92,9 +92,9 @@
 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. 
--- a/jdk/make/common/shared/Defs-java.gmk	Mon Jul 27 19:22:11 2009 +0100
+++ b/jdk/make/common/shared/Defs-java.gmk	Mon Jul 27 15:19:55 2009 -0700
@@ -122,13 +122,13 @@
   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
--- a/jdk/make/java/dyn/Makefile	Mon Jul 27 19:22:11 2009 +0100
+++ b/jdk/make/java/dyn/Makefile	Mon Jul 27 15:19:55 2009 -0700
@@ -33,8 +33,8 @@
 
 # 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