Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
As a consequence of fixing bug https://bugzilla.redhat.com/show_bug.cgi?id=2164351, jdeparser build started to fail. Previously the build worked as maven (incorrectly) ignored the JAVA_HOME env variable.
The build uses a class from xmvn which was build with Java 11 but jdeparser needs to be built with Java 8. Thus, the build fails as Java 8 can use Java 11 bytecode:
...
...
Caused by: java.lang.UnsupportedClassVersionError: org/fedoraproject/xmvn/connector/maven/XMvnModelValidator has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Version-Release number of selected component (if applicable):
jdeparser-2.0.3-12.el9
How reproducible:
Always
Steps to Reproduce:
1. rpmbuild --rebuild jdeparser-2.0.3-12.el9.src.rpm
2.
3.
Actual results:
Expected results:
Additional info:
It appears the requirement for Java 8 is no longer necessary, I have a successful c9s scratch build with Java 11.
As we are in the blocker/exception phase for RHEL 9.2 I am targeting the fix for RHEL 9.3, we can backport the fix to RHEL 9.2.z if we need to do a build for it in the future.
Yes, because the problem is in building the package. It is a build system implementation detail on our side so the fix does not need shipping in an erratum to users. I chose CLOSED NEXTRELEASE because I confirmed that future builds of jdeparser are not affected by this bug, but there has not been a reason (rebase, another bug) to actually rebuild the package since then, so we still have the build from before this.