Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2023 12:14:44 +0000
From:      Marcin Cieslak <saper@saper.info>
To:        java@freebsd.org
Subject:   runtime JAVA_VERSION vs. Java build target
Message-ID:  <3nq41q78-5qo8-1469-1s11-087so5p535q3@fncre.vasb>
Resent-Message-ID: <p26n69nn-6219-oo5r-1qo9-sono25763970@fncre.vasb>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I've run into this recently:

when I build a Java port, generated JAR will be built
with a compiler set by JAVA_VERSION which is our runtime setting.

For example, when building with OpenJDK 11, and later
running something with env JAVA_VERSION=8 ... I will
get class file version errors.

Since textproc/xincluder is a small and obsolete
piece of software, I have decided to tell javac
to target Java 8 in all cases[1].

Shall this be a general practice? If someone
decides to set JAVA_VERSION high and rebuild
Java dependencies from source (those which can be rebuilt)
- JAVA_VERSION cannot be really used to switch at runtime.

On the other hand, one might the code to be optimized better.

What is the best practice here? Shall we keep JAR libraries
that can be used as dependencies compatible with the oldest
Java runtime we have?

Marcin

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272559
[-- Attachment #2 --]
0v	*H
g0c10
	`He0	*H

00xJѤ&Q<fUC0
	*H
0L1 0UGlobalSign Root CA - R310U

GlobalSign10U
GlobalSign0
200916000000Z
290318000000Z0[10	UBE10U
GlobalSign nv-sa110/U(GlobalSign GCC R3 PersonalSign 1 CA 20200"0
	*H
0
'ŲTNZ2'1
{v`5)*hkwH35
V()6'!
0-Pf@.ORǁI;<kN3ĿI>0;::!MxFT[Jqh_0>61t3.-JpTEW˼C!Fsvw'V*94~cMV)ܨdJqt+؎_a+.O_;µWx^U\j̺o00U0U%0++0U00U6
bv.:jQ0U#0K.E$MPc0z+n0l0-+0!http://ocsp.globalsign.com/rootr30;+0/http://secure.globalsign.com/cacert/root-r3.crt06U/0-0+)'%http://crl.globalsign.com/root-r3.crl0LU E0C0A	+2(0402+&https://www.globalsign.com/repository/0
	*H
YkjvSZ9i%5q@WAu"0;g"z?7xI
fi|<Ikc&H*9E ʼn!B
IUrs$IQ>8n	 r`Mkx`ƪt"״?S9׷F΀Ed
ڎP%7	7i$x)slS}@t~lg촪6W$򊂞r.ܚ}4}NLC^F}im1a000"LayG0
	*H
0[10	UBE10U
GlobalSign nv-sa110/U(GlobalSign GCC R3 PersonalSign 1 CA 20200
230307161109Z
260307161109Z0<10Usaper@saper.info10	*H
	saper@saper.info0"0
	*H
0
0MkMG6T/:1L=H3`#}ĥ԰:iܰ8w<˖:H\^I		9ȼJ,+!MH5NS/_*R׶6mό-){ёцaם&<4OnJE`>׊/n䴕5oD޼,~vfNPÅ2V9;.+V9ZO1]^uxqEWt	:ֆD϶.[QwkPO	`mJNj
5>c-g!je>֗xn[_?kG=uCHe?2^4GܙZ*XGl#fVYڱ_i&"r=g
rwV֗w4й
Il"1
whhC
،.w<hgAIUO0l)%잎@CtDVHM<~{}EJ;imrr]<s00U0+00N+0Bhttp://secure.globalsign.com/cacert/gsgccr3personalsign1ca2020.crt0A+05http://ocsp.globalsign.com/gsgccr3personalsign1ca20200LU E0C0A	+2(0402+&https://www.globalsign.com/repository/0	U00IUB0@0><:8http://crl.globalsign.com/gsgccr3personalsign1ca2020.crl0U0saper@saper.info0U%0++0U#06
bv.:jQ0UݕQˣ KbM8L90
	*H

%(G2qYC%M=ؾ,۵w\0}ci`{ĂVzk,4&["Sek`6G30LuW_ ƒd(қƤ?kv.)Aجth:zz׽vwMy^縷81u"rH9za
8S)r@6QqA((pCtpИf(%\Y$ڥbpM1}0y0k0[10	UBE10U
GlobalSign nv-sa110/U(GlobalSign GCC R3 PersonalSign 1 CA 2020"LayG0
	`He0	*H
	1	*H
0	*H
	1
230721121444Z0/	*H
	1" ☴%cQdMq悴0y	*H
	1l0j0	`He*0	`He0	`He0
*H
0*H
0
*H
@0+0
*H
(0
	*H
o(dzփU΃xD9soX.K|^<
rI4J}쯈ā1ɥIBtcw*3^H#Gi& *8ѐ9^<\p' %;H紝71t#]1fcy<g[8ߒcqշ.9o5xx}6x?Ds[Υ\XҀtSs>V+:
*S#"%|_#tv!M5m\B!TP]|6[7QڻwT]2C/o
Q+nQdCjP׉v)fD@uq{wDt
lÁP0P.4v#suL_;\x]~>fu{x_\ExߗܜO&
)?TNmZiu}	LDAO%':^+ToV!RYZo0ĺ/%CXw`M!LFRCż|%>Q

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3nq41q78-5qo8-1469-1s11-087so5p535q3>