Closed sampottinger closed 5 years ago
Fixes #104.
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.
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?
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.
As a side note... hopefully android moves to Java 11 (or at least proper Java 8) at some point...
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.