GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — [apex] New rule: InvocableClassNoArgConstructor by FishOfPrey · Pull Request #6794 · pmd/pmd ConversationDetects Apex classes that declare @InvocableVariable fields or properties but define at least one explicit constructor without also providing an accessible no-argument constructor. Salesforce Flow instantiates these classes via a zero-arg constructor; without one, Flow throws a runtime error. Global classes additionally require the no-arg constructor to be global for cross-package Flow access. Summer '26 Release Note: Provide Visible No-Argument Constructors for Custom Apex Classes Used as Invocable Action Parameters Describe the PRAdds a new Apex rule Detects Apex classes that declare Related issuesReady?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsDetects Apex classes that declare @InvocableVariable fields or properties but define at least one explicit constructor without also providing an accessible no-argument constructor. Salesforce Flow instantiates these classes via a zero-arg constructor; without one, Flow throws a runtime error. Global classes additionally require the no-arg constructor to be global for cross-package Flow access. (between InaccessibleAuraEnabledGetter and MethodWithSameNameAsEnclosingClass)
|
There was an error while loading. Please reload this page.
|
Compared to main: (comment created at 2026-06-23 07:50:30+00:00 for d453286) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
I'll do the small changes myself and merge it afterwards.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[apex] New Rule: Invocable Classes require a no argument constructor
There was an error while loading. Please reload this page.