Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #12705

Re: Q: javac -source and -target version

From Emmanuel Bourg <ebourg@apache.org>
Newsgroups linux.debian.maint.java
Subject Re: Q: javac -source and -target version
Date 2023-10-04 20:00 +0200
Message-ID <Hlek9-dwui-3@gated-at.bofh.it> (permalink)
References <Hlc8F-dvgF-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Q: javac -source and -target version Hideki Yamane <henrich@iijmio-mail.jp> - 2023-10-04 17:40 +0200
  Re: Q: javac -source and -target version Emmanuel Bourg <ebourg@apache.org> - 2023-10-04 20:00 +0200
    Re: Q: javac -source and -target version Hideki Yamane <henrich@iijmio-mail.jp> - 2023-10-05 01:10 +0200
      Re: Q: javac -source and -target version Emmanuel Bourg <ebourg@apache.org> - 2023-10-05 01:40 +0200
        Re: Q: javac -source and -target version Hideki Yamane <henrich@iijmio-mail.jp> - 2023-10-08 05:30 +0200
          Re: Q: javac -source and -target version Emmanuel Bourg <ebourg@apache.org> - 2023-10-10 23:30 +0200

csiph-web