Wiki Markup |
---|
Native methods are defined in Java and written in traditional languages such as C and C++ \[[JNI 062006|AA. Java References#JNI 06]\]. The added extensibility comes at the cost of flexibility and portability as the code no longer conforms to the policies enforced by Java. In the past, native methods were used for performing platform specific operations, interfacing with legacy library code and improving program performance \[[Bloch 082008|AA. Java References#Bloch 08]\]. Although this is not completely true in present times (because of poor portability, safety and quite ironically, performance issues), native code is still used to interface with legacy code. |
...
References
Wiki Markup |
---|
\[[JNI 062006|AA. Java References#JNI 06]\] \[[SCG 072007|AA. Java References#SCG 07]\] Guideline 3-3 Define wrappers around native methods \[[Liang 971997|AA. Java References#Liang 97]\] \[[Macgregor 981998|AA. Java References#Macgregor 98]\] Section 2.2.3, Interfaces and Architectures \[[MITRE 092009|AA. Java References#MITRE 09]\] [CWE ID 111|http://cwe.mitre.org/data/definitions/111.html] "Direct Use of Unsafe JNI" |
...