RFR 8164533: [TEST_BUG] sun/security/ssl/SSLSocketImpl/CloseSocket.java failed with "Error while cleaning up threads after test"

Xuelei Fan xuelei.fan at oracle.com
Thu Aug 25 02:21:53 UTC 2016


On 8/25/2016 9:27 AM, Artem Smotrakov wrote:
>> BTW, please run the test in othervm mode.
> Why do you think it's necessary here? I don't see the test modifies
> anything that may affect other tests running in the same JVM (for
> example, system properties). Am I missing something?
It's not about the test code, but about the JSSE impl.  The JSSE impl 
uses a lot of singleton static fields for performance.  Once these 
fields are initialized, they may impact other test cases.

In JSSE test cases, we always run in othervm mode, and put a comment 
like (See test/javax/net/ssl/templates/SSLSocketTemplate.java):

// SunJSSE does not support dynamic system properties, no way to re-use
// system properties in samevm/agentvm mode.


Xuelei



More information about the security-dev mailing list