# HG changeset patch
# User asaha
# Date 1303317071 25200
# Node ID 6f8a4d334fb2174c02bee8cf65626dc1ec760c29
# Parent 0865aa0ad9b2573ba0f7c4c2243c3059d2c50c52# Parent 31aa8c35a4dfe1d6ca0a4ff1035788b99c05111a
Merge
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 .hgtags
--- a/.hgtags Tue Apr 19 10:26:18 2011 -0700
+++ b/.hgtags Wed Apr 20 09:31:11 2011 -0700
@@ -111,3 +111,5 @@
554adcfb615e63e62af530b1c10fcf7813a75b26 jdk7-b134
d8ced728159fbb2caa8b6adb477fd8efdbbdf179 jdk7-b135
aa13e7702cd9d8aca9aa38f1227f966990866944 jdk7-b136
+29296ea6529a418037ccce95903249665ef31c11 jdk7-b137
+60d3d55dcc9c31a30ced9caa6ef5c0dcd7db031d jdk7-b138
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/Makefile
--- a/make/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/crypto/provider/Makefile
--- a/make/com/sun/crypto/provider/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/crypto/provider/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/java/pack/Makefile
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/java/pack/prop/Makefile
--- a/make/com/sun/java/pack/prop/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/java/pack/prop/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/jndi/cosnaming/Makefile
--- a/make/com/sun/jndi/cosnaming/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/jndi/cosnaming/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/jndi/dns/Makefile
--- a/make/com/sun/jndi/dns/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/jndi/dns/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/jndi/ldap/Makefile
--- a/make/com/sun/jndi/ldap/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/jndi/ldap/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/jndi/rmi/registry/Makefile
--- a/make/com/sun/jndi/rmi/registry/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/jndi/rmi/registry/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/nio/sctp/Makefile
--- a/make/com/sun/nio/sctp/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/nio/sctp/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/org/apache/xml/Makefile
--- a/make/com/sun/org/apache/xml/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/org/apache/xml/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/rowset/Makefile
--- a/make/com/sun/rowset/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/rowset/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/script/Makefile
--- a/make/com/sun/script/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/script/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/security/auth/module/Makefile
--- a/make/com/sun/security/auth/module/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/security/auth/module/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/servicetag/Makefile
--- a/make/com/sun/servicetag/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/servicetag/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,4 +1,4 @@
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/com/sun/tools/attach/Makefile
--- a/make/com/sun/tools/attach/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/com/sun/tools/attach/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Defs-solaris.gmk
--- a/make/common/Defs-solaris.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/Defs-solaris.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Defs-windows.gmk
--- a/make/common/Defs-windows.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/Defs-windows.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Demo.gmk
--- a/make/common/Demo.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/Demo.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Library.gmk
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Program.gmk
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Release.gmk
--- a/make/common/Release.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/Release.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -885,12 +885,18 @@
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db)
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)
$(MKDIR) -p $(JDK_IMAGE_DIR)/db
for d in $(DB_ZIP_LIST); do \
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \
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
# Standard jdk image
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Sanity.gmk
--- a/make/common/Sanity.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/Sanity.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/Subdirs.gmk
--- a/make/common/Subdirs.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/Subdirs.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,4 +1,4 @@
-# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Compiler-msvc.gmk
--- a/make/common/shared/Compiler-msvc.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Compiler-msvc.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Defs-control.gmk
--- a/make/common/shared/Defs-control.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Defs-control.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Defs-javadoc.gmk
--- a/make/common/shared/Defs-javadoc.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Defs-javadoc.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Defs-linux.gmk
--- a/make/common/shared/Defs-linux.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Defs-linux.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -187,6 +187,12 @@
# Special define for checking the binaries
+# Debug builds should downgrade warnings to just info
+MAPFILE_WARNING-DBG=INFO
+MAPFILE_WARNING-OPT=WARNING
+MAPFILE_WARNING-=WARNING
+MAPFILE_WARNING=$(MAPFILE_WARNING-$(VARIANT))
+
# Macro to check it's input file for banned dependencies and verify the
# binary built properly. Relies on process exit code.
ifndef CROSS_COMPILE_ARCH
@@ -194,7 +200,7 @@
( \
$(ECHO) "Checking for mapfile use in: $1" && \
if [ "`$(NM) -D -g --defined-only $1 | $(EGREP) 'SUNWprivate'`" = "" ] ; then \
- $(ECHO) "WARNING: File was not built with a mapfile: $1"; \
+ $(ECHO) "$(MAPFILE_WARNING): File was not built with a mapfile: $1"; \
fi && \
$(ECHO) "Library loads for: $1" && \
$(LDD) $1 && \
@@ -208,4 +214,5 @@
$(ECHO) "Skipping binary file verification for cross-compile build" \
)
endef
-endif
\ No newline at end of file
+endif
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Defs-solaris.gmk
--- a/make/common/shared/Defs-solaris.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Defs-solaris.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -188,14 +188,37 @@
# Special define for checking the binaries
+# Debug builds should downgrade warnings to just info
+MAPFILE_WARNING-DBG=INFO
+MAPFILE_WARNING-OPT=WARNING
+MAPFILE_WARNING-=WARNING
+MAPFILE_WARNING=$(MAPFILE_WARNING-$(VARIANT))
+
+# Some libraries do not have mapfiles for multiple reasons.
+# These libraries for sparc and sparcv9 are exceptions to the mapfile rule:
+# libjdgaSUNWafb.so
+# libjdgaSUNWcg6.so
+# libjdgaSUNWffb.so
+# libjdgaSUNWm64.so
+# libxinerama.so
+# The library libJdbcOdbc.so has also been given an exception.
+# The JNI/JVMTI demo libraries are also missing mapfiles, no exceptions yet.
+ifeq ($(ARCH_FAMILY),sparc)
+ MAPFILE_EXCEPTIONS = \
+ (libJdbcOdbc|libjdgaSUNWafb|libjdgaSUNWcg6|libjdgaSUNWffb|libjdgaSUNWm64|libxinerama)
+else
+ MAPFILE_EXCEPTIONS = (libJdbcOdbc)
+endif
+
# Macro to check it's input file for banned dependencies and verify the
# binary built properly. Relies on process exit code.
ifndef CROSS_COMPILE_ARCH
define binary_file_verification # binary_file
( \
$(ECHO) "Checking for mapfile use in: $1" && \
- if [ "`$(NM) -g -D $1 | $(EGREP) -v 'UNDEF' | $(EGREP) 'SUNWprivate'`" = "" ] ; then \
- $(ECHO) "WARNING: File was not built with a mapfile: $1"; \
+ if [ "`$(ECHO) $(basename $(notdir $1)) | $(EGREP) '$(MAPFILE_EXCEPTIONS)'`" = "" \
+ -a "`$(NM) -g -D $1 | $(EGREP) -v 'UNDEF' | $(EGREP) 'SUNWprivate'`" = "" ] ; then \
+ $(ECHO) "$(MAPFILE_WARNING): File was not built with a mapfile: $1"; \
fi && \
$(ECHO) "Library loads for: $1" && \
$(LDD) $1 && \
@@ -209,4 +232,5 @@
$(ECHO) "Skipping binary file verification for cross-compile build" \
)
endef
-endif
\ No newline at end of file
+endif
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Defs-windows.gmk
--- a/make/common/shared/Defs-windows.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Defs-windows.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/common/shared/Defs.gmk
--- a/make/common/shared/Defs.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/common/shared/Defs.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/docs/Makefile
--- a/make/docs/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/docs/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,4 +1,4 @@
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
@@ -40,7 +40,7 @@
COPYRIGHT_URL = $(COPYRIGHT_URL-$(JDK_MINOR_VERSION))
# Url to bug filing site
-BUG_SUBMIT_URL = http://bugs.sun.com/services/bugreport/index.jsp
+BUG_SUBMIT_URL = http://bugreport.sun.com/bugreport/
# Common line for how to submit a bug or rfe
BUG_SUBMIT_LINE = Submit a bug or feature
@@ -53,7 +53,7 @@
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
# 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
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
@@ -293,8 +293,8 @@
Java$(TRADEMARK) Platform Standard Ed. $(JDK_MINOR_VERSION)
# Java language specification cite
-TAG_JLS3 = jls3:a:See \
-The Java Language Specification, Third Edition:
+TAG_JLS = jls:a:See \
+The Java™ Language Specification:
# Overview file for core apis
COREAPI_OVERVIEW = $(SHARE_SRC)/classes/overview-core.html
@@ -329,7 +329,7 @@
$(call OptionPair,-tag,specdefault:X) ; \
$(call OptionPair,-tag,Note:X) ; \
$(call OptionPair,-tag,ToDo:X) ; \
- $(call OptionPair,-tag,$(TAG_JLS3)) ; \
+ $(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionOnly,-splitIndex) ; \
$(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
$(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
@@ -1081,6 +1081,7 @@
$(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
$(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
$(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
+ $(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
$(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
$(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/docs/NON_CORE_PKGS.gmk
--- a/make/docs/NON_CORE_PKGS.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/docs/NON_CORE_PKGS.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2002, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/awt/Makefile
--- a/make/java/awt/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/awt/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/fdlibm/Makefile
--- a/make/java/fdlibm/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/fdlibm/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/java/FILES_java.gmk
--- a/make/java/java/FILES_java.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/java/FILES_java.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/java/Makefile
--- a/make/java/java/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/java/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/java_crw_demo/Makefile
--- a/make/java/java_crw_demo/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/java_crw_demo/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/java_hprof_demo/Makefile
--- a/make/java/java_hprof_demo/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/java_hprof_demo/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/jli/Makefile
--- a/make/java/jli/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/jli/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/logging/Makefile
--- a/make/java/logging/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/logging/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/main/java/Makefile
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/main/javaw/Makefile
--- a/make/java/main/javaw/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/main/javaw/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/management/Makefile
--- a/make/java/management/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/management/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/net/Makefile
--- a/make/java/net/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/net/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/nio/FILES_java.gmk
--- a/make/java/nio/FILES_java.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/nio/FILES_java.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/nio/mapfile-linux
--- a/make/java/nio/mapfile-linux Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/nio/mapfile-linux Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/nio/mapfile-solaris
--- a/make/java/nio/mapfile-solaris Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/nio/mapfile-solaris Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/npt/Makefile
--- a/make/java/npt/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/npt/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/redist/Makefile
--- a/make/java/redist/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/redist/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/redist/fonts/Makefile
--- a/make/java/redist/fonts/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/redist/fonts/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/redist/sajdi/Makefile
--- a/make/java/redist/sajdi/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/redist/sajdi/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/sql/Makefile
--- a/make/java/sql/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/sql/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/text/base/FILES_java.gmk
--- a/make/java/text/base/FILES_java.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/text/base/FILES_java.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/text/base/Makefile
--- a/make/java/text/base/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/text/base/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/util/FILES_properties.gmk
--- a/make/java/util/FILES_properties.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/util/FILES_properties.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
@@ -55,6 +55,7 @@
sun/util/resources/LocaleNames_mt.properties \
sun/util/resources/LocaleNames_nl.properties \
sun/util/resources/LocaleNames_no.properties \
+ sun/util/resources/LocaleNames_no_NO_NY.properties \
sun/util/resources/LocaleNames_pl.properties \
sun/util/resources/LocaleNames_pt.properties \
sun/util/resources/LocaleNames_pt_BR.properties \
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/verify/Makefile
--- a/make/java/verify/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/java/verify/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/java/zip/Makefile
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/crypto/Defs-jce.gmk
--- a/make/javax/crypto/Defs-jce.gmk Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/crypto/Defs-jce.gmk Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2007, 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
@@ -58,7 +58,7 @@
SIGNING_KEY_DIR = /security/ws/JCE-signing/src
SIGNING_KEYSTORE = $(SIGNING_KEY_DIR)/KeyStore.jks
SIGNING_PASSPHRASE = $(SIGNING_KEY_DIR)/passphrase.txt
-SIGNING_ALIAS = jce_rsa
+SIGNING_ALIAS = oracle_jce_rsa
#
# Defines for signing the various jar files.
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/crypto/Makefile
--- a/make/javax/crypto/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/crypto/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/imageio/Makefile
--- a/make/javax/imageio/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/imageio/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/print/Makefile
--- a/make/javax/print/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/print/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/sound/Makefile
--- a/make/javax/sound/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/sound/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/sound/jsoundalsa/Makefile
--- a/make/javax/sound/jsoundalsa/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/sound/jsoundalsa/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2002, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/sound/jsoundds/Makefile
--- a/make/javax/sound/jsoundds/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/sound/jsoundds/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/sql/Makefile
--- a/make/javax/sql/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/sql/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/swing/Makefile
--- a/make/javax/swing/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/swing/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/javax/swing/plaf/Makefile
--- a/make/javax/swing/plaf/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/javax/swing/plaf/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jdk_generic_profile.sh
--- a/make/jdk_generic_profile.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jdk_generic_profile.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jpda/back/Makefile
--- a/make/jpda/back/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jpda/back/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jpda/jdwp/jdwp.spec
--- a/make/jpda/jdwp/jdwp.spec Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jpda/jdwp/jdwp.spec Wed Apr 20 09:31:11 2011 -0700
@@ -519,9 +519,8 @@
"Both the JNI signature and the generic signature are "
"returned for each class. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
)
@@ -623,8 +622,8 @@
(referenceType refType "The reference type ID.")
)
(Reply
- (int modBits "Modifier bits as defined in the "
- "VM Specification")
+ (int modBits "Modifier bits as defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification")
)
(ErrorSet
(Error INVALID_CLASS "refType is not the ID of a reference "
@@ -651,8 +650,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"field declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000 bit identifies "
"the field as synthetic, if the synthetic attribute "
"capability is available.")
@@ -686,8 +685,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"method declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000 bit identifies "
"the method as synthetic, if the synthetic attribute "
"capability is available.")
@@ -773,8 +772,8 @@
(Command Status=9
"Returns the current status of the reference type. The status "
"indicates the extent to which the reference type has been "
- "initialized, as described in the "
- "VM specification. "
+ "initialized, as described in section 2.1.6 of "
+ "The Java™ Virtual Machine Specification. "
"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 "
"status bits will be set. If an error occured during initialization then the "
@@ -852,9 +851,8 @@
"Returns the JNI signature of a reference type along with the "
"generic signature if there is one. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
"
(Out
@@ -882,9 +880,8 @@
"by the compiler. "
"Fields are returned in the order they occur in the class file. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
(referenceType refType "The reference type ID.")
@@ -900,8 +897,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"field declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000 bit identifies "
"the field as synthetic, if the synthetic attribute "
"capability is available.")
@@ -925,9 +922,8 @@
"if present, and any synthetic methods created by the compiler. "
"Methods are returned in the order they occur in the class file. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
(referenceType refType "The reference type ID.")
@@ -943,8 +939,8 @@
(int modBits "The modifier bit flags (also known as access flags) "
"which provide additional information on the "
"method declaration. Individual flag values are "
- "defined in the "
- "VM Specification."
+ "defined in Chapter 4 of "
+ "The Java™ Virtual Machine Specification. "
"In addition, The 0xf0000000 bit identifies "
"the method as synthetic, if the synthetic attribute "
"capability is available.")
@@ -1006,8 +1002,8 @@
)
(Command ConstantPool=18
"Return the raw bytes of the constant pool in the format of the "
- "constant_pool item of the Class File Format in the "
- "Java Virtual Machine Specification. "
+ "constant_pool item of the Class File Format in "
+ "The Java™ Virtual Machine Specification. "
"
Since JDWP version 1.6. Requires canGetConstantPool capability - see "
"CapabilitiesNew.""
(Out
@@ -1016,7 +1012,8 @@
(Reply
(int count "Total number of constant pool entries plus one. This "
"corresponds to the constant_pool_count item of the "
- "Class File Format in the Java Virtual Machine Specification. ")
+ "Class File Format in "
+ "The Java™ Virtual Machine Specification. ")
(Repeat bytes
(byte cpbytes "Raw bytes of constant pool")
)
@@ -1324,7 +1321,8 @@
)
)
(Command Bytecodes=3
- "Retrieve the method's bytecodes as defined in the JVM Specification."
+ "Retrieve the method's bytecodes as defined in "
+ "The Java™ Virtual Machine Specification. "
"Requires canGetBytecodes capability - see "
"CapabilitiesNew."
(Out
@@ -1379,9 +1377,8 @@
"instance methods, the \"this\" reference is included in the "
"table. Also, synthetic variables may be present. "
"Generic signatures are described in the signature attribute "
- "section in the "
- "
- "Java Virtual Machine Specification, 3rd Edition. "
+ "section in "
+ "The Java™ Virtual Machine Specification. "
"Since JDWP version 1.5."
(Out
(referenceType refType "The class.")
@@ -1970,8 +1967,9 @@
"
"
"The method which will return early is referred to as the "
"called method. The called method is the current method (as "
- "defined by the Frames section in the Java Virtual Machine "
- "Specification) for the specified thread at the time this command "
+ "defined by the Frames section in "
+ "The Java™ Virtual Machine Specification) "
+ "for the specified thread at the time this command "
"is received. "
"
"
"The specified thread must be suspended. "
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jpda/transport/Makefile
--- a/make/jpda/transport/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jpda/transport/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jpda/transport/shmem/Makefile
--- a/make/jpda/transport/shmem/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jpda/transport/shmem/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jpda/transport/socket/Makefile
--- a/make/jpda/transport/socket/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jpda/transport/socket/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/jpda/tty/Makefile
--- a/make/jpda/tty/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/jpda/tty/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/launchers/Makefile
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/Makefile
--- a/make/mkdemo/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/Font2DTest/Makefile
--- a/make/mkdemo/jfc/Font2DTest/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jfc/Font2DTest/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
@@ -33,7 +33,7 @@
include $(BUILDDIR)/common/Defs.gmk
DEMO_ROOT = $(SHARE_SRC)/demo/jfc/$(DEMONAME)
-DEMO_TOPFILES = ./README.txt
+DEMO_TOPFILES = ./README.txt ./$(DEMONAME).html
DEMO_MAINCLASS = $(DEMONAME)
DEMO_DESTDIR = $(DEMODIR)/jfc/$(DEMONAME)
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/Java2D/Makefile
--- a/make/mkdemo/jfc/Java2D/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jfc/Java2D/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 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
@@ -33,7 +33,7 @@
include $(BUILDDIR)/common/Defs.gmk
DEMO_ROOT = $(CLOSED_SRC)/share/demo/jfc/Java2D
-DEMO_TOPFILES = ./Java2Demo.html ./README.txt
+DEMO_TOPFILES = ./README.txt ./$(DEMONAME).html
DEMO_MAINCLASS = java2d.Java2Demo
DEMO_DESTDIR = $(DEMODIR)/jfc/Java2D
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/Makefile
--- a/make/mkdemo/jfc/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jfc/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
@@ -39,7 +39,8 @@
Notepad \
SampleTree \
SwingApplet \
- TableExample
+ TableExample \
+ TransparentRuler
# Some demos aren't currently included in OpenJDK
ifndef OPENJDK
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/SwingApplet/Makefile
--- a/make/mkdemo/jfc/SwingApplet/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jfc/SwingApplet/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1997, 2002, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1997, 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
@@ -33,7 +33,7 @@
include $(BUILDDIR)/common/Defs.gmk
DEMO_ROOT = $(SHARE_SRC)/demo/jfc/$(DEMONAME)
-DEMO_TOPFILES = ./README.txt
+DEMO_TOPFILES = ./README.txt ./$(DEMONAME).html
DEMO_MAINCLASS = $(DEMONAME)
DEMO_DESTDIR = $(DEMODIR)/jfc/$(DEMONAME)
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/SwingSet2/Makefile
--- a/make/mkdemo/jfc/SwingSet2/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jfc/SwingSet2/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 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
@@ -33,7 +33,7 @@
include $(BUILDDIR)/common/Defs.gmk
DEMO_ROOT = $(CLOSED_SRC)/share/demo/jfc/$(DEMONAME)
-DEMO_TOPFILES = ./README.txt
+DEMO_TOPFILES = ./README.txt ./$(DEMONAME).html
DEMO_MAINCLASS = $(DEMONAME)
DEMO_MANIFEST_ATTR = SplashScreen-Image: resources/images/splash.png
DEMO_DESTDIR = $(DEMODIR)/jfc/$(DEMONAME)
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/SwingSet3/Makefile
--- a/make/mkdemo/jfc/SwingSet3/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jfc/SwingSet3/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jfc/TransparentRuler/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/make/mkdemo/jfc/TransparentRuler/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,44 @@
+#
+# 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 to build the TransparentRuler demo.
+#
+
+BUILDDIR = ../../..
+PRODUCT = demo/jfc
+DEMONAME = TransparentRuler
+include $(BUILDDIR)/common/Defs.gmk
+
+DEMO_ROOT = $(SHARE_SRC)/demo/jfc/$(DEMONAME)
+DEMO_TOPFILES = ./README.txt
+DEMO_MAINCLASS = transparentruler.Ruler
+DEMO_DESTDIR = $(DEMODIR)/jfc/$(DEMONAME)
+
+
+#
+# Demo jar building rules.
+#
+include $(BUILDDIR)/common/Demo.gmk
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jpda/Makefile
--- a/make/mkdemo/jpda/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jpda/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/jvmti/Makefile
--- a/make/mkdemo/jvmti/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/jvmti/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mkdemo/management/Makefile
--- a/make/mkdemo/management/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mkdemo/management/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/dtrace/Makefile
--- a/make/mksample/dtrace/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/dtrace/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/jmx/jmx-scandir/Makefile
--- a/make/mksample/jmx/jmx-scandir/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/jmx/jmx-scandir/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/nbproject/Makefile
--- a/make/mksample/nbproject/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/nbproject/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/nio/file/Makefile
--- a/make/mksample/nio/file/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/nio/file/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/nio/multicast/Makefile
--- a/make/mksample/nio/multicast/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/nio/multicast/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/nio/server/Makefile
--- a/make/mksample/nio/server/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/nio/server/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# 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.
#
# This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/scripting/scriptpad/Makefile
--- a/make/mksample/scripting/scriptpad/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/scripting/scriptpad/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/webservices/EbayClient/Makefile
--- a/make/mksample/webservices/EbayClient/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/webservices/EbayClient/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/mksample/webservices/EbayServer/Makefile
--- a/make/mksample/webservices/EbayServer/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/make/mksample/webservices/EbayServer/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 make/netbeans/common/java-data-native.ent
--- a/make/netbeans/common/java-data-native.ent Tue Apr 19 10:26:18 2011 -0700
+++ b/make/netbeans/common/java-data-native.ent Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set property 'main.class' (e.g. in build.properties)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nbproject/jfc/TransparentRuler/nbproject/file-targets.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/share/demo/nbproject/jfc/TransparentRuler/nbproject/file-targets.xml Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+ Must set property 'includes'
+
+
+
+
+
+
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nbproject/jfc/TransparentRuler/nbproject/jdk.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/share/demo/nbproject/jfc/TransparentRuler/nbproject/jdk.xml Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nbproject/jfc/TransparentRuler/nbproject/netbeans-targets.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/share/demo/nbproject/jfc/TransparentRuler/nbproject/netbeans-targets.xml Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nbproject/jfc/TransparentRuler/nbproject/project.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/share/demo/nbproject/jfc/TransparentRuler/nbproject/project.xml Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,173 @@
+
+
+
+
+
+ org.netbeans.modules.ant.freeform
+
+
+ TransparentRuler
+
+ user.build.properties
+ build.properties
+ ${nbjdk.home}/jre/lib/rt.jar
+
+
+
+
+ ${main.dir}
+
+
+
+ java
+ ${src.dir}
+
+
+ ${build.dir}
+
+
+
+
+ jar
+
+
+ clean
+
+
+ clean
+ jar
+
+
+ run
+
+
+
+ show-javadoc
+
+
+
+ debug
+
+
+
+ compile-selected
+
+ includes
+ ${src.dir}
+ \.java$
+ relative-path
+
+ ,
+
+
+
+
+ run
+
+ main.class
+ ${src.dir}
+ \.java$
+ java-name
+
+
+
+
+
+
+
+ debug
+
+ main.class
+ ${src.dir}
+ \.java$
+ java-name
+
+
+
+
+
+
+
+ debug-fix
+
+ class
+ ${src.dir}
+ \.java$
+ relative-path-noext
+
+
+
+
+
+
+
+ jar
+ ${jar}
+ jar
+ clean
+
+
+
+
+
+ ${src.dir}
+
+
+ ${main.dir}/README.txt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${src.dir}
+ ${cp}
+ ${run.cp}
+ ${nbjdk.bootclasspath}
+ ${classes.dir}
+ ${jar}
+ ${javadoc.dir}
+ 1.5
+
+
+
+
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nbproject/project.xml
--- a/src/share/demo/nbproject/project.xml Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/demo/nbproject/project.xml Wed Apr 20 09:31:11 2011 -0700
@@ -50,6 +50,7 @@
nbproject/jfc/Stylepadnbproject/jfc/SwingAppletnbproject/jfc/TableExample
+ nbproject/jfc/TransparentRulernbproject/scripting/jconsole-pluginnbproject/management/FullThreadDumpnbproject/management/JTop
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -12,7 +12,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * - Neither the name of Sun Microsystems nor the names of its
+ * - Neither the name of Oracle nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/instrument/JPLISAgent.c
--- a/src/share/instrument/JPLISAgent.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/instrument/JPLISAgent.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/javavm/export/jvmti.h
--- a/src/share/javavm/export/jvmti.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/javavm/export/jvmti.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/com/sun/java/util/jar/pack/unpack.cpp
--- a/src/share/native/com/sun/java/util/jar/pack/unpack.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/com/sun/java/util/jar/pack/unpack.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/common/check_code.c
--- a/src/share/native/common/check_code.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/common/check_code.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/java/io/io_util.c
--- a/src/share/native/java/io/io_util.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/java/io/io_util.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/java/lang/System.c
--- a/src/share/native/java/lang/System.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/java/lang/System.c Wed Apr 20 09:31:11 2011 -0700
@@ -99,7 +99,7 @@
#ifndef VENDOR /* Third party may overwrite this. */
#define VENDOR "Oracle Corporation"
#define VENDOR_URL "http://java.oracle.com/"
-#define VENDOR_URL_BUG "http://java.sun.com/cgi-bin/bugreport.cgi"
+#define VENDOR_URL_BUG "http://bugreport.sun.com/bugreport/"
#endif
#define JAVA_MAX_SUPPORTED_VERSION 51
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/image/awt_parseImage.c
--- a/src/share/native/sun/awt/image/awt_parseImage.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/image/awt_parseImage.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2006, 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.
*
* This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/image/jpeg/imageioJPEG.c
--- a/src/share/native/sun/awt/image/jpeg/imageioJPEG.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/image/jpeg/imageioJPEG.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/image/jpeg/jpegdecoder.c
--- a/src/share/native/sun/awt/image/jpeg/jpegdecoder.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/image/jpeg/jpegdecoder.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageAffine.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageAffine.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageAffine.c Wed Apr 20 09:31:11 2011 -0700
@@ -210,6 +210,8 @@
t_ind = 4;
else if (type == MLIB_DOUBLE)
t_ind = 5;
+ else
+ return MLIB_FAILURE; /* unknown image type */
if (colormap != NULL && filter != MLIB_NEAREST) {
if (t_ind != 0 && t_ind != 1)
@@ -318,6 +320,10 @@
}
break;
+
+ default:
+ /* nothing to do for other edge types. */
+ break;
}
if (param_e->buff_malloc != NULL)
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageAffineEdge.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageAffineEdge.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageAffineEdge.c Wed Apr 20 09:31:11 2011 -0700
@@ -616,6 +616,9 @@
MLIB_PROCESS_EDGES_ZERO(mlib_d64);
break;
}
+ default:
+ /* Image type MLIB_BIT is not used in java, so we can ignore it. */
+ break;
}
}
@@ -643,6 +646,9 @@
case MLIB_DOUBLE:
MLIB_PROCESS_EDGES(MLIB_EDGE_NEAREST_LINE, mlib_d64);
break;
+ default:
+ /* Image type MLIB_BIT is not used in java, so we can ignore it. */
+ break;
}
}
@@ -673,8 +679,11 @@
if (ltype == MLIB_BYTE) {
buff = mlib_malloc(channels * max_xsize);
}
- else {
+ else if (ltype == MLIB_SHORT) {
buff = mlib_malloc(channels * max_xsize * sizeof(mlib_s16));
+ } else {
+ /* Unsupported type of lookup table. Report a failure */
+ return MLIB_FAILURE;
}
if (buff == NULL)
@@ -691,6 +700,9 @@
srcStride >>= 1;
MLIB_PROCESS_EDGES(MLIB_EDGE_INDEX_u8i, mlib_s16);
break;
+ default:
+ /* Incompatible image type. Ignore it for now. */
+ break;
}
break;
@@ -705,9 +717,18 @@
srcStride >>= 1;
MLIB_PROCESS_EDGES(MLIB_EDGE_INDEX_s16i, mlib_s16);
break;
+ default:
+ /* Incompatible image type. Ignore it for now. */
+ break;
}
break;
+ default:
+ /* Unsupported type of lookup table.
+ * Can not be here due to check on line 685,
+ * so just ignore it.
+ */
+ break;
}
mlib_free(buff);
@@ -744,6 +765,10 @@
srcStride >>= 3;
MLIB_PROCESS_EDGES(MLIB_EDGE_BL, mlib_d64);
break;
+
+ default:
+ /* Image type MLIB_BIT is not supported, ignore it. */
+ break;
}
return MLIB_SUCCESS;
@@ -803,8 +828,11 @@
if (ltype == MLIB_BYTE) {
buff = mlib_malloc(channels * max_xsize);
}
- else {
+ else if (ltype == MLIB_SHORT) {
buff = mlib_malloc(channels * max_xsize * sizeof(mlib_s16));
+ } else {
+ /* Unsupported type of lookup table. */
+ return MLIB_FAILURE;
}
if (buff == NULL)
@@ -821,6 +849,9 @@
srcStride >>= 1;
MLIB_PROCESS_EDGES(MLIB_EDGE_INDEX_u8i, mlib_s16);
break;
+ default:
+ /* Ignore incomatible image type. */
+ break;
}
break;
@@ -835,9 +866,19 @@
srcStride >>= 1;
MLIB_PROCESS_EDGES(MLIB_EDGE_INDEX_s16i, mlib_s16);
break;
+ default:
+ /* Ignore incomatible image type. */
+ break;
}
break;
+
+ default:
+ /* Unsupported type of lookup table.
+ * Can not be here due to check on line 836,
+ * so just ignore it.
+ */
+ break;
}
mlib_free(buff);
@@ -895,6 +936,10 @@
}
break;
+
+ default:
+ /* Ignore unsupported image type MLIB_BIT */
+ break;
}
return MLIB_SUCCESS;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageColorTrue2Index.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageColorTrue2Index.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageColorTrue2Index.c Wed Apr 20 09:31:11 2011 -0700
@@ -2623,9 +2623,10 @@
return MLIB_FAILURE;
}
}
+ default:
+ /* Unsupported type of destination image */
+ return MLIB_FAILURE;
}
-
- break;
}
case MLIB_SHORT:
@@ -2678,18 +2679,15 @@
return MLIB_FAILURE;
}
}
+ default:
+ /* Unsupported type of destination image */
+ return MLIB_FAILURE;
}
-
- break;
}
default:
return MLIB_FAILURE;
}
-
- /* we need to return something to make Microsoft VC happy.
- Return FAILURE because on success we likely to return earlier. */
- return MLIB_FAILURE;
}
/***************************************************************/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConvMxN.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConvMxN.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConvMxN.c Wed Apr 20 09:31:11 2011 -0700
@@ -211,6 +211,13 @@
case MLIB_DOUBLE:
ret = mlib_convMxNnw_d64(dst_i, src_i, kernel, m, n, dm, dn, cmask);
break;
+
+ default:
+ /* For some reasons, there is no convolution routine for type MLIB_BIT.
+ * For now, we silently ignore it (because this image type is not used by java),
+ * but probably we have to report an error.
+ */
+ break;
}
}
@@ -221,6 +228,11 @@
case MLIB_EDGE_DST_COPY_SRC:
mlib_ImageConvCopyEdge(dst_e, src_e, dx_l, dx_r, dy_t, dy_b, cmask);
break;
+ default:
+ /* Other edge conditions do not need additional handling.
+ * Note also that they are not exposed in public Java API
+ */
+ break;
}
}
else { /* MLIB_EDGE_SRC_EXTEND */
@@ -279,6 +291,12 @@
case MLIB_DOUBLE:
mlib_convMxNext_d64(dst_e, src_e, kernel, m, n, dx_l, dx_r, dy_t, dy_b, cmask);
break;
+ default:
+ /* For some reasons, there is no convolution routine for type MLIB_BIT.
+ * For now, we silently ignore it (because this image type is not used by java),
+ * but probably we have to report an error.
+ */
+ break;
}
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_16ext.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_16ext.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_16ext.c Wed Apr 20 09:31:11 2011 -0700
@@ -1869,8 +1869,8 @@
/***************************************************************/
mlib_status CONV_FUNC_MxN
{
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
FTYPE buff[BUFF_SIZE], *buffs_arr[2*(MAX_N + 1)];
FTYPE **buffs = buffs_arr, *buffd;
FTYPE akernel[256], *k = akernel, fscale = DSCALE;
@@ -2332,8 +2332,8 @@
mlib_status CONV_FUNC_MxN_I
{
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
mlib_s32 buff[BUFF_SIZE], *buffs_arr[2*(MAX_N + 1)];
mlib_s32 *pbuff = buff;
mlib_s32 **buffs = buffs_arr, *buffd;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_16nw.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_16nw.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_16nw.c Wed Apr 20 09:31:11 2011 -0700
@@ -148,8 +148,8 @@
/***************************************************************/
#define DEF_VARS(type) \
- type *adr_src, *sl, *sp; \
- type *adr_dst, *dl, *dp; \
+ type *adr_src, *sl, *sp = NULL; \
+ type *adr_dst, *dl, *dp = NULL; \
FTYPE *pbuff = buff; \
mlib_s32 wid, hgt, sll, dll; \
mlib_s32 nchannel, chan1; \
@@ -2060,8 +2060,8 @@
mlib_s32 d0, d1, shift1, shift2;
mlib_s32 k0, k1, k2, k3, k4, k5, k6;
mlib_s32 p0, p1, p2, p3, p4, p5, p6, p7;
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
mlib_s32 wid, hgt, sll, dll;
mlib_s32 nchannel, chan1;
mlib_s32 i, j, c;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_32nw.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_32nw.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_32nw.c Wed Apr 20 09:31:11 2011 -0700
@@ -78,7 +78,7 @@
/***************************************************************/
#define DEF_VARS_MxN(type) \
GET_SRC_DST_PARAMETERS(type); \
- type *sl, *sp, *dl, *dp; \
+ type *sl, *sp = NULL, *dl, *dp = NULL; \
mlib_d64 *pbuff = buff; \
mlib_s32 i, j, c
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_8ext.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_8ext.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_8ext.c Wed Apr 20 09:31:11 2011 -0700
@@ -1869,8 +1869,8 @@
/***************************************************************/
mlib_status CONV_FUNC_MxN
{
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
FTYPE buff[BUFF_SIZE], *buffs_arr[2*(MAX_N + 1)];
FTYPE **buffs = buffs_arr, *buffd;
FTYPE akernel[256], *k = akernel, fscale = DSCALE;
@@ -2332,8 +2332,8 @@
mlib_status CONV_FUNC_MxN_I
{
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
mlib_s32 buff[BUFF_SIZE], *buffs_arr[2*(MAX_N + 1)];
mlib_s32 *pbuff = buff;
mlib_s32 **buffs = buffs_arr, *buffd;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_8nw.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_8nw.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_8nw.c Wed Apr 20 09:31:11 2011 -0700
@@ -149,8 +149,8 @@
/***************************************************************/
#define DEF_VARS(type) \
- type *adr_src, *sl, *sp; \
- type *adr_dst, *dl, *dp; \
+ type *adr_src, *sl, *sp = NULL; \
+ type *adr_dst, *dl, *dp = NULL; \
FTYPE *pbuff = buff; \
mlib_s32 wid, hgt, sll, dll; \
mlib_s32 nchannel, chan1; \
@@ -2061,8 +2061,8 @@
mlib_s32 d0, d1, shift1, shift2;
mlib_s32 k0, k1, k2, k3, k4, k5, k6;
mlib_s32 p0, p1, p2, p3, p4, p5, p6, p7;
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
mlib_s32 wid, hgt, sll, dll;
mlib_s32 nchannel, chan1;
mlib_s32 i, j, c;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_D64nw.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_D64nw.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_D64nw.c Wed Apr 20 09:31:11 2011 -0700
@@ -71,8 +71,8 @@
#define DEF_VARS(type) \
GET_SRC_DST_PARAMETERS(type); \
type *sl; \
- type *dl, *dp; \
- mlib_s32 i, j, c
+ type *dl, *dp = NULL; \
+ mlib_s32 i = 0, j, c
/***************************************************************/
#undef KSIZE
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_F32nw.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_F32nw.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_F32nw.c Wed Apr 20 09:31:11 2011 -0700
@@ -71,7 +71,7 @@
#define DEF_VARS(type) \
GET_SRC_DST_PARAMETERS(type); \
type *sl; \
- type *dl, *dp; \
+ type *dl, *dp = NULL; \
mlib_s32 i, j, c
/***************************************************************/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_u16ext.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_u16ext.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_u16ext.c Wed Apr 20 09:31:11 2011 -0700
@@ -1869,8 +1869,8 @@
/***************************************************************/
mlib_status CONV_FUNC_MxN
{
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
FTYPE buff[BUFF_SIZE], *buffs_arr[2*(MAX_N + 1)];
FTYPE **buffs = buffs_arr, *buffd;
FTYPE akernel[256], *k = akernel, fscale = DSCALE;
@@ -2332,8 +2332,8 @@
mlib_status CONV_FUNC_MxN_I
{
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
mlib_s32 buff[BUFF_SIZE], *buffs_arr[2*(MAX_N + 1)];
mlib_s32 *pbuff = buff;
mlib_s32 **buffs = buffs_arr, *buffd;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageConv_u16nw.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageConv_u16nw.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageConv_u16nw.c Wed Apr 20 09:31:11 2011 -0700
@@ -148,8 +148,8 @@
/***************************************************************/
#define DEF_VARS(type) \
- type *adr_src, *sl, *sp; \
- type *adr_dst, *dl, *dp; \
+ type *adr_src, *sl, *sp = NULL; \
+ type *adr_dst, *dl, *dp = NULL; \
FTYPE *pbuff = buff; \
mlib_s32 wid, hgt, sll, dll; \
mlib_s32 nchannel, chan1; \
@@ -2060,8 +2060,8 @@
mlib_s32 d0, d1, shift1, shift2;
mlib_s32 k0, k1, k2, k3, k4, k5, k6;
mlib_s32 p0, p1, p2, p3, p4, p5, p6, p7;
- DTYPE *adr_src, *sl, *sp;
- DTYPE *adr_dst, *dl, *dp;
+ DTYPE *adr_src, *sl, *sp = NULL;
+ DTYPE *adr_dst, *dl, *dp = NULL;
mlib_s32 wid, hgt, sll, dll;
mlib_s32 nchannel, chan1;
mlib_s32 i, j, c;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageCopy_Bit.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageCopy_Bit.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageCopy_Bit.c Wed Apr 20 09:31:11 2011 -0700
@@ -204,9 +204,9 @@
mlib_u64 *dp; /* 8-byte aligned start points in dst */
mlib_u64 *sp; /* 8-byte aligned start point in src */
mlib_s32 j; /* offset of address in dst */
- mlib_u64 lmask0 = 0xFFFFFFFFFFFFFFFF;
+ mlib_u64 lmask0 = 0xFFFFFFFFFFFFFFFFULL;
mlib_u64 dmask;
- mlib_u64 lsrc, lsrc0, lsrc1, ldst;
+ mlib_u64 lsrc, lsrc0, lsrc1 = 0ULL, ldst;
mlib_s32 ls_offset, ld_offset, shift;
if (size <= 0) return;
@@ -427,9 +427,9 @@
mlib_u64 *dp; /* 8-byte aligned start points in dst */
mlib_u64 *sp; /* 8-byte aligned start point in src */
mlib_s32 j; /* offset of address in dst */
- mlib_u64 lmask0 = 0xFFFFFFFFFFFFFFFF;
+ mlib_u64 lmask0 = 0xFFFFFFFFFFFFFFFFULL;
mlib_u64 dmask;
- mlib_u64 lsrc, lsrc0, lsrc1, ldst;
+ mlib_u64 lsrc, lsrc0, lsrc1 = 0ULL, ldst;
mlib_s32 ls_offset, ld_offset, shift;
if (size <= 0) return;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/medialib/mlib_ImageCreate.c
--- a/src/share/native/sun/awt/medialib/mlib_ImageCreate.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/medialib/mlib_ImageCreate.c Wed Apr 20 09:31:11 2011 -0700
@@ -334,7 +334,7 @@
mlib_s32 width; /* for parent image */
mlib_s32 height; /* for parent image */
mlib_s32 stride;
- mlib_s32 bitoffset;
+ mlib_s32 bitoffset = 0;
void *data;
/* sanity check */
@@ -423,7 +423,7 @@
mlib_s32 channels = src -> channels;
mlib_s32 stride = src -> stride;
mlib_u8 *data = src -> data;
- mlib_s32 bitoffset;
+ mlib_s32 bitoffset = 0;
data += y * stride;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/font/FontInstanceAdapter.cpp
--- a/src/share/native/sun/font/FontInstanceAdapter.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/font/FontInstanceAdapter.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/java2d/cmm/lcms/LCMS.c
--- a/src/share/native/sun/java2d/cmm/lcms/LCMS.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/java2d/cmm/lcms/LCMS.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/java2d/loops/MaskFill.c
--- a/src/share/native/sun/java2d/loops/MaskFill.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/java2d/loops/MaskFill.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/java2d/loops/ParallelogramUtils.h
--- a/src/share/native/sun/java2d/loops/ParallelogramUtils.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/java2d/loops/ParallelogramUtils.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/java2d/loops/ProcessPath.c
--- a/src/share/native/sun/java2d/loops/ProcessPath.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/java2d/loops/ProcessPath.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/java2d/pipe/BufferedMaskBlit.c
--- a/src/share/native/sun/java2d/pipe/BufferedMaskBlit.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/java2d/pipe/BufferedMaskBlit.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/ECC_JNI.cpp
--- a/src/share/native/sun/security/ec/ECC_JNI.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/ECC_JNI.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec.c
--- a/src/share/native/sun/security/ec/impl/ec.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec.c Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec.h
--- a/src/share/native/sun/security/ec/impl/ec.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec2.h
--- a/src/share/native/sun/security/ec/impl/ec2.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec2.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec2_163.c
--- a/src/share/native/sun/security/ec/impl/ec2_163.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec2_163.c Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec2_193.c
--- a/src/share/native/sun/security/ec/impl/ec2_193.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec2_193.c Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec2_233.c
--- a/src/share/native/sun/security/ec/impl/ec2_233.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec2_233.c Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec2_aff.c
--- a/src/share/native/sun/security/ec/impl/ec2_aff.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec2_aff.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec2_mont.c
--- a/src/share/native/sun/security/ec/impl/ec2_mont.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec2_mont.c Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ec_naf.c
--- a/src/share/native/sun/security/ec/impl/ec_naf.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ec_naf.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecc_impl.h
--- a/src/share/native/sun/security/ec/impl/ecc_impl.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecc_impl.h Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecdecode.c
--- a/src/share/native/sun/security/ec/impl/ecdecode.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecdecode.c Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl-curve.h
--- a/src/share/native/sun/security/ec/impl/ecl-curve.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl-curve.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl-exp.h
--- a/src/share/native/sun/security/ec/impl/ecl-exp.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl-exp.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl-priv.h
--- a/src/share/native/sun/security/ec/impl/ecl-priv.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl-priv.h Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl.c
--- a/src/share/native/sun/security/ec/impl/ecl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl.h
--- a/src/share/native/sun/security/ec/impl/ecl.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl_curve.c
--- a/src/share/native/sun/security/ec/impl/ecl_curve.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl_curve.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl_gf.c
--- a/src/share/native/sun/security/ec/impl/ecl_gf.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl_gf.c Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecl_mult.c
--- a/src/share/native/sun/security/ec/impl/ecl_mult.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecl_mult.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp.h
--- a/src/share/native/sun/security/ec/impl/ecp.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_192.c
--- a/src/share/native/sun/security/ec/impl/ecp_192.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_192.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_224.c
--- a/src/share/native/sun/security/ec/impl/ecp_224.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_224.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_256.c
--- a/src/share/native/sun/security/ec/impl/ecp_256.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_256.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_384.c
--- a/src/share/native/sun/security/ec/impl/ecp_384.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_384.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_521.c
--- a/src/share/native/sun/security/ec/impl/ecp_521.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_521.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_aff.c
--- a/src/share/native/sun/security/ec/impl/ecp_aff.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_aff.c Wed Apr 20 09:31:11 2011 -0700
@@ -55,7 +55,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_jac.c
--- a/src/share/native/sun/security/ec/impl/ecp_jac.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_jac.c Wed Apr 20 09:31:11 2011 -0700
@@ -55,7 +55,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_jm.c
--- a/src/share/native/sun/security/ec/impl/ecp_jm.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_jm.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/ecp_mont.c
--- a/src/share/native/sun/security/ec/impl/ecp_mont.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/ecp_mont.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/logtab.h
--- a/src/share/native/sun/security/ec/impl/logtab.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/logtab.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mp_gf2m-priv.h
--- a/src/share/native/sun/security/ec/impl/mp_gf2m-priv.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mp_gf2m-priv.h Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mp_gf2m.c
--- a/src/share/native/sun/security/ec/impl/mp_gf2m.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mp_gf2m.c Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mp_gf2m.h
--- a/src/share/native/sun/security/ec/impl/mp_gf2m.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mp_gf2m.h Wed Apr 20 09:31:11 2011 -0700
@@ -51,7 +51,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mpi-config.h
--- a/src/share/native/sun/security/ec/impl/mpi-config.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mpi-config.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mpi-priv.h
--- a/src/share/native/sun/security/ec/impl/mpi-priv.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mpi-priv.h Wed Apr 20 09:31:11 2011 -0700
@@ -56,7 +56,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mpi.c
--- a/src/share/native/sun/security/ec/impl/mpi.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mpi.c Wed Apr 20 09:31:11 2011 -0700
@@ -54,7 +54,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mpi.h
--- a/src/share/native/sun/security/ec/impl/mpi.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mpi.h Wed Apr 20 09:31:11 2011 -0700
@@ -53,7 +53,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mplogic.c
--- a/src/share/native/sun/security/ec/impl/mplogic.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mplogic.c Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mplogic.h
--- a/src/share/native/sun/security/ec/impl/mplogic.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mplogic.h Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mpmontg.c
--- a/src/share/native/sun/security/ec/impl/mpmontg.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mpmontg.c Wed Apr 20 09:31:11 2011 -0700
@@ -52,7 +52,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/mpprime.h
--- a/src/share/native/sun/security/ec/impl/mpprime.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/mpprime.h Wed Apr 20 09:31:11 2011 -0700
@@ -53,7 +53,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/oid.c
--- a/src/share/native/sun/security/ec/impl/oid.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/oid.c Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/secitem.c
--- a/src/share/native/sun/security/ec/impl/secitem.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/secitem.c Wed Apr 20 09:31:11 2011 -0700
@@ -49,7 +49,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/native/sun/security/ec/impl/secoidt.h
--- a/src/share/native/sun/security/ec/impl/secoidt.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/native/sun/security/ec/impl/secoidt.h Wed Apr 20 09:31:11 2011 -0700
@@ -50,7 +50,7 @@
*
*********************************************************************** */
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/AclEdit.java
--- a/src/share/sample/nio/file/AclEdit.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/AclEdit.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/Chmod.java
--- a/src/share/sample/nio/file/Chmod.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/Chmod.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/Copy.java
--- a/src/share/sample/nio/file/Copy.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/Copy.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/DiskUsage.java
--- a/src/share/sample/nio/file/DiskUsage.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/DiskUsage.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/FileType.java
--- a/src/share/sample/nio/file/FileType.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/FileType.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/WatchDir.java
--- a/src/share/sample/nio/file/WatchDir.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/WatchDir.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/share/sample/nio/file/Xdd.java
--- a/src/share/sample/nio/file/Xdd.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/share/sample/nio/file/Xdd.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/java/lang/ProcessEnvironment.java
--- a/src/solaris/classes/java/lang/ProcessEnvironment.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/java/lang/ProcessEnvironment.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/java/util/prefs/FileSystemPreferences.java
--- a/src/solaris/classes/java/util/prefs/FileSystemPreferences.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/java/util/prefs/FileSystemPreferences.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/GtkFileDialogPeer.java
--- a/src/solaris/classes/sun/awt/X11/GtkFileDialogPeer.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/GtkFileDialogPeer.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XComponentPeer.java
--- a/src/solaris/classes/sun/awt/X11/XComponentPeer.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XComponentPeer.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XDesktopPeer.java
--- a/src/solaris/classes/sun/awt/X11/XDesktopPeer.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XDesktopPeer.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XGlobalCursorManager.java
--- a/src/solaris/classes/sun/awt/X11/XGlobalCursorManager.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XGlobalCursorManager.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XRobotPeer.java
--- a/src/solaris/classes/sun/awt/X11/XRobotPeer.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XRobotPeer.java Wed Apr 20 09:31:11 2011 -0700
@@ -48,7 +48,7 @@
}
public void dispose() {
- // does nothing
+ _dispose();
}
public void mouseMove(int x, int y) {
@@ -88,6 +88,7 @@
}
private static native synchronized void setup(int numberOfButtons, int[] buttonDownMasks);
+ private static native synchronized void _dispose();
private static native synchronized void mouseMoveImpl(X11GraphicsConfig xgc, int x, int y);
private static native synchronized void mousePressImpl(int buttons);
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XSelection.java
--- a/src/solaris/classes/sun/awt/X11/XSelection.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XSelection.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XTextAreaPeer.java
--- a/src/solaris/classes/sun/awt/X11/XTextAreaPeer.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XTextAreaPeer.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/X11/XToolkit.java
--- a/src/solaris/classes/sun/awt/X11/XToolkit.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/X11/XToolkit.java Wed Apr 20 09:31:11 2011 -0700
@@ -1228,8 +1228,8 @@
public PrintJob getPrintJob(final Frame frame, final String doctitle,
final Properties props) {
- if (GraphicsEnvironment.isHeadless()) {
- throw new IllegalArgumentException();
+ if (frame == null) {
+ throw new NullPointerException("frame must not be null");
}
PrintJob2D printJob = new PrintJob2D(frame, doctitle, props);
@@ -1242,11 +1242,10 @@
public PrintJob getPrintJob(final Frame frame, final String doctitle,
final JobAttributes jobAttributes,
- final PageAttributes pageAttributes) {
-
-
- if (GraphicsEnvironment.isHeadless()) {
- throw new IllegalArgumentException();
+ final PageAttributes pageAttributes)
+ {
+ if (frame == null) {
+ throw new NullPointerException("frame must not be null");
}
PrintJob2D printJob = new PrintJob2D(frame, doctitle,
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/motif/MFontConfiguration.java
--- a/src/solaris/classes/sun/awt/motif/MFontConfiguration.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/motif/MFontConfiguration.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/awt/motif/MToolkit.java
--- a/src/solaris/classes/sun/awt/motif/MToolkit.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/awt/motif/MToolkit.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/font/FcFontConfiguration.java
--- a/src/solaris/classes/sun/font/FcFontConfiguration.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/font/FcFontConfiguration.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/font/FontConfigManager.java
--- a/src/solaris/classes/sun/font/FontConfigManager.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/font/FontConfigManager.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/font/XRGlyphCache.java
--- a/src/solaris/classes/sun/font/XRGlyphCache.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/font/XRGlyphCache.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/java2d/xr/XRPMBlitLoops.java
--- a/src/solaris/classes/sun/java2d/xr/XRPMBlitLoops.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/java2d/xr/XRPMBlitLoops.java Wed Apr 20 09:31:11 2011 -0700
@@ -143,7 +143,8 @@
Blit swToSurfaceBlit = Blit.getFromCache(src.getSurfaceType(), CompositeType.SrcNoEa, vImgSurfaceType);
XRSurfaceData vImgSurface = (XRSurfaceData) vImg.getDestSurface();
- swToSurfaceBlit.Blit(src, vImgSurface, null, null, sx, sy, 0, 0, w, h);
+ swToSurfaceBlit.Blit(src, vImgSurface, AlphaComposite.Src, null,
+ sx, sy, 0, 0, w, h);
return vImgSurface;
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/java2d/xr/XRSurfaceData.java
--- a/src/solaris/classes/sun/java2d/xr/XRSurfaceData.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/java2d/xr/XRSurfaceData.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
--- a/src/solaris/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java
--- a/src/solaris/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/ch/UnixAsynchronousSocketChannelImpl.java
--- a/src/solaris/classes/sun/nio/ch/UnixAsynchronousSocketChannelImpl.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/ch/UnixAsynchronousSocketChannelImpl.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java
--- a/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/LinuxDosFileAttributeView.java
--- a/src/solaris/classes/sun/nio/fs/LinuxDosFileAttributeView.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/LinuxDosFileAttributeView.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/LinuxFileSystem.java
--- a/src/solaris/classes/sun/nio/fs/LinuxFileSystem.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/LinuxFileSystem.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/LinuxFileSystemProvider.java
--- a/src/solaris/classes/sun/nio/fs/LinuxFileSystemProvider.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/LinuxFileSystemProvider.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/LinuxUserDefinedFileAttributeView.java
--- a/src/solaris/classes/sun/nio/fs/LinuxUserDefinedFileAttributeView.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/LinuxUserDefinedFileAttributeView.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/LinuxWatchService.java
--- a/src/solaris/classes/sun/nio/fs/LinuxWatchService.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/LinuxWatchService.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java
--- a/src/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/SolarisFileSystem.java
--- a/src/solaris/classes/sun/nio/fs/SolarisFileSystem.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/SolarisFileSystem.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/SolarisFileSystemProvider.java
--- a/src/solaris/classes/sun/nio/fs/SolarisFileSystemProvider.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/SolarisFileSystemProvider.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/SolarisUserDefinedFileAttributeView.java
--- a/src/solaris/classes/sun/nio/fs/SolarisUserDefinedFileAttributeView.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/SolarisUserDefinedFileAttributeView.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/SolarisWatchService.java
--- a/src/solaris/classes/sun/nio/fs/SolarisWatchService.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/SolarisWatchService.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixChannelFactory.java
--- a/src/solaris/classes/sun/nio/fs/UnixChannelFactory.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixChannelFactory.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixCopyFile.java
--- a/src/solaris/classes/sun/nio/fs/UnixCopyFile.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixCopyFile.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixFileAttributeViews.java
--- a/src/solaris/classes/sun/nio/fs/UnixFileAttributeViews.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixFileAttributeViews.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixFileAttributes.java
--- a/src/solaris/classes/sun/nio/fs/UnixFileAttributes.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixFileAttributes.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixFileStore.java
--- a/src/solaris/classes/sun/nio/fs/UnixFileStore.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixFileStore.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixFileSystem.java
--- a/src/solaris/classes/sun/nio/fs/UnixFileSystem.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixFileSystem.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixFileSystemProvider.java
--- a/src/solaris/classes/sun/nio/fs/UnixFileSystemProvider.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixFileSystemProvider.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixPath.java
--- a/src/solaris/classes/sun/nio/fs/UnixPath.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixPath.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixSecureDirectoryStream.java
--- a/src/solaris/classes/sun/nio/fs/UnixSecureDirectoryStream.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixSecureDirectoryStream.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/classes/sun/nio/fs/UnixUriUtils.java
--- a/src/solaris/classes/sun/nio/fs/UnixUriUtils.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/classes/sun/nio/fs/UnixUriUtils.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c
--- a/src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiIn.c
--- a/src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiIn.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiIn.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/java/net/Inet6AddressImpl.c
--- a/src/solaris/native/java/net/Inet6AddressImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/java/net/Inet6AddressImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/java/net/NetworkInterface.c
--- a/src/solaris/native/java/net/NetworkInterface.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/java/net/NetworkInterface.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/java/net/PlainDatagramSocketImpl.c
--- a/src/solaris/native/java/net/PlainDatagramSocketImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/java/net/PlainDatagramSocketImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/java/net/PlainSocketImpl.c
--- a/src/solaris/native/java/net/PlainSocketImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/java/net/PlainSocketImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/java/net/linux_close.c
--- a/src/solaris/native/java/net/linux_close.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/java/net/linux_close.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/java/net/net_util_md.c
--- a/src/solaris/native/java/net/net_util_md.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/java/net/net_util_md.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/awt/awt_DrawingSurface.c
--- a/src/solaris/native/sun/awt/awt_DrawingSurface.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/awt/awt_DrawingSurface.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/awt/awt_GraphicsEnv.c
--- a/src/solaris/native/sun/awt/awt_GraphicsEnv.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/awt/awt_GraphicsEnv.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/awt/awt_Robot.c
--- a/src/solaris/native/sun/awt/awt_Robot.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/awt/awt_Robot.c Wed Apr 20 09:31:11 2011 -0700
@@ -48,12 +48,28 @@
#ifdef __linux__
#include
#endif
+#include
extern struct X11GraphicsConfigIDs x11GraphicsConfigIDs;
static jint * masks;
static jint num_buttons;
+static unsigned int s_robotInstanceCounter = 0;
+
+static void* xcompositeLibHandle = NULL;
+static Bool xcompositeExtAvailable = False;
+static Bool xcompositeExtTested = False;
+
+typedef Status (*T_XCompositeQueryVersion)(Display *dpy, int *major_versionp, int *minor_versionp);
+typedef Window (*T_XCompositeGetOverlayWindow)(Display *dpy, Window window);
+typedef void (*T_XCompositeReleaseOverlayWindow)(Display *dpy, Window window);
+
+static T_XCompositeQueryVersion XCompositeQueryVersion = NULL;
+static T_XCompositeGetOverlayWindow XCompositeGetOverlayWindow = NULL;
+static T_XCompositeReleaseOverlayWindow XCompositeReleaseOverlayWindow = NULL;
+
+
static int32_t isXTestAvailable() {
int32_t major_opcode, first_event, first_error;
int32_t event_basep, error_basep, majorp, minorp;
@@ -194,8 +210,80 @@
}
AWT_UNLOCK();
+
+ s_robotInstanceCounter++;
+}
+
+JNIEXPORT void JNICALL
+Java_sun_awt_X11_XRobotPeer__1dispose (JNIEnv * env, jclass cls)
+{
+ if (--s_robotInstanceCounter) {
+ return;
+ }
+
+ // This is the last instance of the XRobotPeer being released
+
+ if (xcompositeExtTested && xcompositeExtAvailable && xcompositeLibHandle) {
+ // The lib is loaded in IsXCompositeAvailable(). Unload under AWT_LOCK
+ // so that the shutdown function of the lib behaves correctly.
+ AWT_LOCK();
+ dlclose(xcompositeLibHandle);
+ AWT_UNLOCK();
+ }
+
+ xcompositeExtTested = False;
+ xcompositeExtAvailable = False;
+ xcompositeLibHandle = NULL;
}
+/*
+ * Returns True only if XCOMPOSITE is of version 0.3 or higher.
+ * The functions that we need are available since that version.
+ *
+ * Must be invoked under AWT_LOCK.
+ *
+ * Leaves the library loaded if the version is correct.
+ */
+static Bool IsXCompositeAvailable()
+{
+ if (!xcompositeExtTested) {
+ int opcode, eventb, errorb;
+
+ if (XQueryExtension(awt_display, "Composite", &opcode, &eventb, &errorb)) {
+ xcompositeLibHandle = dlopen("libXcomposite.so.1", RTLD_LAZY | RTLD_GLOBAL);
+#ifndef __linux__ /* SOLARIS */
+ if (xcompositeLibHandle == NULL) {
+ xcompositeLibHandle = dlopen("/usr/sfw/lib/libXcomposite.so.1",
+ RTLD_LAZY | RTLD_GLOBAL);
+ }
+#endif
+
+ if (xcompositeLibHandle) {
+ int major, minor;
+ XCompositeQueryVersion = (T_XCompositeQueryVersion)dlsym(xcompositeLibHandle, "XCompositeQueryVersion");
+
+ if (XCompositeQueryVersion && XCompositeQueryVersion(awt_display, &major, &minor)) {
+ if (major >= 0 && minor >= 3) {
+ XCompositeGetOverlayWindow = (T_XCompositeGetOverlayWindow)dlsym(xcompositeLibHandle, "XCompositeGetOverlayWindow");
+ XCompositeReleaseOverlayWindow = (T_XCompositeReleaseOverlayWindow)dlsym(xcompositeLibHandle, "XCompositeReleaseOverlayWindow");
+
+ if (XCompositeGetOverlayWindow && XCompositeReleaseOverlayWindow) {
+ xcompositeExtAvailable = True;
+ }
+ }
+ }
+
+ if (!xcompositeExtAvailable) {
+ dlclose(xcompositeLibHandle);
+ } /* else the lib is unloaded in _dispose() */
+ }
+ }
+
+ xcompositeExtTested = True;
+ }
+
+ return xcompositeExtAvailable;
+}
JNIEXPORT void JNICALL
Java_sun_awt_X11_XRobotPeer_getRGBPixelsImpl( JNIEnv *env,
@@ -211,7 +299,7 @@
jint *ary; /* Array of jints for sending pixel values back
* to parent process.
*/
- Window rootWindow;
+ Window window;
AwtGraphicsConfigDataPtr adata;
DTRACE_PRINTLN6("RobotPeer: getRGBPixelsImpl(%lx, %d, %d, %d, %d, %x)", xgc, x, y, width, height, pixelArray);
@@ -228,14 +316,24 @@
adata = (AwtGraphicsConfigDataPtr) JNU_GetLongFieldAsPtr(env, xgc, x11GraphicsConfigIDs.aData);
DASSERT(adata != NULL);
- rootWindow = XRootWindow(awt_display, adata->awt_visInfo.screen);
- image = getWindowImage(awt_display, rootWindow, x, y, width, height);
+ window = XRootWindow(awt_display, adata->awt_visInfo.screen);
+
+ if (IsXCompositeAvailable()) {
+ // Use 'composite overlay window' instead of the root window.
+ // See 6903034 for details.
+ window = XCompositeGetOverlayWindow(awt_display, window);
+ }
+
+ image = getWindowImage(awt_display, window, x, y, width, height);
/* Array to use to crunch around the pixel values */
ary = (jint *) malloc(width * height * sizeof (jint));
if (ary == NULL) {
JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError");
XDestroyImage(image);
+ if (IsXCompositeAvailable()) {
+ XCompositeReleaseOverlayWindow(awt_display, window);
+ }
AWT_UNLOCK();
return;
}
@@ -256,6 +354,9 @@
free(ary);
XDestroyImage(image);
+ if (IsXCompositeAvailable()) {
+ XCompositeReleaseOverlayWindow(awt_display, window);
+ }
AWT_UNLOCK();
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/awt/fontpath.c
--- a/src/solaris/native/sun/awt/fontpath.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/awt/fontpath.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/awt/gtk2_interface.c
--- a/src/solaris/native/sun/awt/gtk2_interface.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/awt/gtk2_interface.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/awt/gtk2_interface.h
--- a/src/solaris/native/sun/awt/gtk2_interface.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/awt/gtk2_interface.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/java2d/loops/vis_IntArgbPre_Mask.c
--- a/src/solaris/native/sun/java2d/loops/vis_IntArgbPre_Mask.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/java2d/loops/vis_IntArgbPre_Mask.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/java2d/loops/vis_SrcMaskFill.c
--- a/src/solaris/native/sun/java2d/loops/vis_SrcMaskFill.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/java2d/loops/vis_SrcMaskFill.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/java2d/x11/X11SurfaceData.c
--- a/src/solaris/native/sun/java2d/x11/X11SurfaceData.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/java2d/x11/X11SurfaceData.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/java2d/x11/X11SurfaceData.h
--- a/src/solaris/native/sun/java2d/x11/X11SurfaceData.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/java2d/x11/X11SurfaceData.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/java2d/x11/XRBackendNative.c
--- a/src/solaris/native/sun/java2d/x11/XRBackendNative.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/java2d/x11/XRBackendNative.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -644,7 +644,7 @@
for (i=0; i < glyphCnt; i++) {
GlyphInfo *jginfo = (GlyphInfo *) jlong_to_ptr(glyphInfoPtrs[i]);
- gid[i] = (Glyph) (0xffffffff & ((unsigned int) jginfo->cellInfo));
+ gid[i] = (Glyph) (0x0ffffffffL & ((unsigned long)(jginfo->cellInfo)));
xginfo[i].x = (-jginfo->topLeftX);
xginfo[i].y = (-jginfo->topLeftY);
xginfo[i].width = jginfo->width;
@@ -666,16 +666,56 @@
JNIEXPORT void JNICALL
Java_sun_java2d_xr_XRBackendNative_XRFreeGlyphsNative
(JNIEnv *env, jclass cls, jint glyphSet, jintArray gidArray, jint glyphCnt) {
- jint *gids;
- int i;
- if ((gids = (jint *) (*env)->GetPrimitiveArrayCritical(env, gidArray, NULL)) == NULL) {
+ /* The glyph ids are 32 bit but may be stored in a 64 bit long on
+ * a 64 bit architecture. So optimise the 32 bit case to avoid
+ * extra stack or heap allocations by directly referencing the
+ * underlying Java array and only allocate on 64 bit.
+ */
+ if (sizeof(jint) == sizeof(Glyph)) {
+ jint *gids =
+ (*env)->GetPrimitiveArrayCritical(env, gidArray, NULL);
+ if (gids == NULL) {
+ return;
+ } else {
+ XRenderFreeGlyphs(awt_display,
+ (GlyphSet)glyphSet, (Glyph *)gids, glyphCnt);
+ (*env)->ReleasePrimitiveArrayCritical(env, gidArray,
+ gids, JNI_ABORT);
+ }
return;
- }
+ } else {
+ Glyph stack_ids[64];
+ Glyph *gids = NULL;
+ jint* jgids = NULL;
+ int i;
- XRenderFreeGlyphs (awt_display, (GlyphSet) glyphSet, (Glyph *) gids, glyphCnt);
-
- (*env)->ReleasePrimitiveArrayCritical(env, gidArray, gids, JNI_ABORT);
+ if (glyphCnt <= 64) {
+ gids = stack_ids;
+ } else {
+ gids = (Glyph *)malloc(sizeof(Glyph) * glyphCnt);
+ if (gids == NULL) {
+ return;
+ }
+ }
+ jgids = (*env)->GetPrimitiveArrayCritical(env, gidArray, NULL);
+ if (jgids == NULL) {
+ if (gids != stack_ids) {
+ free(gids);
+ }
+ return;
+ }
+ for (i=0; i < glyphCnt; i++) {
+ gids[i] = jgids[i];
+ }
+ XRenderFreeGlyphs(awt_display,
+ (GlyphSet) glyphSet, gids, glyphCnt);
+ (*env)->ReleasePrimitiveArrayCritical(env, gidArray,
+ jgids, JNI_ABORT);
+ if (gids != stack_ids) {
+ free(gids);
+ }
+ }
}
JNIEXPORT jint JNICALL
@@ -692,9 +732,9 @@
jint *ids;
jint *elts;
XGlyphElt32 *xelts;
- Glyph *xids;
+ unsigned int *xids;
XGlyphElt32 selts[24];
- Glyph sids[256];
+ unsigned int sids[256];
int charCnt = 0;
if (eltCnt <= 24) {
@@ -709,7 +749,7 @@
if (glyphCnt <= 256) {
xids = &sids[0];
} else {
- xids = (Glyph *) malloc(sizeof(Glyph) * glyphCnt);
+ xids = (unsigned int*)malloc(sizeof(unsigned int) * glyphCnt);
if (xids == NULL) {
if (xelts != &selts[0]) {
free(xelts);
@@ -742,7 +782,7 @@
}
for (i=0; i < glyphCnt; i++) {
- xids[i] = (Glyph) ids[i];
+ xids[i] = ids[i];
}
for (i=0; i < eltCnt; i++) {
@@ -750,7 +790,7 @@
xelts[i].xOff = elts[i*4 + 1];
xelts[i].yOff = elts[i*4 + 2];
xelts[i].glyphset = (GlyphSet) elts[i*4 + 3];
- xelts[i].chars = (unsigned int *) &xids[charCnt];
+ xelts[i].chars = &xids[charCnt];
charCnt += xelts[i].nchars;
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/java2d/x11/XRSurfaceData.c
--- a/src/solaris/native/sun/java2d/x11/XRSurfaceData.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/java2d/x11/XRSurfaceData.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/nio/ch/FileChannelImpl.c
--- a/src/solaris/native/sun/nio/ch/FileChannelImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/nio/ch/FileChannelImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/nio/ch/Net.c
--- a/src/solaris/native/sun/nio/ch/Net.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/nio/ch/Net.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
--- a/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/xawt/XToolkit.c
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/solaris/native/sun/xawt/awt_Desktop.c
--- a/src/solaris/native/sun/xawt/awt_Desktop.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/solaris/native/sun/xawt/awt_Desktop.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/bin/java_md.c
--- a/src/windows/bin/java_md.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/bin/java_md.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/java/lang/ProcessEnvironment.java
--- a/src/windows/classes/java/lang/ProcessEnvironment.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/java/lang/ProcessEnvironment.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
@@ -143,7 +143,7 @@
public void remove() { i.remove();}
};
}
- private static Map.Entry checkedEntry (Object o) {
+ private static Map.Entry checkedEntry(Object o) {
Map.Entry e = (Map.Entry) o;
nonNullString(e.getKey());
nonNullString(e.getValue());
@@ -285,7 +285,7 @@
return (Map) theEnvironment.clone();
}
- // Only for use by Runtime.exec(...String[]envp...)
+ // Only for use by ProcessBuilder.environment(String[] envp)
static Map emptyEnvironment(int capacity) {
return new ProcessEnvironment(capacity);
}
@@ -299,19 +299,46 @@
Collections.sort(list, entryComparator);
StringBuilder sb = new StringBuilder(size()*30);
- for (Map.Entry e : list)
- sb.append(e.getKey())
- .append('=')
- .append(e.getValue())
- .append('\u0000');
- // Ensure double NUL termination,
- // even if environment is empty.
- if (sb.length() == 0)
+ int cmp = -1;
+
+ // Some versions of MSVCRT.DLL require SystemRoot to be set.
+ // So, we make sure that it is always set, even if not provided
+ // by the caller.
+ final String SYSTEMROOT = "SystemRoot";
+
+ for (Map.Entry e : list) {
+ String key = e.getKey();
+ String value = e.getValue();
+ if (cmp < 0 && (cmp = nameComparator.compare(key, SYSTEMROOT)) > 0) {
+ // Not set, so add it here
+ addToEnvIfSet(sb, SYSTEMROOT);
+ }
+ addToEnv(sb, key, value);
+ }
+ if (cmp < 0) {
+ // Got to end of list and still not found
+ addToEnvIfSet(sb, SYSTEMROOT);
+ }
+ if (sb.length() == 0) {
+ // Environment was empty and SystemRoot not set in parent
sb.append('\u0000');
+ }
+ // Block is double NUL terminated
sb.append('\u0000');
return sb.toString();
}
+ // add the environment variable to the child, if it exists in parent
+ private static void addToEnvIfSet(StringBuilder sb, String name) {
+ String s = getenv(name);
+ if (s != null)
+ addToEnv(sb, name, s);
+ }
+
+ private static void addToEnv(StringBuilder sb, String name, String val) {
+ sb.append(name).append('=').append(val).append('\u0000');
+ }
+
static String toEnvironmentBlock(Map map) {
return map == null ? null :
((ProcessEnvironment)map).toEnvironmentBlock();
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/java/net/PlainSocketImpl.java
--- a/src/windows/classes/java/net/PlainSocketImpl.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/java/net/PlainSocketImpl.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java
--- a/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/awt/Win32FontManager.java
--- a/src/windows/classes/sun/awt/Win32FontManager.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/awt/Win32FontManager.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/awt/Win32GraphicsEnvironment.java
--- a/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java Wed Apr 20 09:31:11 2011 -0700
@@ -39,12 +39,8 @@
import java.util.StringTokenizer;
import sun.awt.DisplayChangedListener;
import sun.awt.SunDisplayChanger;
-import sun.awt.windows.WFontConfiguration;
import sun.awt.windows.WPrinterJob;
import sun.awt.windows.WToolkit;
-import sun.font.FontManager;
-import sun.font.FontManagerFactory;
-import sun.font.SunFontManager;
import sun.java2d.SunGraphicsEnvironment;
import sun.java2d.SurfaceManagerFactory;
import sun.java2d.WindowsSurfaceManagerFactory;
@@ -231,20 +227,6 @@
return device;
}
- // Implements SunGraphicsEnvironment.createFontConfiguration.
- protected FontConfiguration createFontConfiguration() {
- FontConfiguration fc = new WFontConfiguration(SunFontManager.getInstance());
- fc.init();
- return fc;
- }
-
- public FontConfiguration createFontConfiguration(boolean preferLocaleFonts,
- boolean preferPropFonts) {
-
- return new WFontConfiguration(SunFontManager.getInstance(),
- preferLocaleFonts,preferPropFonts);
- }
-
public boolean isDisplayLocal() {
return true;
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/awt/windows/WPathGraphics.java
--- a/src/windows/classes/sun/awt/windows/WPathGraphics.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/awt/windows/WPathGraphics.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/awt/windows/WPrinterJob.java
--- a/src/windows/classes/sun/awt/windows/WPrinterJob.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/awt/windows/WPrinterJob.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/awt/windows/WToolkit.java
--- a/src/windows/classes/sun/awt/windows/WToolkit.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/awt/windows/WToolkit.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -630,10 +630,10 @@
public PrintJob getPrintJob(Frame frame, String doctitle,
JobAttributes jobAttributes,
- PageAttributes pageAttributes) {
-
- if (GraphicsEnvironment.isHeadless()) {
- throw new IllegalArgumentException();
+ PageAttributes pageAttributes)
+ {
+ if (frame == null) {
+ throw new NullPointerException("frame must not be null");
}
PrintJob2D printJob = new PrintJob2D(frame, doctitle,
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/awt/windows/fontconfig.properties
--- a/src/windows/classes/sun/awt/windows/fontconfig.properties Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/awt/windows/fontconfig.properties Wed Apr 20 09:31:11 2011 -0700
@@ -102,28 +102,28 @@
monospaced.plain.alphabetic=Courier New
monospaced.plain.chinese-ms950=MingLiU
monospaced.plain.chinese-ms950-extb=MingLiU-ExtB
-monospaced.plain.hebrew=David
+monospaced.plain.hebrew=Courier New
monospaced.plain.japanese=MS Gothic
monospaced.plain.korean=GulimChe
monospaced.bold.alphabetic=Courier New Bold
monospaced.bold.chinese-ms950=PMingLiU
monospaced.bold.chinese-ms950-extb=PMingLiU-ExtB
-monospaced.bold.hebrew=David Bold
+monospaced.bold.hebrew=Courier New Bold
monospaced.bold.japanese=MS Gothic
monospaced.bold.korean=GulimChe
monospaced.italic.alphabetic=Courier New Italic
monospaced.italic.chinese-ms950=PMingLiU
monospaced.italic.chinese-ms950-extb=PMingLiU-ExtB
-monospaced.italic.hebrew=David
+monospaced.italic.hebrew=Courier New
monospaced.italic.japanese=MS Gothic
monospaced.italic.korean=GulimChe
monospaced.bolditalic.alphabetic=Courier New Bold Italic
monospaced.bolditalic.chinese-ms950=PMingLiU
monospaced.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
-monospaced.bolditalic.hebrew=David Bold
+monospaced.bolditalic.hebrew=Courier New Bold
monospaced.bolditalic.japanese=MS Gothic
monospaced.bolditalic.korean=GulimChe
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/java2d/d3d/D3DSurfaceData.java
--- a/src/windows/classes/sun/java2d/d3d/D3DSurfaceData.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/java2d/d3d/D3DSurfaceData.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/java2d/opengl/WGLVolatileSurfaceManager.java
--- a/src/windows/classes/sun/java2d/opengl/WGLVolatileSurfaceManager.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/java2d/opengl/WGLVolatileSurfaceManager.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
--- a/src/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/ch/PendingIoCache.java
--- a/src/windows/classes/sun/nio/ch/PendingIoCache.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/ch/PendingIoCache.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java
--- a/src/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java
--- a/src/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/RegistryFileTypeDetector.java
--- a/src/windows/classes/sun/nio/fs/RegistryFileTypeDetector.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/RegistryFileTypeDetector.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsFileAttributeViews.java
--- a/src/windows/classes/sun/nio/fs/WindowsFileAttributeViews.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsFileAttributeViews.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsFileCopy.java
--- a/src/windows/classes/sun/nio/fs/WindowsFileCopy.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsFileCopy.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsFileStore.java
--- a/src/windows/classes/sun/nio/fs/WindowsFileStore.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsFileStore.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsFileSystem.java
--- a/src/windows/classes/sun/nio/fs/WindowsFileSystem.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsFileSystem.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java
--- a/src/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsPath.java
--- a/src/windows/classes/sun/nio/fs/WindowsPath.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsPath.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsPathParser.java
--- a/src/windows/classes/sun/nio/fs/WindowsPathParser.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsPathParser.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java
--- a/src/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java
--- a/src/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/nio/fs/WindowsWatchService.java
--- a/src/windows/classes/sun/nio/fs/WindowsWatchService.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/nio/fs/WindowsWatchService.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/print/Win32PrintService.java
--- a/src/windows/classes/sun/print/Win32PrintService.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/print/Win32PrintService.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/security/krb5/internal/tools/Kinit.java
--- a/src/windows/classes/sun/security/krb5/internal/tools/Kinit.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/security/krb5/internal/tools/Kinit.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -30,12 +30,15 @@
package sun.security.krb5.internal.tools;
+import java.io.File;
import sun.security.krb5.*;
import sun.security.krb5.internal.*;
import sun.security.krb5.internal.ccache.*;
import java.io.IOException;
import java.util.Arrays;
+import javax.security.auth.kerberos.KerberosPrincipal;
import sun.security.util.Password;
+import javax.security.auth.kerberos.KeyTab;
/**
* Kinit tool for obtaining Kerberos v5 tickets.
@@ -153,7 +156,6 @@
System.out.println("Principal is " + principal);
}
char[] psswd = options.password;
- EncryptionKey[] skeys = null;
boolean useKeytab = options.useKeytabFile();
if (!useKeytab) {
if (princName == null) {
@@ -186,17 +188,9 @@
}
}
- // assert princName and principal are nonnull
- skeys = EncryptionKey.acquireSecretKeys(principal, ktabName);
-
- if (skeys == null || skeys.length == 0) {
- String msg = "No supported key found in keytab";
- if (princName != null) {
- msg += " for principal " + princName;
- }
- throw new KrbException(msg);
- }
- builder = new KrbAsReqBuilder(principal, skeys);
+ builder = new KrbAsReqBuilder(principal, ktabName == null
+ ? KeyTab.getInstance()
+ : KeyTab.getInstance(new File(ktabName)));
}
KDCOptions opt = new KDCOptions();
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/security/krb5/internal/tools/Klist.java
--- a/src/windows/classes/sun/security/krb5/internal/tools/Klist.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/security/krb5/internal/tools/Klist.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -95,16 +95,15 @@
}
break;
case 'k':
- if (klist.name == null) {
- klist.target = KeyTab.getInstance();
- klist.name = KeyTab.tabName();
- } else klist.target = KeyTab.getInstance(klist.name);
- if (klist.target != null) {
- klist.displayTab();
- } else {
+ try {
+ KeyTab ktab = KeyTab.getInstance(klist.name);
+ klist.target = ktab;
+ klist.name = ktab.tabName();
+ } catch (Exception e) {
klist.displayMessage("KeyTab");
System.exit(-1);
}
+ klist.displayTab();
break;
default:
if (klist.name != null) {
@@ -295,9 +294,10 @@
void displayMessage(String target) {
if (name == null) {
- name = "";
+ System.out.println("Default " + target + " not found.");
+ } else {
+ System.out.println(target + " " + name + " not found.");
}
- System.out.println(target + " " + name + " not found.");
}
/**
* Reformats the date from the form -
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/classes/sun/security/krb5/internal/tools/Ktab.java
--- a/src/windows/classes/sun/security/krb5/internal/tools/Ktab.java Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/classes/sun/security/krb5/internal/tools/Ktab.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -321,7 +321,7 @@
* Lists key table name and entries in it.
*/
void listKt() {
- System.out.println("Keytab name: " + KeyTab.tabName());
+ System.out.println("Keytab name: " + table.tabName());
KeyTabEntry[] entries = table.getEntries();
if ((entries != null) && (entries.length > 0)) {
String[][] output = new String[entries.length+1][showTime?3:2];
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/demo/jvmti/hprof/hprof_md.c
--- a/src/windows/demo/jvmti/hprof/hprof_md.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/demo/jvmti/hprof/hprof_md.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/java/io/WinNTFileSystem_md.c
--- a/src/windows/native/java/io/WinNTFileSystem_md.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/java/io/WinNTFileSystem_md.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/java/io/canonicalize_md.c
--- a/src/windows/native/java/io/canonicalize_md.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/java/io/canonicalize_md.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/java/io/io_util_md.c
--- a/src/windows/native/java/io/io_util_md.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/java/io/io_util_md.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/java/net/Inet4AddressImpl.c
--- a/src/windows/native/java/net/Inet4AddressImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/java/net/Inet4AddressImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/java/net/Inet6AddressImpl.c
--- a/src/windows/native/java/net/Inet6AddressImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/java/net/Inet6AddressImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/java/net/TwoStacksPlainSocketImpl.c
--- a/src/windows/native/java/net/TwoStacksPlainSocketImpl.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/java/net/TwoStacksPlainSocketImpl.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/java2d/d3d/D3DGraphicsDevice.cpp
--- a/src/windows/native/sun/java2d/d3d/D3DGraphicsDevice.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/java2d/d3d/D3DGraphicsDevice.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/java2d/windows/GDIBlitLoops.cpp
--- a/src/windows/native/sun/java2d/windows/GDIBlitLoops.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/java2d/windows/GDIBlitLoops.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/nio/ch/Iocp.c
--- a/src/windows/native/sun/nio/ch/Iocp.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/nio/ch/Iocp.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/nio/ch/Net.c
--- a/src/windows/native/sun/nio/ch/Net.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/nio/ch/Net.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/nio/fs/RegistryFileTypeDetector.c
--- a/src/windows/native/sun/nio/fs/RegistryFileTypeDetector.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/nio/fs/RegistryFileTypeDetector.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c
--- a/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/nio/fs/WindowsNativeDispatcher.c Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/Devices.h
--- a/src/windows/native/sun/windows/Devices.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/Devices.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Debug.cpp
--- a/src/windows/native/sun/windows/awt_Debug.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Debug.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Debug.h
--- a/src/windows/native/sun/windows/awt_Debug.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Debug.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Dialog.h
--- a/src/windows/native/sun/windows/awt_Dialog.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Dialog.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Frame.cpp
--- a/src/windows/native/sun/windows/awt_Frame.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Frame.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Frame.h
--- a/src/windows/native/sun/windows/awt_Frame.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Frame.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_PrintJob.cpp
--- a/src/windows/native/sun/windows/awt_PrintJob.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_PrintJob.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_TextArea.h
--- a/src/windows/native/sun/windows/awt_TextArea.h Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_TextArea.h Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Toolkit.cpp
--- a/src/windows/native/sun/windows/awt_Toolkit.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Toolkit.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -528,9 +528,6 @@
tk.m_isActive = FALSE;
- awt_dnd_uninitialize();
- awt_clipboard_uninitialize((JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2));
-
// dispose Direct3D-related resources. This should be done
// before AwtObjectList::Cleanup() as the d3d will attempt to
// shutdown when the last of its windows is disposed of
@@ -539,6 +536,9 @@
AwtObjectList::Cleanup();
AwtFont::Cleanup();
+ awt_dnd_uninitialize();
+ awt_clipboard_uninitialize((JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2));
+
if (tk.m_inputMethodHWnd != NULL) {
::SendMessage(tk.m_inputMethodHWnd, WM_IME_CONTROL, IMC_OPENSTATUSWINDOW, 0);
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_TrayIcon.cpp
--- a/src/windows/native/sun/windows/awt_TrayIcon.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_TrayIcon.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Win32GraphicsEnv.cpp
--- a/src/windows/native/sun/windows/awt_Win32GraphicsEnv.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Win32GraphicsEnv.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 src/windows/native/sun/windows/awt_Window.cpp
--- a/src/windows/native/sun/windows/awt_Window.cpp Tue Apr 19 10:26:18 2011 -0700
+++ b/src/windows/native/sun/windows/awt_Window.cpp Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/Makefile
--- a/test/Makefile Tue Apr 19 10:26:18 2011 -0700
+++ b/test/Makefile Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/ProblemList.txt
--- a/test/ProblemList.txt Tue Apr 19 10:26:18 2011 -0700
+++ b/test/ProblemList.txt Wed Apr 20 09:31:11 2011 -0700
@@ -1,6 +1,6 @@
###########################################################################
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 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
@@ -288,12 +288,6 @@
# jdk_math
-# Problems with rounding add failures on solaris-sparcv9 and -server
-java/math/BigDecimal/AddTests.java solaris-sparcv9
-
-# Should be samevm? But seems problematic with samevm on windows
-java/math/BigInteger/ModPow65537.java generic-all
-
############################################################################
# jdk_misc
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/awt/Translucency/WindowOpacity.java
--- a/test/com/sun/awt/Translucency/WindowOpacity.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/awt/Translucency/WindowOpacity.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/jdi/NativeInstanceFilter.java
--- a/test/com/sun/jdi/NativeInstanceFilter.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/jdi/NativeInstanceFilter.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/jdi/NativeInstanceFilterTarg.java
--- a/test/com/sun/jdi/NativeInstanceFilterTarg.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/jdi/NativeInstanceFilterTarg.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/jdi/ProcessAttachTest.sh
--- a/test/com/sun/jdi/ProcessAttachTest.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/jdi/ProcessAttachTest.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/security/auth/module/LdapLoginModule/CheckConfigs.java
--- a/test/com/sun/security/auth/module/LdapLoginModule/CheckConfigs.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/security/auth/module/LdapLoginModule/CheckConfigs.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/security/auth/module/LdapLoginModule/CheckOptions.java
--- a/test/com/sun/security/auth/module/LdapLoginModule/CheckOptions.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/security/auth/module/LdapLoginModule/CheckOptions.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/tools/attach/ApplicationSetup.sh
--- a/test/com/sun/tools/attach/ApplicationSetup.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/tools/attach/ApplicationSetup.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
@@ -40,7 +40,8 @@
startApplication()
{
- ${JAVA} $1 $2 $3 -jar "${TESTCLASSES}"/Application.jar > ${OUTPUTFILE} &
+ # put all output from the app into ${OUTPUTFILE}
+ ${JAVA} $1 $2 $3 -jar "${TESTCLASSES}"/Application.jar > ${OUTPUTFILE} 2>&1 &
pid="$!"
# MKS creates an intermediate shell to launch ${JAVA} so
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/tools/attach/BasicTests.java
--- a/test/com/sun/tools/attach/BasicTests.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/tools/attach/BasicTests.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
@@ -75,14 +75,23 @@
// Test 3 - load an "bad" agent (agentmain throws an exception)
System.out.println(" - Test: Load a bad agent");
+ System.out.println("INFO: This test will cause error messages "
+ + "to appear in the application log about SilverBullet.jar "
+ + "not being found and an agent failing to start.");
try {
vm.loadAgent(badagent);
+ throw new RuntimeException(
+ "AgentInitializationException not thrown as expected!");
} catch (AgentInitializationException x) {
- System.out.println(" - AgentInitializationException throws as expected!");
+ System.out.println(
+ " - AgentInitializationException thrown as expected!");
}
// Test 4 - detach from the VM and attempt a load (should throw IOE)
System.out.println(" - Test: Detach from VM");
+ System.out.println("INFO: This test will cause error messages "
+ + "to appear in the application log about a BadAgent including "
+ + "a RuntimeException and an InvocationTargetException.");
vm.detach();
try {
vm.loadAgent(agent);
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/tools/attach/BasicTests.sh
--- a/test/com/sun/tools/attach/BasicTests.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/tools/attach/BasicTests.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 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
@@ -39,11 +39,9 @@
# Windows 2000 is a problem here, so we skip it, see 6962615
osrev=`uname -a`
-if [ "`echo ${osrev} | grep 'CYGWIN'`" != "" ] ; then
- if [ "`echo ${osrev} | grep '5.0'`" != "" ] ; then
- echo "Treating as a pass, not testing Windows 2000"
- exit 0
- fi
+if [ "`echo ${osrev} | grep 'CYGWIN[^ ]*-5\.0'`" != "" ] ; then
+ echo "Treating as a pass, not testing Windows 2000"
+ exit 0
fi
if [ "`echo ${osrev} | grep 'Windows'`" != "" ] ; then
if [ "`echo ${osrev} | grep '5 00'`" != "" ] ; then
@@ -58,7 +56,7 @@
startApplication -Dattach.test=true
# pid = process-id, port = shutdown port
-
+
failures=0
echo "Running tests ..."
@@ -69,6 +67,18 @@
stopApplication $port
+# Add these info messages to $OUTPUTFILE just in case someone
+# looks at it and wonders about the failures. We have to do
+# this after the application is stopped because it is writing
+# to $OUTPUTFILE.
+(
+echo ""
+echo "INFO: Test 2 will cause error messages about SilverBullet.jar" \
+ "and an agent failing to start."
+echo "INFO: Test 3 will cause error messages about BadAgent" \
+ "including a RuntimeException and an InvocationTargetException."
+) >> ${OUTPUTFILE}
+
if [ $failures = 0 ];
then echo "All tests passed.";
else echo "$failures test(s) failed:"; cat ${OUTPUTFILE};
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/tools/attach/CommonSetup.sh
--- a/test/com/sun/tools/attach/CommonSetup.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/tools/attach/CommonSetup.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/com/sun/tools/attach/PermissionTests.sh
--- a/test/com/sun/tools/attach/PermissionTests.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/com/sun/tools/attach/PermissionTests.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/demo/zipfs/Basic.java
--- a/test/demo/zipfs/Basic.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/demo/zipfs/Basic.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/demo/zipfs/PathOps.java
--- a/test/demo/zipfs/PathOps.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/demo/zipfs/PathOps.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/demo/zipfs/basic.sh
--- a/test/demo/zipfs/basic.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/demo/zipfs/basic.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/Container/CheckZOrderChange/CheckZOrderChange.java
--- a/test/java/awt/Container/CheckZOrderChange/CheckZOrderChange.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/Container/CheckZOrderChange/CheckZOrderChange.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/FontClass/LCDScale.java
--- a/test/java/awt/FontClass/LCDScale.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/FontClass/LCDScale.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/Graphics2D/RenderClipTest/RenderClipTest.java
--- a/test/java/awt/Graphics2D/RenderClipTest/RenderClipTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/Graphics2D/RenderClipTest/RenderClipTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/PrintJob/Text/StringWidth.java
--- a/test/java/awt/PrintJob/Text/StringWidth.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/PrintJob/Text/StringWidth.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/Toolkit/Headless/GetPrintJob/GetPrintJob.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/java/awt/Toolkit/Headless/GetPrintJob/GetPrintJob.java Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,48 @@
+/*
+@test
+@bug 7023011
+@library ../../../regtesthelpers
+@build Sysout
+@summary Toolkit.getPrintJob() throws wrong exceptions
+@author andrei dmitriev: area=awt.headless
+@run main GetPrintJob
+ */
+
+import java.awt.*;
+import java.util.Properties;
+import test.java.awt.regtesthelpers.Sysout;
+/*
+ * In headfull mode we should always getting NPE on the getPrintJob() call if frame == null.
+ */
+
+public class GetPrintJob {
+
+ public static void main(String[] s) {
+ boolean stage1Passed = false;
+ boolean stage2Passed = false;
+
+ try {
+ Toolkit.getDefaultToolkit().getPrintJob(
+ (Frame) null, "title", new Properties());
+ } catch (NullPointerException e) {
+ stage1Passed = true;
+ Sysout.println("Stage 1 passed. getPrintJob(null, String, property) has thrown NPE.");
+ }
+ if (!stage1Passed) {
+ throw new RuntimeException("getPrintJob() should have thrown NPE but didn't.");
+ }
+
+ try {
+ Toolkit.getDefaultToolkit().getPrintJob(
+ (Frame) null, "title", new JobAttributes(), new PageAttributes());
+ } catch (NullPointerException e) {
+ stage2Passed = true;
+ Sysout.println("Stage 2 passed. getPrintJob(null, String, jobAttrs, pageAttr) has thrown NPE.");
+ }
+ if (!stage2Passed) {
+ throw new RuntimeException("getPrintJob() should have thrown NPE but didn't.");
+ }
+
+ Sysout.println("Test PASSED");
+ }
+}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/Toolkit/Headless/GetPrintJob/GetPrintJobHeadless.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/java/awt/Toolkit/Headless/GetPrintJob/GetPrintJobHeadless.java Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,50 @@
+/*
+@test
+@bug 7023011
+@library ../../../regtesthelpers
+@build Sysout
+@summary Toolkit.getPrintJob() throws wrong exceptions
+@author andrei dmitriev: area=awt.headless
+@run main/othervm -Djava.awt.headless=true GetPrintJobHeadless
+ */
+
+/*
+ * In headless mode we should always getting NPE on the getPrintJob() call
+ */
+import java.awt.*;
+import java.util.Properties;
+import test.java.awt.regtesthelpers.Sysout;
+
+public class GetPrintJobHeadless {
+
+ public static void main(String[] s) {
+ boolean stage1Passed = false;
+ boolean stage2Passed = false;
+
+ try {
+ Toolkit.getDefaultToolkit().getPrintJob(
+ (Frame) null, "title", new Properties());
+ } catch (NullPointerException e) {
+ stage1Passed = true;
+ e.printStackTrace();
+ Sysout.println("Stage 1 passed. getPrintJob(null, String, property) has thrown NPE.");
+ }
+ if (!stage1Passed) {
+ throw new RuntimeException("getPrintJob() should have thrown NPE but didn't.");
+ }
+
+ try {
+ Toolkit.getDefaultToolkit().getPrintJob(
+ (Frame) null, "title", new JobAttributes(), new PageAttributes());
+ } catch (NullPointerException e) {
+ stage2Passed = true;
+ e.printStackTrace();
+ Sysout.println("Stage 2 passed. getPrintJob(null, String, jobAttrs, pageAttr) has thrown NPE.");
+ }
+ if (!stage2Passed) {
+ throw new RuntimeException("getPrintJob() should have thrown NPE but didn't.");
+ }
+
+ Sysout.println("Test PASSED");
+ }
+}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/font/FontNames/LocaleFamilyNames.java
--- a/test/java/awt/font/FontNames/LocaleFamilyNames.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/font/FontNames/LocaleFamilyNames.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/image/GetSamplesTest.java
--- a/test/java/awt/image/GetSamplesTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/image/GetSamplesTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -23,9 +23,9 @@
/*
* @test
- * @bug 6735275
- * @summary Test verifies that SampleModel.getSamples() throws an appropriate
- * exception if coordinates are not in bounds.
+ * @bug 6735275 6993561
+ * @summary Test verifies that SampleModel.getSamples() SampleModel.setSamples()
+ * throw an appropriate exception if coordinates are not in bounds.
*
* @run main GetSamplesTest
*/
@@ -75,6 +75,7 @@
try {
sm.getSamples(Integer.MAX_VALUE, 0, 1, 1, 0, iArray, db);
+ sm.setSamples(Integer.MAX_VALUE, 0, 1, 1, 0, iArray, db);
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println(e.getMessage());
iOk = true;
@@ -82,6 +83,7 @@
try {
sm.getSamples(Integer.MAX_VALUE, 0, 1, 1, 0, fArray, db);
+ sm.setSamples(Integer.MAX_VALUE, 0, 1, 1, 0, fArray, db);
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println(e.getMessage());
fOk = true;
@@ -89,6 +91,7 @@
try {
sm.getSamples(0, Integer.MAX_VALUE, 1, 1, 0, dArray, db);
+ sm.setSamples(0, Integer.MAX_VALUE, 1, 1, 0, dArray, db);
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println(e.getMessage());
dOk = true;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/awt/xembed/server/TestXEmbedServer.java
--- a/test/java/awt/xembed/server/TestXEmbedServer.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/awt/xembed/server/TestXEmbedServer.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/File/IsHidden.java
--- a/test/java/io/File/IsHidden.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/File/IsHidden.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/File/SetAccess.java
--- a/test/java/io/File/SetAccess.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/File/SetAccess.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/File/SetLastModified.java
--- a/test/java/io/File/SetLastModified.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/File/SetLastModified.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/File/SymLinks.java
--- a/test/java/io/File/SymLinks.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/File/SymLinks.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/File/basic.sh
--- a/test/java/io/File/basic.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/File/basic.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#! /bin/sh
#
-# Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/FileInputStream/LargeFileAvailable.java
--- a/test/java/io/FileInputStream/LargeFileAvailable.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/FileInputStream/LargeFileAvailable.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/FileOutputStream/AtomicAppend.java
--- a/test/java/io/FileOutputStream/AtomicAppend.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/FileOutputStream/AtomicAppend.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/OutputStreamWriter/Encode.java
--- a/test/java/io/OutputStreamWriter/Encode.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/OutputStreamWriter/Encode.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/PrintStream/EncodingConstructor.java
--- a/test/java/io/PrintStream/EncodingConstructor.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/PrintStream/EncodingConstructor.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/Serializable/NPEProvoker/NPEProvoker.java
--- a/test/java/io/Serializable/NPEProvoker/NPEProvoker.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/Serializable/NPEProvoker/NPEProvoker.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/Serializable/evolution/RenamePackage/install/SerialDriver.java
--- a/test/java/io/Serializable/evolution/RenamePackage/install/SerialDriver.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/Serializable/evolution/RenamePackage/install/SerialDriver.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/io/Serializable/evolution/RenamePackage/test/SerialDriver.java
--- a/test/java/io/Serializable/evolution/RenamePackage/test/SerialDriver.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/io/Serializable/evolution/RenamePackage/test/SerialDriver.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/Double/ParseDouble.java
--- a/test/java/lang/Double/ParseDouble.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/Double/ParseDouble.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -23,7 +23,7 @@
/*
* @test
- * @bug 4160406 4705734 4707389 4826774 4895911 4421494
+ * @bug 4160406 4705734 4707389 4826774 4895911 4421494 7021568
* @summary Test for Double.parseDouble method and acceptance regex
*/
@@ -581,6 +581,31 @@
}
}
+
+ private static void testStrictness() {
+ final double expected = 0x0.0000008000001p-1022;
+ boolean failed = false;
+ double conversion = 0.0;
+ double sum = 0.0; // Prevent conversion from being optimized away
+
+ //2^-1047 + 2^-1075
+ String decimal = "6.631236871469758276785396630275967243399099947355303144249971758736286630139265439618068200788048744105960420552601852889715006376325666595539603330361800519107591783233358492337208057849499360899425128640718856616503093444922854759159988160304439909868291973931426625698663157749836252274523485312442358651207051292453083278116143932569727918709786004497872322193856150225415211997283078496319412124640111777216148110752815101775295719811974338451936095907419622417538473679495148632480391435931767981122396703443803335529756003353209830071832230689201383015598792184172909927924176339315507402234836120730914783168400715462440053817592702766213559042115986763819482654128770595766806872783349146967171293949598850675682115696218943412532098591327667236328125E-316";
+
+ for(int i = 0; i <= 12_000; i++) {
+ conversion = Double.parseDouble(decimal);
+ sum += conversion;
+ if (conversion != expected) {
+ failed = true;
+ System.out.printf("Iteration %d converts as %a%n",
+ i, conversion);
+ }
+ }
+
+ System.out.println("Sum = " + sum);
+ if (failed)
+ throw new RuntimeException("Inconsistent conversion");
+ }
+
public static void main(String[] args) throws Exception {
rudimentaryTest();
@@ -595,5 +620,6 @@
testRegex(paddedBadStrings, true);
testSubnormalPowers();
+ testStrictness();
}
}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/Math/RoundTests.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/java/lang/Math/RoundTests.java Wed Apr 20 09:31:11 2011 -0700
@@ -0,0 +1,98 @@
+/*
+ * 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.
+ *
+ * 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.
+ */
+
+/*
+ * @test
+ * @bug 6430675
+ * @summary Check for correct implementation of {Math, StrictMath}.round
+ */
+public class RoundTests {
+ public static void main(String... args) {
+ int failures = 0;
+
+ failures += testNearFloatHalfCases();
+ failures += testNearDoubleHalfCases();
+
+ if (failures > 0) {
+ System.err.println("Testing {Math, StrictMath}.round incurred "
+ + failures + " failures.");
+ throw new RuntimeException();
+ }
+ }
+
+ private static int testNearDoubleHalfCases() {
+ int failures = 0;
+ double [][] testCases = {
+ {+0x1.fffffffffffffp-2, 0.0},
+ {+0x1.0p-1, 1.0}, // +0.5
+ {+0x1.0000000000001p-1, 1.0},
+
+ {-0x1.fffffffffffffp-2, 0.0},
+ {-0x1.0p-1, 0.0}, // -0.5
+ {-0x1.0000000000001p-1, -1.0},
+ };
+
+ for(double[] testCase : testCases) {
+ failures += testNearHalfCases(testCase[0], (long)testCase[1]);
+ }
+
+ return failures;
+ }
+
+ private static int testNearHalfCases(double input, double expected) {
+ int failures = 0;
+
+ failures += Tests.test("Math.round", input, Math.round(input), expected);
+ failures += Tests.test("StrictMath.round", input, StrictMath.round(input), expected);
+
+ return failures;
+ }
+
+ private static int testNearFloatHalfCases() {
+ int failures = 0;
+ float [][] testCases = {
+ {+0x1.fffffep-2f, 0.0f},
+ {+0x1.0p-1f, 1.0f}, // +0.5
+ {+0x1.000002p-1f, 1.0f},
+
+ {-0x1.fffffep-2f, 0.0f},
+ {-0x1.0p-1f, 0.0f}, // -0.5
+ {-0x1.000002p-1f, -1.0f},
+ };
+
+ for(float[] testCase : testCases) {
+ failures += testNearHalfCases(testCase[0], (int)testCase[1]);
+ }
+
+ return failures;
+ }
+
+ private static int testNearHalfCases(float input, float expected) {
+ int failures = 0;
+
+ failures += Tests.test("Math.round", input, Math.round(input), expected);
+ failures += Tests.test("StrictMath.round", input, StrictMath.round(input), expected);
+
+ return failures;
+ }
+}
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/ProcessBuilder/Basic.java
--- a/test/java/lang/ProcessBuilder/Basic.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/ProcessBuilder/Basic.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -26,7 +26,7 @@
* @bug 4199068 4738465 4937983 4930681 4926230 4931433 4932663 4986689
* 5026830 5023243 5070673 4052517 4811767 6192449 6397034 6413313
* 6464154 6523983 6206031 4960438 6631352 6631966 6850957 6850958
- * 4947220 7018606
+ * 4947220 7018606 7034570
* @summary Basic tests for Process and Environment Variable code
* @run main/othervm/timeout=300 Basic
* @author Martin Buchholz
@@ -1440,11 +1440,12 @@
// Check for sort order of environment variables on Windows.
//----------------------------------------------------------------
try {
+ String systemRoot = "SystemRoot=" + System.getenv("SystemRoot");
// '+' < 'A' < 'Z' < '_' < 'a' < 'z' < '~'
String[]envp = {"FOO=BAR","BAZ=GORP","QUUX=",
- "+=+", "_=_", "~=~"};
+ "+=+", "_=_", "~=~", systemRoot};
String output = nativeEnv(envp);
- String expected = "+=+\nBAZ=GORP\nFOO=BAR\nQUUX=\n_=_\n~=~\n";
+ String expected = "+=+\nBAZ=GORP\nFOO=BAR\nQUUX=\n"+systemRoot+"\n_=_\n~=~\n";
// On Windows, Java must keep the environment sorted.
// Order is random on Unix, so this test does the sort.
if (! Windows.is())
@@ -1453,6 +1454,21 @@
} catch (Throwable t) { unexpected(t); }
//----------------------------------------------------------------
+ // Test Runtime.exec(...envp...)
+ // and check SystemRoot gets set automatically on Windows
+ //----------------------------------------------------------------
+ try {
+ if (Windows.is()) {
+ String systemRoot = "SystemRoot=" + System.getenv("SystemRoot");
+ String[]envp = {"FOO=BAR","BAZ=GORP","QUUX=",
+ "+=+", "_=_", "~=~"};
+ String output = nativeEnv(envp);
+ String expected = "+=+\nBAZ=GORP\nFOO=BAR\nQUUX=\n"+systemRoot+"\n_=_\n~=~\n";
+ equal(output, expected);
+ }
+ } catch (Throwable t) { unexpected(t); }
+
+ //----------------------------------------------------------------
// System.getenv() must be consistent with System.getenv(String)
//----------------------------------------------------------------
try {
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/Runtime/exec/Duped.java
--- a/test/java/lang/Runtime/exec/Duped.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/Runtime/exec/Duped.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/Runtime/shutdown/ShutdownHooks.java
--- a/test/java/lang/Runtime/shutdown/ShutdownHooks.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/Runtime/shutdown/ShutdownHooks.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/System/finalization/FinExit.sh
--- a/test/java/lang/System/finalization/FinExit.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/System/finalization/FinExit.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#! /bin/sh
#
-# Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/Thread/StartOOMTest.java
--- a/test/java/lang/Thread/StartOOMTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/Thread/StartOOMTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/annotation/loaderLeak/LoaderLeak.sh
--- a/test/java/lang/annotation/loaderLeak/LoaderLeak.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/annotation/loaderLeak/LoaderLeak.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2004, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/instrument/BootClassPath/Setup.java
--- a/test/java/lang/instrument/BootClassPath/Setup.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/instrument/BootClassPath/Setup.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * 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.
*
* This code is free software; you can redistribute it and/or modify it
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh
--- a/test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh Wed Apr 20 09:31:11 2011 -0700
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/instrument/ilib/Inject.java
--- a/test/java/lang/instrument/ilib/Inject.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/instrument/ilib/Inject.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/instrument/ilib/InjectBytecodes.java
--- a/test/java/lang/instrument/ilib/InjectBytecodes.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/instrument/ilib/InjectBytecodes.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2010, 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
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/6987555/Test6987555.java
--- a/test/java/lang/invoke/6987555/Test6987555.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/6987555/Test6987555.java Wed Apr 20 09:31:11 2011 -0700
@@ -27,7 +27,7 @@
* @bug 6987555
* @summary JSR 292 unboxing to a boolean value fails on big-endian SPARC
*
- * @run main/othervm -Xint -ea -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles -XX:+EnableInvokeDynamic -XX:+UnlockDiagnosticVMOptions -XX:+VerifyMethodHandles Test6987555
+ * @run main/othervm -Xint -ea -XX:+UnlockDiagnosticVMOptions -XX:+VerifyMethodHandles Test6987555
*/
import java.lang.invoke.*;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/6991596/Test6991596.java
--- a/test/java/lang/invoke/6991596/Test6991596.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/6991596/Test6991596.java Wed Apr 20 09:31:11 2011 -0700
@@ -27,7 +27,7 @@
* @bug 6991596
* @summary JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
*
- * @run main/othervm -ea -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles -XX:+EnableInvokeDynamic -XX:+UnlockDiagnosticVMOptions -XX:+VerifyMethodHandles Test6991596
+ * @run main/othervm -ea -XX:+UnlockDiagnosticVMOptions -XX:+VerifyMethodHandles Test6991596
*/
import java.lang.invoke.*;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/InvokeDynamicPrintArgs.java
--- a/test/java/lang/invoke/InvokeDynamicPrintArgs.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/InvokeDynamicPrintArgs.java Wed Apr 20 09:31:11 2011 -0700
@@ -25,9 +25,9 @@
* @summary smoke test for invokedynamic instructions
* @build indify.Indify
* @compile InvokeDynamicPrintArgs.java
- * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic
+ * @run main/othervm
* indify.Indify
- * --verify-specifier-count=3 --transitionalJSR292=false
+ * --verify-specifier-count=3
* --expand-properties --classpath ${test.classes}
* --java test.java.lang.invoke.InvokeDynamicPrintArgs --check-output
*/
@@ -63,7 +63,8 @@
String testClassPath = System.getProperty("build.test.classes.dir");
if (testClassPath == null) throw new RuntimeException();
String[] args = new String[]{
- "--verify-specifier-count=3", "--transitionalJSR292=false",
+ "--verify-specifier-count=3",
+ "--verbose",
"--expand-properties", "--classpath", testClassPath,
"--java", "test.java.lang.invoke.InvokeDynamicPrintArgs", "--check-output"
};
@@ -159,16 +160,14 @@
shouldNotCallThis();
return ((CallSite) MH_bsm2().invokeGeneric(lookup(),
"bar", methodType(void.class, String.class, int.class)
- , new Object[] { Void.class, "void type!",
- 1, 234.5F, 67.5, (long)89 }
+ , Void.class, "void type!", 1, 234.5F, 67.5, (long)89
)).dynamicInvoker();
}
private static MethodHandle INDY_bar2() throws Throwable {
shouldNotCallThis();
return ((CallSite) MH_bsm2().invokeGeneric(lookup(),
"bar2", methodType(void.class, String.class, int.class)
- , new Object[] { Void.class, "void type!",
- 1, 234.5F, 67.5, (long)89 }
+ , Void.class, "void type!", 1, 234.5F, 67.5, (long)89
)).dynamicInvoker();
}
private static MethodHandle INDY_baz() throws Throwable {
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/InvokeGenericTest.java
--- a/test/java/lang/invoke/InvokeGenericTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/InvokeGenericTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -25,8 +25,8 @@
/* @test
* @summary unit tests for java.lang.invoke.MethodHandle.invokeGeneric
- * @compile -XDallowTransitionalJSR292=no -target 7 InvokeGenericTest.java
- * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.lang.invoke.InvokeGenericTest
+ * @compile -target 7 InvokeGenericTest.java
+ * @run junit/othervm test.java.lang.invoke.InvokeGenericTest
*/
package test.java.lang.invoke;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/JavaDocExamplesTest.java
--- a/test/java/lang/invoke/JavaDocExamplesTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/JavaDocExamplesTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -25,8 +25,8 @@
/* @test
* @summary example code used in javadoc for java.lang.invoke API
- * @compile -XDallowTransitionalJSR292=no JavaDocExamplesTest.java
- * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.lang.invoke.JavaDocExamplesTest
+ * @compile JavaDocExamplesTest.java
+ * @run junit/othervm test.java.lang.invoke.JavaDocExamplesTest
*/
/*
@@ -34,7 +34,6 @@
$ $JAVA7X_HOME/bin/javac -cp $JUNIT4_JAR -d /tmp/Classes \
$DAVINCI/sources/jdk/test/java/lang/invoke/JavaDocExamplesTest.java
$ $JAVA7X_HOME/bin/java -cp $JUNIT4_JAR:/tmp/Classes \
- -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles \
-Dtest.java.lang.invoke.JavaDocExamplesTest.verbosity=1 \
test.java.lang.invoke.JavaDocExamplesTest
----
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/MethodHandlesTest.java
--- a/test/java/lang/invoke/MethodHandlesTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/MethodHandlesTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -25,8 +25,8 @@
/* @test
* @summary unit tests for java.lang.invoke.MethodHandles
- * @compile -source 7 -target 7 -XDallowTransitionalJSR292=no MethodHandlesTest.java
- * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.lang.invoke.MethodHandlesTest
+ * @compile -source 7 -target 7 MethodHandlesTest.java
+ * @run junit/othervm test.java.lang.invoke.MethodHandlesTest
*/
package test.java.lang.invoke;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/MethodTypeTest.java
--- a/test/java/lang/invoke/MethodTypeTest.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/MethodTypeTest.java Wed Apr 20 09:31:11 2011 -0700
@@ -26,7 +26,7 @@
/* @test
* @summary unit tests for java.lang.invoke.MethodType
* @compile MethodTypeTest.java
- * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.lang.invoke.MethodTypeTest
+ * @run junit/othervm test.java.lang.invoke.MethodTypeTest
*/
package test.java.lang.invoke;
diff -r 0865aa0ad9b2 -r 6f8a4d334fb2 test/java/lang/invoke/indify/Indify.java
--- a/test/java/lang/invoke/indify/Indify.java Tue Apr 19 10:26:18 2011 -0700
+++ b/test/java/lang/invoke/indify/Indify.java Wed Apr 20 09:31:11 2011 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -89,19 +89,15 @@
$ JAVA_HOME=(some recent OpenJDK 7 build)
$ ant
$ $JAVA_HOME/bin/java -cp build/classes indify.Indify --overwrite --dest build/testout build/classes/indify/Example.class
-$ $JAVA_HOME/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic -cp build/classes indify.Example
+$ $JAVA_HOME/bin/java -cp build/classes indify.Example
MT = (java.lang.Object)java.lang.Object
MH = adder(int,int)java.lang.Integer
adder(1,2) = 3
calling indy: 42
-$ $JAVA_HOME/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic -cp build/testout indify.Example
+$ $JAVA_HOME/bin/java -cp build/testout indify.Example
(same output as above)
*
*
- * Before OpenJDK build b123, the format of {@code CONSTANT_InvokeDynamic} is in transition,
- * and the switch {@code --transitionalJSR292=yes} is recommended.
- * It is turned off by default, but users of earlier builds may need to turn it on.
- *
* A version of this transformation built on top of http://asm.ow2.org/ would be welcome.
* @author John Rose
*/
@@ -117,7 +113,6 @@
public boolean overwrite = false;
public boolean quiet = false;
public boolean verbose = false;
- public boolean transitionalJSR292 = false; // final version is distributed
public boolean all = false;
public int verifySpecifierCount = -1;
@@ -203,9 +198,6 @@
case "-v": case "--verbose": case "--verbose=":
verbose = booleanOption(a2); // more output
break;
- case "--transitionalJSR292": case "--transitionalJSR292=":
- transitionalJSR292 = booleanOption(a2); // use older invokedynamic format
- break;
default:
throw new IllegalArgumentException("unrecognized flag: "+a);
}
@@ -330,10 +322,14 @@
if (resolve) resolveClass(c);
return c;
}
+ } catch (ClassNotFoundException ex) {
+ // fall through
+ } catch (IOException ex) {
+ // fall through
} catch (Exception ex) {
- if (ex instanceof IllegalArgumentException)
- // pass error from reportPatternMethods
- throw (IllegalArgumentException) ex;
+ // pass error from reportPatternMethods, etc.
+ if (ex instanceof RuntimeException) throw (RuntimeException) ex;
+ throw new RuntimeException(ex);
}
}
return super.loadClass(name, resolve);
@@ -403,8 +399,7 @@
if (blab++ == 0 && !quiet)
System.err.println("patching "+cf.nameString()+"."+m);
//if (blab == 1) { for (Instruction j = m.instructions(); j != null; j = j.next()) System.out.println(" |"+j); }
- if (con.tag == CONSTANT_InvokeDynamic ||
- con.tag == CONSTANT_InvokeDynamic_17) {
+ if (con.tag == CONSTANT_InvokeDynamic) {
// need to patch the following instruction too,
// but there are usually intervening argument pushes too
Instruction i2 = findPop(i);
@@ -566,7 +561,7 @@
short nt = n12[1];
char cmark = poolMarks[(char)cl];
if (cmark != 0) {
- mark = cmark; // it is a java.dyn.* or java.lang.* method
+ mark = cmark; // it is a java.lang.invoke.* or java.lang.* method
break;
}
String cls = cf.pool.getString(CONSTANT_Class, cl);
@@ -597,8 +592,6 @@
if (s.startsWith("MT_")) return 'T';
else if (s.startsWith("MH_")) return 'H';
else if (s.startsWith("INDY_")) return 'I';
- else if (transitionalJSR292 &&
- s.startsWith("java/dyn/")) return 'D';
else if (s.startsWith("java/lang/invoke/")) return 'D';
else if (s.startsWith("java/lang/")) return 'J';
return 0;
@@ -623,10 +616,6 @@
boolean matchType(String descr, String requiredType) {
if (descr.equals(requiredType)) return true;
- if (transitionalJSR292) {
- String oldType = requiredType.replace("Ljava/lang/invoke/", "Ljava/dyn/");
- if (descr.equals(oldType)) return true;
- }
return false;
}
@@ -872,6 +861,7 @@
continue;
}
break;
+ case "invoke":
case "invokeGeneric":
case "invokeWithArguments":
if (patternMark != 'I') break decode;
@@ -1022,7 +1012,7 @@
private Constant makeInvokeDynamicCon(List