This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch 2.0.X
in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.0.X by this push:
new d2681bb09 Fixed the copyright date. Fixed a test execution error on
Java 17
d2681bb09 is described below
commit d2681bb09a650a3c43d71b3732c68889415015ab
Author: emmanuel lecharny <[email protected]>
AuthorDate: Wed Sep 13 15:16:34 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 444584d24..cfc2d7104 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;
@@ -1104,7 +1105,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);
}
}