Inpection errors on stupidly long if else if

Issue #800 resolved
Clio K created an issue

I have an Apex class with a very long "if else if" structure. It is about 550 lines long (I didn't write it, I just get the pleasure of working on it).

Around line 385 the inspector starts to list compile errors. The class really does not have compile errors and deploys and runs correctly.

I believe the issue is likely identified by the second error message -

Maximum recursion level (1000) reached in 'argument_1'

This then fowls up the find usages, dependencies, and structure view.

Comments (3)

  1. Scott Wells repo owner

    Wow...that's a new one. That would likely be occurring in the recursive descent parser itself. That's generated code, but I'll see what I can do. Thanks for reporting!

  2. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  3. Log in to comment