[ https://issues.apache.org/jira/browse/LOG4J2-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457152#comment-17457152 ]
dingjsh commented on LOG4J2-3205: --------------------------------- Thank you for your reply. But is it my method would be better. In this way, I can compile the right classes in my java9 env. > OutputStreamManager.flushBuffer throw NoSuchMethodError ByteBuffer.clear > ------------------------------------------------------------------------ > > Key: LOG4J2-3205 > URL: https://issues.apache.org/jira/browse/LOG4J2-3205 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Reporter: dingjsh > Priority: Major > Attachments: image-2021-12-10-20-52-45-490.png, > image-2021-12-10-20-53-34-503.png, image-2021-12-10-20-54-02-134.png > > > Using mvn with jdk9, the compiled sources would throw NoSuchMethodError > ByteBuffer.clear when running in a jdk1.8 env. > if change the pom.xml, using > <maven.compiler.release>8</maven.compiler.release> instead of the orginal > maven.compiler.source and maven.compiler.target,it would solve the problem. > > !image-2021-12-10-20-52-45-490.png! > !image-2021-12-10-20-53-34-503.png! > !image-2021-12-10-20-54-02-134.png! > -- This message was sent by Atlassian Jira (v8.20.1#820001)