diff --git a/client/src/com/aerospike/client/Value.java b/client/src/com/aerospike/client/Value.java index 0dc598846..41ce95959 100644 --- a/client/src/com/aerospike/client/Value.java +++ b/client/src/com/aerospike/client/Value.java @@ -630,6 +630,8 @@ public int getLength() { * Byte value. */ public static final class ByteValue extends Value { + private static final int TYPE = ParticleType.INTEGER; + private final byte value; public ByteValue(byte value) { @@ -660,7 +662,7 @@ public void pack(Packer packer) { @Override public int getType() { // The server does not natively handle one byte, so store as long (8 byte integer). - return ParticleType.INTEGER; + return TYPE; } @Override