6961754: JCK tests CvsEventTest0001 and CvsEventTest0002 fail under FF 3.5 on OEL 5
Summary: Check the return value of XlibUtil.translateCoordinates() for null
Reviewed-by: art, dcherepanov
## Copyright (c) 1997, 2009, 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.### Imports files exported by a hotspot build or provided from an external# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files# that are provided inside this workspace.## IMPORT_LIST contains the list of destination files that are copied # from external places (outside this workspace).## INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.# BUILDDIR = ../..MODULE = basePRODUCT = javainclude $(BUILDDIR)/common/Defs.gmkSERVER_LOCATION = serverCLIENT_LOCATION = clientDB_SUFFIX = _dbifeq ($(PLATFORM), windows) LIB_LOCATION = $(BINDIR)else LIB_LOCATION = $(LIBDIR)/$(LIBARCH)endifJVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)JVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)JVMMAP_NAME = $(LIB_PREFIX)jvm.mapJVMPDB_NAME = $(LIB_PREFIX)jvm.pdbLIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)JVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)CLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing# Needed to do file copyABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))SUBDIRS_desktop = fontsSUBDIRS_tools = sajdiinclude $(BUILDDIR)/common/Subdirs.gmkall clean clobber:: $(SUBDIRS-loop)all:: build# List of files created here or coming from BUILDDIR area (this workspace)INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist# List of files coming from outside this workspaceIMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \ $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt# Hotspot client is only available on 32-bit non-Zero buildsifneq ($(ZERO_BUILD), true)ifeq ($(ARCH_DATA_MODEL), 32) IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \ $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txtendifendififeq ($(PLATFORM), windows)# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WindowsIMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)# NOTE: These might actually come from BUILDDIR, depends on the settings.$(BINDIR)/msvcrt.dll: $(MSVCRT_DLL_PATH)/msvcrt.dll $(install-import-file) $(call chmod-file, a+x)$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL) $(install-import-file) $(call chmod-file, a+x)# Get the hotspot .map and .pdb files for client and serverIMPORT_LIST += \ $(LIBDIR)/$(JVMLIB_NAME) \ $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \ $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)# Add .map and .pdb files to the import path for client and kernel VMs. # These are only available on 32-bit windows builds. ifeq ($(ARCH_DATA_MODEL), 32) IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \ $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME) ifeq ($(DO_KERNEL), true) IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \ $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME) endifendif$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME) $(install-import-file)# it is OK for the .map and .pdb files to not exist, so do not force a # dependency on them from the bootstrap location, and allow the copy to fail.$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME): @$(prep-target) -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@ @$(install-module-file)$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME): @$(prep-target) -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@ @$(install-module-file)$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME): @$(prep-target) -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@ @$(install-module-file)$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME): @$(prep-target) -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@ @$(install-module-file)$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME): @$(prep-target) -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@ @$(install-module-file)$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME): @$(prep-target) -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@ @$(install-module-file)# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windowselse # PLATFORM# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT WindowsIMPORT_LIST += \ $(LIB_LOCATION)/$(LIBJSIG_NAME) \ $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)ifeq ($(PLATFORM), solaris) IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)endif ifneq ($(ZERO_BUILD), true)ifeq ($(ARCH_DATA_MODEL), 32)IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)ifeq ($(PLATFORM), solaris)# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solarisifeq ($(ARCH), sparc) IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)endifIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)ifeq ($(ARCH), sparc) IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)endif# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)IMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) @$(prep-target)# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solarisendif # 32bit solarisendif # 32bitendif # ZERO_BUILD# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windowsendif # PLATFORM$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME) $(install-import-file)$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME) $(install-file)$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME) $(install-import-file)$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME): @$(prep-target) $(call install-sym-link, ../$(LIBJSIG_NAME))$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME) $(install-import-file)$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME) $(install-import-file)$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) $(install-import-file)$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) $(install-import-file)$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME) $(install-import-file)$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt $(install-import-file)$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt $(install-import-file)$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt $(install-file)## Specific to OpenJDK building#ifdef OPENJDK ifeq ($(IMPORT_BINARY_PLUGS),true) include $(BUILDDIR)/common/internal/BinaryPlugs.gmk build: import-binary-plugs endifelse # !OPENJDKINTERNAL_IMPORT_LIST += \ $(LIBDIR)/security/US_export_policy.jar \ $(LIBDIR)/security/local_policy.jar \ $(LIBDIR)/jce.jar$(LIBDIR)/jce.jar: \ $(BUILDDIR)/closed/tools/crypto/jce/jce.jar $(install-non-module-file)$(LIBDIR)/security/US_export_policy.jar: \ $(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar $(install-file)$(LIBDIR)/security/local_policy.jar: \ $(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar $(install-file)endif # OPENJDKADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar# Construct classlist file$(LIBDIR)/classlist: \ $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \ $(ADDJSUM_JARFILE) @$(prep-target) @$(RM) -f $@.temp $(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \ $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp $(MV) $@.temp $@# Import internal files (ones that are stashed in this source tree)import_internal_files : $(INTERNAL_IMPORT_LIST)# Import files from the JDK that we are not buildingimport_files: $(IMPORT_LIST)# Get component information variables and rulesinclude $(BUILDDIR)/common/internal/ImportComponents.gmk# Security files we need to importSEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zipSEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zipJGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zipJGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip# Unzip zip file $2 into directory $1 (if $2 exists)# Warning: $2 must be absolute path not relativedefine SecUnzipperif [ -f $2 ] ; then \ $(MKDIR) -p $1; \ $(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \ ( $(CD) $1 && $(UNZIP) -o $2 ); \fiendef# If sec-bin exists, unpack it into the build directory# Also, the library recompile build indirectly depends on two SSL classes,# so copy those as well FIXUP# if sec-windows-bin exists, unpack it into the build directory# if JGSS files exists, unpack it into the build directory$(TEMPDIR)/security_imported: @$(prep-target) @$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP))ifeq ($(PLATFORM), windows) @$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP))endififeq ($(PLATFORM), windows) ifeq ($(ARCH_DATA_MODEL), 32) @$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP)) else @$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP)) endifendif @$(ECHO) "Imported on `$(DATE)`" > $@# Import all files from other components$(TEMPDIR)/components_imported: @$(prep-target) $(call import-component-binaries,$(ABS_OUTPUTDIR)) $(call import-component-sources,$(IMPORTSRCDIR)) $(call import-component-docs,$(IMPORTDOCDIR)) $(call import-component-classes,$(CLASSDESTDIR)) @$(ECHO) "Imported on `$(DATE)`" > $@# Do pretty much everythingbuild : import_files \ import_internal_files \ $(TEMPDIR)/components_imported \ $(TEMPDIR)/security_imported# Clean up what we imported (except for component files)clean clobber:: $(RM) $(IMPORT_LIST) $(RM) $(INTERNAL_IMPORT_LIST) $(call import-component-sources-clean,$(IMPORTSRCDIR)) $(call import-component-docs-clean,$(IMPORTDOCDIR)) $(call import-component-classes-clean,$(CLASSDESTDIR)) $(RM) $(TEMPDIR)/components_imported $(RM) $(TEMPDIR)/security_imported.PHONY: import_files import_internal_files