Skip to content

Commit

Permalink
Update avro dep from 1.11.3 to 1.11.4 (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder authored Jan 6, 2025
1 parent 1acaa13 commit 163f423
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstractions.
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>1.11.3</version>
<version>1.11.4</version>
</dependency>

<!-- and for testing we need logback -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import java.lang.reflect.Type;

import org.apache.avro.Schema;

import org.junit.Before;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

Expand All @@ -25,6 +27,16 @@ public enum DummyEnum {
NORTH, SOUTH, EAST, WEST
}

// see https://github.com/FasterXML/jackson-dataformats-binary/pull/539 for
// explanation (need to allow-list Jackson test packages for Avro 1.11.4+)
@Before
public void init() {
System.setProperty("org.apache.avro.SERIALIZABLE_PACKAGES",
"java.lang,java.math,java.io,java.net,org.apache.avro.reflect," +
// ^^^ These are default trusted packages by Avro 1.11.4
InteropTestBase.class.getPackage().getName());
}

/**
* Helper method for building a {@link ParameterizedType} for use with <code>roundTrip(Type, Object)</code>
*
Expand Down
3 changes: 2 additions & 1 deletion release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Active maintainers:
(fix contributed by Michal F)
#536: (avro) Add Logical Type support for `java.util.UUID`
(contributed by Michal F)
#539: (avro) Upgrade `org.apache.avro:avro` dependency to 1.11.4

2.18.3 (not yet released)

Expand All @@ -38,7 +39,7 @@ No changes since 2.18.1

2.18.1 (28-Oct-2024)

#518: Should not read past end for CBOR string values
#518: (cbor) Should not read past end for CBOR string values
(contributed by Knut W)

2.18.0 (26-Sep-2024)
Expand Down

0 comments on commit 163f423

Please sign in to comment.