* src/threads/thread.cpp (threads_thread_is_alive): Recognize parked states.
[cacao.git] / src / native / vm / gnuclasspath / sun_reflect_ConstantPool.cpp
index 13c274b1ade06a0a765b38411fe077ebb992fa25..b56ca42c33cccf37f72773295d448dfaa4e5823f 100644 (file)
 
 #include "toolbox/logging.h"
 
-#include "vm/class.h"
+#include "vm/class.hpp"
 #include "vm/exceptions.hpp"
 #include "vm/javaobjects.hpp"
-#include "vm/resolve.h"
+#include "vm/resolve.hpp"
 #include "vm/string.hpp"
 #include "vm/utf8.h"
 #include "vm/vm.hpp"
@@ -418,7 +418,10 @@ static JNINativeMethod methods[] = {
 
 void _Jv_sun_reflect_ConstantPool_init(void)
 {
-       native_method_register(utf_new_char("sun/reflect/ConstantPool"), methods, NATIVE_METHODS_COUNT);
+       utf* u = utf_new_char("sun/reflect/ConstantPool");
+
+       NativeMethods& nm = VM::get_current()->get_nativemethods();
+       nm.register_methods(u, methods, NATIVE_METHODS_COUNT);
 }