You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Maarten Coene (Jira)" <ji...@apache.org> on 2023/07/18 18:51:00 UTC
[jira] [Comment Edited] (CONFIGURATION-835) Commons configuration 2.9.0 not compatible with Java 8
[ https://issues.apache.org/jira/browse/CONFIGURATION-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17744329#comment-17744329 ]
Maarten Coene edited comment on CONFIGURATION-835 at 7/18/23 6:50 PM:
----------------------------------------------------------------------
The issue has already been fixed on the master branch with changing {{pom.xml}} to use commons-parent version 57.
The commons-parent-57 pom sets the {{maven.compiler.release}} property to {{8}}, which solves this issue.
[~ggregory]: are there any plans to create a 2.9.1 release soon to make 'Commons Configuration' compatible with Java 8 again?
was (Author: maartenc):
The issue has already been fixed on the master branch with changing {{pom.xml}} to use commons-parent version 57.
The commons-parent-57 pom sets the {{maven.compiler.release}} property to {{8}}, which solves this issue.
[~ggregory]: are there any plans to create a 2.9.1 release soon which is compatible with Java 8 ?
> Commons configuration 2.9.0 not compatible with Java 8
> ------------------------------------------------------
>
> Key: CONFIGURATION-835
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-835
> Project: Commons Configuration
> Issue Type: Bug
> Components: Build
> Affects Versions: 2.9.0
> Reporter: Stijn Vranckx
> Priority: Major
> Fix For: 2.9.0
>
>
> The jar available from [https://commons.apache.org/proper/commons-configuration/download_configuration.cgi] is not compatible with Java 8.
> It seems to have been build with Java 11 and the - release 8 option.
> And therefor I run into the problem described here: [https://www.baeldung.com/java-compiler-release-option]
> org/apache/commons/configuration2/io/FileUtils.class contains the following byte code:
> {code}112: invokevirtual #21 // Method java/nio/ByteBuffer.flip:()Ljava/nio/ByteBuffer;{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)