You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When writing a single ascii character using ByteBufferOutput.writeAscii, reading will fail with an exception.
To Reproduce
public static void main(String[] args) {
var os = new ByteArrayOutputStream();
try (ByteBufferOutput out = new ByteBufferOutput(os)) {
out.writeAscii("A");
out.flush();
}
try (ByteBufferInput input = new ByteBufferInput(os.toByteArray())) {
System.out.println(input.readString());
}
}
Environment:
OS: [Windows]
JDK Version: [JDK18]
Kryo Version: [e.g. 5.3.0]
Additional context
If I replace "A" with "AB" in the sample code above it works just fine. It also works if I use UnsafeInput/UnsafeOutput instead of ByteBufferOutput/ByteBufferInput
The text was updated successfully, but these errors were encountered:
Thanks for the quick fix! Verified against the latest snapshot and it
works fine now.
Best regards,
Ulf
Den ons 5 okt. 2022 14:59Thomas Heigl ***@***.***> skrev:
Describe the bug
When writing a single ascii character using ByteBufferOutput.writeAscii, reading will fail with an exception.
To Reproduce
Environment:
Additional context
If I replace "A" with "AB" in the sample code above it works just fine. It also works if I use UnsafeInput/UnsafeOutput instead of ByteBufferOutput/ByteBufferInput
The text was updated successfully, but these errors were encountered: