[
https://issues.apache.org/jira/browse/LOG4NET-390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dominik Psenner resolved LOG4NET-390.
-------------------------------------
Resolution: Invalid
ToArray() is overridden:
http://logging.apache.org/log4net/release/sdk/log4net.Appender.AppenderCollection.ToArray.html
The patch you provide adds an override in the ReadOnlyAppenderCollection, which
inherits ToArray() from AppenderCollection and hence is not needed.
Please post a Test that proves the issue if this does not work for you.
> ReadOnlyAppenderCollection.ToArray returns empty array
> ------------------------------------------------------
>
> Key: LOG4NET-390
> URL: https://issues.apache.org/jira/browse/LOG4NET-390
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 1.2.9, 1.2.10, 1.2.11, 1.2.12
> Reporter: Carlos Muñoz Rodriguez
> Priority: Minor
> Labels: easyfix, patch
> Attachments: AppenderCollection.cs.patch
>
>
> log4net.Appender.AppenderCollection.ReadOnlyAppenderCollection does not
> override ToArray().
> As a consequence ToArray calls returns always empty arrays.
> Fix:
> public override IAppender[] ToArray()
> {
> return m_collection.ToArray();
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira