From nobody Thu Dec 11 13:48:33 2025 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with UTF8SMTP id 4dRv7b2kZ5z6JmGQ for ; Thu, 11 Dec 2025 13:48:43 +0000 (UTC) (envelope-from haraldei@anduin.net) Received: from mail.anduin.net (mail.anduin.net [185.42.170.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with UTF8SMTPS id 4dRv7b0mrbz3VDD for ; Thu, 11 Dec 2025 13:48:43 +0000 (UTC) (envelope-from haraldei@anduin.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anduin.net; s=dkim2021; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7Tr/V/vOvAtpmf/Pbzw7BH3UfOtAdu/OEbrjBKeOTFs=; t=1765460922; x=1766324922; b=uGp4E7SGdh4reKJt5eKtL2N1OYrZRudKwaRLBCIvFvMEOwQ3RbEt+EIOE9ywMyLc8/MTFCA35+t kOf+2oaPYRjva6NCXMfgDegYaOKF8l2y7A8kfPkI/WJIl/asu8fAsprS70PP4+JOw8Ov2f3+2kVle rkHUFC3XagIdIKPqPgjd4JZW4q2d7oGd/c7DOy079PvRBaCN1UCbmsTctaRCUYVqncKIJkdX+5aFe yW7gITsAa8jB2251VdUqBFH7ob1Jws2cByYQ783x7iE8y3aOPfSoOWfEoiAI+p8nkTDcvUwpVvKNX 7SsiVaul4o0xofLqAyiuOKFrNnlZzxwi0BzQ==; Received: by mail.anduin.net with utf8esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.98.2 (FreeBSD)) (envelope-from ) id 1vTh21-0000000099G-3JQh; Thu, 11 Dec 2025 13:48:35 +0000 Date: Thu, 11 Dec 2025 14:48:33 +0100 From: Harald Eilertsen To: Ronald Klop Cc: java@freebsd.org Subject: Re: javac source & target Message-ID: References: <707700450.1043.1765456430535@localhost> List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <707700450.1043.1765456430535@localhost> X-SA-Authenticated: Yes X-Spam-Score: -1.9 X-Spam-Level: - X-Spam-Report: host: mail.modirum.com | contact: hostmaster@modirum.com | scores: BAYES_00=-1.9,NO_RELAYS=-0.001 | autolearn=no autolearn_force=no, score=0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62248, ipnet:185.42.170.0/24, country:EE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dRv7b0mrbz3VDD 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!