OpenJDK 20 GA is scheduled for 2023/03/21.
So we should add support for that with PMD version 6.55.0 (end of February 2023).
The following JEPs are important for us:
In summary: https://javaalmanac.io/jdk/20/
This issue is similar to the previous: #4015
EA Release of JDK20 is available here: http://jdk.java.net/20/
Tasks:
https://openjdk.org/jeps/406 (preview 1)
https://openjdk.org/jeps/420 (preview 2)
https://openjdk.org/jeps/427 (preview 3)
https://openjdk.org/jeps/433 (preview 4)
The main changes since the third preview are:
- An exhaustive switch (i.e., a switch expression or a pattern switch statement) over an enum class now throws MatchException rather than IncompatibleClassChangeError if no switch label applies at run time.
- The grammar for switch labels is simpler.
- Inference of type arguments for generic record patterns is now supported in switch expressions and statements, along with the other constructs that support patterns.
https://openjdk.org/jeps/405 (preview 1)
https://openjdk.org/jeps/432 (preview 2)
The main changes since the first preview are to:
- Add support for inference of type arguments of generic record patterns,
- Add support for record patterns to appear in the header of an enhanced for statement, and
- Remove support for named record patterns.
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