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?
We should probably provide the minimum language level supported as a
variable in the /usr/share/java/java_defaults.mk file from java-common.
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.
Thank you, and how about adding java_compat_level=8 for Java21?
Since some FTBFS reports are there.
https://salsa.debian.org/java-team/java-common/-/merge_requests/3
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 160:45:10 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,056 |
Messages: | 6,416,494 |