-
-
Notifications
You must be signed in to change notification settings - Fork 49
Pull Processing into Java 21 #879
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
Comments
Can I have some insight into what you are thinking here? I realize it is valuable to keep up with new Java versions so people can learn about and use the new language features. The most important thing for me is to know about when Processing core.jar will require Java 21 and not Java 17. Is this something that could happen in 2025? |
Hey Jim! @hx2A. Thanks for your question! I think this is open to discussion. I remember a comment from @sampottinger saying we should upgrade to Java 21 sooner rather than later, but we have not set a date for this yet. Maybe @Stefterv will have more to share about this? Edit: I just noticed we've set a tentative milestone for |
Not much to share from my perspective other than that I like to stay up to date and not only update when we have to. |
Currently the preprocessor (which is still partially build with ant) crashes on anything JDK >17 so we're locked at 17 till we fix that |
Hi @Stefterv I tried running the project on JDK21. As you mentioned, it crashes when running ant-preproc. The puzzling thing is that the ant java antlr task which it claims to be crashing on completes successfully on either JDK when run from the command line. Even if you remove the generation part and just leave
gradle still crashes on JDK21. Feels like it's more of a gradle - ant interfacing issue rather than genuine antlr failure. So it should be possible to at least move this part to the gradle script. Something along the lines of (I am not proficient with gradle but this seems to work on JDK21):
With this change and setting IntelliJ to a JDK21 SDK version I am able to get processing to run. Please let me know if you'd like me to explore this further. Thanks, |
Hey Vlad! Thank you so much for your investigation on this! #957 addresses this issue by moving the whole setup into gradle and using the official Antlr plugin for Gradle |
Update the Ant build system to switch to the latest terumin release.
Files that at least will have to be updated:
build/build.xml
.github/workflows
The text was updated successfully, but these errors were encountered: