[
https://issues.apache.org/jira/browse/LOG4J2-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467962#comment-17467962
]
Volkan Yazici commented on LOG4J2-3302:
---------------------------------------
Thanks so much for the report [~nielsull]! Mind submitting a PR fixing the
issue along with a test, please? Certain remarks:
* Target {{release-2.x}} branch
* Update {{changes.xml}}
* You should be able to (not tested!) avoid Java 9 toolchain setup by simply
excluding the following modules: log4j-api-java9, log4j-core-java9, log4j-perf.
> Xml configuration of ClassArbiter does not work
> -----------------------------------------------
>
> Key: LOG4J2-3302
> URL: https://issues.apache.org/jira/browse/LOG4J2-3302
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.17.1
> Environment: Java 11
> Reporter: Niels Ull Harremoës
> Priority: Major
> Attachments: Fix_ClassArbiter_factory-with-tests.patch,
> Fix_ClassArbiter_factory.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> I am trying to get the ClassArbiter to work. There are no samples, but
> delving into the source, I though this should work:
> {{<ClassArbiter className="java.lang.String">}}
>
> It doesn't.
> I guess this is due to line 43-47 of ClassArbiter.java:
> @PluginBuilderFactory
> public static SystemPropertyArbiter.Builder newBuilder() {
> return new SystemPropertyArbiter.Builder();
> }
> This should be
> @PluginBuilderFactory
> public static ClassArbiter.Builder newBuilder() {
> return new ClassArbiter.Builder();
> }
>
> Ideally, the documentation should include a sample of how to use ClassArbiter
--
This message was sent by Atlassian Jira
(v8.20.1#820001)