diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/util/NettyWritable.java b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/util/NettyWritable.java index 659f35f705..bf46e8143a 100644 --- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/util/NettyWritable.java +++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/util/NettyWritable.java @@ -17,6 +17,7 @@ package org.apache.activemq.artemis.protocol.amqp.util; import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; import org.apache.qpid.proton.codec.ReadableBuffer; import org.apache.qpid.proton.codec.WritableBuffer; @@ -103,6 +104,11 @@ public class NettyWritable implements WritableBuffer { nettyBuffer.writeBytes(payload); } + @Override + public void put(String value) { + nettyBuffer.writeCharSequence(value, StandardCharsets.UTF_8); + } + @Override public int limit() { return nettyBuffer.capacity(); diff --git a/pom.xml b/pom.xml index fb95a5efc3..beb9dcd57f 100644 --- a/pom.xml +++ b/pom.xml @@ -91,11 +91,12 @@ 3.6.13.Final 2.4 2.8.47 - 4.1.24.Final - 0.27.3 + 4.1.28.Final + 2.0.12.Final + 0.29.0 3.0.19.Final 1.7.21 - 0.33.0 + 0.36.0 0.9.5 1.0-alpha-1 1 diff --git a/tests/unit-tests/pom.xml b/tests/unit-tests/pom.xml index 3f00b6ef10..58d1678b1f 100644 --- a/tests/unit-tests/pom.xml +++ b/tests/unit-tests/pom.xml @@ -163,7 +163,7 @@ io.netty netty-tcnative-boringssl-static - 2.0.7.Final + ${netty-tcnative-version} test