计算机科学 > 软件工程
[提交于 1999年7月12日]
标题:A Reasonable C++ Wrappered Java Native Interface
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A reasonable C++ Java Native Interface (JNI) technique termed C++ Wrappered JNI (C++WJ) is presented. The technique simplifies current error-prone JNI development by wrappering JNI calls. Provided development is done with the aid of a C++ compiler, C++WJ offers type checking and behind the scenes caching. A tool (jH) patterned on javah automates the creation of C++WJ classes. The paper presents the rationale behind the choices that led to C++WJ. Handling of Java class and interface hierarchy including Java type downcasts is discussed. Efficiency considerations in the C++WJ lead to two flavors of C++ classes: jtypes and Jtypes. A jtype is a lightweight less than full wrapper of a JNI object reference. A Jtype is a heavyweight full wrapper of a JNI object reference.
提交历史
来自:Craig Bordelon[v1] 1999年7月12日 星期一 13:34:21 UTC