Skip to content

Commit 163f423

Browse files
authored
Update avro dep from 1.11.3 to 1.11.4 (#539)
1 parent 1acaa13 commit 163f423

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

avro/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstractions.
4747
<dependency>
4848
<groupId>org.apache.avro</groupId>
4949
<artifactId>avro</artifactId>
50-
<version>1.11.3</version>
50+
<version>1.11.4</version>
5151
</dependency>
5252

5353
<!-- and for testing we need logback -->

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/InteropTestBase.java

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import java.lang.reflect.Type;
66

77
import org.apache.avro.Schema;
8+
9+
import org.junit.Before;
810
import org.junit.runner.RunWith;
911
import org.junit.runners.Parameterized;
1012

@@ -25,6 +27,16 @@ public enum DummyEnum {
2527
NORTH, SOUTH, EAST, WEST
2628
}
2729

30+
// see https://github.com/FasterXML/jackson-dataformats-binary/pull/539 for
31+
// explanation (need to allow-list Jackson test packages for Avro 1.11.4+)
32+
@Before
33+
public void init() {
34+
System.setProperty("org.apache.avro.SERIALIZABLE_PACKAGES",
35+
"java.lang,java.math,java.io,java.net,org.apache.avro.reflect," +
36+
// ^^^ These are default trusted packages by Avro 1.11.4
37+
InteropTestBase.class.getPackage().getName());
38+
}
39+
2840
/**
2941
* Helper method for building a {@link ParameterizedType} for use with <code>roundTrip(Type, Object)</code>
3042
*

release-notes/VERSION-2.x

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Active maintainers:
2626
(fix contributed by Michal F)
2727
#536: (avro) Add Logical Type support for `java.util.UUID`
2828
(contributed by Michal F)
29+
#539: (avro) Upgrade `org.apache.avro:avro` dependency to 1.11.4
2930

3031
2.18.3 (not yet released)
3132

@@ -38,7 +39,7 @@ No changes since 2.18.1
3839

3940
2.18.1 (28-Oct-2024)
4041

41-
#518: Should not read past end for CBOR string values
42+
#518: (cbor) Should not read past end for CBOR string values
4243
(contributed by Knut W)
4344

4445
2.18.0 (26-Sep-2024)

0 commit comments

Comments
 (0)