Skip to content

Commit

Permalink
Reproducer for #912 - JSONWire cannot resume parsing after ignoring m…
Browse files Browse the repository at this point in the history
…issing alias object
  • Loading branch information
alamar committed Jun 24, 2024
1 parent 419790c commit 32b5b25
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ void typedFieldsShouldBeNonNull(Function<Bytes<byte[]>, Wire> wireConstruction)
final Bytes<byte[]> bytes = Bytes.from("" +
"!net.openhft.chronicle.wire.AbstractUntypedFieldShouldBeNull$Holder {\n" +
" a: !AImpl {\n" +
" }\n" +
" }," +
" \"b\": \"Impl\",\n" +
"}");
final Wire textWire = wireConstruction.apply(bytes);

Expand All @@ -72,7 +73,8 @@ void typedFieldsShouldBeNonNull(Function<Bytes<byte[]>, Wire> wireConstruction)
void untypedFieldsShouldBeNull(Function<Bytes<byte[]>, Wire> wireConstruction) {
final Bytes<byte[]> bytes = Bytes.from("!net.openhft.chronicle.wire.AbstractUntypedFieldShouldBeNull$Holder {\n" +
" a: {\n" +
" }\n" +
" }," +
" \"b\": \"Abstract\",\n" +
"}");
final Wire textWire = wireConstruction.apply(bytes);

Expand Down Expand Up @@ -112,6 +114,7 @@ private static final class AImpl extends A {
// Holder class to hold instances of type A
private static final class Holder {
A a;
String b;
}

}

0 comments on commit 32b5b25

Please sign in to comment.