[Bug 293467] Mk/Uses/java.mk: add support for JAVA_VERSION=default and JAVA_VERSION=latest

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Feb 2026 17:25:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293467

Ronald Klop <ronald@FreeBSD.org> changed:

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

--- Comment #3 from Ronald Klop <ronald@FreeBSD.org> ---
I like the idea of your change.
The JAVA_VERSION=latest seems a nice new feature to me.

What I don’t understand, how is JAVA_VERSION=default different from not setting
JAVA_VERSION at all?

And do you have an example of “preferring ancient versions and ignoring value
set in bsd.default-versions.mk”? I saw a port with JAVA_VERSION=17+ correctly
choosing openjdk21 now 21 is the default.
https://www.freshports.org/astro/traccar/

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