提交 762f24a2 编写于 作者: L lana

Merge

...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
/nbproject/private/ /nbproject/private/
^make/netbeans/.*/build/ ^make/netbeans/.*/build/
^make/netbeans/.*/dist/ ^make/netbeans/.*/dist/
^.hgtip
...@@ -113,3 +113,4 @@ d8ced728159fbb2caa8b6adb477fd8efdbbdf179 jdk7-b135 ...@@ -113,3 +113,4 @@ d8ced728159fbb2caa8b6adb477fd8efdbbdf179 jdk7-b135
aa13e7702cd9d8aca9aa38f1227f966990866944 jdk7-b136 aa13e7702cd9d8aca9aa38f1227f966990866944 jdk7-b136
29296ea6529a418037ccce95903249665ef31c11 jdk7-b137 29296ea6529a418037ccce95903249665ef31c11 jdk7-b137
60d3d55dcc9c31a30ced9caa6ef5c0dcd7db031d jdk7-b138 60d3d55dcc9c31a30ced9caa6ef5c0dcd7db031d jdk7-b138
d80954a89b49fda47c0c5cace65a17f5a758b8bd jdk7-b139
...@@ -56,10 +56,6 @@ build: unpacker ...@@ -56,10 +56,6 @@ build: unpacker
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR) vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)
ifeq ($(STANDALONE),true) ifeq ($(STANDALONE),true)
ZIPOBJDIR = $(OUTPUTDIR)/tmp/sun/java.util.zip/zip/$(OBJDIRNAME) ZIPOBJDIR = $(OUTPUTDIR)/tmp/sun/java.util.zip/zip/$(OBJDIRNAME)
...@@ -131,8 +127,9 @@ prop: ...@@ -131,8 +127,9 @@ prop:
pack200-tool: pack200-tool:
$(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack) $(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack)
# ignore mapfile for non-product binary
unpacker: unpacker:
$(MAKE) $(UNPACK_EXE) STANDALONE=true LDMAPFLAGS_OPT= LDMAPFLAGS_DBG= $(MAKE) $(UNPACK_EXE) STANDALONE=true LDMAPFLAGS_DBG=
ifeq ($(PLATFORM), windows) ifeq ($(PLATFORM), windows)
IMVERSIONVALUE=$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(JDK_UPDATE_VER).$(COOKED_BUILD_NUMBER) IMVERSIONVALUE=$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(JDK_UPDATE_VER).$(COOKED_BUILD_NUMBER)
...@@ -147,8 +144,14 @@ winres:: ...@@ -147,8 +144,14 @@ winres::
$(ECHO) "Resource files not required for Unix" $(ECHO) "Resource files not required for Unix"
endif endif
# Mapfile-vers.gmk, does not copy over the mapfile-vers-unpack200, when
# the make utiliy is re-invoked, as in this case. In order to workaround
# this special case, the mapfile required for the unpack200 command, is
# explicitly copied over to the expected location.
$(UNPACK_EXE): $(UNPACK_EXE_FILES_o) updatefiles winres $(UNPACK_EXE): $(UNPACK_EXE_FILES_o) updatefiles winres
$(prep-target) $(prep-target)
$(RM) $(TEMPDIR)/mapfile-vers
$(CP) mapfile-vers-unpack200 $(TEMPDIR)/mapfile-vers
$(LINKER) $(LDDFLAGS) $(UNPACK_EXE_FILES_o) $(RES) $(LIBCXX) $(LDOUTPUT)$(TEMPDIR)/unpack200$(EXE_SUFFIX) $(LINKER) $(LDDFLAGS) $(UNPACK_EXE_FILES_o) $(RES) $(LIBCXX) $(LDOUTPUT)$(TEMPDIR)/unpack200$(EXE_SUFFIX)
ifdef MT ifdef MT
$(MT) /manifest $(OBJDIR)/unpack200$(EXE_SUFFIX).manifest /outputresource:$(TEMPDIR)/unpack200$(EXE_SUFFIX);#1 $(MT) /manifest $(OBJDIR)/unpack200$(EXE_SUFFIX).manifest /outputresource:$(TEMPDIR)/unpack200$(EXE_SUFFIX);#1
......
#
# Copyright (c) 2011, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Define library interface.
SUNWprivate_1.1 {
local:
*;
};
...@@ -251,9 +251,8 @@ LDFLAGS_COMMON += -Wl,-soname=$(LIB_PREFIX)$(LIBRARY).$(LIBRARY_SUFFIX) ...@@ -251,9 +251,8 @@ LDFLAGS_COMMON += -Wl,-soname=$(LIB_PREFIX)$(LIBRARY).$(LIBRARY_SUFFIX)
# statically link libgcc but will print a warning with the flag. We don't # statically link libgcc but will print a warning with the flag. We don't
# want the warning, so check gcc version first. # want the warning, so check gcc version first.
# #
CC_VER_MAJOR := $(shell $(CC) -dumpversion | $(SED) 's/egcs-//' | $(CUT) -d'.' -f1) ifeq ($(CC_MAJORVER),3)
ifeq ("$(CC_VER_MAJOR)", "3") OTHER_LDFLAGS += -static-libgcc
OTHER_LDFLAGS += -static-libgcc
endif endif
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
......
...@@ -457,14 +457,15 @@ else ...@@ -457,14 +457,15 @@ else
# On X86, make sure tail call optimization is off # On X86, make sure tail call optimization is off
# The z and y are the tail call optimizations. # The z and y are the tail call optimizations.
ifeq ($(ARCH_FAMILY), i586) ifeq ($(ARCH_FAMILY), i586)
ifeq ($(shell $(EXPR) $(CC_MAJORVER) \>= 5), 1) CC_NEWER_THAN_58 := \
ifeq ($(shell $(EXPR) $(CC_MINORVER) \> 8), 1) $(shell $(EXPR) $(CC_MAJORVER) \> 5 \| \
# Somehow, tail call optimization is creeping in. \( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \> 8 \) )
# Make sure it is off. ifeq ($(CC_NEWER_THAN_58),1)
# WARNING: These may cause compiler warnings about duplicate -O options # Somehow, tail call optimization is creeping in.
CC_XKEEPFRAME_OPTIONS += -Wu,-O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz # Make sure it is off.
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz # WARNING: These may cause compiler warnings about duplicate -O options
endif CC_XKEEPFRAME_OPTIONS += -Wu,-O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz
endif endif
endif endif
...@@ -481,14 +482,15 @@ else ...@@ -481,14 +482,15 @@ else
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -Z~B CXX_XKEEPFRAME_OPTIONS += -Qoption ube -Z~B
endif endif
ifeq ($(shell $(EXPR) $(CC_MAJORVER) \>= 5), 1) CC_NEWER_THAN_56 := \
ifeq ($(shell $(EXPR) $(CC_MINORVER) \> 6), 1) $(shell $(EXPR) $(CC_MAJORVER) \> 5 \| \
# Do NOT use frame pointer register as a general purpose opt register \( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \> 6 \) )
CC_OPT/NONE += -xregs=no%frameptr ifeq ($(CC_NEWER_THAN_56),1)
CXX_OPT/NONE += -xregs=no%frameptr # Do NOT use frame pointer register as a general purpose opt register
CC_XKEEPFRAME_OPTIONS += -xregs=no%frameptr CC_OPT/NONE += -xregs=no%frameptr
CXX_XKEEPFRAME_OPTIONS += -xregs=no%frameptr CXX_OPT/NONE += -xregs=no%frameptr
endif CC_XKEEPFRAME_OPTIONS += -xregs=no%frameptr
CXX_XKEEPFRAME_OPTIONS += -xregs=no%frameptr
endif endif
endif endif
...@@ -566,8 +568,10 @@ else ...@@ -566,8 +568,10 @@ else
CFLAGS_REQUIRED_sparc += -xregs=no%appl CFLAGS_REQUIRED_sparc += -xregs=no%appl
CFLAGS_REQUIRED_sparcv9 += -xregs=no%appl CFLAGS_REQUIRED_sparcv9 += -xregs=no%appl
endif endif
ifeq ($(shell $(EXPR) $(CC_VER) \> 5.6), 1) CC_NEWER_THAN_56 := \
# We MUST allow data alignment of 4 for sparc V8 (32bit) $(shell $(EXPR) $(CC_MAJORVER) \> 5 \| \
\( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \> 6 \) )
ifeq ($(CC_NEWER_THAN_56),1)
# Presents an ABI issue with customer JNI libs? We must be able to # Presents an ABI issue with customer JNI libs? We must be able to
# to handle 4byte aligned objects? (rare occurance, but possible?) # to handle 4byte aligned objects? (rare occurance, but possible?)
CFLAGS_REQUIRED_sparc += -xmemalign=4s CFLAGS_REQUIRED_sparc += -xmemalign=4s
......
...@@ -211,9 +211,13 @@ $(DEMO_BUILD_SRCDIR)/%: $(DEMO_SRCDIR)/../java_crw_demo/% ...@@ -211,9 +211,13 @@ $(DEMO_BUILD_SRCDIR)/%: $(DEMO_SRCDIR)/../java_crw_demo/%
endif endif
# Jar manifest file # Jar manifest file
$(DEMO_MANIFEST): MAINMANIFEST = $(JDK_TOPDIR)/make/tools/manifest.mf
$(DEMO_MANIFEST): $(MAINMANIFEST)
@$(prep-target) @$(prep-target)
$(ECHO) "Main-Class: $(DEMO_MAINCLASS)" > $@ $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
$(MAINMANIFEST) >> $@
$(ECHO) "Main-Class: $(DEMO_MAINCLASS)" >> $@
ifdef DEMO_MANIFEST_ATTR ifdef DEMO_MANIFEST_ATTR
$(ECHO) "$(DEMO_MANIFEST_ATTR)" >> $@ $(ECHO) "$(DEMO_MANIFEST_ATTR)" >> $@
endif endif
......
...@@ -52,8 +52,8 @@ ifeq ($(VARIANT), OPT) ...@@ -52,8 +52,8 @@ ifeq ($(VARIANT), OPT)
endif endif
# If we are re-ordering functions in this solaris library, we need to make # If we are re-ordering functions in this solaris library, we need to make
# sure that -xF is added to the compile lines. This option is critical and # sure that -xF is added to the compile lines. This option is critical and
# enables the functions to be reordered. # enables the functions to be reordered.
ifdef FILES_reorder ifdef FILES_reorder
CFLAGS_OPT += -xF CFLAGS_OPT += -xF
CXXFLAGS_OPT += -xF CXXFLAGS_OPT += -xF
...@@ -76,7 +76,6 @@ endif ...@@ -76,7 +76,6 @@ endif
endif # PLATFORM endif # PLATFORM
ifeq ($(PLATFORM), linux) ifeq ($(PLATFORM), linux)
ifeq ($(VARIANT), OPT) ifeq ($(VARIANT), OPT)
......
...@@ -55,6 +55,11 @@ program_default_rule: all ...@@ -55,6 +55,11 @@ program_default_rule: all
program: $(ACTUAL_PROGRAM) program: $(ACTUAL_PROGRAM)
# reuse the mapfiles in the launcher's directory, the same should
# be applicable to the tool launchers as well.
FILES_m = $(BUILDDIR)/java/main/java/mapfile-$(ARCH)
include $(BUILDDIR)/common/Mapfile-vers.gmk
include $(JDK_TOPDIR)/make/common/Rules.gmk include $(JDK_TOPDIR)/make/common/Rules.gmk
ifdef NEVER_ACT_AS_SERVER_CLASS_MACHINE ifdef NEVER_ACT_AS_SERVER_CLASS_MACHINE
......
...@@ -84,10 +84,10 @@ MakeHeadlessJarFileList: $(TOTAL_HEADLESS_JAR_FILELIST) $(JARSPLIT_JARFILE) ...@@ -84,10 +84,10 @@ MakeHeadlessJarFileList: $(TOTAL_HEADLESS_JAR_FILELIST) $(JARSPLIT_JARFILE)
# Create headless rt.jar # Create headless rt.jar
HL_RT_JAR=$(ABS_TEMPDIR)/rt-hl-orig.jar HL_RT_JAR=$(ABS_TEMPDIR)/rt-hl-orig.jar
$(HL_RT_JAR): MakeHeadlessJarFileList $(JAR_MANIFEST_FILE) $(HL_RT_JAR): MakeHeadlessJarFileList $(RT_JAR_MANIFEST_FILE)
$(prep-target) $(prep-target)
$(CD) $(CLASSBINDIR) ; \ $(CD) $(CLASSBINDIR) ; \
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ @$(HEADLESS_RT_JAR_FILELIST) \ $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ @$(HEADLESS_RT_JAR_FILELIST) \
$(JAR_JFLAGS) $(JAR_JFLAGS)
@$(CD) $(CLASSBINDIR); $(java-vm-cleanup) @$(CD) $(CLASSBINDIR); $(java-vm-cleanup)
......
...@@ -609,8 +609,8 @@ $(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \ ...@@ -609,8 +609,8 @@ $(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \
@$(java-vm-cleanup) @$(java-vm-cleanup)
# Create the manifest file. # Create the manifest file.
JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/manifest.tmp RT_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/rt_manifest.tmp
$(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
$(prep-target) $(prep-target)
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
...@@ -618,21 +618,28 @@ $(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) ...@@ -618,21 +618,28 @@ $(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
$(ECHO) >> $@ $(ECHO) >> $@
$(CAT) $(BEANMANIFEST) >> $@ $(CAT) $(BEANMANIFEST) >> $@
OTHER_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/other_manifest.tmp
$(OTHER_JAR_MANIFEST_FILE): $(MAINMANIFEST)
$(prep-target)
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
$(MAINMANIFEST) >> $@
# Create resources.jar containing non-class files # Create resources.jar containing non-class files
RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar
$(RESOURCES_JAR): $(RES_JAR_FILELIST) $(JAR_MANIFEST_FILE) $(RESOURCES_JAR): $(RES_JAR_FILELIST) $(OTHER_JAR_MANIFEST_FILE)
$(prep-target) $(prep-target)
$(CD) $(CLASSBINDIR) && \ $(CD) $(CLASSBINDIR) && \
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ \ $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
@$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS) @$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS)
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
# Create jsse.jar containing SunJSSE implementation classes # Create jsse.jar containing SunJSSE implementation classes
JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar
$(JSSE_JAR): $(JAR_MANIFEST_FILE) $(JSSE_JAR): $(OTHER_JAR_MANIFEST_FILE)
$(prep-target) $(prep-target)
$(CD) $(CLASSBINDIR) && \ $(CD) $(CLASSBINDIR) && \
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ \ $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
$(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS) $(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS)
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
...@@ -676,10 +683,10 @@ endif ...@@ -676,10 +683,10 @@ endif
# Create rt.jar # Create rt.jar
RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar
$(RT_JAR): $(RT_JAR_FILELIST) $(JAR_MANIFEST_FILE) $(RT_JAR): $(RT_JAR_FILELIST) $(RT_JAR_MANIFEST_FILE)
$(prep-target) $(prep-target)
$(CD) $(CLASSBINDIR) && \ $(CD) $(CLASSBINDIR) && \
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ \ $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ \
@$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS) @$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS)
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
...@@ -885,12 +892,18 @@ else ...@@ -885,12 +892,18 @@ else
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db) ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db)
DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null) DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null)
# Java DB image. Move the Java DB demo directory into the JDK's demo
# dir and in the process, rename it to db. Also remove index.html,
# since it presumes docs are co-located. Also remove register.html (no
# longer relevant).
initial-image-jdk-db: $(DB_ZIP_LIST) initial-image-jdk-db: $(DB_ZIP_LIST)
$(MKDIR) -p $(JDK_IMAGE_DIR)/db $(MKDIR) -p $(JDK_IMAGE_DIR)/db
for d in $(DB_ZIP_LIST); do \ for d in $(DB_ZIP_LIST); do \
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \ ($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \
done done
$(RM) -rf $(DEMODIR)/db
$(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db
$(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/register.html
endif endif
# Standard jdk image # Standard jdk image
...@@ -1111,6 +1124,10 @@ endef ...@@ -1111,6 +1124,10 @@ endef
MINIMUM_OS_NAME := $(REQUIRED_OS_NAME) MINIMUM_OS_NAME := $(REQUIRED_OS_NAME)
MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION) MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION)
MINIMUM_OS_ARCH := $(ARCH) MINIMUM_OS_ARCH := $(ARCH)
ALL_SOURCE_TIPS = $(shell \
if [ -f $(SOURCE_TIPS) ] ; then \
$(CAT) $(SOURCE_TIPS) ; \
fi)
$(JDK_INFO_FILE): FRC $(JDK_INFO_FILE): FRC
$(prep-target) $(prep-target)
...@@ -1118,6 +1135,7 @@ $(JDK_INFO_FILE): FRC ...@@ -1118,6 +1135,7 @@ $(JDK_INFO_FILE): FRC
$(call info-file-item, "OS_NAME", "$(MINIMUM_OS_NAME)") $(call info-file-item, "OS_NAME", "$(MINIMUM_OS_NAME)")
$(call info-file-item, "OS_VERSION", "$(MINIMUM_OS_VERSION)") $(call info-file-item, "OS_VERSION", "$(MINIMUM_OS_VERSION)")
$(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)") $(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)")
$(call info-file-item, "SOURCE", "$(ALL_SOURCE_TIPS)")
# Create release file to identify this image # Create release file to identify this image
identify-image-jdk:: $(JDK_INFO_FILE) identify-image-jdk:: $(JDK_INFO_FILE)
...@@ -1128,6 +1146,7 @@ $(JRE_INFO_FILE): FRC ...@@ -1128,6 +1146,7 @@ $(JRE_INFO_FILE): FRC
$(call info-file-item, "OS_NAME", "$(MINIMUM_OS_NAME)") $(call info-file-item, "OS_NAME", "$(MINIMUM_OS_NAME)")
$(call info-file-item, "OS_VERSION", "$(MINIMUM_OS_VERSION)") $(call info-file-item, "OS_VERSION", "$(MINIMUM_OS_VERSION)")
$(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)") $(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)")
$(call info-file-item, "SOURCE", "$(ALL_SOURCE_TIPS)")
# Create release file to identify this image # Create release file to identify this image
identify-image-jre:: $(JRE_INFO_FILE) identify-image-jre:: $(JRE_INFO_FILE)
......
...@@ -87,6 +87,8 @@ endif ...@@ -87,6 +87,8 @@ endif
# Get gcc version # Get gcc version
_CC_VER :=$(shell $(CC) -dumpversion 2>&1 ) _CC_VER :=$(shell $(CC) -dumpversion 2>&1 )
CC_VER :=$(call GetVersion,"$(_CC_VER)") CC_VER :=$(call GetVersion,"$(_CC_VER)")
CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
CC_MINORVER :=$(call MinorVersion,$(CC_VER))
# Name of compiler # Name of compiler
COMPILER_NAME = GCC$(call MajorVersion,$(CC_VER)) COMPILER_NAME = GCC$(call MajorVersion,$(CC_VER))
......
...@@ -117,7 +117,10 @@ ifeq ($(ARCH_FAMILY), i586) ...@@ -117,7 +117,10 @@ ifeq ($(ARCH_FAMILY), i586)
LINT_XARCH_OPTION_OLD/64 += -Xarch=amd64 LINT_XARCH_OPTION_OLD/64 += -Xarch=amd64
endif endif
# Pick the options we want based on the compiler being used. (5.9 or newer) # Pick the options we want based on the compiler being used. (5.9 or newer)
ifeq ($(shell expr $(CC_MINORVER) \>= 9), 1) CC_59_OR_NEWER := \
$(shell expr $(CC_MAJORVER) \> 5 \| \
\( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \>= 9 \) )
ifeq ($(CC_59_OR_NEWER), 1)
XARCH_OPTION/32 = $(XARCH_OPTION_NEW/32) XARCH_OPTION/32 = $(XARCH_OPTION_NEW/32)
XARCH_OPTION/64 = $(XARCH_OPTION_NEW/64) XARCH_OPTION/64 = $(XARCH_OPTION_NEW/64)
LINT_XARCH_OPTION/32 = $(LINT_XARCH_OPTION_NEW/32) LINT_XARCH_OPTION/32 = $(LINT_XARCH_OPTION_NEW/32)
......
...@@ -110,6 +110,7 @@ GDB = $(UTILS_USR_BIN_PATH)gdb ...@@ -110,6 +110,7 @@ GDB = $(UTILS_USR_BIN_PATH)gdb
GREP = $(UTILS_COMMAND_PATH)grep GREP = $(UTILS_COMMAND_PATH)grep
GUNZIP = $(UTILS_COMMAND_PATH)gunzip GUNZIP = $(UTILS_COMMAND_PATH)gunzip
HEAD = $(UTILS_USR_BIN_PATH)head HEAD = $(UTILS_USR_BIN_PATH)head
HG = hg
ID = $(UTILS_COMMAND_PATH)id ID = $(UTILS_COMMAND_PATH)id
ISAINFO = $(UTILS_COMMAND_PATH)isainfo ISAINFO = $(UTILS_COMMAND_PATH)isainfo
KSH = $(UTILS_COMMAND_PATH)ksh KSH = $(UTILS_COMMAND_PATH)ksh
......
...@@ -218,11 +218,7 @@ ifdef OPENJDK ...@@ -218,11 +218,7 @@ ifdef OPENJDK
else else
LAUNCHER_NAME = java LAUNCHER_NAME = java
PRODUCT_NAME = Java(TM) PRODUCT_NAME = Java(TM)
ifeq ($(J4B), true) PRODUCT_SUFFIX = SE Runtime Environment
PRODUCT_SUFFIX = SE Runtime Environment for Business
else
PRODUCT_SUFFIX = SE Runtime Environment
endif
JDK_RC_PLATFORM_NAME = Platform SE JDK_RC_PLATFORM_NAME = Platform SE
COMPANY_NAME = Oracle Corporation COMPANY_NAME = Oracle Corporation
endif endif
...@@ -616,6 +612,44 @@ else ...@@ -616,6 +612,44 @@ else
COPYRIGHT_YEAR = $(shell $(DATE) '+%Y') COPYRIGHT_YEAR = $(shell $(DATE) '+%Y')
endif endif
# Create file with source information
SOURCE_TIPS=$(ABS_OUTPUTDIR)/source_tips
# The source tips can come from the Mercurial repository, or in the files
# $(HGTIP_FILENAME) which contains the tip but is also positioned in the same
# directory as the original $(HGDIR) directory.
# These should not be := assignments, only used from the root Makefile.
HG_VERSION = $(shell $(HG) version 2> $(DEV_NULL))
HG_DIRECTORY=.hg
HGTIP_FILENAME=.hgtip
HG_SEARCH = ./REPO ./*/REPO ./*/*/REPO ./*/*/*/REPO
REPO_LIST = $(patsubst ./%,%,$(patsubst %/,%,$(sort $(dir \
$(shell ( $(LS) -d $(HG_SEARCH:%/REPO=%/$(HG_DIRECTORY)) ; \
$(LS) $(HG_SEARCH:%/REPO=%/$(HGTIP_FILENAME)) ) \
2> $(DEV_NULL))))))
# Emit the repo:tip pairs to $@
define GetSourceTips
for i in $(REPO_LIST) IGNORE ; do \
if [ "$${i}" = "IGNORE" ] ; then \
continue; \
elif [ -d $${i}/$(HG_DIRECTORY) -a "$(HG_VERSION)" != "" ] ; then \
$(PRINTF) " %s:%s" \
"$${i}" `$(HG) tip --repository $${i} --template '{node|short}\n'` ; \
elif [ -f $${i}/$(HGTIP_FILENAME) ] ; then \
$(PRINTF) " %s:%s" \
"$${i}" `$(CAT) $${i}/$(HGTIP_FILENAME)` ; \
fi; \
done >> $@
$(PRINTF) "\n" >> $@
endef
# Create the HGTIP_FILENAME file
define CreateHgTip
$(HG) tip --repository $1 --template '{node|short}\n' > $1/$(HGTIP_FILENAME);\
$(ECHO) $1/$(HGTIP_FILENAME)
endef
# Get the compiler specific settings (will run the compiler to find out) # Get the compiler specific settings (will run the compiler to find out)
# NOTE: COMPILER_PATH must be set by this time. # NOTE: COMPILER_PATH must be set by this time.
# Up until we include this file, we don't know what specific compiler # Up until we include this file, we don't know what specific compiler
......
...@@ -428,8 +428,6 @@ endif ...@@ -428,8 +428,6 @@ endif
# Machines with 512Mb or less of real memory are considered low memory # Machines with 512Mb or less of real memory are considered low memory
# build machines and adjustments will be made to prevent excessing # build machines and adjustments will be made to prevent excessing
# system swapping during the build. # system swapping during the build.
# If we don't know, assume 512. Subtract 128 from MB for VM MAX.
# Don't set VM max over 1024-128=896.
ifeq ($(JDK_HAS_MEM_INFO),) ifeq ($(JDK_HAS_MEM_INFO),)
JDK_HAS_MEM_INFO=true JDK_HAS_MEM_INFO=true
export JDK_HAS_MEM_INFO export JDK_HAS_MEM_INFO
...@@ -440,18 +438,8 @@ ifeq ($(JDK_HAS_MEM_INFO),) ...@@ -440,18 +438,8 @@ ifeq ($(JDK_HAS_MEM_INFO),)
else \ else \
echo "false"; \ echo "false"; \
fi) fi)
MAX_VM_MEMORY := $(shell \ MAX_VM_MEMORY := 512
if [ $(MB_OF_MEMORY) -le 1024 ] ; then \ MIN_VM_MEMORY := $(MAX_VM_MEMORY)
expr $(MB_OF_MEMORY) '-' 128 2> $(DEV_NULL) ; \
else \
echo "896"; \
fi)
MIN_VM_MEMORY := $(shell \
if [ $(MAX_VM_MEMORY) -le 128 ] ; then \
expr $(MAX_VM_MEMORY) '-' 8 2> $(DEV_NULL) ; \
else \
echo "128"; \
fi)
else else
MB_OF_MEMORY := unknown MB_OF_MEMORY := unknown
LOW_MEMORY_MACHINE := true LOW_MEMORY_MACHINE := true
......
...@@ -53,7 +53,7 @@ DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html ...@@ -53,7 +53,7 @@ DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION)) DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
# Url to Java Language Spec # Url to Java Language Spec
JLS3_URL = http://java.sun.com/docs/books/jls/ #JLS3_URL = http://java.sun.com/docs/books/jls/
# Common Java trademark line # Common Java trademark line
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \ JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
...@@ -293,8 +293,8 @@ COREAPI_HEADER = \ ...@@ -293,8 +293,8 @@ COREAPI_HEADER = \
<strong>Java$(TRADEMARK)&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;$(JDK_MINOR_VERSION)</strong> <strong>Java$(TRADEMARK)&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;$(JDK_MINOR_VERSION)</strong>
# Java language specification cite # Java language specification cite
TAG_JLS3 = jls3:a:See <cite><a href="$(JLS3_URL)"> \ TAG_JLS = jls:a:See <cite> \
The Java Language Specification, Third Edition</a></cite>: The Java&trade; Language Specification</cite>:
# Overview file for core apis # Overview file for core apis
COREAPI_OVERVIEW = $(SHARE_SRC)/classes/overview-core.html COREAPI_OVERVIEW = $(SHARE_SRC)/classes/overview-core.html
...@@ -329,7 +329,7 @@ $(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW) ...@@ -329,7 +329,7 @@ $(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
$(call OptionPair,-tag,specdefault:X) ; \ $(call OptionPair,-tag,specdefault:X) ; \
$(call OptionPair,-tag,Note:X) ; \ $(call OptionPair,-tag,Note:X) ; \
$(call OptionPair,-tag,ToDo:X) ; \ $(call OptionPair,-tag,ToDo:X) ; \
$(call OptionPair,-tag,$(TAG_JLS3)) ; \ $(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionOnly,-splitIndex) ; \ $(call OptionOnly,-splitIndex) ; \
$(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \ $(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
$(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \ $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
...@@ -1081,6 +1081,7 @@ $(TREEAPI_OPTIONS_FILE): ...@@ -1081,6 +1081,7 @@ $(TREEAPI_OPTIONS_FILE):
$(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \ $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
$(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\ $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
$(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \ $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
$(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
$(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \ $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
$(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
......
...@@ -189,7 +189,6 @@ JAVA_JAVA_java = \ ...@@ -189,7 +189,6 @@ JAVA_JAVA_java = \
java/util/ListResourceBundle.java \ java/util/ListResourceBundle.java \
sun/util/EmptyListResourceBundle.java \ sun/util/EmptyListResourceBundle.java \
java/util/Locale.java \ java/util/Locale.java \
sun/util/locale/AsciiUtil.java \
sun/util/locale/BaseLocale.java \ sun/util/locale/BaseLocale.java \
sun/util/locale/Extension.java \ sun/util/locale/Extension.java \
sun/util/locale/InternalLocaleBuilder.java \ sun/util/locale/InternalLocaleBuilder.java \
...@@ -197,6 +196,7 @@ JAVA_JAVA_java = \ ...@@ -197,6 +196,7 @@ JAVA_JAVA_java = \
sun/util/locale/LocaleExtensions.java \ sun/util/locale/LocaleExtensions.java \
sun/util/locale/LocaleObjectCache.java \ sun/util/locale/LocaleObjectCache.java \
sun/util/locale/LocaleSyntaxException.java \ sun/util/locale/LocaleSyntaxException.java \
sun/util/locale/LocaleUtils.java \
sun/util/locale/ParseStatus.java \ sun/util/locale/ParseStatus.java \
sun/util/locale/StringTokenIterator.java \ sun/util/locale/StringTokenIterator.java \
sun/util/locale/UnicodeLocaleExtension.java \ sun/util/locale/UnicodeLocaleExtension.java \
......
...@@ -61,5 +61,4 @@ OTHER_CPPFLAGS += -DLAUNCHER_NAME='"$(LAUNCHER_NAME)"' ...@@ -61,5 +61,4 @@ OTHER_CPPFLAGS += -DLAUNCHER_NAME='"$(LAUNCHER_NAME)"'
ifeq ($(PLATFORM), solaris) ifeq ($(PLATFORM), solaris)
LDFLAGS += -R$(OPENWIN_LIB) LDFLAGS += -R$(OPENWIN_LIB)
LDFLAGS += -M mapfile-$(ARCH)
endif endif
# #
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
# interested in declaring a version, simply scoping the file is sufficient. # interested in declaring a version, simply scoping the file is sufficient.
# #
{ SUNWprivate_1.1 {
global: global:
main; # Provides basic adb symbol offsets main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time environ; # Public symbols and required by Java run time
......
# #
# Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
# interested in declaring a version, simply scoping the file is sufficient. # interested in declaring a version, simply scoping the file is sufficient.
# #
{ SUNWprivate_1.1 {
global: global:
main; # Provides basic adb symbol offsets main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time environ; # Public symbols and required by Java run time
......
# #
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
# interested in declaring a version, simply scoping the file is sufficient. # interested in declaring a version, simply scoping the file is sufficient.
# #
{ SUNWprivate_1.1 {
global: global:
main; # Provides basic adb symbol offsets main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time environ; # Public symbols and required by Java run time
......
# #
# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
# interested in declaring a version, simply scoping the file is sufficient. # interested in declaring a version, simply scoping the file is sufficient.
# #
{ SUNWprivate_1.1 {
global: global:
main; # Provides basic adb symbol offsets main; # Provides basic adb symbol offsets
environ; # Public symbols and required by Java run time environ; # Public symbols and required by Java run time
......
...@@ -31,9 +31,11 @@ include $(BUILDDIR)/common/Release.gmk ...@@ -31,9 +31,11 @@ include $(BUILDDIR)/common/Release.gmk
JCE_MANIFEST_FILE = $(TEMPDIR)/manifest.mf JCE_MANIFEST_FILE = $(TEMPDIR)/manifest.mf
$(JCE_MANIFEST_FILE): $(MAINMANIFEST) $(JCE_MANIFEST_FILE): $(MAINMANIFEST)
$(prep-target) $(prep-target)
( $(SED) "s/@@RELEASE@@/$(RELEASE)/" $<; \ $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
$(ECHO) "Extension-Name: javax.crypto"; \ -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
$(ECHO) "Implementation-Vendor-Id: com.sun"; ) > $@ $(MAINMANIFEST) >> $@
$(ECHO) "Extension-Name: javax.crypto" >> $@
$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@
README-MAKEFILE_WARNING = \ README-MAKEFILE_WARNING = \
"\nPlease read make/javax/crypto/Makefile for further build instructions." "\nPlease read make/javax/crypto/Makefile for further build instructions."
...@@ -58,7 +60,7 @@ endef ...@@ -58,7 +60,7 @@ endef
SIGNING_KEY_DIR = /security/ws/JCE-signing/src SIGNING_KEY_DIR = /security/ws/JCE-signing/src
SIGNING_KEYSTORE = $(SIGNING_KEY_DIR)/KeyStore.jks SIGNING_KEYSTORE = $(SIGNING_KEY_DIR)/KeyStore.jks
SIGNING_PASSPHRASE = $(SIGNING_KEY_DIR)/passphrase.txt SIGNING_PASSPHRASE = $(SIGNING_KEY_DIR)/passphrase.txt
SIGNING_ALIAS = jce_rsa SIGNING_ALIAS = oracle_jce_rsa
# #
# Defines for signing the various jar files. # Defines for signing the various jar files.
......
...@@ -519,9 +519,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -519,9 +519,8 @@ JDWP "Java(tm) Debug Wire Protocol"
"Both the JNI signature and the generic signature are " "Both the JNI signature and the generic signature are "
"returned for each class. " "returned for each class. "
"Generic signatures are described in the signature attribute " "Generic signatures are described in the signature attribute "
"section in the " "section in "
"<a href=\"http://java.sun.com/docs/books/vmspec\"> "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"Java Virtual Machine Specification, 3rd Edition.</a> "
"Since JDWP version 1.5." "Since JDWP version 1.5."
(Out (Out
) )
...@@ -623,8 +622,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -623,8 +622,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(referenceType refType "The reference type ID.") (referenceType refType "The reference type ID.")
) )
(Reply (Reply
(int modBits "Modifier bits as defined in the " (int modBits "Modifier bits as defined in Chapter 4 of "
"<a href=\"http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html\">VM Specification</a>") "<cite>The Java&trade; Virtual Machine Specification</cite>")
) )
(ErrorSet (ErrorSet
(Error INVALID_CLASS "refType is not the ID of a reference " (Error INVALID_CLASS "refType is not the ID of a reference "
...@@ -651,8 +650,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -651,8 +650,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(int modBits "The modifier bit flags (also known as access flags) " (int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the " "which provide additional information on the "
"field declaration. Individual flag values are " "field declaration. Individual flag values are "
"defined in the " "defined in Chapter 4 of "
"<a href=\"http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html\">VM Specification</a>." "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"In addition, The <code>0xf0000000</code> bit identifies " "In addition, The <code>0xf0000000</code> bit identifies "
"the field as synthetic, if the synthetic attribute " "the field as synthetic, if the synthetic attribute "
"<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.") "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
...@@ -686,8 +685,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -686,8 +685,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(int modBits "The modifier bit flags (also known as access flags) " (int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the " "which provide additional information on the "
"method declaration. Individual flag values are " "method declaration. Individual flag values are "
"defined in the " "defined in Chapter 4 of "
"<a href=\"http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html\">VM Specification</a>." "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"In addition, The <code>0xf0000000</code> bit identifies " "In addition, The <code>0xf0000000</code> bit identifies "
"the method as synthetic, if the synthetic attribute " "the method as synthetic, if the synthetic attribute "
"<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.") "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
...@@ -773,8 +772,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -773,8 +772,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(Command Status=9 (Command Status=9
"Returns the current status of the reference type. The status " "Returns the current status of the reference type. The status "
"indicates the extent to which the reference type has been " "indicates the extent to which the reference type has been "
"initialized, as described in the " "initialized, as described in section 2.1.6 of "
"<a href=\"http://java.sun.com/docs/books/vmspec/html/Concepts.doc.html#16491\">VM specification</a>. " "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"If the class is linked the PREPARED and VERIFIED bits in the returned status bits " "If the class is linked the PREPARED and VERIFIED bits in the returned status bits "
"will be set. If the class is initialized the INITIALIZED bit in the returned " "will be set. If the class is initialized the INITIALIZED bit in the returned "
"status bits will be set. If an error occured during initialization then the " "status bits will be set. If an error occured during initialization then the "
...@@ -852,9 +851,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -852,9 +851,8 @@ JDWP "Java(tm) Debug Wire Protocol"
"Returns the JNI signature of a reference type along with the " "Returns the JNI signature of a reference type along with the "
"generic signature if there is one. " "generic signature if there is one. "
"Generic signatures are described in the signature attribute " "Generic signatures are described in the signature attribute "
"section in the " "section in "
"<a href=\"http://java.sun.com/docs/books/vmspec\"> "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"Java Virtual Machine Specification, 3rd Edition.</a> "
"Since JDWP version 1.5." "Since JDWP version 1.5."
"<p> "<p>
(Out (Out
...@@ -882,9 +880,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -882,9 +880,8 @@ JDWP "Java(tm) Debug Wire Protocol"
"by the compiler. " "by the compiler. "
"Fields are returned in the order they occur in the class file. " "Fields are returned in the order they occur in the class file. "
"Generic signatures are described in the signature attribute " "Generic signatures are described in the signature attribute "
"section in the " "section in "
"<a href=\"http://java.sun.com/docs/books/vmspec\"> "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"Java Virtual Machine Specification, 3rd Edition.</a> "
"Since JDWP version 1.5." "Since JDWP version 1.5."
(Out (Out
(referenceType refType "The reference type ID.") (referenceType refType "The reference type ID.")
...@@ -900,8 +897,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -900,8 +897,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(int modBits "The modifier bit flags (also known as access flags) " (int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the " "which provide additional information on the "
"field declaration. Individual flag values are " "field declaration. Individual flag values are "
"defined in the " "defined in Chapter 4 of "
"<a href=\"http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html\">VM Specification</a>." "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"In addition, The <code>0xf0000000</code> bit identifies " "In addition, The <code>0xf0000000</code> bit identifies "
"the field as synthetic, if the synthetic attribute " "the field as synthetic, if the synthetic attribute "
"<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.") "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
...@@ -925,9 +922,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -925,9 +922,8 @@ JDWP "Java(tm) Debug Wire Protocol"
"if present, and any synthetic methods created by the compiler. " "if present, and any synthetic methods created by the compiler. "
"Methods are returned in the order they occur in the class file. " "Methods are returned in the order they occur in the class file. "
"Generic signatures are described in the signature attribute " "Generic signatures are described in the signature attribute "
"section in the " "section in "
"<a href=\"http://java.sun.com/docs/books/vmspec\"> "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"Java Virtual Machine Specification, 3rd Edition.</a> "
"Since JDWP version 1.5." "Since JDWP version 1.5."
(Out (Out
(referenceType refType "The reference type ID.") (referenceType refType "The reference type ID.")
...@@ -943,8 +939,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -943,8 +939,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(int modBits "The modifier bit flags (also known as access flags) " (int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the " "which provide additional information on the "
"method declaration. Individual flag values are " "method declaration. Individual flag values are "
"defined in the " "defined in Chapter 4 of "
"<a href=\"http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html\">VM Specification</a>." "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"In addition, The <code>0xf0000000</code> bit identifies " "In addition, The <code>0xf0000000</code> bit identifies "
"the method as synthetic, if the synthetic attribute " "the method as synthetic, if the synthetic attribute "
"<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.") "<a href=\"#JDWP_VirtualMachine_Capabilities\">capability</a> is available.")
...@@ -1006,8 +1002,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -1006,8 +1002,8 @@ JDWP "Java(tm) Debug Wire Protocol"
) )
(Command ConstantPool=18 (Command ConstantPool=18
"Return the raw bytes of the constant pool in the format of the " "Return the raw bytes of the constant pool in the format of the "
"constant_pool item of the Class File Format in the " "constant_pool item of the Class File Format in "
"Java Virtual Machine Specification. " "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"<p>Since JDWP version 1.6. Requires canGetConstantPool capability - see " "<p>Since JDWP version 1.6. Requires canGetConstantPool capability - see "
"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."" "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>.""
(Out (Out
...@@ -1016,7 +1012,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -1016,7 +1012,8 @@ JDWP "Java(tm) Debug Wire Protocol"
(Reply (Reply
(int count "Total number of constant pool entries plus one. This " (int count "Total number of constant pool entries plus one. This "
"corresponds to the constant_pool_count item of the " "corresponds to the constant_pool_count item of the "
"Class File Format in the Java Virtual Machine Specification. ") "Class File Format in "
"<cite>The Java&trade; Virtual Machine Specification</cite>. ")
(Repeat bytes (Repeat bytes
(byte cpbytes "Raw bytes of constant pool") (byte cpbytes "Raw bytes of constant pool")
) )
...@@ -1324,7 +1321,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -1324,7 +1321,8 @@ JDWP "Java(tm) Debug Wire Protocol"
) )
) )
(Command Bytecodes=3 (Command Bytecodes=3
"Retrieve the method's bytecodes as defined in the JVM Specification." "Retrieve the method's bytecodes as defined in "
"<cite>The Java&trade; Virtual Machine Specification</cite>. "
"Requires canGetBytecodes capability - see " "Requires canGetBytecodes capability - see "
"<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>." "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
(Out (Out
...@@ -1379,9 +1377,8 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -1379,9 +1377,8 @@ JDWP "Java(tm) Debug Wire Protocol"
"instance methods, the \"this\" reference is included in the " "instance methods, the \"this\" reference is included in the "
"table. Also, synthetic variables may be present. " "table. Also, synthetic variables may be present. "
"Generic signatures are described in the signature attribute " "Generic signatures are described in the signature attribute "
"section in the " "section in "
"<a href=\"http://java.sun.com/docs/books/vmspec\"> "<cite>The Java&trade; Virtual Machine Specification</cite>. "
"Java Virtual Machine Specification, 3rd Edition.</a> "
"Since JDWP version 1.5." "Since JDWP version 1.5."
(Out (Out
(referenceType refType "The class.") (referenceType refType "The class.")
...@@ -1970,8 +1967,9 @@ JDWP "Java(tm) Debug Wire Protocol" ...@@ -1970,8 +1967,9 @@ JDWP "Java(tm) Debug Wire Protocol"
"<p>" "<p>"
"The method which will return early is referred to as the " "The method which will return early is referred to as the "
"called method. The called method is the current method (as " "called method. The called method is the current method (as "
"defined by the Frames section in the Java Virtual Machine " "defined by the Frames section in "
"Specification) for the specified thread at the time this command " "<cite>The Java&trade; Virtual Machine Specification</cite>) "
"for the specified thread at the time this command "
"is received. " "is received. "
"<p>" "<p>"
"The specified thread must be suspended. " "The specified thread must be suspended. "
......
# #
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -38,7 +38,7 @@ else ...@@ -38,7 +38,7 @@ else
endif endif
SUBDIRS = SUBDIRS =
SUBDIRS_misc = nio scripting nbproject SUBDIRS_misc = nio scripting nbproject forkjoin
SUBDIRS_enterprise = $(WEBSERVICES_SUBDIR) SUBDIRS_enterprise = $(WEBSERVICES_SUBDIR)
SUBDIRS_management = jmx SUBDIRS_management = jmx
......
#
# Copyright (c) 2011, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Makefile for building all the samples under the forkjoin subdirectory.
#
BUILDDIR = ../..
PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = mergesort
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber::
$(SUBDIRS-loop)
clobber clean ::
$(RM) -r $(SAMPLEDIR)/forkjoin
#
# Copyright (c) 2011, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Makefile for the forkjoin/mergesort sample code
#
BUILDDIR = ../../..
PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk
SAMPLE_SRC_DIR = $(SHARE_SRC)/sample/forkjoin/mergesort
SAMPLE_DST_DIR = $(SAMPLEDIR)/forkjoin/mergesort
SAMPLE_FILES = \
$(SAMPLE_DST_DIR)/MergeDemo.java \
$(SAMPLE_DST_DIR)/MergeSort.java
all build: $(SAMPLE_FILES)
$(SAMPLE_DST_DIR)/%: $(SAMPLE_SRC_DIR)/%
$(install-file)
clean clobber:
$(RM) -r $(SAMPLE_DST_DIR)
.PHONY: all build clean clobber
# #
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -31,7 +31,7 @@ BUILDDIR = ../.. ...@@ -31,7 +31,7 @@ BUILDDIR = ../..
PRODUCT = java PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = file multicast server SUBDIRS = chatserver file multicast server
include $(BUILDDIR)/common/Subdirs.gmk include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
......
#
# Copyright (c) 2011, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Makefile for the nio/chatserver sample code
#
BUILDDIR = ../../..
PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk
SAMPLE_SRC_DIR = $(SHARE_SRC)/sample/nio/chatserver
SAMPLE_DST_DIR = $(SAMPLEDIR)/nio/chatserver
SAMPLE_FILES = \
$(SAMPLE_DST_DIR)/ChatServer.java \
$(SAMPLE_DST_DIR)/Client.java \
$(SAMPLE_DST_DIR)/ClientReader.java \
$(SAMPLE_DST_DIR)/DataReader.java \
$(SAMPLE_DST_DIR)/MessageReader.java \
$(SAMPLE_DST_DIR)/NameReader.java \
$(SAMPLE_DST_DIR)/README.txt
all build: $(SAMPLE_FILES)
$(SAMPLE_DST_DIR)/%: $(SAMPLE_SRC_DIR)/%
$(install-file)
clean clobber:
$(RM) -r $(SAMPLE_DST_DIR)
.PHONY: all build clean clobber
...@@ -83,6 +83,11 @@ SUBDIRS_desktop = audio $(RENDER_SUBDIR) image \ ...@@ -83,6 +83,11 @@ SUBDIRS_desktop = audio $(RENDER_SUBDIR) image \
SUBDIRS_management = management SUBDIRS_management = management
SUBDIRS_misc = $(ORG_SUBDIR) rmi $(JDBC_SUBDIR) tracing SUBDIRS_misc = $(ORG_SUBDIR) rmi $(JDBC_SUBDIR) tracing
SUBDIRS_tools = native2ascii serialver tools jconsole SUBDIRS_tools = native2ascii serialver tools jconsole
ifndef OPENJDK
SUBDIRS += usagetracker
endif
include $(BUILDDIR)/common/Subdirs.gmk include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
......
...@@ -73,9 +73,14 @@ ifeq ($(PLATFORM), linux) ...@@ -73,9 +73,14 @@ ifeq ($(PLATFORM), linux)
# Recommended way to avoid such warning is to declare the variable as # Recommended way to avoid such warning is to declare the variable as
# volatile to prevent the optimization. However, this approach does not # volatile to prevent the optimization. However, this approach does not
# work because we have to declare all variables as volatile in result. # work because we have to declare all variables as volatile in result.
ifndef CROSS_COMPILE_ARCH ifndef CROSS_COMPILE_ARCH
OTHER_CFLAGS += -Wno-clobbered CC_43_OR_NEWER := \
endif $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
\( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) )
ifeq ($(CC_43_OR_NEWER),1)
OTHER_CFLAGS += -Wno-clobbered
endif
endif
endif endif
include $(BUILDDIR)/common/Mapfile-vers.gmk include $(BUILDDIR)/common/Mapfile-vers.gmk
......
#
# Copyright (c) 2011, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
BUILDDIR = ../..
PACKAGE = sun.usagetracker
PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk
#
# Files
#
AUTO_FILES_JAVA_DIRS = sun/usagetracker
#
# Rules
#
include $(BUILDDIR)/common/Classes.gmk
Manifest-Version: 1.0 Manifest-Version: 1.0
Specification-Title: Java Platform API Specification Specification-Title: Java Platform API Specification
Specification-Version: 1.7 Specification-Version: 1.7
Specification-Vendor: Oracle Specification-Vendor: Oracle Corporation
Implementation-Title: Java Runtime Environment Implementation-Title: Java Runtime Environment
Implementation-Version: @@RELEASE@@ Implementation-Version: @@RELEASE@@
Implementation-Vendor: @@COMPANY_NAME@@ Implementation-Vendor: @@COMPANY_NAME@@
...@@ -19,54 +19,44 @@ ...@@ -19,54 +19,44 @@
." or visit www.oracle.com if you need additional information or have any ." or visit www.oracle.com if you need additional information or have any
." questions. ." questions.
." ."
.TH appletviewer 1 "02 Jun 2010" .TH appletviewer 1 "14 Apr 2011"
.LP .LP
.SH "名前" .SH "名前"
appletviewer \- Java アプレットビューア appletviewer \- Java アプレットビューア
.LP
.RS 3
.LP .LP
.LP .LP
\f3appletviewer\fP コマンドは Web ブラウザの外でアプレットを実行させます。 \f3appletviewer\fP コマンドは Web ブラウザの外でアプレットを実行させます。
.LP
.RE
.SH "形式"
.LP .LP
.SH "形式"
.LP .LP
.LP .LP
\f4appletviewer\fP \f2[\fP \f2options\fP \f2] \fP\f2urls\fP ... \f4appletviewer\fP \f2[\fP \f2options\fP \f2] \fP\f2urls\fP ...
.LP .LP
.SH "説明" .SH "説明"
.LP
.LP .LP
.LP .LP
\f3appletviewer\fP コマンドは \f2urls\fP に指定されたドキュメントあるいはリソースと接続して、そのドキュメントが参照するそれぞれのアプレットを独自のウィンドウで表示します。注: \f2urls\fP によって参照されたドキュメントが、\f2OBJECT\fP、\f2EMBED\fP、または \f2APPLET\fP タグでどのアプレットも参照していない場合、\f3appletviewer\fP は何も行いません。\f3appletviewer\fP でサポートされる HTML タグの詳細については、 \f3appletviewer\fP コマンドは \f2urls\fP に指定されたドキュメントあるいはリソースと接続して、そのドキュメントが参照するそれぞれのアプレットを独自のウィンドウで表示します。注: \f2urls\fP によって参照されたドキュメントが、\f2OBJECT\fP、\f2EMBED\fP、または \f2APPLET\fP タグでどのアプレットも参照していない場合、\f3appletviewer\fP は何も行いません。\f3appletviewer\fP でサポートされる HTML タグの詳細については、
.na .na
\f2「アプレットビューアのタグ」\fP @ \f2「アプレットビューアのタグ」\fP @
.fi .fi
http://java.sun.com/javase/6/docs/technotes/tools/appletviewertags.htmlを参照してください。 http://java.sun.com/javase/6/docs/technotes/tools/appletviewertags.htmlを参照してください。
.LP .LP
.LP .LP
\f3注:\fP \f3appletviewer\fP は、RFC2396 で規定されたエスケープ機構に従って符号化された URL を必要とします。サポートされるのは、符号化された URL だけです。ただし、ファイル名については、RFC2396 に指定された方法で符号化を解除しておく必要があります。 \f3注:\fP \f3appletviewer\fP は、RFC2396 で規定されたエスケープ機構に従って符号化された URL を必要とします。サポートされるのは、符号化された URL だけです。ただし、ファイル名については、RFC2396 に指定された方法で符号化を解除しておく必要があります。
.LP .LP
.SH "オプション" .SH "オプション"
.LP
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
\-debug \-debug
Java デバッガ jdb(1) でアプレットビューアを開始します。 これにより、ドキュメント中のアプレットをデバッグすることができます。 Java デバッガ jdb(1) でアプレットビューアを開始します。これにより、ドキュメント中のアプレットをデバッグすることができます。
.TP 3 .TP 3
\-encoding \ \ encoding name \-encoding \ \ encoding name
入力 HTML ファイルのエンコーディング名を指定します。 入力 HTML ファイルのエンコーディング名を指定します。
.TP 3 .TP 3
\-Jjavaoption \-Jjavaoption
文字列 \f2javaoption\fP は、appletviewer を実行する Java インタプリタに 1 つの引数として渡されます。引数にスペースを含めてはいけません。複数の引数は、各引数のすべてを接頭辞 \f3\-J\fP で始めることにより区分する必要があります。これは、コンパイラの実行環境、またはメモリーの利用に有効です。 文字列 \f2javaoption\fP は、appletviewer を実行する Java インタプリタに 1 つの引数として渡されます。引数にスペースを含めてはいけません。複数の引数は、各引数のすべてを接頭辞 \f3\-J\fP で始めることにより区分する必要があります。これは、コンパイラの実行環境、またはメモリーの利用に有効です。
.RE .RE
.LP .LP
......
...@@ -19,102 +19,133 @@ ...@@ -19,102 +19,133 @@
." or visit www.oracle.com if you need additional information or have any ." or visit www.oracle.com if you need additional information or have any
." questions. ." questions.
." ."
.TH apt 1 "02 Jun 2010" .TH apt 1 "14 Apr 2011"
.LP .LP
.SH "NAME" .SH "NAME"
.LP .LP
.LP .LP
\f2apt\fP \- 注釈処理ツール \f2apt\fP \- 注釈処理ツール
.LP .LP
.SH "形式" .SH "形式"
.LP .LP
.LP .LP
\f2apt [\-classpath \fP\f2classpath\fP] [\-sourcepath \f2sourcepath\fP] [\-d \f2directory\fP] [\-s \f2directory\fP] [\-factorypath \f2path\fP] [\-factory \f2class\fP] [\-print] [\-nocompile] [\-A\f2key\fP[\f2=val\fP] ...][\f2javac option\fP] sourcefiles [@files] \f2apt [\-classpath \fP\f2classpath\fP] [\-sourcepath \f2sourcepath\fP] [\-d \f2directory\fP] [\-s \f2directory\fP] [\-factorypath \f2path\fP] [\-factory \f2class\fP] [\-print] [\-nocompile] [\-A\f2key\fP[\f2=val\fP] ...] [\f2javac option\fP] sourcefiles [@files]
.LP .LP
.SH "パラメータ" .SH "パラメータ"
.LP .LP
.LP .LP
プションは順不同です。特定のオプションに適用されるパラメータについては、下記の「オプション」を参照してください。 オプションの指定順序に決まりはありません。特定のオプションに適用されるパラメータについては、下記の「オプション」を参照してください。
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
sourcefiles sourcefiles
ゼロ、1 つ、または複数の処理対象のソースファイル ゼロ、1 つ、または複数の処理対象のソースファイル
.TP 3 .TP 3
@files @files
ソースファイルまたは他のオプションを一覧表示する 1 つまたは複数のファイル ソースファイルまたは他のオプションを一覧表示する 1 つまたは複数のファイル
.RE .RE
.LP .LP
.SH "説明" .SH "説明"
.LP .LP
.LP .LP
注釈処理ツール \f2apt\fP は、新しいリフレクト API とサポートインフラストラクチャーから構成され、プログラム注釈を処理します。\f2apt\fP リフレクト API は、 構築時のソースベースで、プログラム構造に関する読み取り専用ビューを提供します。これらのリフレクト API は、総称を追加した後に、Java(TM) プログラミング言語の型システムを正しくモデル化するように設計されています。最初に、\f2apt\fP は、新しいソースコードと他のファイルを作成する注釈プロセッサを実行します。次に、\f2apt\fP は、元のソースファイルと生成したソースファイルの両方をコンパイルするため、開発が楽になります。ツールとのインタフェースに使用されるリフレクト API などの API は、\f2com.sun.mirror\fP のサブパッケージです。 注釈処理ツール \f2apt\fP は、新しいリフレクト API とサポートインフラストラクチャーから構成され、プログラム注釈を処理します。\f2apt\fP リフレクト API は、 構築時のソースベースで、プログラム構造に関する読み取り専用ビューを提供します。これらのリフレクト API は、総称を追加した後に、Java(TM) プログラミング言語の型システムを正しくモデル化するように設計されています。最初に、\f2apt\fP は、新しいソースコードと他のファイルを作成する注釈プロセッサを実行します。次に、\f2apt\fP は、元のソースファイルと生成したソースファイルの両方をコンパイルするため、開発が楽になります。ツールとのインタフェースに使用されるリフレクト API などの API は、\f2com.sun.mirror\fP のサブパッケージです。
.LP .LP
.LP .LP
ツールの機能に関する詳細と、\f2apt\fP を使用した開発方法については、 ツールの機能に関する詳細と、\f2apt\fP を使用した開発方法については、
.na .na
\f4「\fP\f4apt\fP\f3 入門」\fP @ \f4「apt 入門」\fP @
.fi .fi
http://java.sun.com/javase/6/docs/technotes/guides/apt/GettingStarted.htmlを参照してください。 http://java.sun.com/javase/6/docs/technotes/guides/apt/GettingStarted.htmlを参照してください。
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
: :
\f2apt\fP の機能は、\f2javac(1)\fP ツールの一部となった注釈処理インフラストラクチャーに組み込まれ、すべての Java コンパイラで使用できるように標準化されました。この新しいインフラストラクチャーは、言語モデルおよび Java プラットフォームの一部となった注釈処理 API に依存します。注釈プロセッサの開発は、新しい API および \f2javac\fP ツールに基づいて行うようお勧めします。 \f2apt\fP の機能は、\f2javac(1)\fP ツールの一部となった注釈処理インフラストラクチャーに組み込まれ、すべての Java コンパイラで使用できるように標準化されました。この新しいインフラストラクチャーは、言語モデルおよび Java プラットフォームの一部となった注釈処理 API に依存します。注釈プロセッサの開発は、新しい API および \f2javac\fP ツールに基づいて行うようお勧めします。
.RE .RE
.LP .LP
.SH "オプション" .SH "オプション"
.LP .LP
.SS .SS
apt 固有のオプション apt 固有のオプション
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
\-s dir \-s dir
プロセッサの生成するソースファイルを置くディレクトリルートを指定します。 ファイルは、パッケージの名前空間に基づいてサブディレクトリに置かれます。 プロセッサの生成するソースファイルを置くディレクトリルートを指定します。 ファイルは、パッケージの名前空間に基づいてサブディレクトリに置かれます。
.TP 3 .TP 3
\-nocompile \-nocompile
ソースファイルをクラスファイルにコンパイルしません。 ソースファイルをクラスファイルにコンパイルしません。
.TP 3 .TP 3
\-print \-print
指定したタイプのテキスト表現を出力します。 注釈処理またはコンパイルは行いません。 指定したタイプのテキスト表現を出力します。 注釈処理またはコンパイルは行いません。
.TP 3 .TP 3
\-A[key[=val]] \-A[key[=val]]
注釈プロセッサへ渡すオプションです。 このオプションは、\f2apt\fP が直接解釈するのではなく、それぞれのプロセッサによって使用できるように変えられます。 注釈プロセッサへ渡すオプションです。 このオプションは、\f2apt\fP が直接解釈するのではなく、それぞれのプロセッサによって使用できるように変えられます。
.TP 3 .TP 3
\-factorypath path \-factorypath path
注釈プロセッサファクトリを検索する場所を指定します。 このオプションを使用する場合、クラスパスのファクトリは検索されません。 注釈プロセッサファクトリを検索する場所を指定します。 このオプションを使用する場合、クラスパスのファクトリは検索されません。
.TP 3 .TP 3
\-factory classname \-factory classname
使用する注釈プロセッサファクトリの名前です。 デフォルトの検出プロセスを省略します。 使用する注釈プロセッサファクトリの名前です。 デフォルトの検出プロセスを省略します。
.TP 3
\-version
バージョン情報を出力します。
.TP 3
\-X
非標準オプションに関する情報を表示します。
.RE .RE
.LP .LP
.SS .SS
javac と共用するオプション javac と共用するオプション
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
\-d dir \-d dir
プロセッサと javac 生成のクラスファイルを置く場所を指定します。 プロセッサと javac 生成のクラスファイルを置く場所を指定します。
.TP 3
\-cp path または \-classpath path
ユーザークラスファイルと注釈プロセッサファクトリを検索する場所を指定します。\f2\-factorypath\fP が指定されている場合、クラスパスのファクトリは検索されません。
.RE
.LP
.LP
\f2javac\fP オプションの詳細については、javac(1) のマニュアルページを参照してください。
.LP
.SS
非標準オプション
.LP
.RS 3
.TP 3
\-XListAnnotationTypes
注釈の型に検出されるリスト.
.TP 3
\-XListDeclarations
指定および宣言がインクルードされるリスト.
.TP 3
\-XPrintAptRounds
初期および再帰的な \f2apt\fP ラウンドに関する情報を出力する.
.TP 3
\-XPrintFactoryInfo
処理を要求するファクトリの注釈に関する情報を出力する.
.TP 3 .TP 3
\-cp path or \-classpath path \-XclassesAsDecls
ユーザークラスファイルと注釈プロセッサファクトリを検索する場所を指定します。\f2\-factorypath\fP が指定されている場合、クラスパスのファクトリは検索されません。 クラスファイルとソースファイルの両方を、処理対象の宣言として処理します。
.RE .RE
.LP .LP
.LP .LP
\f2javac\fP オプションの詳細については、javac(1) のマニュアルページを参照してください。 \f3注\fP: これらは非標準オプションなので、予告なく変更される可能性があります。
.LP .LP
.SH "" .SH ""
.LP .LP
.LP .LP
\f2apt\fP の機能は、\f2javac\fP により提供される標準注釈処理インフラストラクチャーに組み込まれました。今後の JDK リリースでは、\f2apt\fP および関連する API のサポートが中止する可能性があります。 \f2apt\fP の機能は、\f2javac\fP により提供される標準注釈処理インフラストラクチャーに組み込まれました。今後の JDK リリースでは、\f2apt\fP および関連する API のサポートが中止する可能性があります。
.LP .LP
.SH "関連項目" .SH "関連項目"
.LP .LP
.RS 3 .RS 3
.TP 2 .TP 2
......
...@@ -19,22 +19,16 @@ ...@@ -19,22 +19,16 @@
." or visit www.oracle.com if you need additional information or have any ." or visit www.oracle.com if you need additional information or have any
." questions. ." questions.
." ."
.TH extcheck 1 "02 Jun 2010" .TH extcheck 1 "14 Apr 2011"
.LP .LP
.SH "名前" .SH "名前"
extcheck \- jar の競合検出ユーティリティー extcheck \- jar の競合検出ユーティリティー
.LP
.RS 3
.LP .LP
.LP .LP
\f3extcheck\fP は、ターゲットの jar ファイルと現在インストールされている拡張機能の jar ファイル間のバージョンの競合を検出します。 \f3extcheck\fP は、ターゲットの jar ファイルと現在インストールされている拡張機能の jar ファイル間のバージョンの競合を検出します。
.LP .LP
.RE .SH "形式"
.SH "形式"
.LP
.LP .LP
.nf .nf
\f3 \f3
...@@ -45,39 +39,33 @@ extcheck [ \-verbose ] targetfile.jar ...@@ -45,39 +39,33 @@ extcheck [ \-verbose ] targetfile.jar
.fi .fi
.LP .LP
.SH "説明" .SH "説明"
.LP .LP
.LP
.LP
\f3extcheck\fP ユーティリティーは、指定された Jar ファイルのタイトルおよびバージョンが Java(TM) 2 SDK にインストールされている拡張機能と競合していないかをチェックします。拡張機能をインストールする前に、このユーティリティーを使って、バージョンが同じか、より新しい拡張機能がすでにインストールされていないかどうかを調べることができます。
.LP .LP
\f3extcheck\fP ユーティリティーは、指定された Jar ファイルのタイトルおよびバージョンが Java(TM) 2 SDK にインストールされている拡張機能と競合していないかをチェックします。拡張機能をインストールする前に、このユーティリティーを使って、バージョンが同じか、より新しい拡張機能がすでにインストールされていないかどうかを調べることができます。
.LP .LP
\f3extcheck\fP ユーティリティーは、\f2targetfile.jar\fP ファイルのマニフェスト内のヘッダー \f2Specification\-title\fP および \f2Specification\-version\fP を、拡張機能ディレクトリ内に現在インストールされているすべての Jar ファイル内の対応するヘッダーと比較します。デフォルトでは、拡張機能ディレクトリは、\f2jre/lib/ext\fP です。\f3extcheck\fP ユーティリティーは、\f2java.lang.Package.isCompatibleWith\fP メソッドと同様の方法でバージョン番号を比較します。
.LP .LP
\f3extcheck\fP ユーティリティーは、targetfile.jar ファイルのマニフェスト内のヘッダー \f2Specification\-title\fP および \f2Specification\-version\fP を、拡張機能ディレクトリ内に現在インストールされている \f2すべての Jar ファイル内の\fP 対応するヘッダーと比較します。デフォルトでは、拡張機能ディレクトリは、\f2jre/lib/ext\fP です。\f3extcheck\fP ユーティリティーは、\f2java.lang.Package.isCompatibleWith\fP メソッドと同様の方法でバージョン番号を比較します。
.LP .LP
競合が検出されない場合のリターンコードは \f20\fP です。
.LP .LP
競合が検出されない場合のリターンコードは \f20\fP です。
.LP .LP
拡張機能ディレクトリ内のいずれかの jar ファイルのマニフェストに、同一の \f2Specification\-title\fP、および同一またはより新しい \f2Specification\-version\fP 番号がある場合は、ゼロでないエラーコードが返されます。\f2targetfile.jar\fP のマニフェストに \f2Specification\-title\fP または \f2Specification\-version\fP 属性がない場合も、ゼロでないエラーコードが返されます。
.LP .LP
.SH "オプション" 拡張機能ディレクトリ内のいずれかの jar ファイルのマニフェストに、同一の \f2Specification\-title\fP 、および同一またはより新しい \f2Specification\-version\fP 番号がある場合は、ゼロでないエラーコードが返されます。 \f2targetfile.jar\fP のマニフェストに \f2Specification\-title\fP または \f2Specification\-version\fP 属性がない場合も、ゼロでないエラーコードが返されます。
.LP .LP
.SH "オプション"
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
\-verbose \-verbose
拡張機能ディレクトリ内の Jar ファイルを、チェック時に一覧表示します。また、ターゲット jar ファイルのマニフェストの属性、および競合する jar ファイルについても報告します。 拡張機能ディレクトリ内の Jar ファイルを、チェック時に一覧表示します。また、ターゲット jar ファイルのマニフェストの属性、および競合する jar ファイルについても報告します。
.TP 3 .TP 3
\-Joption \-Joption
Java 仮想マシンに \f2option\fP を渡します。 \f2option\fP には、java(1)のリファレンスページに記載されているオプションを 1 つ指定します。たとえば、\f3\-J\-Xms48m\fP と指定すると、スタートアップメモリーは 48M バイトに設定されます。 Java 仮想マシンに \f2option\fP を渡します。\f2option\fP には、java(1)のリファレンスページに記載されているオプションを 1 つ指定します。たとえば、\f3\-J\-Xms48m\fP と指定すると、スタートアップメモリーは 48M バイトに設定されます。
.RE .RE
.LP .LP
.SH "関連項目" .SH "関連項目"
.LP
.LP .LP
.LP .LP
jar(1) jar(1)
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
." Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. ." Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
." ."
." This code is free software; you can redistribute it and/or modify it ." This code is free software; you can redistribute it and/or modify it
...@@ -19,22 +19,16 @@ ...@@ -19,22 +19,16 @@
." or visit www.oracle.com if you need additional information or have any ." or visit www.oracle.com if you need additional information or have any
." questions. ." questions.
." ."
.TH native2ascii 1 "02 Jun 2010" .TH native2ascii 1 "14 Apr 2011"
.LP .LP
.SH "名前" .SH "名前"
native2ascii \- ネイティブ \- ASCII コンバータ native2ascii \- ネイティブ \- ASCII コンバータ
.LP
.RS 3
.LP .LP
.LP .LP
ネイティブコード (Latin 1 および Unicode 以外) のファイルを Unicode コードに変換します。 サポートされる文字エンコーディングの文字のファイルを ASCII または Unicode エスケープあるいはその両方のファイルに変換します。その逆の変換も行います。
.LP .LP
.RE .SH "形式"
.SH "形式"
.LP
.LP .LP
.nf .nf
\f3 \f3
...@@ -44,36 +38,34 @@ native2ascii \- 銉嶃偆銉嗐偅銉 \- ASCII 銈炽兂銉愩兗銈 ...@@ -44,36 +38,34 @@ native2ascii \- 銉嶃偆銉嗐偅銉 \- ASCII 銈炽兂銉愩兗銈
.fi .fi
.LP .LP
.SH "説明" .SH "説明"
.LP .LP
.LP
.LP
Java コンパイラおよびその他の Java ツールは、Latin\-1 または Unicode コード (\\udddd 表記) 文字を含んだファイルだけを処理することができます。 \f2native2ascii\fP は、これら以外の文字コードのファイルを Latin\-1 または Unicode コードのファイルに変換します。
.LP .LP
\f2native2ascii\fP Java 実行環境でサポートされる文字エンコーディングにエンコードされたファイルを、ASCII でエンコードされたファイルに変換します。ASCII 文字セットの一部でないすべての文字で Unicode エスケープ (「\\uxxxx」の表記) を使用します。このプロセスは、ISO\-8859\-1 文字セットに含まれない文字が含まれているプロパティーファイルで必要です。このツールは、その逆の変換を実行することもできます。
.LP .LP
\f2outputfile\fP を省略した場合、標準出力に出力されます。さらに、\f2inputfile\fP を省略した場合、標準入力から入力されます。
.LP .LP
.SH "オプション" \f2outputfile\fP を省略した場合、標準出力に出力されます。さらに、 \f2inputfile\fP を省略した場合、標準入力から入力されます。
.LP .LP
.SH "オプション"
.LP .LP
.RS 3 .RS 3
.TP 3 .TP 3
\-reverse \-reverse
逆の処理を行います。つまり、Latin\-1 または Unicode コードのファイルをネイティブコードに変換します。 逆の処理を行います。つまり、ISO\-8859\-1 で Unicode エスケープを使ってエンコードされたファイルを、Java 実行環境でサポートされる文字エンコーディングのファイルに変換します。
.br .br
.br .br
.TP 3 .TP 3
\-encoding encoding_name \-encoding encoding_name
変換処理で使用するコードの名前を指定します。デフォルトのコードは、システムプロパティーの \f2file.encoding\fP から取得されます。\f2encoding_name\fP 文字列は、 変換処理で使用する文字エンコーディングの名前を指定します。このオプションが存在しない場合は、デフォルトの文字エンコーディング ( \f2java.nio.charset.Charset.defaultCharset\fP メソッドで定義される) が使用されます。 \f2encoding_name\fP 文字列は、
.na .na
\f4「サポートされているエンコーディング」\fP @ \f4「サポートされている文字列エンコーディング」\fP @
.fi .fi
http://java.sun.com/javase/6/docs/technotes/guides/intl/encoding.doc.htmlドキュメントに示されている、サポートされるエンコーディングの表の最初の列から取得される必要があります。 http://java.sun.com/javase/6/docs/technotes/guides/intl/encoding.doc.htmlドキュメントに示されている、Java 実行環境でサポートされる文字エンコーディングの名前にする必要があります。
.br
.br
.TP 3 .TP 3
\-Joption \-Joption
Java 仮想マシンに \f2option\fP を渡します。 \f2option\fP には、java(1)のリファレンスページに記載されているオプションを 1 つ指定します。たとえば、\f3\-J\-Xms48m\fP と指定すると、スタートアップメモリーは 48M バイトに設定されます。 Java 仮想マシンに \f2option\fP を渡します。\f2option\fP には、java(1)のリファレンスページに記載されているオプションを 1 つ指定します。たとえば、\f3\-J\-Xms48m\fP と指定すると、スタートアップメモリーは 48M バイトに設定されます。
.RE .RE
.LP .LP
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -175,8 +175,8 @@ public final class TypeResolver { ...@@ -175,8 +175,8 @@ public final class TypeResolver {
/** /**
* Converts the given {@code type} to the corresponding class. * Converts the given {@code type} to the corresponding class.
* This method implements the concept of type erasure, * This method implements the concept of type erasure,
* that is described in <a href="http://jscstage.sfbay.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.6">section 4.6</a> * that is described in section 4.6 of
* of Java Language Specification. * <cite>The Java&trade; Language Specification</cite>.
* *
* @param type the array of types to convert * @param type the array of types to convert
* @return a corresponding class * @return a corresponding class
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册