eclipse-lsp4j / lsp4j

A Java implementation of the language server protocol intended to be consumed by tools and language servers implemented in Java.
https://eclipse.org/lsp4j
Other
618 stars 145 forks source link

[Proposal] - Migrate Project to Java 21 #852

Open mamilic opened 2 weeks ago

mamilic commented 2 weeks ago

I would like to propose migrating the project to Java 21. The latest LTS release offers several new features and improvements that could benefit the project. I was wondering if such migration is feasable from technical point?

angelozerr commented 2 weeks ago

We use LSP4J inside LSP4IJ https://github.com/redhat-developer/lsp4ij and IntelliJ doesn't require Java 21. For IntelliJ context I think it is a bad idea.

jonahgraham commented 2 weeks ago

We just went to Java 11 last year in #707 - the discussion leading up to that showed resistance to even consider Java 17 (see conversation in #547).

I am not against ever upgrading, but this is a core library with few dependencies and not much active development. If you can identify what Java 21 features you and the community would benefit from I am willing to discuss further.

Of course our main contributors/consumers would have to be ok with it too, in addition to @angelozerr's comment, xtext is high on that list.

cdietrich commented 2 weeks ago

Hmm. We are just about to bump to 17 … Besides that there is no j21 support in xtend gradle without workaround yet