'@security' can only be specified on a class or interface
The compiler detected that the @security comment tag was applied to something other than a class or interface declaration. The @security comment tag is used to define the security settings for a class or interface definition and cannot be applied to methods or fields of a class or interface.
The following example illustrates this error:
public class Simple{
/**@security(checkDllCalls=on)*/
public void method1(){
//error: cannot use @security tag on method
}
}