[logback-user] Nested Components in appender definition
Tony Trinh
tony19 at gmail.com
Tue Aug 26 04:58:58 CEST 2014
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20140825/51ea56dc/attachment.html>
More information about the Logback-user
mailing list