Hi Robert,

> On 7. Jan 2026, at 10:31, Robert Munteanu <[email protected]> wrote:
> 
> On Wed, 2026-01-07 at 13:02 +0530, Rishabh Daim wrote:
>> Hi
>> 
>> +1 from my side.
>> 
>> But, I think that we should target Java 21.
> 
> The proposal for Java 17 was motivated in [1] as
> 
>> More and more third party libraries require Java 17, which stops us
> from upgrading to the latest and greatest version. In case of critical
> security issues, that might become a major problem.
> 
> What is the reason for switching straight to Java 21 instead of 17?
> Keep in mind that we were on Java 11 for a long time and did not see
> any major drawbacks.

The reasons are what I said before:

> This gives some nice features like record patterns.
> 
> Even Java 17 is EOL next year already…



> 
> IMO Oak (and Sling) are building blocks for applications and should
> have wider compatibility with Java versions as opposed to applications
> that can choose to run only on the latest Java version.

Right, however newer Java versions allow to write leaner/more modern code 
(javadoc, record patterns, …) and leverage new features which allows to get rid 
of 3rd party dependencies (like for Java HTTP Client) or have more performant 
implementations (like virtual threads).
Konrad

> 
> Thanks,
> Robert
> 
> [1]: https://issues.apache.org/jira/browse/OAK-11952
> 

Reply via email to