[logback-user] Nested Components in appender definition
lb
lburgazzoli at gmail.com
Tue Aug 26 12:07:43 CEST 2014
Hi Tony, your hint did solve my problem, thank you very much.
Luca
On Tue, Aug 26, 2014 at 4:58 AM, Tony Trinh <tony19 at gmail.com> wrote:
> BinaryIndexedChronicleAppender's setConfig method is using generics (in AbstractChronicleAppender<C>.setConfig(C
> config)), which is affected by Java's type erasure [1][2][3]. To
> workaround this, override setConfig with the desired type.
>
> public class BinaryIndexedChronicleAppender extends
> BinaryChronicleAppender<IndexedLogAppenderConfig> {
> // ...
>
> @Override
> public void setConfig(IndexedLogAppenderConfig config) {
> super.setConfig(config);
> }
> }
>
> [1] http://docs.oracle.com/javase/tutorial/java/generics/erasure.html
> [2]
> http://docs.oracle.com/javase/tutorial/java/generics/bridgeMethods.html
> [3] http://codereligion.com/beware-of-java-beans-introspector/
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20140826/69c6d948/attachment.html>
More information about the Logback-user
mailing list