Jtest logo




Contents  Previous  Next  Index

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.


Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft