A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2839 below:

[apex] Apex classes with safe navigation operator from Winter 21 (50.0) are skipped · Issue #2839 · pmd/pmd · GitHub

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


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