8236804: java/nio/channels/FileChannel/MapWithSecurityManager.java should be run in othervm mode
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Jan 8 18:22:52 UTC 2020
https://bugs.openjdk.java.net/browse/JDK-8236804 <https://bugs.openjdk.java.net/browse/JDK-8236804> following up on the comments below.
Diff:
--- a/test/jdk/java/nio/channels/FileChannel/MapWithSecurityManager.java
+++ b/test/jdk/java/nio/channels/FileChannel/MapWithSecurityManager.java
@@ -24,6 +24,7 @@
/* @test
* @bug 8236582
* @summary Tests the map method when running with a security manager
+ * @run main/othervm MapWithSecurityManager
*/
Thanks,
Brian
> On Jan 8, 2020, at 8:44 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>
>> On Jan 8, 2020, at 4:20 AM, Chris Hegarty <chris.hegarty at oracle.com <mailto:chris.hegarty at oracle.com>> wrote:
>>
>>> So modified: http://cr.openjdk.java.net/~bpb/8236582/webrev.02/ <http://cr.openjdk.java.net/~bpb/8236582/webrev.02/>.
>>
>> The source changes look good.
>>
>> The test should be run in othervm mode, since it depends on triggering
>> the loading of ExtendedMapMode when a security manager is present -
>> which is not guaranteed to be the case as the test stands. For example,
>> the test passes ( without the fix ) when I run it with all the other
>> tests in test/jdk/java/nio/channels/FileChannel/ and `-conc:1 -agentvm`
>> - since ExtendedMapMode is loaded from a previous test run in the same
>> agent.
>>
>> * @run main/othervm MapWithSecurityManager
>
> Oops, already pushed before I saw this message. I guess I’ll open another issue to make the change to the test.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200108/81f8ef9e/attachment.htm>
More information about the nio-dev
mailing list