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: Wed, 04 Oct 2023 20:00:01 +0200 Message-ID: References: X-Original-To: Hideki Yamane , debian-java@lists.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Wed Oct 4 17:50:07 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-13.368 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, NICE_REPLY_A=-3.058, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .apache. - helo: .mxout1-he-de.apache. - helo-domain: .apache.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 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/23387 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/b55ab874-3d82-ff19-2d1f-27044ba7b309@apache.org Approved: robomod@news.nic.it Lines: 15 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 4 Oct 2023 19:49:44 +0200 X-Original-Message-ID: X-Original-References: <20231004203610.f74e4636690002bd633454d3@iijmio-mail.jp> Xref: csiph.com linux.debian.maint.java:12705 Le 04/10/2023 à 13:36, Hideki Yamane a écrit : > Well, is there any text / document to use which version should be > used for -source and -target version, or is just dropping those options > allowed? For Java 17 the minimum was 7, and with Java 21 the minimum is 8. For packages using ant, Maven or Gradle the level is adjusted automatically. You can drop the language level, but the package will require the same version or higher at runtime. We should probably provide the minimum language level supported as a variable in the /usr/share/java/java_defaults.mk file from java-common. Emmanuel Bourg