diff --git a/avro/src/test/java/com/fasterxml/jackson/dataformat/avro/fuzz/AvroFuzz449_65618_IOOBETest.java b/avro/src/test/java/com/fasterxml/jackson/dataformat/avro/fuzz/AvroFuzz449_65618_IOOBETest.java index fbcc2df6c..6e55c8056 100644 --- a/avro/src/test/java/com/fasterxml/jackson/dataformat/avro/fuzz/AvroFuzz449_65618_IOOBETest.java +++ b/avro/src/test/java/com/fasterxml/jackson/dataformat/avro/fuzz/AvroFuzz449_65618_IOOBETest.java @@ -22,7 +22,7 @@ static class RootType { @Test public void testFuzz65618IOOBE() throws Exception { - final AvroFactory factory = AvroFactory.builderWithApacheDecoder().build(); + final AvroFactory factory = AvroFactory.builderWithNativeDecoder().build(); final AvroMapper mapper = new AvroMapper(factory); final byte[] doc = { @@ -32,7 +32,7 @@ public void testFuzz65618IOOBE() throws Exception { }; final AvroSchema schema = mapper.schemaFor(RootType.class); - try (AvroParser p = factory.createParser(doc)) { + try (AvroParser p = (AvroParser) mapper.createParser(doc)) { p.setSchema(schema); assertToken(JsonToken.START_OBJECT, p.nextToken()); assertToken(JsonToken.FIELD_NAME, p.nextToken());