|
Quick Lists
|
|
Bug ID:
|
6873059
|
|
Votes
|
0
|
|
Synopsis
|
Explicitly use -source 6 -target 6 when compiling with the boot jdk javac
|
|
Category
|
java:build
|
|
Reported Against
|
|
|
Release Fixed
|
7(b71),
6-open(b17) (Bug ID:2182179)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6864000
|
|
Submit Date
|
18-AUG-2009
|
|
Description
|
When compiling with different boot jdk's, the defaults for -source and -target can be different. We require a jdk6 boot jdk, so the suggested fix is to add an explicit setting of -source 6 and -target 6 when compiling with the boot jdk javac.
Posted Date : 2009-08-18 18:19:44.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
Proposed fix from Andrew:
--- old/make/common/shared/Defs-java.gmk 2009-08-18 17:37:23.529562901 +0100
+++ new/make/common/shared/Defs-java.gmk 2009-08-18 17:37:23.342114805 +0100
@@ -201,7 +201,10 @@
ifeq ($(JAVAC_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_JAR_JFLAGS += $(JAR_JFLAGS)
BOOT_JAVACFLAGS += $(NO_PROPRIETARY_API_WARNINGS)
Posted Date : 2009-08-18 18:21:37.0
See
http://hg.openjdk.java.net/jdk7/jdk7/jdk/log?rev=6873059
http://hg.openjdk.java.net/jdk7/jdk7/corba/log?rev=6873059
http://hg.openjdk.java.net/jdk7/jdk7/langtools/log?rev=6873059
Hotspot not done just yet (as of 9/3/2009)
Posted Date : 2009-09-03 21:25:06.0
http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/0fc81f0a8ca8
Posted Date : 2009-09-13 21:35:03.0
http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/0fc81f0a8ca8
Posted Date : 2009-09-25 06:36:26.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |