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
WrogWrogWrogWrog 

Where did the "is valid" flag for classes come from?

How come all my existing classes suddenly flagged as invalid? 

How come they all work fine even though they are invalid? 

How come all I need to do is edit them and save them to make them "valid"? (it only took 10 minutes of tedious repetitive clicking of edit and save buttons, and as a Salesforce Admin, I have nothing better to do with my time.)

 

How come I am not very reassured? 

 

Prepared to accept I missed some announcement, but surely there is a better way of implementing new features like this..... 

Best Answer chosen by Admin (Salesforce Developers) 
paul-lmipaul-lmi
it'll happen to classes that depend on other classes that have been updated but have not had their test classes run.  click "Run All Tests", and that should resolve it (unless you aren't using testMethods, then shame on you).

All Answers

paul-lmipaul-lmi
it'll happen to classes that depend on other classes that have been updated but have not had their test classes run.  click "Run All Tests", and that should resolve it (unless you aren't using testMethods, then shame on you).
This was selected as the best answer
Big EarsBig Ears

Thanks!

 

I'd been wondering the same thing.