Date: Thu, 11 Dec 2025 14:48:33 +0100 From: Harald Eilertsen <haraldei@anduin.net> To: Ronald Klop <ronald-lists@klop.ws> Cc: java@freebsd.org Subject: Re: javac source & target Message-ID: <rut5ljprdwycqqvndk4wmit4t7l6hiflyz3h35foeaj3ib2hb4@iveb3oitj3u2> In-Reply-To: <707700450.1043.1765456430535@localhost>
index | next in thread | previous in thread | raw e-mail
On Thu, Dec 11, 2025 at 01:33:50PM +0100, Ronald Klop wrote: > I'm looking into the PR "Mk/bsd.default-versions.mk: update JAVA_DEFAULT to 21". > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272855 > [...] > To make class files usable between ports I think it is user friendly to compile targeted for the oldest JDK in the ports tree which is now openjdk8. > Or we can aim to remove the source/target definitions and compile for JAVA_DEFAULT. > Unfortunately these source/target definitions are often hardcoded in the source code of the port so we need to patch anyways. I would assume that the upstream project has set the -source and -target options based on the JVM features they use, and that it is best to respect that as much as possible. H!home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rut5ljprdwycqqvndk4wmit4t7l6hiflyz3h35foeaj3ib2hb4>
