Audit - Rules - PortabilityDescriptionThis group contains audit rules that check your code for constructs that might hinder cross-platform portability. |
Rules: |
Summary
Native methods should be avoided because they are often platform dependent.
Description
Native methods should be avoided because they are often platform dependent.
Security Implications
When native methods are executed, the execution path leaves the Java API, leaving behind all Java security features, including any setup security managers.
Example
The following method declaration would be flagged as a violation because it is implemented as a native method:
public int native getUID();