-
Bug
-
Resolution: Fixed
-
P2
-
openjdk8u222
-
b05
If you run current 8u tests, then some tests would fail.
Apply this patch to jdk:
diff -r 010d44fe3c85 test/TEST.groups
--- a/test/TEST.groups Thu Mar 21 21:37:09 2019 -0700
+++ b/test/TEST.groups Fri Jul 19 16:50:55 2019 +0200
@@ -26,4 +26,7 @@
#
+jdk_test = \
+ com/sun/crypto/provider/Cipher/AES/TestAESCiphers
+
tier1 = \
:jdk_lang \
...then run:
CONF=linux-x86_64-normal-server-fastdebug make images test TEST=jdk_test
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.security.util")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:886)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1564)
at java.lang.ClassLoader$1.run(ClassLoader.java:496)
at java.lang.ClassLoader$1.run(ClassLoader.java:494)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:494)
at com.sun.crypto.provider.OutputFeedback.encrypt(OutputFeedback.java:152)
at com.sun.crypto.provider.CipherCore.update(CipherCore.java:785)
at com.sun.crypto.provider.AESCipher.engineUpdate(AESCipher.java:410)
at javax.crypto.Cipher.update(Cipher.java:1944)
at Dynamic.runTest(Dynamic.java:150)
at Dynamic.runAllTest(Dynamic.java:89)
at Dynamic.run(Dynamic.java:59)
at TestAESWithRemoveAddProvider.main(TestAESWithRemoveAddProvider.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.lang.Thread.run(Thread.java:748)
...
Summary: jdk_test
FAILED: com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java
FAILED: com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithRemoveAddProvider.java
TEST STATS: name=jdk_test run=3 pass=1 fail=2
This seems to be introduced by 8u backport ofJDK-8179098:
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/0da125166b2b#l7.22
11u and 12u are fine.
Apply this patch to jdk:
diff -r 010d44fe3c85 test/TEST.groups
--- a/test/TEST.groups Thu Mar 21 21:37:09 2019 -0700
+++ b/test/TEST.groups Fri Jul 19 16:50:55 2019 +0200
@@ -26,4 +26,7 @@
#
+jdk_test = \
+ com/sun/crypto/provider/Cipher/AES/TestAESCiphers
+
tier1 = \
:jdk_lang \
...then run:
CONF=linux-x86_64-normal-server-fastdebug make images test TEST=jdk_test
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.security.util")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:886)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1564)
at java.lang.ClassLoader$1.run(ClassLoader.java:496)
at java.lang.ClassLoader$1.run(ClassLoader.java:494)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:494)
at com.sun.crypto.provider.OutputFeedback.encrypt(OutputFeedback.java:152)
at com.sun.crypto.provider.CipherCore.update(CipherCore.java:785)
at com.sun.crypto.provider.AESCipher.engineUpdate(AESCipher.java:410)
at javax.crypto.Cipher.update(Cipher.java:1944)
at Dynamic.runTest(Dynamic.java:150)
at Dynamic.runAllTest(Dynamic.java:89)
at Dynamic.run(Dynamic.java:59)
at TestAESWithRemoveAddProvider.main(TestAESWithRemoveAddProvider.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.lang.Thread.run(Thread.java:748)
...
Summary: jdk_test
FAILED: com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java
FAILED: com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithRemoveAddProvider.java
TEST STATS: name=jdk_test run=3 pass=1 fail=2
This seems to be introduced by 8u backport of
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/0da125166b2b#l7.22
11u and 12u are fine.
- duplicates
-
JDK-8229658 Jtreg test TestAESWithProviderChange fails after 8u222
- Closed
- relates to
-
JDK-8179098 Crypto AES/ECB encryption/decryption performance regression (introduced in jdk9b73)
- Resolved