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
Java 8 language features not accessible #5659
Comments
Upon deeper inspection it seems Processing is using its own Java implementation (#3054). I would suggest then to reflect it in docs, adding the list of differences between the Processing version and the official specs there (since #3055 is still open and no one seems to be working on it)? @joelmoniz even identified some features to list there already in #3054:
|
Maybe this just requires a minor wiki edition, because just two paragraphs before your quote, there is a response to this relevant and frequently asked question:
While the call "Please help us fix this" is still open, maybe we could avoid more misunderstandings by slightly rewriting the referred paragraph in the wiki, to make it more clear that Processing uses Java 8, but Processing doesn't fully support the Java 8 specific features, like lambda expressions. Since english is my second language, I don't dare to take the risk of editing the wiki and become "the man who broke the Processing documentation with his creative english" ;) So the proposal is to edit the supported platforms page on the wiki adding the text marked with italics:
|
I hadn't noticed the above paragraphs before, my eyes went straight to the "Java 8" section. I feel like your modification suggestion does make things much clearer, but I am not an English native either, so I'll leave it to someone more experienced too. Thank you for your help 😃 |
I've made the edit to the wiki. Marking this as a duplicate. |
The current wording suggests that Processing supports some Java 8 features, whilst two paragraphs above it says:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Java 8 lambda feature (and possibly more) not accessible despite being advertised it would.
I have seen #3411, but the response is from 2015 and supposedly Processing now does support Java 8:
On top of that, it can be seen in the Environment section that Processing, indeed, does ship with Java 8.
Expected Behavior
A Java 8 example featuring lambda compiles.
Current Behavior
IDE throws:
Lambda expressions are allowed only at source level 1.8 or above.
Steps to Reproduce
Your Environment
Windows
Linux
Clearly, there is a discrepancy between the implementation and the documentation. Which one is wrong?
The text was updated successfully, but these errors were encountered: