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
as6as6 

Can we not undeprecate a deprecated class or method?

I had released a managed package in released mode. It had a deprecaed global method in a global class. I wish to undeprecate this method in my new package-upload. But, when I remove @deprecated annotation in front of the method and save the class, I get the compilation error:

"Previously deprecated identifier must still be marked @deprecated"

 

So, my question is:

 

State whether the following statement is true / false:

 "Once you release a package in BETA OR RELEASED MODE, any method(s) or classes(s) which were deprecated in this upload cannot be undeprecated in the next package-upload."

A_SmithA_Smith

False - if you remove "beta" from your statement, then it is true.  

 

You can simply delete an identifier if it has only be uploaded as beta.