#include <stdint.h>
#include "native/jni.hpp"
-#include "native/native.h"
+#include "native/native.hpp"
#if defined(ENABLE_JNI_HEADERS)
# include "native/include/java_lang_Double.h"
#endif
+#include "vm/vm.hpp"
+
#include "vm/jit/builtin.hpp"
*******************************************************************************/
-// FIXME
-extern "C" {
void _Jv_java_lang_Double_init(void)
{
- utf *u;
-
- u = utf_new_char("java/lang/Double");
+ utf* u = utf_new_char("java/lang/Double");
- native_method_register(u, methods, NATIVE_METHODS_COUNT);
-}
+ NativeMethods& nm = VM::get_current()->get_nativemethods();
+ nm.register_methods(u, methods, NATIVE_METHODS_COUNT);
}