From 1a32d9d07efcc2b089a5d42ee8f4b14e03607b3c Mon Sep 17 00:00:00 2001
From: Tatu Saloranta <tatu.saloranta@iki.fi>
Date: Sat, 12 Oct 2019 11:00:17 -0700
Subject: [PATCH] Fix #2498

---
 .../jackson/databind/jsontype/impl/SubTypeValidator.java      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java b/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java
index d28e2b9..bdd5100 100644
--- a/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java
+++ b/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java
@@ -235,6 +235,10 @@ public class SubTypeValidator
 	s.add("org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource");
 	s.add("org.apache.tomcat.dbcp.dbcp.datasources.SharedPoolDataSource");
 
+	// [databind#2498]: log4j-extras (1.2)
+	s.add("org.apache.log4j.receivers.db.DriverManagerConnectionSource");
+	s.add("org.apache.log4j.receivers.db.JNDIConnectionSource");
+
         DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
     }
 
-- 
2.30.0

