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
unikevinunikevin 

cannot write "public static void" method in ACTIVE orgs

here are my codes in APEX
 
 
public class violation {
  public static void addEmail(Violation__c[] wans){

   }
}
 
 
It can be saved and run in developer environment,but when I put it into the product environment ,SFDC only generates
 
public class violation {
 
}
 
 
and removes "public static void..." without any warning in Eclipse IDE..(I'm using Force.com IDE 11.1 based on Eclipse 3.3.1)
 
why?
 
any one can help?
 
thanks,
 
Uni