PORT.NATV
Do not use user defined "native" methods
Description
This rule flags any occurrence of a user defined "native" method.
User defined "native" methods are not portable because all "native" methods must be ported to each platform before they become usable.
Example
package PORT;
public class NATV {
native void method (String s); // user defined native method.
}
Reference
Flanagan, David. Java in a Nutshell. O'Reilly, 1999, pp.190-192.
|