Merge
This commit is contained in:
commit
28ec3ee2b3
4
.hgtags
4
.hgtags
@ -1,3 +1,5 @@
|
||||
94680c6d60ecd9ed3ffd1847706efde7eb947afc jdk-9+174
|
||||
6dd7fda42bab7ecf648cafb0a4e9b4ca11b3094f jdk-9+173
|
||||
dad6746278facbbea57dd462cb56fb743dc0a5f0 jdk-9+172
|
||||
643b5f18c2656fe91b69fea85b07b98d5fad394d jdk-9+171
|
||||
898cbe31fbdae2d25d141384fac746cc244a730c jdk-9+170
|
||||
@ -426,3 +428,5 @@ f113ce12fe24fbd24acf02711372d9f1e1c12426 jdk-10+5
|
||||
c42dc7b58b4d4301ea676a76326fd9bbd403d595 jdk-10+8
|
||||
aa5b01f5e5620438fd39efdb2e2f6365a2c7d898 jdk-10+9
|
||||
b0f2b8ff25a2209b2c807785d75f20e5086bbfc2 jdk-10+10
|
||||
036dbf8b381798e5d31065109714d04d97bf98a4 jdk-10+11
|
||||
e6d70017f5b9adbb2ec82d826973d0251800a3c3 jdk-10+12
|
||||
|
@ -426,3 +426,7 @@ b94be69cbb1d2943b886bf2d458745756df146e4 jdk-10+9
|
||||
4c12464a907db4656c1033f56fa49cba643ac629 jdk-9+171
|
||||
6558c37afe832582238d338578d598f30c6fdd75 jdk-10+10
|
||||
2c25fc24103251f9711a1c280c31e1e41016d90f jdk-9+172
|
||||
6b750cdb823a029a25ff2e560302cc2d28a86cb6 jdk-10+11
|
||||
88d7fd969e7df0e07a53b201cfd29393ca33ede9 jdk-9+173
|
||||
5466f409346e0446ee9a6daeb7f5d75c8fc76823 jdk-9+174
|
||||
8d4ed1e06fe184c9cb08c5b708e7d6f5c066644f jdk-10+12
|
||||
|
@ -910,7 +910,7 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER],
|
||||
$2CFLAGS_JDK="[$]$2CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
|
||||
$2CXXFLAGS_JDK="[$]$2CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
|
||||
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS"
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -D_REENTRANT"
|
||||
$2CFLAGS_JDK="[$]$2CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
|
||||
$2CXXFLAGS_JDK="[$]$2CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
|
||||
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||
@ -975,6 +975,11 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER],
|
||||
fi
|
||||
fi
|
||||
|
||||
# Always enable optional macros for VM.
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -D__STDC_FORMAT_MACROS"
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -D__STDC_LIMIT_MACROS"
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
# Setup target OS define. Use OS target name but in upper case.
|
||||
OPENJDK_$1_OS_UPPERCASE=`$ECHO $OPENJDK_$1_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
$2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D$OPENJDK_$1_OS_UPPERCASE"
|
||||
@ -1012,7 +1017,7 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER],
|
||||
elif test "x$OPENJDK_$1_OS" = xsolaris; then
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -DSOLARIS"
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -template=no%extdef -features=no%split_init \
|
||||
-D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except"
|
||||
-D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except"
|
||||
elif test "x$OPENJDK_$1_OS" = xmacosx; then
|
||||
$2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
|
||||
$2JVM_CFLAGS="[$]$2JVM_CFLAGS -D_ALLBSD_SOURCE"
|
||||
|
@ -686,6 +686,7 @@ LIBFFI_LIBS
|
||||
LIBFFI_CFLAGS
|
||||
ALSA_LIBS
|
||||
ALSA_CFLAGS
|
||||
FREETYPE_LICENSE
|
||||
FREETYPE_BUNDLE_LIB_PATH
|
||||
FREETYPE_LIBS
|
||||
FREETYPE_CFLAGS
|
||||
@ -1200,6 +1201,7 @@ with_freetype_include
|
||||
with_freetype_lib
|
||||
with_freetype_src
|
||||
enable_freetype_bundling
|
||||
with_freetype_license
|
||||
with_alsa
|
||||
with_alsa_include
|
||||
with_alsa_lib
|
||||
@ -2149,6 +2151,7 @@ Optional Packages:
|
||||
--with-freetype-src specify directory with freetype sources to
|
||||
automatically build the library (experimental,
|
||||
Windows-only)
|
||||
--with-freetype-license if bundling freetype, also bundle this license file
|
||||
--with-alsa specify prefix directory for the alsa package
|
||||
(expecting the libraries under PATH/lib and the
|
||||
headers under PATH/include)
|
||||
@ -5148,7 +5151,7 @@ VS_SDK_PLATFORM_NAME_2013=
|
||||
#CUSTOM_AUTOCONF_INCLUDE
|
||||
|
||||
# Do not change or remove the following line, it is needed for consistency checks:
|
||||
DATE_WHEN_GENERATED=1496941901
|
||||
DATE_WHEN_GENERATED=1498593591
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@ -51424,7 +51427,7 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
||||
CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
|
||||
CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
|
||||
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
|
||||
JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS"
|
||||
JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT"
|
||||
CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
|
||||
CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
|
||||
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||
@ -51489,6 +51492,11 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
||||
fi
|
||||
fi
|
||||
|
||||
# Always enable optional macros for VM.
|
||||
JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS"
|
||||
JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS"
|
||||
JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
# Setup target OS define. Use OS target name but in upper case.
|
||||
OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE"
|
||||
@ -51526,7 +51534,7 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
||||
elif test "x$OPENJDK_TARGET_OS" = xsolaris; then
|
||||
JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS"
|
||||
JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \
|
||||
-D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except"
|
||||
-D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except"
|
||||
elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
|
||||
COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
|
||||
JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE"
|
||||
@ -52252,7 +52260,7 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
||||
OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
|
||||
OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
|
||||
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS"
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT"
|
||||
OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
|
||||
OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
|
||||
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||
@ -52317,6 +52325,11 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
||||
fi
|
||||
fi
|
||||
|
||||
# Always enable optional macros for VM.
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS"
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS"
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
# Setup target OS define. Use OS target name but in upper case.
|
||||
OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE"
|
||||
@ -52354,7 +52367,7 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
||||
elif test "x$OPENJDK_BUILD_OS" = xsolaris; then
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS"
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \
|
||||
-D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except"
|
||||
-D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except"
|
||||
elif test "x$OPENJDK_BUILD_OS" = xmacosx; then
|
||||
OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
|
||||
OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE"
|
||||
@ -53976,7 +53989,7 @@ $as_echo "no, forced" >&6; }
|
||||
|
||||
if test "x$ENABLE_AOT" = "xtrue"; then
|
||||
# Only enable AOT on X64 platforms.
|
||||
if test "x$OPENJDK_TARGET_OS" != "xwindows" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
|
||||
if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
|
||||
if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then
|
||||
if test -e "$HOTSPOT_TOPDIR/src/jdk.internal.vm.compiler"; then
|
||||
ENABLE_AOT="true"
|
||||
@ -57991,6 +58004,12 @@ if test "${enable_freetype_bundling+set}" = set; then :
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-freetype-license was given.
|
||||
if test "${with_freetype_license+set}" = set; then :
|
||||
withval=$with_freetype_license;
|
||||
fi
|
||||
|
||||
|
||||
# Need to specify explicitly since it needs to be overridden on some versions of macosx
|
||||
FREETYPE_BASE_NAME=freetype
|
||||
FREETYPE_CFLAGS=
|
||||
@ -63937,6 +63956,153 @@ $as_echo "$BUNDLE_FREETYPE" >&6; }
|
||||
|
||||
fi # end freetype needed
|
||||
|
||||
FREETYPE_LICENSE=""
|
||||
if test "x$with_freetype_license" = "xyes"; then
|
||||
as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5
|
||||
elif test "x$with_freetype_license" != "x"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5
|
||||
$as_echo_n "checking for freetype license... " >&6; }
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5
|
||||
$as_echo "$with_freetype_license" >&6; }
|
||||
FREETYPE_LICENSE="$with_freetype_license"
|
||||
|
||||
# Only process if variable expands to non-empty
|
||||
|
||||
if test "x$FREETYPE_LICENSE" != x; then
|
||||
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
|
||||
|
||||
# Input might be given as Windows format, start by converting to
|
||||
# unix format.
|
||||
path="$FREETYPE_LICENSE"
|
||||
new_path=`$CYGPATH -u "$path"`
|
||||
|
||||
# Cygwin tries to hide some aspects of the Windows file system, such that binaries are
|
||||
# named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
|
||||
# the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
|
||||
# "foo.exe" is OK but "foo" is an error.
|
||||
#
|
||||
# This test is therefore slightly more accurate than "test -f" to check for file precense.
|
||||
# It is also a way to make sure we got the proper file name for the real test later on.
|
||||
test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
|
||||
if test "x$test_shortpath" = x; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5
|
||||
$as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;}
|
||||
as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5
|
||||
fi
|
||||
|
||||
# Call helper function which possibly converts this using DOS-style short mode.
|
||||
# If so, the updated path is stored in $new_path.
|
||||
|
||||
input_path="$new_path"
|
||||
# Check if we need to convert this using DOS-style short mode. If the path
|
||||
# contains just simple characters, use it. Otherwise (spaces, weird characters),
|
||||
# take no chances and rewrite it.
|
||||
# Note: m4 eats our [], so we need to use [ and ] instead.
|
||||
has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
|
||||
if test "x$has_forbidden_chars" != x; then
|
||||
# Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
|
||||
shortmode_path=`$CYGPATH -s -m -a "$input_path"`
|
||||
path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
|
||||
if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
|
||||
# Going to short mode and back again did indeed matter. Since short mode is
|
||||
# case insensitive, let's make it lowercase to improve readability.
|
||||
shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||
# Now convert it back to Unix-style (cygpath)
|
||||
input_path=`$CYGPATH -u "$shortmode_path"`
|
||||
new_path="$input_path"
|
||||
fi
|
||||
fi
|
||||
|
||||
test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
|
||||
if test "x$test_cygdrive_prefix" = x; then
|
||||
# As a simple fix, exclude /usr/bin since it's not a real path.
|
||||
if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
|
||||
# The path is in a Cygwin special directory (e.g. /home). We need this converted to
|
||||
# a path prefixed by /cygdrive for fixpath to work.
|
||||
new_path="$CYGWIN_ROOT_PATH$input_path"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$path" != "x$new_path"; then
|
||||
FREETYPE_LICENSE="$new_path"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5
|
||||
$as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;}
|
||||
fi
|
||||
|
||||
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
|
||||
|
||||
path="$FREETYPE_LICENSE"
|
||||
has_colon=`$ECHO $path | $GREP ^.:`
|
||||
new_path="$path"
|
||||
if test "x$has_colon" = x; then
|
||||
# Not in mixed or Windows style, start by that.
|
||||
new_path=`cmd //c echo $path`
|
||||
fi
|
||||
|
||||
|
||||
input_path="$new_path"
|
||||
# Check if we need to convert this using DOS-style short mode. If the path
|
||||
# contains just simple characters, use it. Otherwise (spaces, weird characters),
|
||||
# take no chances and rewrite it.
|
||||
# Note: m4 eats our [], so we need to use [ and ] instead.
|
||||
has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
|
||||
if test "x$has_forbidden_chars" != x; then
|
||||
# Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
|
||||
new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||
fi
|
||||
|
||||
|
||||
windows_path="$new_path"
|
||||
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
|
||||
unix_path=`$CYGPATH -u "$windows_path"`
|
||||
new_path="$unix_path"
|
||||
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
|
||||
unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
|
||||
new_path="$unix_path"
|
||||
fi
|
||||
|
||||
if test "x$path" != "x$new_path"; then
|
||||
FREETYPE_LICENSE="$new_path"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5
|
||||
$as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;}
|
||||
fi
|
||||
|
||||
# Save the first 10 bytes of this path to the storage, so fixpath can work.
|
||||
all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
|
||||
|
||||
else
|
||||
# We're on a unix platform. Hooray! :)
|
||||
path="$FREETYPE_LICENSE"
|
||||
has_space=`$ECHO "$path" | $GREP " "`
|
||||
if test "x$has_space" != x; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5
|
||||
$as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;}
|
||||
as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
|
||||
fi
|
||||
|
||||
# Use eval to expand a potential ~
|
||||
eval path="$path"
|
||||
if test ! -f "$path" && test ! -d "$path"; then
|
||||
as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5
|
||||
fi
|
||||
|
||||
if test -d "$path"; then
|
||||
FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`"
|
||||
else
|
||||
dir="`$DIRNAME "$path"`"
|
||||
base="`$BASENAME "$path"`"
|
||||
FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test ! -f "$FREETYPE_LICENSE"; then
|
||||
as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -194,6 +194,8 @@ AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
|
||||
[specify directory with freetype sources to automatically build the library (experimental, Windows-only)])])
|
||||
AC_ARG_ENABLE(freetype-bundling, [AS_HELP_STRING([--disable-freetype-bundling],
|
||||
[disable bundling of the freetype library with the build result @<:@enabled on Windows or when using --with-freetype, disabled otherwise@:>@])])
|
||||
AC_ARG_WITH(freetype-license, [AS_HELP_STRING([--with-freetype-license],
|
||||
[if bundling freetype, also bundle this license file])])
|
||||
|
||||
# Need to specify explicitly since it needs to be overridden on some versions of macosx
|
||||
FREETYPE_BASE_NAME=freetype
|
||||
@ -443,7 +445,21 @@ AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
|
||||
|
||||
fi # end freetype needed
|
||||
|
||||
FREETYPE_LICENSE=""
|
||||
if test "x$with_freetype_license" = "xyes"; then
|
||||
AC_MSG_ERROR([--with-freetype-license must have a value])
|
||||
elif test "x$with_freetype_license" != "x"; then
|
||||
AC_MSG_CHECKING([for freetype license])
|
||||
AC_MSG_RESULT([$with_freetype_license])
|
||||
FREETYPE_LICENSE="$with_freetype_license"
|
||||
BASIC_FIXUP_PATH(FREETYPE_LICENSE)
|
||||
if test ! -f "$FREETYPE_LICENSE"; then
|
||||
AC_MSG_ERROR([$FREETYPE_LICENSE cannot be found])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST(FREETYPE_BUNDLE_LIB_PATH)
|
||||
AC_SUBST(FREETYPE_CFLAGS)
|
||||
AC_SUBST(FREETYPE_LIBS)
|
||||
AC_SUBST(FREETYPE_LICENSE)
|
||||
])
|
||||
|
@ -312,6 +312,7 @@ DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
|
||||
FREETYPE_LIBS:=@FREETYPE_LIBS@
|
||||
FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
|
||||
FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
|
||||
FREETYPE_LICENSE=@FREETYPE_LICENSE@
|
||||
CUPS_CFLAGS:=@CUPS_CFLAGS@
|
||||
ALSA_LIBS:=@ALSA_LIBS@
|
||||
ALSA_CFLAGS:=@ALSA_CFLAGS@
|
||||
|
@ -387,7 +387,7 @@ var getJibProfilesCommon = function (input, data) {
|
||||
// on such hardware.
|
||||
if (input.build_cpu == "sparcv9") {
|
||||
var cpu_brand = $EXEC("bash -c \"kstat -m cpu_info | grep brand | head -n1 | awk '{ print \$2 }'\"");
|
||||
if (cpu_brand.trim().match('SPARC-.7')) {
|
||||
if (cpu_brand.trim().match('SPARC-.[78]')) {
|
||||
boot_jdk_revision = "8u20";
|
||||
boot_jdk_subdirpart = "1.8.0_20";
|
||||
}
|
||||
@ -893,6 +893,16 @@ var getJibProfilesProfiles = function (input, common, data) {
|
||||
}
|
||||
});
|
||||
|
||||
// The windows ri profile needs to add the freetype license file
|
||||
profilesRiFreetype = {
|
||||
"windows-x86-ri": {
|
||||
configure_args: "--with-freetype-license="
|
||||
+ input.get("freetype", "install_path")
|
||||
+ "/freetype-2.7.1-v120-x86/freetype.md"
|
||||
}
|
||||
};
|
||||
profiles = concatObjects(profiles, profilesRiFreetype);
|
||||
|
||||
// Generate the missing platform attributes
|
||||
profiles = generatePlatformAttributes(profiles);
|
||||
profiles = generateDefaultMakeTargetsConfigureArg(common, profiles);
|
||||
|
@ -426,3 +426,7 @@ aed5a4edc8275c1c50195503756ff92bfe0197f5 jdk-10+7
|
||||
c62e5964cfcf144d8f72e9ba69757897785349a9 jdk-9+171
|
||||
080c37fd77e2c4629b91059298e37758afbdbc46 jdk-10+10
|
||||
95ed14547ca9246baed34f90ef3ca13217538a8c jdk-9+172
|
||||
8ef8a0f1c4dfea17e10125e1f885920538e63085 jdk-10+11
|
||||
534ba4f8cfcf12accc5b9adb943103f2ff79fe16 jdk-9+173
|
||||
3615768c12904e29bb2ec1b506cd4633cd8a9ced jdk-9+174
|
||||
00ae6307d78bac49883ddc85d687aa88c49f3971 jdk-10+12
|
||||
|
@ -62,6 +62,8 @@ import com.sun.corba.se.impl.orbutil.GetPropertyAction;
|
||||
* attempts to narrow it to conform to
|
||||
* the given interface. If the operation is successful the result will be an
|
||||
* object of the specified type, otherwise an exception will be thrown.
|
||||
*
|
||||
* <p>See also {@extLink rmi_iiop_guides RMI-IIOP developer's guides}.</p>
|
||||
*/
|
||||
public class PortableRemoteObject {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* the Activity, or that the Activity completed in a manner other than that
|
||||
* originally requested.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,8 +31,8 @@ package org.omg.CORBA;
|
||||
* Activity context was necessary to perform the invoked operation, but one
|
||||
* was not found associated with the calling thread.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,10 +37,9 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning of
|
||||
* minor codes</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions},
|
||||
* {@extLink jidlexception_minorcodes meaning of minor codes}
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +30,8 @@ package org.omg.CORBA;
|
||||
* support the quality of service required by an invocation parameter that
|
||||
* has a quality of service semantics associated with it.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +30,8 @@ package org.omg.CORBA;
|
||||
* the legal bounds for the object that a method is trying
|
||||
* to access.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class Bounds extends org.omg.CORBA.UserException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,8 +29,8 @@ package org.omg.CORBA;
|
||||
* This exception is raised whenever meaningful communication is not possible
|
||||
* between client and server native code sets.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,11 +33,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning
|
||||
* of minor codes</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning of
|
||||
* minor codes</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,11 +35,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning
|
||||
* of minor codes</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,8 +36,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,11 +33,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning
|
||||
* of minor codes</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes meaning of minor codes}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* suspended. It is also raised when an attempted invocation is made that
|
||||
* is incompatible with the Activity's current state.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,11 +37,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class INV_POLICY extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +39,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
@ -36,8 +36,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
* See the section {extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,11 +34,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
@ -184,6 +184,8 @@ import java.security.PrivilegedAction;
|
||||
* Therefore, the implementation first checks the ${java.home}/conf directory for orb.properties,
|
||||
* and thereafter the ${java.home}/lib directory.
|
||||
*
|
||||
* <p>See also {@extLink idl_guides IDL developer's guide}.</p>
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
abstract public class ORB {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class PERSIST_STORE extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* This exception is also raised if the current effective RebindPolicy has
|
||||
* a value of NO_RECONNECT and a connection must be reopened.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -44,8 +44,8 @@ import com.sun.corba.se.impl.util.SUNVMCID;
|
||||
* declared in signatures of the Java methods mapped from operations in
|
||||
* IDL interfaces.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public abstract class SystemException extends java.lang.RuntimeException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +30,8 @@ package org.omg.CORBA;
|
||||
* specified time-to-live period has been exceeded. It is a standard system
|
||||
* exception because time-to-live QoS can be applied to any invocation.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,8 +35,8 @@ package org.omg.CORBA;
|
||||
* a string describing the exception.
|
||||
* The OMG CORBA core 2.4 specification has details.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class TRANSACTION_MODE extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,8 +33,8 @@ package org.omg.CORBA;
|
||||
* a string describing the exception.
|
||||
* The OMG Transaction Service specfication has details.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class TRANSACTION_REQUIRED extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,8 +36,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class TRANSACTION_ROLLEDBACK extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,8 +35,8 @@ package org.omg.CORBA;
|
||||
* a string describing the exception.
|
||||
* The OMG CORBA core 2.4 specification has details.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class TRANSACTION_UNAVAILABLE extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,8 +36,8 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class TRANSIENT extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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,11 @@ package org.omg.CORBA;
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
* See the section {@extLink jidlexception_minorcodes Minor Code Meaning}
|
||||
* to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class UNKNOWN extends SystemException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,8 +32,8 @@ package org.omg.CORBA;
|
||||
* <code>UnknownUserException</code> object. This is available from the
|
||||
* <code>Environment</code> object returned by the method <code>Request.env</code>.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
* @see Request
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,8 +31,8 @@ package org.omg.CORBA;
|
||||
* means that they need to
|
||||
* be declared in method signatures.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
public abstract class UserException extends java.lang.Exception implements org.omg.CORBA.portable.IDLEntity {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ package org.omg.CORBA;
|
||||
* which the client originally sent the request.
|
||||
* See the OMG Transaction Service Specification for details.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* <p>See also {@extLink jidlexception documentation on Java IDL exceptions}.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
public final class WrongTransaction extends UserException {
|
||||
|
@ -42,7 +42,7 @@ is the name of an IDL interface.
|
||||
</UL>
|
||||
|
||||
|
||||
<H2><a name="helper">Helper Files</a></H2>
|
||||
<H2><a id="helper">Helper Files</a></H2>
|
||||
|
||||
<P>Helper files supply several static methods needed to manipulate the type.
|
||||
These include <code>Any</code> insert and extract operations for the type,
|
||||
@ -57,7 +57,7 @@ the object reference does not support the requested type. A different system exc
|
||||
is raised to indicate other kinds of errors. Trying to narrow
|
||||
a null will always succeed with a return value of null.
|
||||
|
||||
<H2><a name="holder">Holder Files</a></H2>
|
||||
<H2><a id="holder">Holder Files</a></H2>
|
||||
|
||||
<P>Support for out and inout parameter passing modes requires the use of additional holder classes.
|
||||
These classes are available for all of the basic IDL datatypes in the <code>org.omg.CORBA</code> package
|
||||
@ -74,7 +74,7 @@ false for boolean, 0 for numeric and char types, null for strings, null for obje
|
||||
the <code>org.omg.CORBA.portable.Streamable</code> interface.
|
||||
|
||||
|
||||
<H2><a name="operations">Operations Files</a></H2>
|
||||
<H2><a id="operations">Operations Files</a></H2>
|
||||
|
||||
<P>A non abstract IDL interface is mapped to two public Java interfaces:
|
||||
a <em>signature</em> interface and an <em>operations</em> interface.
|
||||
@ -96,7 +96,7 @@ expressed in IDL is reflected in both the Java signature
|
||||
interface and operations interface hierarchies.
|
||||
|
||||
|
||||
<H2><a name="stub">Stubs</a></H2>
|
||||
<H2><a id="stub">Stubs</a></H2>
|
||||
|
||||
<P>For the mapping of a non-object-oriented language, there will be
|
||||
a programming interface to the stubs for each interface type. Generally, the stubs
|
||||
|
@ -147,9 +147,7 @@ resolve initial object references. These are:
|
||||
<code><b>register_initial_reference</b>(String id, org.omg.CORBA.Object obj)</code>
|
||||
</UL>
|
||||
|
||||
<P>An example that uses some of these methods is <A
|
||||
HREF="{@docRoot}/../technotes/guides/idl/GShome.html">
|
||||
<em>Getting Started with Java IDL</em></A>.
|
||||
<P>An example that uses some of these methods is {@extLink idl_getting_started Getting Started with Java IDL}.
|
||||
|
||||
<H2>
|
||||
Exceptions</H2>
|
||||
@ -158,9 +156,8 @@ Java programming language. If a method is defined to throw an exception,
|
||||
then any code using that method must have a <code>try</code>/<code>catch</code>
|
||||
block and handle that exception when it is thrown.
|
||||
|
||||
<P>The documentation on <A
|
||||
HREF="{@docRoot}/../technotes/guides/idl/jidlExceptions.html"><em>Java
|
||||
IDL exceptions</em></A> has more information and explains the difference between
|
||||
<P>The documentation on {@extLink jidlexception Java IDL exceptions }
|
||||
has more information and explains the difference between
|
||||
system exceptions and user-defined exceptions.
|
||||
|
||||
<P>The following is a list of the system exceptions (which are unchecked
|
||||
@ -447,8 +444,8 @@ object, whereas the <code>narrow</code> method for an interface that is abstract
|
||||
will take an object in the Java programming language. The helper class for a
|
||||
non-abstract interface that has at least one abstract base interface will provide
|
||||
both versions of the <code>narrow</code> method.
|
||||
<P>The <A HREF="{@docRoot}/../technotes/guides/idl/jidlExample.html"><em>Hello World</em></A>
|
||||
tutorial uses a <code>narrow</code> method that looks like this:
|
||||
<P>The {@extLink idl_guides Hello World tutorial}
|
||||
uses a <code>narrow</code> method that looks like this:
|
||||
<PRE>
|
||||
// create and initialize the ORB
|
||||
ORB orb = ORB.init(args, null);
|
||||
@ -548,6 +545,7 @@ abstract public class AccountHelper
|
||||
}
|
||||
</PRE>
|
||||
|
||||
<a id="value"></a>
|
||||
<h3>Value Type Helper Classes</h3>
|
||||
A helper class for a value type includes different renderings of
|
||||
the same methods generated for non-value type methods. The main difference
|
||||
@ -861,8 +859,8 @@ ValueMember
|
||||
Related Documentation</H1>
|
||||
For overviews, guides, and a tutorial, please see:
|
||||
<UL>
|
||||
<LI>
|
||||
<A HREF="{@docRoot}/../technotes/guides/idl/index.html">Java IDL home page</A>
|
||||
<LI> {@extLink idl_guides Java IDL tutorial page}.</LI>
|
||||
<LI> {@extLink rmi_iiop_guides RMI-IIOP developer's guide}.</LI>
|
||||
</UL>
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<!--
|
||||
/*
|
||||
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -334,14 +334,12 @@ href="http://www.omg.org/cgi-bin/doc?ptc/00-08-07">ptc/00-08-07</a>)
|
||||
For an overview and examples of how to use the
|
||||
<code>CosNaming</code> API, please see:
|
||||
<ul>
|
||||
<li><a href="../../../../technotes/guides/idl/tnameserv.html">
|
||||
Naming Service</a>
|
||||
<li>{@extLink tnameserv NamingService}
|
||||
</ul>
|
||||
<p>
|
||||
For an overview of Java IDL, please see:
|
||||
<ul>
|
||||
<li><a href="../../../../technotes/guides/idl/index.html">
|
||||
Java IDL home page</a>
|
||||
<li>{@extLink idl_guides Java IDL developer's home page}
|
||||
</ul>
|
||||
|
||||
@since JDK1.3
|
||||
|
@ -157,7 +157,7 @@ follows exactly the same pattern as the other holder classes for basic types.
|
||||
<H2>Related Documentation</H2>
|
||||
|
||||
<P>For an overview of Java IDL, please see:
|
||||
<A HREF="../../../../technotes/guides/idl/index.html">Java IDL home page</A>.
|
||||
{@extLink idl_guides Java IDL home page}.
|
||||
|
||||
<H2>Example Code</H2>
|
||||
<a id="sampleserver"></a>
|
||||
|
@ -586,3 +586,7 @@ f5ded0cf954c770deeecb80f2ba1ba6a05cd979b jdk-10+8
|
||||
d53171650a2cc6c6f699c966c533b914ca9c0602 jdk-9+171
|
||||
c6cd3ec8d46b034e57c86399380ffcf7f25706e4 jdk-10+10
|
||||
1ae9e84f68b359420d2d153ecfe5ee2903e33a2e jdk-9+172
|
||||
7f14e550f1e8abea41c223e5fdad2261e99ba929 jdk-10+11
|
||||
e64b1cb48d6e7703928a9d1da106fc27f8cb65fd jdk-9+173
|
||||
944791f8160185bffa13fbb821fc09b6198f1f25 jdk-9+174
|
||||
070aa7a2eb14c4645f7eb31384cba0a2ba72a4b5 jdk-10+12
|
||||
|
@ -139,7 +139,7 @@ void metadata_Relocation::pd_fix_value(address x) {
|
||||
#ifdef AARCH64
|
||||
#ifdef COMPILER2
|
||||
NativeMovConstReg* ni = nativeMovConstReg_at(addr());
|
||||
if (ni->is_movz()) {
|
||||
if (ni->is_mov_slow()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -26,6 +26,15 @@
|
||||
/**
|
||||
* Defines the implementation of the HotSpot Serviceability Agent.
|
||||
*
|
||||
* <p> This module includes the <em>{@index jhsdb jhsdb tool}</em> tool to
|
||||
* attach to a running Java Virtual Machine (JVM) or launch a postmortem
|
||||
* debugger to analyze the content of a core-dump from a crashed JVM.
|
||||
*
|
||||
* <dl style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">
|
||||
* <dt class="simpleTagLabel">Tool Guides:</dt>
|
||||
* <dd> {@extLink jhsdb_tool_reference jhsdb}</dd>
|
||||
* </dl>
|
||||
*
|
||||
* @moduleGraph
|
||||
* @since 9
|
||||
*/
|
||||
|
@ -251,7 +251,13 @@ public class StandardGraphBuilderPlugins {
|
||||
|
||||
for (JavaKind kind : new JavaKind[]{JavaKind.Int, JavaKind.Long, JavaKind.Object}) {
|
||||
Class<?> javaClass = kind == JavaKind.Object ? Object.class : kind.toJavaClass();
|
||||
r.register5("compareAndSwap" + kind.name(), Receiver.class, Object.class, long.class, javaClass, javaClass, new InvocationPlugin() {
|
||||
String casName;
|
||||
if (Java8OrEarlier) {
|
||||
casName = "compareAndSwap";
|
||||
} else {
|
||||
casName = "compareAndSet";
|
||||
}
|
||||
r.register5(casName + kind.name(), Receiver.class, Object.class, long.class, javaClass, javaClass, new InvocationPlugin() {
|
||||
@Override
|
||||
public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver unsafe, ValueNode object, ValueNode offset, ValueNode expected, ValueNode x) {
|
||||
// Emits a null-check for the otherwise unused receiver
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "precompiled.hpp"
|
||||
#include "opto/arraycopynode.hpp"
|
||||
#include "opto/graphKit.hpp"
|
||||
#include "runtime/sharedRuntime.hpp"
|
||||
|
||||
ArrayCopyNode::ArrayCopyNode(Compile* C, bool alloc_tightly_coupled, bool has_negative_length_guard)
|
||||
: CallNode(arraycopy_type(), NULL, TypeRawPtr::BOTTOM),
|
||||
@ -631,42 +632,76 @@ bool ArrayCopyNode::may_modify(const TypeOopPtr *t_oop, PhaseTransform *phase) {
|
||||
return CallNode::may_modify_arraycopy_helper(dest_t, t_oop, phase);
|
||||
}
|
||||
|
||||
bool ArrayCopyNode::may_modify_helper(const TypeOopPtr *t_oop, Node* n, PhaseTransform *phase, ArrayCopyNode*& ac) {
|
||||
if (n->Opcode() == Op_StoreCM ||
|
||||
n->Opcode() == Op_StoreB) {
|
||||
// Ignore card mark stores
|
||||
n = n->in(MemNode::Memory);
|
||||
}
|
||||
|
||||
if (n->is_Proj()) {
|
||||
n = n->in(0);
|
||||
if (n->is_Call() && n->as_Call()->may_modify(t_oop, phase)) {
|
||||
if (n->isa_ArrayCopy() != NULL) {
|
||||
ac = n->as_ArrayCopy();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool ArrayCopyNode::may_modify_helper(const TypeOopPtr *t_oop, Node* n, PhaseTransform *phase, CallNode*& call) {
|
||||
if (n != NULL &&
|
||||
n->is_Call() &&
|
||||
n->as_Call()->may_modify(t_oop, phase) &&
|
||||
(n->as_Call()->is_ArrayCopy() || n->as_Call()->is_call_to_arraycopystub())) {
|
||||
call = n->as_Call();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ArrayCopyNode::may_modify(const TypeOopPtr *t_oop, MemBarNode* mb, PhaseTransform *phase, ArrayCopyNode*& ac) {
|
||||
Node* mem = mb->in(TypeFunc::Memory);
|
||||
|
||||
if (mem->is_MergeMem()) {
|
||||
Node* n = mem->as_MergeMem()->memory_at(Compile::AliasIdxRaw);
|
||||
if (may_modify_helper(t_oop, n, phase, ac)) {
|
||||
return true;
|
||||
} else if (n->is_Phi()) {
|
||||
for (uint i = 1; i < n->req(); i++) {
|
||||
if (n->in(i) != NULL) {
|
||||
if (may_modify_helper(t_oop, n->in(i), phase, ac)) {
|
||||
return true;
|
||||
static Node* step_over_gc_barrier(Node* c) {
|
||||
if (UseG1GC && !GraphKit::use_ReduceInitialCardMarks() &&
|
||||
c != NULL && c->is_Region() && c->req() == 3) {
|
||||
for (uint i = 1; i < c->req(); i++) {
|
||||
if (c->in(i) != NULL && c->in(i)->is_Region() &&
|
||||
c->in(i)->req() == 3) {
|
||||
Node* r = c->in(i);
|
||||
for (uint j = 1; j < r->req(); j++) {
|
||||
if (r->in(j) != NULL && r->in(j)->is_Proj() &&
|
||||
r->in(j)->in(0) != NULL &&
|
||||
r->in(j)->in(0)->Opcode() == Op_CallLeaf &&
|
||||
r->in(j)->in(0)->as_Call()->entry_point() == CAST_FROM_FN_PTR(address, SharedRuntime::g1_wb_post)) {
|
||||
Node* call = r->in(j)->in(0);
|
||||
c = c->in(i == 1 ? 2 : 1);
|
||||
if (c != NULL) {
|
||||
c = c->in(0);
|
||||
if (c != NULL) {
|
||||
c = c->in(0);
|
||||
assert(call->in(0) == NULL ||
|
||||
call->in(0)->in(0) == NULL ||
|
||||
call->in(0)->in(0)->in(0) == NULL ||
|
||||
call->in(0)->in(0)->in(0)->in(0) == NULL ||
|
||||
call->in(0)->in(0)->in(0)->in(0)->in(0) == NULL ||
|
||||
c == call->in(0)->in(0)->in(0)->in(0)->in(0), "bad barrier shape");
|
||||
return c;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
bool ArrayCopyNode::may_modify(const TypeOopPtr *t_oop, MemBarNode* mb, PhaseTransform *phase, ArrayCopyNode*& ac) {
|
||||
|
||||
Node* c = mb->in(0);
|
||||
|
||||
// step over g1 gc barrier if we're at a clone with ReduceInitialCardMarks off
|
||||
c = step_over_gc_barrier(c);
|
||||
|
||||
CallNode* call = NULL;
|
||||
if (c != NULL && c->is_Region()) {
|
||||
for (uint i = 1; i < c->req(); i++) {
|
||||
if (c->in(i) != NULL) {
|
||||
Node* n = c->in(i)->in(0);
|
||||
if (may_modify_helper(t_oop, n, phase, call)) {
|
||||
ac = call->isa_ArrayCopy();
|
||||
assert(c == mb->in(0), "only for clone");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (may_modify_helper(t_oop, c->in(0), phase, call)) {
|
||||
ac = call->isa_ArrayCopy();
|
||||
assert(c == mb->in(0) || (ac != NULL && ac->is_clonebasic() && !GraphKit::use_ReduceInitialCardMarks()), "only for clone");
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -677,37 +712,77 @@ bool ArrayCopyNode::may_modify(const TypeOopPtr *t_oop, MemBarNode* mb, PhaseTra
|
||||
// between offset_lo and offset_hi
|
||||
// if must_modify is true, return true if the copy is guaranteed to
|
||||
// write between offset_lo and offset_hi
|
||||
bool ArrayCopyNode::modifies(intptr_t offset_lo, intptr_t offset_hi, PhaseTransform* phase, bool must_modify) {
|
||||
bool ArrayCopyNode::modifies(intptr_t offset_lo, intptr_t offset_hi, PhaseTransform* phase, bool must_modify) const {
|
||||
assert(_kind == ArrayCopy || _kind == CopyOf || _kind == CopyOfRange, "only for real array copies");
|
||||
|
||||
Node* dest = in(ArrayCopyNode::Dest);
|
||||
Node* src_pos = in(ArrayCopyNode::SrcPos);
|
||||
Node* dest_pos = in(ArrayCopyNode::DestPos);
|
||||
Node* len = in(ArrayCopyNode::Length);
|
||||
Node* dest = in(Dest);
|
||||
Node* dest_pos = in(DestPos);
|
||||
Node* len = in(Length);
|
||||
|
||||
const TypeInt *dest_pos_t = phase->type(dest_pos)->isa_int();
|
||||
const TypeInt *len_t = phase->type(len)->isa_int();
|
||||
const TypeAryPtr* ary_t = phase->type(dest)->isa_aryptr();
|
||||
|
||||
if (dest_pos_t != NULL && len_t != NULL && ary_t != NULL) {
|
||||
BasicType ary_elem = ary_t->klass()->as_array_klass()->element_type()->basic_type();
|
||||
uint header = arrayOopDesc::base_offset_in_bytes(ary_elem);
|
||||
uint elemsize = type2aelembytes(ary_elem);
|
||||
if (dest_pos_t == NULL || len_t == NULL || ary_t == NULL) {
|
||||
return !must_modify;
|
||||
}
|
||||
|
||||
jlong dest_pos_plus_len_lo = (((jlong)dest_pos_t->_lo) + len_t->_lo) * elemsize + header;
|
||||
jlong dest_pos_plus_len_hi = (((jlong)dest_pos_t->_hi) + len_t->_hi) * elemsize + header;
|
||||
jlong dest_pos_lo = ((jlong)dest_pos_t->_lo) * elemsize + header;
|
||||
jlong dest_pos_hi = ((jlong)dest_pos_t->_hi) * elemsize + header;
|
||||
BasicType ary_elem = ary_t->klass()->as_array_klass()->element_type()->basic_type();
|
||||
uint header = arrayOopDesc::base_offset_in_bytes(ary_elem);
|
||||
uint elemsize = type2aelembytes(ary_elem);
|
||||
|
||||
if (must_modify) {
|
||||
if (offset_lo >= dest_pos_hi && offset_hi < dest_pos_plus_len_lo) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (offset_hi >= dest_pos_lo && offset_lo < dest_pos_plus_len_hi) {
|
||||
return true;
|
||||
}
|
||||
jlong dest_pos_plus_len_lo = (((jlong)dest_pos_t->_lo) + len_t->_lo) * elemsize + header;
|
||||
jlong dest_pos_plus_len_hi = (((jlong)dest_pos_t->_hi) + len_t->_hi) * elemsize + header;
|
||||
jlong dest_pos_lo = ((jlong)dest_pos_t->_lo) * elemsize + header;
|
||||
jlong dest_pos_hi = ((jlong)dest_pos_t->_hi) * elemsize + header;
|
||||
|
||||
if (must_modify) {
|
||||
if (offset_lo >= dest_pos_hi && offset_hi < dest_pos_plus_len_lo) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (offset_hi >= dest_pos_lo && offset_lo < dest_pos_plus_len_hi) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// We try to replace a load from the destination of an arraycopy with
|
||||
// a load from the source so the arraycopy has a chance to be
|
||||
// eliminated. It's only valid if the arraycopy doesn't change the
|
||||
// element that would be loaded from the source array.
|
||||
bool ArrayCopyNode::can_replace_dest_load_with_src_load(intptr_t offset_lo, intptr_t offset_hi, PhaseTransform* phase) const {
|
||||
assert(_kind == ArrayCopy || _kind == CopyOf || _kind == CopyOfRange, "only for real array copies");
|
||||
|
||||
Node* src = in(Src);
|
||||
Node* dest = in(Dest);
|
||||
|
||||
// Check whether, assuming source and destination are the same
|
||||
// array, the arraycopy modifies the element from the source we
|
||||
// would load.
|
||||
if ((src != dest && in(SrcPos) == in(DestPos)) || !modifies(offset_lo, offset_hi, phase, false)) {
|
||||
// if not the transformation is legal
|
||||
return true;
|
||||
}
|
||||
|
||||
AllocateNode* src_alloc = AllocateNode::Ideal_allocation(src, phase);
|
||||
AllocateNode* dest_alloc = AllocateNode::Ideal_allocation(dest, phase);
|
||||
|
||||
// Check whether source and destination can be proved to be
|
||||
// different arrays
|
||||
const TypeOopPtr* t_src = phase->type(src)->isa_oopptr();
|
||||
const TypeOopPtr* t_dest = phase->type(dest)->isa_oopptr();
|
||||
|
||||
if (t_src != NULL && t_dest != NULL &&
|
||||
(t_src->is_known_instance() || t_dest->is_known_instance()) &&
|
||||
t_src->instance_id() != t_dest->instance_id()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (MemNode::detect_ptr_independence(src->uncast(), src_alloc, dest->uncast(), dest_alloc, phase)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ private:
|
||||
BasicType copy_type, const Type* value_type, int count);
|
||||
bool finish_transform(PhaseGVN *phase, bool can_reshape,
|
||||
Node* ctl, Node *mem);
|
||||
static bool may_modify_helper(const TypeOopPtr *t_oop, Node* n, PhaseTransform *phase, ArrayCopyNode*& ac);
|
||||
static bool may_modify_helper(const TypeOopPtr *t_oop, Node* n, PhaseTransform *phase, CallNode*& call);
|
||||
|
||||
public:
|
||||
|
||||
@ -167,7 +167,8 @@ public:
|
||||
bool has_negative_length_guard() const { return _has_negative_length_guard; }
|
||||
|
||||
static bool may_modify(const TypeOopPtr *t_oop, MemBarNode* mb, PhaseTransform *phase, ArrayCopyNode*& ac);
|
||||
bool modifies(intptr_t offset_lo, intptr_t offset_hi, PhaseTransform* phase, bool must_modify);
|
||||
bool modifies(intptr_t offset_lo, intptr_t offset_hi, PhaseTransform* phase, bool must_modify) const;
|
||||
bool can_replace_dest_load_with_src_load(intptr_t offset_lo, intptr_t offset_hi, PhaseTransform* phase) const;
|
||||
|
||||
#ifndef PRODUCT
|
||||
virtual void dump_spec(outputStream *st) const;
|
||||
|
@ -1860,6 +1860,9 @@ void IdealLoopTree::dump_head( ) const {
|
||||
if (_required_safept != NULL && _required_safept->size() > 0) {
|
||||
tty->print(" req={"); _required_safept->dump_simple(); tty->print(" }");
|
||||
}
|
||||
if (Verbose) {
|
||||
tty->print(" body={"); _body.dump_simple(); tty->print(" }");
|
||||
}
|
||||
tty->cr();
|
||||
}
|
||||
|
||||
|
@ -913,7 +913,11 @@ Node *PhaseIdealLoop::split_if_with_blocks_pre( Node *n ) {
|
||||
|
||||
if (n->is_ConstraintCast()) {
|
||||
Node* dom_cast = n->as_ConstraintCast()->dominating_cast(this);
|
||||
if (dom_cast != NULL) {
|
||||
// ConstraintCastNode::dominating_cast() uses node control input to determine domination.
|
||||
// Node control inputs don't necessarily agree with loop control info (due to
|
||||
// transformations happened in between), thus additional dominance check is needed
|
||||
// to keep loop info valid.
|
||||
if (dom_cast != NULL && is_dominator(get_ctrl(dom_cast), get_ctrl(n))) {
|
||||
_igvn.replace_node(n, dom_cast);
|
||||
return dom_cast;
|
||||
}
|
||||
|
@ -1047,7 +1047,9 @@ void PhaseMacroExpand::process_users_of_allocation(CallNode *alloc) {
|
||||
// opportunities for allocation elimination
|
||||
Node* src = ac->in(ArrayCopyNode::Src);
|
||||
ac->replace_edge(src, top());
|
||||
if (src->outcnt() == 0) {
|
||||
// src can be top at this point if src and dest of the
|
||||
// arraycopy were the same
|
||||
if (src->outcnt() == 0 && !src->is_top()) {
|
||||
_igvn.remove_dead_node(src);
|
||||
}
|
||||
|
||||
|
@ -718,6 +718,15 @@ Node* PhaseMacroExpand::generate_arraycopy(ArrayCopyNode *ac, AllocateArrayNode*
|
||||
_igvn.replace_node(_ioproj_fallthrough, *io);
|
||||
_igvn.replace_node(_fallthroughcatchproj, *ctrl);
|
||||
|
||||
#ifdef ASSERT
|
||||
const TypeOopPtr* dest_t = _igvn.type(dest)->is_oopptr();
|
||||
if (dest_t->is_known_instance()) {
|
||||
ArrayCopyNode* ac = NULL;
|
||||
assert(ArrayCopyNode::may_modify(dest_t, (*ctrl)->in(0)->as_MemBar(), &_igvn, ac), "dependency on arraycopy lost");
|
||||
assert(ac == NULL, "no arraycopy anymore");
|
||||
}
|
||||
#endif
|
||||
|
||||
return out_mem;
|
||||
}
|
||||
|
||||
@ -1139,8 +1148,25 @@ void PhaseMacroExpand::expand_arraycopy_node(ArrayCopyNode *ac) {
|
||||
const TypeAryPtr* top_src = src_type->isa_aryptr();
|
||||
const TypeAryPtr* top_dest = dest_type->isa_aryptr();
|
||||
|
||||
if (top_src == NULL || top_src->klass() == NULL ||
|
||||
top_dest == NULL || top_dest->klass() == NULL) {
|
||||
BasicType src_elem = T_CONFLICT;
|
||||
BasicType dest_elem = T_CONFLICT;
|
||||
|
||||
if (top_dest != NULL && top_dest->klass() != NULL) {
|
||||
dest_elem = top_dest->klass()->as_array_klass()->element_type()->basic_type();
|
||||
}
|
||||
if (top_src != NULL && top_src->klass() != NULL) {
|
||||
src_elem = top_src->klass()->as_array_klass()->element_type()->basic_type();
|
||||
}
|
||||
if (src_elem == T_ARRAY) src_elem = T_OBJECT;
|
||||
if (dest_elem == T_ARRAY) dest_elem = T_OBJECT;
|
||||
|
||||
if (ac->is_arraycopy_validated() &&
|
||||
dest_elem != T_CONFLICT &&
|
||||
src_elem == T_CONFLICT) {
|
||||
src_elem = dest_elem;
|
||||
}
|
||||
|
||||
if (src_elem == T_CONFLICT || dest_elem == T_CONFLICT) {
|
||||
// Conservatively insert a memory barrier on all memory slices.
|
||||
// Do not let writes into the source float below the arraycopy.
|
||||
{
|
||||
@ -1169,13 +1195,11 @@ void PhaseMacroExpand::expand_arraycopy_node(ArrayCopyNode *ac) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
assert(!ac->is_arraycopy_validated() || (src_elem == dest_elem && dest_elem != T_VOID), "validated but different basic types");
|
||||
|
||||
// (2) src and dest arrays must have elements of the same BasicType
|
||||
// Figure out the size and type of the elements we will be copying.
|
||||
BasicType src_elem = top_src->klass()->as_array_klass()->element_type()->basic_type();
|
||||
BasicType dest_elem = top_dest->klass()->as_array_klass()->element_type()->basic_type();
|
||||
if (src_elem == T_ARRAY) src_elem = T_OBJECT;
|
||||
if (dest_elem == T_ARRAY) dest_elem = T_OBJECT;
|
||||
|
||||
if (src_elem != dest_elem || dest_elem == T_VOID) {
|
||||
// The component types are not the same or are not recognized. Punt.
|
||||
// (But, avoid the native method wrapper to JVM_ArrayCopy.)
|
||||
|
@ -908,10 +908,11 @@ Node* LoadNode::can_see_arraycopy_value(Node* st, PhaseTransform* phase) const {
|
||||
ld->set_req(0, ld_alloc->in(0));
|
||||
}
|
||||
} else {
|
||||
Node* src = ac->in(ArrayCopyNode::Src);
|
||||
Node* addp = in(MemNode::Address)->clone();
|
||||
assert(addp->in(AddPNode::Base) == addp->in(AddPNode::Address), "should be");
|
||||
addp->set_req(AddPNode::Base, ac->in(ArrayCopyNode::Src));
|
||||
addp->set_req(AddPNode::Address, ac->in(ArrayCopyNode::Src));
|
||||
addp->set_req(AddPNode::Base, src);
|
||||
addp->set_req(AddPNode::Address, src);
|
||||
|
||||
const TypeAryPtr* ary_t = phase->type(in(MemNode::Address))->isa_aryptr();
|
||||
BasicType ary_elem = ary_t->klass()->as_array_klass()->element_type()->basic_type();
|
||||
@ -928,6 +929,12 @@ Node* LoadNode::can_see_arraycopy_value(Node* st, PhaseTransform* phase) const {
|
||||
addp->set_req(AddPNode::Offset, offset);
|
||||
ld->set_req(MemNode::Address, phase->transform(addp));
|
||||
|
||||
const TypeX *ld_offs_t = phase->type(offset)->isa_intptr_t();
|
||||
|
||||
if (!ac->as_ArrayCopy()->can_replace_dest_load_with_src_load(ld_offs_t->_lo, ld_offs_t->_hi, phase)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (in(0) != NULL) {
|
||||
assert(ac->in(0) != NULL, "alloc must have control");
|
||||
ld->set_req(0, ac->in(0));
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1095,8 +1095,11 @@ inline intptr_t bitfield(intptr_t x, int start_bit_no, int field_length) {
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
#define max(a,b) Do_not_use_max_use_MAX2_instead
|
||||
#define min(a,b) Do_not_use_min_use_MIN2_instead
|
||||
// The following defines serve the purpose of preventing use of accidentally
|
||||
// included min max macros from compiling, while continuing to allow innocent
|
||||
// min and max identifiers in the code to compile as intended.
|
||||
#define max max
|
||||
#define min min
|
||||
|
||||
// It is necessary to use templates here. Having normal overloaded
|
||||
// functions does not work because it is necessary to provide both 32-
|
||||
|
106
hotspot/test/compiler/arraycopy/TestACSameSrcDst.java
Normal file
106
hotspot/test/compiler/arraycopy/TestACSameSrcDst.java
Normal file
@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Red Hat, Inc. All rights reserved.
|
||||
* 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 8179678
|
||||
* @summary ArrayCopy with same src and dst can cause incorrect execution or compiler crash
|
||||
*
|
||||
* @run main/othervm -XX:CompileCommand=compileonly,TestACSameSrcDst::test* TestACSameSrcDst
|
||||
*
|
||||
*/
|
||||
|
||||
public class TestACSameSrcDst {
|
||||
|
||||
static int test1(int[] src, int[] dst) {
|
||||
System.arraycopy(src, 5, dst, 0, 10);
|
||||
// this shouldn't be transformed to src[5] because the copy
|
||||
// can modify src[5] if src and dst are the same.
|
||||
return dst[0];
|
||||
}
|
||||
|
||||
static int test2(int[] src) {
|
||||
System.arraycopy(src, 0, src, 0, 10);
|
||||
// same source and destination. If load from destination is
|
||||
// transformed to load of source, the compiler performs that
|
||||
// optimization in an infinite loop.
|
||||
return src[0];
|
||||
}
|
||||
|
||||
static int test3() {
|
||||
int[] src = new int[15];
|
||||
src[5] = 0x42;
|
||||
System.arraycopy(src, 5, src, 0, 10);
|
||||
// That load can't bypass the arraycopy
|
||||
return src[0];
|
||||
}
|
||||
|
||||
static int test4() {
|
||||
int[] src = new int[15];
|
||||
System.arraycopy(src, 0, src, 5, 10);
|
||||
return src[0];
|
||||
}
|
||||
|
||||
// The dst[0] load can't bypass the arraycopy. After ArrayCopyNode
|
||||
// is expanded, C2 looks for a stub call on the control paths of
|
||||
// the array copy subgraph to decide whether the load's memory
|
||||
// input can bypass the arraycopy. This test verifies the case of
|
||||
// a source array that's not declared as an array.
|
||||
static int test5(Object src, int l, boolean flag) {
|
||||
int[] dst = new int[10];
|
||||
if (flag) {
|
||||
dst[0] = 0x42;
|
||||
System.arraycopy(src, 0, dst, 0, l);
|
||||
return dst[0];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
int[] array = new int[15];
|
||||
for (int i = 0; i < 20000; i++) {
|
||||
int res;
|
||||
for (int j = 0; j < array.length; j++) {
|
||||
array[j] = j;
|
||||
}
|
||||
int expected = array[5];
|
||||
res = test1(array, array);
|
||||
if (res != expected) {
|
||||
throw new RuntimeException("bad result: " + res + " != " + expected);
|
||||
}
|
||||
test2(array);
|
||||
res = test3();
|
||||
if (res != 0x42) {
|
||||
throw new RuntimeException("bad result: " + res + " != " + 0x42);
|
||||
}
|
||||
test4();
|
||||
for (int j = 0; j < array.length; j++) {
|
||||
array[j] = j;
|
||||
}
|
||||
res = test5(array, 10, (i%2) == 0);
|
||||
if (res != 0) {
|
||||
throw new RuntimeException("bad result: " + res + " != " + 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -773,221 +773,221 @@ public class TestIntUnsafeCAS {
|
||||
|
||||
static void test_ci(int[] a) {
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -1, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -1, -123);
|
||||
}
|
||||
}
|
||||
static void test_vi(int[] a, int b, int old) {
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, b);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, b);
|
||||
}
|
||||
}
|
||||
static void test_cp(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -123, b[i]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -123, b[i]);
|
||||
}
|
||||
}
|
||||
static void test_2ci(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), 123, -123);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), 123, -103);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), 123, -123);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), 123, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi(int[] a, int[] b, int c, int d) {
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -123, c);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), -103, d);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -123, c);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), -103, d);
|
||||
}
|
||||
}
|
||||
static void test_ci_neg(int[] a, int old) {
|
||||
for (int i = ARRLEN-1; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, -123);
|
||||
}
|
||||
}
|
||||
static void test_vi_neg(int[] a, int b, int old) {
|
||||
for (int i = ARRLEN-1; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, b);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, b);
|
||||
}
|
||||
}
|
||||
static void test_cp_neg(int[] a, int[] b) {
|
||||
for (int i = ARRLEN-1; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -123, b[i]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -123, b[i]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_neg(int[] a, int[] b) {
|
||||
for (int i = ARRLEN-1; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), 123, -123);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), 123, -103);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), 123, -123);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), 123, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_neg(int[] a, int[] b, int c, int d) {
|
||||
for (int i = ARRLEN-1; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -123, c);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), -103, d);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -123, c);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), -103, d);
|
||||
}
|
||||
}
|
||||
static void test_ci_oppos(int[] a, int old) {
|
||||
int limit = ARRLEN-1;
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(limit-i), old, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(limit-i), old, -123);
|
||||
}
|
||||
}
|
||||
static void test_vi_oppos(int[] a, int b, int old) {
|
||||
int limit = ARRLEN-1;
|
||||
for (int i = limit; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(limit-i), old, b);
|
||||
unsafe.compareAndSetInt(a, byte_offset(limit-i), old, b);
|
||||
}
|
||||
}
|
||||
static void test_cp_oppos(int[] a, int[] b) {
|
||||
int limit = ARRLEN-1;
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -123, b[limit-i]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -123, b[limit-i]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_oppos(int[] a, int[] b) {
|
||||
int limit = ARRLEN-1;
|
||||
for (int i = 0; i < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(limit-i), 123, -123);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), 123, -103);
|
||||
unsafe.compareAndSetInt(a, byte_offset(limit-i), 123, -123);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), 123, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_oppos(int[] a, int[] b, int c, int d) {
|
||||
int limit = ARRLEN-1;
|
||||
for (int i = limit; i >= 0; i-=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), -123, c);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(limit-i), -103, d);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), -123, c);
|
||||
unsafe.compareAndSetInt(b, byte_offset(limit-i), -103, d);
|
||||
}
|
||||
}
|
||||
static void test_ci_off(int[] a, int old) {
|
||||
for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+OFFSET), old, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+OFFSET), old, -123);
|
||||
}
|
||||
}
|
||||
static void test_vi_off(int[] a, int b, int old) {
|
||||
for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+OFFSET), old, b);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+OFFSET), old, b);
|
||||
}
|
||||
}
|
||||
static void test_cp_off(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+OFFSET), -123, b[i+OFFSET]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+OFFSET), -123, b[i+OFFSET]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_off(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+OFFSET), 123, -123);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i+OFFSET), 123, -103);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+OFFSET), 123, -123);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i+OFFSET), 123, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_off(int[] a, int[] b, int c, int d) {
|
||||
for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+OFFSET), -123, c);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i+OFFSET), -103, d);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+OFFSET), -123, c);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i+OFFSET), -103, d);
|
||||
}
|
||||
}
|
||||
static void test_ci_inv(int[] a, int k, int old) {
|
||||
for (int i = 0; i < ARRLEN-k; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+k), old, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+k), old, -123);
|
||||
}
|
||||
}
|
||||
static void test_vi_inv(int[] a, int b, int k, int old) {
|
||||
for (int i = 0; i < ARRLEN-k; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+k), old, b);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+k), old, b);
|
||||
}
|
||||
}
|
||||
static void test_cp_inv(int[] a, int[] b, int k) {
|
||||
for (int i = 0; i < ARRLEN-k; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+k), -123, b[i+k]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+k), -123, b[i+k]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_inv(int[] a, int[] b, int k) {
|
||||
for (int i = 0; i < ARRLEN-k; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+k), 123, -123);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i+k), 123, -103);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+k), 123, -123);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i+k), 123, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_inv(int[] a, int[] b, int c, int d, int k) {
|
||||
for (int i = 0; i < ARRLEN-k; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+k), -123, c);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i+k), -103, d);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+k), -123, c);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i+k), -103, d);
|
||||
}
|
||||
}
|
||||
static void test_ci_scl(int[] a, int old) {
|
||||
for (int i = 0; i*SCALE < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i*SCALE), old, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i*SCALE), old, -123);
|
||||
}
|
||||
}
|
||||
static void test_vi_scl(int[] a, int b, int old) {
|
||||
for (int i = 0; i*SCALE < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i*SCALE), old, b);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i*SCALE), old, b);
|
||||
}
|
||||
}
|
||||
static void test_cp_scl(int[] a, int[] b) {
|
||||
for (int i = 0; i*SCALE < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i*SCALE), -123, b[i*SCALE]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i*SCALE), -123, b[i*SCALE]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_scl(int[] a, int[] b) {
|
||||
for (int i = 0; i*SCALE < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i*SCALE), 123, -123);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i*SCALE), 123, -103);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i*SCALE), 123, -123);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i*SCALE), 123, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_scl(int[] a, int[] b, int c, int d) {
|
||||
for (int i = 0; i*SCALE < ARRLEN; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i*SCALE), -123, c);
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i*SCALE), -103, d);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i*SCALE), -123, c);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i*SCALE), -103, d);
|
||||
}
|
||||
}
|
||||
static void test_cp_alndst(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+ALIGN_OFF), -1, b[i]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+ALIGN_OFF), -1, b[i]);
|
||||
}
|
||||
}
|
||||
static void test_cp_alnsrc(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
|
||||
int old = unsafe.getIntVolatile(a, byte_offset(i));
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, b[i+ALIGN_OFF]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, b[i+ALIGN_OFF]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_aln(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+ALIGN_OFF), -1, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+ALIGN_OFF), -1, -123);
|
||||
int old = unsafe.getIntVolatile(b, byte_offset(i));
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), old, -103);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), old, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_aln(int[] a, int[] b, int c, int d) {
|
||||
for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
|
||||
int old = unsafe.getIntVolatile(a, byte_offset(i));
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, c);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, c);
|
||||
old = unsafe.getIntVolatile(b, byte_offset(i+ALIGN_OFF));
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i+ALIGN_OFF), old, d);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i+ALIGN_OFF), old, d);
|
||||
}
|
||||
}
|
||||
static void test_cp_unalndst(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+UNALIGN_OFF), -1, b[i]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+UNALIGN_OFF), -1, b[i]);
|
||||
}
|
||||
}
|
||||
static void test_cp_unalnsrc(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
|
||||
int old = unsafe.getIntVolatile(a, byte_offset(i));
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, b[i+UNALIGN_OFF]);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, b[i+UNALIGN_OFF]);
|
||||
}
|
||||
}
|
||||
static void test_2ci_unaln(int[] a, int[] b) {
|
||||
for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i+UNALIGN_OFF), -1, -123);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i+UNALIGN_OFF), -1, -123);
|
||||
int old = unsafe.getIntVolatile(b, byte_offset(i));
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i), old, -103);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i), old, -103);
|
||||
}
|
||||
}
|
||||
static void test_2vi_unaln(int[] a, int[] b, int c, int d) {
|
||||
for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
|
||||
int old = unsafe.getIntVolatile(a, byte_offset(i));
|
||||
unsafe.compareAndSwapInt(a, byte_offset(i), old, c);
|
||||
unsafe.compareAndSetInt(a, byte_offset(i), old, c);
|
||||
old = unsafe.getIntVolatile(b, byte_offset(i+UNALIGN_OFF));
|
||||
unsafe.compareAndSwapInt(b, byte_offset(i+UNALIGN_OFF), old, d);
|
||||
unsafe.compareAndSetInt(b, byte_offset(i+UNALIGN_OFF), old, d);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ public class UnsafeAccess {
|
||||
static Object helperUnsafeLoadStore(Object o, boolean isObjArray) {
|
||||
if (isObjArray) {
|
||||
Object o1 = U.getObject(o, off);
|
||||
U.compareAndSwapObject(o, off, o1, new Object());
|
||||
U.compareAndSetObject(o, off, o1, new Object());
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
@ -426,3 +426,7 @@ ac697b2bdf486ef18caad2092bd24036e14946ac jdk-10+5
|
||||
c27321c889cf4c8e465a61b84572c00ef7ee6004 jdk-9+171
|
||||
bd4b2c8835f35760a51c1475b03a16cc20c62973 jdk-10+10
|
||||
eedb6e54c8bd6197ecba5fc0d8568bac8ae852dd jdk-9+172
|
||||
95bab8bf9201ae8bfdf28e164bf33b78e49477e7 jdk-10+11
|
||||
9788347e0629d0cb3a0e55a903494ff741d4fa15 jdk-9+173
|
||||
b9c0b105002272d7414c8b34af9aded151f9cad6 jdk-9+174
|
||||
ff293e39e83366c40a5687dacd1ccb2305ed2c1e jdk-10+12
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -262,6 +261,7 @@ public abstract class ReferenceType extends Type {
|
||||
* @deprecated use getFirstCommonSuperclass(ReferenceType t) which has
|
||||
* slightly changed semantics.
|
||||
*/
|
||||
@Deprecated
|
||||
public ReferenceType firstCommonSuperclass(ReferenceType t) {
|
||||
if (this.equals(Type.NULL)) return t;
|
||||
if (t.equals(Type.NULL)) return this;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,7 +22,7 @@
|
||||
*/
|
||||
package com.sun.org.apache.xalan.internal.lib;
|
||||
|
||||
import com.sun.org.apache.xml.internal.utils.DOMHelper;
|
||||
import com.sun.org.apache.xml.internal.utils.DOM2Helper;
|
||||
import com.sun.org.apache.xpath.internal.NodeSet;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@ -72,8 +72,8 @@ public class ExsltSets extends ExsltBase
|
||||
for (int i = 0; i < nl1.getLength(); i++)
|
||||
{
|
||||
Node testNode = nl1.item(i);
|
||||
if (DOMHelper.isNodeAfter(testNode, endNode)
|
||||
&& !DOMHelper.isNodeTheSame(testNode, endNode))
|
||||
if (DOM2Helper.isNodeAfter(testNode, endNode)
|
||||
&& !DOM2Helper.isNodeTheSame(testNode, endNode))
|
||||
leadNodes.addElement(testNode);
|
||||
}
|
||||
return leadNodes;
|
||||
@ -107,8 +107,8 @@ public class ExsltSets extends ExsltBase
|
||||
for (int i = 0; i < nl1.getLength(); i++)
|
||||
{
|
||||
Node testNode = nl1.item(i);
|
||||
if (DOMHelper.isNodeAfter(startNode, testNode)
|
||||
&& !DOMHelper.isNodeTheSame(startNode, testNode))
|
||||
if (DOM2Helper.isNodeAfter(startNode, testNode)
|
||||
&& !DOM2Helper.isNodeTheSame(startNode, testNode))
|
||||
trailNodes.addElement(testNode);
|
||||
}
|
||||
return trailNodes;
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1426,24 +1422,4 @@ public class XSLTErrorResources extends ListResourceBundle
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1426,24 +1422,4 @@ public class XSLTErrorResources_de extends ListResourceBundle
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_es extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_fr extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_it extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_ja extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1015,7 +1011,7 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
"\uC2DC\uC2A4\uD15C \uC18D\uC131 org.xml.sax.parser\uAC00 \uC9C0\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_PARSER_ARG_CANNOT_BE_NULL,
|
||||
"\uAD6C\uBB38\uBD84\uC11D\uAE30 \uC778\uC218\uB294 \uB110\uC774 \uC544\uB2C8\uC5B4\uC57C \uD569\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38 \uBD84\uC11D\uAE30 \uC778\uC218\uB294 \uB110\uC774 \uC544\uB2C8\uC5B4\uC57C \uD569\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_FEATURE,
|
||||
"\uAE30\uB2A5: {0}"},
|
||||
@ -1252,7 +1248,7 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
"\uD2B9\uC218 \uCDA9\uB3CC\uC774 \uBC1C\uACAC\uB428: {0}. \uC2A4\uD0C0\uC77C\uC2DC\uD2B8\uC5D0\uC11C \uBC1C\uACAC\uB41C \uB9C8\uC9C0\uB9C9 \uD56D\uBAA9\uC774 \uC0AC\uC6A9\uB429\uB2C8\uB2E4."},
|
||||
|
||||
{ WG_PARSING_AND_PREPARING,
|
||||
"========= \uAD6C\uBB38\uBD84\uC11D \uD6C4 {0} \uC900\uBE44 \uC911 =========="},
|
||||
"========= \uAD6C\uBB38 \uBD84\uC11D \uD6C4 {0} \uC900\uBE44 \uC911 =========="},
|
||||
|
||||
{ WG_ATTR_TEMPLATE,
|
||||
"\uC18D\uC131 \uD15C\uD50C\uB9AC\uD2B8, {0}"},
|
||||
@ -1357,7 +1353,7 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
{ "optionOUT", " [-OUT outputFileName]"},
|
||||
{ "optionLXCIN", " [-LXCIN compiledStylesheetFileNameIn]"},
|
||||
{ "optionLXCOUT", " [-LXCOUT compiledStylesheetFileNameOutOut]"},
|
||||
{ "optionPARSER", " [-PARSER \uAD6C\uBB38\uBD84\uC11D\uAE30 \uC5F0\uACB0\uC758 \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984]"},
|
||||
{ "optionPARSER", " [-PARSER \uAD6C\uBB38 \uBD84\uC11D\uAE30 \uC5F0\uACB0\uC758 \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984]"},
|
||||
{ "optionE", " [-E(\uC5D4\uD2F0\uD2F0 \uCC38\uC870 \uD655\uC7A5 \uC548\uD568)]"},
|
||||
{ "optionV", " [-E(\uC5D4\uD2F0\uD2F0 \uCC38\uC870 \uD655\uC7A5 \uC548\uD568)]"},
|
||||
{ "optionQC", " [-QC(\uC790\uB3D9 \uD328\uD134 \uCDA9\uB3CC \uACBD\uACE0)]"},
|
||||
@ -1378,9 +1374,9 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
{ "optionHTML", " [-HTML(HTML \uD3EC\uB9F7\uD130 \uC0AC\uC6A9)]"},
|
||||
{ "optionPARAM", " [-PARAM \uC774\uB984 \uD45C\uD604\uC2DD(\uC2A4\uD0C0\uC77C\uC2DC\uD2B8 \uB9E4\uAC1C\uBCC0\uC218 \uC124\uC815)]"},
|
||||
{ "noParsermsg1", "XSL \uD504\uB85C\uC138\uC2A4\uB97C \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg2", "** \uAD6C\uBB38\uBD84\uC11D\uAE30\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C **"},
|
||||
{ "noParsermsg2", "** \uAD6C\uBB38 \uBD84\uC11D\uAE30\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C **"},
|
||||
{ "noParsermsg3", "\uD074\uB798\uC2A4 \uACBD\uB85C\uB97C \uD655\uC778\uD558\uC2ED\uC2DC\uC624."},
|
||||
{ "noParsermsg4", "IBM\uC758 Java\uC6A9 XML \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uB2E4\uC74C \uC704\uCE58\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg4", "IBM\uC758 Java\uC6A9 XML \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uB2E4\uC74C \uC704\uCE58\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg5", "IBM AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
|
||||
{ "optionURIRESOLVER", " [-URIRESOLVER \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984(URI \uBD84\uC11D\uC5D0 \uC0AC\uC6A9\uD560 URIResolver)]"},
|
||||
{ "optionENTITYRESOLVER", " [-ENTITYRESOLVER \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984(\uC5D4\uD2F0\uD2F0 \uBD84\uC11D\uC5D0 \uC0AC\uC6A9\uD560 EntityResolver)]"},
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_pt_BR extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -482,7 +478,7 @@ public class XSLTErrorResources_sv extends ListResourceBundle
|
||||
{"ER0000" , "{0}" },
|
||||
|
||||
{ ER_NO_CURLYBRACE,
|
||||
"Fel: Uttryck f\u00E5r inte inneh\u00E5lla '{'"},
|
||||
"Fel: Uttryck kan inte inneh\u00E5lla '{'"},
|
||||
|
||||
{ ER_ILLEGAL_ATTRIBUTE ,
|
||||
"{0} har ett otill\u00E5tet attribut: {1}"},
|
||||
@ -1426,24 +1422,4 @@ public class XSLTErrorResources_sv extends ListResourceBundle
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_zh_CN extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -22,9 +21,6 @@
|
||||
package com.sun.org.apache.xalan.internal.res;
|
||||
|
||||
import java.util.ListResourceBundle;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Set up error messages.
|
||||
@ -1425,25 +1421,4 @@ public class XSLTErrorResources_zh_TW extends ListResourceBundle
|
||||
|
||||
/** String for use when formatting of the error string failed. */
|
||||
public static final String FORMAT_FAILED = "FORMAT_FAILED";
|
||||
|
||||
/** General error string. */
|
||||
public static final String ERROR_STRING = "#error";
|
||||
|
||||
/** String to prepend to error messages. */
|
||||
public static final String ERROR_HEADER = "Error: ";
|
||||
|
||||
/** String to prepend to warning messages. */
|
||||
public static final String WARNING_HEADER = "Warning: ";
|
||||
|
||||
/** String to specify the XSLT module. */
|
||||
public static final String XSL_HEADER = "XSLT ";
|
||||
|
||||
/** String to specify the XML parser module. */
|
||||
public static final String XML_HEADER = "XML ";
|
||||
|
||||
/** I don't think this is used any more.
|
||||
* @deprecated */
|
||||
public static final String QUERY_HEADER = "PATTERN ";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -60,6 +59,7 @@ import com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase;
|
||||
* @deprecated This class exists only for backwards compatibility with old
|
||||
* translets. New code should not reference it.
|
||||
*/
|
||||
@Deprecated
|
||||
public final class ForwardPositionIterator extends DTMAxisIteratorBase {
|
||||
|
||||
private DTMAxisIterator _source;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -115,6 +115,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* Merge the current value's nodeset set by lookupKey() with _nodes.
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public void merge(KeyIndex other) {
|
||||
if (other == null) return;
|
||||
|
||||
@ -136,6 +137,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* key() function.
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public void lookupId(Object value) {
|
||||
// Clear _nodes array
|
||||
_nodes = null;
|
||||
@ -205,6 +207,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public void lookupKey(Object value) {
|
||||
IntegerArray nodes = _index.get(value);
|
||||
_nodes = (nodes != null) ? (IntegerArray) nodes.clone() : null;
|
||||
@ -217,6 +220,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int next() {
|
||||
if (_nodes == null) return DTMAxisIterator.END;
|
||||
|
||||
@ -313,6 +317,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public DTMAxisIterator reset() {
|
||||
_position = 0;
|
||||
return this;
|
||||
@ -324,6 +329,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int getLast() {
|
||||
return (_nodes == null) ? 0 : _nodes.cardinality();
|
||||
}
|
||||
@ -334,6 +340,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int getPosition() {
|
||||
return _position;
|
||||
}
|
||||
@ -344,6 +351,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public void setMark() {
|
||||
_markedPosition = _position;
|
||||
}
|
||||
@ -354,6 +362,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public void gotoMark() {
|
||||
_position = _markedPosition;
|
||||
}
|
||||
@ -365,6 +374,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public DTMAxisIterator setStartNode(int start) {
|
||||
if (start == DTMAxisIterator.END) {
|
||||
_nodes = null;
|
||||
@ -382,6 +392,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int getStartNode() {
|
||||
return 0;
|
||||
}
|
||||
@ -392,6 +403,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isReverse() {
|
||||
return(false);
|
||||
}
|
||||
@ -402,6 +414,7 @@ public class KeyIndex extends DTMAxisIteratorBase {
|
||||
* <b>deprecated.</b></em></p>
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public DTMAxisIterator cloneIterator() {
|
||||
KeyIndex other = new KeyIndex(0);
|
||||
other._index = _index;
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -49,6 +48,7 @@ public abstract class NodeSortRecord {
|
||||
* @deprecated This field continues to exist for binary compatibility.
|
||||
* New code should not refer to it.
|
||||
*/
|
||||
@Deprecated
|
||||
private static final Collator DEFAULT_COLLATOR = Collator.getInstance();
|
||||
|
||||
/**
|
||||
@ -56,6 +56,7 @@ public abstract class NodeSortRecord {
|
||||
* @deprecated This field continues to exist for binary compatibility.
|
||||
* New code should not refer to it.
|
||||
*/
|
||||
@Deprecated
|
||||
protected Collator _collator = DEFAULT_COLLATOR;
|
||||
protected Collator[] _collators;
|
||||
|
||||
@ -64,6 +65,7 @@ public abstract class NodeSortRecord {
|
||||
* @deprecated This field continues to exist for binary compatibility.
|
||||
* New code should not refer to it.
|
||||
*/
|
||||
@Deprecated
|
||||
protected Locale _locale;
|
||||
|
||||
protected CollatorFactory _collatorFactory;
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -55,6 +54,7 @@ public class NodeSortRecordFactory {
|
||||
* @deprecated This constructor is no longer used in generated code. It
|
||||
* exists only for backwards compatibility.
|
||||
*/
|
||||
@Deprecated
|
||||
public NodeSortRecordFactory(DOM dom, String className, Translet translet,
|
||||
String order[], String type[])
|
||||
throws TransletException
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -100,6 +100,7 @@ public final class BasisLibrary {
|
||||
* @deprecated This method exists only for backwards compatibility with old
|
||||
* translets. New code should not reference it.
|
||||
*/
|
||||
@Deprecated
|
||||
public static int positionF(DTMAxisIterator iterator) {
|
||||
return iterator.isReverse()
|
||||
? iterator.getLast() - iterator.getPosition() + 1
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -516,6 +515,7 @@ public class AttrImpl
|
||||
* @deprecated Previous working draft of DOM Level 2. New method
|
||||
* is <tt>getOwnerElement()</tt>.
|
||||
*/
|
||||
@Deprecated
|
||||
public Element getElement() {
|
||||
// if we have an owner, ownerNode is our ownerElement, otherwise it's
|
||||
// our ownerDocument and we don't have an ownerElement
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -832,6 +832,7 @@ public class CoreDocumentImpl
|
||||
* compatibility with older applications. New applications
|
||||
* should never call this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setEncoding(String value) {
|
||||
setXmlEncoding(value);
|
||||
}
|
||||
@ -849,6 +850,7 @@ public class CoreDocumentImpl
|
||||
* compatibility with older applications. New applications
|
||||
* should never call this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public String getEncoding() {
|
||||
return getXmlEncoding();
|
||||
}
|
||||
@ -890,6 +892,7 @@ public class CoreDocumentImpl
|
||||
* compatibility with older applications. New applications
|
||||
* should never call this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setVersion(String value) {
|
||||
setXmlVersion(value);
|
||||
}
|
||||
@ -908,6 +911,7 @@ public class CoreDocumentImpl
|
||||
* compatibility with older applications. New applications
|
||||
* should never call this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public String getVersion() {
|
||||
return getXmlVersion();
|
||||
}
|
||||
@ -932,6 +936,7 @@ public class CoreDocumentImpl
|
||||
* compatibility with older applications. New applications
|
||||
* should never call this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setStandalone(boolean value) {
|
||||
setXmlStandalone(value);
|
||||
}
|
||||
@ -950,6 +955,7 @@ public class CoreDocumentImpl
|
||||
* compatibility with older applications. New applications
|
||||
* should never call this method.
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean getStandalone() {
|
||||
return getXmlStandalone();
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017 Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -369,6 +369,7 @@ public class DeferredDocumentImpl
|
||||
* Creates an element node with a URI in the table and type information.
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int createDeferredElement(String elementURI, String elementName,
|
||||
Object type) {
|
||||
|
||||
@ -389,6 +390,7 @@ public class DeferredDocumentImpl
|
||||
* Creates an element node in the table.
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int createDeferredElement(String elementName) {
|
||||
return createDeferredElement(null, elementName);
|
||||
}
|
||||
@ -474,6 +476,7 @@ public class DeferredDocumentImpl
|
||||
* Sets an attribute on an element node.
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public int setDeferredAttribute(int elementNodeIndex,
|
||||
String attrName, String attrURI,
|
||||
String attrValue, boolean specified) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017 Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -763,6 +763,7 @@ public abstract class NodeImpl
|
||||
* @since DOM Level 3
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public short compareTreePosition(Node other) {
|
||||
// Questions of clarification for this method - to be answered by the
|
||||
// DOM WG. Current assumptions listed - LM
|
||||
|
@ -1,596 +0,0 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.sun.org.apache.xerces.internal.util;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.ext.EntityResolver2;
|
||||
|
||||
import org.w3c.dom.ls.LSInput;
|
||||
import org.w3c.dom.ls.LSResourceResolver;
|
||||
|
||||
import javax.xml.parsers.SAXParserFactory;
|
||||
|
||||
import com.sun.org.apache.xerces.internal.dom.DOMInputImpl;
|
||||
import com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl;
|
||||
|
||||
import com.sun.org.apache.xerces.internal.xni.XNIException;
|
||||
import com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier;
|
||||
|
||||
import com.sun.org.apache.xerces.internal.xni.parser.XMLEntityResolver;
|
||||
import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
|
||||
|
||||
import com.sun.org.apache.xml.internal.resolver.Catalog;
|
||||
import com.sun.org.apache.xml.internal.resolver.CatalogManager;
|
||||
import com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader;
|
||||
import com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader;
|
||||
|
||||
/**
|
||||
* <p>The catalog resolver handles the resolution of external
|
||||
* identifiers and URI references through XML catalogs. This
|
||||
* component supports XML catalogs defined by the
|
||||
* <a href="http://www.oasis-open.org/committees/entity/spec.html">
|
||||
* OASIS XML Catalogs Specification</a>. It encapsulates the
|
||||
* <a href="http://xml.apache.org/commons/">XML Commons</a> resolver.
|
||||
* An instance of this class may be registered on the parser
|
||||
* as a SAX entity resolver, as a DOM LSResourceResolver or
|
||||
* as an XNI entity resolver by setting the property
|
||||
* (http://apache.org/xml/properties/internal/entity-resolver).</p>
|
||||
*
|
||||
* <p>It is intended that this class may be used standalone to perform
|
||||
* catalog resolution outside of a parsing context. It may be shared
|
||||
* between several parsers and the application.</p>
|
||||
*
|
||||
* @deprecated This class and the JDK internal Catalog API in package
|
||||
* {@code com.sun.org.apache.xml.internal.resolver}
|
||||
* is encapsulated in JDK 9. The entire implementation under the package is now
|
||||
* deprecated and subject to removal in a future release. Users of the API should
|
||||
* migrate to the {@linkplain javax.xml.catalog new public API}.
|
||||
* <p>
|
||||
* The new Catalog API is supported throughout the JDK XML Processors, which allows
|
||||
* the use of Catalog by simply setting a path to a Catalog file as a property.
|
||||
*
|
||||
* @author Michael Glavassevich, IBM
|
||||
*
|
||||
*/
|
||||
@Deprecated(since="9", forRemoval=true)
|
||||
public class XMLCatalogResolver
|
||||
implements XMLEntityResolver, EntityResolver2, LSResourceResolver {
|
||||
|
||||
/** Internal catalog manager for Apache catalogs. **/
|
||||
private CatalogManager fResolverCatalogManager = null;
|
||||
|
||||
/** Internal catalog structure. **/
|
||||
private Catalog fCatalog = null;
|
||||
|
||||
/** An array of catalog URIs. **/
|
||||
private String [] fCatalogsList = null;
|
||||
|
||||
/**
|
||||
* Indicates whether the list of catalogs has
|
||||
* changed since it was processed.
|
||||
*/
|
||||
private boolean fCatalogsChanged = true;
|
||||
|
||||
/** Application specified prefer public setting. **/
|
||||
private boolean fPreferPublic = true;
|
||||
|
||||
/**
|
||||
* Indicates whether the application desires that
|
||||
* the parser or some other component performing catalog
|
||||
* resolution should use the literal system identifier
|
||||
* instead of the expanded system identifier.
|
||||
*/
|
||||
private boolean fUseLiteralSystemId = true;
|
||||
|
||||
/**
|
||||
* <p>Constructs a catalog resolver with a default configuration.</p>
|
||||
*/
|
||||
public XMLCatalogResolver () {
|
||||
this(null, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Constructs a catalog resolver with the given
|
||||
* list of entry files.</p>
|
||||
*
|
||||
* @param catalogs an ordered array list of absolute URIs
|
||||
*/
|
||||
public XMLCatalogResolver (String [] catalogs) {
|
||||
this(catalogs, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Constructs a catalog resolver with the given
|
||||
* list of entry files and the preference for whether
|
||||
* system or public matches are preferred.</p>
|
||||
*
|
||||
* @param catalogs an ordered array list of absolute URIs
|
||||
* @param preferPublic the prefer public setting
|
||||
*/
|
||||
public XMLCatalogResolver (String [] catalogs, boolean preferPublic) {
|
||||
init(catalogs, preferPublic);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the initial list of catalog entry files.</p>
|
||||
*
|
||||
* @return the initial list of catalog entry files
|
||||
*/
|
||||
public final synchronized String [] getCatalogList () {
|
||||
return (fCatalogsList != null)
|
||||
? (String[]) fCatalogsList.clone() : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Sets the initial list of catalog entry files.
|
||||
* If there were any catalog mappings cached from
|
||||
* the previous list they will be replaced by catalog
|
||||
* mappings from the new list the next time the catalog
|
||||
* is queried.</p>
|
||||
*
|
||||
* @param catalogs an ordered array list of absolute URIs
|
||||
*/
|
||||
public final synchronized void setCatalogList (String [] catalogs) {
|
||||
fCatalogsChanged = true;
|
||||
fCatalogsList = (catalogs != null)
|
||||
? (String[]) catalogs.clone() : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Forces the cache of catalog mappings to be cleared.</p>
|
||||
*/
|
||||
public final synchronized void clear () {
|
||||
fCatalog = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the preference for whether system or public
|
||||
* matches are preferred. This is used in the absence
|
||||
* of any occurence of the <code>prefer</code> attribute
|
||||
* on the <code>catalog</code> entry of a catalog. If this
|
||||
* property has not yet been explicitly set its value is
|
||||
* <code>true</code>.</p>
|
||||
*
|
||||
* @return the prefer public setting
|
||||
*/
|
||||
public final boolean getPreferPublic () {
|
||||
return fPreferPublic;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Sets the preference for whether system or public
|
||||
* matches are preferred. This is used in the absence
|
||||
* of any occurence of the <code>prefer</code> attribute
|
||||
* on the <code>catalog</code> entry of a catalog.</p>
|
||||
*
|
||||
* @param preferPublic the prefer public setting
|
||||
*/
|
||||
public final void setPreferPublic (boolean preferPublic) {
|
||||
fPreferPublic = preferPublic;
|
||||
fResolverCatalogManager.setPreferPublic(preferPublic);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the preference for whether the literal system
|
||||
* identifier should be used when resolving system
|
||||
* identifiers when both it and the expanded system
|
||||
* identifier are available. If this property has not yet
|
||||
* been explicitly set its value is <code>true</code>.</p>
|
||||
*
|
||||
* @return the preference for using literal system identifers
|
||||
* for catalog resolution
|
||||
*
|
||||
* @see #setUseLiteralSystemId
|
||||
*/
|
||||
public final boolean getUseLiteralSystemId () {
|
||||
return fUseLiteralSystemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Sets the preference for whether the literal system
|
||||
* identifier should be used when resolving system
|
||||
* identifiers when both it and the expanded system
|
||||
* identifier are available.</p>
|
||||
*
|
||||
* <p>The literal system identifier is the URI as it was
|
||||
* provided before absolutization. It may be embedded within
|
||||
* an entity. It may be provided externally or it may be the
|
||||
* result of redirection. For example, redirection may
|
||||
* have come from the protocol level through HTTP or from
|
||||
* an application's entity resolver.</p>
|
||||
*
|
||||
* <p>The expanded system identifier is an absolute URI
|
||||
* which is the result of resolving the literal system
|
||||
* identifier against a base URI.</p>
|
||||
*
|
||||
* @param useLiteralSystemId the preference for using
|
||||
* literal system identifers for catalog resolution
|
||||
*/
|
||||
public final void setUseLiteralSystemId (boolean useLiteralSystemId) {
|
||||
fUseLiteralSystemId = useLiteralSystemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Resolves an external entity. If the entity cannot be
|
||||
* resolved, this method should return <code>null</code>. This
|
||||
* method returns an input source if an entry was found in the
|
||||
* catalog for the given external identifier. It should be
|
||||
* overrided if other behaviour is required.</p>
|
||||
*
|
||||
* @param publicId the public identifier, or <code>null</code> if none was supplied
|
||||
* @param systemId the system identifier
|
||||
*
|
||||
* @throws SAXException any SAX exception, possibly wrapping another exception
|
||||
* @throws IOException thrown if some i/o error occurs
|
||||
*/
|
||||
public InputSource resolveEntity(String publicId, String systemId)
|
||||
throws SAXException, IOException {
|
||||
|
||||
String resolvedId = null;
|
||||
if (publicId != null && systemId != null) {
|
||||
resolvedId = resolvePublic(publicId, systemId);
|
||||
}
|
||||
else if (systemId != null) {
|
||||
resolvedId = resolveSystem(systemId);
|
||||
}
|
||||
|
||||
if (resolvedId != null) {
|
||||
InputSource source = new InputSource(resolvedId);
|
||||
source.setPublicId(publicId);
|
||||
return source;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Resolves an external entity. If the entity cannot be
|
||||
* resolved, this method should return <code>null</code>. This
|
||||
* method returns an input source if an entry was found in the
|
||||
* catalog for the given external identifier. It should be
|
||||
* overrided if other behaviour is required.</p>
|
||||
*
|
||||
* @param name the identifier of the external entity
|
||||
* @param publicId the public identifier, or <code>null</code> if none was supplied
|
||||
* @param baseURI the URI with respect to which relative systemIDs are interpreted.
|
||||
* @param systemId the system identifier
|
||||
*
|
||||
* @throws SAXException any SAX exception, possibly wrapping another exception
|
||||
* @throws IOException thrown if some i/o error occurs
|
||||
*/
|
||||
public InputSource resolveEntity(String name, String publicId,
|
||||
String baseURI, String systemId) throws SAXException, IOException {
|
||||
|
||||
String resolvedId = null;
|
||||
|
||||
if (!getUseLiteralSystemId() && baseURI != null) {
|
||||
// Attempt to resolve the system identifier against the base URI.
|
||||
try {
|
||||
URI uri = new URI(new URI(baseURI), systemId);
|
||||
systemId = uri.toString();
|
||||
}
|
||||
// Ignore the exception. Fallback to the literal system identifier.
|
||||
catch (URI.MalformedURIException ex) {}
|
||||
}
|
||||
|
||||
if (publicId != null && systemId != null) {
|
||||
resolvedId = resolvePublic(publicId, systemId);
|
||||
}
|
||||
else if (systemId != null) {
|
||||
resolvedId = resolveSystem(systemId);
|
||||
}
|
||||
|
||||
if (resolvedId != null) {
|
||||
InputSource source = new InputSource(resolvedId);
|
||||
source.setPublicId(publicId);
|
||||
return source;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Locates an external subset for documents which do not explicitly
|
||||
* provide one. This method always returns <code>null</code>. It
|
||||
* should be overrided if other behaviour is required.</p>
|
||||
*
|
||||
* @param name the identifier of the document root element
|
||||
* @param baseURI the document's base URI
|
||||
*
|
||||
* @throws SAXException any SAX exception, possibly wrapping another exception
|
||||
* @throws IOException thrown if some i/o error occurs
|
||||
*/
|
||||
public InputSource getExternalSubset(String name, String baseURI)
|
||||
throws SAXException, IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Resolves a resource using the catalog. This method interprets that
|
||||
* the namespace URI corresponds to uri entries in the catalog.
|
||||
* Where both a namespace and an external identifier exist, the namespace
|
||||
* takes precedence.</p>
|
||||
*
|
||||
* @param type the type of the resource being resolved
|
||||
* @param namespaceURI the namespace of the resource being resolved,
|
||||
* or <code>null</code> if none was supplied
|
||||
* @param publicId the public identifier of the resource being resolved,
|
||||
* or <code>null</code> if none was supplied
|
||||
* @param systemId the system identifier of the resource being resolved,
|
||||
* or <code>null</code> if none was supplied
|
||||
* @param baseURI the absolute base URI of the resource being parsed,
|
||||
* or <code>null</code> if there is no base URI
|
||||
*/
|
||||
public LSInput resolveResource(String type, String namespaceURI,
|
||||
String publicId, String systemId, String baseURI) {
|
||||
|
||||
String resolvedId = null;
|
||||
|
||||
try {
|
||||
// The namespace is useful for resolving namespace aware
|
||||
// grammars such as XML schema. Let it take precedence over
|
||||
// the external identifier if one exists.
|
||||
if (namespaceURI != null) {
|
||||
resolvedId = resolveURI(namespaceURI);
|
||||
}
|
||||
|
||||
if (!getUseLiteralSystemId() && baseURI != null) {
|
||||
// Attempt to resolve the system identifier against the base URI.
|
||||
try {
|
||||
URI uri = new URI(new URI(baseURI), systemId);
|
||||
systemId = uri.toString();
|
||||
}
|
||||
// Ignore the exception. Fallback to the literal system identifier.
|
||||
catch (URI.MalformedURIException ex) {}
|
||||
}
|
||||
|
||||
// Resolve against an external identifier if one exists. This
|
||||
// is useful for resolving DTD external subsets and other
|
||||
// external entities. For XML schemas if there was no namespace
|
||||
// mapping we might be able to resolve a system identifier
|
||||
// specified as a location hint.
|
||||
if (resolvedId == null) {
|
||||
if (publicId != null && systemId != null) {
|
||||
resolvedId = resolvePublic(publicId, systemId);
|
||||
}
|
||||
else if (systemId != null) {
|
||||
resolvedId = resolveSystem(systemId);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Ignore IOException. It cannot be thrown from this method.
|
||||
catch (IOException ex) {}
|
||||
|
||||
if (resolvedId != null) {
|
||||
return new DOMInputImpl(publicId, resolvedId, baseURI);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Resolves an external entity. If the entity cannot be
|
||||
* resolved, this method should return <code>null</code>. This
|
||||
* method only calls <code>resolveIdentifier</code> and returns
|
||||
* an input source if an entry was found in the catalog. It
|
||||
* should be overrided if other behaviour is required.</p>
|
||||
*
|
||||
* @param resourceIdentifier location of the XML resource to resolve
|
||||
*
|
||||
* @throws XNIException thrown on general error
|
||||
* @throws IOException thrown if some i/o error occurs
|
||||
*/
|
||||
public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier)
|
||||
throws XNIException, IOException {
|
||||
|
||||
String resolvedId = resolveIdentifier(resourceIdentifier);
|
||||
if (resolvedId != null) {
|
||||
return new XMLInputSource(resourceIdentifier.getPublicId(),
|
||||
resolvedId, resourceIdentifier.getBaseSystemId(), false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Resolves an identifier using the catalog. This method interprets that
|
||||
* the namespace of the identifier corresponds to uri entries in the catalog.
|
||||
* Where both a namespace and an external identifier exist, the namespace
|
||||
* takes precedence.</p>
|
||||
*
|
||||
* @param resourceIdentifier the identifier to resolve
|
||||
*
|
||||
* @throws XNIException thrown on general error
|
||||
* @throws IOException thrown if some i/o error occurs
|
||||
*/
|
||||
public String resolveIdentifier(XMLResourceIdentifier resourceIdentifier)
|
||||
throws IOException, XNIException {
|
||||
|
||||
String resolvedId = null;
|
||||
|
||||
// The namespace is useful for resolving namespace aware
|
||||
// grammars such as XML schema. Let it take precedence over
|
||||
// the external identifier if one exists.
|
||||
String namespace = resourceIdentifier.getNamespace();
|
||||
if (namespace != null) {
|
||||
resolvedId = resolveURI(namespace);
|
||||
}
|
||||
|
||||
// Resolve against an external identifier if one exists. This
|
||||
// is useful for resolving DTD external subsets and other
|
||||
// external entities. For XML schemas if there was no namespace
|
||||
// mapping we might be able to resolve a system identifier
|
||||
// specified as a location hint.
|
||||
if (resolvedId == null) {
|
||||
String publicId = resourceIdentifier.getPublicId();
|
||||
String systemId = getUseLiteralSystemId()
|
||||
? resourceIdentifier.getLiteralSystemId()
|
||||
: resourceIdentifier.getExpandedSystemId();
|
||||
if (publicId != null && systemId != null) {
|
||||
resolvedId = resolvePublic(publicId, systemId);
|
||||
}
|
||||
else if (systemId != null) {
|
||||
resolvedId = resolveSystem(systemId);
|
||||
}
|
||||
}
|
||||
return resolvedId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the URI mapping in the catalog for the given
|
||||
* external identifier or <code>null</code> if no mapping
|
||||
* exists. If the system identifier is an URN in the
|
||||
* <code>publicid</code> namespace it is converted into
|
||||
* a public identifier by URN "unwrapping" as specified
|
||||
* in the XML Catalogs specification.</p>
|
||||
*
|
||||
* @param systemId the system identifier to locate in the catalog
|
||||
*
|
||||
* @return the mapped URI or <code>null</code> if no mapping
|
||||
* was found in the catalog
|
||||
*
|
||||
* @throws IOException if an i/o error occurred while reading
|
||||
* the catalog
|
||||
*/
|
||||
public final synchronized String resolveSystem (String systemId)
|
||||
throws IOException {
|
||||
|
||||
if (fCatalogsChanged) {
|
||||
parseCatalogs();
|
||||
fCatalogsChanged = false;
|
||||
}
|
||||
return (fCatalog != null)
|
||||
? fCatalog.resolveSystem(systemId) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the URI mapping in the catalog for the given
|
||||
* external identifier or <code>null</code> if no mapping
|
||||
* exists. Public identifiers are normalized before
|
||||
* comparison.</p>
|
||||
*
|
||||
* @param publicId the public identifier to locate in the catalog
|
||||
* @param systemId the system identifier to locate in the catalog
|
||||
*
|
||||
* @return the mapped URI or <code>null</code> if no mapping
|
||||
* was found in the catalog
|
||||
*
|
||||
* @throws IOException if an i/o error occurred while reading
|
||||
* the catalog
|
||||
*/
|
||||
public final synchronized String resolvePublic (String publicId, String systemId)
|
||||
throws IOException {
|
||||
|
||||
if (fCatalogsChanged) {
|
||||
parseCatalogs();
|
||||
fCatalogsChanged = false;
|
||||
}
|
||||
return (fCatalog != null)
|
||||
? fCatalog.resolvePublic(publicId, systemId) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the URI mapping in the catalog for the given URI
|
||||
* reference or <code>null</code> if no mapping exists.
|
||||
* URI comparison is case sensitive. If the URI reference
|
||||
* is an URN in the <code>publicid</code> namespace
|
||||
* it is converted into a public identifier by URN "unwrapping"
|
||||
* as specified in the XML Catalogs specification and then
|
||||
* resolution is performed following the semantics of
|
||||
* external identifier resolution.</p>
|
||||
*
|
||||
* @param uri the URI to locate in the catalog
|
||||
*
|
||||
* @return the mapped URI or <code>null</code> if no mapping
|
||||
* was found in the catalog
|
||||
*
|
||||
* @throws IOException if an i/o error occurred while reading
|
||||
* the catalog
|
||||
*/
|
||||
public final synchronized String resolveURI (String uri)
|
||||
throws IOException {
|
||||
|
||||
if (fCatalogsChanged) {
|
||||
parseCatalogs();
|
||||
fCatalogsChanged = false;
|
||||
}
|
||||
return (fCatalog != null)
|
||||
? fCatalog.resolveURI(uri) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialization. Create a CatalogManager and set all
|
||||
* the properties upfront. This prevents JVM wide system properties
|
||||
* or a property file somewhere in the environment from affecting
|
||||
* the behaviour of this catalog resolver.
|
||||
*/
|
||||
private void init (String [] catalogs, boolean preferPublic) {
|
||||
fCatalogsList = (catalogs != null) ? (String[]) catalogs.clone() : null;
|
||||
fPreferPublic = preferPublic;
|
||||
fResolverCatalogManager = new CatalogManager();
|
||||
fResolverCatalogManager.setAllowOasisXMLCatalogPI(false);
|
||||
fResolverCatalogManager.setCatalogClassName("com.sun.org.apache.xml.internal.resolver.Catalog");
|
||||
fResolverCatalogManager.setCatalogFiles("");
|
||||
fResolverCatalogManager.setIgnoreMissingProperties(true);
|
||||
fResolverCatalogManager.setPreferPublic(fPreferPublic);
|
||||
fResolverCatalogManager.setRelativeCatalogs(false);
|
||||
fResolverCatalogManager.setUseStaticCatalog(false);
|
||||
fResolverCatalogManager.setVerbosity(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instruct the <code>Catalog</code> to parse each of the
|
||||
* catalogs in the list. Only the first catalog will actually be
|
||||
* parsed immediately. The others will be queued and read if
|
||||
* they are needed later.
|
||||
*/
|
||||
private void parseCatalogs () throws IOException {
|
||||
if (fCatalogsList != null) {
|
||||
fCatalog = new Catalog(fResolverCatalogManager);
|
||||
attachReaderToCatalog(fCatalog);
|
||||
for (int i = 0; i < fCatalogsList.length; ++i) {
|
||||
String catalog = fCatalogsList[i];
|
||||
if (catalog != null && catalog.length() > 0) {
|
||||
fCatalog.parseCatalog(catalog);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
fCatalog = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Attaches the reader to the catalog.
|
||||
*/
|
||||
private void attachReaderToCatalog (Catalog catalog) {
|
||||
|
||||
SAXParserFactory spf = new SAXParserFactoryImpl();
|
||||
spf.setNamespaceAware(true);
|
||||
spf.setValidating(false);
|
||||
|
||||
SAXCatalogReader saxReader = new SAXCatalogReader(spf);
|
||||
saxReader.setCatalogParser(OASISXMLCatalogReader.namespaceName, "catalog",
|
||||
"com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader");
|
||||
catalog.addReader("application/xml", saxReader);
|
||||
}
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -116,6 +115,7 @@ public interface ItemPSVI {
|
||||
*
|
||||
* @deprecated Use getSchemaValue().getNormalizedValue() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public String getSchemaNormalizedValue();
|
||||
|
||||
/**
|
||||
@ -127,6 +127,7 @@ public interface ItemPSVI {
|
||||
*
|
||||
* @deprecated Use getSchemaValue().getActualValue() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public Object getActualNormalizedValue()
|
||||
throws XSException;
|
||||
|
||||
@ -146,6 +147,7 @@ public interface ItemPSVI {
|
||||
*
|
||||
* @deprecated Use getSchemaValue().getActualValueType() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public short getActualNormalizedValueType()
|
||||
throws XSException;
|
||||
|
||||
@ -182,6 +184,7 @@ public interface ItemPSVI {
|
||||
*
|
||||
* @deprecated Use getSchemaValue().getListValueTypes() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public ShortList getItemValueTypes()
|
||||
throws XSException;
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* reserved comment block
|
||||
* DO NOT REMOVE OR ALTER!
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -55,6 +54,7 @@ public interface XSAttributeDeclaration extends XSObject {
|
||||
*
|
||||
* @deprecated Use getValueConstraintValue().getNormalizedValue() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public String getConstraintValue();
|
||||
|
||||
/**
|
||||
@ -67,6 +67,7 @@ public interface XSAttributeDeclaration extends XSObject {
|
||||
*
|
||||
* @deprecated Use getValueConstraintValue().getActualValue() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public Object getActualVC()
|
||||
throws XSException;
|
||||
|
||||
@ -86,6 +87,7 @@ public interface XSAttributeDeclaration extends XSObject {
|
||||
*
|
||||
* @deprecated Use getValueConstraintValue().getActualValueType() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public short getActualVCType()
|
||||
throws XSException;
|
||||
|
||||
@ -104,6 +106,7 @@ public interface XSAttributeDeclaration extends XSObject {
|
||||
*
|
||||
* @deprecated Use getValueConstraintValue().getListValueTypes() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public ShortList getItemValueTypes()
|
||||
throws XSException;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user