# HG changeset patch # User jjg # Date 1242851783 25200 # Node ID 090c71af18f604ab47249511cbdaaeb6c8903e9f # Parent 76ea6ddc4f7212aec7679fc535533e1aebb7e26f 6827026: Change javac source and target default to 7 Reviewed-by: darcy, ohair diff -r 76ea6ddc4f72 -r 090c71af18f6 langtools/make/Makefile --- a/langtools/make/Makefile Tue May 19 15:07:15 2009 -0700 +++ b/langtools/make/Makefile Wed May 20 13:36:23 2009 -0700 @@ -115,6 +115,14 @@ endif endif +ifdef SOURCE_LANGUAGE_VERSION + ANT_OPTIONS += -Djavac.source=$(SOURCE_LANGUAGE_VERSION) +else + ifdef JAVAC_SOURCE_ARG + ANT_OPTIONS += -Djavac.source=$(JAVAC_SOURCE_ARG) + endif +endif + ifdef ALT_BOOTDIR ANT_OPTIONS += -Dboot.java.home=$(ALT_BOOTDIR) ANT_JAVA_HOME = JAVA_HOME=$(ALT_BOOTDIR) diff -r 76ea6ddc4f72 -r 090c71af18f6 langtools/make/build.properties --- a/langtools/make/build.properties Tue May 19 15:07:15 2009 -0700 +++ b/langtools/make/build.properties Wed May 20 13:36:23 2009 -0700 @@ -32,7 +32,8 @@ # boot.java.home = /opt/jdk/1.5.0 boot.java = ${boot.java.home}/bin/java boot.javac = ${boot.java.home}/bin/javac -boot.javac.target = 5 +boot.javac.source = 6 +boot.javac.target = 6 # This is the JDK used to run the product version of the tools, # for example, for testing. If you're building a complete JDK, specify that. @@ -59,7 +60,8 @@ bootstrap.full.version = ${bootstrap.release}-${build.number} # options for the tasks used to compile the tools -javac.target = 6 +javac.source = 5 +javac.target = 5 javac.debug = true javac.debuglevel = source,lines javac.no.jdk.warnings = -XDignore.symbol.file=true diff -r 76ea6ddc4f72 -r 090c71af18f6 langtools/make/build.xml --- a/langtools/make/build.xml Tue May 19 15:07:15 2009 -0700 +++ b/langtools/make/build.xml Wed May 20 13:36:23 2009 -0700 @@ -393,6 +393,7 @@ + @@ -411,6 +412,7 @@ release="@{release}" full.version="@{full.version}" javac.bootclasspath="@{javac.bootclasspath}" + javac.source="@{javac.source}" javac.target="@{javac.target}" /> @@ -435,6 +437,7 @@ + @@ -450,6 +453,7 @@ release="@{release}" full.version="@{full.version}" javac.bootclasspath="@{javac.bootclasspath}" + javac.source="@{javac.source}" javac.target="@{javac.target}" /> @@ -474,6 +478,7 @@ + @@ -502,6 +507,7 @@ includes="@{includes}" sourcepath="" includeAntRuntime="no" + source="@{javac.source}" target="@{javac.target}"> @@ -515,6 +521,7 @@ excludes="@{excludes}" sourcepath="" includeAntRuntime="no" + source="@{javac.source}" target="@{javac.target}" debug="${javac.debug}" debuglevel="${javac.debuglevel}"> @@ -540,6 +547,7 @@