On 07/01/2014 14:29, Erik Joelsson wrote:
Updated review with a regression test. I'm not familiar with jtreg so tried pattern matching on existing tests and translated the reproducer from the bug report. I suspect that this test should not be run in the same jvm instance as other tests as it destructively changes the system properties. Is that something that can be expressed to jtreg?

http://cr.openjdk.java.net/~erikj/8030781/webrev.01/

/Erik
Thanks for spending time on test, I wasn't sure if this was going to be a separate JBS issue or not.

I think a more complete test would check that the other system properties are reset (as in the table in System#getProperties). Also I think it should change some of the these to nonsense values and see that setProperties(null) restores them to their original values. This might be a bit more than what you were thinking but it's the sort of test that should have been there to catch this issue in the first place.

"@run main/othervm SetPropertiesNull" will ensure that it runs in its own VM but it might not be necessary here as system properties is one of the things that jtreg will reset.

-Alan

Reply via email to