Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.maint.java Subject: Re: Q: javac -source and -target version Date: Thu, 05 Oct 2023 01:40:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Wed Oct 4 23:37:05 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-16.068 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, NICE_REPLY_A=-3.058, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Greylist: delayed 599 seconds by postgrey-1.36 at bendel; Wed, 04 Oct 2023 23:36:47 UTC Authentication-Results: apache.org; auth=none MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/23389 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1d7e0df4-594d-6507-dfa9-fa7021c4ee18@apache.org Approved: robomod@news.nic.it Lines: 25 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-java@lists.debian.org X-Original-Date: Thu, 5 Oct 2023 01:26:11 +0200 X-Original-Message-ID: <1d7e0df4-594d-6507-dfa9-fa7021c4ee18@apache.org> X-Original-References: <20231004203610.f74e4636690002bd633454d3@iijmio-mail.jp> <20231005080730.ab014b6dd1c1d9e87fac4639@iijmio-mail.jp> Xref: csiph.com linux.debian.maint.java:12707 Le 05/10/2023 à 01:07, Hideki Yamane a écrit : >> We should probably provide the minimum language level supported as a >> variable in the /usr/share/java/java_defaults.mk file from java-common. > > Nice, each Java packages do not need to care about which level > should use and drop it safely, then? I've just uploaded java-common/0.75 with a new java_compat_level variable if you want to give it a try: #!/usr/bin/make -f include /usr/share/java/java_defaults.mk build: javac -source $(java_compat_level) -target $(java_compat_level) ... It's preferable to keep using the -source/-target options rather than removing them, it extends the lower bound of the Java versions range usable with the package. Emmanuel Bourg