New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
Comments
adangel
added
the
in:grammar
About the grammar of a lexer or parser, eg, a parse/lex exception
label
Apr 4, 2024
2 tasks
aaronhurst-google
pushed a commit
to google/summit-ast
that referenced
this issue
Apr 16, 2024
This upgrades apex-parser to the new version and adjust to the grammar changes (trigger block) https://github.com/apex-dev-tools/apex-parser/releases/tag/v4.0.0 This upgrade also contains a fix for typeof needed in pmd/pmd#4922 .
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: