From e845da23de790a2fd8ea43019a54814d0ead930f Mon Sep 17 00:00:00 2001 From: Ceki Gulcu Date: Mon, 28 Oct 2024 19:52:07 +0100 Subject: [PATCH] compilation test for Supplier based converter maps Signed-off-by: Ceki Gulcu --- .../classic/pattern/SubPatternLayout.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 logback-classic/src/test/java/ch/qos/logback/classic/pattern/SubPatternLayout.java diff --git a/logback-classic/src/test/java/ch/qos/logback/classic/pattern/SubPatternLayout.java b/logback-classic/src/test/java/ch/qos/logback/classic/pattern/SubPatternLayout.java new file mode 100644 index 0000000000..471734cc92 --- /dev/null +++ b/logback-classic/src/test/java/ch/qos/logback/classic/pattern/SubPatternLayout.java @@ -0,0 +1,31 @@ +/* + * Logback: the reliable, generic, fast and flexible logging framework. + * Copyright (C) 1999-2024, QOS.ch. All rights reserved. + * + * This program and the accompanying materials are dual-licensed under + * either the terms of the Eclipse Public License v1.0 as published by + * the Eclipse Foundation + * + * or (per the licensee's choosing) + * + * under the terms of the GNU Lesser General Public License version 2.1 + * as published by the Free Software Foundation. + */ + +package ch.qos.logback.classic.pattern; + +import ch.qos.logback.classic.PatternLayout; + +import java.util.Map; + +/** + * Test backward compatibility support by virtue of correct compilation. + */ +public class SubPatternLayout extends PatternLayout { + + SubPatternLayout() { + Map defaultConverterMap = getDefaultConverterMap(); + defaultConverterMap.put("dooo", DateConverter.class.getName()); + } + +}