Skip to content
Bug Barometer

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.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as In Review with 2 reports

    Nov 30, 2026

Also open in Compute Services