function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
indreshmsindreshms 

Runtime dependency for APEX Classes

I have the following code;

 

 

public class Base {
    public String stringify(Blob b, System.Type apexType) {
        return JSON.deserialize(b.toString(), apexType);
    }
}

public class Input{
   ...
}
 
public class Derived1 extends Base{
    public doSomething(b){
        String s = stringify(b, Input.class);
        ...
    }
}

public class Derived2 extends Base{
    public doSomething(b){
        String s = stringify(b, Input.class);
        ...
    }
}

Usage:
Derived1 d1 = new Derived1();
d1.doSomething(Blob.valueOf(""));

Derived1 d2 = new Derived2();
d2.doSomething(Blob.valueOf(""));

All of the classes are parent classes (in separate class files).

When doSomething is executed, I am getting the following error occassionally;

[{"message":"System.TypeException: The configuration of your org has changed, please reload the page. Missing dependent object: Class: Input.class

 

Any help?

 

Thanks.