Hey JL,

sorry for the late reply, only saw your message now. IMO we should stick to 11 for the time being, the EE platform 10 spec suggests we could also compile for newer java versions  (Java SE 11 or later) but I wouldn't want to do this if not absolutely necessary. Maybe we could also explore building a multi-release jar (https://openjdk.org/jeps/238) to support records without relying on reflection? Then we could rely on Class#getRecordComponents pretty easily and not have to deal with getting the filtering of methods/fields right.


Thanks

Markus

On 02.07.25 12:50, Jean-Louis Monteiro wrote:
Hi all,

Anyone against bumping the java version for the main branch from 11 to 14
(or even 17)?
Currently, Java Record aren't really well managed and I don't think using
Java Reflection to workaround the Java version is the best design.


--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com

Reply via email to