Is your feature request related to a problem? Please describe.
I am currently in the process of updating my Apex codebase to version 60, and I've introduced the use of the null coalescing operator ??, which is a new feature in Apex v60. However, I encountered an issue with PMD, as it is unable to parse this syntax. The specific error message I received is as follows:
net.sourceforge.pmd.lang.ast.ParseException: Parse exception in file './packages/user/main/default/classes/ParentAffiliationHandler.cls' at line 35, column 91: apex.jorje.services.exception.ParseException: Syntax(error = UnexpectedToken(loc = (35, 91, 290, 291), token = '?'))
Describe the solution you'd like
I am seeking a resolution that allows PMD to successfully parse and support the new null coalescing operator ?? introduced in Apex version 60.
Reference Documentation
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