A RetroSearch Logo

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

Search Query:

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

[apex] PMD parsing exception for Apex classes using 'inherited sharing' keyword · Issue #1546 · pmd/pmd · GitHub

Affects PMD Version: 6.10

Rule: Not a rule specific, general parsing error when building AST

Description:
We are running pmd against our apex classes written in 44.0 SF api version.
Bunch of the classes are using 'inherited sharing' keywords.
And all such classes fail with an error message when parsing by PMD:

net.sourceforge.pmd.lang.ast.ParseException: Couldn't parse the source - there is not root node - Syntax Error??

After getting rid off 'inherited sharing', classes have been parsed successfully.

Code Sample demonstrating the issue:

public inherited sharing class SimpleClass {
}

Running PMD through: [Ant ]


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