[9] RFR of 8079539: java/util/prefs/CodePointZeroPrefsTest.java fails with "java.util.prefs.BackingStoreException: Couldn't get file lock."

Alan Bateman Alan.Bateman at oracle.com
Thu Jun 18 18:23:29 UTC 2015



On 18/06/2015 19:20, Brian Burkhalter wrote:
> Please review at your convenience.
>
> Issue:	https://bugs.openjdk.java.net/browse/JDK-8079539
> Diff:
>
> --- a/test/java/util/prefs/CodePointZeroPrefsTest.java
> +++ b/test/java/util/prefs/CodePointZeroPrefsTest.java
> @@ -28,6 +28,7 @@
>    * @test
>    * @bug 8068373 8075110 8075156
>    * @summary Ensure a code point U+0000 null control character is detected.
> + * @run main/othervm -Djava.util.prefs.userRoot=. CodePointZeroPrefsTest
>    */
>   public class CodePointZeroPrefsTest
>   {
>
> The problem was due to a lack of permissions to set up the user root. This resulted from my omission to include the definition of the java.util.prefs.userRoot property in a @run tag.
>
>
This looks okay and is consistent with how the other prefs tests need to 
run. It also helps with test runs that use -concurrency.

-Alan



More information about the core-libs-dev mailing list