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

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

{{That would be the JDK Platform Logger module, which isn't packaged in the 
distributed 2.17.0 binary and is explicitly stated to require Java 11 over at 
[Log4j JDK Platform Logging Adapter – Log4j 2 JDK Platform Logging Adapter 
(apache.org)|https://logging.apache.org/log4j/2.x/log4j-jpl/index.html]. I 
can't speak for the dev team of course, but it looks like you can safely 
exclude that module when building it on Java 8 by using the -pl "!log4j-jpl" 
argument. You'll still need a Java 9 compiler since there's another module that 
depends on JDK9. You can probably check the sample toolchains files to see what 
needs to be done.}}

> 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)

Reply via email to