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


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

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-05 01:40 +0200
Message-ID <HljDb-dAgY-1@gated-at.bofh.it> (permalink)
References <Hlc8F-dvgF-7@gated-at.bofh.it> <Hlek9-dwui-3@gated-at.bofh.it> <Hljaa-dA7q-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

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