Cannot save a Visual Force page from Developer console, if using the user standard controller and specifying controller extension.
Apex , VisualForce , Developer Console
Last updated 2017-05-09 ·Reference W-2614249 ·Reported By 46 users
Summary
If a visualforce page containing user standard controller and specifying the controller extension is saved from developer console, it gives the following error.
Error:
"common.apex.runtime.bytecode.BytecodeApexObjectType cannot be cast to common.apex.runtime.impl.ApexType"
Repro
1. Create a controller extension
public class SimpleUserController {
public SimpleUserController(ApexPages.StandardController controller) {
}
}
2. In the Developer Console, create a VF page:
<apex:page standardController="User" extensions="SimpleUserController">
</apex:page>
3. Attempt to save the page and you will get this exception:
common.apex.runtime.bytecode.BytecodeApexObjectType cannot be cast to common.apex.runtime.impl.ApexType
Workaround
Saving the same code via the Setup menu.
Reported By (46)


















Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.