Apex classes with api version less than 28.0 can be referenced and instantiated through Type.forName/Type.newInstance even if otherwise not visible.
Not fixed yet. Salesforce is reviewing it.
Summary
After enabling the Critical Update “Restrict Reflective Access to Non-Global Constructors in Packages” . The subscriber org is still able to instantiate a non-accessible package class through the Type.newInstance() method with Api version less than 28.
The Critical Update documentation
https://releasenotes.docs.salesforce.com/en-us/spring20/release-notes/rn_apex_publicConstructorsInMgdPackages.htm
This generally impacts Apex classes in managed packages that are declared as public.
The Critical Update documentation
https://releasenotes.docs.salesforce.com/en-us/spring20/release-notes/rn_apex_publicConstructorsInMgdPackages.htm
This generally impacts Apex classes in managed packages that are declared as public.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as In Review with 2 reports
Nov 30, 2026
Also open in Compute Services
Static resources, documents, attachments failed to load or return 404 Not Found
Solution ScheduledPlatform / Compute ServicesSpring '20Reported Apr 24, 2020210 reports210reports
Salesforce Lightning Inspector add-on does not work when enhanced domains are enabled.
Solution ScheduledPlatform / Compute ServicesSummer '22Reported Aug 10, 202279 reports79reports
JSON.serialize Exception on Messaging.SendEmailResult Object Due to Ignoring Bean Info
In ReviewPlatform / Compute ServicesWinter '20Reported Dec 3, 201943 reports43reports
System.enqueuejob is consuming high CPU when called inside a Apex Trigger
In ReviewPlatform / Compute ServicesWinter '20Reported Nov 19, 201929 reports29reports