Starting from 8u40-b04 test sun/security/pkcs11/MessageDigest/TestCloning.java fails with j.l.CloneNotSupportedException: MD5 exception on Solaris11-sparc hosts:
----------System.out:(5/189)----------
Beginning test run TestCloning...
Running test with provider SunPKCS11-Solaris...
Testing against provider SunPKCS11-Solaris
MD2 is not supported, skipping
Testing MD5 of SunPKCS11-Solaris
----------System.err:(24/1279)----------
java.lang.CloneNotSupportedException: MD5
	at sun.security.pkcs11.P11Digest.clone(P11Digest.java:316)
	at java.security.MessageDigest$Delegate.clone(MessageDigest.java:544)
	at TestCloning.testCloning(TestCloning.java:92)
	at TestCloning.main(TestCloning.java:65)
	at PKCS11Test.premain(PKCS11Test.java:86)
	at PKCS11Test.testDefault(PKCS11Test.java:147)
	at PKCS11Test.main(PKCS11Test.java:95)
	at TestCloning.main(TestCloning.java:43)
	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:483)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_OPERATION_NOT_INITIALIZED
	at sun.security.pkcs11.wrapper.PKCS11.C_GetOperationState(Native Method)
	at sun.security.pkcs11.P11Digest.clone(P11Digest.java:311)
	... 13 more
With 8u40-b03 as well as with 8u20-fcs the test pass.
Test also fails starting from jdk9-b15.
Could it be related to JDK-8037745 ?