Mercurial > hg > openjdk > jdk8 > jdk
changeset 6083:798292c71419
8001191: use -source 8 -target 8 when compiling the JDK
Reviewed-by: chegar, dholmes, erikj, jgish
author | ksrini |
---|---|
date | Mon, 05 Nov 2012 14:53:05 -0800 |
parents | 519f4c9ebf8d |
children | 8222e6eac651 |
files | make/common/shared/Defs-control.gmk make/common/shared/Defs-java.gmk make/java/invoke/Makefile makefiles/Setup.gmk src/share/classes/sun/tools/java/RuntimeConstants.java src/share/native/java/lang/System.c test/ProblemList.txt |
diffstat | 7 files changed, 12 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/make/common/shared/Defs-control.gmk Mon Nov 05 20:18:05 2012 +0000 +++ b/make/common/shared/Defs-control.gmk Mon Nov 05 14:53:05 2012 -0800 @@ -1,5 +1,5 @@ # -# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -88,9 +88,9 @@ dummy := $(shell $(MKDIR) -p $(TEMP_DIR)) # The language version we want for this jdk build -SOURCE_LANGUAGE_VERSION=7 +SOURCE_LANGUAGE_VERSION=8 # The class version we want for this jdk build -TARGET_CLASS_VERSION=7 +TARGET_CLASS_VERSION=8 # The MESSAGE, WARNING and ERROR files are used to store sanity check and # source check messages, warnings and errors.
--- a/make/common/shared/Defs-java.gmk Mon Nov 05 20:18:05 2012 +0000 +++ b/make/common/shared/Defs-java.gmk Mon Nov 05 14:53:05 2012 -0800 @@ -143,12 +143,12 @@ endif # Add the source level -SOURCE_LANGUAGE_VERSION = 7 +SOURCE_LANGUAGE_VERSION = 8 LANGUAGE_VERSION = -source $(SOURCE_LANGUAGE_VERSION) JAVACFLAGS += $(LANGUAGE_VERSION) # Add the class version we want -TARGET_CLASS_VERSION = 7 +TARGET_CLASS_VERSION = 8 CLASS_VERSION = -target $(TARGET_CLASS_VERSION) JAVACFLAGS += $(CLASS_VERSION) JAVACFLAGS += -encoding ascii
--- a/make/java/invoke/Makefile Mon Nov 05 20:18:05 2012 +0000 +++ b/make/java/invoke/Makefile Mon Nov 05 14:53:05 2012 -0800 @@ -1,5 +1,5 @@ # -# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -36,7 +36,7 @@ # 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 8 +CLASS_VERSION = -target 8 include $(BUILDDIR)/common/Classes.gmk
--- a/makefiles/Setup.gmk Mon Nov 05 20:18:05 2012 +0000 +++ b/makefiles/Setup.gmk Mon Nov 05 14:53:05 2012 -0800 @@ -45,7 +45,7 @@ JVM:=$(JAVA),\ JAVAC:=$(JAVAC_JARS),\ JAVAH:=$(JAVAH_JARS),\ - FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes -source 7 -target 7 -encoding ascii -XDignore.symbol.file=true $(DISABLE_WARNINGS),\ + FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes -source 8 -target 8 -encoding ascii -XDignore.symbol.file=true $(DISABLE_WARNINGS),\ SERVER_DIR:=$(SJAVAC_SERVER_DIR),\ SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
--- a/src/share/classes/sun/tools/java/RuntimeConstants.java Mon Nov 05 20:18:05 2012 +0000 +++ b/src/share/classes/sun/tools/java/RuntimeConstants.java Mon Nov 05 14:53:05 2012 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -67,7 +67,7 @@ /* Class File Constants */ int JAVA_MAGIC = 0xcafebabe; int JAVA_MIN_SUPPORTED_VERSION = 45; - int JAVA_MAX_SUPPORTED_VERSION = 51; + int JAVA_MAX_SUPPORTED_VERSION = 52; int JAVA_MAX_SUPPORTED_MINOR_VERSION = 0; /* Generate class file version for 1.1 by default */
--- a/src/share/native/java/lang/System.c Mon Nov 05 20:18:05 2012 +0000 +++ b/src/share/native/java/lang/System.c Mon Nov 05 14:53:05 2012 -0800 @@ -102,7 +102,7 @@ #define VENDOR_URL_BUG "http://bugreport.sun.com/bugreport/" #endif -#define JAVA_MAX_SUPPORTED_VERSION 51 +#define JAVA_MAX_SUPPORTED_VERSION 52 #define JAVA_MAX_SUPPORTED_MINOR_VERSION 0 #ifdef JAVA_SPECIFICATION_VENDOR /* Third party may NOT overwrite this. */
--- a/test/ProblemList.txt Mon Nov 05 20:18:05 2012 +0000 +++ b/test/ProblemList.txt Mon Nov 05 14:53:05 2012 -0800 @@ -137,11 +137,6 @@ # 7196801 java/lang/management/MemoryMXBean/LowMemoryTest2.sh generic-all -# Exclude until hotspot/jdk repos are sync'd w.r.t. JAVA_MAX_SUPPORTED_VERSION -# Needed when hotspot fix 7054345 is present. Remove when the JDK source is -# updated accordingly. -java/lang/System/Versions.java generic-all - ############################################################################ # jdk_management