File tree 1 file changed +2
-2
lines changed
avro/src/test/java/com/fasterxml/jackson/dataformat/avro/fuzz
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ static class RootType {
22
22
23
23
@ Test
24
24
public void testFuzz65618IOOBE () throws Exception {
25
- final AvroFactory factory = AvroFactory .builderWithApacheDecoder ().build ();
25
+ final AvroFactory factory = AvroFactory .builderWithNativeDecoder ().build ();
26
26
final AvroMapper mapper = new AvroMapper (factory );
27
27
28
28
final byte [] doc = {
@@ -32,7 +32,7 @@ public void testFuzz65618IOOBE() throws Exception {
32
32
};
33
33
34
34
final AvroSchema schema = mapper .schemaFor (RootType .class );
35
- try (AvroParser p = factory .createParser (doc )) {
35
+ try (AvroParser p = ( AvroParser ) mapper .createParser (doc )) {
36
36
p .setSchema (schema );
37
37
assertToken (JsonToken .START_OBJECT , p .nextToken ());
38
38
assertToken (JsonToken .FIELD_NAME , p .nextToken ());
You can’t perform that action at this time.
0 commit comments