Wiki Markup |
---|
Native methods are defined in Java and written in traditional languages such as C and C++ \[[JNI 2006|AA. Java References#JNIBibliography#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 2008|AA. Java References#BlochBibliography#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. |
...
Wiki Markup |
---|
\[[JNI 2006|AA. JavaBibliography#JNI References#JNI 06]\] \[[SCG 2007|AA. Java References#SCGBibliography#SCG 07]\] Guideline 3-3 Define wrappers around native methods \[[Liang 1997|AA. JavaBibliography#Liang References#Liang 97]\] \[[Macgregor 1998|AA. Java References#MacgregorBibliography#Macgregor 98]\] Section 2.2.3, Interfaces and Architectures \[[MITRE 2009|AA. Java References#MITREBibliography#MITRE 09]\] [CWE ID 111|http://cwe.mitre.org/data/definitions/111.html] "Direct Use of Unsafe JNI" |
...