A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2159 below:

[java] Prepare for JDK 14 · Issue #2159 · pmd/pmd · GitHub

For now the following grammar-related JEPs are proposed for JDK 14:

(Full list of jeps target for 14: https://openjdk.java.net/projects/jdk/14/)
EA builds of jdk14: https://jdk.java.net/14/

Switch exprs

Nothing much to do here, just make it known that the YieldStatement node will be fully supported I guess.

https://docs.oracle.com/javase/specs/jls/se13/preview/switch-expressions.html

Pattern matching
void TypeTestPattern():
{}
{
   Type() VariableDeclaratorId()
}
Records

The grammar is pretty straightforward: https://openjdk.java.net/jeps/359#Grammar

JLS updates: http://cr.openjdk.java.net/~gbierman/jep359/jep359-20191121/specs/records-jls.html

A priori this would entail the following changes on the 6.x branch:

Schedule

After writing this up, I realised that general availability is not due for another 3 months (March 17). Maybe by then we'll be working entirely on the 7.0.x branch? Idk

(1) btw implicit nodes would also iron out some corner cases of the AST, eg enum constants which have no argument list - for now they're nullable, but they wouldn't be if it were implicit


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4