sampottinger / processing

Source code for the Processing Core and Development Environment (PDE)
http://processing.org
Other
10 stars 1 forks source link

Opened access to Java 11 language features. #105

Closed sampottinger closed 5 years ago

sampottinger commented 5 years ago

Moved from Java 8 to Java 11 for Compiler and JDT. Also added gramatical support for local variable type inference (var). Includes minor edits to existing parser tests to ensure full test suite is in use.

sampottinger commented 5 years ago

Fixes #104.

sampottinger commented 5 years ago

Important note ... I ended up including grammatical support for var but, for simplicity, it is potentially more permissive than the Java language definition. That said, misuse is still captured in the JDT instead of the preprocessor.

dzaima commented 5 years ago

Would/could this in any way interfere with the fact that Android mode is stuck at ~Java 8 (besides not being able to use 11's features), or is it completely independent from these changes?

sampottinger commented 5 years ago

Hey there! It don't think it will prevent android mode from working but it does mean that some language features will not be available to users on android mode (though that's also somewhat true of Java 8). So, if you used a language feature beyond Java 7 that wasn't supported in Android, you'd probably find out in the android build step instead of from the pre-processor.

sampottinger commented 5 years ago

As a side note... hopefully android moves to Java 11 (or at least proper Java 8) at some point...