diff --git a/src/main/java/net/spy/memcached/protocol/ascii/TouchOperationImpl.java b/src/main/java/net/spy/memcached/protocol/ascii/TouchOperationImpl.java index 29ce9b578..a077a23db 100644 --- a/src/main/java/net/spy/memcached/protocol/ascii/TouchOperationImpl.java +++ b/src/main/java/net/spy/memcached/protocol/ascii/TouchOperationImpl.java @@ -25,6 +25,7 @@ import net.spy.memcached.ops.StatusCode; import net.spy.memcached.ops.TouchOperation; +import java.nio.Buffer; import java.nio.ByteBuffer; import java.util.Collection; import java.util.Collections; @@ -78,7 +79,7 @@ public void initialize() { ByteBuffer bb = ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length + String.valueOf(exp).length() + OVERHEAD); setArguments(bb, "touch", key, String.valueOf(exp)); - bb.flip(); + ((Buffer) bb).flip(); setBuffer(bb); }