Skip to content

[java] Java 16 support#3111

Merged
oowekyala merged 10 commits into
pmd:masterfrom
adangel:java-16-support
Feb 19, 2021
Merged

[java] Java 16 support#3111
oowekyala merged 10 commits into
pmd:masterfrom
adangel:java-16-support

Conversation

@adangel

@adangel adangel commented Feb 12, 2021

Copy link
Copy Markdown
Member

Describe the PR

Adds Java 16 support

  • Add new java language versions 16 and 16-preview. Also add in KotlinTestingDsl.kt.
  • Update asm dependency: https://search.maven.org/artifact/org.ow2.asm/asm
  • Promote "Pattern Matching for instanceof" (394) to a standard feature. Note, there might be some small changes from last preview.
  • Promote "Records" (395) to a standard feature. Note, there might be some small changes from last preview.
  • Update "Sealed Classes" (397) preview implementation. Note, there might be some small changes from last preview.
  • Remove java language version 14-preview
  • Write release notes
    • ASTTypeTestPattern renamed to ASTTypePattern
    • Not Experimental anymore (ASTVariableDeclarationId::isPatternBinding, ASTPattern, ASTTypePattern)
    • Renamed ASTRecordConstructorDeclaration to ASTCompactConstructorDeclaration to align naming to JLS
    • ASTRecordDeclaration, ASTRecordComponentList, ASTRecordComponent, ASTRecordBody, ASTCompactConstructorDeclaration are not longer Experimental
    • ...
  • Prepare merge for PMD 7 --> [java] Java 16 support (pmd7) #3120

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)

The TypePattern now allows the final keyword
and Annotations. Pattern variables are now only
effectively final.


With JEP 394 / Java16, this production has been renamed.
Pattern Matching for Instanceof is now a standard feature,
therefore the AST node is not experimental anymore.
@adangel adangel added this to the 6.32.0 milestone Feb 12, 2021
@ghost

ghost commented Feb 12, 2021

Copy link
Copy Markdown
1 Message
📖 This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

@oowekyala oowekyala linked an issue Feb 12, 2021 that may be closed by this pull request
- Renamed ASTRecordConstructorDeclaration to
  ASTCompactConstructorDeclaration to align naming to JLS
- ASTRecordDeclaration, ASTRecordComponentList, ASTRecordComponent,
  ASTRecordBody, ASTCompactConstructorDeclaration are not
  longer @experimental
@adangel adangel mentioned this pull request Feb 15, 2021
@adangel adangel mentioned this pull request Feb 18, 2021
4 tasks
@adangel adangel marked this pull request as ready for review February 18, 2021 15:19
@adangel adangel requested a review from oowekyala February 18, 2021 15:20

@oowekyala oowekyala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good :)

Comment thread pmd-java/etc/grammar/Java.jjt Outdated
Comment thread pmd-java/etc/grammar/Java.jjt
Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTPermitsList.java Outdated
adangel and others added 2 commits February 19, 2021 09:18
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
@oowekyala oowekyala merged commit 4ee165c into pmd:master Feb 19, 2021
@adangel adangel deleted the java-16-support branch February 21, 2021 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core] Update beta version of asm with current version [java] Support JDK 16

2 participants