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 — [apex] Apex classes with safe navigation operator from Winter 21 (50.0) are skipped · Issue #2839 · pmd/pmd

[apex] Apex classes with safe navigation operator from Winter 21 (50.0) are skipped #2839

New issue
Copy link
New issue
Copy link
Closed
#2863
Closed
[apex] Apex classes with safe navigation operator from Winter 21 (50.0) are skipped#2839
#2863
Copy link
Assignees
adangel
Labels
a:bugPMD crashes or fails to analyse a file.
Milestone
6.29.0

Description

@avesolovksyy
avesolovksyy
opened on Oct 19, 2020
Issue body actions

Affects PMD Version: 6.27

Description:

Since new salesforce release (Winter 21, api version 50) has gone GA over weekend, we've started using new features in our Apex codebase, in particular safe navigation operator (e.g. myObject?.propA?.propB). But unfortunately it looks like pmd just skips all apex classes where safe navigation operator is used - it seems like pmd cannot yet parse this new apex syntax and just silently fails, which results in skipping such troubling apex classes.

Exception Stacktrace:
No error, no stack trace - classes are just skipped from scanning, i.e. no errors are reported from those classes, even when we add deliberately some errors there. But when we remove safe navigation operator from class, it starts reporting errors as before.

Salesforce Release Notes: https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_apex.htm

Reacted by Leo Stewart

Activity

  1. avesolovksyy
    added
    a:bugPMD crashes or fails to analyse a file.
    on Oct 19, 2020
  2. adangel
    added this to the 6.29.0 milestone on Oct 22, 2020
  3. adangel
    self-assigned this
    on Oct 22, 2020
  4. adangel
    changed the title [-][apex] Apex classes with safe navigation operator from Winter 21 (50.0) are skipped by pmd scanner[/-] [+][apex] Apex classes with safe navigation operator from Winter 21 (50.0) are skipped[/+] on Oct 22, 2020
  5. adangel
    added 3 commits that reference this issue on Oct 22, 2020

    [apex] Update apex-jorje to 2020-09-10-5a5192 (Winter 21, Version 50)

    This issue will close once commit 9eeea47 is merged into the 'main' branch.
    9eeea47

    [apex] Add support and test for parsing SafeNavigationOperator

    This issue will close once commit e7738e2 is merged into the 'main' branch.
    e7738e2

    [doc] Update release notes, refs pmd#2839

    This issue will close once commit b0f3f37 is merged into the 'main' branch.
    b0f3f37
  6. adangel
    closed this as completedin 9eeea47on Oct 24, 2020
  7. rmohan20
    added a commit that references this issue on Dec 15, 2020

    Pulling latest changes from pmd/pmd: 12/15/2020 (#1)

    This issue will close once commit 62c9b8f is merged into the 'master' branch.
    62c9b8f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @adangel
    adangel

Labels

a:bugPMD crashes or fails to analyse a file.

Type

No type

Projects

No projects

    Milestone

    • 6.29.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.