-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update jdt to 3.27 #4164
Conversation
Well. That's a problem. Here's a discussion about it: https://www.eclipse.org/lists/cross-project-issues-dev/msg18507.html As I see it, we don't have much more of a choice than to drop support for running Spoon with Java 8. That's unfortunate as Java 8 is supposed to have LTS support from Oracle until 2030. But it's either that, or we don't support any features after Java 16 (i.e we stagnate). Given the rapid release cycle of Java versions, I just don't see that as an option. |
From my personal view, Java 11 is totally fine! From a project view, statistics of java versions spoon actually runs with would be interesting. This is likely something you have more information than me. |
I agree, it's more strategic to move on together with JDT. Ok for me to drop Java 8. |
In the open source world, I would imagine moving to Java 11 is a non-issue. It's potential commercial use cases where JDK8 still lives and thrives. And we know that there are commercial users of Spoon as we sometimes get bug reports where the reporters are unable to share the actual projects. But like @monperrus said, we move with JDT. And from a Spoon dev point of view it's going to be really nice to have some of the QOL features that have been introduced since Java 8. |
I changed a few things now:
There are more things to do, which I would think are more appropriate in separate PRs:
|
That's really good work @SirYwell, kudos an thanks. The PR now contains many different things. Can we put the Gradle update in a separate PR? And maybe the CI update as well? (both to be merged before this one) Thanks! |
d4c1005
to
90e04f8
Compare
@SirYwell could you rebase to see how it looks here? Thanks! |
90e04f8
to
42fc088
Compare
@monperrus done, it seems like LGTM runs with Java 8 and therefore fails to build. Everything else looks fine I guess |
LTGM, OK to merge. (LGTM does not LGTM) |
We can probably make LGTM look gooder to us by setting the java version manually (see here)? i.e. sth like:
|
Thanks a lot @I-Al-Istannen |
Good idea, would you give it a try? |
The title of the pull request is misleading, as I have the following stack when using the last spoon beta on a Java 17 project (I do not use Java 17 features for now) :
It seems that jdt 3.27.0 only supports Java up to version 16. |
Indeed, that's an oversight on my part. It seems like they ship Eclipse with a JDT version that is not published to maven central. I don't know why, but I guess that's something we need to live with. |
fixed PR title. thanks for notifying the problem. |
Supersedes #4161.
This JDT release adds support for Java 17. There was one breaking change with spoon that was simple to fix as the representation was just unified.
Edit: Oh well, that worked locally because I'm running it with Java 16. Seems like JDT now requires Java 11 as minimum version. How do we want to deal with that? @monperrus
Blocked by
#4169#4173