Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8257966: Instrument test/jdk/java/nio/channels/spi/SelectorProvider/i…
…nheritedChannel/StateTestService.java Reviewed-by: alanb, dfuchs
- Loading branch information
1 parent
37043b0
commit b35401d
Showing
4 changed files
with
82 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/jdk/java/nio/channels/spi/SelectorProvider/inheritedChannel/java.policy.fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// | ||
// | ||
// | ||
// Used by unit tests for System.inheritedChannel() method. This policy | ||
// file allows doesn't grant the service the runtime permission needed | ||
// to obtain the inherited channel but does grant the socket permission | ||
// needed to report a test result over a socket connection. | ||
// | ||
grant { | ||
permission java.net.SocketPermission "*:1024-", "resolve,connect"; | ||
permission java.io.FilePermission "${test.classes}${/}statetest.txt", "read,write"; | ||
permission java.util.PropertyPermission "test.classes", "read"; | ||
}; |
4 changes: 2 additions & 2 deletions
4
test/jdk/java/nio/channels/spi/SelectorProvider/inheritedChannel/java.policy.pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// | ||
// | ||
// | ||
// Used by unit tests for System.inheritedChannel() method. This policy | ||
// file allows a service to obtain the inherited channel and additionally | ||
// allows the service to report a test result over a socket connection. | ||
// | ||
grant { | ||
permission java.lang.RuntimePermission "inheritedChannel"; | ||
permission java.net.SocketPermission "*:1024-", "resolve,connect"; | ||
permission java.io.FilePermission "${test.classes}${/}statetest.txt", "read,write"; | ||
permission java.util.PropertyPermission "test.classes", "read"; | ||
}; |
b35401d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Issues