This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch 2.2.X
in repository https://gitbox.apache.org/repos/asf/mina.git


The following commit(s) were added to refs/heads/2.2.X by this push:
     new c5f389e0c Fixed some code that was not compiling with Java 8
c5f389e0c is described below

commit c5f389e0c6c7b9ba89e9513626106fa30fc7c3f4
Author: emmanuel lecharny <[email protected]>
AuthorDate: Mon Nov 23 05:56:17 2026 +0100

    Fixed some code that was not compiling with Java 8
---
 .../apache/mina/transport/socket/nio/UseReadOperationTest.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/mina-core/src/test/java/org/apache/mina/transport/socket/nio/UseReadOperationTest.java
 
b/mina-core/src/test/java/org/apache/mina/transport/socket/nio/UseReadOperationTest.java
index e83b2b3db..7bdefcd64 100644
--- 
a/mina-core/src/test/java/org/apache/mina/transport/socket/nio/UseReadOperationTest.java
+++ 
b/mina-core/src/test/java/org/apache/mina/transport/socket/nio/UseReadOperationTest.java
@@ -107,7 +107,7 @@ public class UseReadOperationTest {
             connector.setHandler(new IoHandlerAdapter() {
                 @Override
                 public void messageReceived(IoSession session, Object message) 
{
-                    receivedMessage.setOpaque((IoBuffer) message);
+                    receivedMessage.set((IoBuffer) message);
                     receiveViaHandler.countDown();
                 }
             });
@@ -128,7 +128,7 @@ public class UseReadOperationTest {
                 } else {
                     // message received via IO handler (useReadOperation flag 
was not picked up before message delivery)
                     assertTrue("Message handler receive failed", 
receiveViaHandler.await(4L, TimeUnit.SECONDS));
-                    message = receivedMessage.getOpaque();
+                    message = receivedMessage.get();
                 }
 
                 assertEquals(1, message.remaining());
@@ -155,7 +155,7 @@ public class UseReadOperationTest {
 
                 while (true) {
 
-                    if (readOperationSet.getOpaque()) {
+                    if (readOperationSet.get()) {
                         break;
                     }
 
@@ -184,7 +184,7 @@ public class UseReadOperationTest {
                 assertTrue("Connect failed", 
connectFuture.awaitUninterruptibly(4L, TimeUnit.SECONDS));
 
                 
connectFuture.getSession().getConfig().setUseReadOperation(true);
-                readOperationSet.setOpaque(true);
+                readOperationSet.set(true);
 
                 ReadFuture readFuture = connectFuture.getSession().read();
                 assertTrue("Message receive failed", 
readFuture.awaitUninterruptibly(4L, TimeUnit.SECONDS));

Reply via email to