You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Jaikiran Pai (Jira)" <ji...@apache.org> on 2024/11/09 04:32:00 UTC

[jira] [Commented] (IVY-1652) The latest Ivy (2.5.2) does not compile with JDK 21

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

Jaikiran Pai commented on IVY-1652:
-----------------------------------

Hello Michel, I don't follow the Red Hat/Fedora OS package management, so I don't have anything to note about the JDK package shipped in those. However,

> JDK 17 is no longer supported by Oracle,

I don't understand this. Oracle certainly supports JDK 17.

 

> The latest Ivy (2.5.2) does not compile with JDK 21
> ---------------------------------------------------
>
>                 Key: IVY-1652
>                 URL: https://issues.apache.org/jira/browse/IVY-1652
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.2
>            Reporter: Michel Lind
>            Priority: Major
>
> JDK 17 is no longer supported by Oracle, and as a result in Fedora's upcoming 42 release as well as Red Hat's upcoming RHEL 10 the only JDK shipped is OpenJDK 21 (with the Eclipse Temurin repository shipped in disabled form for those who need older JDKs).
> This means we can't build any Java package in Fedora rawhide and the Extra Packages for Enterprise Linux (EPEL) 10 repositories that is not compatible with JDK 21, and... unfortunately this includes Ivy
> See [https://bugzilla.redhat.com/show_bug.cgi?id=2324760]
>     [javac] /builddir/build/BUILD/apache-ivy-2.5.2-build/apache-ivy-2.5.2/src/java/org/apache/ivy/util/FileUtil.java:49: er
> ror: cannot find symbol                                                                                                    
>     [javac] import static java.util.jar.Pack200.newUnpacker;                                                               
>     [javac]                            ^                                                                                   
>     [javac]   symbol:   class Pack200            
>     [javac]   location: package java.util.jar
> It looks like JEP 336 which deprecates Pack200 is now fully implemented, and this deprecated API has been removed [https://openjdk.org/jeps/336]
> Is there a plan to fix this? It is blocking packaging a lot of Golang packages for EPEL 10 (and soon, for Fedora since packages that fail to build from source eventually get retired) since golang-github-google-cel needs antlr4 and in turns a lot of golang-x-* packages eventually depend on it
> Thanks!
> Also sent to the mailing list in https://lists.apache.org/thread/9dfws64qkyoxbtk6474hpoyxxc2hncdv



--
This message was sent by Atlassian Jira
(v8.20.10#820010)