You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Kok Chee Kean (Jira)" <ji...@apache.org> on 2021/12/22 06:46:00 UTC

[jira] [Commented] (LOG4J2-3271) When compiling 2.17.0 java8 error

    [ https://issues.apache.org/jira/browse/LOG4J2-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17463601#comment-17463601 ] 

Kok Chee Kean commented on LOG4J2-3271:
---------------------------------------

You might have an older version of disruptor on your classpath, from before feb 2018 when they added a constructor with sleep time as an argument.

> When compiling 2.17.0 java8 error
> ---------------------------------
>
>                 Key: LOG4J2-3271
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3271
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 2.17.0
>            Reporter: slava
>            Priority: Major
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project log4j-core: Compilation failure
> [ERROR] /builddir/build/BUILD/apache-log4j-2.17.0-src/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java:[76,23] error: no suitable constructor found for SleepingWaitStrategy(int,long)
> [ERROR]     constructor SleepingWaitStrategy.SleepingWaitStrategy() is not applicable
> [ERROR]       (actual and formal argument lists differ in length)
> [ERROR]     constructor SleepingWaitStrategy.SleepingWaitStrategy(int) is not applicable
> [ERROR]       (actual and formal argument lists differ in length)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)