File tree Expand file tree Collapse file tree 10 files changed +22
-22
lines changed
Security/ClassLoaderDeadlock
provider/PolicyFile/getinstance Expand file tree Collapse file tree 10 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 11#
2- # Copyright (c) 2004, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2004, 2024 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
@@ -91,7 +91,7 @@ ${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
9191 ${TESTSRC}${FILESEP} provider${FILESEP} HashProvider.java
9292
9393# run the test
94- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
94+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
9595 -classpath " ${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP} Deadlock.jar" \
9696 -Djava.awt.headless=true \
9797 ClassLoaderDeadlock
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33#
4- # Copyright (c) 2003, 2020 , Oracle and/or its affiliates. All rights reserved.
4+ # Copyright (c) 2003, 2024 , Oracle and/or its affiliates. All rights reserved.
55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66#
77# This code is free software; you can redistribute it and/or modify it
6262
6363JAVA=" ${TESTJAVA}${FILESEP} bin${FILESEP} java"
6464
65- ${JAVA} ${TESTVMOPTS} -cp " ${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP} Deadlock.jar" Deadlock
65+ ${JAVA} ${TESTVMOPTS} ${TESTJAVAOPTS} -cp " ${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP} Deadlock.jar" Deadlock
6666
Original file line number Diff line number Diff line change 11#
2- # Copyright (c) 2010, 2013 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2010, 2024 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
5050
5151${COMPILEJAVA}${FS} bin${FS} javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . \
5252 ${TESTSRC}${FS} SlowStream.java
53- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} -Dtest.src=${TESTSRC} SlowStreamWriter | \
54- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} SlowStreamReader
53+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} -Dtest.src=${TESTSRC} SlowStreamWriter | \
54+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} SlowStreamReader
Original file line number Diff line number Diff line change 11#
2- # Copyright (c) 2009, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2009, 2024 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
@@ -94,7 +94,7 @@ EXIT_STATUS=0
9494
9595if [ " ${NATIVE} " = " true" ] ; then
9696 echo " Testing native provider"
97- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
97+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
9898 -classpath ${TESTCLASSES} \
9999 -Dsun.security.jgss.native=true \
100100 ${TEST}
@@ -114,7 +114,7 @@ if [ "${NATIVE}" = "true" ] ; then
114114fi
115115
116116echo " Testing java provider"
117- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
117+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
118118 -classpath ${TESTCLASSES} \
119119 -Djava.security.krb5.realm=R \
120120 -Djava.security.krb5.kdc=127.0.0.1 \
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
123123 ${TESTSRC}${FS} MultipleLogins.java \
124124 ${TESTSRC}${FS} ..${FS} PKCS11Test.java
125125
126- TEST_ARGS=" ${TESTVMOPTS} -classpath ${TESTCLASSPATH} \
126+ TEST_ARGS=" ${TESTVMOPTS} ${TESTJAVAOPTS} -classpath ${TESTCLASSPATH} \
127127 --add-modules jdk.crypto.cryptoki \
128128 --add-exports jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED \
129129 -DCUSTOM_DB_DIR=${TESTCLASSES} \
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33#
4- # Copyright (c) 2001, 2020 , Oracle and/or its affiliates. All rights reserved.
4+ # Copyright (c) 2001, 2024 , Oracle and/or its affiliates. All rights reserved.
55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66#
77# This code is free software; you can redistribute it and/or modify it
@@ -96,7 +96,7 @@ ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d ${TESTCLA
9696${COMPILEJAVA}${FS} bin${FS} javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d ${TESTCLASSES}${FS} app \
9797 ${TESTSRC}${FS} GetInstance.java
9898
99- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} \
99+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
100100-Xbootclasspath/a:" ${TESTCLASSES}${FS} boot" \
101101-classpath " ${TESTCLASSES}${FS} app" -Djava.security.manager \
102102-Djava.security.policy=GetInstance.policy \
@@ -110,7 +110,7 @@ if [ $status1 -ne 0 ]; then
110110 echo " Failed on first test"
111111fi
112112
113- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} \
113+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
114114-classpath " ${TESTCLASSES}${FS} boot${PS}${TESTCLASSES}${FS} app" \
115115-Djava.security.manager \
116116-Djava.security.policy=GetInstance.policy \
Original file line number Diff line number Diff line change 11#
2- # Copyright (c) 2002, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2002, 2024 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
@@ -86,7 +86,7 @@ rm -rf com edu
8686# This is the only thing we really care about as far as
8787# test status goes.
8888#
89- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
89+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
9090 -Dtest.src=${TESTSRC} \
9191 -classpath " com.jar${PATHSEP} edu.jar" \
9292 -Djava.security.manager \
Original file line number Diff line number Diff line change 11#
2- # Copyright (c) 2016, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2016, 2024 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
3030# jtreg does not like -Dfile.encoding=UTF-16 inside a @run main line,
3131# therefore a shell test is written.
3232
33- $TESTJAVA /bin/java $TESTVMOPTS -cp $TESTCLASSES \
33+ $TESTJAVA /bin/java $TESTVMOPTS $TESTJAVAOPTS -cp $TESTCLASSES \
3434 -Dfile.encoding=UTF-16 \
3535 PemEncoding $TESTSRC /../HostnameChecker/cert5.crt
Original file line number Diff line number Diff line change 11#
2- # Copyright (c) 2010, 2013 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2010, 2024 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
@@ -85,4 +85,4 @@ $KT -delete -alias user
8585
8686EXTRAOPTS=" --add-exports java.base/sun.security.validator=ALL-UNNAMED"
8787$JAVAC ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} ${EXTRAOPTS} -d . ${TESTSRC}${FS} CertReplace.java
88- $JAVA ${TESTVMOPTS} ${EXTRAOPTS} CertReplace certreplace.jks certreplace.certs
88+ $JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} ${ EXTRAOPTS} CertReplace certreplace.jks certreplace.certs
Original file line number Diff line number Diff line change @@ -82,5 +82,5 @@ $KT -delete -alias user
8282
8383EXTRAOPTS=" --add-exports java.base/sun.security.validator=ALL-UNNAMED"
8484$JAVAC ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} ${EXTRAOPTS} -d . ${TESTSRC}${FS} CertReplace.java
85- $JAVA ${TESTVMOPTS} ${EXTRAOPTS} CertReplace samedn.jks samedn1.certs || exit 1
86- $JAVA ${TESTVMOPTS} ${EXTRAOPTS} CertReplace samedn.jks samedn2.certs || exit 2
85+ $JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} ${ EXTRAOPTS} CertReplace samedn.jks samedn1.certs || exit 1
86+ $JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} ${ EXTRAOPTS} CertReplace samedn.jks samedn2.certs || exit 2
You can’t perform that action at this time.
0 commit comments