Skip to content
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

Fix new java features #455

Closed
processing-bot opened this issue Mar 26, 2022 · 2 comments
Closed

Fix new java features #455

processing-bot opened this issue Mar 26, 2022 · 2 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: Robocraft999

Description

Many of the new features from java 8 to java 17 (See here: https://ondro.inginea.eu/index.php/new-features-in-java-versions-since-java-8/) are not usable in Processing because it thinks you made a syntax error if you try to use them.

Expected Behavior

You can use the features.

Current Behavior

Processing throws a syntax error although it should work.

Steps to Reproduce

  1. Try to use this Add support for Java 14 switch expressions #428 or this record Point(int x, int y) { } for example in Processing

Your Environment

  • Processing version: 4.0b7
  • Operating System and OS version: (on this laptop:) Windows 7 Professional 64 bit last version (should be same result on Windows 10)

Possible Causes / Solutions

I think that's because Processing's error system doesn't know the new syntax and therefore doesn't allow you to run the code even though it actually works.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

If there's a feature you'd like to see, please file an issue for it, as seen in #428. At the moment nobody has time to just sit down and implement “everything,” so at least this can help us prioritize, and maybe someone can help contribute that particular fix.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant