[apex] TYPEOF in sub-query throws error #4922
Labels
a:bug
PMD crashes or fails to analyse a file.
in:grammar
About the grammar of a lexer or parser, eg, a parse/lex exception
Affects PMD Version:
v7.0.0
Description:
When a sub-query uses TYPEOF keyword to query related fields from a polymorphic field object, PMD throws a ParseException.
Exception Stacktrace:
Code Sample demonstrating the issue:
Steps to reproduce:
Please provide detailed steps for how we can reproduce the bug.
Running PMD through:
CLI
Additional information:
This appears to be an issue with the
apex-parser
library v3.6.0 not properly supporting the TYPEOF in sub-queries. The unreleased v4.0.0 does, butsummit-ast
will need to be updated for the TriggerBlock changes.The text was updated successfully, but these errors were encountered: