Skip to content
Bug Barometer
All issues
Closed

Uncategorized

Using a class contained in a managed package as a controller extension can cause the ClassCastException if a custom object is assigned to a standard c

Summary

In an org which has a namespace prefix, if a custom object is assigned to a standard controller and if a class in a managed package is used as a controller extension, the StandardController.getRecord() apex method call in the controller extension can result in the ClassCastException.

Workaround

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

History

  1. First tracked here as Closed with 1 report

    Nov 30, 2026

Using a class contained in a managed package as a controller extension can cause the ClassCastException if a custom object is assigned to a standard c · Bug Barometer