You need to sign in to do that
Don't have an account?

Can't save classes with inner classes
Getting a very odd but consistent problem when trying to save new classes that contain an inner class (or enum) such as:
public class OuterClass { // some methods public class InnerClass { // some methods } }
Whether saving from the IDE or the Web interface we get the error message:
OuterClass: line -1, column -1: The configuration of your org has changed, please reload the page. Missing dependent object: Type: OuterClass: InnerClass
If we remove all the methods of outer class and save just with the InnerClass declared the problem goes away and we can then add the methods back in and save the full class declaration.
Hi Paul,
When i used the same code at my system in the salesforce org, its working fine. The Inner class behaves as a wrapper class. hence we can declare the wrapper class inside the main class.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
weird issue, spent some time on this.
Finaly ended up deleteing all the contents of my class, saving it and then putting everything back in the class, it worked!!
I'm currently having a similar problem now.
The code already exists and is happily living in my package org.
but when I try to use ANT to deploy it to a dev org, its telling me that my inner class is missing.