6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk javac
authorandrew
Thu, 20 Aug 2009 01:28:58 +0100
changeset 3645 6f48dda2de17
parent 3568 207f694795c4
child 3646 00ba8f5f559e
6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk javac Summary: The bootstrap javac currently uses the default source and targets of the boot javac Reviewed-by: jjg, ohair
corba/make/common/shared/Defs-java.gmk
--- a/corba/make/common/shared/Defs-java.gmk	Wed Jul 05 16:59:17 2017 +0200
+++ b/corba/make/common/shared/Defs-java.gmk	Thu Aug 20 01:28:58 2009 +0100
@@ -179,7 +179,9 @@
 ifeq ($(COMPILER_WARNINGS_FATAL), true)
   BOOT_JAVACFLAGS  += -Werror
 endif
-BOOT_JAVACFLAGS  += -encoding ascii
+BOOT_SOURCE_LANGUAGE_VERSION = 6
+BOOT_TARGET_CLASS_VERSION = 6
+BOOT_JAVACFLAGS  += -encoding ascii -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 
 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)