< prev index next >
test/java/nio/file/WatchService/WithSecurityManager.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 22,32 ****
*/
/* @test
* @bug 4313887
* @summary Unit test for Watchable#register's permission checks
! * @modules java.base/com.sun.nio.file
* @build WithSecurityManager
* @run main/othervm WithSecurityManager denyAll.policy - fail
* @run main/othervm WithSecurityManager denyAll.policy tree fail
* @run main/othervm WithSecurityManager grantDirOnly.policy - pass
* @run main/othervm WithSecurityManager grantDirOnly.policy tree fail
--- 22,32 ----
*/
/* @test
* @bug 4313887
* @summary Unit test for Watchable#register's permission checks
! * @modules jdk.unsupported
* @build WithSecurityManager
* @run main/othervm WithSecurityManager denyAll.policy - fail
* @run main/othervm WithSecurityManager denyAll.policy tree fail
* @run main/othervm WithSecurityManager grantDirOnly.policy - pass
* @run main/othervm WithSecurityManager grantDirOnly.policy tree fail
< prev index next >