Commit 687ea73 SendaoYan
committed Feb 11, 2025
1 parent 72f23f0 commit 687ea73 Copy full SHA for 687ea73
File tree 1 file changed +3
-1
lines changed
test/jdk/java/nio/channels/DatagramChannel
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
47
47
import org .junit .jupiter .api .BeforeAll ;
48
48
import org .junit .jupiter .api .function .Executable ;
49
49
import static org .junit .jupiter .api .Assertions .*;
50
+ import static org .junit .jupiter .api .Assumptions .*;
50
51
51
52
public class InterruptibleOrNot {
52
53
// DatagramChannel implementation class
@@ -98,6 +99,7 @@ public void testInterruptDuringInterruptibleReceive() throws Exception {
98
99
*/
99
100
@ Test
100
101
public void testInterruptBeforeUninterruptibleReceive () throws Exception {
102
+ assumeFalse (Thread .currentThread ().isVirtual ());
101
103
try (DatagramChannel dc = boundDatagramChannel (false )) {
102
104
ByteBuffer buf = ByteBuffer .allocate (100 );
103
105
onReceive (() -> {
You can’t perform that action at this time.
3 commit comments
sendaoYan commentedon Feb 11, 2025
/backport jdk21u-dev
openjdk[bot] commentedon Feb 11, 2025
@sendaoYan the backport was successfully created on the branch backport-sendaoYan-687ea73b-master in my personal fork of openjdk/jdk21u-dev. To create a pull request with this backport targeting openjdk/jdk21u-dev:master, just click the following link:
➡️ Create pull request
The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk21u-dev:
openjdk-notifier[bot] commentedon Feb 11, 2025
Review
Issues