On Wed, Mar 18, 2026 at 03:00:04AM +0900, Takashi Kajinami wrote:
On 3/17/26 7:46 PM, Daniel P. Berrangé via Devel wrote:
On Sun, Mar 15, 2026 at 08:13:51PM +0900, Takashi Kajinami wrote:
3. Can we bump minimum JDK version ? Current minimum JSK version supported by the library is 1.8.0 but this is quite old ELS. I wonder if we can bump it to a newer version such as OpenJDK 17 or even 21. This is required to replace "finalize". Is there requirement about the platform the library should support ?
Libvirt's general policy has been to target the 2 most recent major releases of common OS distros:
https://libvirt.org/platforms.html
In the absence of an explicit different policy for libvirt-java, we can use the common policy as a guide.
JDK 1.8.0 is so ancient we can definitely modernize quite a long way forward.
The older supported platforms are Ubuntu 22.04 / RHEL-9, but AFAICT both of them include OpenJDK 21 support. So that sounds viable as an upgrade.
IIUC the default OpenJDK version in these operating system versions are bit older (11 in Ubuntu 22.04 and 17 in RHEL9/CentOS Stream 9), but newer LTS versions (21 or even 25) are also packages. I guess we can set our first target to 11, but will check if we can/should bump it further.
In fact Ubuntu 22.04 is about to drop off our build target list, as Ubuntu 26.04 should be arriving very soon now, leaving us with only 24.04 and 26.04 to worry about. CentOS 9 will be around for a bit over another year, before it would be eligible for retirement from libvirt's platform target list, under the "2 year overlap" rule. So probably OpenJDK 17 is a viable min target already. With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|