After adding a new inner class to a controller I get the following error when trying to save.
Compile Error: The configuration of your org has changed, please reload the page. Missing dependent object: Type: PackageNamespace.OuterClass: InnerClass at line -1 column -1
The controller in question already contains 4 other inner classes and an enum definition. Why would adding one more inner class cause a compile error?
The inner class is nothing special. It will be expanded on to include methods for working with a collection of custom objects:
public class InnerClass {
public List<CustomObject__c> toUpsert { get; set; }
public InnerClass() {
toUpsert = new List<CustomObject__c>();
}
public integer size() {
return toUpsert.size();
}
public void add(CustomObject__c pcd) {
toUpsert.add(pcd);
}
}
I've done a Compile all Classes but the save/compile error still persists.