array out of memory fixlet, InvocationTargetException handling, less debug output...
[cacao.git] / src / native / vm / VMSecurityManager.c
1 /* class: java/lang/SecurityManager */
2
3
4 #include "jni.h"
5 #include "builtin.h"
6 #include "native.h"
7 #include "tables.h"
8 #include "toolbox/loging.h"
9
10
11 /*
12  * Class:     java/lang/SecurityManager
13  * Method:    currentClassLoader
14  * Signature: ()Ljava/lang/ClassLoader;
15  */
16 JNIEXPORT struct java_lang_ClassLoader* JNICALL Java_java_lang_VMSecurityManager_currentClassLoader ( JNIEnv *env, jclass clazz)
17 {
18   init_systemclassloader();
19   return SystemClassLoader;
20 }
21
22
23 /*
24  * Class:     java/lang/SecurityManager
25  * Method:    getClassContext
26  * Signature: ()[Ljava/lang/Class;
27  */
28 JNIEXPORT java_objectarray* JNICALL Java_java_lang_VMSecurityManager_getClassContext ( JNIEnv *env ,jclass clazz)
29 {
30   /*log_text("Java_java_lang_VMSecurityManager_getClassContext  called");*/
31 #warning return something more usefull here
32   /* XXX should use vftbl directly */
33   return builtin_newarray(0,class_array_of(class_java_lang_Class)->vftbl);
34 }
35
36
37 /*
38  * These are local overrides for various environment variables in Emacs.
39  * Please do not remove this and leave it at the end of the file, where
40  * Emacs will automagically detect them.
41  * ---------------------------------------------------------------------
42  * Local variables:
43  * mode: c
44  * indent-tabs-mode: t
45  * c-basic-offset: 4
46  * tab-width: 4
47  * End:
48  */