PR for the changes were submitted, tested and merged into dist-git. FTR, pull requests implementing the change: - apache-commons-beanutils: https://src.fedoraproject.org/rpms/apache-commons-beanutils/pull-request/2 - apache-commons-collections: https://src.fedoraproject.org/rpms/apache-commons-collections/pull-request/3 - apache-commons-jxpath: https://src.fedoraproject.org/rpms/apache-commons-jxpath/pull-request/1 - apache-commons-logging: https://src.fedoraproject.org/rpms/apache-commons-logging/pull-request/3 - apache-commons-net: https://src.fedoraproject.org/rpms/apache-commons-net/pull-request/1 - apiguardian: https://src.fedoraproject.org/rpms/apiguardian/pull-request/3 - atinject: https://src.fedoraproject.org/rpms/atinject/pull-request/1 - bsf: https://src.fedoraproject.org/rpms/bsf/pull-request/4 - cglib: https://src.fedoraproject.org/rpms/cglib/pull-request/3 - easymock: https://src.fedoraproject.org/rpms/easymock/pull-request/2 - jakarta-mail: https://src.fedoraproject.org/rpms/jakarta-mail/pull-request/1 - java_cup: https://src.fedoraproject.org/rpms/java_cup/pull-request/2 - javapackages-bootstrap: https://src.fedoraproject.org/rpms/javapackages-bootstrap/pull-request/5 - javapackages-tools: https://src.fedoraproject.org/rpms/javapackages-tools/pull-request/7 - jdom: https://src.fedoraproject.org/rpms/jdom/pull-request/3 - jdom2: https://src.fedoraproject.org/rpms/jdom2/pull-request/4 - jsch: https://src.fedoraproject.org/rpms/jsch/pull-request/2 - junit: https://src.fedoraproject.org/rpms/junit/pull-request/5 - jzlib: https://src.fedoraproject.org/rpms/jzlib/pull-request/1 - maven: https://src.fedoraproject.org/rpms/maven/pull-request/30 - maven-file-management: https://src.fedoraproject.org/rpms/maven-file-management/pull-request/1 - maven-plugin-testing: https://src.fedoraproject.org/rpms/maven-plugin-testing/pull-request/1 - maven-shared-io: https://src.fedoraproject.org/rpms/maven-shared-io/pull-request/1 - mockito: https://src.fedoraproject.org/rpms/mockito/pull-request/3 - munge-maven-plugin: https://src.fedoraproject.org/rpms/munge-maven-plugin/pull-request/1 - objectweb-asm: https://src.fedoraproject.org/rpms/objectweb-asm/pull-request/7 - opentest4j: https://src.fedoraproject.org/rpms/opentest4j/pull-request/2 - osgi-annotation: https://src.fedoraproject.org/rpms/osgi-annotation/pull-request/3 - plexus-build-api: https://src.fedoraproject.org/rpms/plexus-build-api/pull-request/2 - qdox: https://src.fedoraproject.org/rpms/qdox/pull-request/4 - sisu-mojos: https://src.fedoraproject.org/rpms/sisu-mojos/pull-request/4 - univocity-parsers: https://src.fedoraproject.org/rpms/univocity-parsers/pull-request/5 - xalan-j2: https://src.fedoraproject.org/rpms/xalan-j2/pull-request/3 - xbean: https://src.fedoraproject.org/rpms/xbean/pull-request/7 - xml-commons-apis: https://src.fedoraproject.org/rpms/xml-commons-apis/pull-request/1 - xmvn: https://src.fedoraproject.org/rpms/xmvn/pull-request/8 -- Mikolaj Izdebski On Wed, Nov 3, 2021 at 10:29 AM Mikolaj Izdebski <mizdebsk@xxxxxxxxxx> wrote: > > Hello, > > I've ported all my packages to be buildable with OpenJDK 17. > I have not pushed the changes to dist-git yet, but I will do it before > the end of the week. > > I wanted to share common problems I encountered and solutions I came up with. > I hope that this will help others trying to port their packages. > > Problem 1: Compiler source/target levels 1.6 are no longer supported > Solution: Bump source/target levels to 1.7 or 1.8 > Packages affected: > - apache-commons-beanutils > - apache-commons-collections > - apache-commons-jxpath > - apache-commons-logging > - apache-commons-net > - apiguardian > - atinject > - bsf > - cglib > - java_cup > - jdom > - jdom2 > - jsch > - junit > - jzlib > - maven-file-management > - maven-plugin-testing > - maven-shared-io > - munge-maven-plugin > - opentest4j > - osgi-annotation > - plexus-build-api > - qdox > - sisu-mojos > - xalan-j2 > - xbean > - xml-commons-apis > > Problem 2: Tests that use reflection fail with <<module java.base does > not "opens java.lang">> or similar error > Solution: Run tests with appropriate --add-opens parameter passed to JVM > Packages affected: > - easymock > - mockito > - xmvn > > Problem 3: Code does not recognize Java bytecode version 61.0 > Solution: Update to newer upstream version that supports newer Java bytecode. > Package affected: > - objectweb-asm > > Problem 4: Code is compiled with -Werror passed to javac, but OpenJDK > 17 introduces new warnings > Solution: Do not pass -Werror to Java compiler > Package affected: > - jakarta-mail > > Problem 5: Wildcard imports are used in the code, but OpenJDK 17 > introduces new classes that cause import ambiguity > Solution: Add explicit imports > Package affected: > - univocity-parsers > > Packages that needed changes to make RPM Java packaging tooling to > work with OpenJDK 17: > - javapackages-bootstrap > - javapackages-tools > - maven > > -- > Mikolaj _______________________________________________ java-devel mailing list -- java-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to java-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/java-devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure