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

[email protected] Sat, 07 Mar 2026 14:06:34 +0000
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289858

--- Comment #9 from Vladimir Druzenko <[email protected]> ---
> 3. JAVA_VERSION=17+, prefer 25 (latest)
> Option 3 will be more progressive when a new JDK is added to the tree.
IMHO, pick JAVA_DEFAULT if it in range or latest LTS in range.
JAVA_DEFAULT=21:
"8 11 17 18 19 20" => 17
"21 17 25" => 21

All the proposed options fail to solve one problem: how to build a specific
port with a specific version of Java, and another port with a different
version, all on the same host.
Moreover, both ports support both versions of Java.
I also want to avoid the need for the end user to manually edit the port to
achieve this goal.

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