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

elecharny pushed a commit to branch 2.1.X
in repository https://gitbox.apache.org/repos/asf/mina.git


The following commit(s) were added to refs/heads/2.1.X by this push:
     new d05fcc610 Fixed the copyright date. Fixed a test execution error on 
Java 17
d05fcc610 is described below

commit d05fcc610052b480b8db13ddc4df46a180400e56
Author: emmanuel lecharny <elecha...@apache.org>
AuthorDate: Wed Sep 13 15:22:47 2023 +0200

    Fixed the copyright date. Fixed a test execution error on Java 17
---
 NOTICE-bin.txt                                                      | 2 +-
 NOTICE.txt                                                          | 2 +-
 .../src/test/java/org/apache/mina/core/buffer/IoBufferTest.java     | 6 +++++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/NOTICE-bin.txt b/NOTICE-bin.txt
index c329497dc..0688a2c8c 100644
--- a/NOTICE-bin.txt
+++ b/NOTICE-bin.txt
@@ -1,5 +1,5 @@
 Apache MINA
-Copyright 2007-2016 The Apache Software Foundation.
+Copyright 2007-2023 The Apache Software Foundation.
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
diff --git a/NOTICE.txt b/NOTICE.txt
index 0dcee63b7..1362ad1c3 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,5 +1,5 @@
 Apache MINA
-Copyright 2007-2016 The Apache Software Foundation.
+Copyright 2007-2023 The Apache Software Foundation.
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
diff --git 
a/mina-core/src/test/java/org/apache/mina/core/buffer/IoBufferTest.java 
b/mina-core/src/test/java/org/apache/mina/core/buffer/IoBufferTest.java
index 27f91b119..db99c337b 100644
--- a/mina-core/src/test/java/org/apache/mina/core/buffer/IoBufferTest.java
+++ b/mina-core/src/test/java/org/apache/mina/core/buffer/IoBufferTest.java
@@ -34,6 +34,7 @@ import java.nio.charset.CharacterCodingException;
 import java.nio.charset.Charset;
 import java.nio.charset.CharsetDecoder;
 import java.nio.charset.CharsetEncoder;
+import java.nio.charset.CoderMalfunctionError;
 import java.nio.charset.StandardCharsets;
 import java.util.ArrayList;
 import java.util.Date;
@@ -1106,7 +1107,10 @@ public class IoBufferTest {
             duplicate.putString("A very very very very looooooong string", 
Charset.forName("ISO-8859-1").newEncoder());
             fail("ReadOnly buffer's can't be expanded");
         } catch (ReadOnlyBufferException e) {
-            // Expected an Exception, signifies test success
+            // In Java 8 or 11, it expects an Exception, signifies test success
+            assertTrue(true);
+        } catch (CoderMalfunctionError cme) {
+            // In Java 17, it expects an Error, signifies test success
             assertTrue(true);
         }
     }

Reply via email to