<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">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">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/">http://codereligion.com/beware-of-java-beans-introspector/</a><br></div></div>