Showing content from https://github.com/pmd/pmd/issues/4583 below:
[java] Support JDK 21 (LTS) · Issue #4583 · pmd/pmd · GitHub
OpenJDK 21 GA is scheduled for 2023/09/19.
The following JEPs are important for us:
In summary: https://javaalmanac.io/jdk/21/
This issue is similar to the previous: #4333
EA Release of JDK21 is available here: https://jdk.java.net/21/
Tasks:
- Add new java language versions 21 and 21-preview.
- 21 is the new default
- update also java.md and ant.md
- and add in KotlinTestingDsl.kt.
- Update asm dependency to 9.5:
- Remove java language version 19-preview
- update also java.md and ant.md
- update KotlinTestingDsl.kt
- remove exclusions in pmd-core/src/main/resources/internal/all-java.xml
- Update
net.sourceforge.pmd.lang.java.LanguageVersionTest
- add 21/21-preview
- remove 19-preview
- Update implementation for "Pattern Matching for switch" (406, 420, 427, 433, 441)
- Update implementation for "Record Patterns" (405, 432, 440)
- Implement preview feature "String Templates" (430)
- Implement preview feature "Unnamed Patterns and Variables" (443)
- Implement preview feature "Unnamed Classes and Instance Main Methods" (445)
- Write release notes
- removed experimental:
- ASTRecordPattern
- ASTPatternList (formerly ASTComponentPatternList)
- ASTGuard (formerly ASTSwitchGuard)
- removed classes: TODO
- deprecated classes: TODO
- net.sourceforge.pmd.lang.java.ast.ASTPattern#getParenthesisDepth - the method is deprecated, because parenthesized patterns are not allowed with Java 21 anymore.
- new experimental: TODO
- ASTTemplateExpression
- ASTTemplate
- ASTTemplateFragment
- ASTUnnamedPattern
- Add JDK21 to the build, so that we integration test with 21, as this is a LTS version
- Update https://github.com/pmd/java-regression-tests
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