-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Labels
has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issueIndicates that there exists a test case (under `failing/`) to reproduce the issue
Milestone
Description
Hello,
I ran into a bug today that I don't see a workaround for.
If I have an object like so:
@Setter
@Getter
public static class ObjectWithByteArray {
private byte[] arr;
}
and I try to deserialize "{\"arr\":null}"
, I get the following error:
com.fasterxml.jackson.core.JsonParseException: Current token (VALUE_NULL) not VALUE_STRING or VALUE_EMBEDDED_OBJECT, can not access as binary
at [Source: (String)"{"arr":null}"; line: 1, column: 12]
I then tried to implement a custom reader for byte arrays to work around this issue, however it seems like the error occurred before the reader has access to the value.
Metadata
Metadata
Assignees
Labels
has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issueIndicates that there exists a test case (under `failing/`) to reproduce the issue