[Bug 289858] Mk/Uses/java.mk: Use JAVA_VERSION as priority

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 05 Mar 2026 10:50:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289858

Ronald Klop <ronald@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronald@FreeBSD.org

--- Comment #7 from Ronald Klop <ronald@FreeBSD.org> ---
(In reply to Vladimir Druzenko from comment #6)
I would love to have this feature:
JAVA_VERSION= <preferred version> [additional supported versions]
So I could specify this for example.
JAVA_VERSION=17 11 8

But without the mentioned regression of ignoring the JAVA_DEFAULT.
No JAVA_VERSION or JAVA_VERSION=17+ should still provide the current
JAVA_DEFAULT (21).

I will take a look at your patch and test it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.