Michel Lind created IVY-1652: -------------------------------- Summary: 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
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)