GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] Support JDK 19 · Issue #4015 · pmd/pmd

[java] Support JDK 19 #4015

New issue
Copy link
New issue
Copy link
Closed
#4038
Closed
[java] Support JDK 19#4015
#4038
Copy link
Assignees
adangel
Labels
an:enhancementAn improvement on existing features / rules
Milestone
6.48.0

Description

@adangel
adangel
opened on Jun 14, 2022
Issue body actions

OpenJDK 19 GA is scheduled for 2022/09/20.
So we should add support for that with PMD version 6.49.0 or earlier.

The following JEPs are important for us:

  • JEP 405: Record Patterns (Preview)
    • destructuring of record components with instanceof
  • JEP 427: Pattern Matching for switch (Third Preview)
    • new keyword when...

In summary: https://javaalmanac.io/jdk/19/

This issue is similar to the previous: #3809

EA Release of JDK19 is available here: http://jdk.java.net/19/

Tasks:

  • Add new java language versions 19 and 19-preview.
    • 19 is the new default
    • update also java.md and ant.md
    • and add in KotlinTestingDsl.kt.
  • Update asm dependency:
    • https://search.maven.org/artifact/org.ow2.asm/asm
    • https://asm.ow2.io/versions.html
    • Update net.sourceforge.pmd.lang.java.typeresolution.visitors.PMDASMVisitor.ASM_API if necessary
  • Update implementation for "Pattern Matching for switch" (406, 420, 427) as a preview feature, mark AST classes as experimental, if needed.
    • https://openjdk.java.net/jeps/406 (preview 1)
    • https://openjdk.java.net/jeps/420 (preview 2)
    • https://openjdk.java.net/jeps/427 (preview 3)
    • http://cr.openjdk.java.net/~gbierman/jep427%2b405/jep427+405-20220517/specs/patterns-switch-record-patterns-jls.html
  • Implement "Record Patterns" (405) as a preview feature, mark AST classes as experimental, if needed.
    • https://openjdk.java.net/jeps/405
    • http://cr.openjdk.java.net/~gbierman/jep427%2b405/jep427+405-20220517/specs/patterns-switch-record-patterns-jls.html
  • Remove java language version 17-preview
    • update also java.md and ant.md
    • update KotlinTestingDsl.kt
    • remove exclusions in pmd-core/src/main/resources/internal/all-java.xml
  • Write release notes
    • deprecated classes: ASTGuardedPattern
    • new experimental: ASTGuard, ASTRecordPattern, ASTRecordStructurePattern
  • Prepare merge for PMD 7 as a new PR: [java] Support Java 19 (pmd7) #4039

Activity

  1. adangel
    added
    an:enhancementAn improvement on existing features / rules
    on Jun 14, 2022
  2. adangel
    added this to the 6.48.0 milestone on Jun 14, 2022
  3. adangel
    self-assigned this
    on Jul 7, 2022
  4. adangel
    added a commit that references this issue on Jul 7, 2022

    [doc] Update release notes (pmd#4015)

    78e4ca6
  5. oowekyala
    closed this as completedin #4038on Jul 13, 2022
  6. rdesgroppes
    added 2 commits that reference this issue on Apr 26, 2023

    Bump PMD version to last planned release (6.55.0)

    9ed8991

    Bump PMD version to last planned release (6.55.0)

    23e1897
  7. illicitonion
    added a commit that references this issue on Apr 26, 2023

    Bump PMD version to last planned release (6.55.0) (#178)

    d99cc64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @adangel
    adangel

Labels

an:enhancementAn improvement on existing features / rules

Type

No type

Projects

No projects

    Milestone

    • 6.48.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.