This commit is contained in:
Michael Andre Pearce 2018-08-25 07:22:53 +01:00
commit e0a2714512
3 changed files with 11 additions and 4 deletions

View File

@ -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();

View File

@ -91,11 +91,12 @@
<jgroups.version>3.6.13.Final</jgroups.version>
<maven.assembly.plugin.version>2.4</maven.assembly.plugin.version>
<mockito.version>2.8.47</mockito.version>
<netty.version>4.1.24.Final</netty.version>
<proton.version>0.27.3</proton.version>
<netty.version>4.1.28.Final</netty.version>
<netty-tcnative-version>2.0.12.Final</netty-tcnative-version>
<proton.version>0.29.0</proton.version>
<resteasy.version>3.0.19.Final</resteasy.version>
<slf4j.version>1.7.21</slf4j.version>
<qpid.jms.version>0.33.0</qpid.jms.version>
<qpid.jms.version>0.36.0</qpid.jms.version>
<johnzon.version>0.9.5</johnzon.version>
<json-p.spec.version>1.0-alpha-1</json-p.spec.version>
<javax.inject.version>1</javax.inject.version>

View File

@ -163,7 +163,7 @@
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>2.0.7.Final</version>
<version>${netty-tcnative-version}</version>
<scope>test</scope>
</dependency>