After adding @ReadOnly annotation before the global method throws the following error.

Error: Compile Error: Managed identifier can not change its ReadOnly setting at line xx column xx

  • are you doing a major or miner version? – jordan.baucke Jul 25 '13 at 16:47

Adding the @ReadOnly annotation changes the specification of the method, you will only be able to change the definition between major versions of your app, not patch releases.

Additionally, if your global method is a Web Service or @RemoteAction, etc. you will not be able to change it's definition at all, and will have to define a new method.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.