<div dir="ltr">Hi Tony, your hint did solve my problem, thank you very much.<div><br></div><div>Luca</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 4:58 AM, Tony Trinh <span dir="ltr"><<a href="mailto:tony19@gmail.com" target="_blank">tony19@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">BinaryIndexedChronicleAppender's setConfig method is using generics (in <font face="courier new, monospace">AbstractChronicleAppender<C>.setConfig(C config)</font>), which is affected by Java's type erasure [1][2][3]. To workaround this, override setConfig with the desired type.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font face="courier new, monospace">public class BinaryIndexedChronicleAppender extends BinaryChronicleAppender<IndexedLogAppenderConfig> {</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> // ...</font></div><div class="gmail_extra"><font face="courier new, monospace"><br></font></div><div class="gmail_extra"><font face="courier new, monospace"> @Override</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> public void setConfig(IndexedLogAppenderConfig config) {</font></div><div class="gmail_extra"><font face="courier new, monospace"> super.setConfig(config);</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> }</font></div><div class="gmail_extra"><font face="courier new, monospace">}</font></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">
[1] <a href="http://docs.oracle.com/javase/tutorial/java/generics/erasure.html" target="_blank">http://docs.oracle.com/javase/tutorial/java/generics/erasure.html</a><br>
</div><div class="gmail_extra">[2] <a href="http://docs.oracle.com/javase/tutorial/java/generics/bridgeMethods.html" target="_blank">http://docs.oracle.com/javase/tutorial/java/generics/bridgeMethods.html</a></div><div class="gmail_extra">
[3] <a href="http://codereligion.com/beware-of-java-beans-introspector/" target="_blank">http://codereligion.com/beware-of-java-beans-introspector/</a><br></div></div>
<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>